mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	fix issue #203: domain range was one too large
Signed-off-by: unknown <nbjorner@nikolaj-z.redmond.corp.microsoft.com>
This commit is contained in:
		
							parent
							
								
									4ce80f1aed
								
							
						
					
					
						commit
						ee5f1ad6b6
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -235,13 +235,14 @@ namespace smt {
 | 
			
		|||
        }
 | 
			
		||||
 | 
			
		||||
        app* mk_bv_constant(uint64 val, sort* s) {
 | 
			
		||||
            return b().mk_numeral(rational(val,rational::ui64()),64);
 | 
			
		||||
            return b().mk_numeral(rational(val, rational::ui64()), 64);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        app* max_value(sort* s) {
 | 
			
		||||
            uint64 sz;
 | 
			
		||||
            VERIFY(u().try_get_size(s, sz));
 | 
			
		||||
            return mk_bv_constant(sz, s);
 | 
			
		||||
            SASSERT(sz > 0);
 | 
			
		||||
            return mk_bv_constant(sz-1, s);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        void mk_lt(app* x, app* y) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue