repo.or.cz
/
smatch.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
allocations: set the ->total_size, ->nr_elem and ->elem_size expressions
[smatch.git]
/
validation
/
mem2reg
/
loop02-pointer.c
blob
fdb0a8fb5ffc025d15be1bbfdc6355d6172ac476
1
2
3
int
foo
(
int
*
i
)
4
{
5
int
j
=
1
;
6
*
i
=
6
;
7
8
do
{
9
if
(*
i
!=
6
)
10
(*
i
)++;
11
(*
i
)++;
12
}
while
(*
i
!=
j
);
13
14
return
j
;
15
}
16
17
/*
18
* check-name: loop02 pointer
19
* check-command: test-linearize -Wno-decl -fdump-ir=mem2reg $file
20
* check-output-ignore
21
* check-output-pattern(0,4): load\\.
22
* check-output-pattern(1,3): store\\.
23
*/