Files
llvm/test/Reduce/Inputs/remove-instructions.py
T
David Zarzycki 251014ce79 [Testing] Python 3 requires print to use parens
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372392 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-20 13:52:47 +00:00

18 lines
316 B
Python
Executable File

import sys
InterestingInstructions = 0
input = open(sys.argv[1], "r")
for line in input:
i = line.find(';')
if i >= 0:
line = line[:i]
if "%interesting" in line:
InterestingInstructions += 1
print(InterestingInstructions)
if InterestingInstructions == 5:
sys.exit(0) # interesting!
sys.exit(1)