progs/fun/fun_llvm.sc
changeset 905 15973df32613
parent 870 739039774cee
child 958 fddf099a82f8
--- a/progs/fun/fun_llvm.sc	Fri Dec 09 13:18:10 2022 +0000
+++ b/progs/fun/fun_llvm.sc	Wed Dec 21 14:33:05 2022 +0000
@@ -113,6 +113,14 @@
 def CPSi(e: Exp) = CPS(e)(KReturn)
 
 //some testcases:
+// (1 + 2) * 3
+println(CPSi(Aop("*", Aop("+", Num(1), Num(2)), Num(3))).toString)
+
+// 3 * (1 + 2)
+println(CPSi(Aop("*", Num(3), Aop("+", Num(1), Num(2)))).toString)
+
+//some testcases:
+
 // numbers and vars   
 println(CPSi(Num(1)).toString)
 println(CPSi(Var("z")).toString)