3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 03:15:50 +00:00

Java API: Added exception wrappers and build dependencies.

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
Christoph M. Wintersteiger 2012-11-30 15:39:25 +00:00
parent 654c02701c
commit 0c1f2a8281
47 changed files with 4908 additions and 4554 deletions

View file

@ -16,7 +16,7 @@ public class Quantifier extends BoolExpr
/**
* Indicates whether the quantifier is universal.
**/
public boolean IsUniversal()
public boolean IsUniversal() throws Z3Exception
{
return Native.isQuantifierForall(Context().nCtx(), NativeObject());
}
@ -24,7 +24,7 @@ public class Quantifier extends BoolExpr
/**
* Indicates whether the quantifier is existential.
**/
public boolean IsExistential()
public boolean IsExistential() throws Z3Exception
{
return !IsUniversal();
}
@ -32,7 +32,7 @@ public class Quantifier extends BoolExpr
/**
* The weight of the quantifier.
**/
public int Weight()
public int Weight() throws Z3Exception
{
return Native.getQuantifierWeight(Context().nCtx(), NativeObject());
}
@ -40,7 +40,7 @@ public class Quantifier extends BoolExpr
/**
* The number of patterns.
**/
public int NumPatterns()
public int NumPatterns() throws Z3Exception
{
return Native
.getQuantifierNumPatterns(Context().nCtx(), NativeObject());
@ -64,7 +64,7 @@ public class Quantifier extends BoolExpr
/**
* The number of no-patterns.
**/
public int NumNoPatterns()
public int NumNoPatterns() throws Z3Exception
{
return Native.getQuantifierNumNoPatterns(Context().nCtx(),
NativeObject());
@ -88,7 +88,7 @@ public class Quantifier extends BoolExpr
/**
* The number of bound variables.
**/
public int NumBound()
public int NumBound() throws Z3Exception
{
return Native.getQuantifierNumBound(Context().nCtx(), NativeObject());
}