mirror of
https://github.com/Z3Prover/z3
synced 2025-12-05 03:26:45 +00:00
port dotnet to use bool sorts from API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
15274cdf53
commit
1c3fb49878
2 changed files with 4 additions and 4 deletions
|
|
@ -50,10 +50,10 @@ namespace Microsoft.Z3
|
|||
{
|
||||
get
|
||||
{
|
||||
int res = 0;
|
||||
if (Native.Z3_fpa_get_numeral_sign(Context.nCtx, NativeObject, ref res) == 0)
|
||||
bool res = false;
|
||||
if (!Native.Z3_fpa_get_numeral_sign(Context.nCtx, NativeObject, ref res))
|
||||
throw new Z3Exception("Sign is not a Boolean value");
|
||||
return res != 0;
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ namespace Microsoft.Z3
|
|||
public static bool Open(string filename)
|
||||
{
|
||||
m_is_open = true;
|
||||
return Native.Z3_open_log(filename) == 1;
|
||||
return Native.Z3_open_log(filename);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue