cprover
|
Assignment. More...
#include <std_code.h>
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 |
![]() | |
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 () |
![]() | |
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) |
void | negate () |
bool | sum (const exprt &expr) |
bool | mul (const exprt &expr) |
bool | subtract (const exprt &expr) |
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 |
![]() | |
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 | |
![]() | |
typedef std::vector< exprt > | operandst |
![]() | |
typedef std::vector< irept > | subt |
typedef std::map< irep_namet, irept > | named_subt |
![]() | |
void | detach () |
![]() | |
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... | |
![]() | |
dt * | data |
![]() | |
static dt | empty_d |
Assignment.
Definition at line 144 of file std_code.h.
|
inline |
Definition at line 147 of file std_code.h.
References exprt::operands().
Definition at line 152 of file std_code.h.
References exprt::copy_to_operands(), lhs(), and rhs().
|
inline |
Definition at line 157 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(), path_symext::assign(), 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_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_instructions(), goto_convertt::do_array_equal(), interpretert::execute_assign(), expressions_read(), expressions_written(), acceleration_utilst::find_modified(), 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(), implicit(), goto_inlinet::insert_function_body(), escape_analysist::instrument(), goto_convertt::make_temp_symbol(), mutex_init_instrumentation(), nondet_static(), does_remove_constt::operator()(), acceleration_utilst::precondition(), polynomial_acceleratort::precondition(), const_function_pointer_propagationt::propagate(), goto_convertt::remove_statement_expression(), remove_returnst::restore_returns(), goto_symext::return_assignment(), goto_program2codet::scan_for_varargs(), slice_global_inits(), goto_symext::symex_assign(), goto_symext::symex_assign_rec(), 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().
|
inline |
Definition at line 167 of file std_code.h.
References exprt::op0().
|
inline |
Definition at line 162 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(), path_symext::assign(), 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_instructions(), goto_convertt::do_array_equal(), interpretert::execute_assign(), expressions_read(), filter_out(), scratch_programt::fix_types(), acceleration_utilst::gather_array_assignments(), get_objects_r(), goto_checkt::goto_check(), goto_rw(), concurrency_instrumentationt::instrument(), nondet_volatile(), does_remove_constt::operator()(), acceleration_utilst::precondition(), polynomial_acceleratort::precondition(), const_function_pointer_propagationt::propagate(), constant_propagator_ait::replace(), goto_inlinet::replace_return(), remove_returnst::restore_returns(), goto_symext::return_assignment(), goto_program2codet::scan_for_varargs(), goto_symext::symex_assign(), goto_symext::symex_assign_rec(), goto_symext::symex_other(), 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().
|
inline |
Definition at line 172 of file std_code.h.
References exprt::op1().