repo.or.cz
/
chuck-blob.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
*** empty log message ***
[chuck-blob.git]
/
v2
/
test
/
p51_1.ck
blob
2008c27b0204b7194cf7d39e0c1ce29311c9b2c3
1
// int comp
2
3
1 => int x;
4
5
0 => int ret;
6
7
if ( x == 1 ) {
8
1 +=> ret;
9
}
10
11
if ( x != 1 ) {
12
2 +=> ret;
13
}
14
15
if ( x <= 1 ) {
16
4 +=> ret;
17
}
18
19
if ( x >= 1 ) {
20
8 +=> ret;
21
}
22
23
if ( x > 1 ) {
24
16 +=> ret;
25
}
26
27
if ( x < 1 ) {
28
32 +=> ret;
29
}
30
31
<<<ret>>>;
32
if ( ret == 13 ) <<<"success">>>;
33