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

Conversation

@ehildenb
Copy link
Member

Inspired while reviewing: #1009

This makes two changes which hopefully tighten the CTerm abstraction slightly by reducing the places where CTerm.kast is used:

  • Places that were doing get_cell(CTerm.kast, CELL_NAME) now say CTerm.cell(CELL_NAME). There are no more uses of get_cell here or in downstream repos, so it's removed.
  • A new @cached_property CTerm.free_vars is added, which is used to replace the pattern free_vars(CTerm.kast).

This means that the remaining uses of CTerm.kast are doing something weird with the resulting kast, or printing it, or converting it to Kore.

@ehildenb ehildenb requested a review from tothtamas28 March 28, 2024 02:05
@ehildenb ehildenb self-assigned this Mar 28, 2024
@ehildenb ehildenb requested a review from PetarMax March 28, 2024 02:07
@ehildenb ehildenb marked this pull request as ready for review March 28, 2024 02:48
@rv-jenkins rv-jenkins merged commit 8b0b6d7 into master Mar 28, 2024
@rv-jenkins rv-jenkins deleted the cterm-free-vars branch March 28, 2024 14:43
Baltoli pushed a commit to runtimeverification/k that referenced this pull request Apr 9, 2024
)

Inspired while reviewing:
runtimeverification/pyk#1009

This makes two changes which hopefully tighten the `CTerm` abstraction
slightly by reducing the places where `CTerm.kast` is used:

- Places that were doing `get_cell(CTerm.kast, CELL_NAME)` now say
`CTerm.cell(CELL_NAME)`. There are no more uses of `get_cell` here or in
downstream repos, so it's removed.
- A new `@cached_property CTerm.free_vars` is added, which is used to
replace the pattern `free_vars(CTerm.kast)`.

This means that the remaining uses of `CTerm.kast` are doing something
weird with the resulting kast, or printing it, or converting it to Kore.

---------

Co-authored-by: devops <[email protected]>
Baltoli pushed a commit to runtimeverification/k that referenced this pull request Apr 9, 2024
)

Inspired while reviewing:
runtimeverification/pyk#1009

This makes two changes which hopefully tighten the `CTerm` abstraction
slightly by reducing the places where `CTerm.kast` is used:

- Places that were doing `get_cell(CTerm.kast, CELL_NAME)` now say
`CTerm.cell(CELL_NAME)`. There are no more uses of `get_cell` here or in
downstream repos, so it's removed.
- A new `@cached_property CTerm.free_vars` is added, which is used to
replace the pattern `free_vars(CTerm.kast)`.

This means that the remaining uses of `CTerm.kast` are doing something
weird with the resulting kast, or printing it, or converting it to Kore.

---------

Co-authored-by: devops <[email protected]>
Baltoli pushed a commit to runtimeverification/k that referenced this pull request Apr 10, 2024
)

Inspired while reviewing:
runtimeverification/pyk#1009

This makes two changes which hopefully tighten the `CTerm` abstraction
slightly by reducing the places where `CTerm.kast` is used:

- Places that were doing `get_cell(CTerm.kast, CELL_NAME)` now say
`CTerm.cell(CELL_NAME)`. There are no more uses of `get_cell` here or in
downstream repos, so it's removed.
- A new `@cached_property CTerm.free_vars` is added, which is used to
replace the pattern `free_vars(CTerm.kast)`.

This means that the remaining uses of `CTerm.kast` are doing something
weird with the resulting kast, or printing it, or converting it to Kore.

---------

Co-authored-by: devops <[email protected]>
Baltoli pushed a commit to runtimeverification/k that referenced this pull request Apr 10, 2024
)

Inspired while reviewing:
runtimeverification/pyk#1009

This makes two changes which hopefully tighten the `CTerm` abstraction
slightly by reducing the places where `CTerm.kast` is used:

- Places that were doing `get_cell(CTerm.kast, CELL_NAME)` now say
`CTerm.cell(CELL_NAME)`. There are no more uses of `get_cell` here or in
downstream repos, so it's removed.
- A new `@cached_property CTerm.free_vars` is added, which is used to
replace the pattern `free_vars(CTerm.kast)`.

This means that the remaining uses of `CTerm.kast` are doing something
weird with the resulting kast, or printing it, or converting it to Kore.

---------

Co-authored-by: devops <[email protected]>
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.

5 participants