Open dwightguth opened 1 year ago
Same underlying issue as https://github.com/runtimeverification/k/issues/3436 - we need to add sort parameter inference in both cases. Has been implemented in Pyk with not a hugely complex implementation - we could backport that into the frontend, perhaps as a new pass or as part of AddSortInjections
Care should be taken to handle the full generality of sorts, parametric symbols etc. that the frontend needs to - Pyk implementation isn't fully general yet.
Workaround is also to disable substitution filtering if necessary
What component is the issue in?
Front-End
Which command
What K Version?
v5.5.147
Operating System
Linux
K Definitions (If Possible)
Steps to Reproduce
Expected Results
We would expect to see:
Instead we get the following exception and stack trace:
https://github.com/runtimeverification/k/blob/master/kernel/src/main/java/org/kframework/unparser/KPrint.java#L249 is the offending line. It's looking to find the first sort parameter of the ML equals and can't find it because sort parameters haven't been added to the rule.
Not entirely sure what the appropriate fix ought to be. I believe we should discuss.