You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
matthiasdiener
changed the title
LoopyKeyBuilder: hash for BasicSet different for objects that compare equal
LoopyKeyBuilder: hash for BasicSet differs for objects that compare equal
Feb 6, 2025
@inducer, is the goal to address this issue with https://github.com/inducer/namedisl/ ? So far, I haven't found a good way to resolve this issue within isl/islpy. In particular, get_hash (for isl.Set) also returns different values for Sets that are equal.
Thanks for finding and reporting this. It's a little surprising to me that isl considers those two sets equal; I'm not sure I can think of a hash function that would figure that out. Perhaps isl uses align_params before comparing? Maybe try plain_is_equal? At any rate, yes, from my perspective, the plan is to have namedisl present a (more?) consistent view of hashing and equality than we currently have. (While also, hopefully, offering a nicer interface than current isl---but that's all mostly vaporware for now.)
The same issue exists with
hash()
, as well asSet
(includingSet.get_hash
).cc: #576, #828, inducer/islpy#89
The text was updated successfully, but these errors were encountered: