3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00
attach original variable to pb expression.
This commit is contained in:
Nikolaj Bjorner 2023-08-01 08:41:26 -07:00
parent adad468cd7
commit 5b2519d7a3
2 changed files with 5 additions and 4 deletions

View file

@ -30,7 +30,7 @@ namespace pb {
if (m_pb.is_pb(e)) {
sat::literal lit = internalize_pb(e, sign, root);
if (m_ctx && !root && lit != sat::null_literal)
m_ctx->attach_lit(lit, e);
m_ctx->attach_lit(literal(lit.var(), false), e);
return lit;
}
UNREACHABLE();