klee
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
klee::NotExpr Class Reference

#include <Expr.h>

Inheritance diagram for klee::NotExpr:
Collaboration diagram for klee::NotExpr:

Public Member Functions

Width getWidth () const
 
Kind getKind () const
 
unsigned getNumKids () const
 
ref< ExprgetKid (unsigned i) const
 
int compareContents (const Expr &b) const
 
virtual ref< Exprrebuild (ref< Expr > kids[]) const
 
virtual unsigned computeHash ()
 
- Public Member Functions inherited from klee::Expr
 Expr ()
 
virtual ~Expr ()
 
virtual void print (llvm::raw_ostream &os) const
 
void dump () const
 dump - Print the expression to stderr. More...
 
virtual unsigned hash () const
 Returns the pre-computed hash of the current expression. More...
 
int compare (const Expr &b, ExprEquivSet &equivs) const
 
int compare (const Expr &b) const
 
bool isZero () const
 isZero - Is this a constant zero. More...
 
bool isTrue () const
 isTrue - Is this the true expression. More...
 
bool isFalse () const
 isFalse - Is this the false expression. More...
 

Static Public Member Functions

static ref< Expralloc (const ref< Expr > &e)
 
static ref< Exprcreate (const ref< Expr > &e)
 
static bool classof (const Expr *E)
 
static bool classof (const NotExpr *)
 
- Static Public Member Functions inherited from klee::NonConstantExpr
static bool classof (const Expr *E)
 
static bool classof (const NonConstantExpr *)
 
- Static Public Member Functions inherited from klee::Expr
static void printKind (llvm::raw_ostream &os, Kind k)
 
static void printWidth (llvm::raw_ostream &os, Expr::Width w)
 
static unsigned getMinBytesForWidth (Width w)
 returns the smallest number of bytes in which the given width fits More...
 
static ref< ExprcreateSExtToPointerWidth (ref< Expr > e)
 
static ref< ExprcreateZExtToPointerWidth (ref< Expr > e)
 
static ref< ExprcreateImplies (ref< Expr > hyp, ref< Expr > conc)
 
static ref< ExprcreateIsZero (ref< Expr > e)
 
static ref< ExprcreateTempRead (const Array *array, Expr::Width w)
 
static ref< ConstantExprcreatePointer (uint64_t v)
 
static ref< ExprcreateFromKind (Kind k, std::vector< CreateArg > args)
 
static bool isValidKidWidth (unsigned kid, Width w)
 
static bool needsResultType ()
 
static bool classof (const Expr *)
 

Public Attributes

ref< Exprexpr
 
- Public Attributes inherited from klee::Expr
unsigned refCount
 

Static Public Attributes

static const Kind kind = Not
 
static const unsigned numKids = 1
 
- Static Public Attributes inherited from klee::Expr
static unsigned count = 0
 
static const unsigned MAGIC_HASH_CONSTANT = 39
 
static const Width InvalidWidth = 0
 
static const Width Bool = 1
 
static const Width Int8 = 8
 
static const Width Int16 = 16
 
static const Width Int32 = 32
 
static const Width Int64 = 64
 
static const Width Fl80 = 80
 

Private Member Functions

 NotExpr (const ref< Expr > &e)
 

Additional Inherited Members

- Public Types inherited from klee::Expr
enum  Kind {
  InvalidKind = -1, Constant = 0, NotOptimized, Read =NotOptimized+2,
  Select, Concat, Extract, ZExt,
  SExt, Add, Sub, Mul,
  UDiv, SDiv, URem, SRem,
  Not, And, Or, Xor,
  Shl, LShr, AShr, Eq,
  Ne, Ult, Ule, Ugt,
  Uge, Slt, Sle, Sgt,
  Sge, LastKind =Sge, CastKindFirst =ZExt, CastKindLast =SExt,
  BinaryKindFirst =Add, BinaryKindLast =Sge, CmpKindFirst =Eq, CmpKindLast =Sge
}
 
typedef unsigned Width
 The type of an expression is simply its width, in bits. More...
 
typedef llvm::DenseSet
< std::pair< const Expr
*, const Expr * > > 
ExprEquivSet
 Returns 0 iff b is structuraly equivalent to *this. More...
 
- Protected Attributes inherited from klee::Expr
unsigned hashValue
 

Detailed Description

Bitwise Not

Definition at line 895 of file Expr.h.

Constructor & Destructor Documentation

klee::NotExpr::NotExpr ( const ref< Expr > &  e)
inlineprivate

Definition at line 936 of file Expr.h.

Referenced by alloc().

Here is the caller graph for this function:

Member Function Documentation

static ref<Expr> klee::NotExpr::alloc ( const ref< Expr > &  e)
inlinestatic

Definition at line 903 of file Expr.h.

References klee::Expr::computeHash(), and NotExpr().

Referenced by create().

Here is the call graph for this function:

Here is the caller graph for this function:

static bool klee::NotExpr::classof ( const Expr E)
inlinestatic

Definition at line 930 of file Expr.h.

References klee::Expr::getKind(), and klee::Expr::Not.

Here is the call graph for this function:

static bool klee::NotExpr::classof ( const NotExpr )
inlinestatic

Definition at line 933 of file Expr.h.

int klee::NotExpr::compareContents ( const Expr b) const
inlinevirtual

Reimplemented from klee::Expr.

Definition at line 917 of file Expr.h.

References expr.

unsigned NotExpr::computeHash ( )
virtual

(Re)computes the hash of the current expression. Returns the hash value.

Reimplemented from klee::Expr.

Definition at line 208 of file Expr.cpp.

References klee::Expr::MAGIC_HASH_CONSTANT, and klee::Expr::Not.

ref< Expr > NotExpr::create ( const ref< Expr > &  e)
static

Definition at line 640 of file Expr.cpp.

References alloc(), and klee::Expr::Not.

Referenced by rebuild().

Here is the call graph for this function:

Here is the caller graph for this function:

ref<Expr> klee::NotExpr::getKid ( unsigned  i) const
inlinevirtual

Implements klee::Expr.

Definition at line 915 of file Expr.h.

References expr.

Kind klee::NotExpr::getKind ( ) const
inlinevirtual

Implements klee::Expr.

Definition at line 912 of file Expr.h.

References klee::Expr::Not.

unsigned klee::NotExpr::getNumKids ( ) const
inlinevirtual

Implements klee::Expr.

Definition at line 914 of file Expr.h.

References numKids.

Width klee::NotExpr::getWidth ( ) const
inlinevirtual

Implements klee::Expr.

Definition at line 911 of file Expr.h.

References expr, and klee::Expr::getWidth().

Here is the call graph for this function:

virtual ref<Expr> klee::NotExpr::rebuild ( ref< Expr kids[]) const
inlinevirtual

Implements klee::Expr.

Definition at line 923 of file Expr.h.

References create().

Here is the call graph for this function:

Member Data Documentation

ref<Expr> klee::NotExpr::expr

Definition at line 900 of file Expr.h.

Referenced by compareContents(), klee::STPBuilder::constructActual(), getKid(), and getWidth().

const Kind klee::NotExpr::kind = Not
static

Definition at line 897 of file Expr.h.

const unsigned klee::NotExpr::numKids = 1
static

Definition at line 898 of file Expr.h.

Referenced by getNumKids().


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