klee
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IndependentSolver Class Reference
Inheritance diagram for IndependentSolver:
Collaboration diagram for IndependentSolver:

Public Member Functions

 IndependentSolver (Solver *_solver)
 
 ~IndependentSolver ()
 
bool computeTruth (const Query &, bool &isValid)
 
bool computeValidity (const Query &, Solver::Validity &result)
 
bool computeValue (const Query &, ref< Expr > &result)
 
bool computeInitialValues (const Query &query, const std::vector< const Array * > &objects, std::vector< std::vector< unsigned char > > &values, bool &hasSolution)
 
SolverRunStatus getOperationStatusCode ()
 getOperationStatusCode - get the status of the last solver operation More...
 
char * getConstraintLog (const Query &)
 
void setCoreSolverTimeout (double timeout)
 
- Public Member Functions inherited from klee::SolverImpl
 SolverImpl ()
 
virtual ~SolverImpl ()
 

Private Attributes

Solversolver
 

Additional Inherited Members

- Public Types inherited from klee::SolverImpl
enum  SolverRunStatus {
  SOLVER_RUN_STATUS_SUCCESS_SOLVABLE, SOLVER_RUN_STATUS_SUCCESS_UNSOLVABLE, SOLVER_RUN_STATUS_FAILURE, SOLVER_RUN_STATUS_TIMEOUT,
  SOLVER_RUN_STATUS_FORK_FAILED, SOLVER_RUN_STATUS_INTERRUPTED, SOLVER_RUN_STATUS_UNEXPECTED_EXIT_CODE, SOLVER_RUN_STATUS_WAITPID_FAILED
}
 
- Static Public Member Functions inherited from klee::SolverImpl
static const char * getOperationStatusString (SolverRunStatus statusCode)
 

Detailed Description

Definition at line 273 of file IndependentSolver.cpp.

Constructor & Destructor Documentation

IndependentSolver::IndependentSolver ( Solver _solver)
inline

Definition at line 278 of file IndependentSolver.cpp.

IndependentSolver::~IndependentSolver ( )
inline

Definition at line 280 of file IndependentSolver.cpp.

Member Function Documentation

bool IndependentSolver::computeInitialValues ( const Query query,
const std::vector< const Array * > &  objects,
std::vector< std::vector< unsigned char > > &  values,
bool &  hasSolution 
)
inlinevirtual
See also
Solver::getInitialValues()

Implements klee::SolverImpl.

Definition at line 285 of file IndependentSolver.cpp.

bool IndependentSolver::computeTruth ( const Query query,
bool &  isValid 
)
virtual

computeTruth - Determine whether the given query expression is provably true given the constraints.

The query expression is guaranteed to be non-constant and have bool type.

This method should evaluate the logical formula:

\[ \forall X constraints(X) \to query(X) \]

Where $X$ is some assignment, $constraints(X)$ are the constraints in the query and $query(X)$ is the query expression.

Parameters
[out]isValid- On success, true iff the logical formula is true.
Returns
True on success

Implements klee::SolverImpl.

Definition at line 307 of file IndependentSolver.cpp.

References klee::Query::expr, and getIndependentConstraints().

Here is the call graph for this function:

bool IndependentSolver::computeValidity ( const Query query,
Solver::Validity result 
)
virtual

computeValidity - Compute a full validity result for the query.

The query expression is guaranteed to be non-constant and have bool type.

SolverImpl provides a default implementation which uses computeTruth. Clients should override this if a more efficient implementation is available.

Parameters
[out]result- if

\[ \forall X constraints(X) \to query(X) \]

then Solver::True, else if

\[ \forall X constraints(X) \to \lnot query(X) \]

then Solver::False, else Solver::Unknown
Returns
True on success

Reimplemented from klee::SolverImpl.

Definition at line 297 of file IndependentSolver.cpp.

References klee::Query::expr, and getIndependentConstraints().

Here is the call graph for this function:

bool IndependentSolver::computeValue ( const Query query,
ref< Expr > &  result 
)
virtual

computeValue - Compute a feasible value for the expression.

The query expression is guaranteed to be non-constant.

Returns
True on success

Implements klee::SolverImpl.

Definition at line 316 of file IndependentSolver.cpp.

References klee::Query::expr, and getIndependentConstraints().

Here is the call graph for this function:

char * IndependentSolver::getConstraintLog ( const Query query)
virtual

Reimplemented from klee::SolverImpl.

Definition at line 328 of file IndependentSolver.cpp.

SolverImpl::SolverRunStatus IndependentSolver::getOperationStatusCode ( )
virtual

getOperationStatusCode - get the status of the last solver operation

Implements klee::SolverImpl.

Definition at line 324 of file IndependentSolver.cpp.

void IndependentSolver::setCoreSolverTimeout ( double  timeout)
virtual

Reimplemented from klee::SolverImpl.

Definition at line 332 of file IndependentSolver.cpp.

Member Data Documentation

Solver* IndependentSolver::solver
private

Definition at line 275 of file IndependentSolver.cpp.


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