Repository navigation
fix(lean-exporter): allocate OpaqueUint IDs from opaque_ids - #1881
Merged
Merged
Conversation
nihalpasham
force-pushed
the
fix/lean-exporter-opaque-ids
branch
from
November 27, 2026 12:16
4724cf4 to
2064f25
Compare
nihalpasham
previously approved these changes
Nov 27, 2026
nihalpasham
left a comment
Collaborator
There was a problem hiding this comment.
LGTM. Rebased onto main and extended opaque_ids allocation + test assertions to MirRhs::CtaUint1 on nvvm.clc_query_* as well.
Collaborator
|
/ok to test 2064f25 |
Capture the per-definition oracle map in the fallback helper. Keep oracle identity separate from the block-local register allocator, and remove a shadowed pointer match arm. Check uniqueness and definition order on the typed exporter output. Signed-off-by: hs1167 <[email protected]> Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com> Signed-off-by: nihalpasham <[email protected]>
nihalpasham
force-pushed
the
fix/lean-exporter-opaque-ids
branch
from
November 27, 2026 12:49
2064f25 to
ddb744f
Compare
nihalpasham
previously approved these changes
Nov 27, 2026
Collaborator
|
/ok to test ddb744f |
nihalpasham
approved these changes
Nov 27, 2026
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.
Closes #1880.
What This PR Does
Fixes an oracle-ID aliasing bug in
lean-exporter(translate/program.rs) wherefallback_rhs_foraccepted an explicit ID map parameter and two call sites (mir.extract_array_elementandnvvm.clc_query_*) passed the recycled register map&val_idsinstead of the monotonic&opaque_idsmap:Changes
crates/lean-exporter/src/translate/program.rs:opaque_idsdirectly insidefallback_rhs_forand allocateclc_query_*(CtaUint1/OpaqueUint) IDs fromopaque_ids."mir.array_element_addr"match arm.crates/lean-exporter/tests/export.rs:clc_query_and_array_element_use_distinct_opaque_idschecking global uniqueness and RPO monotonicity across a multi-block collision reproducer and all shipped MIR fixtures.Verification
CUDA_OXIDE_REQUIRE_LEAN=1 cargo test -p lean-exporter --all-targets: PASScargo clippy -p lean-exporter --all-targets -- -D warnings,rustdoc -D warnings,cargo oxide fmt --check, andcheck-*.shguards: PASS