[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / tools / llvm-reduce / Inputs / remove-args.py
blobe003c6a6acecdecdc0c0754f58bd31c71da4cc49
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)