mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +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
|
@ -424,10 +424,18 @@ tactic * or_else(tactic * t1, tactic * t2, tactic * t3, tactic * t4, tactic * t5
|
|||
return or_else(10, ts);
|
||||
}
|
||||
|
||||
class no_par_tactical : public tactic {
|
||||
public:
|
||||
char const* name() const override { return "par"; }
|
||||
void operator()(goal_ref const & in, goal_ref_buffer& result) override {
|
||||
throw default_exception("par_tactical is unavailable in single threaded mode");
|
||||
}
|
||||
};
|
||||
|
||||
#ifdef SINGLE_THREAD
|
||||
|
||||
tactic * par(unsigned num, tactic * const * ts) {
|
||||
throw default_exception("par_tactical is unavailable in single threaded mode");
|
||||
return alloc(no_par_tactical);
|
||||
}
|
||||
|
||||
#else
|
||||
|
@ -576,11 +584,21 @@ tactic * par(tactic * t1, tactic * t2, tactic * t3, tactic * t4) {
|
|||
return par(4, ts);
|
||||
}
|
||||
|
||||
class no_par_and_then_tactical : public tactic {
|
||||
public:
|
||||
char const* name() const override { return "par_then"; }
|
||||
void operator()(goal_ref const & in, goal_ref_buffer& result) override {
|
||||
throw default_exception("par_and_then is not available in single threaded mode");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#ifdef SINGLE_THREAD
|
||||
|
||||
tactic * par_and_then(tactic * t1, tactic * t2) {
|
||||
throw default_exception("par_and_then is not available in single threaded mode");
|
||||
return alloc(no_par_and_then_tactical);
|
||||
}
|
||||
|
||||
#else
|
||||
class par_and_then_tactical : public and_then_tactical {
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue