Skip to content

Commit 7a92a1b

Browse files
committed
Fixing cpplint issues.
1 parent f50d848 commit 7a92a1b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/taint-slicer/instrumentation_props.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,9 @@ void taint_build_instrumentation_props(
274274
if(functions.count(node.get_function_id())!=0UL)
275275
{
276276
goto_programt::instructiont const& I=*node.get_instruction_id();
277-
assert(I.type==FUNCTION_CALL);
278-
assert(to_code_function_call(I.code).function().id()==ID_symbol);
277+
INVARIANT(I.type==FUNCTION_CALL, "");
278+
INVARIANT(to_code_function_call(I.code).function().id()==ID_symbol,
279+
"It must be a call via function identifier.");
279280
const std::string full_function_name=as_string(to_symbol_expr(
280281
to_code_function_call(I.code).function()).get_identifier());
281282
if(callees.count(full_function_name)!=0UL &&

0 commit comments

Comments
 (0)