repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git]
/
llvm
/
test
/
tools
/
llvm-reduce
/
Inputs
/
remove-instructions.py
blob
c9396457b42957bd101c981091903d841e526591
1
import
sys
2
3
InterestingInstructions
=
0
4
5
input
=
open
(
sys
.
argv
[
1
],
"r"
)
6
for
line
in
input
:
7
i
=
line
.
find
(
";"
)
8
if
i
>=
0
:
9
line
=
line
[:
i
]
10
if
"
%i
nteresting"
in
line
:
11
InterestingInstructions
+=
1
12
print
(
InterestingInstructions
)
13
14
if
InterestingInstructions
==
5
:
15
sys
.
exit
(
0
)
# interesting!
16
17
sys
.
exit
(
1
)