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>
@@ -206,7 +207,11 @@ static bool filter_out(
206
207
source_location.get_file ().empty () ||
207
208
source_location.is_built_in () ||
208
209
source_location.get_line ().empty ())
209
- return true ;
210
+ {
211
+ const irep_idt id=source_location.get_function ();
212
+ if (!(has_prefix (id2string (id), CPROVER_PREFIX) && it->is_assert ()))
213
+ return true ;
214
+ }
210
215
211
216
return false ;
212
217
}
@@ -322,6 +327,7 @@ void graphml_witnesst::operator()(const goto_tracet &goto_trace)
322
327
graphml[node].line =source_location.get_line ();
323
328
graphml[node].is_violation =
324
329
it->type ==goto_trace_stept::typet::ASSERT && !it->cond_value ;
330
+
325
331
graphml[node].has_invariant =false ;
326
332
327
333
step_to_node[it->step_nr ]=node;
You can’t perform that action at this time.
0 commit comments