mirror of
https://github.com/Z3Prover/z3
synced 2025-06-18 11:58:31 +00:00
create dummy tactics for single threaded mode
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
3c94083a23
commit
4f9ef12f34
2 changed files with 33 additions and 3 deletions
|
@ -39,10 +39,22 @@ Notes:
|
|||
#include "solver/parallel_tactic.h"
|
||||
#include "solver/parallel_params.hpp"
|
||||
|
||||
|
||||
class non_parallel_tactic : public tactic {
|
||||
non_parallel_tactic(solver* s, params_ref const& p) {
|
||||
}
|
||||
|
||||
char const* name() const override { return "parallel_tactic"; }
|
||||
|
||||
void operator()(const goal_ref & g,goal_ref_buffer & result) override {
|
||||
throw default_exception("parallel tactic is disabled in single threaded mode");
|
||||
}
|
||||
};
|
||||
|
||||
#ifdef SINGLE_THREAD
|
||||
|
||||
tactic * mk_parallel_tactic(solver* s, params_ref const& p) {
|
||||
throw default_exception("parallel tactic is disabled in single threaded mode");
|
||||
return alloc(non_parallel_tactic, s, p);
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue