mirror of
https://github.com/Z3Prover/z3
synced 2025-12-03 18:46:44 +00:00
port to BoolPtr
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
39e427a229
commit
eecd052730
2 changed files with 3 additions and 3 deletions
|
|
@ -27,10 +27,10 @@ public class FPNum extends FPExpr
|
||||||
* @throws Z3Exception
|
* @throws Z3Exception
|
||||||
*/
|
*/
|
||||||
public boolean getSign() {
|
public boolean getSign() {
|
||||||
Native.IntPtr res = new Native.IntPtr();
|
Native.BoolPtr res = new Native.BoolPtr();
|
||||||
if (!Native.fpaGetNumeralSign(getContext().nCtx(), getNativeObject(), res))
|
if (!Native.fpaGetNumeralSign(getContext().nCtx(), getNativeObject(), res))
|
||||||
throw new Z3Exception("Sign is not a Boolean value");
|
throw new Z3Exception("Sign is not a Boolean value");
|
||||||
return res.value != 0;
|
return res.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ public final class Log
|
||||||
public static boolean open(String filename)
|
public static boolean open(String filename)
|
||||||
{
|
{
|
||||||
m_is_open = true;
|
m_is_open = true;
|
||||||
return Native.openLog(filename) == 1;
|
return Native.openLog(filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue