| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/cert/ |
| H A D | msc51-cpp.cpp | 6 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 D | Hashing.h | 248 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 D | randprime.c | 56 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 D | findprime.c | 37 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 D | rsakey.c | 65 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 D | random.cpp | 100 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 D | seed_inputs.test | 6 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 D | msan.test | 4 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 D | max-number-of-runs.test | 3 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 D | value-profile-switch.test | 8 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 D | shrink.test | 3 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 D | cross_over.test | 3 # 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 D | cross_over_copy.test | 3 # 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 D | halt_on_error-signals.c | 20 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 D | halt_on_error-torture.cpp | 27 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 D | findthreshold.py | 27 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 D | rvk-user-csr-name.s | 17 # 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 D | hwasan_thread.cpp | 16 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 D | llvm-stress.rst | 9 :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 D | arm64-fast-isel-gv.ll | 4 @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 D | random.c | 15 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 D | sanitizer_hash.h | 20 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 D | rand_r.cpp | 9 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 D | msc51-cpp.rst | 14 `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 D | discard_block_engine.h | 78 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
|