mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 03:32:28 +00:00 
			
		
		
		
	fix arith errors add_row for nex grobner
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
		
							parent
							
								
									c5187902ad
								
							
						
					
					
						commit
						361964f173
					
				
					 2 changed files with 9 additions and 5 deletions
				
			
		|  | @ -726,6 +726,10 @@ std::ostream& grobner_core::display_dependency(std::ostream& out, u_dependency* | |||
| 
 | ||||
| #ifdef Z3DEBUG | ||||
| bool grobner_core::test_find_b(const nex* ab, const nex_mul* b) { | ||||
|     if (ab->is_var()) { | ||||
|         return b->size() == 0 || (b->get_degree() == 1 && b->get_child_exp(0)->to_var().var() == | ||||
|                                   ab->to_var().var()); | ||||
|     } | ||||
|     nex_mul& ab_clone = m_nex_creator.clone(ab)->to_mul(); | ||||
|     nex_mul * a= divide_ignore_coeffs_perform(&ab_clone, *b); | ||||
|     ab_clone.m_coeff = rational(1); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue