[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
Draft
[Explicit State Access] Support multiple state reads in proc_state_tuple_flattening_pass.cc#4795copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
…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
copybara-service
Bot
force-pushed
the
test_966122086
branch
from
August 17, 2026 20:03
ad19003 to
c0e76f6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[Explicit State Access] Support multiple state reads in proc_state_tuple_flattening_pass.cc
Store
AbstractStateReadstructs insideAbstractStateElement.AbstractStateReadrecords 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 storedAbstractStateReadentries.