-
Notifications
You must be signed in to change notification settings - Fork 92
Adds simple optimization of store reads/writes in wordLang #1327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+1,287
−943
Conversation
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
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replace cheat placeholders with full proofs for the If and Call (SOME _) cases in the remove_dead correctness theorem. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
word_cmp now returns SOME bool instead of bool, so get_var returns SOME y (word_loc) not SOME (Word y). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…dundant Gets Three changes to the copy propagation pass: 1. merge_eqs: intersect store_to_eq mappings instead of clearing them 2. copy_prop_prog Get: emit Skip when register already holds store value 3. copy_prop_correct: add err ≠ SOME Error precondition for Skip soundness Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
flush_state now takes a boolean and clears store/stack when T. - loop_to_wordProof: move state_rel inside case arms (away from TimeOut/FinalFFI), add t1.ffi = s1.ffi at top level, adjust compile_Skip and compile_Assign proofs - pan_to_targetProof: add store to share_inst_modifies existential Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
This cleans up patterns where a store is Set, then Get (without intervening Sets) and avoids the reload from memory.