Skip to content

Commit 63e9312

Browse files
Cleanup invariants in remove_unused_functions
1 parent 7181397 commit 63e9312

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/goto-programs/remove_unused_functions.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ void find_used_functions(
7878
const code_function_callt &call = to_code_function_call(it->code);
7979

8080
// check that this is actually a simple call
81-
assert(call.function().id()==ID_symbol);
81+
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");
8285

8386
const irep_idt &identifier =
8487
to_symbol_expr(call.function()).get_identifier();

0 commit comments

Comments
 (0)