Skip to content

Commit

Permalink
Update project_to_rewrites
Browse files Browse the repository at this point in the history
  • Loading branch information
tothtamas28 committed Dec 18, 2024
1 parent 928f855 commit e83fa6f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pyk/src/pyk/kore/internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,12 @@ def project_to_symbols(self) -> KoreDefn:
)

def project_to_rewrites(self) -> KoreDefn:
"""Project definition to symbols that are (transitively) referred to from rewrite axioms."""
rewrite_symbols = self._rewrite_symbols()
"""Project definition to symbols that are part of the configuration or are (transitively) referred to from rewrite axioms."""
_symbols = set()
_symbols.update(self._config_symbols())
_symbols.update(self._rewrite_symbols())
symbols: FrozenDict[str, SymbolDecl] = FrozenDict(
(symbol, decl) for symbol, decl in self.symbols.items() if symbol in rewrite_symbols
(symbol, decl) for symbol, decl in self.symbols.items() if symbol in _symbols
)
return self.let(symbols=symbols).project_to_symbols()

Expand Down

0 comments on commit e83fa6f

Please sign in to comment.