mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 02:45:51 +00:00
fixes issue #143 and memory leak on theory plugin setup
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
47da717947
commit
e81dc5a0a0
4 changed files with 12 additions and 10 deletions
|
@ -1818,11 +1818,11 @@ public class Context extends IDisposable
|
|||
/**
|
||||
* Check for set membership.
|
||||
**/
|
||||
public Expr mkSetMembership(Expr elem, Expr set)
|
||||
public BoolExpr mkSetMembership(Expr elem, Expr set)
|
||||
{
|
||||
checkContextMatch(elem);
|
||||
checkContextMatch(set);
|
||||
return Expr.create(
|
||||
return (BoolExpr) Expr.create(
|
||||
this,
|
||||
Native.mkSetMember(nCtx(), elem.getNativeObject(),
|
||||
set.getNativeObject()));
|
||||
|
@ -1831,11 +1831,11 @@ public class Context extends IDisposable
|
|||
/**
|
||||
* Check for subsetness of sets.
|
||||
**/
|
||||
public Expr mkSetSubset(Expr arg1, Expr arg2)
|
||||
public BoolExpr mkSetSubset(Expr arg1, Expr arg2)
|
||||
{
|
||||
checkContextMatch(arg1);
|
||||
checkContextMatch(arg2);
|
||||
return Expr.create(
|
||||
return (BoolExpr) Expr.create(
|
||||
this,
|
||||
Native.mkSetSubset(nCtx(), arg1.getNativeObject(),
|
||||
arg2.getNativeObject()));
|
||||
|
|
|
@ -50,7 +50,7 @@ public class FuncDecl extends AST
|
|||
FuncDecl casted = (FuncDecl) o;
|
||||
if (casted == null)
|
||||
return false;
|
||||
return this == casted;
|
||||
return this.getNativeObject() == casted.getNativeObject();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue