diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-04-26 15:50:38 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-04-26 15:50:38 -0600 |
commit | 1851f5e76018ec1df3b55dce6cc9a64c9497bf7a (patch) | |
tree | 30f629f7b137a494d4202487f4e22df2d9456481 /vaporize/tests/Factorial.opt.vaporm | |
parent | 012298517078170762112abe2654dc69b2f146e1 (diff) |
Rearrange directory structure
Diffstat (limited to 'vaporize/tests/Factorial.opt.vaporm')
-rw-r--r-- | vaporize/tests/Factorial.opt.vaporm | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/vaporize/tests/Factorial.opt.vaporm b/vaporize/tests/Factorial.opt.vaporm deleted file mode 100644 index fb5f8e6..0000000 --- a/vaporize/tests/Factorial.opt.vaporm +++ /dev/null @@ -1,30 +0,0 @@ -const empty_Fac - -func Main [in 0, out 0, local 0] - $a0 = :empty_Fac - $a1 = 10 - call :Fac.ComputeFac - $t0 = $v0 - PrintIntS($t0) - ret - -func Fac.ComputeFac [in 0, out 0, local 1] - local[0] = $s0 - $t0 = $a0 - $s0 = $a1 - $t1 = LtS($s0 1) - if0 $t1 goto :if1_else - $t1 = 1 - goto :if1_end -if1_else: - $t2 = Sub($s0 1) - $a0 = $t0 - $a1 = $t2 - call :Fac.ComputeFac - $t2 = $v0 - $t1 = MulS($s0 $t2) -if1_end: - $v0 = $t1 - $s0 = local[0] - ret - |