mirror of
https://github.com/Z3Prover/z3
synced 2025-05-11 09:44:43 +00:00
parent
6263252bf5
commit
e312b47be6
4 changed files with 40 additions and 14 deletions
|
@ -33,7 +33,7 @@ public class AST extends Z3Object implements Comparable
|
|||
{
|
||||
AST casted = null;
|
||||
|
||||
try
|
||||
try
|
||||
{
|
||||
casted = AST.class.cast(o);
|
||||
} catch (ClassCastException e)
|
||||
|
@ -41,13 +41,12 @@ public class AST extends Z3Object implements Comparable
|
|||
return false;
|
||||
}
|
||||
|
||||
return
|
||||
(this == casted) ||
|
||||
(this != null) &&
|
||||
(casted != null) &&
|
||||
(getContext().nCtx() == casted.getContext().nCtx()) &&
|
||||
(Native.isEqAst(getContext().nCtx(), getNativeObject(), casted.getNativeObject()));
|
||||
}
|
||||
return (this == casted) ||
|
||||
(this != null) &&
|
||||
(casted != null) &&
|
||||
(getContext().nCtx() == casted.getContext().nCtx()) &&
|
||||
(Native.isEqAst(getContext().nCtx(), getNativeObject(), casted.getNativeObject()));
|
||||
}
|
||||
|
||||
/**
|
||||
* Object Comparison.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue