Repository navigation
Conversation
This branch has not been deployed
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.
An independently authored x86-64 loop writes six 64-bit stack elements, then reads both 32-bit words of the final element. The unpatched output declares only five elements and returns unrelated, uninitialized scalar locals. Reading the first two words as well selects a 32-bit layout and loses the wide hint's byte extent; reading only the first element's upper word can discard the array layout altogether.
The executable regression uses four authored native functions: tail-word reads, first-and-tail-word reads, a first-cell interior read, and an already-wide predicate control. It compares the generated C with both the original machine code and independent unsigned arithmetic, including wrapping and sign-bit boundaries. It uses the existing integer-view compiler contract (
-fno-strict-aliasing,-fwrapv) and enables undefined-behavior sanitization.Focused local verification:
indexed_stack_storestests and the new zero-loop regression passed in focused runs. The wide-word round trip covers 2,000 inputs per authored function with GCC/Clang at-O0/-O2; the zero-loop case uses the same compiler matrix and validates both complete 64-byte records.cargo test -p kuna-decomp --lib rangeutil::tests: 19 passed, including both outcomes of wrapped, nonwrapped, full, and empty predicates.cargo test -p kuna-decomp --lib varmap::tests: 62 passed, including locked storage and adjacent-object boundaries.python3 tools/check_spec.py --strict: passed.stack_object_lifetimes::partial_writes_control_flow_and_unknown_memory_effects_match_native: passed unchanged, including strict-aliasing compilation of the local byte-array case that failed the initial CI run.mapped_array_c::mapped_byte_accesses_compile_and_preserve_bytes: passed, retaining the global opt-in and byte-transfer behavior.The full workspace and corpus suites are left to CI.