mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 14:13:23 +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
1 changed files with 1 additions and 6 deletions
|
@ -72,12 +72,7 @@ public class AST extends Z3Object implements Comparable<AST>
|
||||||
@Override
|
@Override
|
||||||
public int hashCode()
|
public int hashCode()
|
||||||
{
|
{
|
||||||
int r = 0;
|
return Native.getAstHash(getContext().nCtx(), getNativeObject());
|
||||||
try {
|
|
||||||
Native.getAstHash(getContext().nCtx(), getNativeObject());
|
|
||||||
}
|
|
||||||
catch (Z3Exception ex) {}
|
|
||||||
return r;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue