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>
@@ -221,7 +222,11 @@ static bool filter_out(
221
222
source_location.get_file ().empty () ||
222
223
source_location.is_built_in () ||
223
224
source_location.get_line ().empty ())
224
- return true ;
225
+ {
226
+ const irep_idt id=source_location.get_function ();
227
+ if (!(has_prefix (id2string (id), CPROVER_PREFIX) && it->is_assert ()))
228
+ return true ;
229
+ }
225
230
226
231
return false ;
227
232
}
@@ -337,6 +342,7 @@ void graphml_witnesst::operator()(const goto_tracet &goto_trace)
337
342
graphml[node].line =source_location.get_line ();
338
343
graphml[node].is_violation =
339
344
it->type ==goto_trace_stept::typet::ASSERT && !it->cond_value ;
345
+
340
346
graphml[node].has_invariant =false ;
341
347
342
348
step_to_node[it->step_nr ]=node;
You can’t perform that action at this time.
0 commit comments