This is the first commit in a series that will reformat all the python files in the LLVM repository. Reformatting is done with `black`. See more information here: https://discourse.llvm.org/t/rfc-document-and-standardize-python-code-style Reviewed By: jhenderson, JDevlieghere, MatzeB Differential Revision: https://reviews.llvm.org/D150545
17 lines
376 B
Python
Executable File
17 lines
376 B
Python
Executable File
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)
|