Skip to content

Conversation

@jberthold
Copy link
Member

  • sizeOf and alignOf
  • union values and their fields
  • one more byte simplification

jberthold and others added 4 commits November 21, 2025 15:46
This PR separates a `Value` sort for `Union` out of `Aggregate` as there
are different semantics for the projections (and it also makes the code
clearer). A `Union` has one argument which is data, but it can be
interpreted as different types via field projections - this is
significantly different from other field projections that access
different data via different arguments.

Currently the implementation only supports accessing fields of the same
type as the `Union` construction (no switching between types right now).
This PR brings into the K AST the fields and layout of unions that were
updated in #854 which is the stable-mir-json update
runtimeverification/stable-mir-json#105
@jberthold jberthold marked this pull request as ready for review November 24, 2025 05:34
@jberthold jberthold merged commit 4d8344e into feature/p-token Nov 24, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants