diff options
author | mikebarnett <unknown> | 2009-07-15 21:03:41 +0000 |
---|---|---|
committer | mikebarnett <unknown> | 2009-07-15 21:03:41 +0000 |
commit | ce1c2de044c91624370411e23acab13b0381949b (patch) | |
tree | 592539996fe08050ead5ee210c973801611dde40 /Test/aitest1/Bound.bpl |
Initial set of files.
Diffstat (limited to 'Test/aitest1/Bound.bpl')
-rw-r--r-- | Test/aitest1/Bound.bpl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Test/aitest1/Bound.bpl b/Test/aitest1/Bound.bpl new file mode 100644 index 00000000..02b2c460 --- /dev/null +++ b/Test/aitest1/Bound.bpl @@ -0,0 +1,28 @@ +const TEST: name;
+
+procedure P()
+{
+var i: int;
+var N: int;
+
+start:
+ assume N >= 0;
+ i := 0;
+ assert i <= N;
+ goto LoopHead;
+
+LoopHead:
+ goto LoopBody, AfterLoop;
+
+LoopBody:
+ assume i < N;
+ i := i + 1;
+ goto LoopHead;
+
+AfterLoop:
+ assume !(i < N);
+ assert i == N;
+ return;
+}
+
+type name;
\ No newline at end of file |