Skip to content

Commit e36c5f1

Browse files
Make ai_baset::operator() work with abstract_goto_modelt
There is no need to restrict it to goto_modelt, this makes it easier to use in some contexts.
1 parent 7734b53 commit e36c5f1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/analyses/ai.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ class ai_baset
6868
}
6969

7070
/// Run abstract interpretation on a whole program
71-
void operator()(const goto_modelt &goto_model)
71+
void operator()(const abstract_goto_modelt &goto_model)
7272
{
73-
const namespacet ns(goto_model.symbol_table);
74-
initialize(goto_model.goto_functions);
75-
entry_state(goto_model.goto_functions);
76-
fixedpoint(goto_model.goto_functions, ns);
73+
const namespacet ns(goto_model.get_symbol_table());
74+
initialize(goto_model.get_goto_functions());
75+
entry_state(goto_model.get_goto_functions());
76+
fixedpoint(goto_model.get_goto_functions(), ns);
7777
finalize();
7878
}
7979

@@ -374,7 +374,7 @@ class ai_baset
374374
/// \ref ai_baset#operator()(const irep_idt&,const goto_programt&, <!--
375375
/// --> const namespacet&),
376376
/// \ref ai_baset#operator()(const goto_functionst&,const namespacet&)
377-
/// and \ref ai_baset#operator()(const goto_modelt&)
377+
/// and \ref ai_baset#operator()(const abstract_goto_modelt&)
378378
/// 2. Accessing the results of an analysis, by looking up the result
379379
/// for a given location \p l using
380380
/// \ref ait#operator[](goto_programt::const_targett).

0 commit comments

Comments
 (0)