mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	n
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									6520f43f9d
								
							
						
					
					
						commit
						04876ba8b7
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -205,8 +205,7 @@ namespace polysat {
 | 
			
		|||
        if (in_bounds(x))
 | 
			
		||||
            return l_true;
 | 
			
		||||
        auto val = value(x);
 | 
			
		||||
        numeral delta = value2delta(x, value(x));
 | 
			
		||||
        numeral new_value = value(x) + delta; 
 | 
			
		||||
        numeral new_value = (lo(x) - val < val - hi(x)) ? lo(x) : hi(x) - 1;
 | 
			
		||||
        numeral b;
 | 
			
		||||
        var_t y = select_pivot_core(x, new_value, b);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -302,6 +301,7 @@ namespace polysat {
 | 
			
		|||
    template<typename Ext>
 | 
			
		||||
    typename fixplex<Ext>::numeral 
 | 
			
		||||
    fixplex<Ext>::value2delta(var_t v, numeral const& value) const {
 | 
			
		||||
        SASSERT(!in_bounds(v));
 | 
			
		||||
        if (lo(v) - value < value - hi(v))
 | 
			
		||||
            return lo(v) - value;
 | 
			
		||||
        else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue