[NFC] Maintainers.rst: align email address formatting
[llvm-project.git] / llvm / test / tools / llvm-reduce / remove-bbs-sequence.py
blobe211a8c6c76971f4b63f69bb23b0087d784afff7
1 import subprocess
2 import sys
4 opt = subprocess.run(
5 ["opt", "-passes=print<loops>", "-disable-output", sys.argv[1]],
6 stdout=subprocess.PIPE,
7 stderr=subprocess.PIPE,
10 stdout = opt.stdout.decode()
12 pattern = "Loop at depth 1 containing"
14 if pattern in opt.stderr.decode():
15 print("This is interesting!")
16 sys.exit(0)
17 else:
18 print("This is NOT interesting!")
19 sys.exit(1)