mirror of
https://github.com/Z3Prover/z3
synced 2025-06-28 00:48:45 +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
|
@ -27,7 +27,7 @@ public class Quantifier extends BoolExpr
|
|||
/**
|
||||
* Indicates whether the quantifier is universal.
|
||||
**/
|
||||
public boolean isUniversal() throws Z3Exception
|
||||
public boolean isUniversal()
|
||||
{
|
||||
return Native.isQuantifierForall(getContext().nCtx(), getNativeObject());
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ public class Quantifier extends BoolExpr
|
|||
/**
|
||||
* Indicates whether the quantifier is existential.
|
||||
**/
|
||||
public boolean isExistential() throws Z3Exception
|
||||
public boolean isExistential()
|
||||
{
|
||||
return !isUniversal();
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ public class Quantifier extends BoolExpr
|
|||
/**
|
||||
* The weight of the quantifier.
|
||||
**/
|
||||
public int getWeight() throws Z3Exception
|
||||
public int getWeight()
|
||||
{
|
||||
return Native.getQuantifierWeight(getContext().nCtx(), getNativeObject());
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ public class Quantifier extends BoolExpr
|
|||
/**
|
||||
* The number of patterns.
|
||||
**/
|
||||
public int getNumPatterns() throws Z3Exception
|
||||
public int getNumPatterns()
|
||||
{
|
||||
return Native
|
||||
.getQuantifierNumPatterns(getContext().nCtx(), getNativeObject());
|
||||
|
@ -62,7 +62,7 @@ public class Quantifier extends BoolExpr
|
|||
*
|
||||
* @throws Z3Exception
|
||||
**/
|
||||
public Pattern[] getPatterns() throws Z3Exception
|
||||
public Pattern[] getPatterns()
|
||||
{
|
||||
int n = getNumPatterns();
|
||||
Pattern[] res = new Pattern[n];
|
||||
|
@ -75,7 +75,7 @@ public class Quantifier extends BoolExpr
|
|||
/**
|
||||
* The number of no-patterns.
|
||||
**/
|
||||
public int getNumNoPatterns() throws Z3Exception
|
||||
public int getNumNoPatterns()
|
||||
{
|
||||
return Native.getQuantifierNumNoPatterns(getContext().nCtx(),
|
||||
getNativeObject());
|
||||
|
@ -86,7 +86,7 @@ public class Quantifier extends BoolExpr
|
|||
*
|
||||
* @throws Z3Exception
|
||||
**/
|
||||
public Pattern[] getNoPatterns() throws Z3Exception
|
||||
public Pattern[] getNoPatterns()
|
||||
{
|
||||
int n = getNumNoPatterns();
|
||||
Pattern[] res = new Pattern[n];
|
||||
|
@ -99,7 +99,7 @@ public class Quantifier extends BoolExpr
|
|||
/**
|
||||
* The number of bound variables.
|
||||
**/
|
||||
public int getNumBound() throws Z3Exception
|
||||
public int getNumBound()
|
||||
{
|
||||
return Native.getQuantifierNumBound(getContext().nCtx(), getNativeObject());
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ public class Quantifier extends BoolExpr
|
|||
*
|
||||
* @throws Z3Exception
|
||||
**/
|
||||
public Symbol[] getBoundVariableNames() throws Z3Exception
|
||||
public Symbol[] getBoundVariableNames()
|
||||
{
|
||||
int n = getNumBound();
|
||||
Symbol[] res = new Symbol[n];
|
||||
|
@ -124,7 +124,7 @@ public class Quantifier extends BoolExpr
|
|||
*
|
||||
* @throws Z3Exception
|
||||
**/
|
||||
public Sort[] getBoundVariableSorts() throws Z3Exception
|
||||
public Sort[] getBoundVariableSorts()
|
||||
{
|
||||
int n = getNumBound();
|
||||
Sort[] res = new Sort[n];
|
||||
|
@ -139,7 +139,7 @@ public class Quantifier extends BoolExpr
|
|||
*
|
||||
* @throws Z3Exception
|
||||
**/
|
||||
public BoolExpr getBody() throws Z3Exception
|
||||
public BoolExpr getBody()
|
||||
{
|
||||
return new BoolExpr(getContext(), Native.getQuantifierBody(getContext()
|
||||
.nCtx(), getNativeObject()));
|
||||
|
@ -147,7 +147,7 @@ public class Quantifier extends BoolExpr
|
|||
|
||||
Quantifier(Context ctx, boolean isForall, Sort[] sorts, Symbol[] names,
|
||||
Expr body, int weight, Pattern[] patterns, Expr[] noPatterns,
|
||||
Symbol quantifierID, Symbol skolemID) throws Z3Exception
|
||||
Symbol quantifierID, Symbol skolemID)
|
||||
{
|
||||
super(ctx, 0);
|
||||
|
||||
|
@ -183,7 +183,7 @@ public class Quantifier extends BoolExpr
|
|||
|
||||
Quantifier(Context ctx, boolean isForall, Expr[] bound, Expr body,
|
||||
int weight, Pattern[] patterns, Expr[] noPatterns,
|
||||
Symbol quantifierID, Symbol skolemID) throws Z3Exception
|
||||
Symbol quantifierID, Symbol skolemID)
|
||||
{
|
||||
super(ctx, 0);
|
||||
|
||||
|
@ -210,12 +210,12 @@ public class Quantifier extends BoolExpr
|
|||
}
|
||||
}
|
||||
|
||||
Quantifier(Context ctx, long obj) throws Z3Exception
|
||||
Quantifier(Context ctx, long obj)
|
||||
{
|
||||
super(ctx, obj);
|
||||
}
|
||||
|
||||
void checkNativeObject(long obj) throws Z3Exception
|
||||
void checkNativeObject(long obj)
|
||||
{
|
||||
if (Native.getAstKind(getContext().nCtx(), obj) != Z3_ast_kind.Z3_QUANTIFIER_AST
|
||||
.toInt())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue