3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-08 00:05:46 +00:00

minor fixes

- ensure mk_extract performs simplification to distribute over extract and removing extract if the range is the entire bit-vector
- ensure bool_rewriter simplifeis disjunctions when applicable.
This commit is contained in:
Nikolaj Bjorner 2022-11-02 08:44:55 -07:00
parent 9fc4015c46
commit 1646a41b2f
9 changed files with 24 additions and 18 deletions

View file

@ -33,8 +33,7 @@ public:
justified_expr(justified_expr const& other):
m(other.m),
m_fml(other.m_fml),
m_proof(other.m_proof)
{
m_proof(other.m_proof) {
m.inc_ref(m_fml);
m.inc_ref(m_proof);
}
@ -42,8 +41,7 @@ public:
justified_expr(justified_expr && other) noexcept :
m(other.m),
m_fml(nullptr),
m_proof(nullptr)
{
m_proof(nullptr) {
std::swap(m_fml, other.m_fml);
std::swap(m_proof, other.m_proof);
}
@ -51,10 +49,11 @@ public:
~justified_expr() {
m.dec_ref(m_fml);
m.dec_ref(m_proof);
m_fml = nullptr;
m_proof = nullptr;
m_fml = nullptr;
m_proof = nullptr;
}
expr* get_fml() const { return m_fml; }
proof* get_proof() const { return m_proof; }
};