1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/Reduce/Inputs/remove-args.py

17 lines
361 B
Python
Raw Normal View History

import sys
InterestingArgumentPresent = False
FunctionCallPresent = False
input = open(sys.argv[1], "r")
for line in input:
if "%interesting" in line:
InterestingArgumentPresent = True
if "call void @interesting" in line:
FunctionCallPresent = True
if InterestingArgumentPresent and FunctionCallPresent:
sys.exit(0) # Interesting!
sys.exit(1)