CBMC
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
std_expr.h File Reference

API to expression classes. More...

#include "deprecate.h"
#include "expr_cast.h"
#include "invariant.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...
 
 
  Expression to hold a symbol (variable) with extra accessors to ID_c_static_lifetime and ID_C_thread_local. More...
 
  Expression to hold a nondeterministic choice. More...
 
class   unary_exprt
  Generic base class for unary expressions. More...
 
class   abs_exprt
  Absolute value. More...
 
  The unary minus expression. More...
 
class   unary_plus_exprt
  The unary plus expression. More...
 
class   predicate_exprt
  A base class for expressions that are predicates, i.e., Boolean-typed. More...
 
  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...
 
  A base class for expressions that are predicates, i.e., Boolean-typed, and that take exactly two arguments. More...
 
  A base class for relations, i.e., binary predicates whose two operands have the same type. More...
 
  Binary greater than operator expression. More...
 
  Binary greater than or equal operator expression. More...
 
class   less_than_exprt
  Binary less than operator expression. More...
 
  Binary less than or equal operator expression. 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 defined as lhs-(rhs * truncate(lhs/rhs)). More...
 
  Boute's Euclidean definition of Modulo – to match SMT-LIB2. 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...
 
  Union constructor to support unions without any member (a GCC/Clang feature). More...
 
class   struct_exprt
  Struct constructor from list of elements. More...
 
class   complex_exprt
  Complex constructor from a pair of numbers. More...
 
  Real part of the expression describing a complex number. More...
 
  Imaginary part of the expression describing a complex number. More...
 
class   typecast_exprt
  Semantic type conversion. More...
 
class   and_exprt
  Boolean AND All operands must be boolean, and the result is always boolean. More...
 
class   nand_exprt
  Boolean NAND. More...
 
class   implies_exprt
  Boolean implication. More...
 
class   or_exprt
  Boolean OR All operands must be boolean, and the result is always boolean. More...
 
class   nor_exprt
  Boolean NOR. More...
 
class   xor_exprt
  Boolean XOR All operands must be boolean, and the result is always boolean. More...
 
class   xnor_exprt
  Boolean XNOR. More...
 
class   not_exprt
  Boolean negation. More...
 
class   if_exprt
  The trinary if-then-else operator. More...
 
class   with_exprt
  Operator to update elements in structs and arrays. More...
 
 
 
class   update_exprt
  Operator to update elements in structs and arrays. More...
 
class   member_exprt
  Extract member of struct or union. 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   infinity_exprt
  An expression denoting infinity. More...
 
class   binding_exprt
  A base class for variable bindings (quantifiers, let, lambda) More...
 
class   let_exprt
  A let 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...
 
  Expression to define a mapping from an argument (index) to elements. More...
 
  An expression describing a method on a class. More...
 
class   named_term_exprt
  Expression that introduces a new symbol that is equal to the operand. More...
 

Namespaces

namespace   std
  STL namespace.
 

Functions

  Cast an exprt to a ternary_exprt.
 
  Cast an exprt to a ternary_exprt.
 
template<>
 
  Cast an exprt to a symbol_exprt.
 
  Cast an exprt to a symbol_exprt.
 
template<>
 
 
  Cast an exprt to a nondet_symbol_exprt.
 
  Cast an exprt to a nondet_symbol_exprt.
 
template<>
 
  Cast an exprt to a unary_exprt.
 
  Cast an exprt to a unary_exprt.
 
template<>
 
  Cast an exprt to a abs_exprt.
 
  Cast an exprt to a abs_exprt.
 
template<>
 
  Cast an exprt to a unary_minus_exprt.
 
  Cast an exprt to a unary_minus_exprt.
 
template<>
 
  Cast an exprt to a unary_plus_exprt.
 
  Cast an exprt to a unary_plus_exprt.
 
  Cast an exprt to a unary_predicate_exprt.
 
  Cast an exprt to a unary_predicate_exprt.
 
template<>
 
  Cast an exprt to a sign_exprt.
 
  Cast an exprt to a sign_exprt.
 
template<>
 
  Cast an exprt to a binary_exprt.
 
  Cast an exprt to a binary_exprt.
 
  Cast an exprt to a binary_predicate_exprt.
 
  Cast an exprt to a binary_predicate_exprt.
 
template<>
 
  Cast an exprt to a binary_relation_exprt.
 
  Cast an exprt to a binary_relation_exprt.
 
template<>
 
template<>
 
template<>
 
template<>
 
  Cast an exprt to a multi_ary_exprt.
 
  Cast an exprt to a multi_ary_exprt.
 
template<>
 
  Cast an exprt to a plus_exprt.
 
  Cast an exprt to a plus_exprt.
 
template<>
 
  Cast an exprt to a minus_exprt.
 
  Cast an exprt to a minus_exprt.
 
template<>
 
  Cast an exprt to a mult_exprt.
 
  Cast an exprt to a mult_exprt.
 
template<>
 
  Cast an exprt to a div_exprt.
 
  Cast an exprt to a div_exprt.
 
template<>
 
  Cast an exprt to a mod_exprt.
 
  Cast an exprt to a mod_exprt.
 
template<>
 
  Cast an exprt to a euclidean_mod_exprt.
 
  Cast an exprt to a euclidean_mod_exprt.
 
template<>
 
  Cast an exprt to an equal_exprt.
 
  Cast an exprt to an equal_exprt.
 
template<>
 
  Cast an exprt to an notequal_exprt.
 
  Cast an exprt to an notequal_exprt.
 
template<>
 
  Cast an exprt to an index_exprt.
 
  Cast an exprt to an index_exprt.
 
template<>
 
  Cast an exprt to an array_of_exprt.
 
  Cast an exprt to an array_of_exprt.
 
template<>
 
  Cast an exprt to an array_exprt.
 
  Cast an exprt to an array_exprt.
 
template<>
 
 
 
template<>
 
  Cast an exprt to an vector_exprt.
 
  Cast an exprt to an vector_exprt.
 
template<>
 
  Cast an exprt to a union_exprt.
 
  Cast an exprt to a union_exprt.
 
template<>
 
  Cast an exprt to an empty_union_exprt.
 
  Cast an exprt to an empty_union_exprt.
 
template<>
 
  Cast an exprt to a struct_exprt.
 
  Cast an exprt to a struct_exprt.
 
template<>
 
  Cast an exprt to a complex_exprt.
 
  Cast an exprt to a complex_exprt.
 
template<>
 
  Cast an exprt to a complex_real_exprt.
 
  Cast an exprt to a complex_real_exprt.
 
template<>
 
  Cast an exprt to a complex_imag_exprt.
 
  Cast an exprt to a complex_imag_exprt.
 
template<>
 
  Cast an exprt to a typecast_exprt.
 
  Cast an exprt to a typecast_exprt.
 
  1) generates a conjunction for two or more operands 2) for one operand, returns the operand 3) returns true otherwise
 
  Conjunction of two expressions.
 
template<>
 
  Cast an exprt to a and_exprt.
 
  Cast an exprt to a and_exprt.
 
  Cast an exprt to a nand_exprt.
 
  Cast an exprt to a nand_exprt.
 
template<>
 
  Cast an exprt to a implies_exprt.
 
  Cast an exprt to a implies_exprt.
 
  1) generates a disjunction for two or more operands 2) for one operand, returns the operand 3) returns false otherwise
 
template<>
 
  Cast an exprt to a or_exprt.
 
  Cast an exprt to a or_exprt.
 
  Cast an exprt to a nor_exprt.
 
  Cast an exprt to a nor_exprt.
 
template<>
 
  Cast an exprt to a xor_exprt.
 
  Cast an exprt to a xor_exprt.
 
template<>
 
  Cast an exprt to a xnor_exprt.
 
  Cast an exprt to a xnor_exprt.
 
template<>
 
  Cast an exprt to an not_exprt.
 
  Cast an exprt to an not_exprt.
 
template<>
 
  Cast an exprt to an if_exprt.
 
  Cast an exprt to an if_exprt.
 
template<>
 
  Cast an exprt to a with_exprt.
 
  Cast an exprt to a with_exprt.
 
template<>
 
  Cast an exprt to an index_designatort.
 
  Cast an exprt to an index_designatort.
 
template<>
 
  Cast an exprt to an member_designatort.
 
  Cast an exprt to an member_designatort.
 
template<>
 
 
  Cast an exprt to an update_exprt.
 
  Cast an exprt to an update_exprt.
 
template<>
 
  Cast an exprt to a member_exprt.
 
  Cast an exprt to a member_exprt.
 
template<>
 
  Cast an exprt to an type_exprt.
 
  Cast an exprt to an type_exprt.
 
template<>
 
 
  Cast an exprt to a constant_exprt.
 
  Cast an exprt to a constant_exprt.
 
bool  operator== (const exprt &lhs, bool rhs)
  Return whether the expression lhs is a constant of Boolean type that is representing the Boolean value rhs.
 
bool  operator!= (const exprt &lhs, bool rhs)
  Return whether the expression lhs is not a constant of Boolean type or is not representing the Boolean value rhs.
 
bool  operator== (const exprt &lhs, int rhs)
  Return whether the expression lhs is a constant representing the numeric value rhs; only values 0 and 1 are supported for rhs.
 
bool  operator!= (const exprt &lhs, int rhs)
  Returns the negation of operator==(const exprt &, int).
 
bool  operator== (const exprt &lhs, std::nullptr_t)
  Return whether the expression lhs is a constant representing the NULL pointer.
 
bool  operator!= (const exprt &lhs, std::nullptr_t)
  Returns the negation of operator==(const exprt &, std::nullptr_t).
 
template<>
 
template<>
 
  Cast an exprt to a binding_exprt.
 
  Cast an exprt to a binding_exprt.
 
template<>
 
 
  Cast an exprt to a let_exprt.
 
  Cast an exprt to a let_exprt.
 
template<>
 
 
  Cast an exprt to a cond_exprt.
 
  Cast an exprt to a cond_exprt.
 
template<>
 
  Cast an exprt to a array_comprehension_exprt.
 
  Cast an exprt to a array_comprehension_exprt.
 
 
  Cast an exprt to a class_method_descriptor_exprt.
 
template<>
 
template<>
 
  Cast an exprt to a named_term_exprt.
 
  Cast an exprt to a array_comprehension_exprt.
 

Detailed Description

API to expression classes.

Definition in file std_expr.h.

Function Documentation

◆  can_cast_expr< abs_exprt >()

template<>
inline

Definition at line 448 of file std_expr.h.

◆  can_cast_expr< and_exprt >()

template<>
inline

Definition at line 2084 of file std_expr.h.

◆  can_cast_expr< array_comprehension_exprt >()

template<>

Definition at line 3517 of file std_expr.h.

◆  can_cast_expr< array_exprt >()

template<>
inline

Definition at line 1603 of file std_expr.h.

◆  can_cast_expr< array_list_exprt >()

template<>
inline

Definition at line 1665 of file std_expr.h.

◆  can_cast_expr< array_of_exprt >()

template<>
inline

Definition at line 1541 of file std_expr.h.

◆  can_cast_expr< binary_exprt >()

template<>
inline

Definition at line 710 of file std_expr.h.

◆  can_cast_expr< binary_relation_exprt >()

template<>

Definition at line 817 of file std_expr.h.

◆  can_cast_expr< binding_exprt >()

template<>
inline

Definition at line 3221 of file std_expr.h.

◆  can_cast_expr< class_method_descriptor_exprt >()

template<>

Definition at line 3646 of file std_expr.h.

◆  can_cast_expr< complex_exprt >()

template<>
inline

Definition at line 1892 of file std_expr.h.

◆  can_cast_expr< complex_imag_exprt >()

template<>

Definition at line 1966 of file std_expr.h.

◆  can_cast_expr< complex_real_exprt >()

template<>

Definition at line 1929 of file std_expr.h.

◆  can_cast_expr< cond_exprt >()

template<>
inline

Definition at line 3426 of file std_expr.h.

◆  can_cast_expr< constant_exprt >()

template<>
inline

Definition at line 3062 of file std_expr.h.

◆  can_cast_expr< div_exprt >()

template<>
inline

Definition at line 1185 of file std_expr.h.

◆  can_cast_expr< empty_union_exprt >()

template<>

Definition at line 1792 of file std_expr.h.

◆  can_cast_expr< equal_exprt >()

template<>
inline

Definition at line 1364 of file std_expr.h.

◆  can_cast_expr< euclidean_mod_exprt >()

template<>

Definition at line 1310 of file std_expr.h.

◆  can_cast_expr< greater_than_exprt >()

template<>

Definition at line 852 of file std_expr.h.

◆  can_cast_expr< greater_than_or_equal_exprt >()

template<>

Definition at line 868 of file std_expr.h.

◆  can_cast_expr< if_exprt >()

template<>
inline

Definition at line 2490 of file std_expr.h.

◆  can_cast_expr< implies_exprt >()

template<>
inline

Definition at line 2163 of file std_expr.h.

◆  can_cast_expr< index_designatort >()

template<>

Definition at line 2608 of file std_expr.h.

◆  can_cast_expr< index_exprt >()

template<>
inline

Definition at line 1483 of file std_expr.h.

◆  can_cast_expr< less_than_exprt >()

template<>
inline

Definition at line 884 of file std_expr.h.

◆  can_cast_expr< less_than_or_equal_exprt >()

template<>

Definition at line 900 of file std_expr.h.

◆  can_cast_expr< let_exprt >()

template<>
inline

Definition at line 3367 of file std_expr.h.

◆  can_cast_expr< member_designatort >()

template<>

Definition at line 2650 of file std_expr.h.

◆  can_cast_expr< member_exprt >()

template<>
inline

Definition at line 2942 of file std_expr.h.

◆  can_cast_expr< minus_exprt >()

template<>
inline

Definition at line 1074 of file std_expr.h.

◆  can_cast_expr< mod_exprt >()

template<>
inline

Definition at line 1249 of file std_expr.h.

◆  can_cast_expr< mult_exprt >()

template<>
inline

Definition at line 1123 of file std_expr.h.

◆  can_cast_expr< named_term_exprt >()

template<>
inline

Definition at line 3691 of file std_expr.h.

◆  can_cast_expr< nil_exprt >()

template<>
inline

Definition at line 3153 of file std_expr.h.

◆  can_cast_expr< nondet_symbol_exprt >()

template<>

Definition at line 330 of file std_expr.h.

◆  can_cast_expr< not_exprt >()

template<>
inline

Definition at line 2397 of file std_expr.h.

◆  can_cast_expr< notequal_exprt >()

template<>
inline

Definition at line 1402 of file std_expr.h.

◆  can_cast_expr< or_exprt >()

template<>
inline

Definition at line 2229 of file std_expr.h.

◆  can_cast_expr< plus_exprt >()

template<>
inline

Definition at line 1034 of file std_expr.h.

◆  can_cast_expr< sign_exprt >()

template<>
inline

Definition at line 621 of file std_expr.h.

◆  can_cast_expr< struct_exprt >()

template<>
inline

Definition at line 1832 of file std_expr.h.

◆  can_cast_expr< symbol_exprt >()

template<>
inline

Definition at line 210 of file std_expr.h.

◆  can_cast_expr< type_exprt >()

template<>
inline

Definition at line 2979 of file std_expr.h.

◆  can_cast_expr< typecast_exprt >()

template<>
inline

Definition at line 2013 of file std_expr.h.

◆  can_cast_expr< unary_exprt >()

template<>
inline

Definition at line 413 of file std_expr.h.

◆  can_cast_expr< unary_minus_exprt >()

template<>

Definition at line 491 of file std_expr.h.

◆  can_cast_expr< unary_plus_exprt >()

template<>
inline

Definition at line 528 of file std_expr.h.

◆  can_cast_expr< union_exprt >()

template<>
inline

Definition at line 1754 of file std_expr.h.

◆  can_cast_expr< update_exprt >()

template<>
inline

Definition at line 2745 of file std_expr.h.

◆  can_cast_expr< vector_exprt >()

template<>
inline

Definition at line 1695 of file std_expr.h.

◆  can_cast_expr< with_exprt >()

template<>
inline

Definition at line 2562 of file std_expr.h.

◆  can_cast_expr< xnor_exprt >()

template<>
inline

Definition at line 2360 of file std_expr.h.

◆  can_cast_expr< xor_exprt >()

template<>
inline

Definition at line 2314 of file std_expr.h.

◆  conjunction() [1/2]

exprt conjunction ( const exprt::operandstop )

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

Definition at line 275 of file std_expr.cpp.

◆  conjunction() [2/2]

exprt conjunction ( exprt  a,
exprt  b 
)

Conjunction of two expressions.

If the second is already an and_exprt add to its operands instead of creating a new expression. If one is true, return the other expression. If one is false returns false.

Definition at line 252 of file std_expr.cpp.

◆  disjunction()

exprt disjunction ( const exprt::operandstop )

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

Definition at line 240 of file std_expr.cpp.

◆  operator!=() [1/3]

bool operator!= ( const exprtlhs,
bool  rhs 
)

Return whether the expression lhs is not a constant of Boolean type or is not representing the Boolean value rhs.

Definition at line 37 of file std_expr.cpp.

◆  operator!=() [2/3]

bool operator!= ( const exprtlhs,
int  rhs 
)

Returns the negation of operator==(const exprt &, int).

Definition at line 60 of file std_expr.cpp.

◆  operator!=() [3/3]

bool operator!= ( const exprtlhs,
std::nullptr_t  rhs 
)

Returns the negation of operator==(const exprt &, std::nullptr_t).

Definition at line 192 of file std_expr.cpp.

◆  operator==() [1/3]

bool operator== ( const exprtlhs,
bool  rhs 
)

Return whether the expression lhs is a constant of Boolean type that is representing the Boolean value rhs.

Definition at line 32 of file std_expr.cpp.

◆  operator==() [2/3]

bool operator== ( const exprtlhs,
int  rhs 
)

Return whether the expression lhs is a constant representing the numeric value rhs; only values 0 and 1 are supported for rhs.

For value 0 we consider the following types: ID_integer, ID_natural, ID_rational, ID_unsignedbv, ID_signedbv, ID_c_bool, ID_c_bit_field, ID_fixedbv, ID_floatbv, ID_pointer.
For ID_pointer, returns true iff the value is a zero string or a null pointer.
For value 1 we consider the following types: ID_integer, ID_natural, ID_rational, ID_unsignedbv, ID_signedbv, ID_c_bool, ID_c_bit_field, ID_fixedbv, ID_floatbv.
For all other types, return false.

Definition at line 52 of file std_expr.cpp.

◆  operator==() [3/3]

bool operator== ( const exprtlhs,
std::nullptr_t  rhs 
)

Return whether the expression lhs is a constant representing the NULL pointer.

Definition at line 186 of file std_expr.cpp.

◆  to_abs_expr() [1/2]

const abs_exprt & to_abs_expr ( const exprtexpr )
inline

Cast an exprt to a abs_exprt.

expr must be known to be abs_exprt.

Parameters
expr Source expression
Returns
Object of type abs_exprt

Definition at line 459 of file std_expr.h.

◆  to_abs_expr() [2/2]

abs_exprt & to_abs_expr ( exprtexpr )
inline

Cast an exprt to a abs_exprt.

expr must be known to be abs_exprt.

Parameters
expr Source expression
Returns
Object of type abs_exprt

Definition at line 467 of file std_expr.h.

◆  to_and_expr() [1/2]

const and_exprt & to_and_expr ( const exprtexpr )
inline

Cast an exprt to a and_exprt.

expr must be known to be and_exprt.

Parameters
expr Source expression
Returns
Object of type and_exprt

Definition at line 2095 of file std_expr.h.

◆  to_and_expr() [2/2]

and_exprt & to_and_expr ( exprtexpr )
inline

Cast an exprt to a and_exprt.

expr must be known to be and_exprt.

Parameters
expr Source expression
Returns
Object of type and_exprt

Definition at line 2103 of file std_expr.h.

◆  to_array_comprehension_expr() [1/2]

const array_comprehension_exprt & to_array_comprehension_expr ( const exprtexpr )
inline

Cast an exprt to a array_comprehension_exprt.

expr must be known to be array_comprehension_exprt.

Parameters
expr Source expression
Returns
Object of type array_comprehension_exprt

Definition at line 3529 of file std_expr.h.

◆  to_array_comprehension_expr() [2/2]

array_comprehension_exprt & to_array_comprehension_expr ( exprtexpr )
inline

Cast an exprt to a array_comprehension_exprt.

expr must be known to be array_comprehension_exprt.

Parameters
expr Source expression
Returns
Object of type array_comprehension_exprt

Definition at line 3537 of file std_expr.h.

◆  to_array_expr() [1/2]

const array_exprt & to_array_expr ( const exprtexpr )
inline

Cast an exprt to an array_exprt.

expr must be known to be array_exprt.

Parameters
expr Source expression
Returns
Object of type array_exprt

Definition at line 1614 of file std_expr.h.

◆  to_array_expr() [2/2]

array_exprt & to_array_expr ( exprtexpr )
inline

Cast an exprt to an array_exprt.

expr must be known to be array_exprt.

Parameters
expr Source expression
Returns
Object of type array_exprt

Definition at line 1622 of file std_expr.h.

◆  to_array_list_expr() [1/2]

const array_list_exprt & to_array_list_expr ( const exprtexpr )
inline

Definition at line 1670 of file std_expr.h.

◆  to_array_list_expr() [2/2]

array_list_exprt & to_array_list_expr ( exprtexpr )
inline

Definition at line 1677 of file std_expr.h.

◆  to_array_of_expr() [1/2]

const array_of_exprt & to_array_of_expr ( const exprtexpr )
inline

Cast an exprt to an array_of_exprt.

expr must be known to be array_of_exprt.

Parameters
expr Source expression
Returns
Object of type array_of_exprt

Definition at line 1552 of file std_expr.h.

◆  to_array_of_expr() [2/2]

array_of_exprt & to_array_of_expr ( exprtexpr )
inline

Cast an exprt to an array_of_exprt.

expr must be known to be array_of_exprt.

Parameters
expr Source expression
Returns
Object of type array_of_exprt

Definition at line 1560 of file std_expr.h.

◆  to_binary_expr() [1/2]

const binary_exprt & to_binary_expr ( const exprtexpr )
inline

Cast an exprt to a binary_exprt.

expr must be known to be binary_exprt.

Parameters
expr Source 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 ( exprtexpr )
inline

Cast an exprt to a binary_exprt.

expr must be known to be binary_exprt.

Parameters
expr Source expression
Returns
Object of type binary_exprt

Definition at line 728 of file std_expr.h.

◆  to_binary_predicate_expr() [1/2]

const binary_predicate_exprt & to_binary_predicate_expr ( const exprtexpr )
inline

Cast an exprt to a binary_predicate_exprt.

expr must be known to be binary_predicate_exprt.

Parameters
expr Source expression
Returns
Object of type binary_predicate_exprt

Definition at line 768 of file std_expr.h.

◆  to_binary_predicate_expr() [2/2]

binary_predicate_exprt & to_binary_predicate_expr ( exprtexpr )
inline

Cast an exprt to a binary_predicate_exprt.

expr must be known to be binary_predicate_exprt.

Parameters
expr Source expression
Returns
Object of type binary_predicate_exprt

Definition at line 775 of file std_expr.h.

◆  to_binary_relation_expr() [1/2]

const binary_relation_exprt & to_binary_relation_expr ( const exprtexpr )
inline

Cast an exprt to a binary_relation_exprt.

expr must be known to be binary_relation_exprt.

Parameters
expr Source expression
Returns
Object of type binary_relation_exprt

Definition at line 828 of file std_expr.h.

◆  to_binary_relation_expr() [2/2]

binary_relation_exprt & to_binary_relation_expr ( exprtexpr )
inline

Cast an exprt to a binary_relation_exprt.

expr must be known to be binary_relation_exprt.

Parameters
expr Source expression
Returns
Object of type binary_relation_exprt

Definition at line 835 of file std_expr.h.

◆  to_binding_expr() [1/2]

const binding_exprt & to_binding_expr ( const exprtexpr )
inline

Cast an exprt to a binding_exprt.

expr must be known to be binding_exprt.

Parameters
expr Source expression
Returns
Object of type binding_exprt

Definition at line 3233 of file std_expr.h.

◆  to_binding_expr() [2/2]

binding_exprt & to_binding_expr ( exprtexpr )
inline

Cast an exprt to a binding_exprt.

expr must be known to be binding_exprt.

Parameters
expr Source expression
Returns
Object of type binding_exprt

Definition at line 3248 of file std_expr.h.

◆  to_class_method_descriptor_expr()

const class_method_descriptor_exprt & to_class_method_descriptor_expr ( const exprtexpr )
inline

Cast an exprt to a class_method_descriptor_exprt.

expr must be known to be class_method_descriptor_exprt.

Parameters
expr Source expression
Returns
Object of type class_method_descriptor_exprt

Definition at line 3638 of file std_expr.h.

◆  to_complex_expr() [1/2]

const complex_exprt & to_complex_expr ( const exprtexpr )
inline

Cast an exprt to a complex_exprt.

expr must be known to be complex_exprt.

Parameters
expr Source expression
Returns
Object of type complex_exprt

Definition at line 1903 of file std_expr.h.

◆  to_complex_expr() [2/2]

complex_exprt & to_complex_expr ( exprtexpr )
inline

Cast an exprt to a complex_exprt.

expr must be known to be complex_exprt.

Parameters
expr Source expression
Returns
Object of type complex_exprt

Definition at line 1911 of file std_expr.h.

◆  to_complex_imag_expr() [1/2]

const complex_imag_exprt & to_complex_imag_expr ( const exprtexpr )
inline

Cast an exprt to a complex_imag_exprt.

expr must be known to be a complex_imag_exprt.

Parameters
expr Source expression
Returns
Object of type complex_imag_exprt

Definition at line 1977 of file std_expr.h.

◆  to_complex_imag_expr() [2/2]

complex_imag_exprt & to_complex_imag_expr ( exprtexpr )
inline

Cast an exprt to a complex_imag_exprt.

expr must be known to be a complex_imag_exprt.

Parameters
expr Source expression
Returns
Object of type complex_imag_exprt

Definition at line 1985 of file std_expr.h.

◆  to_complex_real_expr() [1/2]

const complex_real_exprt & to_complex_real_expr ( const exprtexpr )
inline

Cast an exprt to a complex_real_exprt.

expr must be known to be a complex_real_exprt.

Parameters
expr Source expression
Returns
Object of type complex_real_exprt

Definition at line 1940 of file std_expr.h.

◆  to_complex_real_expr() [2/2]

complex_real_exprt & to_complex_real_expr ( exprtexpr )
inline

Cast an exprt to a complex_real_exprt.

expr must be known to be a complex_real_exprt.

Parameters
expr Source expression
Returns
Object of type complex_real_exprt

Definition at line 1948 of file std_expr.h.

◆  to_cond_expr() [1/2]

const cond_exprt & to_cond_expr ( const exprtexpr )
inline

Cast an exprt to a cond_exprt.

expr must be known to be cond_exprt.

Parameters
expr Source expression
Returns
Object of type cond_exprt

Definition at line 3443 of file std_expr.h.

◆  to_cond_expr() [2/2]

cond_exprt & to_cond_expr ( exprtexpr )
inline

Cast an exprt to a cond_exprt.

expr must be known to be cond_exprt.

Parameters
expr Source expression
Returns
Object of type cond_exprt

Definition at line 3451 of file std_expr.h.

◆  to_constant_expr() [1/2]

const constant_exprt & to_constant_expr ( const exprtexpr )
inline

Cast an exprt to a constant_exprt.

expr must be known to be constant_exprt.

Parameters
expr Source expression
Returns
Object of type constant_exprt

Definition at line 3078 of file std_expr.h.

◆  to_constant_expr() [2/2]

constant_exprt & to_constant_expr ( exprtexpr )
inline

Cast an exprt to a constant_exprt.

expr must be known to be constant_exprt.

Parameters
expr Source expression
Returns
Object of type constant_exprt

Definition at line 3086 of file std_expr.h.

◆  to_div_expr() [1/2]

const div_exprt & to_div_expr ( const exprtexpr )
inline

Cast an exprt to a div_exprt.

expr must be known to be div_exprt.

Parameters
expr Source expression
Returns
Object of type div_exprt

Definition at line 1196 of file std_expr.h.

◆  to_div_expr() [2/2]

div_exprt & to_div_expr ( exprtexpr )
inline

Cast an exprt to a div_exprt.

expr must be known to be div_exprt.

Parameters
expr Source expression
Returns
Object of type div_exprt

Definition at line 1204 of file std_expr.h.

◆  to_empty_union_expr() [1/2]

const empty_union_exprt & to_empty_union_expr ( const exprtexpr )
inline

Cast an exprt to an empty_union_exprt.

expr must be known to be empty_union_exprt.

Parameters
expr Source expression
Returns
Object of type empty_union_exprt

Definition at line 1803 of file std_expr.h.

◆  to_empty_union_expr() [2/2]

empty_union_exprt & to_empty_union_expr ( exprtexpr )
inline

Cast an exprt to an empty_union_exprt.

expr must be known to be empty_union_exprt.

Parameters
expr Source expression
Returns
Object of type empty_union_exprt

Definition at line 1811 of file std_expr.h.

◆  to_equal_expr() [1/2]

const equal_exprt & to_equal_expr ( const exprtexpr )
inline

Cast an exprt to an equal_exprt.

expr must be known to be equal_exprt.

Parameters
expr Source expression
Returns
Object of type equal_exprt

Definition at line 1375 of file std_expr.h.

◆  to_equal_expr() [2/2]

equal_exprt & to_equal_expr ( exprtexpr )
inline

Cast an exprt to an equal_exprt.

expr must be known to be equal_exprt.

Parameters
expr Source expression
Returns
Object of type equal_exprt

Definition at line 1383 of file std_expr.h.

◆  to_euclidean_mod_expr() [1/2]

const euclidean_mod_exprt & to_euclidean_mod_expr ( const exprtexpr )
inline

Cast an exprt to a euclidean_mod_exprt.

expr must be known to be euclidean_mod_exprt.

Parameters
expr Source expression
Returns
Object of type euclidean_mod_exprt

Definition at line 1321 of file std_expr.h.

◆  to_euclidean_mod_expr() [2/2]

euclidean_mod_exprt & to_euclidean_mod_expr ( exprtexpr )
inline

Cast an exprt to a euclidean_mod_exprt.

expr must be known to be euclidean_mod_exprt.

Parameters
expr Source expression
Returns
Object of type euclidean_mod_exprt

Definition at line 1329 of file std_expr.h.

◆  to_if_expr() [1/2]

const if_exprt & to_if_expr ( const exprtexpr )
inline

Cast an exprt to an if_exprt.

expr must be known to be if_exprt.

Parameters
expr Source expression
Returns
Object of type if_exprt

Definition at line 2501 of file std_expr.h.

◆  to_if_expr() [2/2]

if_exprt & to_if_expr ( exprtexpr )
inline

Cast an exprt to an if_exprt.

expr must be known to be if_exprt.

Parameters
expr Source expression
Returns
Object of type if_exprt

Definition at line 2509 of file std_expr.h.

◆  to_implies_expr() [1/2]

const implies_exprt & to_implies_expr ( const exprtexpr )
inline

Cast an exprt to a implies_exprt.

expr must be known to be implies_exprt.

Parameters
expr Source expression
Returns
Object of type implies_exprt

Definition at line 2174 of file std_expr.h.

◆  to_implies_expr() [2/2]

implies_exprt & to_implies_expr ( exprtexpr )
inline

Cast an exprt to a implies_exprt.

expr must be known to be implies_exprt.

Parameters
expr Source expression
Returns
Object of type implies_exprt

Definition at line 2182 of file std_expr.h.

◆  to_index_designator() [1/2]

const index_designatort & to_index_designator ( const exprtexpr )
inline

Cast an exprt to an index_designatort.

expr must be known to be index_designatort.

Parameters
expr Source expression
Returns
Object of type index_designatort

Definition at line 2619 of file std_expr.h.

◆  to_index_designator() [2/2]

index_designatort & to_index_designator ( exprtexpr )
inline

Cast an exprt to an index_designatort.

expr must be known to be index_designatort.

Parameters
expr Source expression
Returns
Object of type index_designatort

Definition at line 2627 of file std_expr.h.

◆  to_index_expr() [1/2]

const index_exprt & to_index_expr ( const exprtexpr )
inline

Cast an exprt to an index_exprt.

expr must be known to be index_exprt.

Parameters
expr Source expression
Returns
Object of type index_exprt

Definition at line 1494 of file std_expr.h.

◆  to_index_expr() [2/2]

index_exprt & to_index_expr ( exprtexpr )
inline

Cast an exprt to an index_exprt.

expr must be known to be index_exprt.

Parameters
expr Source expression
Returns
Object of type index_exprt

Definition at line 1502 of file std_expr.h.

◆  to_let_expr() [1/2]

const let_exprt & to_let_expr ( const exprtexpr )
inline

Cast an exprt to a let_exprt.

expr must be known to be let_exprt.

Parameters
expr Source expression
Returns
Object of type let_exprt

Definition at line 3383 of file std_expr.h.

◆  to_let_expr() [2/2]

let_exprt & to_let_expr ( exprtexpr )
inline

Cast an exprt to a let_exprt.

expr must be known to be let_exprt.

Parameters
expr Source expression
Returns
Object of type let_exprt

Definition at line 3391 of file std_expr.h.

◆  to_member_designator() [1/2]

const member_designatort & to_member_designator ( const exprtexpr )
inline

Cast an exprt to an member_designatort.

expr must be known to be member_designatort.

Parameters
expr Source expression
Returns
Object of type member_designatort

Definition at line 2661 of file std_expr.h.

◆  to_member_designator() [2/2]

member_designatort & to_member_designator ( exprtexpr )
inline

Cast an exprt to an member_designatort.

expr must be known to be member_designatort.

Parameters
expr Source expression
Returns
Object of type member_designatort

Definition at line 2669 of file std_expr.h.

◆  to_member_expr() [1/2]

const member_exprt & to_member_expr ( const exprtexpr )
inline

Cast an exprt to a member_exprt.

expr must be known to be member_exprt.

Parameters
expr Source expression
Returns
Object of type member_exprt

Definition at line 2953 of file std_expr.h.

◆  to_member_expr() [2/2]

member_exprt & to_member_expr ( exprtexpr )
inline

Cast an exprt to a member_exprt.

expr must be known to be member_exprt.

Parameters
expr Source expression
Returns
Object of type member_exprt

Definition at line 2961 of file std_expr.h.

◆  to_minus_expr() [1/2]

const minus_exprt & to_minus_expr ( const exprtexpr )
inline

Cast an exprt to a minus_exprt.

expr must be known to be minus_exprt.

Parameters
expr Source expression
Returns
Object of type minus_exprt

Definition at line 1085 of file std_expr.h.

◆  to_minus_expr() [2/2]

minus_exprt & to_minus_expr ( exprtexpr )
inline

Cast an exprt to a minus_exprt.

expr must be known to be minus_exprt.

Parameters
expr Source expression
Returns
Object of type minus_exprt

Definition at line 1093 of file std_expr.h.

◆  to_mod_expr() [1/2]

const mod_exprt & to_mod_expr ( const exprtexpr )
inline

Cast an exprt to a mod_exprt.

expr must be known to be mod_exprt.

Parameters
expr Source expression
Returns
Object of type mod_exprt

Definition at line 1260 of file std_expr.h.

◆  to_mod_expr() [2/2]

mod_exprt & to_mod_expr ( exprtexpr )
inline

Cast an exprt to a mod_exprt.

expr must be known to be mod_exprt.

Parameters
expr Source expression
Returns
Object of type mod_exprt

Definition at line 1268 of file std_expr.h.

◆  to_mult_expr() [1/2]

const mult_exprt & to_mult_expr ( const exprtexpr )
inline

Cast an exprt to a mult_exprt.

expr must be known to be mult_exprt.

Parameters
expr Source expression
Returns
Object of type mult_exprt

Definition at line 1134 of file std_expr.h.

◆  to_mult_expr() [2/2]

mult_exprt & to_mult_expr ( exprtexpr )
inline

Cast an exprt to a mult_exprt.

expr must be known to be mult_exprt.

Parameters
expr Source expression
Returns
Object of type mult_exprt

Definition at line 1142 of file std_expr.h.

◆  to_multi_ary_expr() [1/2]

const multi_ary_exprt & to_multi_ary_expr ( const exprtexpr )
inline

Cast an exprt to a multi_ary_exprt.

expr must be known to be multi_ary_exprt.

Parameters
expr Source expression
Returns
Object of type multi_ary_exprt

Definition at line 991 of file std_expr.h.

◆  to_multi_ary_expr() [2/2]

multi_ary_exprt & to_multi_ary_expr ( exprtexpr )
inline

Cast an exprt to a multi_ary_exprt.

expr must be known to be multi_ary_exprt.

Parameters
expr Source expression
Returns
Object of type multi_ary_exprt

Definition at line 997 of file std_expr.h.

◆  to_named_term_expr() [1/2]

const named_term_exprt & to_named_term_expr ( const exprtexpr )
inline

Cast an exprt to a named_term_exprt.

expr must be known to be named_term_exprt.

Parameters
expr Source expression
Returns
Object of type named_term_exprt

Definition at line 3702 of file std_expr.h.

◆  to_named_term_expr() [2/2]

named_term_exprt & to_named_term_expr ( exprtexpr )
inline

Cast an exprt to a array_comprehension_exprt.

expr must be known to be array_comprehension_exprt.

Parameters
expr Source expression
Returns
Object of type array_comprehension_exprt

Definition at line 3710 of file std_expr.h.

◆  to_nand_expr() [1/2]

const nand_exprt & to_nand_expr ( const exprtexpr )
inline

Cast an exprt to a nand_exprt.

expr must be known to be nand_exprt.

Parameters
expr Source expression
Returns
Object of type nand_exprt

Definition at line 2137 of file std_expr.h.

◆  to_nand_expr() [2/2]

nand_exprt & to_nand_expr ( exprtexpr )
inline

Cast an exprt to a nand_exprt.

expr must be known to be nand_exprt.

Parameters
expr Source expression
Returns
Object of type nand_exprt

Definition at line 2145 of file std_expr.h.

◆  to_nondet_symbol_expr() [1/2]

const nondet_symbol_exprt & to_nondet_symbol_expr ( const exprtexpr )
inline

Cast an exprt to a nondet_symbol_exprt.

expr must be known to be nondet_symbol_exprt.

Parameters
expr Source expression
Returns
Object of type nondet_symbol_exprt

Definition at line 346 of file std_expr.h.

◆  to_nondet_symbol_expr() [2/2]

nondet_symbol_exprt & to_nondet_symbol_expr ( exprtexpr )
inline

Cast an exprt to a nondet_symbol_exprt.

expr must be known to be nondet_symbol_exprt.

Parameters
expr Source expression
Returns
Object of type nondet_symbol_exprt

Definition at line 354 of file std_expr.h.

◆  to_nor_expr() [1/2]

const nor_exprt & to_nor_expr ( const exprtexpr )
inline

Cast an exprt to a nor_exprt.

expr must be known to be nor_exprt.

Parameters
expr Source expression
Returns
Object of type nor_exprt

Definition at line 2282 of file std_expr.h.

◆  to_nor_expr() [2/2]

nor_exprt & to_nor_expr ( exprtexpr )
inline

Cast an exprt to a nor_exprt.

expr must be known to be nor_exprt.

Parameters
expr Source expression
Returns
Object of type nor_exprt

Definition at line 2290 of file std_expr.h.

◆  to_not_expr() [1/2]

const not_exprt & to_not_expr ( const exprtexpr )
inline

Cast an exprt to an not_exprt.

expr must be known to be not_exprt.

Parameters
expr Source expression
Returns
Object of type not_exprt

Definition at line 2408 of file std_expr.h.

◆  to_not_expr() [2/2]

not_exprt & to_not_expr ( exprtexpr )
inline

Cast an exprt to an not_exprt.

expr must be known to be not_exprt.

Parameters
expr Source expression
Returns
Object of type not_exprt

Definition at line 2416 of file std_expr.h.

◆  to_notequal_expr() [1/2]

const notequal_exprt & to_notequal_expr ( const exprtexpr )
inline

Cast an exprt to an notequal_exprt.

expr must be known to be notequal_exprt.

Parameters
expr Source expression
Returns
Object of type notequal_exprt

Definition at line 1413 of file std_expr.h.

◆  to_notequal_expr() [2/2]

notequal_exprt & to_notequal_expr ( exprtexpr )
inline

Cast an exprt to an notequal_exprt.

expr must be known to be notequal_exprt.

Parameters
expr Source expression
Returns
Object of type notequal_exprt

Definition at line 1421 of file std_expr.h.

◆  to_or_expr() [1/2]

const or_exprt & to_or_expr ( const exprtexpr )
inline

Cast an exprt to a or_exprt.

expr must be known to be or_exprt.

Parameters
expr Source expression
Returns
Object of type or_exprt

Definition at line 2240 of file std_expr.h.

◆  to_or_expr() [2/2]

or_exprt & to_or_expr ( exprtexpr )
inline

Cast an exprt to a or_exprt.

expr must be known to be or_exprt.

Parameters
expr Source expression
Returns
Object of type or_exprt

Definition at line 2248 of file std_expr.h.

◆  to_plus_expr() [1/2]

const plus_exprt & to_plus_expr ( const exprtexpr )
inline

Cast an exprt to a plus_exprt.

expr must be known to be plus_exprt.

Parameters
expr Source expression
Returns
Object of type plus_exprt

Definition at line 1045 of file std_expr.h.

◆  to_plus_expr() [2/2]

plus_exprt & to_plus_expr ( exprtexpr )
inline

Cast an exprt to a plus_exprt.

expr must be known to be plus_exprt.

Parameters
expr Source expression
Returns
Object of type plus_exprt

Definition at line 1054 of file std_expr.h.

◆  to_sign_expr() [1/2]

const sign_exprt & to_sign_expr ( const exprtexpr )
inline

Cast an exprt to a sign_exprt.

expr must be known to be a sign_exprt.

Parameters
expr Source 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 ( exprtexpr )
inline

Cast an exprt to a sign_exprt.

expr must be known to be a sign_exprt.

Parameters
expr Source expression
Returns
Object of type sign_exprt

Definition at line 640 of file std_expr.h.

◆  to_struct_expr() [1/2]

const struct_exprt & to_struct_expr ( const exprtexpr )
inline

Cast an exprt to a struct_exprt.

expr must be known to be struct_exprt.

Parameters
expr Source expression
Returns
Object of type struct_exprt

Definition at line 1843 of file std_expr.h.

◆  to_struct_expr() [2/2]

struct_exprt & to_struct_expr ( exprtexpr )
inline

Cast an exprt to a struct_exprt.

expr must be known to be struct_exprt.

Parameters
expr Source expression
Returns
Object of type struct_exprt

Definition at line 1850 of file std_expr.h.

◆  to_symbol_expr() [1/2]

const symbol_exprt & to_symbol_expr ( const exprtexpr )
inline

Cast an exprt to a symbol_exprt.

expr must be known to be symbol_exprt.

Parameters
expr Source expression
Returns
Object of type symbol_exprt

Definition at line 221 of file std_expr.h.

◆  to_symbol_expr() [2/2]

symbol_exprt & to_symbol_expr ( exprtexpr )
inline

Cast an exprt to a symbol_exprt.

expr must be known to be symbol_exprt.

Parameters
expr Source expression
Returns
Object of type symbol_exprt

Definition at line 229 of file std_expr.h.

◆  to_ternary_expr() [1/2]

const ternary_exprt & to_ternary_expr ( const exprtexpr )
inline

Cast an exprt to a ternary_exprt.

expr must be known to be ternary_exprt.

Parameters
expr Source expression
Returns
Object of type ternary_exprt

Definition at line 117 of file std_expr.h.

◆  to_ternary_expr() [2/2]

ternary_exprt & to_ternary_expr ( exprtexpr )
inline

Cast an exprt to a ternary_exprt.

expr must be known to be ternary_exprt.

Parameters
expr Source expression
Returns
Object of type ternary_exprt

Definition at line 124 of file std_expr.h.

◆  to_type_expr() [1/2]

const type_exprt & to_type_expr ( const exprtexpr )
inline

Cast an exprt to an type_exprt.

expr must be known to be type_exprt.

Parameters
expr Source expression
Returns
Object of type type_exprt

Definition at line 2990 of file std_expr.h.

◆  to_type_expr() [2/2]

type_exprt & to_type_expr ( exprtexpr )
inline

Cast an exprt to an type_exprt.

expr must be known to be type_exprt.

Parameters
expr Source expression
Returns
Object of type type_exprt

Definition at line 2998 of file std_expr.h.

◆  to_typecast_expr() [1/2]

const typecast_exprt & to_typecast_expr ( const exprtexpr )
inline

Cast an exprt to a typecast_exprt.

expr must be known to be typecast_exprt.

Parameters
expr Source expression
Returns
Object of type typecast_exprt

Definition at line 2024 of file std_expr.h.

◆  to_typecast_expr() [2/2]

typecast_exprt & to_typecast_expr ( exprtexpr )
inline

Cast an exprt to a typecast_exprt.

expr must be known to be typecast_exprt.

Parameters
expr Source expression
Returns
Object of type typecast_exprt

Definition at line 2032 of file std_expr.h.

◆  to_unary_expr() [1/2]

const unary_exprt & to_unary_expr ( const exprtexpr )
inline

Cast an exprt to a unary_exprt.

expr must be known to be unary_exprt.

Parameters
expr Source expression
Returns
Object of type unary_exprt

Definition at line 424 of file std_expr.h.

◆  to_unary_expr() [2/2]

unary_exprt & to_unary_expr ( exprtexpr )
inline

Cast an exprt to a unary_exprt.

expr must be known to be unary_exprt.

Parameters
expr Source expression
Returns
Object of type unary_exprt

Definition at line 431 of file std_expr.h.

◆  to_unary_minus_expr() [1/2]

const unary_minus_exprt & to_unary_minus_expr ( const exprtexpr )
inline

Cast an exprt to a unary_minus_exprt.

expr must be known to be unary_minus_exprt.

Parameters
expr Source expression
Returns
Object of type unary_minus_exprt

Definition at line 502 of file std_expr.h.

◆  to_unary_minus_expr() [2/2]

unary_minus_exprt & to_unary_minus_expr ( exprtexpr )
inline

Cast an exprt to a unary_minus_exprt.

expr must be known to be unary_minus_exprt.

Parameters
expr Source expression
Returns
Object of type unary_minus_exprt

Definition at line 510 of file std_expr.h.

◆  to_unary_plus_expr() [1/2]

const unary_plus_exprt & to_unary_plus_expr ( const exprtexpr )
inline

Cast an exprt to a unary_plus_exprt.

expr must be known to be unary_plus_exprt.

Parameters
expr Source expression
Returns
Object of type unary_plus_exprt

Definition at line 539 of file std_expr.h.

◆  to_unary_plus_expr() [2/2]

unary_plus_exprt & to_unary_plus_expr ( exprtexpr )
inline

Cast an exprt to a unary_plus_exprt.

expr must be known to be unary_plus_exprt.

Parameters
expr Source expression
Returns
Object of type unary_plus_exprt

Definition at line 547 of file std_expr.h.

◆  to_unary_predicate_expr() [1/2]

const unary_predicate_exprt & to_unary_predicate_expr ( const exprtexpr )
inline

Cast an exprt to a unary_predicate_exprt.

expr must be known to be unary_predicate_exprt.

Parameters
expr Source expression
Returns
Object of type unary_predicate_exprt

Definition at line 596 of file std_expr.h.

◆  to_unary_predicate_expr() [2/2]

unary_predicate_exprt & to_unary_predicate_expr ( exprtexpr )
inline

Cast an exprt to a unary_predicate_exprt.

expr must be known to be unary_predicate_exprt.

Parameters
expr Source expression
Returns
Object of type unary_predicate_exprt

Definition at line 603 of file std_expr.h.

◆  to_union_expr() [1/2]

const union_exprt & to_union_expr ( const exprtexpr )
inline

Cast an exprt to a union_exprt.

expr must be known to be union_exprt.

Parameters
expr Source expression
Returns
Object of type union_exprt

Definition at line 1765 of file std_expr.h.

◆  to_union_expr() [2/2]

union_exprt & to_union_expr ( exprtexpr )
inline

Cast an exprt to a union_exprt.

expr must be known to be union_exprt.

Parameters
expr Source expression
Returns
Object of type union_exprt

Definition at line 1773 of file std_expr.h.

◆  to_update_expr() [1/2]

const update_exprt & to_update_expr ( const exprtexpr )
inline

Cast an exprt to an update_exprt.

expr must be known to be update_exprt.

Parameters
expr Source expression
Returns
Object of type update_exprt

Definition at line 2762 of file std_expr.h.

◆  to_update_expr() [2/2]

update_exprt & to_update_expr ( exprtexpr )
inline

Cast an exprt to an update_exprt.

expr must be known to be update_exprt.

Parameters
expr Source expression
Returns
Object of type update_exprt

Definition at line 2770 of file std_expr.h.

◆  to_vector_expr() [1/2]

const vector_exprt & to_vector_expr ( const exprtexpr )
inline

Cast an exprt to an vector_exprt.

expr must be known to be vector_exprt.

Parameters
expr Source expression
Returns
Object of type vector_exprt

Definition at line 1706 of file std_expr.h.

◆  to_vector_expr() [2/2]

vector_exprt & to_vector_expr ( exprtexpr )
inline

Cast an exprt to an vector_exprt.

expr must be known to be vector_exprt.

Parameters
expr Source expression
Returns
Object of type vector_exprt

Definition at line 1714 of file std_expr.h.

◆  to_with_expr() [1/2]

const with_exprt & to_with_expr ( const exprtexpr )
inline

Cast an exprt to a with_exprt.

expr must be known to be with_exprt.

Parameters
expr Source expression
Returns
Object of type with_exprt

Definition at line 2573 of file std_expr.h.

◆  to_with_expr() [2/2]

with_exprt & to_with_expr ( exprtexpr )
inline

Cast an exprt to a with_exprt.

expr must be known to be with_exprt.

Parameters
expr Source expression
Returns
Object of type with_exprt

Definition at line 2581 of file std_expr.h.

◆  to_xnor_expr() [1/2]

const xnor_exprt & to_xnor_expr ( const exprtexpr )
inline

Cast an exprt to a xnor_exprt.

expr must be known to be xnor_exprt.

Parameters
expr Source expression
Returns
Object of type xnor_exprt

Definition at line 2371 of file std_expr.h.

◆  to_xnor_expr() [2/2]

xnor_exprt & to_xnor_expr ( exprtexpr )
inline

Cast an exprt to a xnor_exprt.

expr must be known to be xnor_exprt.

Parameters
expr Source expression
Returns
Object of type xnor_exprt

Definition at line 2379 of file std_expr.h.

◆  to_xor_expr() [1/2]

const xor_exprt & to_xor_expr ( const exprtexpr )
inline

Cast an exprt to a xor_exprt.

expr must be known to be xor_exprt.

Parameters
expr Source expression
Returns
Object of type xor_exprt

Definition at line 2325 of file std_expr.h.

◆  to_xor_expr() [2/2]

xor_exprt & to_xor_expr ( exprtexpr )
inline

Cast an exprt to a xor_exprt.

expr must be known to be xor_exprt.

Parameters
expr Source expression
Returns
Object of type xor_exprt

Definition at line 2333 of file std_expr.h.

◆  validate_expr() [1/6]

void validate_expr ( const class class_method_descriptor_exprtvalue )
inline

Definition at line 3614 of file std_expr.h.

◆  validate_expr() [2/6]

void validate_expr ( const cond_exprtvalue )
inline

Definition at line 3431 of file std_expr.h.

◆  validate_expr() [3/6]

void validate_expr ( const constant_exprtvalue )
inline

Definition at line 3067 of file std_expr.h.

◆  validate_expr() [4/6]

void validate_expr ( const let_exprtlet_expr )
inline

Definition at line 3372 of file std_expr.h.

◆  validate_expr() [5/6]

void validate_expr ( const nondet_symbol_exprtvalue )
inline

Definition at line 335 of file std_expr.h.

◆  validate_expr() [6/6]

void validate_expr ( const update_exprtvalue )
inline

Definition at line 2750 of file std_expr.h.

AltStyle によって変換されたページ (->オリジナル) /