Home
last modified time | relevance | path

Searched refs:Rand (Results 1 – 25 of 26) sorted by relevance

12

/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerMutate.cpp27 MutationDispatcher::MutationDispatcher(Random &Rand, in MutationDispatcher() argument
29 : Rand(Rand), Options(Options) { in MutationDispatcher()
63 static char RandCh(Random &Rand) { in RandCh() argument
64 if (Rand.RandBool()) in RandCh()
65 return static_cast<char>(Rand(256)); in RandCh()
67 return Special[Rand(sizeof(Special) - 1)]; in RandCh()
77 Rand.Rand<unsigned int>()); in Mutate_Custom()
100 Rand.Rand<unsigned int>()); in Mutate_CustomCrossOver()
113 Rand(std::min(Size, (size_t)8)) + 1; // [1,8] and <= Size. in Mutate_ShuffleBytes()
114 size_t ShuffleStart = Rand(Size - ShuffleAmount); in Mutate_ShuffleBytes()
[all …]
H A DFuzzerCorpus.h303 InputInfo &ChooseUnitToMutate(Random &Rand) { in ChooseUnitToMutate()
304 InputInfo &II = *Inputs[ChooseUnitIdxToMutate(Rand)]; in ChooseUnitToMutate()
309 InputInfo &ChooseUnitToCrossOverWith(Random &Rand, bool UniformDist) { in ChooseUnitToCrossOverWith()
311 return ChooseUnitToMutate(Rand); in ChooseUnitToCrossOverWith()
313 InputInfo &II = *Inputs[Rand(Inputs.size())]; in ChooseUnitToCrossOverWith()
319 size_t ChooseUnitIdxToMutate(Random &Rand) { in ChooseUnitIdxToMutate()
320 UpdateCorpusDistribution(Rand); in ChooseUnitIdxToMutate()
321 size_t Idx = static_cast<size_t>(CorpusDistribution(Rand)); in ChooseUnitIdxToMutate()
496 void UpdateCorpusDistribution(Random &Rand) { in UpdateCorpusDistribution()
501 (!Entropic.Enabled || Rand(kSparseEnergyUpdate in UpdateCorpusDistribution()
302 ChooseUnitToMutate(Random & Rand) ChooseUnitToMutate() argument
308 ChooseUnitToCrossOverWith(Random & Rand,bool UniformDist) ChooseUnitToCrossOverWith() argument
318 ChooseUnitIdxToMutate(Random & Rand) ChooseUnitIdxToMutate() argument
495 UpdateCorpusDistribution(Random & Rand) UpdateCorpusDistribution() argument
[all...]
H A DFuzzerCrossOver.cpp23 MaxOutSize = Rand(MaxOutSize) + 1; in CrossOver()
37 size_t ExtraSize = Rand(MaxExtraSize) + 1; in CrossOver()
H A DFuzzerRandom.h22 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 DFuzzerFork.cpp99 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 DFuzzerMutate.h23 MutationDispatcher(Random &Rand, const FuzzingOptions &Options);
96 Random &GetRand() { return Rand; } in GetRand()
127 Random &Rand; variable
H A DFuzzerFork.h19 void FuzzWithFork(Random &Rand, const FuzzingOptions &Options,
H A DFuzzerDataFlowTrace.cpp162 std::vector<SizedFile> &CorporaFiles, Random &Rand) { in Init() argument
198 FocusFuncIdx = static_cast<size_t>(Distribution(Rand)); in Init()
H A DFuzzerDataFlowTrace.h120 std::vector<SizedFile> &CorporaFiles, Random &Rand);
H A DFuzzerDriver.cpp813 Random Rand(Seed); in FuzzerDriver() local
814 auto *MD = new MutationDispatcher(Rand, Options); in FuzzerDriver()
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DRandomIRBuilder.cpp91 auto RS = makeSampler(Rand, make_filter_range(GlobalVars, MatchesPred)); in findOrCreateGlobalVariable()
97 auto TRS = makeSampler<Constant *>(Rand); in findOrCreateGlobalVariable()
123 std::shuffle(SrcTys.begin(), SrcTys.end(), Rand); in findOrCreateSource()
127 auto RS = makeSampler(Rand, make_filter_range(Insts, MatchesPred)); in findOrCreateSource()
139 auto RS = makeSampler(Rand, make_filter_range(Args, MatchesPred)); in findOrCreateSource()
147 std::shuffle(Dominators.begin(), Dominators.end(), Rand); in findOrCreateSource()
154 makeSampler(Rand, make_filter_range(Instructions, MatchesPred)); in findOrCreateSource()
202 auto RS = makeSampler<Value *>(Rand); in newSource()
296 std::shuffle(SinkTys.begin(), SinkTys.end(), Rand); in connectToSink()
299 auto RS = makeSampler<Use *>(Rand); in connectToSink()
[all …]
H A DIRMutator.cpp37 auto RS = makeSampler<Function *>(IB.Rand); in mutate()
53 mutate(*makeSampler(IB.Rand, Range).getSelection(), IB); in mutate()
57 mutate(*makeSampler(IB.Rand, make_pointer_range(BB)).getSelection(), IB); in mutate()
71 auto RS = makeSampler<IRMutationStrategy *>(IB.Rand); in mutateModule()
112 auto RS = makeSampler(IB.Rand, make_filter_range(Operations, OpMatchesPred)); in chooseOperation()
132 size_t IP = uniform<size_t>(IB.Rand, 0, Insts.size() - 1); in mutate()
175 auto RS = makeSampler<Instruction *>(IB.Rand); in mutate()
206 auto RS = makeSampler<Value *>(IB.Rand); in mutate()
343 auto RS = makeSampler(IB.Rand, Modifications); in mutate()
354 tmp = uniform<uint64_t>(IB.Rand, 0, MaxValue); in getUniqueCaseValue()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator.h50 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()
/freebsd/contrib/llvm-project/llvm/include/llvm/FuzzMutate/
H A DRandomIRBuilder.h38 RandomEngine Rand; member
46 : Rand(Seed), KnownTypes(AllowedTypes.begin(), AllowedTypes.end()) {} in RandomIRBuilder()
/freebsd/contrib/llvm-project/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp93 uint32_t Rand() { in Rand() function in llvm::__anone1ed83310111::Random
102 uint64_t Val = Rand() & 0xffff; in Rand64()
103 Val |= uint64_t(Rand() & 0xffff) << 16; in Rand64()
104 Val |= uint64_t(Rand() & 0xffff) << 32; in Rand64()
105 Val |= uint64_t(Rand() & 0xffff) << 48; in Rand64()
121 uint32_t Val = Rand(); in operator ()()
208 return Ran->Rand(); in getRandom()
/freebsd/contrib/tcsh/nls/german/
H A Dset444 42 Zeilenumbruch am rechten Rand wird ignoriert
/freebsd/usr.bin/ee/nls/de_DE.ISO8859-1/
H A Dee.msg17 8 "rechter Rand "
121 112 "Rechter Rand: "
/freebsd/sys/contrib/edk2/Include/Library/
H A DBaseLib.h7773 OUT UINT16 *Rand
7790 OUT UINT32 *Rand
7807 OUT UINT64 *Rand
/freebsd/contrib/bc/
H A DLICENSE.md57 ## Rand section in License
/freebsd/share/dict/
H A Dpropernames960 Rand
/freebsd/crypto/openssl/doc/man7/
H A Dprovider-rand.pod152 =head2 Rand Parameters
/freebsd/contrib/sendmail/
H A DRELEASE_NOTES4391 it doesn't already exist. Problem noted by Rand Wacker of
9428 Unicos 8.0 from Douglas K. Rand of the University of North
/freebsd/share/termcap/
H A Dtermcap1061 # Originally from Mike O'Brien@Rand and Howard Katseff at Bell Labs.
/freebsd/contrib/one-true-awk/testdir/
H A Dfunstack.in3092 corpsource = "Univac Div. Sperry Rand, Huntsville, AL, USA",
23040 corpsource = "Rand Corp., Santa Monica, CA, USA",
/freebsd/contrib/ncurses/misc/
H A Dterminfo.src15075 # Originally from Mike O'Brien@Rand and Howard Katseff at Bell Labs.

12