mirror of
https://github.com/Z3Prover/z3
synced 2025-06-02 12:21:21 +00:00
.NET API: bugfix
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
894fd8b967
commit
1a26c9726b
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ namespace Microsoft.Z3
|
||||||
public Status Check(params Expr[] assumptions)
|
public Status Check(params Expr[] assumptions)
|
||||||
{
|
{
|
||||||
Z3_lbool r;
|
Z3_lbool r;
|
||||||
if (assumptions == null)
|
if (assumptions == null || assumptions.Length == 0)
|
||||||
r = (Z3_lbool)Native.Z3_solver_check(Context.nCtx, NativeObject);
|
r = (Z3_lbool)Native.Z3_solver_check(Context.nCtx, NativeObject);
|
||||||
else
|
else
|
||||||
r = (Z3_lbool)Native.Z3_solver_check_assumptions(Context.nCtx, NativeObject, (uint)assumptions.Length, AST.ArrayToNative(assumptions));
|
r = (Z3_lbool)Native.Z3_solver_check_assumptions(Context.nCtx, NativeObject, (uint)assumptions.Length, AST.ArrayToNative(assumptions));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue