cprover
|
A constant literal expression. More...
#include <std_expr.h>
Public Member Functions | |
constant_exprt () | |
constant_exprt (const typet &type) | |
constant_exprt (const irep_idt &_value, const typet &_type) | |
const irep_idt & | get_value () const |
void | set_value (const irep_idt &value) |
bool | value_is_zero_string () const |
![]() | |
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 |
![]() | |
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 |
A constant literal expression.
Definition at line 4424 of file std_expr.h.
|
inline |
Definition at line 4427 of file std_expr.h.
|
inlineexplicit |
Definition at line 4431 of file std_expr.h.
Definition at line 4435 of file std_expr.h.
References set_value().
|
inline |
Definition at line 4441 of file std_expr.h.
Referenced by string_constraint_generatort::add_axioms_for_constrain_characters(), dump_ct::cleanup_expr(), goto_program2codet::convert_assign_varargs(), smt2_convt::convert_constant(), boolbvt::convert_constant(), expr2ct::convert_constant(), bv_pointerst::convert_pointer_type(), smt2_convt::convert_rounding_mode_FPA(), expr2cppt::convert_with_precedence(), dereferencet::dereference_rec(), simplify_exprt::eliminate_common_addends(), custom_bitvector_domaint::eval(), interpretert::evaluate(), acceleration_utilst::extract_polynomial(), format_rec(), polynomialt::from_expr(), fixedbvt::from_expr(), ieee_floatt::from_expr(), goto_convertt::get_string_constant(), exprt::is_zero(), json(), mul_expr(), smt2_convt::parse_literal(), smt2_convt::parse_struct(), simplify_exprt::simplify_bitwise(), simplify_json_expr(), simplify_exprt::simplify_pointer_offset(), simplify_exprt::simplify_typecast(), sum_expr(), to_integer(), custom_bitvector_domaint::transform(), c_typecheck_baset::typecheck_expr_trinary(), and value_is_zero_string().
|
inline |
Definition at line 4446 of file std_expr.h.
Referenced by boolbvt::bv_get_rec(), constant_exprt(), false_exprt::false_exprt(), from_integer(), from_rational(), json(), linker_script_merget::ls_data2instructions(), mul_expr(), null_pointer_exprt::null_pointer_exprt(), pointer_logict::pointer_expr(), simplify_exprt::simplify_bitwise(), simplify_exprt::simplify_typecast(), sum_expr(), fixedbvt::to_expr(), bv_arithmetict::to_expr(), ieee_floatt::to_expr(), true_exprt::true_exprt(), and xml().
bool constant_exprt::value_is_zero_string | ( | ) | const |
Definition at line 18 of file std_expr.cpp.
References get_value(), and id2string().
Referenced by exprt::is_zero(), and simplify_exprt::simplify_pointer_offset().