Mercurial > lcfOS
diff python/testir.py @ 174:3eb06f5fb987
Added memory alloc for locals
author | Windel Bouwman |
---|---|
date | Fri, 19 Apr 2013 19:22:52 +0200 |
parents | c1d2b6b9f9a7 |
children | a51b3c956386 |
line wrap: on
line diff
--- a/python/testir.py Fri Apr 19 12:42:21 2013 +0200 +++ b/python/testir.py Fri Apr 19 19:22:52 2013 +0200 @@ -27,7 +27,11 @@ function int add2(int x, int y) { var int res; - res = x + y; + res = x + y + 2 - 7 + 2; + if (x > 13) + { + res = res + 2; + } return res; } @@ -60,4 +64,3 @@ ir.dumpgv(f) os.system('dot -Tpdf -ograaf.pdf graaf.gv') -