/art/tools/dexfuzz/src/dexfuzz/program/mutators/ |
H A D | CodeMutator.java | 35 protected Random rng; field in class:CodeMutator 64 * @param rng The RNG that the Program created. 66 public CodeMutator(Random rng, MutationStats stats, List<Mutation> mutations) { argument 67 this.rng = rng; 113 return ((rng.nextInt(100) < likelihood) && canMutate(mutatableCode));
|
H A D | InstructionDeleter.java | 59 public InstructionDeleter(Random rng, MutationStats stats, List<Mutation> mutations) { argument 60 super(rng, stats, mutations); 78 int insnIdx = rng.nextInt(mutatableCode.getInstructionCount());
|
H A D | InstructionDuplicator.java | 59 public InstructionDuplicator(Random rng, MutationStats stats, List<Mutation> mutations) { argument 60 super(rng, stats, mutations); 71 insnIdx = rng.nextInt(mutatableCode.getInstructionCount());
|
H A D | InstructionSwapper.java | 63 public InstructionSwapper(Random rng, MutationStats stats, List<Mutation> mutations) { argument 64 super(rng, stats, mutations); 89 swapInsnIdx = rng.nextInt(mutatableCode.getInstructionCount()); 100 int delta = rng.nextInt(5) - 1;
|
H A D | NonsenseStringPrinter.java | 65 public NonsenseStringPrinter(Random rng, MutationStats stats, List<Mutation> mutations) { argument 66 super(rng, stats, mutations); 77 insertionIdx = rng.nextInt(mutatableCode.getInstructionCount()); 153 int size = rng.nextInt(10); 158 builder.append((char) (rng.nextInt((end + 1) - start) + start));
|
H A D | BranchShifter.java | 65 public BranchShifter(Random rng, MutationStats stats, List<Mutation> mutations) { argument 66 super(rng, stats, mutations); 111 int branchInsnIdx = rng.nextInt(branchInsns.size()); 127 delta = (rng.nextInt(5) - 2);
|
H A D | CmpBiasChanger.java | 61 public CmpBiasChanger(Random rng, MutationStats stats, List<Mutation> mutations) { argument 62 super(rng, stats, mutations); 101 int cmpBiasInsnIdx = rng.nextInt(cmpBiasInsns.size());
|
H A D | ConstantValueChanger.java | 65 public ConstantValueChanger(Random rng, MutationStats stats, List<Mutation> mutations) { argument 66 super(rng, stats, mutations); 105 int constInsnIdx = rng.nextInt(constInsns.size()); 115 newConstant = rng.nextLong()
|
H A D | ConversionRepeater.java | 61 public ConversionRepeater(Random rng, MutationStats stats, List<Mutation> mutations) { argument 62 super(rng, stats, mutations); 100 int conversionInsnIdx = rng.nextInt(conversionInsns.size());
|
H A D | FieldFlagChanger.java | 68 public FieldFlagChanger(Random rng, MutationStats stats, List<Mutation> mutations) { argument 69 super(rng, stats, mutations); 108 int fieldInsnIdx = rng.nextInt(fieldInsns.size());
|
H A D | PoolIndexChanger.java | 66 public PoolIndexChanger(Random rng, MutationStats stats, List<Mutation> mutations) { argument 67 super(rng, stats, mutations); 139 poolIndexInsnIdx = rng.nextInt(poolIndexInsns.size()); 163 newPoolIndex = rng.nextInt(maxPoolIndex);
|
H A D | RandomInstructionGenerator.java | 103 public RandomInstructionGenerator(Random rng, MutationStats stats, List<Mutation> mutations) { argument 104 super(rng, stats, mutations); 115 insertionIdx = rng.nextInt(mutatableCode.getInstructionCount()); 131 newOpcode = Opcode.values()[rng.nextInt(opcodeCount)]; 159 mutation.constValue = rng.nextLong() % ((ContainsConst)fmt).getConstRange(); 167 mutation.poolIndexValue = rng.nextInt(maxPoolIndex); 181 mutation.vregC = rng.nextInt(mutatableCode.registersSize); 184 mutation.vregB = rng.nextInt(mutatableCode.registersSize); 187 mutation.vregA = rng.nextInt(mutatableCode.registersSize); 196 mutation.branchTargetIdx = rng [all...] |
H A D | SwitchBranchShifter.java | 68 public SwitchBranchShifter(Random rng, MutationStats stats, List<Mutation> mutations) { argument 69 super(rng, stats, mutations); 109 int switchInsnIdx = rng.nextInt(switchInsns.size()); 113 int switchTargetIdx = rng.nextInt(switchInsn.targets.size()); 128 delta = (rng.nextInt(5) - 2);
|
H A D | TryBlockShifter.java | 77 public TryBlockShifter(Random rng, MutationStats stats, List<Mutation> mutations) { argument 78 super(rng, stats, mutations); 95 int tryIdx = rng.nextInt(mutatableCode.triesSize); 98 boolean shiftingTryBlock = rng.nextBoolean(); 105 shiftingStart = rng.nextBoolean(); 113 shiftingHandlerCatchall = rng.nextBoolean(); 118 shiftingHandlerIdx = rng.nextInt(tryBlock.handlers.size()); 149 delta = (rng.nextInt(5) - 2);
|
H A D | VRegChanger.java | 68 public VRegChanger(Random rng, MutationStats stats, List<Mutation> mutations) { argument 69 super(rng, stats, mutations); 112 int vregInsnIdx = rng.nextInt(vregInsns.size()); 119 int mutatingVreg = rng.nextInt(numVregs); 141 newVregValue = rng.nextInt(mutatableCode.registersSize);
|
H A D | ArithOpChanger.java | 67 public ArithOpChanger(Random rng, MutationStats stats, List<Mutation> mutations) { argument 68 super(rng, stats, mutations); 107 int arithmeticInsnIdx = rng.nextInt(arithmeticInsns.size()); 165 int newOpcodeIdx = rng.nextInt(opcodeList.size());
|
H A D | NewMethodCaller.java | 99 public NewMethodCaller(Random rng, MutationStats stats, List<Mutation> mutations) { argument 100 super(rng, stats, mutations); 111 insertionIdx = rng.nextInt(mutatableCode.getInstructionCount());
|
H A D | ValuePrinter.java | 60 public ValuePrinter(Random rng, MutationStats stats, List<Mutation> mutations) { argument 61 super(rng, stats, mutations); 84 printedOutputIdx = rng.nextInt(mutatableCode.getInstructionCount());
|
/art/runtime/ |
H A D | utils.h | 391 RNG rng; local 392 return dist(rng);
|
/art/tools/dexfuzz/src/dexfuzz/program/ |
H A D | Program.java | 76 private Random rng; field in class:Program 153 rng = new Random(); 155 rng.setSeed(Options.rngSeed); 160 rng.setSeed(seed); 191 registerMutator(new ArithOpChanger(rng, mutationStats, mutations)); 192 registerMutator(new BranchShifter(rng, mutationStats, mutations)); 193 registerMutator(new CmpBiasChanger(rng, mutationStats, mutations)); 194 registerMutator(new ConstantValueChanger(rng, mutationStats, mutations)); 195 registerMutator(new ConversionRepeater(rng, mutationStats, mutations)); 196 registerMutator(new FieldFlagChanger(rng, mutationStat [all...] |