File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ Author: Daniel Kroening
17
17
#include < util/byte_operators.h>
18
18
#include < util/c_types.h>
19
19
#include < util/arith_tools.h>
20
+ #include < util/cprover_prefix.h>
20
21
#include < util/prefix.h>
21
22
#include < util/ssa_expr.h>
22
23
#include < util/std_pair_hash.h>
@@ -218,7 +219,11 @@ static bool filter_out(
218
219
source_location.get_file ().empty () ||
219
220
source_location.is_built_in () ||
220
221
source_location.get_line ().empty ())
221
- return true ;
222
+ {
223
+ const irep_idt id=source_location.get_function ();
224
+ if (!(has_prefix (id2string (id), CPROVER_PREFIX) && it->is_assert ()))
225
+ return true ;
226
+ }
222
227
223
228
return false ;
224
229
}
@@ -334,6 +339,7 @@ void graphml_witnesst::operator()(const goto_tracet &goto_trace)
334
339
graphml[node].line =source_location.get_line ();
335
340
graphml[node].is_violation =
336
341
it->type ==goto_trace_stept::typet::ASSERT && !it->cond_value ;
342
+
337
343
graphml[node].has_invariant =false ;
338
344
339
345
step_to_node[it->step_nr ]=node;
You can’t perform that action at this time.
0 commit comments