mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
fix build of unit test
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
c7f67f9a72
commit
5767dfac49
5 changed files with 11 additions and 9 deletions
|
@ -634,6 +634,10 @@ namespace bv {
|
|||
bool sls_eval::repair_down(app* e, unsigned i) {
|
||||
if (e->get_family_id() == bv.get_family_id() && try_repair_bv(e, i)) {
|
||||
ctx.new_value_eh(e->get_arg(i));
|
||||
if (eval_is_correct(e))
|
||||
commit_eval(e);
|
||||
else
|
||||
ctx.new_value_eh(e); // re-queue repair
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -133,6 +133,8 @@ namespace bv {
|
|||
|
||||
bool can_eval1(app* e) const;
|
||||
|
||||
void commit_eval(app* e);
|
||||
|
||||
public:
|
||||
sls_eval(sls_terms& terms, sls::context& ctx);
|
||||
|
||||
|
@ -154,8 +156,6 @@ namespace bv {
|
|||
|
||||
sls_valuation& eval(app* e) const;
|
||||
|
||||
void commit_eval(app* e);
|
||||
|
||||
void set_random(app* e);
|
||||
|
||||
bool eval_is_correct(app* e);
|
||||
|
|
|
@ -267,7 +267,7 @@ namespace sls {
|
|||
if (try_repair(e, j))
|
||||
return;
|
||||
}
|
||||
set_value(e, bval1(e));
|
||||
repair_up(e);
|
||||
}
|
||||
|
||||
bool basic_plugin::try_repair_distinct(app* e, unsigned i) {
|
||||
|
|
|
@ -100,10 +100,8 @@ namespace sls {
|
|||
|
||||
void bv_plugin::repair_down(app* e) {
|
||||
unsigned n = e->get_num_args();
|
||||
if (n == 0 || m_eval.eval_is_correct(e)) {
|
||||
m_eval.commit_eval(e);
|
||||
return;
|
||||
}
|
||||
if (n == 0 || m_eval.eval_is_correct(e))
|
||||
return;
|
||||
|
||||
if (n == 2) {
|
||||
auto d1 = get_depth(e->get_arg(0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue