Skip to content

Commit

Permalink
nvm (a4): the r/r conflict is not a problem
Browse files Browse the repository at this point in the history
  • Loading branch information
SantriptaSharma committed Nov 24, 2023
1 parent 09a6944 commit 7b81f73
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 31 deletions.
2 changes: 1 addition & 1 deletion 15_A4.y
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ selection_statement:
Emit(Jump(AImm(0)));
}
}
| IF '(' expression ')' marker statement <next_list>{ $$ = MakeList(quads_size); Emit(Jump(AImm(0))); } ELSE marker statement {
| IF '(' expression ')' marker statement guard ELSE marker statement {
if ($3.truelist != NULL) {
Backpatch($3.truelist, $5); Backpatch($3.falselist, $9);
$$ = Merge($6, $7); $$ = Merge($$, $10);
Expand Down
29 changes: 0 additions & 29 deletions cex.txt

This file was deleted.

2 changes: 1 addition & 1 deletion iftest.nc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ int main() {
if (a >= b + 13 || a < 0 ) {
a = 5;
} else if (a > 5) {
b = 10
b = 10;
} else if (b < 1) {
b = a;
} else {
Expand Down

0 comments on commit 7b81f73

Please sign in to comment.