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  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...
 

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...
 
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< 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...
 

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 408 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 3152 of file std_expr.h.

◆ can_cast_expr< and_exprt >()

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

Definition at line 2445 of file std_expr.h.

◆ can_cast_expr< array_exprt >()

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

Definition at line 1676 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 1734 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 1615 of file std_expr.h.

◆ can_cast_expr< binary_exprt >()

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

Definition at line 768 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 906 of file std_expr.h.

◆ can_cast_expr< bitand_exprt >()

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

Definition at line 2776 of file std_expr.h.

◆ can_cast_expr< bitnot_exprt >()

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

Definition at line 2644 of file std_expr.h.

◆ can_cast_expr< bitor_exprt >()

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

Definition at line 2694 of file std_expr.h.

◆ can_cast_expr< bitxor_exprt >()

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

Definition at line 2735 of file std_expr.h.

◆ can_cast_expr< bswap_exprt >()

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

Definition at line 568 of file std_expr.h.

◆ can_cast_expr< complex_exprt >()

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

Definition at line 1983 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 2072 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 2027 of file std_expr.h.

◆ can_cast_expr< concatenation_exprt >()

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

Definition at line 4512 of file std_expr.h.

◆ can_cast_expr< cond_exprt >()

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

Definition at line 4709 of file std_expr.h.

◆ can_cast_expr< constant_exprt >()

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

Definition at line 4340 of file std_expr.h.

◆ can_cast_expr< dereference_exprt >()

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

Definition at line 3289 of file std_expr.h.

◆ can_cast_expr< div_exprt >()

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

Definition at line 1253 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 2231 of file std_expr.h.

◆ can_cast_expr< equal_exprt >()

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

Definition at line 1418 of file std_expr.h.

◆ can_cast_expr< extractbit_exprt >()

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

Definition at line 2999 of file std_expr.h.

◆ can_cast_expr< extractbits_exprt >()

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

Definition at line 3095 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 2367 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 4117 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 4173 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 4256 of file std_expr.h.

◆ can_cast_expr< if_exprt >()

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

Definition at line 3379 of file std_expr.h.

◆ can_cast_expr< implies_exprt >()

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

Definition at line 2486 of file std_expr.h.

◆ can_cast_expr< index_designatort >()

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

Definition at line 3522 of file std_expr.h.

◆ can_cast_expr< index_exprt >()

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

Definition at line 1550 of file std_expr.h.

◆ can_cast_expr< isfinite_exprt >()

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

Definition at line 4014 of file std_expr.h.

◆ can_cast_expr< isinf_exprt >()

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

Definition at line 3964 of file std_expr.h.

◆ can_cast_expr< isnan_exprt >()

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

Definition at line 3914 of file std_expr.h.

◆ can_cast_expr< isnormal_exprt >()

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

Definition at line 4064 of file std_expr.h.

◆ can_cast_expr< let_exprt >()

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

Definition at line 4593 of file std_expr.h.

◆ can_cast_expr< member_designatort >()

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

Definition at line 3571 of file std_expr.h.

◆ can_cast_expr< member_exprt >()

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

Definition at line 3864 of file std_expr.h.

◆ can_cast_expr< minus_exprt >()

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

Definition at line 1128 of file std_expr.h.

◆ can_cast_expr< mod_exprt >()

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

Definition at line 1303 of file std_expr.h.

◆ can_cast_expr< mult_exprt >()

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

Definition at line 1179 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 274 of file std_expr.h.

◆ can_cast_expr< not_exprt >()

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

Definition at line 3202 of file std_expr.h.

◆ can_cast_expr< notequal_exprt >()

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

Definition at line 1466 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 2160 of file std_expr.h.

◆ can_cast_expr< or_exprt >()

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

Definition at line 2563 of file std_expr.h.

◆ can_cast_expr< plus_exprt >()

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

Definition at line 1078 of file std_expr.h.

◆ can_cast_expr< popcount_exprt >()

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

Definition at line 4647 of file std_expr.h.

◆ can_cast_expr< rem_exprt >()

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

Definition at line 1353 of file std_expr.h.

◆ can_cast_expr< replication_exprt >()

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

Definition at line 4445 of file std_expr.h.

◆ can_cast_expr< shift_exprt >()

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

Definition at line 2845 of file std_expr.h.

◆ can_cast_expr< sign_exprt >()

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

Definition at line 673 of file std_expr.h.

◆ can_cast_expr< struct_exprt >()

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

Definition at line 1912 of file std_expr.h.

◆ can_cast_expr< symbol_exprt >()

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

Definition at line 216 of file std_expr.h.

◆ can_cast_expr< typecast_exprt >()

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

Definition at line 2292 of file std_expr.h.

◆ can_cast_expr< unary_exprt >()

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

Definition at line 361 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 463 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 507 of file std_expr.h.

◆ can_cast_expr< union_exprt >()

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

Definition at line 1852 of file std_expr.h.

◆ can_cast_expr< update_exprt >()

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

Definition at line 3668 of file std_expr.h.

◆ can_cast_expr< vector_exprt >()

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

Definition at line 1782 of file std_expr.h.

◆ can_cast_expr< with_exprt >()

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

Definition at line 3465 of file std_expr.h.

◆ can_cast_expr< xor_exprt >()

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

Definition at line 2604 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 424 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 433 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 3168 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 3177 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 2456 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 2463 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 1687 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 1694 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 1744 of file std_expr.h.

◆ to_array_list_expr() [2/2]

array_list_exprt& to_array_list_expr ( exprt expr)
inline

Definition at line 1752 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 1631 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 1640 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 784 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 791 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 922 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 929 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 2787 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 2794 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 2660 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 2669 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 2705 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 2712 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 2746 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 2753 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 586 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 595 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 1999 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 2008 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 2089 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 2098 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 2044 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 2053 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 4523 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 4530 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 4726 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 4735 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 4351 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 4358 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 3305 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 3314 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 1269 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 1278 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 2247 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 2258 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 1434 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 1442 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 3015 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 3024 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 3111 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 3120 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 2383 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 2393 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 4133 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 4143 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 4189 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 4200 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 4274 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 4283 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 3395 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 3404 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 2502 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 2511 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 3538 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 3547 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 1566 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 1575 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 4030 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 4039 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 3980 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 3989 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 3930 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 3939 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 4080 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 4089 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 4609 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 4618 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 3587 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 3596 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 3880 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 3889 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 1144 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 1153 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 1319 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 1328 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 1195 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 1204 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 1030 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 1036 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 290 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 300 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 3218 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 3227 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 1482 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 1491 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 2176 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 2187 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 2574 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 2581 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 1094 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 1103 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 4663 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 4672 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 1369 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 1378 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 4461 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 4470 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 2861 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 2869 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 2903 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 2912 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 689 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 698 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 1923 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 1930 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 232 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 241 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 2308 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 2317 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 377 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 385 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 479 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 488 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 523 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 532 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 1868 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 1877 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 3685 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 3694 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 1793 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 1800 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 3485 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 3494 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 2615 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 2622 of file std_expr.h.

◆ validate_expr() [1/54]

void validate_expr ( const symbol_exprt value)
inline

Definition at line 221 of file std_expr.h.

◆ validate_expr() [2/54]

void validate_expr ( const nondet_symbol_exprt value)
inline

Definition at line 279 of file std_expr.h.

◆ validate_expr() [3/54]

void validate_expr ( const unary_exprt value)
inline

Definition at line 366 of file std_expr.h.

◆ validate_expr() [4/54]

void validate_expr ( const abs_exprt value)
inline

Definition at line 413 of file std_expr.h.

◆ validate_expr() [5/54]

void validate_expr ( const unary_minus_exprt value)
inline

Definition at line 468 of file std_expr.h.

◆ validate_expr() [6/54]

void validate_expr ( const unary_plus_exprt value)
inline

Definition at line 512 of file std_expr.h.

◆ validate_expr() [7/54]

void validate_expr ( const bswap_exprt value)
inline

Definition at line 573 of file std_expr.h.

◆ validate_expr() [8/54]

void validate_expr ( const sign_exprt expr)
inline

Definition at line 678 of file std_expr.h.

◆ validate_expr() [9/54]

void validate_expr ( const binary_exprt value)
inline

Definition at line 773 of file std_expr.h.

◆ validate_expr() [10/54]

void validate_expr ( const binary_relation_exprt value)
inline

Definition at line 911 of file std_expr.h.

◆ validate_expr() [11/54]

void validate_expr ( const plus_exprt value)
inline

Definition at line 1083 of file std_expr.h.

◆ validate_expr() [12/54]

void validate_expr ( const minus_exprt value)
inline

Definition at line 1133 of file std_expr.h.

◆ validate_expr() [13/54]

void validate_expr ( const mult_exprt value)
inline

Definition at line 1184 of file std_expr.h.

◆ validate_expr() [14/54]

void validate_expr ( const div_exprt value)
inline

Definition at line 1258 of file std_expr.h.

◆ validate_expr() [15/54]

void validate_expr ( const mod_exprt value)
inline

Definition at line 1308 of file std_expr.h.

◆ validate_expr() [16/54]

void validate_expr ( const rem_exprt value)
inline

Definition at line 1358 of file std_expr.h.

◆ validate_expr() [17/54]

void validate_expr ( const equal_exprt value)
inline

Definition at line 1423 of file std_expr.h.

◆ validate_expr() [18/54]

void validate_expr ( const notequal_exprt value)
inline

Definition at line 1471 of file std_expr.h.

◆ validate_expr() [19/54]

void validate_expr ( const index_exprt value)
inline

Definition at line 1555 of file std_expr.h.

◆ validate_expr() [20/54]

void validate_expr ( const array_of_exprt value)
inline

Definition at line 1620 of file std_expr.h.

◆ validate_expr() [21/54]

void validate_expr ( const array_list_exprt value)
inline

Definition at line 1739 of file std_expr.h.

◆ validate_expr() [22/54]

void validate_expr ( const union_exprt value)
inline

Definition at line 1857 of file std_expr.h.

◆ validate_expr() [23/54]

void validate_expr ( const complex_exprt value)
inline

Definition at line 1988 of file std_expr.h.

◆ validate_expr() [24/54]

void validate_expr ( const complex_real_exprt expr)
inline

Definition at line 2032 of file std_expr.h.

◆ validate_expr() [25/54]

void validate_expr ( const complex_imag_exprt expr)
inline

Definition at line 2077 of file std_expr.h.

◆ validate_expr() [26/54]

void validate_expr ( const object_descriptor_exprt value)
inline

Definition at line 2165 of file std_expr.h.

◆ validate_expr() [27/54]

void validate_expr ( const dynamic_object_exprt value)
inline

Definition at line 2236 of file std_expr.h.

◆ validate_expr() [28/54]

void validate_expr ( const typecast_exprt value)
inline

Definition at line 2297 of file std_expr.h.

◆ validate_expr() [29/54]

void validate_expr ( const floatbv_typecast_exprt value)
inline

Definition at line 2372 of file std_expr.h.

◆ validate_expr() [30/54]

void validate_expr ( const implies_exprt value)
inline

Definition at line 2491 of file std_expr.h.

◆ validate_expr() [31/54]

void validate_expr ( const bitnot_exprt value)
inline

Definition at line 2649 of file std_expr.h.

◆ validate_expr() [32/54]

void validate_expr ( const shift_exprt value)
inline

Definition at line 2850 of file std_expr.h.

◆ validate_expr() [33/54]

void validate_expr ( const extractbit_exprt value)
inline

Definition at line 3004 of file std_expr.h.

◆ validate_expr() [34/54]

void validate_expr ( const extractbits_exprt value)
inline

Definition at line 3100 of file std_expr.h.

◆ validate_expr() [35/54]

void validate_expr ( const address_of_exprt value)
inline

Definition at line 3157 of file std_expr.h.

◆ validate_expr() [36/54]

void validate_expr ( const not_exprt value)
inline

Definition at line 3207 of file std_expr.h.

◆ validate_expr() [37/54]

void validate_expr ( const dereference_exprt value)
inline

Definition at line 3294 of file std_expr.h.

◆ validate_expr() [38/54]

void validate_expr ( const if_exprt value)
inline

Definition at line 3384 of file std_expr.h.

◆ validate_expr() [39/54]

void validate_expr ( const with_exprt value)
inline

Definition at line 3470 of file std_expr.h.

◆ validate_expr() [40/54]

void validate_expr ( const index_designatort value)
inline

Definition at line 3527 of file std_expr.h.

◆ validate_expr() [41/54]

void validate_expr ( const member_designatort value)
inline

Definition at line 3576 of file std_expr.h.

◆ validate_expr() [42/54]

void validate_expr ( const update_exprt value)
inline

Definition at line 3673 of file std_expr.h.

◆ validate_expr() [43/54]

void validate_expr ( const member_exprt value)
inline

Definition at line 3869 of file std_expr.h.

◆ validate_expr() [44/54]

void validate_expr ( const isnan_exprt value)
inline

Definition at line 3919 of file std_expr.h.

◆ validate_expr() [45/54]

void validate_expr ( const isinf_exprt value)
inline

Definition at line 3969 of file std_expr.h.

◆ validate_expr() [46/54]

void validate_expr ( const isfinite_exprt value)
inline

Definition at line 4019 of file std_expr.h.

◆ validate_expr() [47/54]

void validate_expr ( const isnormal_exprt value)
inline

Definition at line 4069 of file std_expr.h.

◆ validate_expr() [48/54]

void validate_expr ( const ieee_float_equal_exprt value)
inline

Definition at line 4122 of file std_expr.h.

◆ validate_expr() [49/54]

void validate_expr ( const ieee_float_notequal_exprt value)
inline

Definition at line 4178 of file std_expr.h.

◆ validate_expr() [50/54]

void validate_expr ( const ieee_float_op_exprt value)
inline

Definition at line 4262 of file std_expr.h.

◆ validate_expr() [51/54]

void validate_expr ( const replication_exprt value)
inline

Definition at line 4450 of file std_expr.h.

◆ validate_expr() [52/54]

void validate_expr ( const let_exprt value)
inline

Definition at line 4598 of file std_expr.h.

◆ validate_expr() [53/54]

void validate_expr ( const popcount_exprt value)
inline

Definition at line 4652 of file std_expr.h.

◆ validate_expr() [54/54]

void validate_expr ( const cond_exprt value)
inline

Definition at line 4714 of file std_expr.h.