[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / llvm / test / tools / llvm-reduce / Inputs / remove-args.py
blobfea62c3174e060cee2ffd6312ec356676068352c
1 import sys
3 InterestingArgumentPresent = False
4 FunctionCallPresent = False
6 input = open(sys.argv[1], "r")
7 for line in input:
8 if "%interesting" in line:
9 InterestingArgumentPresent = True
10 if "call void @interesting" in line:
11 FunctionCallPresent = True
13 if InterestingArgumentPresent and FunctionCallPresent:
14 sys.exit(0) # Interesting!
16 sys.exit(1)