clang  8.0.0
Public Member Functions | List of all members
clang::ento::SMTSolver Class Referenceabstract

Generic base class for SMT Solvers. More...

#include "clang/StaticAnalyzer/Core/PathSensitive/SMTSolver.h"

Public Member Functions

 SMTSolver ()=default
 
virtual ~SMTSolver ()=default
 
LLVM_DUMP_METHOD void dump () const
 
SMTSortRef getFloatSort (unsigned BitWidth)
 
virtual SMTSortRef getBoolSort ()=0
 
virtual SMTSortRef getBitvectorSort (const unsigned BitWidth)=0
 
virtual SMTSortRef getFloat16Sort ()=0
 
virtual SMTSortRef getFloat32Sort ()=0
 
virtual SMTSortRef getFloat64Sort ()=0
 
virtual SMTSortRef getFloat128Sort ()=0
 
virtual SMTSortRef getSort (const SMTExprRef &AST)=0
 
virtual SMTExprRef newExprRef (const SMTExpr &E) const =0
 
virtual void addConstraint (const SMTExprRef &Exp) const =0
 Given a constraint, adds it to the solver. More...
 
virtual SMTExprRef mkBVAdd (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector addition operation. More...
 
virtual SMTExprRef mkBVSub (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector subtraction operation. More...
 
virtual SMTExprRef mkBVMul (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector multiplication operation. More...
 
virtual SMTExprRef mkBVSRem (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector signed modulus operation. More...
 
virtual SMTExprRef mkBVURem (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector unsigned modulus operation. More...
 
virtual SMTExprRef mkBVSDiv (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector signed division operation. More...
 
virtual SMTExprRef mkBVUDiv (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector unsigned division operation. More...
 
virtual SMTExprRef mkBVShl (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector logical shift left operation. More...
 
virtual SMTExprRef mkBVAshr (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector arithmetic shift right operation. More...
 
virtual SMTExprRef mkBVLshr (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector logical shift right operation. More...
 
virtual SMTExprRef mkBVNeg (const SMTExprRef &Exp)=0
 Creates a bitvector negation operation. More...
 
virtual SMTExprRef mkBVNot (const SMTExprRef &Exp)=0
 Creates a bitvector not operation. More...
 
virtual SMTExprRef mkBVXor (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector xor operation. More...
 
virtual SMTExprRef mkBVOr (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector or operation. More...
 
virtual SMTExprRef mkBVAnd (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector and operation. More...
 
virtual SMTExprRef mkBVUlt (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector unsigned less-than operation. More...
 
virtual SMTExprRef mkBVSlt (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector signed less-than operation. More...
 
virtual SMTExprRef mkBVUgt (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector unsigned greater-than operation. More...
 
virtual SMTExprRef mkBVSgt (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector signed greater-than operation. More...
 
virtual SMTExprRef mkBVUle (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector unsigned less-equal-than operation. More...
 
virtual SMTExprRef mkBVSle (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector signed less-equal-than operation. More...
 
virtual SMTExprRef mkBVUge (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector unsigned greater-equal-than operation. More...
 
virtual SMTExprRef mkBVSge (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector signed greater-equal-than operation. More...
 
virtual SMTExprRef mkNot (const SMTExprRef &Exp)=0
 Creates a boolean not operation. More...
 
virtual SMTExprRef mkEqual (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a boolean equality operation. More...
 
virtual SMTExprRef mkAnd (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a boolean and operation. More...
 
virtual SMTExprRef mkOr (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a boolean or operation. More...
 
virtual SMTExprRef mkIte (const SMTExprRef &Cond, const SMTExprRef &T, const SMTExprRef &F)=0
 Creates a boolean ite operation. More...
 
virtual SMTExprRef mkBVSignExt (unsigned i, const SMTExprRef &Exp)=0
 Creates a bitvector sign extension operation. More...
 
virtual SMTExprRef mkBVZeroExt (unsigned i, const SMTExprRef &Exp)=0
 Creates a bitvector zero extension operation. More...
 
virtual SMTExprRef mkBVExtract (unsigned High, unsigned Low, const SMTExprRef &Exp)=0
 Creates a bitvector extract operation. More...
 
virtual SMTExprRef mkBVConcat (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a bitvector concat operation. More...
 
virtual SMTExprRef mkFPNeg (const SMTExprRef &Exp)=0
 Creates a floating-point negation operation. More...
 
virtual SMTExprRef mkFPIsInfinite (const SMTExprRef &Exp)=0
 Creates a floating-point isInfinite operation. More...
 
virtual SMTExprRef mkFPIsNaN (const SMTExprRef &Exp)=0
 Creates a floating-point isNaN operation. More...
 
virtual SMTExprRef mkFPIsNormal (const SMTExprRef &Exp)=0
 Creates a floating-point isNormal operation. More...
 
virtual SMTExprRef mkFPIsZero (const SMTExprRef &Exp)=0
 Creates a floating-point isZero operation. More...
 
virtual SMTExprRef mkFPMul (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a floating-point multiplication operation. More...
 
virtual SMTExprRef mkFPDiv (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a floating-point division operation. More...
 
virtual SMTExprRef mkFPRem (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a floating-point remainder operation. More...
 
virtual SMTExprRef mkFPAdd (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a floating-point addition operation. More...
 
virtual SMTExprRef mkFPSub (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a floating-point subtraction operation. More...
 
virtual SMTExprRef mkFPLt (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a floating-point less-than operation. More...
 
virtual SMTExprRef mkFPGt (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a floating-point greater-than operation. More...
 
virtual SMTExprRef mkFPLe (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a floating-point less-than-or-equal operation. More...
 
virtual SMTExprRef mkFPGe (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a floating-point greater-than-or-equal operation. More...
 
virtual SMTExprRef mkFPEqual (const SMTExprRef &LHS, const SMTExprRef &RHS)=0
 Creates a floating-point equality operation. More...
 
virtual SMTExprRef mkFPtoFP (const SMTExprRef &From, const SMTSortRef &To)=0
 Creates a floating-point conversion from floatint-point to floating-point operation. More...
 
virtual SMTExprRef mkSBVtoFP (const SMTExprRef &From, const SMTSortRef &To)=0
 Creates a floating-point conversion from signed bitvector to floatint-point operation. More...
 
virtual SMTExprRef mkUBVtoFP (const SMTExprRef &From, const SMTSortRef &To)=0
 Creates a floating-point conversion from unsigned bitvector to floatint-point operation. More...
 
virtual SMTExprRef mkFPtoSBV (const SMTExprRef &From, unsigned ToWidth)=0
 Creates a floating-point conversion from floatint-point to signed bitvector operation. More...
 
virtual SMTExprRef mkFPtoUBV (const SMTExprRef &From, unsigned ToWidth)=0
 Creates a floating-point conversion from floatint-point to unsigned bitvector operation. More...
 
virtual SMTExprRef mkSymbol (const char *Name, SMTSortRef Sort)=0
 Creates a new symbol, given a name and a sort. More...
 
virtual SMTExprRef getFloatRoundingMode ()=0
 
virtual llvm::APSInt getBitvector (const SMTExprRef &Exp, unsigned BitWidth, bool isUnsigned)=0
 
virtual bool getBoolean (const SMTExprRef &Exp)=0
 
virtual SMTExprRef mkBoolean (const bool b)=0
 Constructs an SMTExprRef from a boolean. More...
 
virtual SMTExprRef mkFloat (const llvm::APFloat Float)=0
 Constructs an SMTExprRef from a finite APFloat. More...
 
virtual SMTExprRef mkBitvector (const llvm::APSInt Int, unsigned BitWidth)=0
 Constructs an SMTExprRef from an APSInt and its bit width. More...
 
virtual bool getInterpretation (const SMTExprRef &Exp, llvm::APSInt &Int)=0
 Given an expression, extract the value of this operand in the model. More...
 
virtual bool getInterpretation (const SMTExprRef &Exp, llvm::APFloat &Float)=0
 Given an expression extract the value of this operand in the model. More...
 
virtual Optional< boolcheck () const =0
 Check if the constraints are satisfiable. More...
 
virtual void push ()=0
 Push the current solver state. More...
 
virtual void pop (unsigned NumStates=1)=0
 Pop the previous solver state. More...
 
virtual void reset ()=0
 Reset the solver and remove all constraints. More...
 
virtual bool isFPSupported ()=0
 Checks if the solver supports floating-points. More...
 
virtual void print (raw_ostream &OS) const =0
 

Detailed Description

Generic base class for SMT Solvers.

This class is responsible for wrapping all sorts and expression generation, through the mk* methods. It also provides methods to create SMT expressions straight from clang's AST, through the from* methods.

Definition at line 30 of file SMTSolver.h.

Constructor & Destructor Documentation

◆ SMTSolver()

clang::ento::SMTSolver::SMTSolver ( )
default

◆ ~SMTSolver()

virtual clang::ento::SMTSolver::~SMTSolver ( )
virtualdefault

Member Function Documentation

◆ addConstraint()

virtual void clang::ento::SMTSolver::addConstraint ( const SMTExprRef Exp) const
pure virtual

Given a constraint, adds it to the solver.

Referenced by getFloatSort().

◆ check()

virtual Optional<bool> clang::ento::SMTSolver::check ( ) const
pure virtual

Check if the constraints are satisfiable.

◆ dump()

LLVM_DUMP_METHOD void clang::ento::SMTSolver::dump ( ) const
inline

Definition at line 35 of file SMTSolver.h.

References print().

◆ getBitvector()

virtual llvm::APSInt clang::ento::SMTSolver::getBitvector ( const SMTExprRef Exp,
unsigned  BitWidth,
bool  isUnsigned 
)
pure virtual

◆ getBitvectorSort()

virtual SMTSortRef clang::ento::SMTSolver::getBitvectorSort ( const unsigned  BitWidth)
pure virtual

Referenced by getFloatSort().

◆ getBoolean()

virtual bool clang::ento::SMTSolver::getBoolean ( const SMTExprRef Exp)
pure virtual

◆ getBoolSort()

virtual SMTSortRef clang::ento::SMTSolver::getBoolSort ( )
pure virtual

Referenced by getFloatSort().

◆ getFloat128Sort()

virtual SMTSortRef clang::ento::SMTSolver::getFloat128Sort ( )
pure virtual

Referenced by getFloatSort().

◆ getFloat16Sort()

virtual SMTSortRef clang::ento::SMTSolver::getFloat16Sort ( )
pure virtual

Referenced by getFloatSort().

◆ getFloat32Sort()

virtual SMTSortRef clang::ento::SMTSolver::getFloat32Sort ( )
pure virtual

Referenced by getFloatSort().

◆ getFloat64Sort()

virtual SMTSortRef clang::ento::SMTSolver::getFloat64Sort ( )
pure virtual

Referenced by getFloatSort().

◆ getFloatRoundingMode()

virtual SMTExprRef clang::ento::SMTSolver::getFloatRoundingMode ( )
pure virtual

◆ getFloatSort()

SMTSortRef clang::ento::SMTSolver::getFloatSort ( unsigned  BitWidth)
inline

◆ getInterpretation() [1/2]

virtual bool clang::ento::SMTSolver::getInterpretation ( const SMTExprRef Exp,
llvm::APSInt &  Int 
)
pure virtual

Given an expression, extract the value of this operand in the model.

◆ getInterpretation() [2/2]

virtual bool clang::ento::SMTSolver::getInterpretation ( const SMTExprRef Exp,
llvm::APFloat &  Float 
)
pure virtual

Given an expression extract the value of this operand in the model.

◆ getSort()

virtual SMTSortRef clang::ento::SMTSolver::getSort ( const SMTExprRef AST)
pure virtual

Referenced by getFloatSort().

◆ isFPSupported()

virtual bool clang::ento::SMTSolver::isFPSupported ( )
pure virtual

Checks if the solver supports floating-points.

◆ mkAnd()

virtual SMTExprRef clang::ento::SMTSolver::mkAnd ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a boolean and operation.

Referenced by getFloatSort().

◆ mkBitvector()

virtual SMTExprRef clang::ento::SMTSolver::mkBitvector ( const llvm::APSInt  Int,
unsigned  BitWidth 
)
pure virtual

Constructs an SMTExprRef from an APSInt and its bit width.

◆ mkBoolean()

virtual SMTExprRef clang::ento::SMTSolver::mkBoolean ( const bool  b)
pure virtual

Constructs an SMTExprRef from a boolean.

◆ mkBVAdd()

virtual SMTExprRef clang::ento::SMTSolver::mkBVAdd ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector addition operation.

Referenced by getFloatSort().

◆ mkBVAnd()

virtual SMTExprRef clang::ento::SMTSolver::mkBVAnd ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector and operation.

Referenced by getFloatSort().

◆ mkBVAshr()

virtual SMTExprRef clang::ento::SMTSolver::mkBVAshr ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector arithmetic shift right operation.

Referenced by getFloatSort().

◆ mkBVConcat()

virtual SMTExprRef clang::ento::SMTSolver::mkBVConcat ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector concat operation.

Referenced by getFloatSort().

◆ mkBVExtract()

virtual SMTExprRef clang::ento::SMTSolver::mkBVExtract ( unsigned  High,
unsigned  Low,
const SMTExprRef Exp 
)
pure virtual

Creates a bitvector extract operation.

Referenced by getFloatSort().

◆ mkBVLshr()

virtual SMTExprRef clang::ento::SMTSolver::mkBVLshr ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector logical shift right operation.

Referenced by getFloatSort().

◆ mkBVMul()

virtual SMTExprRef clang::ento::SMTSolver::mkBVMul ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector multiplication operation.

Referenced by getFloatSort().

◆ mkBVNeg()

virtual SMTExprRef clang::ento::SMTSolver::mkBVNeg ( const SMTExprRef Exp)
pure virtual

Creates a bitvector negation operation.

Referenced by getFloatSort().

◆ mkBVNot()

virtual SMTExprRef clang::ento::SMTSolver::mkBVNot ( const SMTExprRef Exp)
pure virtual

Creates a bitvector not operation.

Referenced by getFloatSort().

◆ mkBVOr()

virtual SMTExprRef clang::ento::SMTSolver::mkBVOr ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector or operation.

Referenced by getFloatSort().

◆ mkBVSDiv()

virtual SMTExprRef clang::ento::SMTSolver::mkBVSDiv ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector signed division operation.

Referenced by getFloatSort().

◆ mkBVSge()

virtual SMTExprRef clang::ento::SMTSolver::mkBVSge ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector signed greater-equal-than operation.

Referenced by getFloatSort().

◆ mkBVSgt()

virtual SMTExprRef clang::ento::SMTSolver::mkBVSgt ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector signed greater-than operation.

Referenced by getFloatSort().

◆ mkBVShl()

virtual SMTExprRef clang::ento::SMTSolver::mkBVShl ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector logical shift left operation.

Referenced by getFloatSort().

◆ mkBVSignExt()

virtual SMTExprRef clang::ento::SMTSolver::mkBVSignExt ( unsigned  i,
const SMTExprRef Exp 
)
pure virtual

Creates a bitvector sign extension operation.

Referenced by getFloatSort().

◆ mkBVSle()

virtual SMTExprRef clang::ento::SMTSolver::mkBVSle ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector signed less-equal-than operation.

Referenced by getFloatSort().

◆ mkBVSlt()

virtual SMTExprRef clang::ento::SMTSolver::mkBVSlt ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector signed less-than operation.

Referenced by getFloatSort().

◆ mkBVSRem()

virtual SMTExprRef clang::ento::SMTSolver::mkBVSRem ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector signed modulus operation.

Referenced by getFloatSort().

◆ mkBVSub()

virtual SMTExprRef clang::ento::SMTSolver::mkBVSub ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector subtraction operation.

Referenced by getFloatSort().

◆ mkBVUDiv()

virtual SMTExprRef clang::ento::SMTSolver::mkBVUDiv ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector unsigned division operation.

Referenced by getFloatSort().

◆ mkBVUge()

virtual SMTExprRef clang::ento::SMTSolver::mkBVUge ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector unsigned greater-equal-than operation.

Referenced by getFloatSort().

◆ mkBVUgt()

virtual SMTExprRef clang::ento::SMTSolver::mkBVUgt ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector unsigned greater-than operation.

Referenced by getFloatSort().

◆ mkBVUle()

virtual SMTExprRef clang::ento::SMTSolver::mkBVUle ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector unsigned less-equal-than operation.

Referenced by getFloatSort().

◆ mkBVUlt()

virtual SMTExprRef clang::ento::SMTSolver::mkBVUlt ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector unsigned less-than operation.

Referenced by getFloatSort().

◆ mkBVURem()

virtual SMTExprRef clang::ento::SMTSolver::mkBVURem ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector unsigned modulus operation.

Referenced by getFloatSort().

◆ mkBVXor()

virtual SMTExprRef clang::ento::SMTSolver::mkBVXor ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a bitvector xor operation.

Referenced by getFloatSort().

◆ mkBVZeroExt()

virtual SMTExprRef clang::ento::SMTSolver::mkBVZeroExt ( unsigned  i,
const SMTExprRef Exp 
)
pure virtual

Creates a bitvector zero extension operation.

Referenced by getFloatSort().

◆ mkEqual()

virtual SMTExprRef clang::ento::SMTSolver::mkEqual ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a boolean equality operation.

Referenced by getFloatSort().

◆ mkFloat()

virtual SMTExprRef clang::ento::SMTSolver::mkFloat ( const llvm::APFloat  Float)
pure virtual

Constructs an SMTExprRef from a finite APFloat.

◆ mkFPAdd()

virtual SMTExprRef clang::ento::SMTSolver::mkFPAdd ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a floating-point addition operation.

Referenced by getFloatSort().

◆ mkFPDiv()

virtual SMTExprRef clang::ento::SMTSolver::mkFPDiv ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a floating-point division operation.

Referenced by getFloatSort().

◆ mkFPEqual()

virtual SMTExprRef clang::ento::SMTSolver::mkFPEqual ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a floating-point equality operation.

Referenced by getFloatSort().

◆ mkFPGe()

virtual SMTExprRef clang::ento::SMTSolver::mkFPGe ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a floating-point greater-than-or-equal operation.

Referenced by getFloatSort().

◆ mkFPGt()

virtual SMTExprRef clang::ento::SMTSolver::mkFPGt ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a floating-point greater-than operation.

Referenced by getFloatSort().

◆ mkFPIsInfinite()

virtual SMTExprRef clang::ento::SMTSolver::mkFPIsInfinite ( const SMTExprRef Exp)
pure virtual

Creates a floating-point isInfinite operation.

Referenced by getFloatSort().

◆ mkFPIsNaN()

virtual SMTExprRef clang::ento::SMTSolver::mkFPIsNaN ( const SMTExprRef Exp)
pure virtual

Creates a floating-point isNaN operation.

Referenced by getFloatSort().

◆ mkFPIsNormal()

virtual SMTExprRef clang::ento::SMTSolver::mkFPIsNormal ( const SMTExprRef Exp)
pure virtual

Creates a floating-point isNormal operation.

Referenced by getFloatSort().

◆ mkFPIsZero()

virtual SMTExprRef clang::ento::SMTSolver::mkFPIsZero ( const SMTExprRef Exp)
pure virtual

Creates a floating-point isZero operation.

Referenced by getFloatSort().

◆ mkFPLe()

virtual SMTExprRef clang::ento::SMTSolver::mkFPLe ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a floating-point less-than-or-equal operation.

Referenced by getFloatSort().

◆ mkFPLt()

virtual SMTExprRef clang::ento::SMTSolver::mkFPLt ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a floating-point less-than operation.

Referenced by getFloatSort().

◆ mkFPMul()

virtual SMTExprRef clang::ento::SMTSolver::mkFPMul ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a floating-point multiplication operation.

Referenced by getFloatSort().

◆ mkFPNeg()

virtual SMTExprRef clang::ento::SMTSolver::mkFPNeg ( const SMTExprRef Exp)
pure virtual

Creates a floating-point negation operation.

Referenced by getFloatSort().

◆ mkFPRem()

virtual SMTExprRef clang::ento::SMTSolver::mkFPRem ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a floating-point remainder operation.

Referenced by getFloatSort().

◆ mkFPSub()

virtual SMTExprRef clang::ento::SMTSolver::mkFPSub ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a floating-point subtraction operation.

Referenced by getFloatSort().

◆ mkFPtoFP()

virtual SMTExprRef clang::ento::SMTSolver::mkFPtoFP ( const SMTExprRef From,
const SMTSortRef To 
)
pure virtual

Creates a floating-point conversion from floatint-point to floating-point operation.

Referenced by getFloatSort().

◆ mkFPtoSBV()

virtual SMTExprRef clang::ento::SMTSolver::mkFPtoSBV ( const SMTExprRef From,
unsigned  ToWidth 
)
pure virtual

Creates a floating-point conversion from floatint-point to signed bitvector operation.

Referenced by getFloatSort().

◆ mkFPtoUBV()

virtual SMTExprRef clang::ento::SMTSolver::mkFPtoUBV ( const SMTExprRef From,
unsigned  ToWidth 
)
pure virtual

Creates a floating-point conversion from floatint-point to unsigned bitvector operation.

Referenced by getFloatSort().

◆ mkIte()

virtual SMTExprRef clang::ento::SMTSolver::mkIte ( const SMTExprRef Cond,
const SMTExprRef T,
const SMTExprRef F 
)
pure virtual

Creates a boolean ite operation.

Referenced by getFloatSort().

◆ mkNot()

virtual SMTExprRef clang::ento::SMTSolver::mkNot ( const SMTExprRef Exp)
pure virtual

Creates a boolean not operation.

Referenced by getFloatSort().

◆ mkOr()

virtual SMTExprRef clang::ento::SMTSolver::mkOr ( const SMTExprRef LHS,
const SMTExprRef RHS 
)
pure virtual

Creates a boolean or operation.

Referenced by getFloatSort().

◆ mkSBVtoFP()

virtual SMTExprRef clang::ento::SMTSolver::mkSBVtoFP ( const SMTExprRef From,
const SMTSortRef To 
)
pure virtual

Creates a floating-point conversion from signed bitvector to floatint-point operation.

Referenced by getFloatSort().

◆ mkSymbol()

virtual SMTExprRef clang::ento::SMTSolver::mkSymbol ( const char *  Name,
SMTSortRef  Sort 
)
pure virtual

Creates a new symbol, given a name and a sort.

Referenced by getFloatSort().

◆ mkUBVtoFP()

virtual SMTExprRef clang::ento::SMTSolver::mkUBVtoFP ( const SMTExprRef From,
const SMTSortRef To 
)
pure virtual

Creates a floating-point conversion from unsigned bitvector to floatint-point operation.

Referenced by getFloatSort().

◆ newExprRef()

virtual SMTExprRef clang::ento::SMTSolver::newExprRef ( const SMTExpr E) const
pure virtual

Referenced by getFloatSort().

◆ pop()

virtual void clang::ento::SMTSolver::pop ( unsigned  NumStates = 1)
pure virtual

Pop the previous solver state.

◆ print()

virtual void clang::ento::SMTSolver::print ( raw_ostream &  OS) const
pure virtual

Referenced by dump().

◆ push()

virtual void clang::ento::SMTSolver::push ( )
pure virtual

Push the current solver state.

◆ reset()

virtual void clang::ento::SMTSolver::reset ( )
pure virtual

Reset the solver and remove all constraints.


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