3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-06-02 07:07:52 +00:00

port dotnet to use bool sorts from API

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2025-11-25 21:44:41 -08:00
parent 15274cdf53
commit 1c3fb49878
2 changed files with 4 additions and 4 deletions

View file

@ -50,10 +50,10 @@ namespace Microsoft.Z3
{ {
get get
{ {
int res = 0; bool res = false;
if (Native.Z3_fpa_get_numeral_sign(Context.nCtx, NativeObject, ref res) == 0) if (!Native.Z3_fpa_get_numeral_sign(Context.nCtx, NativeObject, ref res))
throw new Z3Exception("Sign is not a Boolean value"); throw new Z3Exception("Sign is not a Boolean value");
return res != 0; return res;
} }
} }

View file

@ -41,7 +41,7 @@ namespace Microsoft.Z3
public static bool Open(string filename) public static bool Open(string filename)
{ {
m_is_open = true; m_is_open = true;
return Native.Z3_open_log(filename) == 1; return Native.Z3_open_log(filename);
} }
/// <summary> /// <summary>