loopy
loopy copied to clipboard
repr(a) == repr(b) should imply a == b
Currently it is not for TemporaryVariable ~~and Kernel~~
What specifically is missing? Do you have an example or an idea what __repr__ should be doing that it currently isn't?
For eg: base_indices is missing from TemporaryVariable's __repr__. There is a bug in privatize_temporaries_with_inames at https://github.com/inducer/loopy/blob/main/loopy/transform/privatize.py#L211 where base_indices is not fixed. I was comparing two TemporaryVariable instances where base_indices was the only difference, but repr on both gave the same string.