Go to the documentation of this file.
12 #ifndef CPROVER_ANALYSES_CUSTOM_BITVECTOR_ANALYSIS_H
13 #define CPROVER_ANALYSES_CUSTOM_BITVECTOR_ANALYSIS_H
62 "If the domain is bottom, it must have no bits set");
70 "If the domain is top, it must have no bits set");
78 typedef std::map<irep_idt, bit_vectort>
bitst;
140 return (src&(1ll<<bit_nr))!=0;
154 bool xml, std::ostream &);
180 #endif // CPROVER_ANALYSES_CUSTOM_BITVECTOR_ANALYSIS_H
static vectorst merge(const vectorst &a, const vectorst &b)
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
void assign_lhs(const exprt &, const vectorst &)
static irep_idt object2id(const exprt &)
bool merge(const custom_bitvector_domaint &b, trace_ptrt from, trace_ptrt to)
goto_programt::const_targett locationt
void assign_struct_rec(locationt from, const exprt &lhs, const exprt &rhs, custom_bitvector_analysist &, const namespacet &)
const custom_bitvector_domaint & operator[](locationt l) const
Find the analysis result for a given location.
void erase_blank_vectors(bitst &)
erase blank bitvectors
vectorst get_rhs(const exprt &) const
void make_top() final override
all states – the analysis doesn't use this, and domains may refuse to implement it.
Base class for all expressions.
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
exprt eval(const exprt &src, locationt loc)
void set_bit(const exprt &, unsigned bit_nr, modet)
void instrument(goto_functionst &)
std::set< exprt > aliases(const exprt &, locationt loc)
ai_history_baset::trace_ptrt trace_ptrt
static void clear_bit(bit_vectort &dest, unsigned bit_nr)
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
void output(std::ostream &out, const ai_baset &ai, const namespacet &ns) const final override
#define DATA_INVARIANT(CONDITION, REASON)
This condition should be used to document that assumptions that are made on goto_functions,...
xmlt xml(const irep_idt &property_id, const property_infot &property_info)
custom_bitvector_domaint()
bool is_top() const final override
void make_entry() final override
Make this domain a reasonable entry-point state.
virtual void initialize(const irep_idt &function_id, const goto_programt &goto_program)
Initialize all the abstract states for a single function.
A collection of goto functions.
static bool has_get_must_or_may(const exprt &)
goto_programt::const_targett locationt
numberingt< irep_idt > bitst
unsigned long long bit_vectort
local_may_alias_factoryt local_may_alias_factory
virtual void initialize(const goto_functionst &_goto_functions)
Initialize all the abstract states for a whole program.
This is the basic interface of the abstract interpreter with default implementations of the core func...
exprt eval(const exprt &src, custom_bitvector_analysist &) const
void check(const goto_modelt &, bool xml, std::ostream &)
static void set_bit(bit_vectort &dest, unsigned bit_nr)
bool is_bottom() const final override
The interface offered by a domain, allows code to manipulate domains without knowing their exact type...
void transform(const irep_idt &function_from, trace_ptrt trace_from, const irep_idt &function_to, trace_ptrt trace_to, ai_baset &ai, const namespacet &ns) final override
how function calls are treated: a) there is an edge from each call site to the function head b) there...
std::map< irep_idt, bit_vectort > bitst
unsigned get_bit_nr(const exprt &)
static bool get_bit(const bit_vectort src, unsigned bit_nr)
void make_bottom() final override
no states