about summary refs log tree commit diff homepage
path: root/lib/Solver/STPSolver.h
blob: 494a30db456cc59b291ecc73b41f60866bb19482 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//===-- STPSolver.h
//---------------------------------------------------===//
//
//                     The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#ifndef KLEE_STPSOLVER_H
#define KLEE_STPSOLVER_H

#include "klee/Solver/Solver.h"

namespace klee {
/// STPSolver - A complete solver based on STP.
class STPSolver : public Solver {
public:
  /// STPSolver - Construct a new STPSolver.
  ///
  /// \param useForkedSTP - Whether STP should be run in a separate process
  /// (required for using timeouts).
  /// \param optimizeDivides - Whether constant division operations should
  /// be optimized into add/shift/multiply operations.
  STPSolver(bool useForkedSTP, bool optimizeDivides = true);

  /// getConstraintLog - Return the constraint log for the given state in CVC
  /// format.
  virtual char *getConstraintLog(const Query &);

  /// setCoreSolverTimeout - Set constraint solver timeout delay to the given
  /// value; 0
  /// is off.
  virtual void setCoreSolverTimeout(time::Span timeout);
};
}

#endif /* KLEE_STPSOLVER_H */