mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 21:38:44 +00:00
.NET API: bugfix
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
c430fe26aa
commit
3482b8f4f1
|
@ -149,6 +149,14 @@ namespace Microsoft.Z3
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates whether the AST is an application
|
||||||
|
/// </summary>
|
||||||
|
public bool IsApp
|
||||||
|
{
|
||||||
|
get { return this.ASTKind == Z3_ast_kind.Z3_APP_AST; }
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Indicates whether the AST is a BoundVariable
|
/// Indicates whether the AST is a BoundVariable
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -215,7 +215,7 @@ namespace Microsoft.Z3
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsConst
|
public bool IsConst
|
||||||
{
|
{
|
||||||
get { return IsExpr && NumArgs == 0 && FuncDecl.DomainSize == 0; }
|
get { return IsApp && NumArgs == 0 && FuncDecl.DomainSize == 0; }
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue