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