mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 10:55:50 +00:00
parent
0e701138e1
commit
383d06b225
3 changed files with 3 additions and 13 deletions
|
@ -415,10 +415,7 @@ public class Expr extends AST
|
|||
**/
|
||||
public boolean isInt()
|
||||
{
|
||||
return (Native.isNumeralAst(getContext().nCtx(), getNativeObject()) && Native
|
||||
.getSortKind(getContext().nCtx(),
|
||||
Native.getSort(getContext().nCtx(), getNativeObject())) == Z3_sort_kind.Z3_INT_SORT
|
||||
.toInt());
|
||||
return Native.getSortKind(getContext().nCtx(), Native.getSort(getContext().nCtx(), getNativeObject())) == Z3_sort_kind.Z3_INT_SORT.toInt();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -428,9 +425,7 @@ public class Expr extends AST
|
|||
**/
|
||||
public boolean isReal()
|
||||
{
|
||||
return Native.getSortKind(getContext().nCtx(),
|
||||
Native.getSort(getContext().nCtx(), getNativeObject())) == Z3_sort_kind.Z3_REAL_SORT
|
||||
.toInt();
|
||||
return Native.getSortKind(getContext().nCtx(), Native.getSort(getContext().nCtx(), getNativeObject())) == Z3_sort_kind.Z3_REAL_SORT.toInt();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue