mirror of
https://github.com/Z3Prover/z3
synced 2025-04-26 18:45:33 +00:00
change storage layout of .Net binding Z3_bool to byte to deal with uninitialized memory reads on larger allocation sizes. Bug introduced when switching from defining Z3_bool as int to the bool type from stdbool
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
b38abf64d7
commit
0d4b4b30b1
21 changed files with 75 additions and 76 deletions
|
@ -275,7 +275,7 @@ public class Expr extends AST
|
|||
**/
|
||||
public boolean isAlgebraicNumber()
|
||||
{
|
||||
return 0 != Native.isAlgebraicNumber(getContext().nCtx(), getNativeObject());
|
||||
return 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) != 0) // is this a numeral ast?
|
||||
if (Native.isAlgebraicNumber(ctx.nCtx(), obj)) // 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