From bbfe57fbf0c7ff2c2b01f6020a7fda199efe15d8 Mon Sep 17 00:00:00 2001 From: qadeer Date: Fri, 8 Aug 2014 10:35:15 -0700 Subject: fixed codexpr bug reported by Michael Emmi; removed special handling of codexpr in InjectPostConditions --- Test/codeexpr/codeExprBug.bpl | 15 +++++++++++++++ Test/codeexpr/codeExprBug.bpl.expect | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 Test/codeexpr/codeExprBug.bpl create mode 100644 Test/codeexpr/codeExprBug.bpl.expect (limited to 'Test') diff --git a/Test/codeexpr/codeExprBug.bpl b/Test/codeexpr/codeExprBug.bpl new file mode 100644 index 00000000..4eb86789 --- /dev/null +++ b/Test/codeexpr/codeExprBug.bpl @@ -0,0 +1,15 @@ +// RUN: %boogie "%s" > "%t" +// RUN: %diff "%s.expect" "%t" +procedure p() returns ($r: int); + ensures |{ $bb0: return ($r == 1); }|; + +implementation p() returns ($x: int) +{ + $x := 1; + return; +} + +procedure q() + ensures |{ var $b: bool; $0: $b := true; goto $1; $1: return $b; }|; +{ +} diff --git a/Test/codeexpr/codeExprBug.bpl.expect b/Test/codeexpr/codeExprBug.bpl.expect new file mode 100644 index 00000000..3de74d3e --- /dev/null +++ b/Test/codeexpr/codeExprBug.bpl.expect @@ -0,0 +1,2 @@ + +Boogie program verifier finished with 2 verified, 0 errors -- cgit v1.2.3