mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable
This commit is contained in:
commit
42c7277ea8
4 changed files with 11 additions and 4 deletions
|
@ -959,11 +959,13 @@ namespace sat {
|
|||
assign(lit, justification());
|
||||
break;
|
||||
case l_false: {
|
||||
m_assumptions.push_back(lit);
|
||||
SASSERT(!inconsistent());
|
||||
set_conflict(justification(), ~lit);
|
||||
flet<bool> _min1(m_config.m_minimize_core, false);
|
||||
flet<bool> _min2(m_config.m_minimize_core_partial, false);
|
||||
resolve_conflict_for_unsat_core();
|
||||
m_assumptions.pop_back();
|
||||
weight += weights[i];
|
||||
blocker.push_back(lit);
|
||||
TRACE("sat", tout << "core: " << m_core << "\nassumptions: " << m_assumptions << "\n";);
|
||||
|
|
|
@ -106,7 +106,11 @@ public:
|
|||
dep2asm_t dep2asm;
|
||||
VERIFY(l_true == internalize_formulas());
|
||||
VERIFY(l_true == internalize_assumptions(sz, assumptions, dep2asm));
|
||||
m_solver.display_wcnf(out, sz, m_asms.c_ptr(), weights);
|
||||
svector<unsigned> nweights;
|
||||
for (unsigned i = 0; i < m_asms.size(); ++i) {
|
||||
nweights.push_back((unsigned) m_weights[i]);
|
||||
}
|
||||
m_solver.display_wcnf(out, m_asms.size(), m_asms.c_ptr(), nweights.c_ptr());
|
||||
}
|
||||
|
||||
lbool check_sat(unsigned sz, expr * const * assumptions, double const* weights, double max_weight) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue