projects
/
testub10.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Instr count update
[testub10.git]
/
parser
/
snafu_02.0
1
struct s a b end;
2
3
method main(argc argv)
4
var foo := 0;
5
if((3 - 1) < foo) then
6
foo := 20;
7
else
8
bar(x, y);
9
end;
10
11
s.a();
12
s.b(z);
13
s.b(y,z);
14
15
return foo;
16
end;
17
18
method bar()
19
var min := 3 - b - 19 - 29 - - 29;
20
var prod := 1 * 2 * 3 * 4 * 5;
21
var mixed := bla < (29 * 2);
22
23
var foobar := 0;
24
while(foobar < 10) do
25
foobar := not ((not foobar) - 1);
26
end;
27
28
return 0;
29
end;