Update IR's helper functions

This commit is contained in:
Jeehoon Kang
2020-04-11 12:20:53 +09:00
parent 6edb4665c0
commit 72ec63ea82
19 changed files with 505 additions and 125 deletions

16
examples/logical_op.c Normal file
View File

@@ -0,0 +1,16 @@
int main() {
int a = 0;
int b = 0;
int c = 0;
int d = 0;
if ((a = 1) || (b = 1)) {
b++;
}
if ((c = 1) && (d = 1)) {
d++;
}
return b == 1 && d == 2;
}