Debian Codegraph @

llvm/test/tools/llvm-reduce/Inputs/remove-args.py

raw
1 import sys
2
3 InterestingArgumentPresent = False
4 FunctionCallPresent = False
5
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
12
13 if InterestingArgumentPresent and FunctionCallPresent:
14 sys.exit(0) # Interesting!
15
16 sys.exit(1)