3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-06 19:21:22 +00:00

add lemma.is_empty()

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2025-06-25 06:20:02 -07:00 committed by Lev Nachmanson
parent 5bda42e104
commit 4e33b44d27
2 changed files with 8 additions and 4 deletions

View file

@ -1067,10 +1067,12 @@ lemma_builder::~lemma_builder() {
TRACE(nla_solver, tout << name << " " << (++i) << "\n" << *this; );
}
lemma& lemma_builder::current() const {
lemma& lemma_builder::current() {
return c.m_lemmas.back();
}
const lemma& lemma_builder::current() const {
return c.m_lemmas.back();
}
lemma_builder& lemma_builder::operator&=(lp::explanation const& e) {
expl().add_expl(e);
return *this;