Skip to content

Commit

Permalink
No longer emit old overload attribute (#4016)
Browse files Browse the repository at this point in the history
The backends have now all been changed to accept the new
`symbol-overload` KORE attribute
(runtimeverification/llvm-backend#984,
runtimeverification/haskell-backend#3723) and so
we can safely stop the frontend from emitting the old `overload` syntax.

Downstream testing on the C semantics (which makes heavy use of
overloading) has passed, so I'm confident this change is correct.
  • Loading branch information
Baltoli authored Feb 20, 2024
1 parent 9a50e78 commit cc2f814
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -931,10 +931,7 @@ private void genOverloadedAxiom(Production lesser, Production greater, StringBui
}
sb.append("))) ");
final var args = KList(KApply(greater.klabel().get()), KApply(lesser.klabel().get()));
final var att =
Att.empty()
.add(Att.OVERLOAD(), KList.class, args)
.add(Att.SYMBOL_OVERLOAD(), KList.class, args);
final var att = Att.empty().add(Att.SYMBOL_OVERLOAD(), KList.class, args);
convert(new HashMap<>(), att, sb, null, null);
sb.append(" // overloaded production\n");
}
Expand Down
1 change: 0 additions & 1 deletion kore/src/main/scala/org/kframework/attributes/Att.scala
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ object Att {
final val NOT_INJECTION = Key.internal("notInjection")
final val NOT_LR1_MODULES = Key.internal("not-lr1-modules")
final val ORIGINAL_PRD = Key.internal("originalPrd")
final val OVERLOAD = Key.internal("overload")
final val PREDICATE = Key.internal("predicate")
final val PRETTY_PRINT_WITH_SORT_ANNOTATION =
Key.internal("prettyPrintWithSortAnnotation")
Expand Down

0 comments on commit cc2f814

Please sign in to comment.