aboutsummaryrefslogtreecommitdiff
path: root/sample/ack_3_5.in
diff options
context:
space:
mode:
authorShinya Sato <shinnya.sato@gmail.com>2022-07-25 17:11:39 +0900
committerShinya Sato <shinnya.sato@gmail.com>2022-07-25 17:11:39 +0900
commit9c8201b326a53472f144e8f1220da43451d22d7e (patch)
tree646113351830c1d06d9053e6e3c1a4b1a6d6dab7 /sample/ack_3_5.in
parent1f51c41a32e190d483ff336c34eb63acda27cbb6 (diff)
downloadinpla-9c8201b326a53472f144e8f1220da43451d22d7e.tar.gz
inpla-9c8201b326a53472f144e8f1220da43451d22d7e.zip
v0.9.0
Diffstat (limited to 'sample/ack_3_5.in')
-rw-r--r--sample/ack_3_5.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/sample/ack_3_5.in b/sample/ack_3_5.in
index 7b6e0bd..19f92fa 100644
--- a/sample/ack_3_5.in
+++ b/sample/ack_3_5.in
@@ -20,9 +20,13 @@ ack(ret, int m) >< (int n)
| n==0 => ack(ret, m-1)~1
| _ => ack(cnt, m)~(n-1), ack(ret, m-1)~cnt;
-ackMain(ret)><(int m, int n) => ack(ret,n)~m;
+ackMain(ret)><(int m, int n) => ack(ret,m)~n;
-ackMain(ret)~(3,5);
+
+// main
+const M=3;
+const N=5;
+ackMain(ret)~(M,N);
ret;
free ret;