mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	fix #3717, non-linear requires reflection
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									9092cdc3a5
								
							
						
					
					
						commit
						fd2eab85f1
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -1124,8 +1124,6 @@ bool theory_arith<Ext>::propagate_linear_monomials() {
 | 
				
			||||||
template<typename Ext>
 | 
					template<typename Ext>
 | 
				
			||||||
bool theory_arith<Ext>::is_problematic_non_linear_row(row const & r) {
 | 
					bool theory_arith<Ext>::is_problematic_non_linear_row(row const & r) {
 | 
				
			||||||
    m_tmp_var_set.reset();
 | 
					    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 it  = r.begin_entries();
 | 
				
			||||||
    typename vector<row_entry>::const_iterator end = r.end_entries();
 | 
					    typename vector<row_entry>::const_iterator end = r.end_entries();
 | 
				
			||||||
    for (; it != end; ++it) {
 | 
					    for (; it != end; ++it) {
 | 
				
			||||||
| 
						 | 
					@ -2403,6 +2401,9 @@ final_check_status theory_arith<Ext>::process_non_linear() {
 | 
				
			||||||
    if (m_nl_monomials.empty())
 | 
					    if (m_nl_monomials.empty())
 | 
				
			||||||
        return FC_DONE;
 | 
					        return FC_DONE;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (!reflection_enabled())
 | 
				
			||||||
 | 
					        return FC_GIVEUP;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (check_monomial_assignments()) {
 | 
					    if (check_monomial_assignments()) {
 | 
				
			||||||
        return FC_DONE;
 | 
					        return FC_DONE;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue