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 f50d848 commit 7a92a1bCopy full SHA for 7a92a1b
src/taint-slicer/instrumentation_props.cpp
@@ -274,8 +274,9 @@ void taint_build_instrumentation_props(
274
if(functions.count(node.get_function_id())!=0UL)
275
{
276
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);
+ INVARIANT(I.type==FUNCTION_CALL, "");
+ INVARIANT(to_code_function_call(I.code).function().id()==ID_symbol,
279
+ "It must be a call via function identifier.");
280
const std::string full_function_name=as_string(to_symbol_expr(
281
to_code_function_call(I.code).function()).get_identifier());
282
if(callees.count(full_function_name)!=0UL &&
0 commit comments