#include <Expr.h>


Public Member Functions | |
| ~ConstantExpr () | |
| Width | getWidth () const |
| Kind | getKind () const |
| unsigned | getNumKids () const |
| ref< Expr > | getKid (unsigned i) const |
| uint64_t | getConstantValue () const |
| int | compareContents (const Expr &b) const |
| virtual ref< Expr > | rebuild (ref< Expr > kids[]) const |
| virtual unsigned | computeHash () |
| void | toMemory (void *address) |
Static Public Member Functions | |
| static ref< Expr > | fromMemory (void *address, Width w) |
| static ref< ConstantExpr > | alloc (uint64_t v, Width w) |
| static ref< ConstantExpr > | create (uint64_t v, Width w) |
| static bool | classof (const Expr *E) |
| static bool | classof (const ConstantExpr *) |
Public Attributes | |
| Width | width |
Static Public Attributes | |
| static const Kind | kind = Constant |
| static const unsigned | numKids = 0 |
Private Member Functions | |
| ConstantExpr (uint64_t v, Width w) | |
Private Attributes | |
| uint64_t | value |
Definition at line 294 of file Expr.h.
| klee::ConstantExpr::ConstantExpr | ( | uint64_t | v, | |
| Width | w | |||
| ) | [inline, private] |
| static ref<ConstantExpr> klee::ConstantExpr::alloc | ( | uint64_t | v, | |
| Width | w | |||
| ) | [inline, static] |
Definition at line 340 of file Expr.h.
References ConstantExpr().
Referenced by klee::Executor::addConstraint(), klee::ImpliedValue::checkForImpliedValues(), create(), klee::Expr::createTempRead(), EqExpr_create(), klee::Executor::evalConstantExpr(), klee::ExprEvaluator::evalRead(), klee::Assignment::evaluate(), klee::Executor::executeAlloc(), klee::Executor::executeInstruction(), klee::MemoryObject::getBoundsCheckOffset(), klee::Executor::getConstraintLog(), klee::TimingSolver::getInitialValues(), klee::Executor::getSymbolicSolution(), klee::ExecutionState::merge(), klee::SeedInfo::patchSeed(), klee::ExprPPrinter::printConstraints(), klee::ConstraintManager::simplifyExpr(), SubExpr_create(), TryConstArrayOpt(), and klee::Query::withFalse().


| static bool klee::ConstantExpr::classof | ( | const ConstantExpr * | ) | [inline, static] |
| static bool klee::ConstantExpr::classof | ( | const Expr * | E | ) | [inline, static] |
Reimplemented from klee::Expr.
Definition at line 353 of file Expr.h.
References klee::Expr::Constant, and klee::Expr::getKind().

| int klee::ConstantExpr::compareContents | ( | const Expr & | b | ) | const [inline, virtual] |
| unsigned ConstantExpr::computeHash | ( | ) | [virtual] |
(Re)computes the hash of the current expression. Returns the hash value.
Reimplemented from klee::Expr.
Definition at line 167 of file Expr.cpp.
References klee::Expr::hashValue, klee::Expr::MAGIC_HASH_CONSTANT, value, and width.
| static ref<ConstantExpr> klee::ConstantExpr::create | ( | uint64_t | v, | |
| Width | w | |||
| ) | [inline, static] |
Definition at line 347 of file Expr.h.
References alloc(), and klee::bits64::truncateToNBits().
Referenced by klee::Expr::createIsZero(), klee::Expr::createPointer(), EqExpr_createPartialR(), klee::ObjectState::flushRangeForRead(), klee::ObjectState::flushRangeForWrite(), fromMemory(), klee::MemoryObject::getBaseExpr(), klee::Solver::getRange(), klee::MemoryObject::getSizeExpr(), klee::ObjectState::read16(), klee::ObjectState::read32(), klee::ObjectState::read64(), klee::ObjectState::read8(), SRemExpr_create(), SubExpr_createPartial(), URemExpr_create(), klee::ObjectState::write16(), klee::ObjectState::write32(), klee::ObjectState::write64(), and XorExpr_createPartialR().


Definition at line 328 of file Expr.cpp.
References klee::Expr::Bool, create(), klee::Expr::Int16, klee::Expr::Int32, klee::Expr::Int64, and klee::Expr::Int8.

| uint64_t klee::ConstantExpr::getConstantValue | ( | ) | const [inline] |
Definition at line 316 of file Expr.h.
References value.
Referenced by klee::Assignment::satisfies(), and TryConstArrayOpt().

| Kind klee::ConstantExpr::getKind | ( | ) | const [inline, virtual] |
| unsigned klee::ConstantExpr::getNumKids | ( | ) | const [inline, virtual] |
| Width klee::ConstantExpr::getWidth | ( | ) | const [inline, virtual] |
| void ConstantExpr::toMemory | ( | void * | address | ) |
Definition at line 339 of file Expr.cpp.
References klee::Expr::Bool, klee::Expr::Int16, klee::Expr::Int32, klee::Expr::Int64, klee::Expr::Int8, value, and width.
const Kind klee::ConstantExpr::kind = Constant [static] |
const unsigned klee::ConstantExpr::numKids = 0 [static] |
uint64_t klee::ConstantExpr::value [private] |
Definition at line 300 of file Expr.h.
Referenced by compareContents(), computeHash(), getConstantValue(), and toMemory().
Definition at line 305 of file Expr.h.
Referenced by compareContents(), computeHash(), getWidth(), and toMemory().
1.5.8