3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-23 11:37:54 +00:00

bugfix to ac-plugin

use list for "shared" should be indices into an array of shared expressions, not the monomial index.
This commit is contained in:
Nikolaj Bjorner 2025-07-12 17:51:19 -07:00
parent fd5455422e
commit 47a2376172
3 changed files with 31 additions and 23 deletions

View file

@ -24,8 +24,8 @@ namespace euf {
arith_plugin::arith_plugin(egraph& g) :
plugin(g),
a(g.get_manager()),
m_add(g, get_id(), OP_ADD),
m_mul(g, get_id(), OP_MUL) {
m_add(g, "add", get_id(), OP_ADD),
m_mul(g, "mul", get_id(), OP_MUL) {
std::function<void(void)> uadd = [&]() { m_undo.push_back(undo_t::undo_add); };
m_add.set_undo(uadd);
std::function<void(void)> umul = [&]() { m_undo.push_back(undo_t::undo_mul); };
@ -66,9 +66,7 @@ namespace euf {
}
std::ostream& arith_plugin::display(std::ostream& out) const {
out << "add\n";
m_add.display(out);
out << "mul\n";
m_mul.display(out);
return out;
}