mirror of
https://github.com/Z3Prover/z3
synced 2026-02-19 15:04:42 +00:00
Add smt.finite_set.lattice_refutation parameter to control lattice refutation code path (#8247)
* Initial plan * Add finite_set.lattice_refutation parameter to smt_params_helper.pyg Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Add finite_set.lattice_refutation parameter implementation Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
40efe27066
commit
2f8342a1b3
5 changed files with 8 additions and 3 deletions
|
|
@ -260,7 +260,8 @@ namespace smt {
|
|||
ctx.push_trail(push_back_vector(m_eqs));
|
||||
m_find.merge(v1, v2); // triggers merge_eh, which triggers incremental generation of theory axioms
|
||||
}
|
||||
m_lattice_refutation.add_equality(v1, v2);
|
||||
if (ctx.get_fparams().m_finite_set_lattice_refutation)
|
||||
m_lattice_refutation.add_equality(v1, v2);
|
||||
|
||||
// Check if Z3 has a boolean variable for it
|
||||
TRACE(finite_set, tout << "new_eq_eh_r1: " << n1->get_root() << "r2: "<< n2->get_root() <<"\n";);
|
||||
|
|
@ -287,7 +288,8 @@ namespace smt {
|
|||
ctx.push_trail(push_back_vector(m_diseqs));
|
||||
m_axioms.extensionality_axiom(e1, e2);
|
||||
}
|
||||
m_lattice_refutation.add_disequality(v1,v2);
|
||||
if (ctx.get_fparams().m_finite_set_lattice_refutation)
|
||||
m_lattice_refutation.add_disequality(v1,v2);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ Module Name:
|
|||
#include "smt/smt_theory.h"
|
||||
#include "smt/theory_finite_set.h"
|
||||
#include "smt/smt_context.h"
|
||||
#include "iostream"
|
||||
#include <iostream>
|
||||
|
||||
const int NUM_WORDS = 5;
|
||||
// some example have shown, the introduction of large conflict clauses can severely slow down refutation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue