summaryrefslogtreecommitdiff
path: root/examples/boundedrecursion.pcdt
diff options
context:
space:
mode:
authorKai Stevenson <kai@kaistevenson.com>2023-02-17 17:02:17 -0800
committerKai Stevenson <kai@kaistevenson.com>2023-02-17 17:02:17 -0800
commit4f20821aaf6535ab7f074f104c0479ca9f320ce9 (patch)
treea0e890eb72cb85a1c92e711ac424a03ba3096721 /examples/boundedrecursion.pcdt
parent4c7d2719a27d3c2fc81cb9264fac1332bfb8848e (diff)
boundedrecursion.pcdt test file
Diffstat (limited to 'examples/boundedrecursion.pcdt')
-rw-r--r--examples/boundedrecursion.pcdt9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/boundedrecursion.pcdt b/examples/boundedrecursion.pcdt
new file mode 100644
index 0000000..980ac36
--- /dev/null
+++ b/examples/boundedrecursion.pcdt
@@ -0,0 +1,9 @@
+store(1000; maxSize;)
+store(
+ (
+ print(arg0())
+ if(not(eq(arg0() maxSize())) incFunc(sum(1; arg0())))
+ )
+ incFunc;
+)
+incFunc(0;)