mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 03:15:50 +00:00
Turned Z3Exception into a RuntimeException such that throws declarations are not needed anymore. Thanks to codeplex user steimann for this suggestion.
This commit is contained in:
parent
2f4c923216
commit
b7bb53406f
62 changed files with 834 additions and 834 deletions
|
@ -26,7 +26,7 @@ public class Params extends Z3Object
|
|||
/**
|
||||
* Adds a parameter setting.
|
||||
**/
|
||||
public void add(Symbol name, boolean value) throws Z3Exception
|
||||
public void add(Symbol name, boolean value)
|
||||
{
|
||||
Native.paramsSetBool(getContext().nCtx(), getNativeObject(),
|
||||
name.getNativeObject(), (value) ? true : false);
|
||||
|
@ -35,7 +35,7 @@ public class Params extends Z3Object
|
|||
/**
|
||||
* Adds a parameter setting.
|
||||
**/
|
||||
public void add(Symbol name, double value) throws Z3Exception
|
||||
public void add(Symbol name, double value)
|
||||
{
|
||||
Native.paramsSetDouble(getContext().nCtx(), getNativeObject(),
|
||||
name.getNativeObject(), value);
|
||||
|
@ -44,7 +44,7 @@ public class Params extends Z3Object
|
|||
/**
|
||||
* Adds a parameter setting.
|
||||
**/
|
||||
public void add(Symbol name, String value) throws Z3Exception
|
||||
public void add(Symbol name, String value)
|
||||
{
|
||||
|
||||
Native.paramsSetSymbol(getContext().nCtx(), getNativeObject(),
|
||||
|
@ -55,7 +55,7 @@ public class Params extends Z3Object
|
|||
/**
|
||||
* Adds a parameter setting.
|
||||
**/
|
||||
public void add(Symbol name, Symbol value) throws Z3Exception
|
||||
public void add(Symbol name, Symbol value)
|
||||
{
|
||||
|
||||
Native.paramsSetSymbol(getContext().nCtx(), getNativeObject(),
|
||||
|
@ -65,7 +65,7 @@ public class Params extends Z3Object
|
|||
/**
|
||||
* Adds a parameter setting.
|
||||
**/
|
||||
public void add(String name, boolean value) throws Z3Exception
|
||||
public void add(String name, boolean value)
|
||||
{
|
||||
Native.paramsSetBool(getContext().nCtx(), getNativeObject(),
|
||||
getContext().mkSymbol(name).getNativeObject(), value);
|
||||
|
@ -74,7 +74,7 @@ public class Params extends Z3Object
|
|||
/**
|
||||
* Adds a parameter setting.
|
||||
**/
|
||||
public void add(String name, int value) throws Z3Exception
|
||||
public void add(String name, int value)
|
||||
{
|
||||
Native.paramsSetUint(getContext().nCtx(), getNativeObject(), getContext()
|
||||
.mkSymbol(name).getNativeObject(), value);
|
||||
|
@ -83,7 +83,7 @@ public class Params extends Z3Object
|
|||
/**
|
||||
* Adds a parameter setting.
|
||||
**/
|
||||
public void add(String name, double value) throws Z3Exception
|
||||
public void add(String name, double value)
|
||||
{
|
||||
Native.paramsSetDouble(getContext().nCtx(), getNativeObject(), getContext()
|
||||
.mkSymbol(name).getNativeObject(), value);
|
||||
|
@ -92,7 +92,7 @@ public class Params extends Z3Object
|
|||
/**
|
||||
* Adds a parameter setting.
|
||||
**/
|
||||
public void add(String name, Symbol value) throws Z3Exception
|
||||
public void add(String name, Symbol value)
|
||||
{
|
||||
Native.paramsSetSymbol(getContext().nCtx(), getNativeObject(), getContext()
|
||||
.mkSymbol(name).getNativeObject(), value.getNativeObject());
|
||||
|
@ -101,7 +101,7 @@ public class Params extends Z3Object
|
|||
/**
|
||||
* Adds a parameter setting.
|
||||
**/
|
||||
public void add(String name, String value) throws Z3Exception
|
||||
public void add(String name, String value)
|
||||
{
|
||||
|
||||
Native.paramsSetSymbol(getContext().nCtx(), getNativeObject(),
|
||||
|
@ -123,18 +123,18 @@ public class Params extends Z3Object
|
|||
}
|
||||
}
|
||||
|
||||
Params(Context ctx) throws Z3Exception
|
||||
Params(Context ctx)
|
||||
{
|
||||
super(ctx, Native.mkParams(ctx.nCtx()));
|
||||
}
|
||||
|
||||
void incRef(long o) throws Z3Exception
|
||||
void incRef(long o)
|
||||
{
|
||||
getContext().getParamsDRQ().incAndClear(getContext(), o);
|
||||
super.incRef(o);
|
||||
}
|
||||
|
||||
void decRef(long o) throws Z3Exception
|
||||
void decRef(long o)
|
||||
{
|
||||
getContext().getParamsDRQ().add(o);
|
||||
super.decRef(o);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue