39 typedef std::list<value_set_fivrt::entryt> entry_listt;
50 typedef std::unordered_map<irep_idt, entry_listt, irep_id_hash> 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)
150 if(it->second.is_lvalue &&
151 it->second.is_static_lifetime)
157 if(type.
id()==ID_pointer)
162 {
return true;
break; }
165 if(type.
id()==ID_pointer)
167 const typet *t = &type;
168 while(t->
id()==ID_pointer) t = &(t->
subtype());
170 return (t->
id()==ID_code);
179 else if(type.
id()==ID_struct ||
187 for(struct_typet::componentst::const_iterator
188 it=components.begin();
189 it!=components.end();
196 else if(type.
id()==ID_array)
198 else if(type.
id()==ID_symbol)
The type of an expression.
irep_idt name
The unique identifier.
const typet & follow(const typet &src) const
virtual bool lookup(const irep_idt &name, const symbolt *&symbol) const
virtual void initialize(const goto_programt &goto_program)
#define forall_symbols(it, expr)
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_function_templatet< goto_programt > &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
virtual void initialize(const goto_programt &goto_program)
void add_vars(const std::list< entryt > &vars)
track_optionst track_options
void get_decl_identifiers(decl_identifierst &decl_identifiers) const
const struct_typet & to_struct_type(const typet &type)
Cast a generic typet to a struct_typet.
A specialization of goto_program_templatet over goto programs in which instructions have codet type...
typet type
Type of symbol.
void get_globals(std::list< value_set_fivrt::entryt > &dest)
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