repo.or.cz
/
splint-patched.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Various minor fixes for compiler/linter (other then splint itself) warnings.
[splint-patched.git]
/
test
/
controldepth.c
blob
9f29001688237b05624ba0eed5e5e31f5e604aea
1
void
f
(
int
x
,
int
y
)
2
{
3
if
(
x
>
y
)
4
{
/* depth = 1 */
5
{
/* still, depth = 1 */
6
while
(
x
>
3
)
7
/* depth = 2 */
8
if
(
y
==
2
)
/* depth = 3 */
9
x
++;
10
11
if
(
y
==
2
)
12
x
++;
/* depth = 2 */
13
else
14
{
/* depth = 2 */
15
if
(
y
==
4
)
/* depth = 3 */
16
{
17
x
++;
18
}
19
else
20
{
21
y
++;
22
}
23
}
24
}
25
}
26
}