Skip to content

[Explicit State Access] Support multiple state reads in proc_state_tuple_flattening_pass.cc - #4795

Draft
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_966122086
Draft

[Explicit State Access] Support multiple state reads in proc_state_tuple_flattening_pass.cc#4795
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_966122086

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Aug 17, 2026

Copy link
Copy Markdown

[Explicit State Access] Support multiple state reads in proc_state_tuple_flattening_pass.cc

Store AbstractStateRead structs inside AbstractStateElement. AbstractStateRead records the predicate, label, and a temporary placeholder literal for each decomposed state read. Once the original state element state_read and next_value nodes are cleaned up, rebuild the proc state. For each flattened state element create new state_read's using the stored AbstractStateRead entries.

…ple_flattening_pass.cc

Store `AbstractStateRead` structs inside `AbstractStateElement`. `AbstractStateRead` records the predicate, label, and a temporary placeholder literal for each decomposed state read. Once the original state element state_read and next_value nodes are cleaned up, rebuild the proc state. For each flattened state element create new state_read's using the stored `AbstractStateRead` entries.

PiperOrigin-RevId: 966122086
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.

1 participant