Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support XML files containing failed results but no goto_trace field. #180

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AmPaschal
Copy link

Issue #, if available:

Description of changes:
Some CBMC solvers like CVC5 can generate a cbmc.xml file containing failed verification results but without the failure trace (or a goto_trace field). With the current behavior, cbmc_viewer will crash when invoked because line 353 will try to iterate through None. This commit fixes this bug.

Here is a sample XML file that triggers this crash

CBMC 6.3.1 (cbmc-6.3.1) CBMC version 6.3.1 (cbmc-6.3.1) 64-bit x86_64 linux

...

Running SMT2 ALL (with FPA) using CVC5 Runtime Solver: 0.00640582s Runtime decision procedure: 0.00703132s VERIFICATION ERROR

ERROR

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Some CBMC solvers like CVC5 can generate a cbmc.xml file containing failed verification results but without the failure trace (or a goto_trace field). With the current behavior, cbmc_viewer will crash when invoked because line 353 will try to iterate through None. This commit fixes this bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants