mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	
						commit
						1756dd1c13
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1451,6 +1451,11 @@ namespace smt {
 | 
			
		|||
            normalize_gain(min_gain.get_rational(), max_gain);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (is_int(x_i) && !max_gain.is_rational()) {
 | 
			
		||||
            max_gain = inf_numeral(floor(max_gain));
 | 
			
		||||
            normalize_gain(min_gain.get_rational(), max_gain);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (!max_inc.is_minus_one()) {
 | 
			
		||||
            if (is_int(x_i)) {
 | 
			
		||||
                TRACE("opt",
 | 
			
		||||
| 
						 | 
				
			
			@ -1597,6 +1602,7 @@ namespace smt {
 | 
			
		|||
 | 
			
		||||
            TRACE("opt", tout << "after traversing row:\nx_i: v" << x_i << ", x_j: v" << x_j << ", gain: " << max_gain << "\n";
 | 
			
		||||
                  tout << "best efforts: " << best_efforts << " has shared: " << has_shared << "\n";);
 | 
			
		||||
 | 
			
		||||
            
 | 
			
		||||
            if (!has_bound && x_i == null_theory_var && x_j == null_theory_var) {
 | 
			
		||||
                has_shared = false;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue