[clang-tidy][use-internal-linkage]fix false positives for global overloaded operator...
[llvm-project.git] / llvm / test / tools / llvm-reduce / Inputs / remove-bbs.py
blob4e5775a9dda97ef4ea090028860701648fc3d8ea
1 import sys
3 InterestingBBs = 0
4 input = open(sys.argv[1], "r")
5 for line in input:
6 i = line.find(";")
7 if i >= 0:
8 line = line[:i]
9 if line.startswith("interesting") or "%interesting" in line:
10 InterestingBBs += 1
12 if InterestingBBs == 6:
13 sys.exit(0) # interesting!
15 sys.exit(1) # IR isn't interesting