mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 10:55:50 +00:00
build warnings, updates to reduce-invertible, change is_algebraic tester to use int return type
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
b8b70c53fa
commit
fad1e611aa
8 changed files with 41 additions and 18 deletions
|
@ -275,7 +275,7 @@ public class Expr extends AST
|
|||
**/
|
||||
public boolean isAlgebraicNumber()
|
||||
{
|
||||
return Native.isAlgebraicNumber(getContext().nCtx(), getNativeObject());
|
||||
return 0 != Native.isAlgebraicNumber(getContext().nCtx(), getNativeObject());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2108,7 +2108,7 @@ public class Expr extends AST
|
|||
Z3_sort_kind sk = Z3_sort_kind
|
||||
.fromInt(Native.getSortKind(ctx.nCtx(), s));
|
||||
|
||||
if (Native.isAlgebraicNumber(ctx.nCtx(), obj)) // is this a numeral ast?
|
||||
if (Native.isAlgebraicNumber(ctx.nCtx(), obj) != 0) // is this a numeral ast?
|
||||
return new AlgebraicNum(ctx, obj);
|
||||
|
||||
if (Native.isNumeralAst(ctx.nCtx(), obj))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue