Skip to content

Commit ecb0e2b

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 ecb0e2b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/analyses/ai.h

Lines changed: 5 additions & 5 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

0 commit comments

Comments
 (0)