17 lines · python
1import sys2 3InterestingArgumentPresent = False4FunctionCallPresent = False5 6input = open(sys.argv[1], "r")7for line in input:8 if "%interesting" in line:9 InterestingArgumentPresent = True10 if "call void @interesting" in line:11 FunctionCallPresent = True12 13if InterestingArgumentPresent and FunctionCallPresent:14 sys.exit(0) # Interesting!15 16sys.exit(1)17