summaryrefslogtreecommitdiff
path: root/examples/boundedrecursion.pcdt
blob: 980ac364349b7ee25f15fb3e41e7fdfc3a61aa41 (plain)
1
2
3
4
5
6
7
8
9
store(1000; maxSize;)
store(
  (
    print(arg0())
    if(not(eq(arg0() maxSize())) incFunc(sum(1; arg0())))
  )
  incFunc;
)
incFunc(0;)