mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	
							parent
							
								
									a582014854
								
							
						
					
					
						commit
						2c472aaa10
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -50,7 +50,7 @@ import sys
 | 
			
		|||
import io
 | 
			
		||||
import math
 | 
			
		||||
import copy
 | 
			
		||||
import collections
 | 
			
		||||
from typing import Iterable
 | 
			
		||||
 | 
			
		||||
Z3_DEBUG = __debug__
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -7500,7 +7500,7 @@ class Optimize(Z3PPObject):
 | 
			
		|||
        def asoft(a):
 | 
			
		||||
            v = Z3_optimize_assert_soft(self.ctx.ref(), self.optimize, a.as_ast(), weight, id)
 | 
			
		||||
            return OptimizeObjective(self, v, False)
 | 
			
		||||
        if isinstance(arg, collections.Iterable):
 | 
			
		||||
        if isinstance(arg, Iterable):
 | 
			
		||||
            return [asoft(a) for a in arg]
 | 
			
		||||
        return asoft(arg)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue