cprover
std_expr.h File Reference

API to expression classes. More...

#include "as_const.h"
#include "expr_cast.h"
#include "invariant.h"
#include "narrow.h"
#include "std_types.h"
+ Include dependency graph for std_expr.h:

Go to the source code of this file.

Classes

class  nullary_exprt
 An expression without operands. More...
 
class  ternary_exprt
 An expression with three operands. More...
 
class  symbol_exprt
 Expression to hold a symbol (variable) More...
 
class  decorated_symbol_exprt
 Expression to hold a symbol (variable) with extra accessors to ID_c_static_lifetime and ID_C_thread_local. More...
 
class  nondet_symbol_exprt
 Expression to hold a nondeterministic choice. More...
 
class  unary_exprt
 Generic base class for unary expressions. More...
 
class  abs_exprt
 Absolute value. More...
 
class  unary_minus_exprt
 The unary minus expression. More...
 
class  unary_plus_exprt
 The unary plus expression. More...
 
class  bswap_exprt
 The byte swap expression. More...
 
class  predicate_exprt
 A base class for expressions that are predicates, i.e., Boolean-typed. More...
 
class  unary_predicate_exprt
 A base class for expressions that are predicates, i.e., Boolean-typed, and that take exactly one argument. More...
 
class  sign_exprt
 Sign of an expression Predicate is true if _op is negative, false otherwise. More...
 
class  binary_exprt
 A base class for binary expressions. More...
 
class  binary_predicate_exprt
 A base class for expressions that are predicates, i.e., Boolean-typed, and that take exactly two arguments. More...
 
class  binary_relation_exprt
 A base class for relations, i.e., binary predicates. More...
 
class  multi_ary_exprt
 A base class for multi-ary expressions Associativity is not specified. More...
 
class  plus_exprt
 The plus expression Associativity is not specified. More...
 
class  minus_exprt
 Binary minus. More...
 
class  mult_exprt
 Binary multiplication Associativity is not specified. More...
 
class  div_exprt
 Division. More...
 
class  mod_exprt
 Modulo. More...
 
class  rem_exprt
 Remainder of division. More...
 
class  equal_exprt
 Equality. More...
 
class  notequal_exprt
 Disequality. More...
 
class  index_exprt
 Array index operator. More...
 
class  array_of_exprt
 Array constructor from single element. More...
 
class  array_exprt
 Array constructor from list of elements. More...
 
class  array_list_exprt
 Array constructor from a list of index-element pairs Operands are index/value pairs, alternating. More...
 
class  vector_exprt
 Vector constructor from list of elements. More...
 
class  union_exprt
 Union constructor from single element. More...
 
class  struct_exprt
 Struct constructor from list of elements. More...
 
class  complex_exprt
 Complex constructor from a pair of numbers. More...
 
class  complex_real_exprt
 Real part of the expression describing a complex number. More...
 
class  complex_imag_exprt
 Imaginary part of the expression describing a complex number. More...
 
class  object_descriptor_exprt
 Split an expression into a base object and a (byte) offset. More...
 
class  dynamic_object_exprt
 Representation of heap-allocated objects. More...
 
class  is_dynamic_object_exprt
 Evaluates to true if the operand is a pointer to a dynamic object. More...
 
class  typecast_exprt
 Semantic type conversion. More...
 
class  floatbv_typecast_exprt
 Semantic type conversion from/to floating-point formats. More...
 
class  and_exprt
 Boolean AND. More...
 
class  implies_exprt
 Boolean implication. More...
 
class  or_exprt
 Boolean OR. More...
 
class  xor_exprt
 Boolean XOR. More...
 
class  bitnot_exprt
 Bit-wise negation of bit-vectors. More...
 
class  bitor_exprt
 Bit-wise OR. More...
 
class  bitxor_exprt
 Bit-wise XOR. More...
 
class  bitand_exprt
 Bit-wise AND. More...
 
class  shift_exprt
 A base class for shift operators. More...
 
class  shl_exprt
 Left shift. More...
 
class  ashr_exprt
 Arithmetic right shift. More...
 
class  lshr_exprt
 Logical right shift. More...
 
class  extractbit_exprt
 Extracts a single bit of a bit-vector operand. More...
 
class  extractbits_exprt
 Extracts a sub-range of a bit-vector operand. More...
 
class  address_of_exprt
 Operator to return the address of an object. More...
 
class  not_exprt
 Boolean negation. More...
 
class  dereference_exprt
 Operator to dereference a pointer. More...
 
class  if_exprt
 The trinary if-then-else operator. More...
 
class  with_exprt
 Operator to update elements in structs and arrays. More...
 
class  index_designatort
 
class  member_designatort
 
class  update_exprt
 Operator to update elements in structs and arrays. More...
 
class  member_exprt
 Extract member of struct or union. More...
 
class  isnan_exprt
 Evaluates to true if the operand is NaN. More...
 
class  isinf_exprt
 Evaluates to true if the operand is infinite. More...
 
class  isfinite_exprt
 Evaluates to true if the operand is finite. More...
 
class  isnormal_exprt
 Evaluates to true if the operand is a normal number. More...
 
class  ieee_float_equal_exprt
 IEEE-floating-point equality. More...
 
class  ieee_float_notequal_exprt
 IEEE floating-point disequality. More...
 
class  ieee_float_op_exprt
 IEEE floating-point operations These have two data operands (op0 and op1) and one rounding mode (op2). More...
 
class  type_exprt
 An expression denoting a type. More...
 
class  constant_exprt
 A constant literal expression. More...
 
class  true_exprt
 The Boolean constant true. More...
 
class  false_exprt
 The Boolean constant false. More...
 
class  nil_exprt
 The NIL expression. More...
 
class  null_pointer_exprt
 The null pointer constant. More...
 
class  replication_exprt
 Bit-vector replication. More...
 
class  concatenation_exprt
 Concatenation of bit-vector operands. More...
 
class  infinity_exprt
 An expression denoting infinity. More...
 
class  let_exprt
 A let expression. More...
 
class  popcount_exprt
 The popcount (counting the number of bits set to 1) expression. More...
 
class  cond_exprt
 this is a parametric version of an if-expression: it returns the value of the first case (using the ordering of the operands) whose condition evaluates to true. More...
 
class  array_comprehension_exprt
 Expression to define a mapping from an argument (index) to elements. More...
 

Functions

template<>
bool can_cast_expr< symbol_exprt > (const exprt &base)
 
void validate_expr (const symbol_exprt &value)
 
const symbol_exprtto_symbol_expr (const exprt &expr)
 Cast an exprt to a symbol_exprt. More...
 
symbol_exprtto_symbol_expr (exprt &expr)
 Cast an exprt to a symbol_exprt. More...
 
template<>
bool can_cast_expr< nondet_symbol_exprt > (const exprt &base)
 
void validate_expr (const nondet_symbol_exprt &value)
 
const nondet_symbol_exprtto_nondet_symbol_expr (const exprt &expr)
 Cast an exprt to a nondet_symbol_exprt. More...
 
nondet_symbol_exprtto_nondet_symbol_expr (exprt &expr)
 Cast an exprt to a nondet_symbol_exprt. More...
 
template<>
bool can_cast_expr< unary_exprt > (const exprt &base)
 
void validate_expr (const unary_exprt &value)
 
const unary_exprtto_unary_expr (const exprt &expr)
 Cast an exprt to a unary_exprt. More...
 
unary_exprtto_unary_expr (exprt &expr)
 Cast an exprt to a unary_exprt. More...
 
template<>
bool can_cast_expr< abs_exprt > (const exprt &base)
 
void validate_expr (const abs_exprt &value)
 
const abs_exprtto_abs_expr (const exprt &expr)
 Cast an exprt to a abs_exprt. More...
 
abs_exprtto_abs_expr (exprt &expr)
 Cast an exprt to a abs_exprt. More...
 
template<>
bool can_cast_expr< unary_minus_exprt > (const exprt &base)
 
void validate_expr (const unary_minus_exprt &value)
 
const unary_minus_exprtto_unary_minus_expr (const exprt &expr)
 Cast an exprt to a unary_minus_exprt. More...
 
unary_minus_exprtto_unary_minus_expr (exprt &expr)
 Cast an exprt to a unary_minus_exprt. More...
 
template<>
bool can_cast_expr< unary_plus_exprt > (const exprt &base)
 
void validate_expr (const unary_plus_exprt &value)
 
const unary_plus_exprtto_unary_plus_expr (const exprt &expr)
 Cast an exprt to a unary_plus_exprt. More...
 
unary_plus_exprtto_unary_plus_expr (exprt &expr)
 Cast an exprt to a unary_minus_exprt. More...
 
template<>
bool can_cast_expr< bswap_exprt > (const exprt &base)
 
void validate_expr (const bswap_exprt &value)
 
const bswap_exprtto_bswap_expr (const exprt &expr)
 Cast an exprt to a bswap_exprt. More...
 
bswap_exprtto_bswap_expr (exprt &expr)
 Cast an exprt to a bswap_exprt. More...
 
template<>
bool can_cast_expr< sign_exprt > (const exprt &base)
 
void validate_expr (const sign_exprt &expr)
 
const sign_exprtto_sign_expr (const exprt &expr)
 Cast an exprt to a sign_exprt. More...
 
sign_exprtto_sign_expr (exprt &expr)
 Cast an exprt to a sign_exprt. More...
 
template<>
bool can_cast_expr< binary_exprt > (const exprt &base)
 
void validate_expr (const binary_exprt &value)
 
const binary_exprtto_binary_expr (const exprt &expr)
 Cast an exprt to a binary_exprt. More...
 
binary_exprtto_binary_expr (exprt &expr)
 Cast an exprt to a binary_exprt. More...
 
template<>
bool can_cast_expr< binary_relation_exprt > (const exprt &base)
 
void validate_expr (const binary_relation_exprt &value)
 
const binary_relation_exprtto_binary_relation_expr (const exprt &expr)
 Cast an exprt to a binary_relation_exprt. More...
 
binary_relation_exprtto_binary_relation_expr (exprt &expr)
 Cast an exprt to a binary_relation_exprt. More...
 
const multi_ary_exprtto_multi_ary_expr (const exprt &expr)
 Cast an exprt to a multi_ary_exprt. More...
 
multi_ary_exprtto_multi_ary_expr (exprt &expr)
 Cast an exprt to a multi_ary_exprt. More...
 
template<>
bool can_cast_expr< plus_exprt > (const exprt &base)
 
void validate_expr (const plus_exprt &value)
 
const plus_exprtto_plus_expr (const exprt &expr)
 Cast an exprt to a plus_exprt. More...
 
plus_exprtto_plus_expr (exprt &expr)
 Cast an exprt to a plus_exprt. More...
 
template<>
bool can_cast_expr< minus_exprt > (const exprt &base)
 
void validate_expr (const minus_exprt &value)
 
const minus_exprtto_minus_expr (const exprt &expr)
 Cast an exprt to a minus_exprt. More...
 
minus_exprtto_minus_expr (exprt &expr)
 Cast an exprt to a minus_exprt. More...
 
template<>
bool can_cast_expr< mult_exprt > (const exprt &base)
 
void validate_expr (const mult_exprt &value)
 
const mult_exprtto_mult_expr (const exprt &expr)
 Cast an exprt to a mult_exprt. More...
 
mult_exprtto_mult_expr (exprt &expr)
 Cast an exprt to a mult_exprt. More...
 
template<>
bool can_cast_expr< div_exprt > (const exprt &base)
 
void validate_expr (const div_exprt &value)
 
const div_exprtto_div_expr (const exprt &expr)
 Cast an exprt to a div_exprt. More...
 
div_exprtto_div_expr (exprt &expr)
 Cast an exprt to a div_exprt. More...
 
template<>
bool can_cast_expr< mod_exprt > (const exprt &base)
 
void validate_expr (const mod_exprt &value)
 
const mod_exprtto_mod_expr (const exprt &expr)
 Cast an exprt to a mod_exprt. More...
 
mod_exprtto_mod_expr (exprt &expr)
 Cast an exprt to a mod_exprt. More...
 
template<>
bool can_cast_expr< rem_exprt > (const exprt &base)
 
void validate_expr (const rem_exprt &value)
 
const rem_exprtto_rem_expr (const exprt &expr)
 Cast an exprt to a rem_exprt. More...
 
rem_exprtto_rem_expr (exprt &expr)
 Cast an exprt to a rem_exprt. More...
 
template<>
bool can_cast_expr< equal_exprt > (const exprt &base)
 
void validate_expr (const equal_exprt &value)
 
const equal_exprtto_equal_expr (const exprt &expr)
 Cast an exprt to an equal_exprt. More...
 
equal_exprtto_equal_expr (exprt &expr)
 Cast an exprt to an equal_exprt. More...
 
template<>
bool can_cast_expr< notequal_exprt > (const exprt &base)
 
void validate_expr (const notequal_exprt &value)
 
const notequal_exprtto_notequal_expr (const exprt &expr)
 Cast an exprt to an notequal_exprt. More...
 
notequal_exprtto_notequal_expr (exprt &expr)
 Cast an exprt to an notequal_exprt. More...
 
template<>
bool can_cast_expr< index_exprt > (const exprt &base)
 
void validate_expr (const index_exprt &value)
 
const index_exprtto_index_expr (const exprt &expr)
 Cast an exprt to an index_exprt. More...
 
index_exprtto_index_expr (exprt &expr)
 Cast an exprt to an index_exprt. More...
 
template<>
bool can_cast_expr< array_of_exprt > (const exprt &base)
 
void validate_expr (const array_of_exprt &value)
 
const array_of_exprtto_array_of_expr (const exprt &expr)
 Cast an exprt to an array_of_exprt. More...
 
array_of_exprtto_array_of_expr (exprt &expr)
 Cast an exprt to an array_of_exprt. More...
 
template<>
bool can_cast_expr< array_exprt > (const exprt &base)
 
const array_exprtto_array_expr (const exprt &expr)
 Cast an exprt to an array_exprt. More...
 
array_exprtto_array_expr (exprt &expr)
 Cast an exprt to an array_exprt. More...
 
template<>
bool can_cast_expr< array_list_exprt > (const exprt &base)
 
void validate_expr (const array_list_exprt &value)
 
const array_list_exprtto_array_list_expr (const exprt &expr)
 
array_list_exprtto_array_list_expr (exprt &expr)
 
template<>
bool can_cast_expr< vector_exprt > (const exprt &base)
 
const vector_exprtto_vector_expr (const exprt &expr)
 Cast an exprt to an vector_exprt. More...
 
vector_exprtto_vector_expr (exprt &expr)
 Cast an exprt to an vector_exprt. More...
 
template<>
bool can_cast_expr< union_exprt > (const exprt &base)
 
void validate_expr (const union_exprt &value)
 
const union_exprtto_union_expr (const exprt &expr)
 Cast an exprt to a union_exprt. More...
 
union_exprtto_union_expr (exprt &expr)
 Cast an exprt to a union_exprt. More...
 
template<>
bool can_cast_expr< struct_exprt > (const exprt &base)
 
const struct_exprtto_struct_expr (const exprt &expr)
 Cast an exprt to a struct_exprt. More...
 
struct_exprtto_struct_expr (exprt &expr)
 Cast an exprt to a struct_exprt. More...
 
template<>
bool can_cast_expr< complex_exprt > (const exprt &base)
 
void validate_expr (const complex_exprt &value)
 
const complex_exprtto_complex_expr (const exprt &expr)
 Cast an exprt to a complex_exprt. More...
 
complex_exprtto_complex_expr (exprt &expr)
 Cast an exprt to a complex_exprt. More...
 
template<>
bool can_cast_expr< complex_real_exprt > (const exprt &base)
 
void validate_expr (const complex_real_exprt &expr)
 
const complex_real_exprtto_complex_real_expr (const exprt &expr)
 Cast an exprt to a complex_real_exprt. More...
 
complex_real_exprtto_complex_real_expr (exprt &expr)
 Cast an exprt to a complex_real_exprt. More...
 
template<>
bool can_cast_expr< complex_imag_exprt > (const exprt &base)
 
void validate_expr (const complex_imag_exprt &expr)
 
const complex_imag_exprtto_complex_imag_expr (const exprt &expr)
 Cast an exprt to a complex_imag_exprt. More...
 
complex_imag_exprtto_complex_imag_expr (exprt &expr)
 Cast an exprt to a complex_imag_exprt. More...
 
template<>
bool can_cast_expr< object_descriptor_exprt > (const exprt &base)
 
void validate_expr (const object_descriptor_exprt &value)
 
const object_descriptor_exprtto_object_descriptor_expr (const exprt &expr)
 Cast an exprt to an object_descriptor_exprt. More...
 
object_descriptor_exprtto_object_descriptor_expr (exprt &expr)
 Cast an exprt to an object_descriptor_exprt. More...
 
template<>
bool can_cast_expr< dynamic_object_exprt > (const exprt &base)
 
void validate_expr (const dynamic_object_exprt &value)
 
const dynamic_object_exprtto_dynamic_object_expr (const exprt &expr)
 Cast an exprt to a dynamic_object_exprt. More...
 
dynamic_object_exprtto_dynamic_object_expr (exprt &expr)
 Cast an exprt to a dynamic_object_exprt. More...
 
const is_dynamic_object_exprtto_is_dynamic_object_expr (const exprt &expr)
 
is_dynamic_object_exprtto_is_dynamic_object_expr (exprt &expr)
 
template<>
bool can_cast_expr< typecast_exprt > (const exprt &base)
 
void validate_expr (const typecast_exprt &value)
 
const typecast_exprtto_typecast_expr (const exprt &expr)
 Cast an exprt to a typecast_exprt. More...
 
typecast_exprtto_typecast_expr (exprt &expr)
 Cast an exprt to a typecast_exprt. More...
 
template<>
bool can_cast_expr< floatbv_typecast_exprt > (const exprt &base)
 
void validate_expr (const floatbv_typecast_exprt &value)
 
const floatbv_typecast_exprtto_floatbv_typecast_expr (const exprt &expr)
 Cast an exprt to a floatbv_typecast_exprt. More...
 
floatbv_typecast_exprtto_floatbv_typecast_expr (exprt &expr)
 Cast an exprt to a floatbv_typecast_exprt. More...
 
exprt conjunction (const exprt::operandst &)
 1) generates a conjunction for two or more operands 2) for one operand, returns the operand 3) returns true otherwise More...
 
template<>
bool can_cast_expr< and_exprt > (const exprt &base)
 
const and_exprtto_and_expr (const exprt &expr)
 Cast an exprt to a and_exprt. More...
 
and_exprtto_and_expr (exprt &expr)
 Cast an exprt to a and_exprt. More...
 
template<>
bool can_cast_expr< implies_exprt > (const exprt &base)
 
void validate_expr (const implies_exprt &value)
 
const implies_exprtto_implies_expr (const exprt &expr)
 Cast an exprt to a implies_exprt. More...
 
implies_exprtto_implies_expr (exprt &expr)
 Cast an exprt to a implies_exprt. More...
 
exprt disjunction (const exprt::operandst &)
 1) generates a disjunction for two or more operands 2) for one operand, returns the operand 3) returns false otherwise More...
 
template<>
bool can_cast_expr< or_exprt > (const exprt &base)
 
const or_exprtto_or_expr (const exprt &expr)
 Cast an exprt to a or_exprt. More...
 
or_exprtto_or_expr (exprt &expr)
 Cast an exprt to a or_exprt. More...
 
template<>
bool can_cast_expr< xor_exprt > (const exprt &base)
 
const xor_exprtto_xor_expr (const exprt &expr)
 Cast an exprt to a xor_exprt. More...
 
xor_exprtto_xor_expr (exprt &expr)
 Cast an exprt to a bitxor_exprt. More...
 
template<>
bool can_cast_expr< bitnot_exprt > (const exprt &base)
 
void validate_expr (const bitnot_exprt &value)
 
const bitnot_exprtto_bitnot_expr (const exprt &expr)
 Cast an exprt to a bitnot_exprt. More...
 
bitnot_exprtto_bitnot_expr (exprt &expr)
 Cast an exprt to a bitnot_exprt. More...
 
template<>
bool can_cast_expr< bitor_exprt > (const exprt &base)
 
const bitor_exprtto_bitor_expr (const exprt &expr)
 Cast an exprt to a bitor_exprt. More...
 
bitor_exprtto_bitor_expr (exprt &expr)
 Cast an exprt to a bitor_exprt. More...
 
template<>
bool can_cast_expr< bitxor_exprt > (const exprt &base)
 
const bitxor_exprtto_bitxor_expr (const exprt &expr)
 Cast an exprt to a bitxor_exprt. More...
 
bitxor_exprtto_bitxor_expr (exprt &expr)
 Cast an exprt to a bitxor_exprt. More...
 
template<>
bool can_cast_expr< bitand_exprt > (const exprt &base)
 
const bitand_exprtto_bitand_expr (const exprt &expr)
 Cast an exprt to a bitand_exprt. More...
 
bitand_exprtto_bitand_expr (exprt &expr)
 Cast an exprt to a bitand_exprt. More...
 
template<>
bool can_cast_expr< shift_exprt > (const exprt &base)
 
void validate_expr (const shift_exprt &value)
 
const shift_exprtto_shift_expr (const exprt &expr)
 Cast an exprt to a shift_exprt. More...
 
shift_exprtto_shift_expr (exprt &expr)
 Cast an exprt to a shift_exprt. More...
 
const shl_exprtto_shl_expr (const exprt &expr)
 Cast an exprt to a shl_exprt. More...
 
shl_exprtto_shl_expr (exprt &expr)
 Cast an exprt to a shl_exprt. More...
 
template<>
bool can_cast_expr< extractbit_exprt > (const exprt &base)
 
void validate_expr (const extractbit_exprt &value)
 
const extractbit_exprtto_extractbit_expr (const exprt &expr)
 Cast an exprt to an extractbit_exprt. More...
 
extractbit_exprtto_extractbit_expr (exprt &expr)
 Cast an exprt to an extractbit_exprt. More...
 
template<>
bool can_cast_expr< extractbits_exprt > (const exprt &base)
 
void validate_expr (const extractbits_exprt &value)
 
const extractbits_exprtto_extractbits_expr (const exprt &expr)
 Cast an exprt to an extractbits_exprt. More...
 
extractbits_exprtto_extractbits_expr (exprt &expr)
 Cast an exprt to an extractbits_exprt. More...
 
template<>
bool can_cast_expr< address_of_exprt > (const exprt &base)
 
void validate_expr (const address_of_exprt &value)
 
const address_of_exprtto_address_of_expr (const exprt &expr)
 Cast an exprt to an address_of_exprt. More...
 
address_of_exprtto_address_of_expr (exprt &expr)
 Cast an exprt to an address_of_exprt. More...
 
template<>
bool can_cast_expr< not_exprt > (const exprt &base)
 
void validate_expr (const not_exprt &value)
 
const not_exprtto_not_expr (const exprt &expr)
 Cast an exprt to an not_exprt. More...
 
not_exprtto_not_expr (exprt &expr)
 Cast an exprt to an not_exprt. More...
 
template<>
bool can_cast_expr< dereference_exprt > (const exprt &base)
 
void validate_expr (const dereference_exprt &value)
 
const dereference_exprtto_dereference_expr (const exprt &expr)
 Cast an exprt to a dereference_exprt. More...
 
dereference_exprtto_dereference_expr (exprt &expr)
 Cast an exprt to a dereference_exprt. More...
 
template<>
bool can_cast_expr< if_exprt > (const exprt &base)
 
void validate_expr (const if_exprt &value)
 
const if_exprtto_if_expr (const exprt &expr)
 Cast an exprt to an if_exprt. More...
 
if_exprtto_if_expr (exprt &expr)
 Cast an exprt to an if_exprt. More...
 
template<>
bool can_cast_expr< with_exprt > (const exprt &base)
 
void validate_expr (const with_exprt &value)
 
const with_exprtto_with_expr (const exprt &expr)
 Cast an exprt to a with_exprt. More...
 
with_exprtto_with_expr (exprt &expr)
 Cast an exprt to a with_exprt. More...
 
template<>
bool can_cast_expr< index_designatort > (const exprt &base)
 
void validate_expr (const index_designatort &value)
 
const index_designatortto_index_designator (const exprt &expr)
 Cast an exprt to an index_designatort. More...
 
index_designatortto_index_designator (exprt &expr)
 Cast an exprt to an index_designatort. More...
 
template<>
bool can_cast_expr< member_designatort > (const exprt &base)
 
void validate_expr (const member_designatort &value)
 
const member_designatortto_member_designator (const exprt &expr)
 Cast an exprt to an member_designatort. More...
 
member_designatortto_member_designator (exprt &expr)
 Cast an exprt to an member_designatort. More...
 
template<>
bool can_cast_expr< update_exprt > (const exprt &base)
 
void validate_expr (const update_exprt &value)
 
const update_exprtto_update_expr (const exprt &expr)
 Cast an exprt to an update_exprt. More...
 
update_exprtto_update_expr (exprt &expr)
 Cast an exprt to an update_exprt. More...
 
template<>
bool can_cast_expr< member_exprt > (const exprt &base)
 
void validate_expr (const member_exprt &value)
 
const member_exprtto_member_expr (const exprt &expr)
 Cast an exprt to a member_exprt. More...
 
member_exprtto_member_expr (exprt &expr)
 Cast an exprt to a member_exprt. More...
 
template<>
bool can_cast_expr< isnan_exprt > (const exprt &base)
 
void validate_expr (const isnan_exprt &value)
 
const isnan_exprtto_isnan_expr (const exprt &expr)
 Cast an exprt to a isnan_exprt. More...
 
isnan_exprtto_isnan_expr (exprt &expr)
 Cast an exprt to a isnan_exprt. More...
 
template<>
bool can_cast_expr< isinf_exprt > (const exprt &base)
 
void validate_expr (const isinf_exprt &value)
 
const isinf_exprtto_isinf_expr (const exprt &expr)
 Cast an exprt to a isinf_exprt. More...
 
isinf_exprtto_isinf_expr (exprt &expr)
 Cast an exprt to a isinf_exprt. More...
 
template<>
bool can_cast_expr< isfinite_exprt > (const exprt &base)
 
void validate_expr (const isfinite_exprt &value)
 
const isfinite_exprtto_isfinite_expr (const exprt &expr)
 Cast an exprt to a isfinite_exprt. More...
 
isfinite_exprtto_isfinite_expr (exprt &expr)
 Cast an exprt to a isfinite_exprt. More...
 
template<>
bool can_cast_expr< isnormal_exprt > (const exprt &base)
 
void validate_expr (const isnormal_exprt &value)
 
const isnormal_exprtto_isnormal_expr (const exprt &expr)
 Cast an exprt to a isnormal_exprt. More...
 
isnormal_exprtto_isnormal_expr (exprt &expr)
 Cast an exprt to a isnormal_exprt. More...
 
template<>
bool can_cast_expr< ieee_float_equal_exprt > (const exprt &base)
 
void validate_expr (const ieee_float_equal_exprt &value)
 
const ieee_float_equal_exprtto_ieee_float_equal_expr (const exprt &expr)
 Cast an exprt to an ieee_float_equal_exprt. More...
 
ieee_float_equal_exprtto_ieee_float_equal_expr (exprt &expr)
 Cast an exprt to an ieee_float_equal_exprt. More...
 
template<>
bool can_cast_expr< ieee_float_notequal_exprt > (const exprt &base)
 
void validate_expr (const ieee_float_notequal_exprt &value)
 
const ieee_float_notequal_exprtto_ieee_float_notequal_expr (const exprt &expr)
 Cast an exprt to an ieee_float_notequal_exprt. More...
 
ieee_float_notequal_exprtto_ieee_float_notequal_expr (exprt &expr)
 Cast an exprt to an ieee_float_notequal_exprt. More...
 
template<>
bool can_cast_expr< ieee_float_op_exprt > (const exprt &base)
 
void validate_expr (const ieee_float_op_exprt &value)
 
const ieee_float_op_exprtto_ieee_float_op_expr (const exprt &expr)
 Cast an exprt to an ieee_float_op_exprt. More...
 
ieee_float_op_exprtto_ieee_float_op_expr (exprt &expr)
 Cast an exprt to an ieee_float_op_exprt. More...
 
template<>
bool can_cast_expr< constant_exprt > (const exprt &base)
 
const constant_exprtto_constant_expr (const exprt &expr)
 Cast an exprt to a constant_exprt. More...
 
constant_exprtto_constant_expr (exprt &expr)
 Cast an exprt to a constant_exprt. More...
 
template<>
bool can_cast_expr< nil_exprt > (const exprt &base)
 
template<>
bool can_cast_expr< replication_exprt > (const exprt &base)
 
void validate_expr (const replication_exprt &value)
 
const replication_exprtto_replication_expr (const exprt &expr)
 Cast an exprt to a replication_exprt. More...
 
replication_exprtto_replication_expr (exprt &expr)
 Cast an exprt to a replication_exprt. More...
 
template<>
bool can_cast_expr< concatenation_exprt > (const exprt &base)
 
const concatenation_exprtto_concatenation_expr (const exprt &expr)
 Cast an exprt to a concatenation_exprt. More...
 
concatenation_exprtto_concatenation_expr (exprt &expr)
 Cast an exprt to a concatenation_exprt. More...
 
template<>
bool can_cast_expr< let_exprt > (const exprt &base)
 
void validate_expr (const let_exprt &value)
 
const let_exprtto_let_expr (const exprt &expr)
 Cast an exprt to a let_exprt. More...
 
let_exprtto_let_expr (exprt &expr)
 Cast an exprt to a let_exprt. More...
 
template<>
bool can_cast_expr< popcount_exprt > (const exprt &base)
 
void validate_expr (const popcount_exprt &value)
 
const popcount_exprtto_popcount_expr (const exprt &expr)
 Cast an exprt to a popcount_exprt. More...
 
popcount_exprtto_popcount_expr (exprt &expr)
 Cast an exprt to a popcount_exprt. More...
 
template<>
bool can_cast_expr< cond_exprt > (const exprt &base)
 
void validate_expr (const cond_exprt &value)
 
const cond_exprtto_cond_expr (const exprt &expr)
 Cast an exprt to a cond_exprt. More...
 
cond_exprtto_cond_expr (exprt &expr)
 Cast an exprt to a popcount_exprt. More...
 
template<>
bool can_cast_expr< array_comprehension_exprt > (const exprt &base)
 
void validate_expr (const array_comprehension_exprt &value)
 
const array_comprehension_exprtto_array_comprehension_expr (const exprt &expr)
 Cast an exprt to a array_comprehension_exprt. More...
 
array_comprehension_exprtto_array_comprehension_expr (exprt &expr)
 Cast an exprt to a array_comprehension_exprt. More...
 

Detailed Description

API to expression classes.

Definition in file std_expr.h.

Function Documentation

◆ can_cast_expr< abs_exprt >()

template<>
bool can_cast_expr< abs_exprt > ( const exprt base)
inline

Definition at line 356 of file std_expr.h.

◆ can_cast_expr< address_of_exprt >()

template<>
bool can_cast_expr< address_of_exprt > ( const exprt base)
inline

Definition at line 2963 of file std_expr.h.

◆ can_cast_expr< and_exprt >()

template<>
bool can_cast_expr< and_exprt > ( const exprt base)
inline

Definition at line 2319 of file std_expr.h.

◆ can_cast_expr< array_comprehension_exprt >()

template<>
bool can_cast_expr< array_comprehension_exprt > ( const exprt base)
inline

Definition at line 4529 of file std_expr.h.

◆ can_cast_expr< array_exprt >()

template<>
bool can_cast_expr< array_exprt > ( const exprt base)
inline

Definition at line 1558 of file std_expr.h.

◆ can_cast_expr< array_list_exprt >()

template<>
bool can_cast_expr< array_list_exprt > ( const exprt base)
inline

Definition at line 1616 of file std_expr.h.

◆ can_cast_expr< array_of_exprt >()

template<>
bool can_cast_expr< array_of_exprt > ( const exprt base)
inline

Definition at line 1497 of file std_expr.h.

◆ can_cast_expr< binary_exprt >()

template<>
bool can_cast_expr< binary_exprt > ( const exprt base)
inline

Definition at line 705 of file std_expr.h.

◆ can_cast_expr< binary_relation_exprt >()

template<>
bool can_cast_expr< binary_relation_exprt > ( const exprt base)
inline

Definition at line 843 of file std_expr.h.

◆ can_cast_expr< bitand_exprt >()

template<>
bool can_cast_expr< bitand_exprt > ( const exprt base)
inline

Definition at line 2625 of file std_expr.h.

◆ can_cast_expr< bitnot_exprt >()

template<>
bool can_cast_expr< bitnot_exprt > ( const exprt base)
inline

Definition at line 2508 of file std_expr.h.

◆ can_cast_expr< bitor_exprt >()

template<>
bool can_cast_expr< bitor_exprt > ( const exprt base)
inline

Definition at line 2553 of file std_expr.h.

◆ can_cast_expr< bitxor_exprt >()

template<>
bool can_cast_expr< bitxor_exprt > ( const exprt base)
inline

Definition at line 2589 of file std_expr.h.

◆ can_cast_expr< bswap_exprt >()

template<>
bool can_cast_expr< bswap_exprt > ( const exprt base)
inline

Definition at line 511 of file std_expr.h.

◆ can_cast_expr< complex_exprt >()

template<>
bool can_cast_expr< complex_exprt > ( const exprt base)
inline

Definition at line 1836 of file std_expr.h.

◆ can_cast_expr< complex_imag_exprt >()

template<>
bool can_cast_expr< complex_imag_exprt > ( const exprt base)
inline

Definition at line 1925 of file std_expr.h.

◆ can_cast_expr< complex_real_exprt >()

template<>
bool can_cast_expr< complex_real_exprt > ( const exprt base)
inline

Definition at line 1880 of file std_expr.h.

◆ can_cast_expr< concatenation_exprt >()

template<>
bool can_cast_expr< concatenation_exprt > ( const exprt base)
inline

Definition at line 4250 of file std_expr.h.

◆ can_cast_expr< cond_exprt >()

template<>
bool can_cast_expr< cond_exprt > ( const exprt base)
inline

Definition at line 4442 of file std_expr.h.

◆ can_cast_expr< constant_exprt >()

template<>
bool can_cast_expr< constant_exprt > ( const exprt base)
inline

Definition at line 4094 of file std_expr.h.

◆ can_cast_expr< dereference_exprt >()

template<>
bool can_cast_expr< dereference_exprt > ( const exprt base)
inline

Definition at line 3089 of file std_expr.h.

◆ can_cast_expr< div_exprt >()

template<>
bool can_cast_expr< div_exprt > ( const exprt base)
inline

Definition at line 1165 of file std_expr.h.

◆ can_cast_expr< dynamic_object_exprt >()

template<>
bool can_cast_expr< dynamic_object_exprt > ( const exprt base)
inline

Definition at line 2084 of file std_expr.h.

◆ can_cast_expr< equal_exprt >()

template<>
bool can_cast_expr< equal_exprt > ( const exprt base)
inline

Definition at line 1315 of file std_expr.h.

◆ can_cast_expr< extractbit_exprt >()

template<>
bool can_cast_expr< extractbit_exprt > ( const exprt base)
inline

Definition at line 2817 of file std_expr.h.

◆ can_cast_expr< extractbits_exprt >()

template<>
bool can_cast_expr< extractbits_exprt > ( const exprt base)
inline

Definition at line 2906 of file std_expr.h.

◆ can_cast_expr< floatbv_typecast_exprt >()

template<>
bool can_cast_expr< floatbv_typecast_exprt > ( const exprt base)
inline

Definition at line 2241 of file std_expr.h.

◆ can_cast_expr< ieee_float_equal_exprt >()

template<>
bool can_cast_expr< ieee_float_equal_exprt > ( const exprt base)
inline

Definition at line 3887 of file std_expr.h.

◆ can_cast_expr< ieee_float_notequal_exprt >()

template<>
bool can_cast_expr< ieee_float_notequal_exprt > ( const exprt base)
inline

Definition at line 3943 of file std_expr.h.

◆ can_cast_expr< ieee_float_op_exprt >()

template<>
bool can_cast_expr< ieee_float_op_exprt > ( const exprt base)
inline

Definition at line 4026 of file std_expr.h.

◆ can_cast_expr< if_exprt >()

template<>
bool can_cast_expr< if_exprt > ( const exprt base)
inline

Definition at line 3174 of file std_expr.h.

◆ can_cast_expr< implies_exprt >()

template<>
bool can_cast_expr< implies_exprt > ( const exprt base)
inline

Definition at line 2355 of file std_expr.h.

◆ can_cast_expr< index_designatort >()

template<>
bool can_cast_expr< index_designatort > ( const exprt base)
inline

Definition at line 3310 of file std_expr.h.

◆ can_cast_expr< index_exprt >()

template<>
bool can_cast_expr< index_exprt > ( const exprt base)
inline

Definition at line 1432 of file std_expr.h.

◆ can_cast_expr< isfinite_exprt >()

template<>
bool can_cast_expr< isfinite_exprt > ( const exprt base)
inline

Definition at line 3784 of file std_expr.h.

◆ can_cast_expr< isinf_exprt >()

template<>
bool can_cast_expr< isinf_exprt > ( const exprt base)
inline

Definition at line 3734 of file std_expr.h.

◆ can_cast_expr< isnan_exprt >()

template<>
bool can_cast_expr< isnan_exprt > ( const exprt base)
inline

Definition at line 3684 of file std_expr.h.

◆ can_cast_expr< isnormal_exprt >()

template<>
bool can_cast_expr< isnormal_exprt > ( const exprt base)
inline

Definition at line 3834 of file std_expr.h.

◆ can_cast_expr< let_exprt >()

template<>
bool can_cast_expr< let_exprt > ( const exprt base)
inline

Definition at line 4331 of file std_expr.h.

◆ can_cast_expr< member_designatort >()

template<>
bool can_cast_expr< member_designatort > ( const exprt base)
inline

Definition at line 3359 of file std_expr.h.

◆ can_cast_expr< member_exprt >()

template<>
bool can_cast_expr< member_exprt > ( const exprt base)
inline

Definition at line 3634 of file std_expr.h.

◆ can_cast_expr< minus_exprt >()

template<>
bool can_cast_expr< minus_exprt > ( const exprt base)
inline

Definition at line 1050 of file std_expr.h.

◆ can_cast_expr< mod_exprt >()

template<>
bool can_cast_expr< mod_exprt > ( const exprt base)
inline

Definition at line 1210 of file std_expr.h.

◆ can_cast_expr< mult_exprt >()

template<>
bool can_cast_expr< mult_exprt > ( const exprt base)
inline

Definition at line 1096 of file std_expr.h.

◆ can_cast_expr< nil_exprt >()

template<>
bool can_cast_expr< nil_exprt > ( const exprt base)
inline

Definition at line 4148 of file std_expr.h.

◆ can_cast_expr< nondet_symbol_exprt >()

template<>
bool can_cast_expr< nondet_symbol_exprt > ( const exprt base)
inline

Definition at line 239 of file std_expr.h.

◆ can_cast_expr< not_exprt >()

template<>
bool can_cast_expr< not_exprt > ( const exprt base)
inline

Definition at line 3013 of file std_expr.h.

◆ can_cast_expr< notequal_exprt >()

template<>
bool can_cast_expr< notequal_exprt > ( const exprt base)
inline

Definition at line 1358 of file std_expr.h.

◆ can_cast_expr< object_descriptor_exprt >()

template<>
bool can_cast_expr< object_descriptor_exprt > ( const exprt base)
inline

Definition at line 2013 of file std_expr.h.

◆ can_cast_expr< or_exprt >()

template<>
bool can_cast_expr< or_exprt > ( const exprt base)
inline

Definition at line 2432 of file std_expr.h.

◆ can_cast_expr< plus_exprt >()

template<>
bool can_cast_expr< plus_exprt > ( const exprt base)
inline

Definition at line 1005 of file std_expr.h.

◆ can_cast_expr< popcount_exprt >()

template<>
bool can_cast_expr< popcount_exprt > ( const exprt base)
inline

Definition at line 4380 of file std_expr.h.

◆ can_cast_expr< rem_exprt >()

template<>
bool can_cast_expr< rem_exprt > ( const exprt base)
inline

Definition at line 1255 of file std_expr.h.

◆ can_cast_expr< replication_exprt >()

template<>
bool can_cast_expr< replication_exprt > ( const exprt base)
inline

Definition at line 4194 of file std_expr.h.

◆ can_cast_expr< shift_exprt >()

template<>
bool can_cast_expr< shift_exprt > ( const exprt base)
inline

Definition at line 2683 of file std_expr.h.

◆ can_cast_expr< sign_exprt >()

template<>
bool can_cast_expr< sign_exprt > ( const exprt base)
inline

Definition at line 616 of file std_expr.h.

◆ can_cast_expr< struct_exprt >()

template<>
bool can_cast_expr< struct_exprt > ( const exprt base)
inline

Definition at line 1776 of file std_expr.h.

◆ can_cast_expr< symbol_exprt >()

template<>
bool can_cast_expr< symbol_exprt > ( const exprt base)
inline

Definition at line 168 of file std_expr.h.

◆ can_cast_expr< typecast_exprt >()

template<>
bool can_cast_expr< typecast_exprt > ( const exprt base)
inline

Definition at line 2172 of file std_expr.h.

◆ can_cast_expr< unary_exprt >()

template<>
bool can_cast_expr< unary_exprt > ( const exprt base)
inline

Definition at line 314 of file std_expr.h.

◆ can_cast_expr< unary_minus_exprt >()

template<>
bool can_cast_expr< unary_minus_exprt > ( const exprt base)
inline

Definition at line 406 of file std_expr.h.

◆ can_cast_expr< unary_plus_exprt >()

template<>
bool can_cast_expr< unary_plus_exprt > ( const exprt base)
inline

Definition at line 450 of file std_expr.h.

◆ can_cast_expr< union_exprt >()

template<>
bool can_cast_expr< union_exprt > ( const exprt base)
inline

Definition at line 1716 of file std_expr.h.

◆ can_cast_expr< update_exprt >()

template<>
bool can_cast_expr< update_exprt > ( const exprt base)
inline

Definition at line 3443 of file std_expr.h.

◆ can_cast_expr< vector_exprt >()

template<>
bool can_cast_expr< vector_exprt > ( const exprt base)
inline

Definition at line 1659 of file std_expr.h.

◆ can_cast_expr< with_exprt >()

template<>
bool can_cast_expr< with_exprt > ( const exprt base)
inline

Definition at line 3253 of file std_expr.h.

◆ can_cast_expr< xor_exprt >()

template<>
bool can_cast_expr< xor_exprt > ( const exprt base)
inline

Definition at line 2473 of file std_expr.h.

◆ conjunction()

exprt conjunction ( const exprt::operandst )

1) generates a conjunction for two or more operands 2) for one operand, returns the operand 3) returns true otherwise

Definition at line 50 of file std_expr.cpp.

◆ disjunction()

exprt disjunction ( const exprt::operandst )

1) generates a disjunction for two or more operands 2) for one operand, returns the operand 3) returns false otherwise

Definition at line 28 of file std_expr.cpp.

◆ to_abs_expr() [1/2]

const abs_exprt& to_abs_expr ( const exprt expr)
inline

Cast an exprt to a abs_exprt.

expr must be known to be abs_exprt.

Parameters
exprSource expression
Returns
Object of type abs_exprt

Definition at line 372 of file std_expr.h.

◆ to_abs_expr() [2/2]

abs_exprt& to_abs_expr ( exprt expr)
inline

Cast an exprt to a abs_exprt.

expr must be known to be abs_exprt.

Parameters
exprSource expression
Returns
Object of type abs_exprt

Definition at line 381 of file std_expr.h.

◆ to_address_of_expr() [1/2]

const address_of_exprt& to_address_of_expr ( const exprt expr)
inline

Cast an exprt to an address_of_exprt.

expr must be known to be address_of_exprt.

Parameters
exprSource expression
Returns
Object of type address_of_exprt

Definition at line 2979 of file std_expr.h.

◆ to_address_of_expr() [2/2]

address_of_exprt& to_address_of_expr ( exprt expr)
inline

Cast an exprt to an address_of_exprt.

expr must be known to be address_of_exprt.

Parameters
exprSource expression
Returns
Object of type address_of_exprt

Definition at line 2988 of file std_expr.h.

◆ to_and_expr() [1/2]

const and_exprt& to_and_expr ( const exprt expr)
inline

Cast an exprt to a and_exprt.

expr must be known to be and_exprt.

Parameters
exprSource expression
Returns
Object of type and_exprt

Definition at line 2330 of file std_expr.h.

◆ to_and_expr() [2/2]

and_exprt& to_and_expr ( exprt expr)
inline

Cast an exprt to a and_exprt.

expr must be known to be and_exprt.

Parameters
exprSource expression
Returns
Object of type and_exprt

Definition at line 2337 of file std_expr.h.

◆ to_array_comprehension_expr() [1/2]

const array_comprehension_exprt& to_array_comprehension_expr ( const exprt expr)
inline

Cast an exprt to a array_comprehension_exprt.

expr must be known to be array_comprehension_exprt.

Parameters
exprSource expression
Returns
Object of type array_comprehension_exprt

Definition at line 4546 of file std_expr.h.

◆ to_array_comprehension_expr() [2/2]

array_comprehension_exprt& to_array_comprehension_expr ( exprt expr)
inline

Cast an exprt to a array_comprehension_exprt.

expr must be known to be array_comprehension_exprt.

Parameters
exprSource expression
Returns
Object of type array_comprehension_exprt

Definition at line 4556 of file std_expr.h.

◆ to_array_expr() [1/2]

const array_exprt& to_array_expr ( const exprt expr)
inline

Cast an exprt to an array_exprt.

expr must be known to be array_exprt.

Parameters
exprSource expression
Returns
Object of type array_exprt

Definition at line 1569 of file std_expr.h.

◆ to_array_expr() [2/2]

array_exprt& to_array_expr ( exprt expr)
inline

Cast an exprt to an array_exprt.

expr must be known to be array_exprt.

Parameters
exprSource expression
Returns
Object of type array_exprt

Definition at line 1576 of file std_expr.h.

◆ to_array_list_expr() [1/2]

const array_list_exprt& to_array_list_expr ( const exprt expr)
inline

Definition at line 1626 of file std_expr.h.

◆ to_array_list_expr() [2/2]

array_list_exprt& to_array_list_expr ( exprt expr)
inline

Definition at line 1634 of file std_expr.h.

◆ to_array_of_expr() [1/2]

const array_of_exprt& to_array_of_expr ( const exprt expr)
inline

Cast an exprt to an array_of_exprt.

expr must be known to be array_of_exprt.

Parameters
exprSource expression
Returns
Object of type array_of_exprt

Definition at line 1513 of file std_expr.h.

◆ to_array_of_expr() [2/2]

array_of_exprt& to_array_of_expr ( exprt expr)
inline

Cast an exprt to an array_of_exprt.

expr must be known to be array_of_exprt.

Parameters
exprSource expression
Returns
Object of type array_of_exprt

Definition at line 1522 of file std_expr.h.

◆ to_binary_expr() [1/2]

const binary_exprt& to_binary_expr ( const exprt expr)
inline

Cast an exprt to a binary_exprt.

expr must be known to be binary_exprt.

Parameters
exprSource expression
Returns
Object of type binary_exprt

Definition at line 721 of file std_expr.h.

◆ to_binary_expr() [2/2]

binary_exprt& to_binary_expr ( exprt expr)
inline

Cast an exprt to a binary_exprt.

expr must be known to be binary_exprt.

Parameters
exprSource expression
Returns
Object of type binary_exprt

Definition at line 728 of file std_expr.h.

◆ to_binary_relation_expr() [1/2]

const binary_relation_exprt& to_binary_relation_expr ( const exprt expr)
inline

Cast an exprt to a binary_relation_exprt.

expr must be known to be binary_relation_exprt.

Parameters
exprSource expression
Returns
Object of type binary_relation_exprt

Definition at line 859 of file std_expr.h.

◆ to_binary_relation_expr() [2/2]

binary_relation_exprt& to_binary_relation_expr ( exprt expr)
inline

Cast an exprt to a binary_relation_exprt.

expr must be known to be binary_relation_exprt.

Parameters
exprSource expression
Returns
Object of type binary_relation_exprt

Definition at line 866 of file std_expr.h.

◆ to_bitand_expr() [1/2]

const bitand_exprt& to_bitand_expr ( const exprt expr)
inline

Cast an exprt to a bitand_exprt.

expr must be known to be bitand_exprt.

Parameters
exprSource expression
Returns
Object of type bitand_exprt

Definition at line 2636 of file std_expr.h.

◆ to_bitand_expr() [2/2]

bitand_exprt& to_bitand_expr ( exprt expr)
inline

Cast an exprt to a bitand_exprt.

expr must be known to be bitand_exprt.

Parameters
exprSource expression
Returns
Object of type bitand_exprt

Definition at line 2643 of file std_expr.h.

◆ to_bitnot_expr() [1/2]

const bitnot_exprt& to_bitnot_expr ( const exprt expr)
inline

Cast an exprt to a bitnot_exprt.

expr must be known to be bitnot_exprt.

Parameters
exprSource expression
Returns
Object of type bitnot_exprt

Definition at line 2524 of file std_expr.h.

◆ to_bitnot_expr() [2/2]

bitnot_exprt& to_bitnot_expr ( exprt expr)
inline

Cast an exprt to a bitnot_exprt.

expr must be known to be bitnot_exprt.

Parameters
exprSource expression
Returns
Object of type bitnot_exprt

Definition at line 2533 of file std_expr.h.

◆ to_bitor_expr() [1/2]

const bitor_exprt& to_bitor_expr ( const exprt expr)
inline

Cast an exprt to a bitor_exprt.

expr must be known to be bitor_exprt.

Parameters
exprSource expression
Returns
Object of type bitor_exprt

Definition at line 2564 of file std_expr.h.

◆ to_bitor_expr() [2/2]

bitor_exprt& to_bitor_expr ( exprt expr)
inline

Cast an exprt to a bitor_exprt.

expr must be known to be bitor_exprt.

Parameters
exprSource expression
Returns
Object of type bitor_exprt

Definition at line 2571 of file std_expr.h.

◆ to_bitxor_expr() [1/2]

const bitxor_exprt& to_bitxor_expr ( const exprt expr)
inline

Cast an exprt to a bitxor_exprt.

expr must be known to be bitxor_exprt.

Parameters
exprSource expression
Returns
Object of type bitxor_exprt

Definition at line 2600 of file std_expr.h.

◆ to_bitxor_expr() [2/2]

bitxor_exprt& to_bitxor_expr ( exprt expr)
inline

Cast an exprt to a bitxor_exprt.

expr must be known to be bitxor_exprt.

Parameters
exprSource expression
Returns
Object of type bitxor_exprt

Definition at line 2607 of file std_expr.h.

◆ to_bswap_expr() [1/2]

const bswap_exprt& to_bswap_expr ( const exprt expr)
inline

Cast an exprt to a bswap_exprt.

expr must be known to be bswap_exprt.

Parameters
exprSource expression
Returns
Object of type bswap_exprt

Definition at line 529 of file std_expr.h.

◆ to_bswap_expr() [2/2]

bswap_exprt& to_bswap_expr ( exprt expr)
inline

Cast an exprt to a bswap_exprt.

expr must be known to be bswap_exprt.

Parameters
exprSource expression
Returns
Object of type bswap_exprt

Definition at line 538 of file std_expr.h.

◆ to_complex_expr() [1/2]

const complex_exprt& to_complex_expr ( const exprt expr)
inline

Cast an exprt to a complex_exprt.

expr must be known to be complex_exprt.

Parameters
exprSource expression
Returns
Object of type complex_exprt

Definition at line 1852 of file std_expr.h.

◆ to_complex_expr() [2/2]

complex_exprt& to_complex_expr ( exprt expr)
inline

Cast an exprt to a complex_exprt.

expr must be known to be complex_exprt.

Parameters
exprSource expression
Returns
Object of type complex_exprt

Definition at line 1861 of file std_expr.h.

◆ to_complex_imag_expr() [1/2]

const complex_imag_exprt& to_complex_imag_expr ( const exprt expr)
inline

Cast an exprt to a complex_imag_exprt.

expr must be known to be a complex_imag_exprt.

Parameters
exprSource expression
Returns
Object of type complex_imag_exprt

Definition at line 1942 of file std_expr.h.

◆ to_complex_imag_expr() [2/2]

complex_imag_exprt& to_complex_imag_expr ( exprt expr)
inline

Cast an exprt to a complex_imag_exprt.

expr must be known to be a complex_imag_exprt.

Parameters
exprSource expression
Returns
Object of type complex_imag_exprt

Definition at line 1951 of file std_expr.h.

◆ to_complex_real_expr() [1/2]

const complex_real_exprt& to_complex_real_expr ( const exprt expr)
inline

Cast an exprt to a complex_real_exprt.

expr must be known to be a complex_real_exprt.

Parameters
exprSource expression
Returns
Object of type complex_real_exprt

Definition at line 1897 of file std_expr.h.

◆ to_complex_real_expr() [2/2]

complex_real_exprt& to_complex_real_expr ( exprt expr)
inline

Cast an exprt to a complex_real_exprt.

expr must be known to be a complex_real_exprt.

Parameters
exprSource expression
Returns
Object of type complex_real_exprt

Definition at line 1906 of file std_expr.h.

◆ to_concatenation_expr() [1/2]

const concatenation_exprt& to_concatenation_expr ( const exprt expr)
inline

Cast an exprt to a concatenation_exprt.

expr must be known to be concatenation_exprt.

Parameters
exprSource expression
Returns
Object of type concatenation_exprt

Definition at line 4261 of file std_expr.h.

◆ to_concatenation_expr() [2/2]

concatenation_exprt& to_concatenation_expr ( exprt expr)
inline

Cast an exprt to a concatenation_exprt.

expr must be known to be concatenation_exprt.

Parameters
exprSource expression
Returns
Object of type concatenation_exprt

Definition at line 4268 of file std_expr.h.

◆ to_cond_expr() [1/2]

const cond_exprt& to_cond_expr ( const exprt expr)
inline

Cast an exprt to a cond_exprt.

expr must be known to be cond_exprt.

Parameters
exprSource expression
Returns
Object of type cond_exprt

Definition at line 4459 of file std_expr.h.

◆ to_cond_expr() [2/2]

cond_exprt& to_cond_expr ( exprt expr)
inline

Cast an exprt to a popcount_exprt.

expr must be known to be popcount_exprt.

Parameters
exprSource expression
Returns
Object of type popcount_exprt

Definition at line 4468 of file std_expr.h.

◆ to_constant_expr() [1/2]

const constant_exprt& to_constant_expr ( const exprt expr)
inline

Cast an exprt to a constant_exprt.

expr must be known to be constant_exprt.

Parameters
exprSource expression
Returns
Object of type constant_exprt

Definition at line 4105 of file std_expr.h.

◆ to_constant_expr() [2/2]

constant_exprt& to_constant_expr ( exprt expr)
inline

Cast an exprt to a constant_exprt.

expr must be known to be constant_exprt.

Parameters
exprSource expression
Returns
Object of type constant_exprt

Definition at line 4112 of file std_expr.h.

◆ to_dereference_expr() [1/2]

const dereference_exprt& to_dereference_expr ( const exprt expr)
inline

Cast an exprt to a dereference_exprt.

expr must be known to be dereference_exprt.

Parameters
exprSource expression
Returns
Object of type dereference_exprt

Definition at line 3105 of file std_expr.h.

◆ to_dereference_expr() [2/2]

dereference_exprt& to_dereference_expr ( exprt expr)
inline

Cast an exprt to a dereference_exprt.

expr must be known to be dereference_exprt.

Parameters
exprSource expression
Returns
Object of type dereference_exprt

Definition at line 3114 of file std_expr.h.

◆ to_div_expr() [1/2]

const div_exprt& to_div_expr ( const exprt expr)
inline

Cast an exprt to a div_exprt.

expr must be known to be div_exprt.

Parameters
exprSource expression
Returns
Object of type div_exprt

Definition at line 1181 of file std_expr.h.

◆ to_div_expr() [2/2]

div_exprt& to_div_expr ( exprt expr)
inline

Cast an exprt to a div_exprt.

expr must be known to be div_exprt.

Parameters
exprSource expression
Returns
Object of type div_exprt

Definition at line 1190 of file std_expr.h.

◆ to_dynamic_object_expr() [1/2]

const dynamic_object_exprt& to_dynamic_object_expr ( const exprt expr)
inline

Cast an exprt to a dynamic_object_exprt.

expr must be known to be dynamic_object_exprt.

Parameters
exprSource expression
Returns
Object of type dynamic_object_exprt

Definition at line 2100 of file std_expr.h.

◆ to_dynamic_object_expr() [2/2]

dynamic_object_exprt& to_dynamic_object_expr ( exprt expr)
inline

Cast an exprt to a dynamic_object_exprt.

expr must be known to be dynamic_object_exprt.

Parameters
exprSource expression
Returns
Object of type dynamic_object_exprt

Definition at line 2111 of file std_expr.h.

◆ to_equal_expr() [1/2]

const equal_exprt& to_equal_expr ( const exprt expr)
inline

Cast an exprt to an equal_exprt.

expr must be known to be equal_exprt.

Parameters
exprSource expression
Returns
Object of type equal_exprt

Definition at line 1331 of file std_expr.h.

◆ to_equal_expr() [2/2]

equal_exprt& to_equal_expr ( exprt expr)
inline

Cast an exprt to an equal_exprt.

expr must be known to be equal_exprt.

Parameters
exprSource expression
Returns
Object of type equal_exprt

Definition at line 1339 of file std_expr.h.

◆ to_extractbit_expr() [1/2]

const extractbit_exprt& to_extractbit_expr ( const exprt expr)
inline

Cast an exprt to an extractbit_exprt.

expr must be known to be extractbit_exprt.

Parameters
exprSource expression
Returns
Object of type extractbit_exprt

Definition at line 2833 of file std_expr.h.

◆ to_extractbit_expr() [2/2]

extractbit_exprt& to_extractbit_expr ( exprt expr)
inline

Cast an exprt to an extractbit_exprt.

expr must be known to be extractbit_exprt.

Parameters
exprSource expression
Returns
Object of type extractbit_exprt

Definition at line 2842 of file std_expr.h.

◆ to_extractbits_expr() [1/2]

const extractbits_exprt& to_extractbits_expr ( const exprt expr)
inline

Cast an exprt to an extractbits_exprt.

expr must be known to be extractbits_exprt.

Parameters
exprSource expression
Returns
Object of type extractbits_exprt

Definition at line 2922 of file std_expr.h.

◆ to_extractbits_expr() [2/2]

extractbits_exprt& to_extractbits_expr ( exprt expr)
inline

Cast an exprt to an extractbits_exprt.

expr must be known to be extractbits_exprt.

Parameters
exprSource expression
Returns
Object of type extractbits_exprt

Definition at line 2931 of file std_expr.h.

◆ to_floatbv_typecast_expr() [1/2]

const floatbv_typecast_exprt& to_floatbv_typecast_expr ( const exprt expr)
inline

Cast an exprt to a floatbv_typecast_exprt.

expr must be known to be floatbv_typecast_exprt.

Parameters
exprSource expression
Returns
Object of type floatbv_typecast_exprt

Definition at line 2257 of file std_expr.h.

◆ to_floatbv_typecast_expr() [2/2]

floatbv_typecast_exprt& to_floatbv_typecast_expr ( exprt expr)
inline

Cast an exprt to a floatbv_typecast_exprt.

expr must be known to be floatbv_typecast_exprt.

Parameters
exprSource expression
Returns
Object of type floatbv_typecast_exprt

Definition at line 2267 of file std_expr.h.

◆ to_ieee_float_equal_expr() [1/2]

const ieee_float_equal_exprt& to_ieee_float_equal_expr ( const exprt expr)
inline

Cast an exprt to an ieee_float_equal_exprt.

expr must be known to be ieee_float_equal_exprt.

Parameters
exprSource expression
Returns
Object of type ieee_float_equal_exprt

Definition at line 3903 of file std_expr.h.

◆ to_ieee_float_equal_expr() [2/2]

ieee_float_equal_exprt& to_ieee_float_equal_expr ( exprt expr)
inline

Cast an exprt to an ieee_float_equal_exprt.

expr must be known to be ieee_float_equal_exprt.

Parameters
exprSource expression
Returns
Object of type ieee_float_equal_exprt

Definition at line 3913 of file std_expr.h.

◆ to_ieee_float_notequal_expr() [1/2]

const ieee_float_notequal_exprt& to_ieee_float_notequal_expr ( const exprt expr)
inline

Cast an exprt to an ieee_float_notequal_exprt.

expr must be known to be ieee_float_notequal_exprt.

Parameters
exprSource expression
Returns
Object of type ieee_float_notequal_exprt

Definition at line 3959 of file std_expr.h.

◆ to_ieee_float_notequal_expr() [2/2]

ieee_float_notequal_exprt& to_ieee_float_notequal_expr ( exprt expr)
inline

Cast an exprt to an ieee_float_notequal_exprt.

expr must be known to be ieee_float_notequal_exprt.

Parameters
exprSource expression
Returns
Object of type ieee_float_notequal_exprt

Definition at line 3970 of file std_expr.h.

◆ to_ieee_float_op_expr() [1/2]

const ieee_float_op_exprt& to_ieee_float_op_expr ( const exprt expr)
inline

Cast an exprt to an ieee_float_op_exprt.

expr must be known to be ieee_float_op_exprt.

Parameters
exprSource expression
Returns
Object of type ieee_float_op_exprt

Definition at line 4044 of file std_expr.h.

◆ to_ieee_float_op_expr() [2/2]

ieee_float_op_exprt& to_ieee_float_op_expr ( exprt expr)
inline

Cast an exprt to an ieee_float_op_exprt.

expr must be known to be ieee_float_op_exprt.

Parameters
exprSource expression
Returns
Object of type ieee_float_op_exprt

Definition at line 4053 of file std_expr.h.

◆ to_if_expr() [1/2]

const if_exprt& to_if_expr ( const exprt expr)
inline

Cast an exprt to an if_exprt.

expr must be known to be if_exprt.

Parameters
exprSource expression
Returns
Object of type if_exprt

Definition at line 3190 of file std_expr.h.

◆ to_if_expr() [2/2]

if_exprt& to_if_expr ( exprt expr)
inline

Cast an exprt to an if_exprt.

expr must be known to be if_exprt.

Parameters
exprSource expression
Returns
Object of type if_exprt

Definition at line 3199 of file std_expr.h.

◆ to_implies_expr() [1/2]

const implies_exprt& to_implies_expr ( const exprt expr)
inline

Cast an exprt to a implies_exprt.

expr must be known to be implies_exprt.

Parameters
exprSource expression
Returns
Object of type implies_exprt

Definition at line 2371 of file std_expr.h.

◆ to_implies_expr() [2/2]

implies_exprt& to_implies_expr ( exprt expr)
inline

Cast an exprt to a implies_exprt.

expr must be known to be implies_exprt.

Parameters
exprSource expression
Returns
Object of type implies_exprt

Definition at line 2380 of file std_expr.h.

◆ to_index_designator() [1/2]

const index_designatort& to_index_designator ( const exprt expr)
inline

Cast an exprt to an index_designatort.

expr must be known to be index_designatort.

Parameters
exprSource expression
Returns
Object of type index_designatort

Definition at line 3326 of file std_expr.h.

◆ to_index_designator() [2/2]

index_designatort& to_index_designator ( exprt expr)
inline

Cast an exprt to an index_designatort.

expr must be known to be index_designatort.

Parameters
exprSource expression
Returns
Object of type index_designatort

Definition at line 3335 of file std_expr.h.

◆ to_index_expr() [1/2]

const index_exprt& to_index_expr ( const exprt expr)
inline

Cast an exprt to an index_exprt.

expr must be known to be index_exprt.

Parameters
exprSource expression
Returns
Object of type index_exprt

Definition at line 1448 of file std_expr.h.

◆ to_index_expr() [2/2]

index_exprt& to_index_expr ( exprt expr)
inline

Cast an exprt to an index_exprt.

expr must be known to be index_exprt.

Parameters
exprSource expression
Returns
Object of type index_exprt

Definition at line 1457 of file std_expr.h.

◆ to_is_dynamic_object_expr() [1/2]

const is_dynamic_object_exprt& to_is_dynamic_object_expr ( const exprt expr)
inline

Definition at line 2134 of file std_expr.h.

◆ to_is_dynamic_object_expr() [2/2]

is_dynamic_object_exprt& to_is_dynamic_object_expr ( exprt expr)
inline

Definition at line 2144 of file std_expr.h.

◆ to_isfinite_expr() [1/2]

const isfinite_exprt& to_isfinite_expr ( const exprt expr)
inline

Cast an exprt to a isfinite_exprt.

expr must be known to be isfinite_exprt.

Parameters
exprSource expression
Returns
Object of type isfinite_exprt

Definition at line 3800 of file std_expr.h.

◆ to_isfinite_expr() [2/2]

isfinite_exprt& to_isfinite_expr ( exprt expr)
inline

Cast an exprt to a isfinite_exprt.

expr must be known to be isfinite_exprt.

Parameters
exprSource expression
Returns
Object of type isfinite_exprt

Definition at line 3809 of file std_expr.h.

◆ to_isinf_expr() [1/2]

const isinf_exprt& to_isinf_expr ( const exprt expr)
inline

Cast an exprt to a isinf_exprt.

expr must be known to be isinf_exprt.

Parameters
exprSource expression
Returns
Object of type isinf_exprt

Definition at line 3750 of file std_expr.h.

◆ to_isinf_expr() [2/2]

isinf_exprt& to_isinf_expr ( exprt expr)
inline

Cast an exprt to a isinf_exprt.

expr must be known to be isinf_exprt.

Parameters
exprSource expression
Returns
Object of type isinf_exprt

Definition at line 3759 of file std_expr.h.

◆ to_isnan_expr() [1/2]

const isnan_exprt& to_isnan_expr ( const exprt expr)
inline

Cast an exprt to a isnan_exprt.

expr must be known to be isnan_exprt.

Parameters
exprSource expression
Returns
Object of type isnan_exprt

Definition at line 3700 of file std_expr.h.

◆ to_isnan_expr() [2/2]

isnan_exprt& to_isnan_expr ( exprt expr)
inline

Cast an exprt to a isnan_exprt.

expr must be known to be isnan_exprt.

Parameters
exprSource expression
Returns
Object of type isnan_exprt

Definition at line 3709 of file std_expr.h.

◆ to_isnormal_expr() [1/2]

const isnormal_exprt& to_isnormal_expr ( const exprt expr)
inline

Cast an exprt to a isnormal_exprt.

expr must be known to be isnormal_exprt.

Parameters
exprSource expression
Returns
Object of type isnormal_exprt

Definition at line 3850 of file std_expr.h.

◆ to_isnormal_expr() [2/2]

isnormal_exprt& to_isnormal_expr ( exprt expr)
inline

Cast an exprt to a isnormal_exprt.

expr must be known to be isnormal_exprt.

Parameters
exprSource expression
Returns
Object of type isnormal_exprt

Definition at line 3859 of file std_expr.h.

◆ to_let_expr() [1/2]

const let_exprt& to_let_expr ( const exprt expr)
inline

Cast an exprt to a let_exprt.

expr must be known to be let_exprt.

Parameters
exprSource expression
Returns
Object of type let_exprt

Definition at line 4347 of file std_expr.h.

◆ to_let_expr() [2/2]

let_exprt& to_let_expr ( exprt expr)
inline

Cast an exprt to a let_exprt.

expr must be known to be let_exprt.

Parameters
exprSource expression
Returns
Object of type let_exprt

Definition at line 4356 of file std_expr.h.

◆ to_member_designator() [1/2]

const member_designatort& to_member_designator ( const exprt expr)
inline

Cast an exprt to an member_designatort.

expr must be known to be member_designatort.

Parameters
exprSource expression
Returns
Object of type member_designatort

Definition at line 3375 of file std_expr.h.

◆ to_member_designator() [2/2]

member_designatort& to_member_designator ( exprt expr)
inline

Cast an exprt to an member_designatort.

expr must be known to be member_designatort.

Parameters
exprSource expression
Returns
Object of type member_designatort

Definition at line 3384 of file std_expr.h.

◆ to_member_expr() [1/2]

const member_exprt& to_member_expr ( const exprt expr)
inline

Cast an exprt to a member_exprt.

expr must be known to be member_exprt.

Parameters
exprSource expression
Returns
Object of type member_exprt

Definition at line 3650 of file std_expr.h.

◆ to_member_expr() [2/2]

member_exprt& to_member_expr ( exprt expr)
inline

Cast an exprt to a member_exprt.

expr must be known to be member_exprt.

Parameters
exprSource expression
Returns
Object of type member_exprt

Definition at line 3659 of file std_expr.h.

◆ to_minus_expr() [1/2]

const minus_exprt& to_minus_expr ( const exprt expr)
inline

Cast an exprt to a minus_exprt.

expr must be known to be minus_exprt.

Parameters
exprSource expression
Returns
Object of type minus_exprt

Definition at line 1066 of file std_expr.h.

◆ to_minus_expr() [2/2]

minus_exprt& to_minus_expr ( exprt expr)
inline

Cast an exprt to a minus_exprt.

expr must be known to be minus_exprt.

Parameters
exprSource expression
Returns
Object of type minus_exprt

Definition at line 1075 of file std_expr.h.

◆ to_mod_expr() [1/2]

const mod_exprt& to_mod_expr ( const exprt expr)
inline

