Searched defs:rng (Results 1 - 20 of 20) sorted by relevance

/art/tools/dexfuzz/src/dexfuzz/program/mutators/
H A DCodeMutator.java35 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 DInstructionDeleter.java59 public InstructionDeleter(Random rng, MutationStats stats, List<Mutation> mutations) { argument
60 super(rng, stats, mutations);
78 int insnIdx = rng.nextInt(mutatableCode.getInstructionCount());
H A DInstructionDuplicator.java59 public InstructionDuplicator(Random rng, MutationStats stats, List<Mutation> mutations) { argument
60 super(rng, stats, mutations);
71 insnIdx = rng.nextInt(mutatableCode.getInstructionCount());
H A DInstructionSwapper.java63 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 DNonsenseStringPrinter.java65 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 DBranchShifter.java65 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 DCmpBiasChanger.java61 public CmpBiasChanger(Random rng, MutationStats stats, List<Mutation> mutations) { argument
62 super(rng, stats, mutations);
101 int cmpBiasInsnIdx = rng.nextInt(cmpBiasInsns.size());
H A DConstantValueChanger.java65 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 DConversionRepeater.java61 public ConversionRepeater(Random rng, MutationStats stats, List<Mutation> mutations) { argument
62 super(rng, stats, mutations);
100 int conversionInsnIdx = rng.nextInt(conversionInsns.size());
H A DFieldFlagChanger.java68 public FieldFlagChanger(Random rng, MutationStats stats, List<Mutation> mutations) { argument
69 super(rng, stats, mutations);
108 int fieldInsnIdx = rng.nextInt(fieldInsns.size());
H A DPoolIndexChanger.java66 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 DRandomInstructionGenerator.java103 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 DSwitchBranchShifter.java68 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 DTryBlockShifter.java77 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 DVRegChanger.java68 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 DArithOpChanger.java67 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 DNewMethodCaller.java99 public NewMethodCaller(Random rng, MutationStats stats, List<Mutation> mutations) { argument
100 super(rng, stats, mutations);
111 insertionIdx = rng.nextInt(mutatableCode.getInstructionCount());
H A DValuePrinter.java60 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 Dutils.h391 RNG rng; local
392 return dist(rng);
/art/tools/dexfuzz/src/dexfuzz/program/
H A DProgram.java76 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...]

Completed in 1358 milliseconds