diff options
Diffstat (limited to 'Test/aitest1/Linear9.bpl')
-rw-r--r-- | Test/aitest1/Linear9.bpl | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Test/aitest1/Linear9.bpl b/Test/aitest1/Linear9.bpl new file mode 100644 index 00000000..e48a7a0c --- /dev/null +++ b/Test/aitest1/Linear9.bpl @@ -0,0 +1,29 @@ +procedure foo () returns ()
+{
+ var i: int;
+ var j: int;
+ var n: int;
+entry:
+ assume n >= 4;
+ i := 0;
+ j := i + 1;
+ // n >= 4 AND i = 0 AND j = i+1
+ goto exit, loop0;
+
+loop0:
+ // n >= 4 AND i >= 0 AND j = i+1
+ assume j <= n;
+ goto loop1;
+loop1:
+ // n >= 4 AND i >= 0 AND j = i+1 AND j <= n
+ i := i + 1;
+ goto loop2;
+loop2:
+ j := j + 1;
+ // n >= 4 AND i >= 1 AND j = i+1 AND j <= n+1
+ goto loop0, exit;
+
+exit:
+ // n >= 4 AND i >= 0 AND j = i+1 AND j <= n+1
+ return;
+}
|