Home
last modified time | relevance | path

Searched refs:Len1 (Results 1 – 7 of 7) sorted by relevance

/external/llvm/lib/Fuzzer/test/
DCustomCrossOverTest.cpp44 size_t Len1 = R() % (Size1 - Offset1); in LLVMFuzzerCustomCrossOver() local
47 size_t Size = Len1 + Len2 + SeparatorLen; in LLVMFuzzerCustomCrossOver()
52 memcpy(Out, Data1 + Offset1, Len1); in LLVMFuzzerCustomCrossOver()
53 memcpy(Out + Len1, Separator, SeparatorLen); in LLVMFuzzerCustomCrossOver()
54 memcpy(Out + Len1 + SeparatorLen, Data2 + Offset2, Len2); in LLVMFuzzerCustomCrossOver()
56 return Len1 + Len2 + SeparatorLen; in LLVMFuzzerCustomCrossOver()
/external/llvm/lib/Fuzzer/
DFuzzerTraceState.cpp558 size_t Len1 = strlen(s1); in dfsan_weak_hook_strcmp() local
560 size_t N = std::min(Len1, Len2); in dfsan_weak_hook_strcmp()
562 dfsan_label L1 = dfsan_read_label(s1, Len1); in dfsan_weak_hook_strcmp()
587 size_t Len1 = fuzzer::InternalStrnlen(s1, n); in __sanitizer_weak_hook_strncmp() local
589 n = std::min(n, Len1); in __sanitizer_weak_hook_strncmp()
600 size_t Len1 = strlen(s1); in __sanitizer_weak_hook_strcmp() local
602 size_t N = std::min(Len1, Len2); in __sanitizer_weak_hook_strcmp()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp435 uint64_t Len1 = GetStringLength(Str1P); in optimizeStrCmp() local
436 if (Len1) in optimizeStrCmp()
437 annotateDereferenceableBytes(CI, 0, Len1); in optimizeStrCmp()
442 if (Len1 && Len2) { in optimizeStrCmp()
445 std::min(Len1, Len2)), in optimizeStrCmp()
457 if (canTransformToMemCmp(CI, Str2P, Len1, DL)) in optimizeStrCmp()
460 ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len1), B, DL, in optimizeStrCmp()
509 uint64_t Len1 = GetStringLength(Str1P); in optimizeStrNCmp() local
510 if (Len1) in optimizeStrNCmp()
511 annotateDereferenceableBytes(CI, 0, Len1); in optimizeStrNCmp()
[all …]
/external/rust/crates/libfuzzer-sys/libfuzzer/
DFuzzerTracePC.cpp633 size_t Len1 = fuzzer::InternalStrnlen(s1, n); in __sanitizer_weak_hook_strncmp() local
635 n = std::min(n, Len1); in __sanitizer_weak_hook_strncmp()
/external/llvm/lib/Analysis/
DValueTracking.cpp2918 uint64_t Len1 = GetStringLengthH(SI->getTrueValue(), PHIs); in GetStringLengthH() local
2919 if (Len1 == 0) return 0; in GetStringLengthH()
2922 if (Len1 == ~0ULL) return Len2; in GetStringLengthH()
2923 if (Len2 == ~0ULL) return Len1; in GetStringLengthH()
2924 if (Len1 != Len2) return 0; in GetStringLengthH()
2925 return Len1; in GetStringLengthH()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp270 uint64_t Len1 = GetStringLength(Str1P); in optimizeStrCmp() local
272 if (Len1 && Len2) { in optimizeStrCmp()
275 std::min(Len1, Len2)), in optimizeStrCmp()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DValueTracking.cpp3785 uint64_t Len1 = GetStringLengthH(SI->getTrueValue(), PHIs, CharSize); in GetStringLengthH() local
3786 if (Len1 == 0) return 0; in GetStringLengthH()
3789 if (Len1 == ~0ULL) return Len2; in GetStringLengthH()
3790 if (Len2 == ~0ULL) return Len1; in GetStringLengthH()
3791 if (Len1 != Len2) return 0; in GetStringLengthH()
3792 return Len1; in GetStringLengthH()