summaryrefslogtreecommitdiff
path: root/examples/boundedrecursion.pcdt
blob: bbe41940245ff9f239b05128f5638be3a4ea22f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
store(1000, "maxSize");
store(
  ref((
    print(arg0);
    if(none(eq(arg0, maxSize))
      incFunc(sum(1, arg0));
    )
  ));
  "incFunc";
);
incFunc(0);