We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f71943 commit aa9327dCopy full SHA for aa9327d
src/goto-symex/goto_symex.cpp
@@ -45,8 +45,12 @@ void goto_symext::symex_assign(
45
exprt lhs = clean_expr(o_lhs, state, true);
46
exprt rhs = clean_expr(o_rhs, state, false);
47
48
- DATA_INVARIANT(
49
- lhs.type() == rhs.type(), "assignments must be type consistent");
+ DATA_INVARIANT_WITH_DIAGNOSTICS(
+ lhs.type() == rhs.type(),
50
+ "assignments must be type consistent, got",
51
+ lhs.type().pretty(),
52
+ rhs.type().pretty(),
53
+ state.source.pc->source_location());
54
55
log.conditional_output(
56
log.debug(), [this, &lhs](messaget::mstreamt &mstream) {
0 commit comments