summaryrefslogtreecommitdiff
path: root/Test/extractloops/detLoopExtract.bpl
diff options
context:
space:
mode:
authorGravatar Unknown <Shuvendu@SHUVENDU-Z400.redmond.corp.microsoft.com>2012-05-25 11:22:51 -0700
committerGravatar Unknown <Shuvendu@SHUVENDU-Z400.redmond.corp.microsoft.com>2012-05-25 11:22:51 -0700
commite23a208872d904ae9f8e5e7fd57727e422b123a2 (patch)
tree1f1ebb2871214f447b7aa96e90a971b475e75da7 /Test/extractloops/detLoopExtract.bpl
parent8bd9e0a7727b2c6977a59ac4af4f82357b7ba39c (diff)
Fixed the regression for deterministicExtractLoops.
Diffstat (limited to 'Test/extractloops/detLoopExtract.bpl')
-rw-r--r--Test/extractloops/detLoopExtract.bpl14
1 files changed, 8 insertions, 6 deletions
diff --git a/Test/extractloops/detLoopExtract.bpl b/Test/extractloops/detLoopExtract.bpl
index 8965f93e..976d58d6 100644
--- a/Test/extractloops/detLoopExtract.bpl
+++ b/Test/extractloops/detLoopExtract.bpl
@@ -2,22 +2,22 @@ var g:int;
var h:int; //not modified
var k:int; //modified in a procedure call
-procedure Foo(a:int)
+procedure {:entrypoint} Foo(a:int)
modifies g;
modifies h;
modifies k;
-ensures g == old(g);
+//ensures g == old(g);
{
var b: int;
b := 0;
g := a;
h := 5;
-LH: assert (b + g == a);
+LH: //assert (b + g == a);
if (g == 0) {
goto LE;
}
- assume (b + g == a); // to help the loop extraction figure out the loop invariant
+ //assume (b + g == a); // to help the loop extraction figure out the loop invariant
b := b + 1;
call Bar();
g := g - 1;
@@ -26,10 +26,12 @@ LH: assert (b + g == a);
}
goto LH;
-LE: assert (b == a);
+LE:
-L2: g := old(g);
+L2: //g := old(g);
+ //assert (b == a);
+ assume (b != a);
return;
}