mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-03 21:09:11 +00:00 
			
		
		
		
	Added new params.Add functions to the .NET and Java APIs.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
		
							parent
							
								
									e8b04790cf
								
							
						
					
					
						commit
						0e4e72b1bc
					
				
					 2 changed files with 42 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -28,6 +28,17 @@ public class Params extends Z3Object
 | 
			
		|||
        Native.paramsSetDouble(getContext().nCtx(), getNativeObject(),
 | 
			
		||||
                name.getNativeObject(), value);
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds a parameter setting.
 | 
			
		||||
     **/
 | 
			
		||||
    public void add(Symbol name, String value) throws Z3Exception
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
        Native.paramsSetSymbol(getContext().nCtx(), getNativeObject(),
 | 
			
		||||
                name.getNativeObject(), 
 | 
			
		||||
                getContext().mkSymbol(value).getNativeObject());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds a parameter setting.
 | 
			
		||||
| 
						 | 
				
			
			@ -75,6 +86,17 @@ public class Params extends Z3Object
 | 
			
		|||
                .mkSymbol(name).getNativeObject(), value.getNativeObject());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds a parameter setting.
 | 
			
		||||
     **/
 | 
			
		||||
    public void add(String name, String value) throws Z3Exception
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
        Native.paramsSetSymbol(getContext().nCtx(), getNativeObject(),
 | 
			
		||||
                getContext().mkSymbol(name).getNativeObject(),
 | 
			
		||||
                getContext().mkSymbol(value).getNativeObject());
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    /**
 | 
			
		||||
     * A string representation of the parameter set.
 | 
			
		||||
     **/
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue