mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
Java API: bugfix
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
3482b8f4f1
commit
dd127c2f71
|
@ -138,6 +138,14 @@ public class AST extends Z3Object
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indicates whether the AST is an application
|
||||||
|
**/
|
||||||
|
public boolean IsApp() throws Z3Exception
|
||||||
|
{
|
||||||
|
return this.ASTKind() == Z3_ast_kind.Z3_APP_AST;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates whether the AST is a BoundVariable
|
* Indicates whether the AST is a BoundVariable
|
||||||
**/
|
**/
|
||||||
|
|
|
@ -204,7 +204,7 @@ public class Expr extends AST
|
||||||
**/
|
**/
|
||||||
public boolean IsConst() throws Z3Exception
|
public boolean IsConst() throws Z3Exception
|
||||||
{
|
{
|
||||||
return IsExpr() && NumArgs() == 0 && FuncDecl().DomainSize() == 0;
|
return IsApp() && NumArgs() == 0 && FuncDecl().DomainSize() == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue