3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-02 05:15:52 +00:00

build_lemma returns clause_builder; adjust reason in revert_bool_decision

This commit is contained in:
Jakob Rath 2021-09-07 15:02:29 +02:00
parent 733c21bb20
commit 24f96acf4f
8 changed files with 83 additions and 75 deletions

View file

@ -13,6 +13,7 @@ Author:
--*/
#pragma once
#include "math/polysat/constraint.h"
#include "math/polysat/clause_builder.h"
namespace polysat {
@ -89,7 +90,9 @@ namespace polysat {
bool resolve_value(pvar v, vector<signed_constraint> const& cjust_v);
/** Convert the core into a lemma to be learned. */
clause_ref build_lemma(unsigned model_level);
clause_builder build_lemma(unsigned reverted_level);
clause_builder build_core_lemma(unsigned model_level);
clause_builder build_fallback_lemma(unsigned lvl);
bool try_eliminate(pvar v);
bool try_saturate(pvar v);