Go to the documentation of this file.
24 #ifndef CPROVER_ANALYSES_FLOW_INSENSITIVE_ANALYSIS_H
25 #define CPROVER_ANALYSES_FLOW_INSENSITIVE_ANALYSIS_H
30 #include <unordered_set>
65 typedef std::unordered_set<exprt, irep_hash>
expr_sett;
76 virtual void clear(
void)=0;
204 const exprt &
function,
213 const goto_functionst::function_mapt::const_iterator f_it,
262 state.get_reference_set(
ns, expr, expr_set);
270 #endif // CPROVER_ANALYSES_FLOW_INSENSITIVE_ANALYSIS_H
virtual void update(const goto_programt &goto_program)
virtual ~flow_insensitive_abstract_domain_baset()
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
goto_programt::const_targett locationt
virtual statet & get_state()=0
bool visit(const irep_idt &function_id, locationt l, working_sett &working_set, const goto_programt &goto_program, const goto_functionst &goto_functions)
void get_reference_set(const exprt &expr, expr_sett &expr_set)
flow_insensitive_analysist(const namespacet &_ns)
virtual void initialize(const namespacet &ns)=0
Base class for all expressions.
recursion_sett recursion_set
virtual const statet & get_state() const
std::priority_queue< locationt > working_sett
exprt get_return_lhs(locationt to) const
virtual void initialize(const goto_programt &)
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
std::set< locationt > seen_locations
virtual void output(const namespacet &, std::ostream &) const
std::set< irep_idt > functions_donet
bool do_function_call_rec(const irep_idt &calling_function, locationt l_call, const exprt &function, const exprt::operandst &arguments, statet &new_state, const goto_functionst &goto_functions)
bool fixedpoint(const irep_idt &function_id, const goto_programt &goto_program, const goto_functionst &goto_functions)
virtual void operator()(const irep_idt &function_id, const goto_programt &goto_program)
virtual void get_reference_set(const exprt &expr, expr_sett &expr_set)=0
goto_programt::const_targett locationt
functions_donet functions_done
virtual void get_reference_set(const namespacet &, const exprt &, expr_sett &expr_set)
std::unordered_set< exprt, irep_hash > expr_sett
flow_insensitive_analysis_baset(const namespacet &_ns)
void put_in_working_set(working_sett &working_set, locationt l)
std::vector< exprt > operandst
flow_insensitive_abstract_domain_baset()
virtual ~flow_insensitive_analysis_baset()
virtual void output(const goto_functionst &goto_functions, std::ostream &out)
bool do_function_call(const irep_idt &calling_function, locationt l_call, const goto_functionst &goto_functions, const goto_functionst::function_mapt::const_iterator f_it, const exprt::operandst &arguments, statet &new_state)
std::map< locationt, unsigned > statistics
exprt get_guard(locationt from, locationt to) const
A collection of goto functions.
goto_programt::const_targett locationt
std::set< irep_idt > recursion_sett
virtual bool transform(const namespacet &ns, const irep_idt &function_from, locationt from, const irep_idt &function_to, locationt to)=0
flow_insensitive_abstract_domain_baset::expr_sett expr_sett
A generic container class for the GOTO intermediate representation of one function.
flow_insensitive_abstract_domain_baset statet
instructionst::const_iterator const_targett
virtual void initialize(const goto_functionst &)
virtual statet & get_state()
bool seen(const locationt &l)
locationt get_next(working_sett &working_set)
const T & get_data() const
virtual void clear(void)=0
static locationt successor(locationt l)