File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,16 @@ const goto_tracet &goto_trace_storaget::insert(goto_tracet &&trace)
25
25
return traces.back ();
26
26
}
27
27
28
+ const goto_tracet &goto_trace_storaget::insert_all (goto_tracet &&trace)
29
+ {
30
+ traces.push_back (std::move (trace));
31
+ for (const auto &property_id : traces.back ().get_all_property_ids ())
32
+ {
33
+ property_id_to_trace_index.emplace (property_id, traces.size () - 1 );
34
+ }
35
+ return traces.back ();
36
+ }
37
+
28
38
const std::vector<goto_tracet> &goto_trace_storaget::all () const
29
39
{
30
40
return traces;
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ class goto_trace_storaget
23
23
// / Store trace that ends in a violated assertion
24
24
const goto_tracet &insert (goto_tracet &&);
25
25
26
+ // / Store trace that contains multiple violated assertions
27
+ const goto_tracet &insert_all (goto_tracet &&);
28
+
26
29
const std::vector<goto_tracet> &all () const ;
27
30
const goto_tracet &operator [](const irep_idt &property_id) const ;
28
31
You can’t perform that action at this time.
0 commit comments