summaryrefslogtreecommitdiff
path: root/output/ex43.vapor
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-05-03 17:50:02 -0600
committerbd-912 <bdunahu@colostate.edu>2024-05-03 17:50:02 -0600
commit8b481ec08efa60d462897a98bec3f6761c2933d1 (patch)
tree04e43861a364b8a9fe052057412f0c852c3ce334 /output/ex43.vapor
parente8be6dd157bed1b09312aa360ec8ee2f41813d0f (diff)
Move creating temporaries to Expression statements in BoilVisitor
Diffstat (limited to 'output/ex43.vapor')
-rw-r--r--output/ex43.vapor59
1 files changed, 36 insertions, 23 deletions
diff --git a/output/ex43.vapor b/output/ex43.vapor
index 08eb00d..4c06826 100644
--- a/output/ex43.vapor
+++ b/output/ex43.vapor
@@ -1,35 +1,48 @@
func Main()
t.4 = HeapAllocZ(4)
[t.4+0] = :functable_A
- t.3 = t.4
- t.3 = t.3
- t.6 = [t.3+0]
- t.7 = [t.6+0]
- t.5 = call t.7(t.3 )
- t.8 = t.5
- PrintIntS(t.8)
+ t.5 = t.4
+ t.6 = t.5
+ t.3 = t.6
+ t.8 = t.3
+ t.3 = t.8
+ t.9 = [t.3+0]
+ t.10 = [t.9+0]
+ t.7 = call t.10(t.3)
+ t.11 = t.7
+ t.12 = t.11
+ PrintIntS(t.12)
ret
const functable_A
:A_foo
func A_foo(this )
- t.0 = 1
- t.2 = 5
- t.3 = t.0
- t.1 = LtS(t.2 t.3)
- t.4 = t.1
- if0 t.4 goto :if5_else
-if5_body:
- t.5 = 1
- PrintIntS(t.5)
- goto :if5_end
-if5_else:
- t.6 = 0
- PrintIntS(t.6)
-if5_end:
- t.7 = t.0
- ret t.7
+ t.1 = 1
+ t.2 = t.1
+ t.0 = t.2
+ t.4 = 5
+ t.5 = t.0
+ t.3 = LtS(t.4 t.5)
+ t.6 = t.3
+ t.7 = t.6
+ if0 t.7 goto :if11_else
+if11_body:
+ t.8 = 1
+ t.9 = t.8
+ t.10 = t.9
+ PrintIntS(t.10)
+ goto :if11_end
+if11_else:
+ t.11 = 0
+ t.12 = t.11
+ t.13 = t.12
+ PrintIntS(t.13)
+if11_end:
+ t.14 = t.0
+ t.15 = t.14
+ t.16 = t.15
+ ret t.16
func AllocArray(size)
bytes = MulS(size 4)