mirror of
https://github.com/Z3Prover/z3
synced 2026-03-02 19:56:54 +00:00
add solver pool abstraction for Spacer
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
c886b6d500
commit
e4b595d490
16 changed files with 435 additions and 42 deletions
|
|
@ -43,6 +43,7 @@ public:
|
|||
- results based on check_sat_result API
|
||||
*/
|
||||
class solver : public check_sat_result {
|
||||
params_ref m_params;
|
||||
public:
|
||||
virtual ~solver() {}
|
||||
|
||||
|
|
@ -54,7 +55,12 @@ public:
|
|||
/**
|
||||
\brief Update the solver internal settings.
|
||||
*/
|
||||
virtual void updt_params(params_ref const & p) { }
|
||||
virtual void updt_params(params_ref const & p) { m_params.copy(p); }
|
||||
|
||||
/**
|
||||
\brief Retrieve set of parameters set on solver.
|
||||
*/
|
||||
virtual params_ref const& get_params() { return m_params; }
|
||||
|
||||
/**
|
||||
\brief Store in \c r a description of the configuration
|
||||
|
|
@ -175,7 +181,7 @@ public:
|
|||
/**
|
||||
\brief Display the content of this solver.
|
||||
*/
|
||||
virtual std::ostream& display(std::ostream & out) const;
|
||||
virtual std::ostream& display(std::ostream & out, unsigned n = 0, expr* const* assumptions = nullptr) const;
|
||||
|
||||
class scoped_push {
|
||||
solver& s;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue