Skip to content

Commit 56ab83a

Browse files
author
casse
committed
Added NOTES about the if/goto/else/label problem.
1 parent 3e4e45c commit 56ab83a

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

calipso/NOTES.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
IMPROVEMENT
2+
3+
The form below:
4+
if(c) {
5+
S1;
6+
if(c') goto l;
7+
S2;
8+
}
9+
else {
10+
S1';
11+
l:
12+
S2';
13+
}
14+
would be better tranformed to:
15+
_t1 = c;
16+
if(_t1) {
17+
S1;
18+
_t2 = c';
19+
if(!_t1)
20+
S2;
21+
}
22+
if(!_t1 || _t2) {
23+
_t1 = 0;
24+
if(!_t2)
25+
S1';
26+
_t2 = 0;
27+
S2';
28+
}
29+
30+
To do soon.

0 commit comments

Comments
 (0)