Home
last modified time | relevance | path

Searched refs:seed (Results 1 – 25 of 184) sorted by relevance

12345678

/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/cert/
H A Dmsc51-cpp.cpp6 void srand(int seed);
37 void seed();
46 void seed();
55 void seed();
93 engine1.seed(seed); in f()
110 engine5.seed(seed); in f()
127 engine9.seed(seed); in f()
144 engine13.seed(seed); in f()
161 engine17.seed(seed); in f()
178 engine21.seed(seed); in f()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DHashing.h248 return hash_4to8_bytes(s, length, seed); in hash_short()
250 return hash_9to16_bytes(s, length, seed); in hash_short()
256 return hash_1to3_bytes(s, length, seed); in hash_short()
258 return k2 ^ seed; in hash_short()
272 0, seed, hash_16_bytes(seed, k1), rotate(seed ^ k1, 49), in create()
273 seed * k1, shift_mix(seed), 0 }; in create()
334 return seed; in get_execution_seed()
408 const uint64_t seed = get_execution_seed();
502 const uint64_t seed;
510 : seed(get_execution_seed()) {}
[all …]
/llvm-project-15.0.7/polly/lib/External/isl/imath/examples/
H A Drandprime.c56 mp_result find_prime(mp_int seed, FILE *fb);
57 mp_result find_strong_prime(mp_int seed, FILE *fb);
184 mp_result find_prime(mp_int seed, FILE *fb) { in find_prime() argument
188 if (mp_int_is_even(seed)) { in find_prime()
189 if ((res = mp_int_add_value(seed, 1, seed)) != MP_OK) { in find_prime()
200 if ((res = mp_int_add_value(seed, 2, seed)) != MP_OK) { in find_prime()
210 mp_result find_strong_prime(mp_int seed, FILE *fb) { in find_strong_prime() argument
216 if (find_prime(seed, fb) != MP_TRUE) break; in find_strong_prime()
217 if (mp_int_copy(seed, &t) != MP_OK) break; in find_strong_prime()
227 res = mp_int_copy(&t, seed); in find_strong_prime()
[all …]
H A Dfindprime.c37 mpz_t seed; in main() local
45 mp_int_init(&seed); in main()
46 if ((res = mp_int_read_string(&seed, 10, argv[1])) != MP_OK) { in main()
51 if (mp_int_compare_value(&seed, 131) <= 0) { in main()
56 if ((res = mp_int_find_prime(&seed)) != MP_TRUE) { in main()
61 mp_int_to_string(&seed, 10, buf, sizeof(buf)); in main()
64 mp_int_clear(&seed); in main()
H A Drsakey.c65 mp_result find_prime(mp_int seed, FILE *fb);
246 mp_result find_prime(mp_int seed, FILE *fb) { in find_prime() argument
250 if (mp_int_is_even(seed)) in find_prime()
251 if ((res = mp_int_add_value(seed, 1, seed)) != MP_OK) return res; in find_prime()
253 while ((res = mp_int_is_prime(seed)) == MP_FALSE) { in find_prime()
258 if ((res = mp_int_add_value(seed, 2, seed)) != MP_OK) return res; in find_prime()
/llvm-project-15.0.7/flang/runtime/
H A Drandom.cpp100 generator.seed(0); in RTNAME()
102 generator.seed(std::time(nullptr)); in RTNAME()
169 GeneratedWord seed; in RTNAME() local
172 seed = *put.OffsetElement<CppTypeFor<TypeCategory::Integer, 4>>(); in RTNAME()
175 seed = *put.OffsetElement<CppTypeFor<TypeCategory::Integer, 8>>(); in RTNAME()
182 generator.seed(seed); in RTNAME()
183 nextValue = seed; in RTNAME()
191 generator.seed(0); in RTNAME()
203 GeneratedWord seed; in RTNAME() local
206 seed = GetNextValue(); in RTNAME()
[all …]
/llvm-project-15.0.7/compiler-rt/test/fuzzer/
H A Dseed_inputs.test6 USE-1: INFO: seed corpus: files: 1
7 RUN: echo -n "%t-SimpleTest" > %t.seed-inputs
9 RUN: %run %t-SimpleTest -runs=1 -seed_inputs=@%t.seed-inputs 2>&1 | FileCheck %s --check-prefix=USE…
12 USE-2: INFO: seed corpus: files: 2
13 RUN: echo -n "%t-SimpleTest,%t-SimpleTest" > %t.seed-inputs
14 RUN: %run %t-SimpleTest -runs=1 -seed_inputs=@%t.seed-inputs 2>&1 | FileCheck %s --check-prefix=USE…
18 RUN: echo -n "%t-SimpleTest,%t-SimpleTest,nonexistent-file," > %t.seed-inputs
19 RUN: %run %t-SimpleTest -runs=1 -seed_inputs=@%t.seed-inputs 2>&1 | FileCheck %s --check-prefix=USE…
22 # Test that using a non existent file or an empty seed list fails.
25 RUN: echo -n "" > %t.seed-inputs
[all …]
H A Dmsan.test4 RUN: not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s --check-prefix=NO-REPORT
7 RUN: not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s --check-prefix=NO-REPORT
10 RUN: not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s --check-prefix=NO-REPORT
13 RUN: not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s --check-prefix=NO-REPORT
20 RUN: not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s --check-prefix=REPORT
23 RUN: not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s --check-prefix=REPORT
H A Dmax-number-of-runs.test3 RUN: %run %t-AccumulateAllocationsTest -seed=1 -runs=2 2>&1 | FileCheck %s --check-prefix=CHECK1
6 RUN: %run %t-AccumulateAllocationsTest -seed=1 -runs=3 2>&1 | FileCheck %s --check-prefix=CHECK2
9 RUN: %run %t-AccumulateAllocationsTest -seed=1 -runs=4 2>&1 | FileCheck %s --check-prefix=CHECK3
H A Dvalue-profile-switch.test8 RUN: not %run %t-SwitchTest -use_cmp=0 -use_value_profile=1 -runs=100000000 -seed=1 2>&1 | FileChe…
9 RUN: not %run %t-Switch2Test -use_cmp=0 -use_value_profile=1 -runs=100000000 -seed=1 2>&1 | FileChe…
10 RUN: not %run %t-Switch3Test -use_cmp=0 -use_value_profile=1 -runs=100000000 -seed=1 2>&1
H A Dshrink.test3 RUN: %run %t-ShrinkControlFlowTest -seed=1 -exit_on_item=0eb8e4ed029b774d80f2b66408203801cb982a60 -…
5 RUN: %run %t-ShrinkControlFlowTest -seed=1 -exit_on_item=0eb8e4ed029b774d80f2b66408203801cb982a60 -…
6 RUN: %run %t-ShrinkValueProfileTest -seed=1 -exit_on_item=aea2e3923af219a8956f626558ef32f30a914ebc …
H A Dcross_over.test3 # ABCDEFGHIJ when given two other inputs in the seed corpus:
15 RUN: not %run %t-CrossOverTest -max_len=10 -reduce_inputs=0 -seed=1 -runs=10000000 %t-corpus
18 RUN: not %run %t-CrossOverTest -max_len=10 -reduce_inputs=0 -seed=1 -runs=10000000 -seed_inputs=%t-…
H A Dcross_over_copy.test3 # ABCDEFGHIJ when given two other inputs in the seed corpus:
15 RUN: not %run %t-CrossOverTest -mutate_depth=1 -max_len=1024 -reduce_inputs=0 -seed=1 -runs=1000000…
18 RUN: not %run %t-CrossOverTest -mutate_depth=1 -max_len=1024 -reduce_inputs=0 -seed=1 -runs=1000000…
/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Posix/
H A Dhalt_on_error-signals.c20 void random_delay(unsigned *seed) { in random_delay() argument
21 *seed = 1664525 * *seed + 1013904223; in random_delay()
22 struct timespec delay = { 0, (*seed % 1000) * 1000 }; in random_delay()
48 unsigned seed = 0; in sender() local
50 random_delay(&seed); in sender()
62 unsigned seed = 1; in receiver() local
64 random_delay(&seed); in receiver()
H A Dhalt_on_error-torture.cpp27 void random_delay(unsigned *seed) { in random_delay() argument
28 *seed = 1664525 * *seed + 1013904223; in random_delay()
29 struct timespec delay = { 0, static_cast<long>((*seed % 1000) * 1000) }; in random_delay()
34 unsigned seed = (unsigned)(size_t)arg; in run() local
40 random_delay(&seed); in run()
/llvm-project-15.0.7/polly/lib/External/isl/imath/tools/
H A Dfindthreshold.py27 def get_timing_stats(num_tests, precision, threshold, seed=None): argument
39 if seed is None:
40 seed = int(time.time())
43 './imtimer -mn -p %d -t %d -s %d %d' % (precision, threshold, seed,
49 return seed, int(bits), float(total)
63 seed = int(time.time())
72 s, b, t = get_timing_stats(1000, prec, thresh, seed)
73 sp, bp, tp = get_timing_stats(1000, prec, prec + 1, seed)
/llvm-project-15.0.7/llvm/test/MC/RISCV/
H A Drvk-user-csr-name.s17 # seed
19 # CHECK-INST: csrrs t1, seed, zero
21 # CHECK-INST-ALIAS: csrr t1, seed
23 # CHECK-INST: csrrs t2, seed, zero
25 # CHECK-INST-ALIAS: csrr t2, seed
27 csrrs t1, seed, zero
/llvm-project-15.0.7/compiler-rt/lib/hwasan/
H A Dhwasan_thread.cpp16 u32 seed; in RandomSeed() local
18 if (UNLIKELY(!GetRandom(reinterpret_cast<void *>(&seed), sizeof(seed), in RandomSeed()
20 seed = static_cast<u32>( in RandomSeed()
24 } while (!seed); in RandomSeed()
25 return seed; in RandomSeed()
/llvm-project-15.0.7/llvm/docs/CommandGuide/
H A Dllvm-stress.rst9 :program:`llvm-stress` [-size=filesize] [-seed=initialseed] [-o=outfile]
28 .. option:: -seed seed
30 Specify the seed to be used for the randomly generated instructions.
/llvm-project-15.0.7/llvm/test/CodeGen/AArch64/
H A Darm64-fast-isel-gv.ll4 @seed = common global i64 0, align 8
12 store i64 74755, i64* @seed, align 8
33 %0 = load i64, i64* @seed, align 8
37 store i64 %and, i64* @seed, align 8
38 %1 = load i64, i64* @seed, align 8
/llvm-project-15.0.7/libc/AOR_v20.02/math/test/rtest/
H A Drandom.c15 void seed_random(uint32 seed) { in seed_random() argument
20 seed = seed % 44488 * 48271 - seed / 44488 * 3399; in seed_random()
21 seedbuf[i] = seed - 1; in seed_random()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_hash.h20 static const u32 seed = 0x9747b28c; variable
25 explicit MurMur2HashBuilder(u32 init = 0) { h = seed ^ init; }
44 static const u64 seed = 0x9747b28c9747b28cull; variable
49 explicit MurMur2Hash64Builder(u64 init = 0) { h = seed ^ (init * m); }
/llvm-project-15.0.7/compiler-rt/test/msan/
H A Drand_r.cpp9 unsigned seed; in main() local
11 seed = 42; in main()
13 int v = rand_r(&seed); in main()
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/cert/
H A Dmsc51-cpp.rst14 `MSC32-C. Properly seed pseudorandom number generators
15 <https://wiki.sei.cmu.edu/confluence/display/c/MSC32-C.+Properly+seed+pseudorandom+number+generator…
24 engine1.seed(); // Diagnose
25 engine2.seed(1); // Diagnose
28 engine1.seed(std::time(&t)); // Diagnose, system time might be controlled by user
/llvm-project-15.0.7/libcxx/include/__random/
H A Ddiscard_block_engine.h78 void seed() {__e_.seed(); __n_ = 0;} in seed() function
80 void seed(result_type __sd) {__e_.seed(__sd); __n_ = 0;} in seed() function
88 seed(_Sseq& __q) {__e_.seed(__q); __n_ = 0;} in seed() function

12345678