Closed grosu closed 9 years ago
The problem here is that KLabel
is not stored in Poset Context#subsorts
. Therefore, calling Context#getCommonSubsorts(Set)
with set [KItem, KLabel]
fails an internal assertion.
Here is what we have in Context#subsorts
right now: [Bag, Bool, TCPError, ListItem, #Bot, KResult, K, #Float, TCPAnswer, #String, KToken, #Int, MySet, MyMap, Set, List, Int, #Bool, Float, Nat, MapItem, KList, Map, Char, MyBag, KItem, Stream, String, BagItem, MyList, Id, SetItem]
@andreistefanescu, could you take a look to check if simply adding KLabel
to Context#subsorts
is the right fix?
But Context#subsorts should contain a set of pairs. What you have there is just a set of declared sorts. Are you sure you looked in the right place?
You are right. I was actually referring to Context#subsorts.elements
.
I know I should try to minimize it, but I have to move on to other things now and I think it is better to report it as is instead of not at all. This code in a file .k crashes with the java backend, but works fine with Maude: