mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
Java API: bugfixes
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
1ed4e7c480
commit
bbfd9dd19f
3 changed files with 14 additions and 14 deletions
|
@ -86,7 +86,6 @@ public class Context extends IDisposable
|
|||
**/
|
||||
public BoolSort BoolSort() throws Z3Exception
|
||||
{
|
||||
|
||||
if (m_boolSort == null)
|
||||
m_boolSort = new BoolSort(this);
|
||||
return m_boolSort;
|
||||
|
@ -97,7 +96,6 @@ public class Context extends IDisposable
|
|||
**/
|
||||
public IntSort IntSort() throws Z3Exception
|
||||
{
|
||||
|
||||
if (m_intSort == null)
|
||||
m_intSort = new IntSort(this);
|
||||
return m_intSort;
|
||||
|
@ -106,8 +104,10 @@ public class Context extends IDisposable
|
|||
/**
|
||||
* Retrieves the Real sort of the context.
|
||||
**/
|
||||
public RealSort RealSort()
|
||||
public RealSort RealSort() throws Z3Exception
|
||||
{
|
||||
if (m_realSort== null)
|
||||
m_realSort = new RealSort(this);
|
||||
return m_realSort;
|
||||
}
|
||||
|
||||
|
|
|
@ -1786,8 +1786,6 @@ public class Expr extends AST
|
|||
return new RatNum(ctx, obj);
|
||||
case Z3_BV_SORT:
|
||||
return new BitVecNum(ctx, obj);
|
||||
case Z3_UNKNOWN_SORT:
|
||||
throw new Z3Exception("Unknown Sort");
|
||||
default: ;
|
||||
}
|
||||
}
|
||||
|
@ -1806,8 +1804,6 @@ public class Expr extends AST
|
|||
return new ArrayExpr(ctx, obj);
|
||||
case Z3_DATATYPE_SORT:
|
||||
return new DatatypeExpr(ctx, obj);
|
||||
case Z3_UNKNOWN_SORT:
|
||||
throw new Z3Exception("Unknown Sort");
|
||||
default: ;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue