mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +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
|
@ -2904,27 +2904,13 @@ public class Context extends IDisposable
|
||||||
* configuration parameters can be obtained using the Z3 executable:
|
* configuration parameters can be obtained using the Z3 executable:
|
||||||
* <code>z3.exe -ini?</code> Only a few configuration parameters are mutable
|
* <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
|
* 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
|
public void updateParamValue(String id, String value) throws Z3Exception
|
||||||
{
|
{
|
||||||
Native.updateParamValue(nCtx(), id, value);
|
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 m_ctx = 0;
|
||||||
|
|
||||||
long nCtx()
|
long nCtx()
|
||||||
|
|
Loading…
Reference in a new issue