39 typedef std::list<value_set_fivrt::entryt> entry_listt;
50 typedef std::unordered_map<irep_idt, entry_listt> entry_cachet;
51 entry_cachet entry_cache;
59 entry_cachet::const_iterator e_it=entry_cache.find(l);
61 if(e_it==entry_cache.end())
65 std::list<value_set_fivrt::entryt> &entries=entry_cache[l];
76 std::list<value_set_fivrt::entryt> &dest)
83 const std::string &suffix,
85 std::list<value_set_fivrt::entryt> &dest)
89 if(t.
id()==ID_struct ||
96 for(struct_typet::componentst::const_iterator
103 suffix+
"."+it->get_string(ID_name),
108 else if(t.
id()==ID_array)
122 std::list<value_set_fivrt::entryt> globals;
131 std::set<irep_idt> locals;
138 std::list<value_set_fivrt::entryt> entries;
146 std::list<value_set_fivrt::entryt> &dest)
151 if(it.second.is_lvalue && it.second.is_static_lifetime)
160 if(type.
id()==ID_pointer)
165 {
return true;
break; }
168 if(type.
id()==ID_pointer)
170 const typet *t = &type;
171 while(t->
id()==ID_pointer) t = &(t->
subtype());
173 return (t->
id()==ID_code);
182 else if(type.
id()==ID_struct ||
190 for(struct_typet::componentst::const_iterator
191 it=components.begin();
192 it!=components.end();
199 else if(type.
id()==ID_array)
201 else if(type.
id()==ID_symbol)
The type of an expression.
irep_idt name
The unique identifier.
virtual void initialize(const goto_programt &goto_program)
const symbol_tablet & get_symbol_table() const
void get_entries_rec(const irep_idt &identifier, const std::string &suffix, const typet &type, std::list< value_set_fivrt::entryt > &dest)
void get_local_identifiers(const goto_functiont &goto_function, std::set< irep_idt > &dest)
std::vector< componentt > componentst
const componentst & components() const
value_set_fivrt value_set
Symbol table entry.This is a symbol in the symbol table, stored in an object of type symbol_tablet...
void add_vars(const goto_functionst &goto_functions)
bool check_type(const typet &type)
std::set< irep_idt > decl_identifierst
const irep_idt & id() const
void add_vars(const std::list< entryt > &vars)
const typet & follow(const typet &) const
const struct_typet & to_struct_type(const typet &type)
Cast a generic typet to a struct_typet.
dstringt has one field, an unsigned integer no which is an index into a static table of strings...
track_optionst track_options
void get_decl_identifiers(decl_identifierst &decl_identifiers) const
get the variables in decl statements
A generic container class for the GOTO intermediate representation of one function.
typet type
Type of symbol.
virtual void initialize(const goto_programt &)
void get_globals(std::list< value_set_fivrt::entryt > &dest)
goto_programt & goto_program
const typet & subtype() const
void get_entries(const symbolt &symbol, std::list< value_set_fivrt::entryt > &dest)
#define forall_goto_functions(it, functions)
value_set_domain_fivrt state
bool lookup(const irep_idt &name, const symbolt *&symbol) const override
See namespace_baset::lookup().