cprover
|
#include <ai.h>
Public Types | |
typedef ai_domain_baset | statet |
typedef goto_programt::const_targett | locationt |
Public Member Functions | |
ai_baset () | |
virtual | ~ai_baset () |
void | operator() (const goto_programt &goto_program, const namespacet &ns) |
void | operator() (const goto_functionst &goto_functions, const namespacet &ns) |
void | operator() (const goto_modelt &goto_model) |
void | operator() (const goto_functionst::goto_functiont &goto_function, const namespacet &ns) |
virtual void | clear () |
virtual void | output (const namespacet &ns, const goto_functionst &goto_functions, std::ostream &out) const |
void | output (const goto_modelt &goto_model, std::ostream &out) const |
void | output (const namespacet &ns, const goto_programt &goto_program, std::ostream &out) const |
void | output (const namespacet &ns, const goto_functionst::goto_functiont &goto_function, std::ostream &out) const |
virtual jsont | output_json (const namespacet &ns, const goto_functionst &goto_functions) const |
Output the domains for the whole program as JSON. More... | |
jsont | output_json (const goto_modelt &goto_model) const |
jsont | output_json (const namespacet &ns, const goto_programt &goto_program) const |
jsont | output_json (const namespacet &ns, const goto_functionst::goto_functiont &goto_function) const |
virtual xmlt | output_xml (const namespacet &ns, const goto_functionst &goto_functions) const |
Output the domains for the whole program as XML. More... | |
xmlt | output_xml (const goto_modelt &goto_model) const |
xmlt | output_xml (const namespacet &ns, const goto_programt &goto_program) const |
xmlt | output_xml (const namespacet &ns, const goto_functionst::goto_functiont &goto_function) const |
Protected Types | |
typedef std::map< unsigned, locationt > | working_sett |
typedef std::set< irep_idt > | recursion_sett |
Protected Member Functions | |
virtual void | initialize (const goto_programt &) |
virtual void | initialize (const goto_functionst::goto_functiont &) |
virtual void | initialize (const goto_functionst &) |
void | entry_state (const goto_programt &) |
void | entry_state (const goto_functionst &) |
virtual void | output (const namespacet &ns, const goto_programt &goto_program, const irep_idt &identifier, std::ostream &out) const |
virtual jsont | output_json (const namespacet &ns, const goto_programt &goto_program, const irep_idt &identifier) const |
Output the domains for a single function as JSON. More... | |
virtual xmlt | output_xml (const namespacet &ns, const goto_programt &goto_program, const irep_idt &identifier) const |
Output the domains for a single function as XML. More... | |
locationt | get_next (working_sett &working_set) |
void | put_in_working_set (working_sett &working_set, locationt l) |
bool | fixedpoint (const goto_programt &goto_program, const goto_functionst &goto_functions, const namespacet &ns) |
virtual void | fixedpoint (const goto_functionst &goto_functions, const namespacet &ns)=0 |
void | sequential_fixedpoint (const goto_functionst &goto_functions, const namespacet &ns) |
void | concurrent_fixedpoint (const goto_functionst &goto_functions, const namespacet &ns) |
bool | visit (locationt l, working_sett &working_set, const goto_programt &goto_program, const goto_functionst &goto_functions, const namespacet &ns) |
bool | do_function_call_rec (locationt l_call, locationt l_return, const exprt &function, const exprt::operandst &arguments, const goto_functionst &goto_functions, const namespacet &ns) |
bool | do_function_call (locationt l_call, locationt l_return, const goto_functionst &goto_functions, const goto_functionst::function_mapt::const_iterator f_it, const exprt::operandst &arguments, const namespacet &ns) |
virtual bool | merge (const statet &src, locationt from, locationt to)=0 |
virtual bool | merge_shared (const statet &src, locationt from, locationt to, const namespacet &ns)=0 |
virtual statet & | get_state (locationt l)=0 |
virtual const statet & | find_state (locationt l) const =0 |
virtual statet * | make_temporary_state (const statet &s)=0 |
Protected Attributes | |
recursion_sett | recursion_set |
|
protected |
typedef ai_domain_baset ai_baset::statet |
|
protected |
|
inlinevirtual |
Reimplemented in ait< domainT >, ait< escape_domaint >, ait< invariant_set_domaint >, ait< global_may_alias_domaint >, ait< rd_range_domaint >, ait< constant_propagator_domaint >, ait< interval_domaint >, ait< uninitialized_domaint >, ait< custom_bitvector_domaint >, and ait< dep_graph_domaint >.
Definition at line 159 of file ai.h.
References ai_domain_baset::output().
Referenced by ait< dep_graph_domaint >::clear().
|
protected |
Definition at line 537 of file ai.cpp.
References goto_program_templatet< codeT, guardT >::add_instruction(), forall_goto_functions, forall_goto_program_instructions, and goto_program_templatet< codeT, guardT >::instructions.
|
protected |
|
protected |
Definition at line 442 of file ai.cpp.
References goto_functions_templatet< bodyT >::function_map, and id2string().
|
protected |
Definition at line 258 of file ai.cpp.
References goto_program_templatet< codeT, guardT >::instructions, and ai_domain_baset::make_entry().
|
protected |
Definition at line 247 of file ai.cpp.
References goto_functions_templatet< bodyT >::entry_point(), and goto_functions_templatet< bodyT >::function_map.
|
protected |
Definition at line 295 of file ai.cpp.
References goto_program_templatet< codeT, guardT >::empty(), and goto_program_templatet< codeT, guardT >::instructions.
|
protectedpure virtual |
Implemented in concurrency_aware_ait< domainT >, concurrency_aware_ait< rd_range_domaint >, ait< domainT >, ait< escape_domaint >, ait< invariant_set_domaint >, ait< global_may_alias_domaint >, ait< rd_range_domaint >, ait< constant_propagator_domaint >, ait< interval_domaint >, ait< uninitialized_domaint >, ait< custom_bitvector_domaint >, and ait< dep_graph_domaint >.
|
protected |
Implemented in ait< domainT >, ait< escape_domaint >, ait< invariant_set_domaint >, ait< global_may_alias_domaint >, ait< rd_range_domaint >, ait< constant_propagator_domaint >, ait< interval_domaint >, ait< uninitialized_domaint >, ait< custom_bitvector_domaint >, ait< dep_graph_domaint >, reaching_definitions_analysist, and dependence_grapht.
|
protectedvirtual |
Reimplemented in dependence_grapht, and invariant_propagationt.
Definition at line 269 of file ai.cpp.
References forall_goto_program_instructions.
Referenced by invariant_propagationt::initialize(), custom_bitvector_analysist::initialize(), dependence_grapht::initialize(), and reaching_definitions_analysist::initialize().
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in reaching_definitions_analysist, dependence_grapht, custom_bitvector_analysist, escape_analysist, global_may_alias_analysist, and invariant_propagationt.
Definition at line 277 of file ai.cpp.
References forall_goto_functions.
|
protectedpure virtual |
Implemented in concurrency_aware_ait< domainT >, concurrency_aware_ait< rd_range_domaint >, ait< domainT >, ait< escape_domaint >, ait< invariant_set_domaint >, ait< global_may_alias_domaint >, ait< rd_range_domaint >, ait< constant_propagator_domaint >, ait< interval_domaint >, ait< uninitialized_domaint >, ait< custom_bitvector_domaint >, and ait< dep_graph_domaint >.
|
inline |
|
inline |
|
inline |
Definition at line 141 of file ai.h.
References goto_modelt::goto_functions, and goto_modelt::symbol_table.
|
inline |
|
virtual |
Definition at line 92 of file ai.cpp.
References forall_goto_functions, and ai_domain_baset::output().
Referenced by goto_instrument_parse_optionst::doit(), taint_analysist::operator()(), show_intervals(), and show_uninitialized().
|
inline |
Definition at line 168 of file ai.h.
References goto_modelt::goto_functions, ai_domain_baset::output(), and goto_modelt::symbol_table.
|
inline |
Definition at line 176 of file ai.h.
References ai_domain_baset::output().
|
inline |
Definition at line 184 of file ai.h.
References ai_domain_baset::output(), and ai_domain_baset::output_json().
|
protectedvirtual |
Definition at line 111 of file ai.cpp.
References forall_goto_program_instructions, and goto_programt::output_instruction().
|
virtual |
Output the domains for the whole program as JSON.
Definition at line 134 of file ai.cpp.
References forall_goto_functions, id2string(), and ai_domain_baset::output_json().
|
inline |
Definition at line 197 of file ai.h.
References goto_modelt::goto_functions, ai_domain_baset::output_json(), and goto_modelt::symbol_table.
|
inline |
Definition at line 204 of file ai.h.
References ai_domain_baset::output_json().
|
inline |
Definition at line 211 of file ai.h.
References ai_domain_baset::output_json(), and ai_domain_baset::output_xml().
|
protectedvirtual |
Output the domains for a single function as JSON.
Definition at line 159 of file ai.cpp.
References forall_goto_program_instructions, goto_programt::output_instruction(), and json_arrayt::push_back().
|
virtual |
Output the domains for the whole program as XML.
Definition at line 189 of file ai.cpp.
References forall_goto_functions, id2string(), xmlt::new_element(), ai_domain_baset::output_xml(), and xmlt::set_attribute().
|
inline |
Definition at line 223 of file ai.h.
References goto_modelt::goto_functions, ai_domain_baset::output_xml(), and goto_modelt::symbol_table.
|
inline |
Definition at line 230 of file ai.h.
References ai_domain_baset::output_xml().
|
inline |
Definition at line 237 of file ai.h.
References ai_domain_baset::output(), ai_domain_baset::output_json(), and ai_domain_baset::output_xml().
|
protectedvirtual |
Output the domains for a single function as XML.
Definition at line 217 of file ai.cpp.
References forall_goto_program_instructions, xmlt::new_element(), goto_programt::output_instruction(), ai_domain_baset::output_xml(), and xmlt::set_attribute().
|
inlineprotected |
|
protected |
Definition at line 526 of file ai.cpp.
References goto_functions_templatet< bodyT >::entry_point(), and goto_functions_templatet< bodyT >::function_map.
|
protected |
Definition at line 321 of file ai.cpp.
References code_function_callt::arguments(), code_function_callt::function(), goto_functions_templatet< bodyT >::function_map, goto_program_templatet< codeT, guardT >::get_successors(), goto_program_templatet< codeT, guardT >::instructions, to_code_function_call(), and ai_domain_baset::transform().
|
protected |