mirror of
https://github.com/Z3Prover/z3
synced 2026-03-09 23:00:30 +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
|
|
@ -29,24 +29,24 @@ public class IntSymbol extends Symbol
|
|||
* Remarks: Throws an exception if the symbol
|
||||
* is not of int kind.
|
||||
**/
|
||||
public int getInt() throws Z3Exception
|
||||
public int getInt()
|
||||
{
|
||||
if (!isIntSymbol())
|
||||
throw new Z3Exception("Int requested from non-Int symbol");
|
||||
return Native.getSymbolInt(getContext().nCtx(), getNativeObject());
|
||||
}
|
||||
|
||||
IntSymbol(Context ctx, long obj) throws Z3Exception
|
||||
IntSymbol(Context ctx, long obj)
|
||||
{
|
||||
super(ctx, obj);
|
||||
}
|
||||
|
||||
IntSymbol(Context ctx, int i) throws Z3Exception
|
||||
IntSymbol(Context ctx, int i)
|
||||
{
|
||||
super(ctx, Native.mkIntSymbol(ctx.nCtx(), i));
|
||||
}
|
||||
|
||||
void checkNativeObject(long obj) throws Z3Exception
|
||||
void checkNativeObject(long obj)
|
||||
{
|
||||
if (Native.getSymbolKind(getContext().nCtx(), obj) != Z3_symbol_kind.Z3_INT_SYMBOL
|
||||
.toInt())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue