Closed Shai-Aviv closed 4 years ago
In Python 3.6+ dict
keys aren't randomly ordered, and I didn't use set
s at all, so I'm really not sure what happened here. Trying to figure out.
Tracked it down, it occurs at the grammar phase. Now to fix this.
What a swift response! Thank you
Fixed some issues with rules priorities, I think it should be addressed now (I just ran this about 30 times without a crash).
Consider the following input:
On my machine (Ubuntu 18.04 LTS running in Docker on RHEL 7.5), the output of
arm2riscv.py
for this input is distributed as follows:55% of times - the output is okay, no errors:
23% of times - I get this error:
22% of times - I get a partial output:
followed by this error:
I suspect that the bug has something to do with the random ordering of keys in Python's
dict
orset
types, but I'm only guessing.