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
type: introduce get_final_type()
[smatch.git]
/
validation
/
sm_compare6.c
blob
60b8da73f51b55f8f2d16b3278e8d2a314387ef6
1
#include
"check_debug.h"
2
3
int
returns_less
(
int
x
)
4
{
5
int
y
;
6
7
if
(
x
>
10
)
8
y
=
10
;
9
else
10
y
=
x
;
11
12
__smatch_compare
(
x
,
y
);
13
return
y
;
14
}
15
16
/*
17
* check-name: smatch compare #6
18
* check-command: smatch -I.. sm_compare6.c
19
*
20
* check-output-start
21
sm_compare6.c:12 returns_less() x >= y
22
* check-output-end
23
*/