3
0
Fork 0
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:
George Karpenkov 2016-01-06 11:11:01 +01:00
parent 4d3675cb4e
commit 27c684f743

View file

@ -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());
}
/**