mirror of
https://github.com/Z3Prover/z3
synced 2025-06-07 14:43:23 +00:00
fix #4793
This commit is contained in:
parent
cb4e5197fa
commit
71ac40ca23
1 changed files with 4 additions and 1 deletions
|
@ -102,7 +102,10 @@ namespace Microsoft.Z3
|
||||||
/// <returns>A hash code</returns>
|
/// <returns>A hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
return (int)NativeObject;
|
if (IsIntSymbol())
|
||||||
|
return ((IntSymbol)this).Int;
|
||||||
|
else
|
||||||
|
return ((StringSymbol)this).String.GetHashCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue