mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	Gracefully failing in assign-bounds to farkas
This commit is contained in:
		
							parent
							
								
									e906930922
								
							
						
					
					
						commit
						f330b96a35
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -307,7 +307,10 @@ namespace spacer {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        rational rat1, rat2, coeff0;
 | 
					        rational rat1, rat2, coeff0;
 | 
				
			||||||
        arith_util a(m);
 | 
					        arith_util a(m);
 | 
				
			||||||
        if (a.is_numeral(val1, rat1) && a.is_numeral(val2, rat2)) {
 | 
					        CTRACE("spacer.fkab", !(val1 && val2),
 | 
				
			||||||
 | 
					               tout << "Failed to match variables\n";);
 | 
				
			||||||
 | 
					        if (val1 && val2 &&
 | 
				
			||||||
 | 
					            a.is_numeral(val1, rat1) && a.is_numeral(val2, rat2)) {
 | 
				
			||||||
            coeff0 = abs(rat2/rat1);
 | 
					            coeff0 = abs(rat2/rat1);
 | 
				
			||||||
            coeff0 = coeff0 / lcb.lc();
 | 
					            coeff0 = coeff0 / lcb.lc();
 | 
				
			||||||
            TRACE("spacer.fkab", tout << "coeff0: " << coeff0 << "\n";);
 | 
					            TRACE("spacer.fkab", tout << "coeff0: " << coeff0 << "\n";);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue