Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Make KAST preprocessing pipeline explicit in _module_to_kore #1022

Merged
merged 19 commits into from
Mar 26, 2024

Conversation

tothtamas28
Copy link
Collaborator

@tothtamas28 tothtamas28 commented Mar 25, 2024

  • Define class KompilerPass
  • Implement KAST preprocessing steps in terms of KompilerPass
  • Refactor simplified_module to use a Sequence[KompilerPass]

@tothtamas28 tothtamas28 self-assigned this Mar 25, 2024
@tothtamas28 tothtamas28 marked this pull request as ready for review March 25, 2024 15:16
@ehildenb
Copy link
Member

LGTM. I see that it seems the only non-SingleModulePass are AddAnywhereAtt and AddPrioritiesAtt? The anywhere attribute one could likely be solved by requiring the user to add it to the symbol that is an anywhere symbol, similar to how we do macro or alias, perhaps? But maybe that's not always possible with the uses of that attribute, which we'd have to audit.

@tothtamas28
Copy link
Collaborator Author

The anywhere attribute one could likely be solved

Opened an issue:

Copy link
Collaborator

@Baltoli Baltoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, I like this design a lot. @gtrepta worth taking a look at this when we do the Scala -> Java port for the frontend's compiler pipeline.

@rv-jenkins rv-jenkins merged commit d4c29fa into master Mar 26, 2024
12 checks passed
@rv-jenkins rv-jenkins deleted the refactor-module-to-kore branch March 26, 2024 10:43
Baltoli pushed a commit to runtimeverification/k that referenced this pull request Apr 9, 2024
…meverification/pyk#1022)

* Define class `KompilerPass`
* Implement KAST preprocessing steps in terms of `KompilerPass`
* Refactor `simplified_module` to use a `Sequence[KompilerPass]`

---------

Co-authored-by: devops <devops@runtimeverification.com>
Baltoli pushed a commit to runtimeverification/k that referenced this pull request Apr 9, 2024
…meverification/pyk#1022)

* Define class `KompilerPass`
* Implement KAST preprocessing steps in terms of `KompilerPass`
* Refactor `simplified_module` to use a `Sequence[KompilerPass]`

---------

Co-authored-by: devops <devops@runtimeverification.com>
Baltoli pushed a commit to runtimeverification/k that referenced this pull request Apr 10, 2024
…meverification/pyk#1022)

* Define class `KompilerPass`
* Implement KAST preprocessing steps in terms of `KompilerPass`
* Refactor `simplified_module` to use a `Sequence[KompilerPass]`

---------

Co-authored-by: devops <devops@runtimeverification.com>
Baltoli pushed a commit to runtimeverification/k that referenced this pull request Apr 10, 2024
…meverification/pyk#1022)

* Define class `KompilerPass`
* Implement KAST preprocessing steps in terms of `KompilerPass`
* Refactor `simplified_module` to use a `Sequence[KompilerPass]`

---------

Co-authored-by: devops <devops@runtimeverification.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants