Go to the documentation of this file.
23 return val.find_first_not_of(
'0')==std::string::npos;
36 return std::move(result);
60 return std::move(result);
70 if(expr.
id()==ID_index)
84 else if(expr.
id()==ID_member)
98 else if(expr.
id()==ID_byte_extract_little_endian ||
99 expr.
id()==ID_byte_extract_big_endian)
112 else if(expr.
id()==ID_typecast)
130 if(
offset().
id()==ID_unknown)
139 const std::size_t _distance):
146 const std::size_t _index):
154 const std::size_t _upper,
155 const std::size_t _lower,
157 exprt(ID_extractbits, _type)
172 template <
typename T>
174 -> decltype(struct_expr.op0())
177 std::is_base_of<struct_exprt, T>::value,
"T must be a struct_exprt.");
181 index < struct_expr.operands().size(),
182 "component matching index should exist");
183 return struct_expr.operands()[index];
203 while(p->
id() == ID_member || p->
id() == ID_index)
206 p->
has_operands(),
"member and index expressions have operands");
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
#define PRECONDITION(CONDITION)
exprt conjunction(const exprt::operandst &op)
1) generates a conjunction for two or more operands 2) for one operand, returns the operand 3) return...
void build(const exprt &expr, const namespacet &ns)
Build an object_descriptor_exprt from a given expr.
const struct_typet & to_struct_type(const typet &type)
Cast a typet to a struct_typet.
#define DATA_INVARIANT(CONDITION, REASON)
This condition should be used to document that assumptions that are made on goto_functions,...
The type of an expression, extends irept.
const byte_extract_exprt & to_byte_extract_expr(const exprt &expr)
const index_exprt & to_index_expr(const exprt &expr)
Cast an exprt to an index_exprt.
Split an expression into a base object and a (byte) offset.
exprt member_offset_expr(const member_exprt &member_expr, const namespacet &ns)
address_of_exprt(const exprt &op)
Unbounded, signed integers (mathematical integers, not bitvectors)
The plus expression Associativity is not specified.
Base class for all expressions.
Generic base class for unary expressions.
A base class for binary expressions.
auto component(T &struct_expr, const irep_idt &name, const namespacet &ns) -> decltype(struct_expr.op0())
static void build_object_descriptor_rec(const namespacet &ns, const exprt &expr, object_descriptor_exprt &dest)
Build an object_descriptor_exprt from a given expr.
std::size_t component_number(const irep_idt &component_name) const
Return the sequence number of the component with given name.
bitvector_typet index_type()
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
typet & type()
Return the type of the expression.
unsigned int get_instance() const
Expression classes for byte-level operators.
exprt disjunction(const exprt::operandst &op)
1) generates a disjunction for two or more operands 2) for one operand, returns the operand 3) return...
bool has_operands() const
Return true if there is at least one operand.
exprt size_of_expr(const typet &type, const namespacet &ns)
const std::string & id2string(const irep_idt &d)
const exprt & struct_op() const
A base class for expressions that are predicates, i.e., Boolean-typed, and that take exactly two argu...
Binary multiplication Associativity is not specified.
pointer_typet pointer_type(const typet &subtype)
const irep_idt & id() const
std::vector< exprt > operandst
The Boolean constant false.
const exprt & root_object() const
Extract member of struct or union.
void set_instance(unsigned int instance)
shift_exprt(const irep_idt &_id)
bool value_is_zero_string() const
const typecast_exprt & to_typecast_expr(const exprt &expr)
Cast an exprt to a typecast_exprt.
const member_exprt & to_member_expr(const exprt &expr)
Cast an exprt to a member_exprt.
exprt & component(const irep_idt &name, const namespacet &ns)
Semantic type conversion.
The Boolean constant true.
const irep_idt & get_value() const
const constant_exprt & to_constant_expr(const exprt &expr)
Cast an exprt to a constant_exprt.
#define CHECK_RETURN(CONDITION)