Repository navigation
Preserve checked constants and exact array indexes - #158
Merged
Merged
Conversation
Fold numeric constants at checked source widths before destination conversion, and materialize statics using declared runtime types. Read qualified constants from defining-module publication. Keep exact fixed-array bounds and located diagnostics, reject negative runtime indexes, and normalize validated constant GEP offsets through existing casts. Remove obsolete reverse ABI state and redundant locals. Reuse test setup and evidence assertions; add numeric, imported-index, wide-bounds and discard source fixtures. Validate both target widths and the rebuilt executable-fixture suite. Refs #154, #155
Capture deletion-first, reuse-first review preferences with Standards and Spec evidence, explicit worktree scope and smallest equivalent remedies. Link the skill from AGENTS.md and expose only its intended path through narrow ignore exceptions. Reuse existing engineering rules and validation tools.
This was referenced Oct 6, 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.
Summary
Fixes #154.
Fixes #155.
Depends on #156; retarget to
mainafter that PR merges.Production ownership
emitCast.staticEntryForConst, reverse ABI lookup/cache,LookupABIKey, single-useabiKeyLocked, repeated test setup, and redundant locals.Design and behavior
Validation
Latest checks after final production cleanup:
Earlier validation, before the final two-local inlining cleanup:
Diff sanity
Risks and follow-up
main, pass hosted checks, and obtain current-head approval from a non-author human collaborator.