mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-03 21:09:11 +00:00 
			
		
		
		
	
							parent
							
								
									c85113acdb
								
							
						
					
					
						commit
						51eaf84eed
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -3060,7 +3060,8 @@ def IntVector(prefix, sz, ctx=None):
 | 
			
		|||
    >>> Sum(X)
 | 
			
		||||
    x__0 + x__1 + x__2
 | 
			
		||||
    """
 | 
			
		||||
    return [ Int('%s__%s' % (prefix, i)) for i in range(sz) ]
 | 
			
		||||
    ctx = _get_ctx(ctx)
 | 
			
		||||
    return [ Int('%s__%s' % (prefix, i), ctx) for i in range(sz) ]
 | 
			
		||||
 | 
			
		||||
def FreshInt(prefix='x', ctx=None):
 | 
			
		||||
    """Return a fresh integer constant in the given context using the given prefix.
 | 
			
		||||
| 
						 | 
				
			
			@ -3112,7 +3113,8 @@ def RealVector(prefix, sz, ctx=None):
 | 
			
		|||
    >>> Sum(X).sort()
 | 
			
		||||
    Real
 | 
			
		||||
    """
 | 
			
		||||
    return [ Real('%s__%s' % (prefix, i)) for i in range(sz) ]
 | 
			
		||||
    ctx = _get_ctx(ctx)
 | 
			
		||||
    return [ Real('%s__%s' % (prefix, i), ctx) for i in range(sz) ]
 | 
			
		||||
 | 
			
		||||
def FreshReal(prefix='b', ctx=None):
 | 
			
		||||
    """Return a fresh real constant in the given context using the given prefix.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue