mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	Support BitVectors in the TypeScript Optimize API (#7480)
This is just a change in type declarations to allow calling minimize/maximize with BitVectors.
This commit is contained in:
		
							parent
							
								
									19c95f8561
								
							
						
					
					
						commit
						f99e1ee581
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1524,11 +1524,11 @@ export function createApi(Z3: Z3Core): Z3HighLevel {
 | 
			
		|||
        return new AstVectorImpl(check(Z3.optimize_get_assertions(contextPtr, this.ptr)));
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      maximize(expr: Arith<Name>) {
 | 
			
		||||
      maximize(expr: Arith<Name> | BitVec<number, Name>) {
 | 
			
		||||
        check(Z3.optimize_maximize(contextPtr, this.ptr, expr.ast));
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      minimize(expr: Arith<Name>) {
 | 
			
		||||
      minimize(expr: Arith<Name> | BitVec<number, Name>) {
 | 
			
		||||
        check(Z3.optimize_minimize(contextPtr, this.ptr, expr.ast));
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue