CBMC
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
ssa_exprt Class Reference

Expression providing an SSA-renamed symbol of expressions. More...

#include <ssa_expr.h>

+ Inheritance diagram for ssa_exprt:
+ Collaboration diagram for ssa_exprt:

Public Member Functions

  ssa_exprt (const exprt &expr)
  Constructor.
 
 
 
  Replace the underlying, original expression by expr while maintaining SSA indices.
 
 
 
 
 
void  set_level_0 (std::size_t i)
 
void  set_level_1 (std::size_t i)
 
void  set_level_2 (std::size_t i)
 
 
 
 
 
- Public Member Functions inherited from symbol_exprt
 
 
 
void  identifier (const irep_idt &identifier)
 
 
 
  Add the source location from location, if it is non-nil.
 
  Add the source location from location, if it is non-nil.
 
  Add the source location from other, if it has any.
 
  Add the source location from other, if it has any.
 
- Public Member Functions inherited from nullary_exprt
 
  remove all operand methods
 
 
 
exprtop0 ()=delete
 
 
exprtop1 ()=delete
 
 
exprtop2 ()=delete
 
 
exprtop3 ()=delete
 
 
 
 
- Public Member Functions inherited from exprt
  exprt ()
 
 
  exprt (irep_idt _id, typet _type)
 
 
 
typettype ()
  Return the type of the expression.
 
 
  Return true if there is at least one operand.
 
 
 
  Add the source location from location, if it is non-nil.
 
  Add the source location from location, if it is non-nil.
 
  Add the source location from other, if it has any.
 
  Add the source location from other, if it has any.
 
void  reserve_operands (operandst::size_type n)
 
  Copy the given argument to the end of exprt's operands.
 
  Add the given argument to the end of exprt's operands.
 
  Add the given argument to the end of exprt's operands.
 
  Add the given arguments to the end of exprt's operands.
 
  Add the given arguments to the end of exprt's operands.
 
  Return whether the expression is a constant.
 
  Return whether the expression is a constant representing true.
 
  Return whether the expression is a constant representing false.
 
  Return whether the expression is a constant representing 0.
 
  Return whether the expression is a constant representing 1.
 
  Return whether the expression represents a Boolean.
 
  Get a source_locationt from the expression or from its operands (non-recursively).
 
 
 
 
  These are pre-order traversal visitors, i.e., the visitor is executed on a node before its children have been visited.
 
 
void  visit_pre (std::function< void(exprt &)>)
 
void  visit_pre (std::function< void(const exprt &)>) const
 
void  visit_post (std::function< void(exprt &)>)
  These are post-order traversal visitors, i.e., the visitor is executed on a node after its children have been visited.
 
void  visit_post (std::function< void(const exprt &)>) const
 
 
 
 
 
 
 
depth_iteratort  depth_begin (std::function< exprt &()> mutate_root) const
 
 
 
 
 
- Public Member Functions inherited from irept
 
 
 
 
  irept ()=default
 
 
const std::string &  id_string () const
 
void  id (const irep_idt &_data)
 
 
ireptadd (const irep_idt &name)
 
ireptadd (const irep_idt &name, irept irep)
 
const std::string &  get_string (const irep_idt &name) const
 
 
 
 
std::size_t  get_size_t (const irep_idt &name) const
 
 
void  set (const irep_idt &name, const irep_idt &value)
 
void  set (const irep_idt &name, irept irep)
 
void  set (const irep_idt &name, const long long value)
 
void  set_size_t (const irep_idt &name, const std::size_t value)
 
 
 
 
 
 
void  swap (irept &irep)
 
  defines ordering on the internal representation
 
  defines ordering on the internal representation
 
  defines ordering on the internal representation comments are ignored
 
void  clear ()
 
 
subtget_sub ()
 
 
 
 
std::size_t  hash () const
 
std::size_t  full_hash () const
 
 
std::string  pretty (unsigned indent=0, unsigned max_indent=0) const
 
- Public Member Functions inherited from sharing_treet< irept, forward_list_as_mapt< irep_idt, irept > >
 
 
 
 
 
 
 
 
const dtread () const
 
dtwrite ()
 

Static Public Member Functions

  Used to determine whether or not an identifier can be built before trying and getting an exception.
 
 
 
- Static Public Member Functions inherited from symbol_exprt
  Generate a symbol_exprt without a proper type.
 
- Static Public Member Functions inherited from nullary_exprt
 
 
- Static Public Member Functions inherited from exprt
  Check that the expression is well-formed (shallow checks only, i.e., subexpressions and its type are not checked).
 
  Check that the expression is well-formed, assuming that its subexpressions and type have all ready been checked for well-formedness.
 
  Check that the expression is well-formed (full check, including checks of all subexpressions and the type)
 
- Static Public Member Functions inherited from irept
 
  count the number of named_sub elements that are not comments
 

Additional Inherited Members

- Public Types inherited from exprt
typedef std::vector< exprtoperandst
 
- Public Types inherited from irept
 
 
 
 
  Used to refer to this class from derived classes.
 
- Protected Member Functions inherited from expr_protectedt
 
 
exprtop0 ()
 
const exprtop0 () const
 
exprtop1 ()
 
const exprtop1 () const
 
exprtop2 ()
 
const exprtop2 () const
 
exprtop3 ()
 
const exprtop3 () const
 
- Protected Member Functions inherited from exprt
exprtop0 ()
 
exprtop1 ()
 
exprtop2 ()
 
exprtop3 ()
 
const exprtop0 () const
 
const exprtop1 () const
 
const exprtop2 () const
 
const exprtop3 () const
 
 
 
- Protected Member Functions inherited from sharing_treet< irept, forward_list_as_mapt< irep_idt, irept > >
void  detach ()
 
- Static Protected Member Functions inherited from sharing_treet< irept, forward_list_as_mapt< irep_idt, irept > >
 
  Does the same as remove_ref, but using an explicit stack instead of recursion.
 
dtdata
 
- Static Protected Attributes inherited from sharing_treet< irept, forward_list_as_mapt< irep_idt, irept > >
 

Detailed Description

Expression providing an SSA-renamed symbol of expressions.

Definition at line 16 of file ssa_expr.h.

Constructor & Destructor Documentation

◆  ssa_exprt()

ssa_exprt::ssa_exprt ( const exprtexpr )
explicit

Constructor.

Parameters
expr Expression to be converted to SSA symbol. A valid argument must be one of these:

Definition at line 40 of file ssa_expr.cpp.

Member Function Documentation

◆  can_build_identifier()

bool ssa_exprt::can_build_identifier ( const exprtsrc )
static

Used to determine whether or not an identifier can be built before trying and getting an exception.

Definition at line 207 of file ssa_expr.cpp.

◆  check()

static void ssa_exprt::check ( const exprtexpr,
)
inlinestatic

Definition at line 82 of file ssa_expr.h.

◆  get_l1_object()

const ssa_exprt ssa_exprt::get_l1_object ( ) const

Definition at line 156 of file ssa_expr.cpp.

◆  get_l1_object_identifier()

const irep_idt ssa_exprt::get_l1_object_identifier ( ) const

Definition at line 170 of file ssa_expr.cpp.

◆  get_level_0()

const irep_idt ssa_exprt::get_level_0 ( ) const
inline

Definition at line 63 of file ssa_expr.h.

◆  get_level_1()

const irep_idt ssa_exprt::get_level_1 ( ) const
inline

Definition at line 68 of file ssa_expr.h.

◆  get_level_2()

const irep_idt ssa_exprt::get_level_2 ( ) const
inline

Definition at line 73 of file ssa_expr.h.

◆  get_object_name()

irep_idt ssa_exprt::get_object_name ( ) const

Definition at line 145 of file ssa_expr.cpp.

◆  get_original_expr()

const exprt & ssa_exprt::get_original_expr ( ) const
inline

Definition at line 33 of file ssa_expr.h.

◆  get_original_name()

const irep_idt ssa_exprt::get_original_name ( ) const
inline

Definition at line 49 of file ssa_expr.h.

◆  remove_level_2()

void ssa_exprt::remove_level_2 ( )

Definition at line 199 of file ssa_expr.cpp.

◆  set_expression()

void ssa_exprt::set_expression ( exprt  expr )

Replace the underlying, original expression by expr while maintaining SSA indices.

Parameters
expr expression to store

Definition at line 138 of file ssa_expr.cpp.

◆  set_level_0()

void ssa_exprt::set_level_0 ( std::size_t  i )

Definition at line 181 of file ssa_expr.cpp.

◆  set_level_1()

void ssa_exprt::set_level_1 ( std::size_t  i )

Definition at line 187 of file ssa_expr.cpp.

◆  set_level_2()

void ssa_exprt::set_level_2 ( std::size_t  i )

Definition at line 193 of file ssa_expr.cpp.

◆  update_type()

void ssa_exprt::update_type ( )
inline

Definition at line 28 of file ssa_expr.h.

◆  validate()

static void ssa_exprt::validate ( const exprtexpr,
const namespacetns,
)
inlinestatic

Definition at line 114 of file ssa_expr.h.


The documentation for this class was generated from the following files:

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