-
Notifications
You must be signed in to change notification settings - Fork 269
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
Invariant check fails with --z3
and --json-ui
#7308
Labels
aws
Bugs or features of importance to AWS CBMC users
Kani
Bugs or features of importance to Kani Rust Verifier
pending merge
Comments
zhassan-aws
added
aws
Bugs or features of importance to AWS CBMC users
Kani
Bugs or features of importance to Kani Rust Verifier
labels
Nov 8, 2022
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Nov 8, 2022
We record the values of expressions by adding `expr == expr` as constraints in order to be able to fetch and display them in the GOTO trace (for declaration; we presently also introduce new symbols in other cases). Constructing a trace then requires the ability to evaluate all kinds of expressions to obtain the value for those expressions. Fixes: diffblue#7308
3 tasks
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Nov 9, 2022
We record the values of expressions by adding `expr == expr` as constraints in order to be able to fetch and display them in the GOTO trace (for declaration; we presently also introduce new symbols in other cases). Constructing a trace then requires the ability to evaluate all kinds of expressions to obtain the value for those expressions. Fixes: diffblue#7308
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Nov 11, 2022
We record the values of expressions by adding `expr == expr` as constraints in order to be able to fetch and display them in the GOTO trace (for declaration; we presently also introduce new symbols in other cases). Constructing a trace then requires the ability to evaluate all kinds of expressions to obtain the value for those expressions. Fixes: diffblue#7308
Re-opening: I could reproduce the same invariant violation with CBMC 5.71.0 on a different program involving #include <assert.h>
int main(void)
{
_Bool x = 1;
assert(0);
return 0;
} $ cbmc --z3 nnn.c --json-ui
# -- snip --
}--- begin invariant violation report ---
Invariant check failed
File: ../src/goto-programs/json_goto_trace.cpp:122 function: convert_decl
Condition: step.full_lhs_value.is_not_nil()
Reason: full_lhs_value in assignment must not be nil
Backtrace:
cbmc(+0xa7a7d0) [0x563f38c047d0]
cbmc(+0xa7ad79) [0x563f38c04d79]
cbmc(+0x1eb218) [0x563f38375218]
cbmc(+0x689d16) [0x563f38813d16]
cbmc(+0x3418b2) [0x563f384cb8b2]
cbmc(+0x35bb6c) [0x563f384e5b6c]
cbmc(+0x1f25f4) [0x563f3837c5f4]
cbmc(+0x1f1aca) [0x563f3837baca]
cbmc(+0x1e92af) [0x563f383732af]
cbmc(+0x1d5359) [0x563f3835f359]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7fec6853e0b3]
cbmc(+0x1eac2e) [0x563f38374c2e]
--- end invariant violation report ---
Aborted (core dumped) Similar to above, removing |
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Nov 29, 2022
We had the ability to parse literals of c_bool type, but parse_rec did not consider this type. Fixes: diffblue#7308
3 tasks
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Nov 29, 2022
We had the ability to parse literals of c_bool type, but parse_rec did not consider this type. Fixes: diffblue#7308
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
aws
Bugs or features of importance to AWS CBMC users
Kani
Bugs or features of importance to Kani Rust Verifier
pending merge
This test is the same one in #7185, but with an extra assert:
Running it with
--z3
and--json-ui
causes an invariant violation:This doesn't crash if I remove either of the
--z3
or the--json-ui
options.CBMC version: 5.69.1
Operating system: Ubuntu 20.04
Exact command line resulting in the issue:
cbmc unit2.c --z3 --json-ui
What behaviour did you expect: Verification fails
What happened instead: CBMC crashed
The text was updated successfully, but these errors were encountered: