diff options
-rw-r--r-- | Source/VCGeneration/StratifiedVC.cs | 1 | ||||
-rw-r--r-- | Test/stratifiedinline/Answer | 7 | ||||
-rw-r--r-- | Test/stratifiedinline/bar12.bpl | 8 | ||||
-rw-r--r-- | Test/stratifiedinline/runtest.bat | 3 |
4 files changed, 18 insertions, 1 deletions
diff --git a/Source/VCGeneration/StratifiedVC.cs b/Source/VCGeneration/StratifiedVC.cs index ce0eb0a0..c394154d 100644 --- a/Source/VCGeneration/StratifiedVC.cs +++ b/Source/VCGeneration/StratifiedVC.cs @@ -2178,7 +2178,6 @@ namespace VC { string calleeName = naryExpr.Fun.FunctionName;
VCExprNAry callExpr = retnary[0] as VCExprNAry;
-
if (implName2StratifiedInliningInfo.ContainsKey(calleeName)) {
Contract.Assert(callExpr != null);
diff --git a/Test/stratifiedinline/Answer b/Test/stratifiedinline/Answer index dd5344e8..d2600aad 100644 --- a/Test/stratifiedinline/Answer +++ b/Test/stratifiedinline/Answer @@ -502,3 +502,10 @@ Execution trace: Boogie program verifier finished with 0 verified, 1 error
-----
+----- Running regression test bar12.bpl
+(0,0): Error BP5001: This assertion might not hold.
+Execution trace:
+ bar12.bpl(6,4): anon0
+
+Boogie program verifier finished with 0 verified, 1 error
+-----
diff --git a/Test/stratifiedinline/bar12.bpl b/Test/stratifiedinline/bar12.bpl new file mode 100644 index 00000000..863f9dc0 --- /dev/null +++ b/Test/stratifiedinline/bar12.bpl @@ -0,0 +1,8 @@ +function {:inline} f(a:bool) : bool { true }
+
+procedure {:entrypoint} main()
+{
+ var x: int;
+ assume f(x >= 0);
+ assume x >= 0;
+}
diff --git a/Test/stratifiedinline/runtest.bat b/Test/stratifiedinline/runtest.bat index 07261c4d..d4b9c811 100644 --- a/Test/stratifiedinline/runtest.bat +++ b/Test/stratifiedinline/runtest.bat @@ -34,4 +34,7 @@ echo ----- echo ----- Running regression test bar11.bpl
%BGEXE% %* /stratifiedInline:1 /vc:i bar11.bpl
echo -----
+echo ----- Running regression test bar12.bpl
+%BGEXE% %* /stratifiedInline:1 /vc:i bar12.bpl
+echo -----
|