14 #ifndef LLVM_SUPPORT_SMTAPI_H 15 #define LLVM_SUPPORT_SMTAPI_H 45 assert(Size &&
"Size is zero!");
54 assert(Size &&
"Size is zero!");
147 return getFloat16Sort();
149 return getFloat32Sort();
151 return getFloat64Sort();
153 return getFloat128Sort();
163 virtual SMTSortRef getBitvectorSort(
const unsigned BitWidth) = 0;
181 virtual void addConstraint(
const SMTExprRef &Exp)
const = 0;
396 virtual SMTExprRef getFloatRoundingMode() = 0;
400 bool isUnsigned) = 0;
403 virtual bool getBoolean(
const SMTExprRef &Exp) = 0;
406 virtual SMTExprRef mkBoolean(
const bool b) = 0;
418 virtual bool getInterpretation(
const SMTExprRef &Exp,
425 virtual void push() = 0;
428 virtual void pop(
unsigned NumStates = 1) = 0;
431 virtual void reset() = 0;
434 virtual bool isFPSupported() = 0;
virtual bool isBitvectorSortImpl() const =0
Query the SMT solver and checks if a sort is bitvector.
virtual unsigned getFloatSortSize() const
Returns the floating-point size, fails if the sort is not a floating-point Calls getFloatSortSizeImpl...
This class represents lattice values for constants.
#define LLVM_DUMP_METHOD
Mark debug helper function definitions like dump() that should not be stripped from debug builds...
virtual void print(raw_ostream &OS) const =0
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
LLVM_DUMP_METHOD void dump() const
Generic base class for SMT exprs.
Generic base class for SMT Solvers.
FoldingSetNodeID - This class is used to gather all the unique data bits of a node.
friend bool operator==(SMTExpr const &LHS, SMTExpr const &RHS)
virtual bool isBooleanSort() const
Returns true if the sort is a boolean, calls isBooleanSortImpl().
This file declares a class to represent arbitrary precision floating point values and provide a varie...
bool operator<(const SMTSort &Other) const
virtual bool equal_to(SMTExpr const &other) const =0
Query the SMT solver and returns true if two sorts are equal (same kind and bit width).
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
virtual unsigned getBitvectorSortSizeImpl() const =0
Query the SMT solver and returns the sort bit width.
BlockVerifier::State From
virtual bool equal_to(SMTSort const &other) const =0
Query the SMT solver and returns true if two sorts are equal (same kind and bit width).
virtual bool isBitvectorSort() const
Returns true if the sort is a bitvector, calls isBitvectorSortImpl().
virtual bool isFloatSort() const
Returns true if the sort is a floating-point, calls isFloatSortImpl().
virtual ~SMTSort()=default
virtual unsigned getBitvectorSortSize() const
Returns the bitvector size, fails if the sort is not a bitvector Calls getBitvectorSortSizeImpl().
Generic base class for SMT sorts.
virtual bool isBooleanSortImpl() const =0
Query the SMT solver and checks if a sort is boolean.
virtual bool isFloatSortImpl() const =0
Query the SMT solver and checks if a sort is floating-point.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
virtual unsigned getFloatSortSizeImpl() const =0
Query the SMT solver and returns the sort bit width.
virtual void Profile(llvm::FoldingSetNodeID &ID) const =0
SMTSolverRef CreateZ3Solver()
Convenience method to create and Z3Solver object.
SMTSortRef getFloatSort(unsigned BitWidth)
This class implements an extremely fast bulk output stream that can only output to a stream...
virtual void Profile(llvm::FoldingSetNodeID &ID) const =0
friend bool operator==(SMTSort const &LHS, SMTSort const &RHS)
std::shared_ptr< SMTSolver > SMTSolverRef
Shared pointer for SMTSolvers.
bool operator<(const SMTExpr &Other) const