about summary refs log tree commit diff homepage
path: root/lib/Solver/Z3Solver.h
diff options
context:
space:
mode:
authorHoang M. Le <hle@informatik.uni-bremen.de>2017-06-01 12:09:02 +0200
committerDan Liew <delcypher@gmail.com>2017-06-02 12:52:55 +0100
commite3b88631ef58ad406ac069bd3a4ba16fb4aa07cc (patch)
tree008eaafce4f1c077d5d96d2ca2a5a81c57eb44d4 /lib/Solver/Z3Solver.h
parent3ae967137fc715ff4ae5109895771fd1ca0724e4 (diff)
downloadklee-e3b88631ef58ad406ac069bd3a4ba16fb4aa07cc.tar.gz
hide backend solver declarations from public include
Diffstat (limited to 'lib/Solver/Z3Solver.h')
-rw-r--r--lib/Solver/Z3Solver.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/Solver/Z3Solver.h b/lib/Solver/Z3Solver.h
new file mode 100644
index 00000000..8dc97e06
--- /dev/null
+++ b/lib/Solver/Z3Solver.h
@@ -0,0 +1,34 @@
+//===-- Z3Solver.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_Z3SOLVER_H
+#define KLEE_Z3SOLVER_H
+
+#include "klee/Solver.h"
+
+namespace klee {
+/// Z3Solver - A solver complete solver based on Z3
+class Z3Solver : public Solver {
+public:
+  /// Z3Solver - Construct a new Z3Solver.
+  Z3Solver();
+
+  /// Get the query in SMT-LIBv2 format.
+  /// \return A C-style string. The caller is responsible for freeing this.
+  virtual char *getConstraintLog(const Query &);
+
+  /// setCoreSolverTimeout - Set constraint solver timeout delay to the given
+  /// value; 0
+  /// is off.
+  virtual void setCoreSolverTimeout(double timeout);
+};
+}
+
+#endif /* KLEE_Z3SOLVER_H */