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 7181397 commit 63e9312Copy full SHA for 63e9312
src/goto-programs/remove_unused_functions.cpp
@@ -78,7 +78,10 @@ void find_used_functions(
78
const code_function_callt &call = to_code_function_call(it->code);
79
80
// check that this is actually a simple call
81
- assert(call.function().id()==ID_symbol);
+ INVARIANT(
82
+ call.function().id() == ID_symbol,
83
+ "by this point, all kinds of function calls should have been "
84
+ "converted to simple function calls");
85
86
const irep_idt &identifier =
87
to_symbol_expr(call.function()).get_identifier();
0 commit comments