diff options
| author | Kai Stevenson <kai@kaistevenson.com> | 2023-02-17 17:02:17 -0800 |
|---|---|---|
| committer | Kai Stevenson <kai@kaistevenson.com> | 2023-02-17 17:02:17 -0800 |
| commit | 4f20821aaf6535ab7f074f104c0479ca9f320ce9 (patch) | |
| tree | a0e890eb72cb85a1c92e711ac424a03ba3096721 /examples | |
| parent | 4c7d2719a27d3c2fc81cb9264fac1332bfb8848e (diff) | |
boundedrecursion.pcdt test file
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/boundedrecursion.pcdt | 9 |
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;) |
