| /llvm-project-15.0.7/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerMutate.cpp | 29 : Rand(Rand), Options(Options) { in MutationDispatcher() 64 if (Rand.RandBool()) in RandCh() 77 Rand.Rand<unsigned int>()); in Mutate_Custom() 100 Rand.Rand<unsigned int>()); in Mutate_CustomCrossOver() 155 Rand.RandBool() ? Rand(256) : (Rand.RandBool() ? 0 : 255)); in Mutate_InsertRepeatedBytes() 266 auto X = TPC.TORC8.Get(Rand.Rand<size_t>()); in Mutate_AddWordFromTORC() 270 auto X = TPC.TORC4.Get(Rand.Rand<size_t>()); in Mutate_AddWordFromTORC() 277 auto X = TPC.TORCW.Get(Rand.Rand<size_t>()); in Mutate_AddWordFromTORC() 281 auto X = TPC.MMT.Get(Rand.Rand<size_t>()); in Mutate_AddWordFromTORC() 383 switch(Rand(5)) { in Mutate_ChangeASCIIInteger() [all …]
|
| H A D | FuzzerCorpus.h | 302 InputInfo &ChooseUnitToMutate(Random &Rand) { in ChooseUnitToMutate() argument 303 InputInfo &II = *Inputs[ChooseUnitIdxToMutate(Rand)]; in ChooseUnitToMutate() 308 InputInfo &ChooseUnitToCrossOverWith(Random &Rand, bool UniformDist) { in ChooseUnitToCrossOverWith() argument 310 return ChooseUnitToMutate(Rand); in ChooseUnitToCrossOverWith() 312 InputInfo &II = *Inputs[Rand(Inputs.size())]; in ChooseUnitToCrossOverWith() 318 size_t ChooseUnitIdxToMutate(Random &Rand) { in ChooseUnitIdxToMutate() argument 319 UpdateCorpusDistribution(Rand); in ChooseUnitIdxToMutate() 320 size_t Idx = static_cast<size_t>(CorpusDistribution(Rand)); in ChooseUnitIdxToMutate() 495 void UpdateCorpusDistribution(Random &Rand) { in UpdateCorpusDistribution() argument 500 (!Entropic.Enabled || Rand(kSparseEnergyUpdates))) in UpdateCorpusDistribution()
|
| H A D | FuzzerCrossOver.cpp | 23 MaxOutSize = Rand(MaxOutSize) + 1; in CrossOver() 37 size_t ExtraSize = Rand(MaxExtraSize) + 1; in CrossOver()
|
| H A D | FuzzerRandom.h | 22 typename std::enable_if<std::is_integral<T>::value, T>::type Rand() { in Rand() function 33 return n ? Rand<T>() % n : 0; in operator()
|
| H A D | FuzzerMutate.h | 23 MutationDispatcher(Random &Rand, const FuzzingOptions &Options); 96 Random &GetRand() { return Rand; } in GetRand() 127 Random &Rand; variable
|
| H A D | FuzzerFork.cpp | 99 Random *Rand; member 146 size_t RandNum = (*Rand)(AverageCorpusSize); in CreateNewJob() 149 : Rand->SkewTowardsLast(Files.size()); in CreateNewJob() 156 auto &SF = Files[Rand->SkewTowardsLast(Files.size())]; in CreateNewJob() 312 void FuzzWithFork(Random &Rand, const FuzzingOptions &Options, in FuzzWithFork() argument 320 Env.Rand = &Rand; in FuzzWithFork()
|
| H A D | FuzzerFork.h | 19 void FuzzWithFork(Random &Rand, const FuzzingOptions &Options,
|
| H A D | FuzzerDataFlowTrace.cpp | 162 std::vector<SizedFile> &CorporaFiles, Random &Rand) { in Init() argument 198 FocusFuncIdx = static_cast<size_t>(Distribution(Rand)); in Init()
|
| H A D | FuzzerDataFlowTrace.h | 120 std::vector<SizedFile> &CorporaFiles, Random &Rand);
|
| H A D | FuzzerDriver.cpp | 810 Random Rand(Seed); in FuzzerDriver() local 811 auto *MD = new MutationDispatcher(Rand, Options); in FuzzerDriver()
|
| /llvm-project-15.0.7/llvm/unittests/FuzzMutate/ |
| H A D | ReservoirSamplerTest.cpp | 16 std::mt19937 Rand; in TEST() local 17 auto Sampler = makeSampler(Rand, 7, 1); in TEST() 23 std::mt19937 Rand; in TEST() local 24 auto Sampler = makeSampler(Rand, 7, 0); in TEST() 29 std::mt19937 Rand; in TEST() local 43 auto Sampler = makeSampler(Rand, Items); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/FuzzMutate/ |
| H A D | IRMutator.cpp | 40 auto RS = makeSampler<Function *>(IB.Rand); in mutate() 52 mutate(*makeSampler(IB.Rand, make_pointer_range(F)).getSelection(), IB); in mutate() 56 mutate(*makeSampler(IB.Rand, make_pointer_range(BB)).getSelection(), IB); in mutate() 66 auto RS = makeSampler<IRMutationStrategy *>(IB.Rand); in mutateModule() 105 auto RS = makeSampler(IB.Rand, make_filter_range(Operations, OpMatchesPred)); in chooseOperation() 119 size_t IP = uniform<size_t>(IB.Rand, 0, Insts.size() - 1); in mutate() 162 auto RS = makeSampler<Instruction *>(IB.Rand); in mutate() 193 auto RS = makeSampler<Value *>(IB.Rand); in mutate() 247 auto RS = makeSampler(IB.Rand, Modifications); in mutate()
|
| H A D | RandomIRBuilder.cpp | 33 auto RS = makeSampler(Rand, make_filter_range(Insts, MatchesPred)); in findOrCreateSource() 44 auto RS = makeSampler<Value *>(Rand); in newSource() 100 auto RS = makeSampler<Use *>(Rand); in connectToSink() 127 if (uniform(Rand, 0, 1)) in newSink() 159 if (auto RS = makeSampler(Rand, make_filter_range(Insts, IsMatchingPtr))) in findPointer()
|
| /llvm-project-15.0.7/compiler-rt/lib/fuzzer/tests/ |
| H A D | FuzzerUnittest.cpp | 51 Random Rand(0); in TEST() local 139 Random Rand(0); in TestEraseBytes() local 175 Random Rand(0); in TestInsertByte() local 211 Random Rand(0); in TestInsertRepeatedBytes() local 256 Random Rand(0); in TestChangeByte() local 292 Random Rand(0); in TestChangeBit() local 328 Random Rand(0); in TestShuffleBytes() local 358 Random Rand(0); in TestCopyPart() local 408 Random Rand(0); in TEST() local 421 Random Rand(0); in TestAddWordFromDictionary() local [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_allocator.h | 50 inline u32 Rand(u32 *state) { // ANSI C linear congruential PRNG. in Rand() function 54 inline u32 RandN(u32 *state, u32 n) { return Rand(state) % n; } // [0, n) in RandN()
|
| /llvm-project-15.0.7/llvm/include/llvm/FuzzMutate/ |
| H A D | RandomIRBuilder.h | 33 RandomEngine Rand; member 37 : Rand(Seed), KnownTypes(AllowedTypes.begin(), AllowedTypes.end()) {} in RandomIRBuilder()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AArch64/ |
| H A D | arm64-fast-isel-gv.ll | 16 define i32 @Rand() nounwind { 18 ; CHECK: @Rand
|
| /llvm-project-15.0.7/llvm/tools/llvm-stress/ |
| H A D | llvm-stress.cpp | 90 uint32_t Rand() { in Rand() function in llvm::__anonb51810610111::Random 99 uint64_t Val = Rand() & 0xffff; in Rand64() 100 Val |= uint64_t(Rand() & 0xffff) << 16; in Rand64() 101 Val |= uint64_t(Rand() & 0xffff) << 32; in Rand64() 102 Val |= uint64_t(Rand() & 0xffff) << 48; in Rand64() 118 uint32_t Val = Rand(); in operator ()() 205 return Ran->Rand(); in getRandom()
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/ |
| H A D | scudo_tsd_shared.cpp | 73 const u32 R = Rand(&RandState); in getTSDAndLockSlow()
|
| /llvm-project-15.0.7/llvm/test/Analysis/ScalarEvolution/ |
| H A D | trip-count7.ll | 47 declare i32 @Rand() nounwind
|