summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-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;)