mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-18 13:16:24 -04:00
251014ce79
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372392 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
316 B
Python
Executable File
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)
|