3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

inline unfolding if it is linear or constant.

This commit is contained in:
Nikolaj Bjorner 2024-03-16 13:02:26 -07:00
parent 3555b25317
commit fb824bee54

View file

@ -264,6 +264,11 @@ namespace polysat {
SASSERT_EQ(m_lhs.power_of_2(), m_rhs.power_of_2());
if (ul.is_linear_or_value())
m_lhs = ul;
if (ur.is_linear_or_value())
m_rhs = ur;
vars().append(m_lhs.free_vars());
for (auto v : m_rhs.free_vars())
if (!vars().contains(v))