mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 19:52:29 +00:00 
			
		
		
		
	
							parent
							
								
									fe8034731d
								
							
						
					
					
						commit
						8efaaaf249
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		|  | @ -1559,13 +1559,15 @@ class BoolRef(ExprRef): | |||
|     def __mul__(self, other): | ||||
|         """Create the Z3 expression `self * other`. | ||||
|         """ | ||||
|         if other == 1: | ||||
|         if isinstance(other, int) and other == 1: | ||||
|             return self | ||||
|         if other == 0: | ||||
|             return 0 | ||||
|         if isinstance(other, int) and other == 0: | ||||
|             return | ||||
|         if isinstance(other, BoolRef): | ||||
|             other = If(other, 1, 0) | ||||
|         return If(self, other, 0) | ||||
| 
 | ||||
| 
 | ||||
|      | ||||
| def is_bool(a): | ||||
|     """Return `True` if `a` is a Z3 Boolean expression. | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue