mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 19:52:29 +00:00 
			
		
		
		
	port Grobner
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
		
							parent
							
								
									4651eb7042
								
							
						
					
					
						commit
						71c3a09f4a
					
				
					 4 changed files with 44 additions and 11 deletions
				
			
		|  | @ -449,9 +449,6 @@ nla_grobner::equation * nla_grobner::simplify_source_target(equation * source, e | |||
| } | ||||
|   | ||||
| void nla_grobner::process_simplified_target(ptr_buffer<equation>& to_insert, equation* new_target, equation*& target, ptr_buffer<equation>& to_remove) { | ||||
|     if(m_intervals->check_cross_nested_expr(target->exp(), target->dep())) { | ||||
|         register_report(); | ||||
|     } | ||||
|     if (new_target != target) { | ||||
|         m_equations_to_unfreeze.push_back(target); | ||||
|         to_remove.push_back(target); | ||||
|  | @ -470,6 +467,15 @@ void nla_grobner::process_simplified_target(ptr_buffer<equation>& to_insert, equ | |||
|             to_remove.push_back(target); | ||||
|         } | ||||
|     } | ||||
|     if(m_intervals->check_cross_nested_expr(target->exp(), target->dep())) { | ||||
|         TRACE("grobner", tout << "created a lemma for "; display_equation(tout, *target) << "\n"; | ||||
|               tout << "vars = \n"; | ||||
|               for (lpvar j : get_vars_of_expr(target->exp())) { | ||||
|                   c().print_var(j, tout); | ||||
|               } | ||||
|               tout << "\ntarget->exp() val = " << get_nex_val(target->exp(), [this](unsigned j) { return c().val(j); }) << "\n";); | ||||
|         register_report();        | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| bool nla_grobner::simplify_to_superpose_with_eq(equation* eq) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue