Skip to content
Snippets Groups Projects

Fuzzer structure

1 file
+ 36
0
Compare changes
  • Side-by-side
  • Inline
+ 36
0
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