mirror of
https://github.com/Z3Prover/z3
synced 2025-04-16 13:58:45 +00:00
AST#hashCode bugfix
Previous implementation always returned zero. I can only assume that it wanted to cache it as well, but I haven't implemented that to keep the changes light.
This commit is contained in:
parent
4d3675cb4e
commit
27c684f743
|
@ -72,12 +72,7 @@ public class AST extends Z3Object implements Comparable<AST>
|
|||
@Override
|
||||
public int hashCode()
|
||||
{
|
||||
int r = 0;
|
||||
try {
|
||||
Native.getAstHash(getContext().nCtx(), getNativeObject());
|
||||
}
|
||||
catch (Z3Exception ex) {}
|
||||
return r;
|
||||
return Native.getAstHash(getContext().nCtx(), getNativeObject());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue