diff options
Diffstat (limited to 'Test/inline/test3.bpl')
-rw-r--r-- | Test/inline/test3.bpl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Test/inline/test3.bpl b/Test/inline/test3.bpl new file mode 100644 index 00000000..f705e7b0 --- /dev/null +++ b/Test/inline/test3.bpl @@ -0,0 +1,28 @@ +
+var glb:int;
+
+procedure recursivetest()
+modifies glb;
+{
+ glb := 5;
+ call glb := recursive(glb);
+
+ return;
+
+}
+
+procedure {:inline 3} recursive(x:int) returns (y:int)
+{
+
+ var k: int;
+
+ if(x == 0) {
+ y := 1;
+ return;
+ }
+
+ call k := recursive(x-1);
+ y := y + k;
+ return;
+
+}
\ No newline at end of file |