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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Toby Murray
swen90006-a2-2019
Commits
e360b3c0
Commit
e360b3c0
authored
Oct 3, 2019
by
hadi
Browse files
Options
Downloads
Patches
Plain Diff
Instruction Set file
parent
245e8914
Branches
master
No related tags found
1 merge request
!4
Fuzzer structure
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
fuzzer/InstructionSet.java
+36
-0
36 additions, 0 deletions
fuzzer/InstructionSet.java
with
36 additions
and
0 deletions
fuzzer/InstructionSet.java
0 → 100644
+
36
−
0
View file @
e360b3c0
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment