3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 21:38:44 +00:00

fix remaining incorrect uses of new BoolExpr related to #2125

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-02-07 12:28:17 -08:00
parent 77942a35dc
commit d2a3b53d92
5 changed files with 6 additions and 6 deletions

View file

@ -144,7 +144,7 @@ namespace Microsoft.Z3
uint n = Size; uint n = Size;
BoolExpr[] res = new BoolExpr[n]; BoolExpr[] res = new BoolExpr[n];
for (uint i = 0; i < n; i++) for (uint i = 0; i < n; i++)
res[i] = new BoolExpr(Context, Native.Z3_goal_formula(Context.nCtx, NativeObject, i)); res[i] = (BoolExpr)Expr.Create(Context, Native.Z3_goal_formula(Context.nCtx, NativeObject, i));
return res; return res;
} }
} }

View file

@ -76,7 +76,7 @@ namespace Microsoft.Z3
get get
{ {
return new BoolExpr(Context, Native.Z3_get_quantifier_body(Context.nCtx, NativeObject)); return Expr.Create(Context, Native.Z3_get_quantifier_body(Context.nCtx, NativeObject));
} }
} }

View file

@ -148,7 +148,7 @@ namespace Microsoft.Z3
get get
{ {
return new BoolExpr(Context, Native.Z3_get_quantifier_body(Context.nCtx, NativeObject)); return (BoolExpr)Expr.Create(Context, Native.Z3_get_quantifier_body(Context.nCtx, NativeObject));
} }
} }

View file

@ -70,9 +70,9 @@ import com.microsoft.z3.enumerations.Z3_ast_kind;
* *
* @throws Z3Exception * @throws Z3Exception
**/ **/
public BoolExpr getBody() public Expr getBody()
{ {
return new BoolExpr(getContext(), Native.getQuantifierBody(getContext() return Expr.create(getContext(), Native.getQuantifierBody(getContext()
.nCtx(), getNativeObject())); .nCtx(), getNativeObject()));
} }

View file

@ -141,7 +141,7 @@ public class Quantifier extends BoolExpr
**/ **/
public BoolExpr getBody() public BoolExpr getBody()
{ {
return new BoolExpr(getContext(), Native.getQuantifierBody(getContext() return (BoolExpr) Expr.create(getContext(), Native.getQuantifierBody(getContext()
.nCtx(), getNativeObject())); .nCtx(), getNativeObject()));
} }