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 a6ba5d1 commit bff4091Copy full SHA for bff4091
src/goto-programs/replace_calls.cpp
@@ -103,13 +103,12 @@ void replace_callst::operator()(
103
const code_assignt &ca = to_code_assign(next_it->code);
104
const exprt &rhs = ca.rhs();
105
106
- if(rhs.id() == ID_symbol)
107
- {
108
- const symbol_exprt &se = to_symbol_expr(rhs);
109
- INVARIANT(
110
- !has_suffix(id2string(se.get_identifier()), RETURN_VALUE_SUFFIX),
111
- "returns must not be removed before replacing calls");
112
- }
+ INVARIANT(
+ rhs.id() != ID_symbol ||
+ !has_suffix(
+ id2string(to_symbol_expr(rhs).get_identifier()),
+ RETURN_VALUE_SUFFIX),
+ "returns must not be removed before replacing calls");
113
}
114
115
// Finally modify the call
0 commit comments