mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Added missing notes on fpToIEEEBV in Python.
This commit is contained in:
		
							parent
							
								
									e1303e1eab
								
							
						
					
					
						commit
						f1a1267d4c
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -8480,7 +8480,13 @@ def fpToReal(x):
 | 
			
		|||
    return ArithRef(Z3_mk_fpa_to_real(x.ctx_ref(), x.ast), x.ctx)
 | 
			
		||||
 | 
			
		||||
def fpToIEEEBV(x):
 | 
			
		||||
    """Create a Z3 floating-point conversion expression, from floating-point expression to IEEE bit-vector.
 | 
			
		||||
    """\brief Conversion of a floating-point term into a bit-vector term in IEEE 754-2008 format.
 | 
			
		||||
    
 | 
			
		||||
    The size of the resulting bit-vector is automatically determined. 
 | 
			
		||||
    
 | 
			
		||||
    Note that IEEE 754-2008 allows multiple different representations of NaN. This conversion 
 | 
			
		||||
    knows only one NaN and it will always produce the same bit-vector represenatation of 
 | 
			
		||||
    that NaN.
 | 
			
		||||
 | 
			
		||||
    >>> x = FP('x', FPSort(8, 24))
 | 
			
		||||
    >>> y = fpToIEEEBV(x)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue