mirror of
https://github.com/Z3Prover/z3
synced 2025-08-11 21:50:52 +00:00
fix #6623
This commit is contained in:
parent
e6ea81546e
commit
4a142b0f81
3 changed files with 15 additions and 4 deletions
|
@ -276,11 +276,16 @@ struct goal2sat::imp : public sat::sat_internalizer {
|
|||
m_cache_trail.push_back(t);
|
||||
}
|
||||
|
||||
sat::literal get_cached(app* t) const override {
|
||||
sat::literal lit = sat::null_literal;
|
||||
m_app2lit.find(t, lit);
|
||||
return lit;
|
||||
}
|
||||
|
||||
bool is_cached(app* t, sat::literal l) const override {
|
||||
if (!m_app2lit.contains(t))
|
||||
return false;
|
||||
SASSERT(m_app2lit[t] == l);
|
||||
return true;
|
||||
sat::literal lit = get_cached(t);
|
||||
SASSERT(lit == sat::null_literal || l == lit);
|
||||
return l == lit;
|
||||
}
|
||||
|
||||
void convert_atom(expr * t, bool root, bool sign) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue