3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 19:35:50 +00:00

call nlsat

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2020-05-08 15:34:43 -07:00
parent 151397a067
commit e32a6714a5
13 changed files with 86 additions and 68 deletions

View file

@ -28,10 +28,23 @@ bool solver::is_monic_var(lpvar v) const {
bool solver::need_check() { return true; }
lbool solver::check(vector<lemma>& l) {
return m_core->check(l);
lbool solver::run_nra(lp::explanation & expl) {
return m_nra.check(expl);
}
lbool solver::check(vector<lemma>& l, lp::explanation& expl) {
set_use_nra_model(false);
lbool ret = m_core->check(l);
if (ret == l_undef) {
ret = run_nra(expl);
if (ret == l_true) {
set_use_nra_model(true);
}
}
return ret;
}
void solver::push(){
m_core->push();
}