Skip to content
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

bv_decide/symbolic: simplify Add with remainder expressions as operands #934

Open
tobiasgrosser opened this issue Dec 30, 2024 · 0 comments
Assignees

Comments

@tobiasgrosser
Copy link
Collaborator

tobiasgrosser commented Dec 30, 2024

LLVM contains a collection of test cases of the form X % C0 + (( X / C0 ) % C1) * C0 to X % (C0 * C1) (where C0 * C1 does not overflow). These result in theorems such as the ones in:
https://github.com/opencompl/lean-mlir/blob/main/SSA/Projects/InstCombine/tests/proofs/gadd4_proof.lean.

https://grosser.zulipchat.com/#narrow/channel/446584-Project---Lean4---BitVectors/topic/slow.20division.20and.20transformation/near/491379687

@tobiasgrosser tobiasgrosser changed the title bv_normalize: bv_decide/symbolic: simplify Add with remainder expressions as operands Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants