diff options
Diffstat (limited to 'boil/tests/Factorial.opt.vapor')
-rw-r--r-- | boil/tests/Factorial.opt.vapor | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/boil/tests/Factorial.opt.vapor b/boil/tests/Factorial.opt.vapor deleted file mode 100644 index aca17fe..0000000 --- a/boil/tests/Factorial.opt.vapor +++ /dev/null @@ -1,20 +0,0 @@ - -const empty_Fac - - -func Main() - t.0 = call :Fac.ComputeFac(:empty_Fac 10) - PrintIntS(t.0) - ret - -func Fac.ComputeFac(this num) - t.0 = LtS(num 1) - if0 t.0 goto :if1_else - num_aux = 1 - goto :if1_end - if1_else: - t.1 = Sub(num 1) - t.2 = call :Fac.ComputeFac(this t.1) - num_aux = MulS(num t.2) - if1_end: - ret num_aux |