diff options
author | qadeer <unknown> | 2010-09-10 07:42:17 +0000 |
---|---|---|
committer | qadeer <unknown> | 2010-09-10 07:42:17 +0000 |
commit | 30181ba4213413c32459d0f0de2ec77ed939c2dd (patch) | |
tree | 10f2751378bf82f73d7b078ac71120af446d0da0 /Test | |
parent | 34b52bfc6d4e62a7e8f8c71839952a386b372de2 (diff) |
added an optimization to extract loops so that only loop targets are treated as output variables of the extracted procedure.
Diffstat (limited to 'Test')
-rw-r--r-- | Test/lazyinline/Answer | 2 | ||||
-rw-r--r-- | Test/lazyinline/foo.bpl | 17 |
2 files changed, 17 insertions, 2 deletions
diff --git a/Test/lazyinline/Answer b/Test/lazyinline/Answer index 423695a5..ecb258a2 100644 --- a/Test/lazyinline/Answer +++ b/Test/lazyinline/Answer @@ -64,5 +64,5 @@ Boogie program verifier finished with 1 verified, 0 errors -----
----- Running regression test foo.bpl
-Boogie program verifier finished with 1 verified, 0 errors
+Boogie program verifier finished with 2 verified, 0 errors
-----
diff --git a/Test/lazyinline/foo.bpl b/Test/lazyinline/foo.bpl index 80b7b7b2..bd45258a 100644 --- a/Test/lazyinline/foo.bpl +++ b/Test/lazyinline/foo.bpl @@ -12,4 +12,19 @@ ensures g == 2; x := x - 1;
}
assert x == 2;
-}
\ No newline at end of file +}
+
+procedure B(j: int) returns (x: int)
+{
+ var i: int;
+ var y: int;
+
+ y := 0;
+ i := 0;
+ x := j;
+ while (i < 100) {
+ x := x + 1 + y;
+ i := i + 1;
+ }
+ assert y == 0;
+}
|