CVC3
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
CVC3::ExprSkolem Class Reference

#include <expr_value.h>

Inherits CVC3::ExprValue.

Collaboration diagram for CVC3::ExprSkolem:
Collaboration graph

Public Member Functions

 ExprSkolem (ExprManager *em, int index, const Expr &exist, ExprIndex idx=0)
 
virtual ~ExprSkolem ()
 
void * operator new (size_t size, MemoryManager *mm)
 
void operator delete (void *pMem, MemoryManager *mm)
 
void operator delete (void *)
 
- Public Member Functions inherited from CVC3::ExprValue
 ExprValue (ExprManager *em, int kind, ExprIndex idx=0)
 Constructor.
 
virtual ~ExprValue ()
 Destructor.
 
int getKind () const
 Get the kind of the expression.
 
void * operator new (size_t size, MemoryManager *mm)
 Overload operator new.
 
void operator delete (void *pMem, MemoryManager *mm)
 
void operator delete (void *)
 Overload operator delete.
 
virtual const ExprValuegetExprValue () const
 Test whether the expression is a generic subclass.
 
virtual bool isString () const
 String expression tester.
 
virtual bool isRational () const
 Rational number expression tester.
 
virtual bool isApply () const
 Application of another expression.
 
virtual bool isSymbol () const
 Special named symbol.
 
virtual bool isClosure () const
 A LAMBDA-expression or a quantifier.
 
virtual bool isTheorem () const
 Special Expr holding a theorem.
 
virtual const std::vector< Expr > & getKids () const
 Get kids: by default, returns a ref to an empty vector.
 
virtual unsigned arity () const
 Default arity = 0.
 
virtual CDO< Theorem > * getSig () const
 Special attributes for uninterpreted functions.
 
virtual CDO< Theorem > * getRep () const
 
virtual void setSig (CDO< Theorem > *sig)
 
virtual void setRep (CDO< Theorem > *rep)
 
virtual const std::string & getUid () const
 
virtual const std::string & getString () const
 
virtual const RationalgetRational () const
 
virtual const std::string & getName () const
 Returns the string name of UCONST and BOUND_VAR expr's.
 
virtual const ExprgetVar () const
 Returns the original Boolean variable (for BoolVarExprValue)
 
virtual Op getOp () const
 Get the Op from an Apply Expr.
 
virtual const std::vector< Expr > & getVars () const
 
virtual const ExprgetBody () const
 
virtual void setTriggers (const std::vector< std::vector< Expr > > &triggers)
 
virtual const std::vector
< std::vector< Expr > > & 
getTriggers () const
 
virtual const std::vector
< std::string > & 
getFields () const
 
virtual const std::string & getField () const
 
virtual int getTupleIndex () const
 
virtual const TheoremgetTheorem () const
 

Protected Member Functions

size_t computeHash () const
 Non-caching hash function which actually computes the hash.
 
bool operator== (const ExprValue &ev2) const
 Equality between any two ExprValue objects (including subclasses)
 
ExprValuecopy (ExprManager *em, ExprIndex idx=0) const
 Make a clean copy of itself using the given memory manager.
 
bool isVar () const
 Uninterpreted constants.
 
- Protected Member Functions inherited from CVC3::ExprValue
MemoryManagergetMM (size_t MMIndex)
 Return the memory manager (for the benefit of subclasses)
 
ExprValuerebuild (ExprManager *em) const
 Make a clean copy of itself using the given ExprManager.
 
Expr rebuild (Expr e, ExprManager *em) const
 Make a clean copy of the expr using the given ExprManager.
 
virtual Unsigned computeSize () const
 Non-caching size function which actually computes the size.
 

Private Member Functions

const ExprgetExistential () const
 
int getBoundIndex () const
 
size_t getMMIndex () const
 Get unique memory manager ID.
 

Private Attributes

Expr d_quant
 The quantified expression to skolemize.
 
int d_idx
 Variable index in the quantified expression.
 

Friends

class Expr
 
class ExprManager
 

Additional Inherited Members

- Static Protected Member Functions inherited from CVC3::ExprValue
static size_t pointerHash (void *p)
 
static size_t hash (const int kind, const std::vector< Expr > &kids)
 
static size_t hash (const int n)
 
static Unsigned sizeWithChildren (const std::vector< Expr > &kids)
 
- Protected Attributes inherited from CVC3::ExprValue
int d_kind
 The kind of the expression. In particular, it determines which subclass of ExprValue is used to store the expression.
 
ExprManagerd_em
 Our expr. manager.
 
- Static Protected Attributes inherited from CVC3::ExprValue
static std::hash< char * > s_charHash
 Return child with greatest height.
 
static std::hash< long int > s_intHash
 

Detailed Description

Definition at line 700 of file expr_value.h.

Constructor & Destructor Documentation

CVC3::ExprSkolem::ExprSkolem ( ExprManager em,
int  index,
const Expr exist,
ExprIndex  idx = 0 
)
inline

Definition at line 727 of file expr_value.h.

virtual CVC3::ExprSkolem::~ExprSkolem ( )
inlinevirtual

Definition at line 730 of file expr_value.h.

Member Function Documentation

const Expr& CVC3::ExprSkolem::getExistential ( ) const
inlineprivatevirtual

Reimplemented from CVC3::ExprValue.

Definition at line 706 of file expr_value.h.

References d_quant.

Referenced by computeHash().

int CVC3::ExprSkolem::getBoundIndex ( ) const
inlineprivatevirtual

Reimplemented from CVC3::ExprValue.

Definition at line 707 of file expr_value.h.

References d_idx.

Referenced by computeHash().

size_t CVC3::ExprSkolem::getMMIndex ( ) const
inlineprivatevirtual

Get unique memory manager ID.

Reimplemented from CVC3::ExprValue.

Definition at line 710 of file expr_value.h.

References CVC3::EXPR_SKOLEM.

size_t CVC3::ExprSkolem::computeHash ( ) const
inlineprotectedvirtual

Non-caching hash function which actually computes the hash.

This is the method that all subclasses should implement

Reimplemented from CVC3::ExprValue.

Definition at line 713 of file expr_value.h.

References CVC3::Expr::getBody(), getBoundIndex(), getExistential(), CVC3::Expr::hash(), and PRIME.

bool CVC3::ExprSkolem::operator== ( const ExprValue ev2) const
protectedvirtual

Equality between any two ExprValue objects (including subclasses)

Reimplemented from CVC3::ExprValue.

Definition at line 156 of file expr_value.cpp.

References CVC3::ExprValue::getBoundIndex(), CVC3::ExprValue::getExistential(), and CVC3::ExprValue::getMMIndex().

ExprValue * CVC3::ExprSkolem::copy ( ExprManager em,
ExprIndex  idx = 0 
) const
protectedvirtual

Make a clean copy of itself using the given memory manager.

Reimplemented from CVC3::ExprValue.

Definition at line 164 of file expr_value.cpp.

References CVC3::ExprManager::getMM().

bool CVC3::ExprSkolem::isVar ( ) const
inlineprotectedvirtual

Uninterpreted constants.

Reimplemented from CVC3::ExprValue.

Definition at line 723 of file expr_value.h.

void* CVC3::ExprSkolem::operator new ( size_t  size,
MemoryManager mm 
)
inline

Definition at line 732 of file expr_value.h.

void CVC3::ExprSkolem::operator delete ( void *  pMem,
MemoryManager mm 
)
inline

Definition at line 735 of file expr_value.h.

void CVC3::ExprSkolem::operator delete ( void *  )
inline

Definition at line 738 of file expr_value.h.

Friends And Related Function Documentation

friend class Expr
friend

Definition at line 701 of file expr_value.h.

friend class ExprManager
friend

Definition at line 702 of file expr_value.h.

Member Data Documentation

Expr CVC3::ExprSkolem::d_quant
private

The quantified expression to skolemize.

Definition at line 704 of file expr_value.h.

Referenced by getExistential().

int CVC3::ExprSkolem::d_idx
private

Variable index in the quantified expression.

Definition at line 705 of file expr_value.h.

Referenced by getBoundIndex().


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