mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	add shortcut to retrieve kind of application
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									78d1139ba0
								
							
						
					
					
						commit
						8b657f27aa
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1400,7 +1400,7 @@ def is_app_of(a, k):
 | 
			
		|||
    >>> is_app_of(n, Z3_OP_MUL)
 | 
			
		||||
    False
 | 
			
		||||
    """
 | 
			
		||||
    return is_app(a) and a.decl().kind() == k
 | 
			
		||||
    return is_app(a) and a.kind() == k
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def If(a, b, c, ctx=None):
 | 
			
		||||
| 
						 | 
				
			
			@ -9454,7 +9454,7 @@ _ROUNDING_MODES = frozenset({
 | 
			
		|||
def set_default_rounding_mode(rm, ctx=None):
 | 
			
		||||
    global _dflt_rounding_mode
 | 
			
		||||
    if is_fprm_value(rm):
 | 
			
		||||
        _dflt_rounding_mode = rm.decl().kind()
 | 
			
		||||
        _dflt_rounding_mode = rm.kind()
 | 
			
		||||
    else:
 | 
			
		||||
        _z3_assert(_dflt_rounding_mode in _ROUNDING_MODES, "illegal rounding mode")
 | 
			
		||||
        _dflt_rounding_mode = rm
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue