Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swen90006-a2-2019
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Toby Murray
swen90006-a2-2019
Merge requests
!4
Fuzzer structure
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Fuzzer structure
yho4/swen90006-a2-2019:fuzzer_structure
into
master
Overview
0
Commits
7
Pipelines
0
Changes
1
Closed
Sadegh Modarres Zadeh Esfahani Fard
requested to merge
yho4/swen90006-a2-2019:fuzzer_structure
into
master
5 years ago
Overview
0
Commits
7
Pipelines
0
Changes
1
Expand
Fuzzer structure
0
0
Merge request reports
Viewing commit
e360b3c0
Prev
Next
Show latest version
1 file
+
36
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
e360b3c0
Instruction Set file
· e360b3c0
hadi
authored
5 years ago
fuzzer/InstructionSet.java
0 → 100644
+
36
−
0
Options
import
java.util.ArrayList
;
public
class
InstructionSet
{
private
int
maxInstructions
;
private
ArrayList
<
Instruction
>
instructions
;
public
InstructionSet
(
int
maxInstructions
)
{
this
.
maxInstructions
=
maxInstructions
;
this
.
instructions
=
new
ArrayList
<
Instruction
>();
}
public
void
addInstruction
(
Instruction
instruction
){
}
public
ArrayList
<
Instruction
>
getInstructions
()
{
return
this
.
instructions
;
}
@Override
public
String
toString
(){
// convert all instructions to strings and append them with new line "\n" and return it
return
""
;
}
public
void
swapRows
(
int
sourceIndex
,
int
targetIndex
){
// fill if needed
}
/**
* moves the row specified by sourceIndex at the location in instruction set specified by percentile
* @param sourceIndex
* @param percentile
*/
public
void
moveRowAtIndexToPercentile
(
int
sourceIndex
,
int
percentile
){
// fill if needed
}
}
\ No newline at end of file
Loading