Open virgil-serbanuta opened 1 year ago
I did a timeboxed investigation and there seems to be a problem in the way we calculate the sentences in a module. Should probably be something like this:
private lazy val importedSentences = fullImports flatMap {_.publicSentences}
lazy val publicSentences: Set[Sentence] = publicLocalSentences | imports.filter(_.isPublic).flatMap(_.module.publicSentences)
lazy val sentences: Set[Sentence] = localSentences | importedSentences
But then there is also another issue in RuleGrammarGenerator since by the time we get to the end of the generator we have way too many sentences.
A couple weird things:
"a"
on the RHS of a rule, it should be just a
?SortA
being sent to the SMT solver when it's not involved in the rule in question?SortA
being sent to the SMT solver without being declared?Yes, "a" was a mistake. You get the same error if you remove the last rule or if you change it to
rule f(_) => b [owise]
@virgil-serbanuta is this blocking?
No.
What component is the issue in?
Front-End
Which command
What K Version?
v5.5.40-0-g98574f12a2-dirty
Operating System
Linux
K Definitions (If Possible)
c.k:
Steps to Reproduce
Will display:
Expected Results
Kompile be able to compile that file. Or, in the worst case, it should provide a decent error message.