repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Alignment][NFC] Allow constexpr Align
[llvm-complete.git]
/
test
/
Reduce
/
Inputs
/
remove-bbs.py
blob
71f099daaba0648cc6da79850a64ded683623d4b
1
import
sys
2
3
InterestingBBs
=
0
4
input
=
open
(
sys
.
argv
[
1
],
"r"
)
5
for
line
in
input
:
6
i
=
line
.
find
(
';'
)
7
if
i
>=
0
:
8
line
=
line
[:
i
]
9
if
line
.
startswith
(
"interesting"
)
or
"
%i
nteresting"
in
line
:
10
InterestingBBs
+=
1
11
12
if
InterestingBBs
==
6
:
13
sys
.
exit
(
0
)
# interesting!
14
15
sys
.
exit
(
1
)
# IR isn't interesting