mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Java API: removed Z3_get_param_value as in other APIs.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
		
							parent
							
								
									ae6121525a
								
							
						
					
					
						commit
						d91a114b80
					
				
					 1 changed files with 1 additions and 15 deletions
				
			
		| 
						 | 
				
			
			@ -2904,27 +2904,13 @@ public class Context extends IDisposable
 | 
			
		|||
     * configuration parameters can be obtained using the Z3 executable:
 | 
			
		||||
     * <code>z3.exe -ini?</code> Only a few configuration parameters are mutable
 | 
			
		||||
     * once the context is created. An exception is thrown when trying to modify
 | 
			
		||||
     * an immutable parameter. </remarks> <seealso cref="GetParamValue"/>
 | 
			
		||||
     * an immutable parameter. </remarks> 
 | 
			
		||||
     **/
 | 
			
		||||
    public void updateParamValue(String id, String value) throws Z3Exception
 | 
			
		||||
    {
 | 
			
		||||
        Native.updateParamValue(nCtx(), id, value);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Get a configuration parameter. <remarks> Returns null if the parameter
 | 
			
		||||
     * value does not exist. </remarks> <seealso cref="UpdateParamValue"/>
 | 
			
		||||
     **/
 | 
			
		||||
    public String getParamValue(String id) throws Z3Exception
 | 
			
		||||
    {
 | 
			
		||||
        Native.StringPtr res = new Native.StringPtr();
 | 
			
		||||
        boolean r = Native.getParamValue(nCtx(), id, res);
 | 
			
		||||
        if (!r)
 | 
			
		||||
            return null;
 | 
			
		||||
        else
 | 
			
		||||
            return res.value;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    long m_ctx = 0;
 | 
			
		||||
 | 
			
		||||
    long nCtx()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue