cprover
symbol_exprt Class Reference

Expression to hold a symbol (variable) More...

#include <std_expr.h>

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

Public Member Functions

 symbol_exprt ()
 
 symbol_exprt (const irep_idt &identifier)
 Constructor. More...
 
 symbol_exprt (const typet &type)
 Constructor. More...
 
 symbol_exprt (const irep_idt &identifier, const typet &type)
 Constructor. More...
 
void set_identifier (const irep_idt &identifier)
 
const irep_idt & get_identifier () const
 
- 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

Expression to hold a symbol (variable)

Definition at line 90 of file std_expr.h.

Constructor & Destructor Documentation

◆ symbol_exprt() [1/4]

symbol_exprt::symbol_exprt ( )
inline

Definition at line 93 of file std_expr.h.

◆ symbol_exprt() [2/4]

symbol_exprt::symbol_exprt ( const irep_idt &  identifier)
inlineexplicit

Constructor.

Parameters
identifierName of symbol

Definition at line 100 of file std_expr.h.

References set_identifier().

◆ symbol_exprt() [3/4]

symbol_exprt::symbol_exprt ( const typet &  type)
inlineexplicit

Constructor.

Parameters
typeType of symbol

Definition at line 108 of file std_expr.h.

◆ symbol_exprt() [4/4]

symbol_exprt::symbol_exprt ( const irep_idt &  identifier,
const typet &  type 
)
inline

Constructor.

Parameters
identifierName of symbol
typeType of symbol

Definition at line 116 of file std_expr.h.

References set_identifier().

Member Function Documentation

◆ get_identifier()

const irep_idt& symbol_exprt::get_identifier ( ) const
inline

Definition at line 128 of file std_expr.h.

Referenced by uninitializedt::add_assertions(), partial_order_concurrencyt::address(), aliasing(), local_may_aliast::assign_lhs(), local_bitvector_analysist::assign_lhs(), global_may_alias_domaint::assign_lhs_aliases(), escape_domaint::assign_lhs_aliases(), escape_domaint::assign_lhs_cleanup(), value_set_fit::assign_rec(), value_set_fivrnst::assign_rec(), value_sett::assign_rec(), goto_symex_statet::assignment(), interval_domaint::assume_rec(), local_may_aliast::build(), build_ssa_identifier_rec(), inv_object_storet::build_string(), string_abstractiont::build_symbol(), mm2cppt::check_acyclic(), check_and_replace_target(), check_axioms(), escape_domaint::check_lhs(), goto_program2codet::cleanup_expr(), dump_ct::cleanup_expr(), goto_program2codet::cleanup_function_call(), dump_ct::cleanup_harness(), concurrency_instrumentationt::collect(), symex_slicet::collect_open_variables(), cfg_baset< cfg_nodet >::compute_edges_function_call(), rw_set_functiont::compute_rec(), prop_conv_solvert::convert_bool(), convert_decl(), goto_program2codet::convert_decl(), goto_convertt::convert_decl(), smt2_convt::convert_expr(), smt2_convt::convert_floatbv(), boolbvt::convert_let(), bv_pointerst::convert_pointer_type(), java_bytecode_convert_methodt::convert_putstatic(), java_bytecode_convert_methodt::convert_store(), create_static_function_call(), smt2_solvert::define_constants(), string_instrumentationt::do_function_call(), goto_convertt::do_function_call(), flow_insensitive_analysis_baset::do_function_call_rec(), static_analysis_baset::do_function_call_rec(), ai_baset::do_function_call_rec(), c_typecheck_baset::do_special_functions(), interpretert::evaluate_address(), dirtyt::find_dirty_address_of(), find_macros(), require_goto_statements::find_pointer_assignments(), require_goto_statements::find_struct_component_assignments(), smt2_convt::find_symbols(), forall_callsites(), format_rec(), remove_exceptionst::function_or_callees_may_throw(), smt2_convt::get(), escape_domaint::get_function(), get_function_name(), remove_virtual_functionst::get_functions(), code_declt::get_identifier(), code_deadt::get_identifier(), ssa_exprt::get_l1_object_identifier(), java_bytecode_convert_methodt::get_lambda_method_symbol(), function_modifiest::get_modifies_function(), ssa_exprt::get_object_name(), rw_range_sett::get_objects_rec(), get_or_create_class_literal_symbol(), ssa_exprt::get_original_name(), local_bitvector_analysist::get_rec(), global_may_alias_domaint::get_rhs_aliases(), escape_domaint::get_rhs_aliases(), global_may_alias_domaint::get_rhs_aliases_address_of(), escape_domaint::get_rhs_aliases_address_of(), escape_domaint::get_rhs_cleanup(), uninitializedt::get_tracking(), value_sett::get_value_set_rec(), goto_partial_inline(), cpp_typecheck_resolvet::guess_function_template_args(), symex_dereference_statet::has_failed_symbol(), rename_symbolt::have_to_rename(), replace_symbolt::have_to_replace(), interval_domaint::havoc_rec(), implicit(), rename_symbolt::insert(), concurrency_instrumentationt::instrument(), taint_analysist::instrument(), interrupt(), shared_bufferst::is_buffered(), shared_bufferst::is_buffered_in_general(), remove_calls_no_bodyt::is_opaque_function_call(), is_shared(), is_symbol_with_id(), escape_domaint::is_tracked(), is_typecast_with_id(), acceleratet::is_underapproximate(), postconditiont::is_used(), json(), goto_symex_statet::l2_thread_read_encoding(), link_functions(), list_calls_and_arguments(), prop_conv_solvert::literal(), namespace_baset::lookup(), interval_domaint::make_expression(), mm_io(), model_argc_argv(), string_builtin_function_with_no_evalt::name(), nondet_static(), notify_static_method_calls(), custom_bitvector_domaint::object2id(), object_idt::object_idt(), simplify_exprt::objects_equal_address_of(), replace_callst::operator()(), full_slicert::operator()(), dirtyt::operator()(), check_call_sequencet::operator()(), local_may_aliast::output(), goto_symext::phi_function(), linker_script_merget::pointerize_subexprs_of(), print_global_state_size(), _rw_set_loct::read_write_rec(), references_class_model(), cpp_typecheck_resolvet::remove_duplicates(), rename_symbolt::rename(), goto_symex_statet::rename(), goto_symex_statet::rename_address(), replace_symbolt::replace(), require_type::require_lambda_method_handles(), require_expr::require_symbol(), remove_const_function_pointerst::resolve_symbol(), goto_symex_statet::set_ssa_indices(), constant_propagator_domaint::valuest::set_to(), constant_propagator_domaint::valuest::set_to_top(), show_call_sequences(), symex_slicet::slice_assignment(), symex_slicet::slice_decl(), slice_global_inits(), acceleration_utilst::stash_variables(), polynomial_acceleratort::stash_variables(), linker_script_merget::symbols_to_pointerize(), goto_symext::symex_assign_symbol(), goto_symext::symex_atomic_end(), goto_symext::symex_dead(), goto_symext::symex_decl(), goto_symext::symex_goto(), jsil_declarationt::to_symbol(), constant_propagator_domaint::transform(), uncaught_exceptions_domaint::transform(), custom_bitvector_domaint::transform(), escape_domaint::transform(), rd_range_domaint::transform_function_call(), goto_symext::trigger_auto_object(), java_bytecode_typecheckt::typecheck_expr_symbol(), c_typecheck_baset::typecheck_expr_symbol(), jsil_typecheckt::typecheck_function_call(), c_typecheck_baset::typecheck_side_effect_function_call(), jsil_typecheckt::typecheck_symbol_expr(), remove_returnst::undo_function_calls(), jsil_typecheckt::update_expr_type(), value_set_dereferencet::valid_check(), java_bytecode_convert_methodt::variable(), instrumentert::cfg_visitort::visit_cfg_function_call(), and yyjsilparse().

◆ set_identifier()


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