cprover
code_assignt Class Reference

Assignment. More...

#include <std_code.h>

Inheritance diagram for code_assignt:
[legend]
Collaboration diagram for code_assignt:
[legend]

Public Member Functions

 code_assignt ()
 
 code_assignt (const exprt &lhs, const exprt &rhs)
 
exprt & lhs ()
 
exprt & rhs ()
 
const exprt & lhs () const
 
const exprt & rhs () const
 
- Public Member Functions inherited from codet
 codet ()
 
 codet (const irep_idt &statement)
 
void set_statement (const irep_idt &statement)
 
const irep_idt & get_statement () const
 
codet & first_statement ()
 
const codet & first_statement () const
 
codet & last_statement ()
 
const codet & last_statement () const
 
class code_blockt & make_block ()
 
- Public Member Functions inherited from exprt
 exprt ()
 
 exprt (const irep_idt &_id)
 
 exprt (const irep_idt &_id, const typet &_type)
 
typet & type ()
 
const typet & type () const
 
bool has_operands () const
 
operandst & operands ()
 
const operandst & operands () const
 
exprt & op0 ()
 
exprt & op1 ()
 
exprt & op2 ()
 
exprt & op3 ()
 
const exprt & op0 () const
 
const exprt & op1 () const
 
const exprt & op2 () const
 
const exprt & op3 () const
 
void reserve_operands (operandst::size_type n)
 
void move_to_operands (exprt &expr)
 
void move_to_operands (exprt &e1, exprt &e2)
 
void move_to_operands (exprt &e1, exprt &e2, exprt &e3)
 
void copy_to_operands (const exprt &expr)
 
void copy_to_operands (const exprt &e1, const exprt &e2)
 
void copy_to_operands (const exprt &e1, const exprt &e2, const exprt &e3)
 
void make_typecast (const typet &_type)
 
void make_not ()
 
void make_true ()
 
void make_false ()
 
void make_bool (bool value)
 
bool is_constant () const
 
bool is_true () const
 
bool is_false () const
 
bool is_zero () const
 
bool is_one () const
 
bool is_boolean () const
 
const source_locationt & find_source_location () const
 
const source_locationt & source_location () const
 
source_locationt & add_source_location ()
 
exprt & add_expr (const irep_idt &name)
 
const exprt & find_expr (const irep_idt &name) const
 
void visit (class expr_visitort &visitor)
 
void visit (class const_expr_visitort &visitor) const
 
depth_iteratort depth_begin ()
 
depth_iteratort depth_end ()
 
const_depth_iteratort depth_begin () const
 
const_depth_iteratort depth_end () const
 
const_depth_iteratort depth_cbegin () const
 
const_depth_iteratort depth_cend () const
 
depth_iteratort depth_begin (std::function< exprt &()> mutate_root) const
 
const_unique_depth_iteratort unique_depth_begin () const
 
const_unique_depth_iteratort unique_depth_end () const
 
const_unique_depth_iteratort unique_depth_cbegin () const
 
const_unique_depth_iteratort unique_depth_cend () const
 
- Public Member Functions inherited from irept
bool is_nil () const
 
bool is_not_nil () const
 
 irept (const irep_idt &_id)
 
 irept ()
 
 irept (const irept &irep)
 
 irept (irept &&irep)
 
irept & operator= (const irept &irep)
 
irept & operator= (irept &&irep)
 
 ~irept ()
 
const irep_idt & id () const
 
const std::string & id_string () const
 
void id (const irep_idt &_data)
 
const irept & find (const irep_namet &name) const
 
irept & add (const irep_namet &name)
 
irept & add (const irep_namet &name, const irept &irep)
 
const std::string & get_string (const irep_namet &name) const
 
const irep_idt & get (const irep_namet &name) const
 
bool get_bool (const irep_namet &name) const
 
signed int get_int (const irep_namet &name) const
 
unsigned int get_unsigned_int (const irep_namet &name) const
 
std::size_t get_size_t (const irep_namet &name) const
 
long long get_long_long (const irep_namet &name) const
 
void set (const irep_namet &name, const irep_idt &value)
 
void set (const irep_namet &name, const irept &irep)
 
void set (const irep_namet &name, const long long value)
 
void remove (const irep_namet &name)
 
void move_to_sub (irept &irep)
 
void move_to_named_sub (const irep_namet &name, irept &irep)
 
bool operator== (const irept &other) const
 
bool operator!= (const irept &other) const
 
void swap (irept &irep)
 
bool operator< (const irept &other) const
 defines ordering on the internal representation More...
 
bool ordering (const irept &other) const
 defines ordering on the internal representation More...
 
int compare (const irept &i) const
 defines ordering on the internal representation More...
 
void clear ()
 
void make_nil ()
 
subt & get_sub ()
 
const subt & get_sub () const
 
named_subt & get_named_sub ()
 
const named_subt & get_named_sub () const
 
named_subt & get_comments ()
 
const named_subt & get_comments () const
 
std::size_t hash () const
 
std::size_t full_hash () const
 
bool full_eq (const irept &other) const
 
std::string pretty (unsigned indent=0, unsigned max_indent=0) const
 
const dt & read () const
 
dt & write ()
 

Additional Inherited Members

- Public Types inherited from exprt
typedef std::vector< exprt > operandst
 
- Public Types inherited from irept
typedef std::vector< irept > subt
 
typedef std::map< irep_namet, irept > named_subt
 
- Protected Member Functions inherited from irept
void detach ()
 
- Static Protected Member Functions inherited from irept
static bool is_comment (const irep_namet &name)
 
static void remove_ref (dt *old_data)
 
static void nonrecursive_destructor (dt *old_data)
 Does the same as remove_ref, but using an explicit stack instead of recursion. More...
 
- Protected Attributes inherited from irept
dt * data
 
- Static Protected Attributes inherited from irept
static dt empty_d
 

Detailed Description

Assignment.

Definition at line 196 of file std_code.h.

Constructor & Destructor Documentation

◆ code_assignt() [1/2]

code_assignt::code_assignt ( )
inline

Definition at line 199 of file std_code.h.

References exprt::operands().

◆ code_assignt() [2/2]

code_assignt::code_assignt ( const exprt &  lhs,
const exprt &  rhs 
)
inline

Definition at line 204 of file std_code.h.

References exprt::copy_to_operands(), lhs(), and rhs().

Member Function Documentation

◆ lhs() [1/2]

exprt& code_assignt::lhs ( )
inline

Definition at line 209 of file std_code.h.

References exprt::op0().

Referenced by string_abstractiont::abstract_assign(), string_abstractiont::abstract_char_assign(), string_abstractiont::abstract_pointer_assign(), overflow_instrumentert::add_overflow_checks(), interval_domaint::assign(), local_may_aliast::build(), local_bitvector_analysist::build(), check_and_replace_target(), goto_convertt::clean_expr(), code_assignt(), cone_of_influencet::cone_of_influence(), polynomial_acceleratort::cone_of_influence(), goto_program2codet::convert_assign(), goto_convertt::convert_assign(), graphml_witnesst::convert_assign_rec(), goto_program2codet::convert_assign_rec(), goto_program2codet::convert_assign_varargs(), jsil_convertt::convert_code(), goto_program2codet::convert_decl(), java_bytecode_convert_methodt::convert_iinc(), interpretert::execute_assign(), expressions_read(), expressions_written(), acceleration_utilst::find_modified(), require_goto_statements::find_pointer_assignments(), require_goto_statements::find_struct_component_assignments(), require_goto_statements::find_this_component_assignment(), scratch_programt::fix_types(), acceleration_utilst::gather_array_assignments(), get_modifies(), function_modifiest::get_modifies(), havoc_loopst::get_modifies(), get_objects_r(), get_objects_w(), goto_checkt::goto_check(), goto_rw(), goto_symext::havoc_rec(), implicit(), goto_inlinet::insert_function_body(), escape_analysist::instrument(), java_bytecode_instrumentt::instrument_code(), goto_convertt::make_temp_symbol(), mutex_init_instrumentation(), nondet_static(), does_remove_constt::operator()(), acceleration_utilst::precondition(), polynomial_acceleratort::precondition(), print_global_state_size(), goto_convertt::remove_statement_expression(), remove_returnst::restore_returns(), goto_symext::return_assignment(), goto_program2codet::scan_for_varargs(), slice_global_inits(), static_simplifier(), goto_symext::symex_assign(), goto_symext::symex_other(), constant_propagator_domaint::transform(), custom_bitvector_domaint::transform(), global_may_alias_domaint::transform(), escape_domaint::transform(), invariant_set_domaint::transform(), c_typecheck_baset::typecheck_array_type(), java_bytecode_typecheckt::typecheck_code(), remove_returnst::undo_function_calls(), wp_assign(), and cpp_typecheckt::zero_initializer().

◆ lhs() [2/2]

const exprt& code_assignt::lhs ( ) const
inline

Definition at line 219 of file std_code.h.

References exprt::op0().

◆ rhs() [1/2]

exprt& code_assignt::rhs ( )
inline

Definition at line 214 of file std_code.h.

References exprt::op1().

Referenced by string_abstractiont::abstract_assign(), string_abstractiont::abstract_char_assign(), string_abstractiont::abstract_pointer_assign(), overflow_instrumentert::add_overflow_checks(), interval_domaint::assign(), local_may_aliast::build(), local_bitvector_analysist::build(), goto_convertt::clean_expr(), code_assignt(), cone_of_influencet::cone_of_influence(), polynomial_acceleratort::cone_of_influence(), goto_convertt::convert_assign(), graphml_witnesst::convert_assign_rec(), goto_program2codet::convert_assign_rec(), goto_program2codet::convert_assign_varargs(), jsil_convertt::convert_code(), goto_program2codet::convert_decl(), java_bytecode_convert_methodt::convert_iinc(), interpretert::execute_assign(), expressions_read(), filter_out(), require_goto_statements::find_pointer_assignments(), require_goto_statements::find_struct_component_assignments(), require_goto_statements::find_this_component_assignment(), scratch_programt::fix_types(), acceleration_utilst::gather_array_assignments(), get_objects_r(), goto_checkt::goto_check(), goto_rw(), goto_symext::havoc_rec(), concurrency_instrumentationt::instrument(), java_bytecode_instrumentt::instrument_code(), is_assignment_from(), nondet_volatile(), does_remove_constt::operator()(), replace_callst::operator()(), acceleration_utilst::precondition(), polynomial_acceleratort::precondition(), constant_propagator_ait::replace(), goto_inlinet::replace_return(), remove_returnst::restore_returns(), goto_symext::return_assignment(), goto_program2codet::scan_for_varargs(), static_simplifier(), goto_symext::symex_assign(), constant_propagator_domaint::transform(), custom_bitvector_domaint::transform(), escape_domaint::transform(), global_may_alias_domaint::transform(), invariant_set_domaint::transform(), c_typecheck_baset::typecheck_array_type(), java_bytecode_typecheckt::typecheck_code(), remove_returnst::undo_function_calls(), wp_assign(), and cpp_typecheckt::zero_initializer().

◆ rhs() [2/2]

const exprt& code_assignt::rhs ( ) const
inline

Definition at line 224 of file std_code.h.

References exprt::op1().


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