mirror of
https://github.com/Z3Prover/z3
synced 2025-08-12 06:00:53 +00:00
expose incremental cubing over API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
e507a6ccd1
commit
a625301a41
10 changed files with 63 additions and 68 deletions
|
@ -345,6 +345,14 @@ public:
|
|||
return result;
|
||||
}
|
||||
virtual expr_ref cube() {
|
||||
if (!m_internalized) {
|
||||
dep2asm_t dep2asm;
|
||||
m_model = 0;
|
||||
lbool r = internalize_formulas();
|
||||
if (r != l_true) return expr_ref(m.mk_true(), m);
|
||||
m_internalized = true;
|
||||
}
|
||||
convert_internalized();
|
||||
sat::literal_vector lits;
|
||||
lbool result = m_solver.cube(lits);
|
||||
if (result == l_false || lits.empty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue