-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug with dynamic variables escaping static scopes getting diffe…
…rent names
- Loading branch information
1 parent
0d198fd
commit 47a9b59
Showing
20 changed files
with
297 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,66 @@ | ||
int isEven (int arg0) { | ||
int var1; | ||
if (arg0 == 0) { | ||
return 1; | ||
var1 = 1; | ||
return var1; | ||
} | ||
if (arg0 == 1) { | ||
return 0; | ||
var1 = 0; | ||
return var1; | ||
} | ||
if (arg0 == 2) { | ||
return 1; | ||
var1 = 1; | ||
return var1; | ||
} | ||
if (arg0 == 3) { | ||
return 0; | ||
var1 = 0; | ||
return var1; | ||
} | ||
if (arg0 == 4) { | ||
return 1; | ||
var1 = 1; | ||
return var1; | ||
} | ||
if (arg0 == 5) { | ||
return 0; | ||
var1 = 0; | ||
return var1; | ||
} | ||
if (arg0 == 6) { | ||
return 1; | ||
var1 = 1; | ||
return var1; | ||
} | ||
if (arg0 == 7) { | ||
return 0; | ||
var1 = 0; | ||
return var1; | ||
} | ||
if (arg0 == 8) { | ||
return 1; | ||
var1 = 1; | ||
return var1; | ||
} | ||
if (arg0 == 9) { | ||
return 0; | ||
var1 = 0; | ||
return var1; | ||
} | ||
if (arg0 == 10) { | ||
return 1; | ||
var1 = 1; | ||
return var1; | ||
} | ||
if (arg0 == 11) { | ||
return 0; | ||
var1 = 0; | ||
return var1; | ||
} | ||
if (arg0 == 12) { | ||
return 1; | ||
var1 = 1; | ||
return var1; | ||
} | ||
if (arg0 == 13) { | ||
return 0; | ||
var1 = 0; | ||
return var1; | ||
} | ||
if (arg0 == 14) { | ||
return 1; | ||
var1 = 1; | ||
return var1; | ||
} | ||
return 0; | ||
var1 = 0; | ||
return var1; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
void bar (void) { | ||
int z_1; | ||
int y_0 = 0; | ||
if (y_0) { | ||
z_1 = 1; | ||
} else { | ||
z_1 = 2; | ||
} | ||
int b_2; | ||
int a_3 = z_1; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.