Cast an exprt to a mod_exprt.

expr must be known to be mod_exprt.

Parameters
exprSource expression
Returns
Object of type mod_exprt

Definition at line 1226 of file std_expr.h.

◆ to_mod_expr() [2/2]

mod_exprt& to_mod_expr ( exprt expr)
inline

Cast an exprt to a mod_exprt.

expr must be known to be mod_exprt.

Parameters
exprSource expression
Returns
Object of type mod_exprt

Definition at line 1235 of file std_expr.h.

◆ to_mult_expr() [1/2]

const mult_exprt& to_mult_expr ( const exprt expr)
inline

Cast an exprt to a mult_exprt.

expr must be known to be mult_exprt.

Parameters
exprSource expression
Returns
Object of type mult_exprt

Definition at line 1112 of file std_expr.h.

◆ to_mult_expr() [2/2]

mult_exprt& to_mult_expr ( exprt expr)
inline

Cast an exprt to a mult_exprt.

expr must be known to be mult_exprt.

Parameters
exprSource expression
Returns
Object of type mult_exprt

Definition at line 1121 of file std_expr.h.

◆ to_multi_ary_expr() [1/2]

const multi_ary_exprt& to_multi_ary_expr ( const exprt expr)
inline

Cast an exprt to a multi_ary_exprt.

expr must be known to be multi_ary_exprt.

Parameters
exprSource expression
Returns
Object of type multi_ary_exprt

Definition at line 962 of file std_expr.h.

◆ to_multi_ary_expr() [2/2]

multi_ary_exprt& to_multi_ary_expr ( exprt expr)
inline

Cast an exprt to a multi_ary_exprt.

expr must be known to be multi_ary_exprt.

Parameters
exprSource expression
Returns
Object of type multi_ary_exprt

Definition at line 968 of file std_expr.h.

◆ to_nondet_symbol_expr() [1/2]

const nondet_symbol_exprt& to_nondet_symbol_expr ( const exprt expr)
inline

Cast an exprt to a nondet_symbol_exprt.

expr must be known to be nondet_symbol_exprt.

Parameters
exprSource expression
Returns
Object of type nondet_symbol_exprt

Definition at line 255 of file std_expr.h.

◆ to_nondet_symbol_expr() [2/2]

nondet_symbol_exprt& to_nondet_symbol_expr ( exprt expr)
inline

Cast an exprt to a nondet_symbol_exprt.

expr must be known to be nondet_symbol_exprt.

Parameters
exprSource expression
Returns
Object of type nondet_symbol_exprt

Definition at line 265 of file std_expr.h.

◆ to_not_expr() [1/2]

const not_exprt& to_not_expr ( const exprt expr)
inline

Cast an exprt to an not_exprt.

expr must be known to be not_exprt.

Parameters
exprSource expression
Returns
Object of type not_exprt

Definition at line 3029 of file std_expr.h.

◆ to_not_expr() [2/2]

not_exprt& to_not_expr ( exprt expr)
inline

Cast an exprt to an not_exprt.

expr must be known to be not_exprt.

Parameters
exprSource expression
Returns
Object of type not_exprt

Definition at line 3038 of file std_expr.h.

◆ to_notequal_expr() [1/2]

const notequal_exprt& to_notequal_expr ( const exprt expr)
inline

Cast an exprt to an notequal_exprt.

expr must be known to be notequal_exprt.

Parameters
exprSource expression
Returns
Object of type notequal_exprt

Definition at line 1374 of file std_expr.h.

◆ to_notequal_expr() [2/2]

notequal_exprt& to_notequal_expr ( exprt expr)
inline

Cast an exprt to an notequal_exprt.

expr must be known to be notequal_exprt.

Parameters
exprSource expression
Returns
Object of type notequal_exprt

Definition at line 1383 of file std_expr.h.

◆ to_object_descriptor_expr() [1/2]

const object_descriptor_exprt& to_object_descriptor_expr ( const exprt expr)
inline

Cast an exprt to an object_descriptor_exprt.

expr must be known to be object_descriptor_exprt.

Parameters
exprSource expression
Returns
Object of type object_descriptor_exprt

Definition at line 2029 of file std_expr.h.

◆ to_object_descriptor_expr() [2/2]

object_descriptor_exprt& to_object_descriptor_expr ( exprt expr)
inline

Cast an exprt to an object_descriptor_exprt.

expr must be known to be object_descriptor_exprt.

Parameters
exprSource expression
Returns
Object of type object_descriptor_exprt

Definition at line 2040 of file std_expr.h.

◆ to_or_expr() [1/2]

const or_exprt& to_or_expr ( const exprt expr)
inline

Cast an exprt to a or_exprt.

expr must be known to be or_exprt.

Parameters
exprSource expression
Returns
Object of type or_exprt

Definition at line 2443 of file std_expr.h.

◆ to_or_expr() [2/2]

or_exprt& to_or_expr ( exprt expr)
inline

Cast an exprt to a or_exprt.

expr must be known to be or_exprt.

Parameters
exprSource expression
Returns
Object of type or_exprt

Definition at line 2450 of file std_expr.h.

◆ to_plus_expr() [1/2]

const plus_exprt& to_plus_expr ( const exprt expr)
inline

Cast an exprt to a plus_exprt.

expr must be known to be plus_exprt.

Parameters
exprSource expression
Returns
Object of type plus_exprt

Definition at line 1021 of file std_expr.h.

◆ to_plus_expr() [2/2]

plus_exprt& to_plus_expr ( exprt expr)
inline

Cast an exprt to a plus_exprt.

expr must be known to be plus_exprt.

Parameters
exprSource expression
Returns
Object of type plus_exprt

Definition at line 1030 of file std_expr.h.

◆ to_popcount_expr() [1/2]

const popcount_exprt& to_popcount_expr ( const exprt expr)
inline

Cast an exprt to a popcount_exprt.

expr must be known to be popcount_exprt.

Parameters
exprSource expression
Returns
Object of type popcount_exprt

Definition at line 4396 of file std_expr.h.

◆ to_popcount_expr() [2/2]

popcount_exprt& to_popcount_expr ( exprt expr)
inline

Cast an exprt to a popcount_exprt.

expr must be known to be popcount_exprt.

Parameters
exprSource expression
Returns
Object of type popcount_exprt

Definition at line 4405 of file std_expr.h.

◆ to_rem_expr() [1/2]

const rem_exprt& to_rem_expr ( const exprt expr)
inline

Cast an exprt to a rem_exprt.

expr must be known to be rem_exprt.

Parameters
exprSource expression
Returns
Object of type rem_exprt

Definition at line 1271 of file std_expr.h.

◆ to_rem_expr() [2/2]

rem_exprt& to_rem_expr ( exprt expr)
inline

Cast an exprt to a rem_exprt.

expr must be known to be rem_exprt.

Parameters
exprSource expression
Returns
Object of type rem_exprt

Definition at line 1280 of file std_expr.h.

◆ to_replication_expr() [1/2]

const replication_exprt& to_replication_expr ( const exprt expr)
inline

Cast an exprt to a replication_exprt.

expr must be known to be replication_exprt.

Parameters
exprSource expression
Returns
Object of type replication_exprt

Definition at line 4210 of file std_expr.h.

◆ to_replication_expr() [2/2]

replication_exprt& to_replication_expr ( exprt expr)
inline

Cast an exprt to a replication_exprt.

expr must be known to be replication_exprt.

Parameters
exprSource expression
Returns
Object of type replication_exprt

Definition at line 4219 of file std_expr.h.

◆ to_shift_expr() [1/2]

const shift_exprt& to_shift_expr ( const exprt expr)
inline

Cast an exprt to a shift_exprt.

expr must be known to be shift_exprt.

Parameters
exprSource expression
Returns
Object of type shift_exprt

Definition at line 2699 of file std_expr.h.

◆ to_shift_expr() [2/2]

shift_exprt& to_shift_expr ( exprt expr)
inline

Cast an exprt to a shift_exprt.

expr must be known to be shift_exprt.

Parameters
exprSource expression
Returns
Object of type shift_exprt

Definition at line 2707 of file std_expr.h.

◆ to_shl_expr() [1/2]

const shl_exprt& to_shl_expr ( const exprt expr)
inline

Cast an exprt to a shl_exprt.

expr must be known to be shl_exprt.

Parameters
exprSource expression
Returns
Object of type shl_exprt

Definition at line 2736 of file std_expr.h.

◆ to_shl_expr() [2/2]

shl_exprt& to_shl_expr ( exprt expr)
inline

Cast an exprt to a shl_exprt.

expr must be known to be shl_exprt.

Parameters
exprSource expression
Returns
Object of type shl_exprt

Definition at line 2745 of file std_expr.h.

◆ to_sign_expr() [1/2]

const sign_exprt& to_sign_expr ( const exprt expr)
inline

Cast an exprt to a sign_exprt.

expr must be known to be a sign_exprt.

Parameters
exprSource expression
Returns
Object of type sign_exprt

Definition at line 632 of file std_expr.h.

◆ to_sign_expr() [2/2]

sign_exprt& to_sign_expr ( exprt expr)
inline

Cast an exprt to a sign_exprt.

expr must be known to be a sign_exprt.

Parameters
exprSource expression
Returns
Object of type sign_exprt

Definition at line 641 of file std_expr.h.

◆ to_struct_expr() [1/2]

const struct_exprt& to_struct_expr ( const exprt expr)
inline

Cast an exprt to a struct_exprt.

expr must be known to be struct_exprt.

Parameters
exprSource expression
Returns
Object of type struct_exprt

Definition at line 1787 of file std_expr.h.

◆ to_struct_expr() [2/2]

struct_exprt& to_struct_expr ( exprt expr)
inline

Cast an exprt to a struct_exprt.

expr must be known to be struct_exprt.

Parameters
exprSource expression
Returns
Object of type struct_exprt

Definition at line 1794 of file std_expr.h.

◆ to_symbol_expr() [1/2]

const symbol_exprt& to_symbol_expr ( const exprt expr)
inline

Cast an exprt to a symbol_exprt.

expr must be known to be symbol_exprt.

Parameters
exprSource expression
Returns
Object of type symbol_exprt

Definition at line 184 of file std_expr.h.

◆ to_symbol_expr() [2/2]

symbol_exprt& to_symbol_expr ( exprt expr)
inline

Cast an exprt to a symbol_exprt.

expr must be known to be symbol_exprt.

Parameters
exprSource expression
Returns
Object of type symbol_exprt

Definition at line 193 of file std_expr.h.

◆ to_typecast_expr() [1/2]

const typecast_exprt& to_typecast_expr ( const exprt expr)
inline

Cast an exprt to a typecast_exprt.

expr must be known to be typecast_exprt.

Parameters
exprSource expression
Returns
Object of type typecast_exprt

Definition at line 2188 of file std_expr.h.

◆ to_typecast_expr() [2/2]

typecast_exprt& to_typecast_expr ( exprt expr)
inline

Cast an exprt to a typecast_exprt.

expr must be known to be typecast_exprt.

Parameters
exprSource expression
Returns
Object of type typecast_exprt

Definition at line 2197 of file std_expr.h.

◆ to_unary_expr() [1/2]

const unary_exprt& to_unary_expr ( const exprt expr)
inline

Cast an exprt to a unary_exprt.

expr must be known to be unary_exprt.

Parameters
exprSource expression
Returns
Object of type unary_exprt

Definition at line 330 of file std_expr.h.

◆ to_unary_expr() [2/2]

unary_exprt& to_unary_expr ( exprt expr)
inline

Cast an exprt to a unary_exprt.

expr must be known to be unary_exprt.

Parameters
exprSource expression
Returns
Object of type unary_exprt

Definition at line 338 of file std_expr.h.

◆ to_unary_minus_expr() [1/2]

