3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 05:18:44 +00:00

fix #3717, non-linear requires reflection

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-04-03 10:55:48 -07:00
parent 9092cdc3a5
commit fd2eab85f1

View file

@ -1124,8 +1124,6 @@ bool theory_arith<Ext>::propagate_linear_monomials() {
template<typename Ext>
bool theory_arith<Ext>::is_problematic_non_linear_row(row const & r) {
m_tmp_var_set.reset();
if (!reflection_enabled())
return false;
typename vector<row_entry>::const_iterator it = r.begin_entries();
typename vector<row_entry>::const_iterator end = r.end_entries();
for (; it != end; ++it) {
@ -2403,6 +2401,9 @@ final_check_status theory_arith<Ext>::process_non_linear() {
if (m_nl_monomials.empty())
return FC_DONE;
if (!reflection_enabled())
return FC_GIVEUP;
if (check_monomial_assignments()) {
return FC_DONE;
}