forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request diffblue#1375 from pkesseli/bugfix/uncaught-except…
…ions-invariant Account for replaced functions in exceptions_map
- Loading branch information
Showing
3 changed files
with
26 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
int main(void) | ||
{ | ||
int x; | ||
__CPROVER_assume(x < 10); | ||
__CPROVER_assert(x != 0, ""); | ||
return 0; | ||
} |
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,14 @@ | ||
CORE | ||
main.c | ||
|
||
^EXIT=10$ | ||
^SIGNAL=0$ | ||
VERIFICATION FAILED | ||
-- | ||
^warning: ignoring | ||
-- | ||
When compiling CBMC with -DDEBUG uncaught exception analysis prints an | ||
exceptions map per function. This test ensures that meta-functions which are | ||
replaced by explicit GOTO instructions (e.g. __CPROVER_assert, __CPROVER_assume) | ||
and thus do not occur as explicit function calls in the final GOTO program are | ||
handled correctly. |
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