const unary_minus_exprt& to_unary_minus_expr ( const exprt expr)
inline

Cast an exprt to a unary_minus_exprt.

expr must be known to be unary_minus_exprt.

Parameters
exprSource expression
Returns
Object of type unary_minus_exprt

Definition at line 422 of file std_expr.h.

◆ to_unary_minus_expr() [2/2]

unary_minus_exprt& to_unary_minus_expr ( exprt expr)
inline

Cast an exprt to a unary_minus_exprt.

expr must be known to be unary_minus_exprt.

Parameters
exprSource expression
Returns
Object of type unary_minus_exprt

Definition at line 431 of file std_expr.h.

◆ to_unary_plus_expr() [1/2]

const unary_plus_exprt& to_unary_plus_expr ( const exprt expr)
inline

Cast an exprt to a unary_plus_exprt.

expr must be known to be unary_plus_exprt.

Parameters
exprSource expression
Returns
Object of type unary_plus_exprt

Definition at line 466 of file std_expr.h.

◆ to_unary_plus_expr() [2/2]

unary_plus_exprt& to_unary_plus_expr ( exprt expr)
inline

Cast an exprt to a unary_minus_exprt.

expr must be known to be unary_minus_exprt.

Parameters
exprSource expression
Returns
Object of type unary_minus_exprt

Definition at line 475 of file std_expr.h.

◆ to_union_expr() [1/2]

const union_exprt& to_union_expr ( const exprt expr)
inline

Cast an exprt to a union_exprt.

expr must be known to be union_exprt.

Parameters
exprSource expression
Returns
Object of type union_exprt

Definition at line 1732 of file std_expr.h.

◆ to_union_expr() [2/2]

union_exprt& to_union_expr ( exprt expr)
inline

Cast an exprt to a union_exprt.

expr must be known to be union_exprt.

Parameters
exprSource expression
Returns
Object of type union_exprt

Definition at line 1741 of file std_expr.h.

◆ to_update_expr() [1/2]

const update_exprt& to_update_expr ( const exprt expr)
inline

Cast an exprt to an update_exprt.

expr must be known to be update_exprt.

Parameters
exprSource expression
Returns
Object of type update_exprt

Definition at line 3460 of file std_expr.h.

◆ to_update_expr() [2/2]

update_exprt& to_update_expr ( exprt expr)
inline

Cast an exprt to an update_exprt.

expr must be known to be update_exprt.

Parameters
exprSource expression
Returns
Object of type update_exprt

Definition at line 3469 of file std_expr.h.

◆ to_vector_expr() [1/2]

const vector_exprt& to_vector_expr ( const exprt expr)
inline

Cast an exprt to an vector_exprt.

expr must be known to be vector_exprt.

Parameters
exprSource expression
Returns
Object of type vector_exprt

Definition at line 1670 of file std_expr.h.

◆ to_vector_expr() [2/2]

vector_exprt& to_vector_expr ( exprt expr)
inline

Cast an exprt to an vector_exprt.

expr must be known to be vector_exprt.

Parameters
exprSource expression
Returns
Object of type vector_exprt

Definition at line 1677 of file std_expr.h.

◆ to_with_expr() [1/2]

const with_exprt& to_with_expr ( const exprt expr)
inline

Cast an exprt to a with_exprt.

expr must be known to be with_exprt.

Parameters
exprSource expression
Returns
Object of type with_exprt

Definition at line 3273 of file std_expr.h.

◆ to_with_expr() [2/2]

with_exprt& to_with_expr ( exprt expr)
inline

Cast an exprt to a with_exprt.

expr must be known to be with_exprt.

Parameters
exprSource expression
Returns
Object of type with_exprt

Definition at line 3282 of file std_expr.h.

◆ to_xor_expr() [1/2]

const xor_exprt& to_xor_expr ( const exprt expr)
inline

Cast an exprt to a xor_exprt.

expr must be known to be xor_exprt.

Parameters
exprSource expression
Returns
Object of type xor_exprt

Definition at line 2484 of file std_expr.h.

◆ to_xor_expr() [2/2]

xor_exprt& to_xor_expr ( exprt expr)
inline

Cast an exprt to a bitxor_exprt.

expr must be known to be bitxor_exprt.

Parameters
exprSource expression
Returns
Object of type bitxor_exprt

Definition at line 2491 of file std_expr.h.

◆ validate_expr() [1/55]

void validate_expr ( const symbol_exprt value)
inline

Definition at line 173 of file std_expr.h.

◆ validate_expr() [2/55]

void validate_expr ( const nondet_symbol_exprt value)
inline

Definition at line 244 of file std_expr.h.

◆ validate_expr() [3/55]

void validate_expr ( const unary_exprt value)
inline

Definition at line 319 of file std_expr.h.

◆ validate_expr() [4/55]

void validate_expr ( const abs_exprt value)
inline

Definition at line 361 of file std_expr.h.

◆ validate_expr() [5/55]

void validate_expr ( const unary_minus_exprt value)
inline

Definition at line 411 of file std_expr.h.

◆ validate_expr() [6/55]

void validate_expr ( const unary_plus_exprt value)
inline

Definition at line 455 of file std_expr.h.

◆ validate_expr() [7/55]

void validate_expr ( const bswap_exprt value)
inline

Definition at line 516 of file std_expr.h.

◆ validate_expr() [8/55]

void validate_expr ( const sign_exprt expr)
inline

Definition at line 621 of file std_expr.h.

◆ validate_expr() [9/55]

void validate_expr ( const binary_exprt value)
inline

Definition at line 710 of file std_expr.h.

◆ validate_expr() [10/55]

void validate_expr ( const binary_relation_exprt value)
inline

Definition at line 848 of file std_expr.h.

◆ validate_expr() [11/55]

void validate_expr ( const plus_exprt value)
inline

Definition at line 1010 of file std_expr.h.

◆ validate_expr() [12/55]

void validate_expr ( const minus_exprt value)
inline

Definition at line 1055 of file std_expr.h.

◆ validate_expr() [13/55]

void validate_expr ( const mult_exprt value)
inline

Definition at line 1101 of file std_expr.h.

◆ validate_expr() [14/55]

void validate_expr ( const div_exprt value)
inline

Definition at line 1170 of file std_expr.h.

◆ validate_expr() [15/55]

void validate_expr ( const mod_exprt value)
inline

Definition at line 1215 of file std_expr.h.

◆ validate_expr() [16/55]

void validate_expr ( const rem_exprt value)
inline

Definition at line 1260 of file std_expr.h.

◆ validate_expr() [17/55]

void validate_expr ( const equal_exprt value)
inline

Definition at line 1320 of file std_expr.h.

◆ validate_expr() [18/55]

void validate_expr ( const notequal_exprt value)
inline

Definition at line 1363 of file std_expr.h.

◆ validate_expr() [19/55]

void validate_expr ( const index_exprt value)
inline

Definition at line 1437 of file std_expr.h.

◆ validate_expr() [20/55]

void validate_expr ( const array_of_exprt value)
inline

Definition at line 1502 of file std_expr.h.

◆ validate_expr() [21/55]

void validate_expr ( const array_list_exprt value)
inline

Definition at line 1621 of file std_expr.h.

◆ validate_expr() [22/55]

void validate_expr ( const union_exprt value)
inline

Definition at line 1721 of file std_expr.h.

◆ validate_expr() [23/55]

void validate_expr ( const complex_exprt value)
inline

Definition at line 1841 of file std_expr.h.

◆ validate_expr() [24/55]

void validate_expr ( const complex_real_exprt expr)
inline

Definition at line 1885 of file std_expr.h.

◆ validate_expr() [25/55]

void validate_expr ( const complex_imag_exprt expr)
inline

Definition at line 1930 of file std_expr.h.

◆ validate_expr() [26/55]

void validate_expr ( const object_descriptor_exprt value)
inline

Definition at line 2018 of file std_expr.h.

◆ validate_expr() [27/55]

void validate_expr ( const dynamic_object_exprt value)
inline

Definition at line 2089 of file std_expr.h.

◆ validate_expr() [28/55]

void validate_expr ( const typecast_exprt value)
inline

Definition at line 2177 of file std_expr.h.

◆ validate_expr() [29/55]

void validate_expr ( const floatbv_typecast_exprt value)
inline

Definition at line 2246 of file std_expr.h.

◆ validate_expr() [30/55]

void validate_expr ( const implies_exprt value)
inline

Definition at line 2360 of file std_expr.h.

◆ validate_expr() [31/55]

void validate_expr ( const bitnot_exprt value)
inline

Definition at line 2513 of file std_expr.h.

◆ validate_expr() [32/55]

void validate_expr ( const shift_exprt value)
inline

Definition at line 2688 of file std_expr.h.

◆ validate_expr() [33/55]

void validate_expr ( const extractbit_exprt value)
inline

Definition at line 2822 of file std_expr.h.

◆ validate_expr() [34/55]

void validate_expr ( const extractbits_exprt value)
inline

Definition at line 2911 of file std_expr.h.

◆ validate_expr() [35/55]

void validate_expr ( const address_of_exprt value)
inline

Definition at line 2968 of file std_expr.h.

◆ validate_expr() [36/55]

void validate_expr ( const not_exprt value)
inline

Definition at line 3018 of file std_expr.h.

◆ validate_expr() [37/55]

void validate_expr ( const dereference_exprt value)
inline

Definition at line 3094 of file std_expr.h.

◆ validate_expr() [38/55]

void validate_expr ( const if_exprt value)
inline

Definition at line 3179 of file std_expr.h.

◆ validate_expr() [39/55]

void validate_expr ( const with_exprt value)
inline

Definition at line 3258 of file std_expr.h.

◆ validate_expr() [40/55]

void validate_expr ( const index_designatort value)
inline

Definition at line 3315 of file std_expr.h.

◆ validate_expr() [41/55]

void validate_expr ( const member_designatort value)
inline

Definition at line 3364 of file std_expr.h.

◆ validate_expr() [42/55]

void validate_expr ( const update_exprt value)
inline

Definition at line 3448 of file std_expr.h.

◆ validate_expr() [43/55]

void validate_expr ( const member_exprt value)
inline

Definition at line 3639 of file std_expr.h.

◆ validate_expr() [44/55]

void validate_expr ( const isnan_exprt value)
inline

Definition at line 3689 of file std_expr.h.

◆ validate_expr() [45/55]

void validate_expr ( const isinf_exprt value)
inline

Definition at line 3739 of file std_expr.h.

◆ validate_expr() [46/55]

void validate_expr ( const isfinite_exprt value)
inline

Definition at line 3789 of file std_expr.h.

◆ validate_expr() [47/55]

void validate_expr ( const isnormal_exprt value)
inline

Definition at line 3839 of file std_expr.h.

◆ validate_expr() [48/55]

void validate_expr ( const ieee_float_equal_exprt value)
inline

Definition at line 3892 of file std_expr.h.

◆ validate_expr() [49/55]

void validate_expr ( const ieee_float_notequal_exprt value)
inline

Definition at line 3948 of file std_expr.h.

◆ validate_expr() [50/55]

void validate_expr ( const ieee_float_op_exprt value)
inline

Definition at line 4032 of file std_expr.h.

◆ validate_expr() [51/55]

void validate_expr ( const replication_exprt value)
inline

Definition at line 4199 of file std_expr.h.

◆ validate_expr() [52/55]

void validate_expr ( const let_exprt value)
inline

Definition at line 4336 of file std_expr.h.

◆ validate_expr() [53/55]

void validate_expr ( const popcount_exprt value)
inline

Definition at line 4385 of file std_expr.h.

◆ validate_expr() [54/55]

void validate_expr ( const cond_exprt value)
inline

Definition at line 4447 of file std_expr.h.

◆ validate_expr() [55/55]

void validate_expr ( const array_comprehension_exprt value)
inline

Definition at line 4534 of file std_expr.h.