-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crashes with verification coverage + counterexamples (#817)
Previously, running Boogie with `/trackVerificationCoverage` and `/enhancedErrorMessages:1` (or anything that leads to counterexample parsing) would lead to crashes when verification failed. This fixes that issue.
- Loading branch information
Showing
6 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// RUN: %boogie /trackVerificationCoverage /enhancedErrorMessages:1 "%s" > "%t" | ||
// RUN: %diff "%s.expect" "%t" | ||
procedure P(x: int) { | ||
assume {:id "id1"} x < 100; | ||
assert {:id "id2"} x < 10; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
verificationCoverageCounterexample.bpl(5,3): Error: this assertion could not be proved | ||
Execution trace: | ||
verificationCoverageCounterexample.bpl(4,3): anon0 | ||
|
||
Boogie program verifier finished with 0 verified, 1 error |