@@ -164,7 +164,7 @@ void dep_graph_domaint::data_dependencies(
164164 // TODO use (future) reaching-definitions-dereferencing rw_set
165165 value_setst &value_sets=
166166 dep_graph.reaching_definitions ().get_value_sets ();
167- rw_range_set_value_sett rw_set (ns, value_sets);
167+ rw_range_set_value_sett rw_set (ns, value_sets, message_handler );
168168 goto_rw (function_to, to, rw_set);
169169
170170 for (const auto &read_object_entry : rw_set.get_r_set ())
@@ -341,28 +341,35 @@ jsont dep_graph_domaint::output_json(
341341class dep_graph_domain_factoryt : public ai_domain_factoryt <dep_graph_domaint>
342342{
343343public:
344- explicit dep_graph_domain_factoryt (dependence_grapht &_dg) : dg(_dg)
344+ dep_graph_domain_factoryt (
345+ dependence_grapht &_dg,
346+ message_handlert &message_handler)
347+ : dg(_dg), message_handler(message_handler)
345348 {
346349 }
347350
348351 std::unique_ptr<statet> make (locationt l) const override
349352 {
350353 auto node_id = dg.add_node ();
351354 dg.nodes [node_id].PC = l;
352- auto p = std::make_unique<dep_graph_domaint>(node_id);
355+ auto p = std::make_unique<dep_graph_domaint>(node_id, message_handler );
353356 CHECK_RETURN (p->is_bottom ());
354357
355358 return std::unique_ptr<statet>(p.release ());
356359 }
357360
358361private:
359362 dependence_grapht &dg;
363+ message_handlert &message_handler;
360364};
361365
362- dependence_grapht::dependence_grapht (const namespacet &_ns)
363- : ait<dep_graph_domaint>(std::make_unique<dep_graph_domain_factoryt>(*this )),
366+ dependence_grapht::dependence_grapht (
367+ const namespacet &_ns,
368+ message_handlert &message_handler)
369+ : ait<dep_graph_domaint>(
370+ std::make_unique<dep_graph_domain_factoryt>(*this , message_handler)),
364371 ns(_ns),
365- rd(ns)
372+ rd(ns, message_handler )
366373{
367374}
368375
0 commit comments