mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-03 21:09:11 +00:00 
			
		
		
		
	fixes to tighten-range
This commit is contained in:
		
							parent
							
								
									2ce202db75
								
							
						
					
					
						commit
						d7c0e17f96
					
				
					 2 changed files with 55 additions and 57 deletions
				
			
		| 
						 | 
				
			
			@ -274,6 +274,17 @@ namespace bv {
 | 
			
		|||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        void add1(bvect& out) const {
 | 
			
		||||
            for (unsigned i = 0; i < bw; ++i) {
 | 
			
		||||
                if (!out.get(i)) {
 | 
			
		||||
                    out.set(i, true);
 | 
			
		||||
                    return;
 | 
			
		||||
                }
 | 
			
		||||
                else
 | 
			
		||||
                    out.set(i, false);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        void set_sub(bvect& out, bvect const& a, bvect const& b) const;
 | 
			
		||||
        bool set_add(bvect& out, bvect const& a, bvect const& b) const;
 | 
			
		||||
        bool set_mul(bvect& out, bvect const& a, bvect const& b, bool check_overflow = true) const;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue