diff options
author | qadeer <unknown> | 2014-08-08 10:35:15 -0700 |
---|---|---|
committer | qadeer <unknown> | 2014-08-08 10:35:15 -0700 |
commit | bbfe57fbf0c7ff2c2b01f6020a7fda199efe15d8 (patch) | |
tree | a76517313dcd31059cfe2cab6bdb157cbb6c9773 /Test | |
parent | a645d5392e5d23c01fa17d543fc70f428794159c (diff) |
fixed codexpr bug reported by Michael Emmi; removed special handling of codexpr in InjectPostConditions
Diffstat (limited to 'Test')
-rw-r--r-- | Test/codeexpr/codeExprBug.bpl | 15 | ||||
-rw-r--r-- | Test/codeexpr/codeExprBug.bpl.expect | 2 |
2 files changed, 17 insertions, 0 deletions
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
|