mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-03 21:09:11 +00:00 
			
		
		
		
	is_linear does not check for is_big
This commit is contained in:
		
							parent
							
								
									b621c9fa1c
								
							
						
					
					
						commit
						c240f62ca8
					
				
					 1 changed files with 2 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -121,7 +121,6 @@ private:
 | 
			
		|||
    bool is_linear(const svector<lpvar>& m, lpvar& zero_var, lpvar& non_fixed) {
 | 
			
		||||
        zero_var = non_fixed = null_lpvar;
 | 
			
		||||
        unsigned n_of_non_fixed = 0;
 | 
			
		||||
        bool big_bound = false;
 | 
			
		||||
        for (lpvar v : m) {
 | 
			
		||||
            if (!this->column_is_fixed(v)) {
 | 
			
		||||
                n_of_non_fixed++;
 | 
			
		||||
| 
						 | 
				
			
			@ -133,11 +132,9 @@ private:
 | 
			
		|||
                zero_var = v;
 | 
			
		||||
                return true;
 | 
			
		||||
            } 
 | 
			
		||||
            if (b.is_big()) {
 | 
			
		||||
                big_bound |= true;
 | 
			
		||||
            }
 | 
			
		||||
            
 | 
			
		||||
        }
 | 
			
		||||
        return n_of_non_fixed <= 1 && !big_bound;
 | 
			
		||||
        return n_of_non_fixed <= 1;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue