#include <Expr.h>


Public Member Functions | |
| Width | getWidth () const |
| Kind | getKind () const |
| unsigned | getNumKids () const |
| ref< Expr > | getKid (unsigned i) const |
| int | compareContents (const Expr &b) const |
| virtual ref< Expr > | rebuild (ref< Expr > kids[]) const |
| virtual unsigned | computeHash () |
Static Public Member Functions | |
| static ref< Expr > | alloc (const ref< Expr > &e, unsigned o, Width w) |
| static ref< Expr > | create (ref< Expr > e, unsigned bitOff, Width w) |
| Creates an ExtractExpr with the given bit offset and width. | |
| static ref< Expr > | createByteOff (ref< Expr > e, unsigned byteOff, Width w=Expr::Int8) |
| Creates an ExtractExpr with the given byte offset and width. | |
| static bool | classof (const Expr *E) |
| static bool | classof (const ExtractExpr *) |
Public Attributes | |
| ref< Expr > | expr |
| unsigned | offset |
| Width | width |
Static Public Attributes | |
| static const Kind | kind = Extract |
| static const unsigned | numKids = 1 |
Private Member Functions | |
| ExtractExpr (const ref< Expr > &e, unsigned b, Width w) | |
Definition at line 696 of file Expr.h.
| static ref<Expr> klee::ExtractExpr::alloc | ( | const ref< Expr > & | e, | |
| unsigned | o, | |||
| Width | w | |||
| ) | [inline, static] |
Definition at line 707 of file Expr.h.
References ExtractExpr().
Referenced by create().


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

| int klee::ExtractExpr::compareContents | ( | const Expr & | b | ) | const [inline, virtual] |
| unsigned ExtractExpr::computeHash | ( | ) | [virtual] |
(Re)computes the hash of the current expression. Returns the hash value.
Reimplemented from klee::Expr.
Definition at line 178 of file Expr.cpp.
References expr, getWidth(), klee::Expr::hashValue, klee::Expr::MAGIC_HASH_CONSTANT, and offset.

Creates an ExtractExpr with the given bit offset and width.
Definition at line 474 of file Expr.cpp.
References alloc(), and klee::ints::trunc().
Referenced by createByteOff(), and rebuild().


| ref< Expr > ExtractExpr::createByteOff | ( | ref< Expr > | e, | |
| unsigned | byteOff, | |||
| Width | w = Expr::Int8 | |||
| ) | [static] |
Creates an ExtractExpr with the given byte offset and width.
Definition at line 504 of file Expr.cpp.
References create().
Referenced by klee::Executor::evalConstantExpr(), klee::Executor::executeInstruction(), klee::ObjectState::read1(), klee::ObjectState::write16(), klee::ObjectState::write32(), and klee::ObjectState::write64().


| Kind klee::ExtractExpr::getKind | ( | ) | const [inline, virtual] |
| unsigned klee::ExtractExpr::getNumKids | ( | ) | const [inline, virtual] |
| Width klee::ExtractExpr::getWidth | ( | ) | const [inline, virtual] |
Implements klee::Expr.
Definition at line 719 of file Expr.h.
References width.
Referenced by computeHash(), and klee::STPBuilder::constructActual().

Definition at line 702 of file Expr.h.
Referenced by computeHash(), klee::STPBuilder::constructActual(), getKid(), and PPrinter::printExtract().
const Kind klee::ExtractExpr::kind = Extract [static] |
const unsigned klee::ExtractExpr::numKids = 1 [static] |
| unsigned klee::ExtractExpr::offset |
Definition at line 703 of file Expr.h.
Referenced by compareContents(), computeHash(), klee::STPBuilder::constructActual(), PPrinter::printExtract(), and rebuild().
1.5.8