brintos

brintos / llvm-project-archived public Read only

0
0
Text · 335 B · c939645 Raw
18 lines · python
1import sys2 3InterestingInstructions = 04 5input = open(sys.argv[1], "r")6for line in input:7    i = line.find(";")8    if i >= 0:9        line = line[:i]10    if "%interesting" in line:11        InterestingInstructions += 112    print(InterestingInstructions)13 14if InterestingInstructions == 5:15    sys.exit(0)  # interesting!16 17sys.exit(1)18