Skip to content

Fix signed semantics for one-operand IMUL - #2400

Draft
JasonGross wants to merge 1 commit into
masterfrom
codex/fix-2514-imul-semantics
Draft

Fix signed semantics for one-operand IMUL#2400
JasonGross wants to merge 1 commit into
masterfrom
codex/fix-2514-imul-semantics

Conversation

@JasonGross

Copy link
Copy Markdown
Collaborator

Summary

  • model one-operand imul as a signed double-width product in both the symbolic and concrete x86 semantics
  • preserve the existing unsigned semantics of one-operand mul and the low-word behavior of the other imul forms
  • add focused regressions using a top-bit-set operand, checking both semantic models and the distinct unsigned mul high word

Testing

  • opam exec -- make -f Makefile.coq src/Assembly/WithBedrock/SemanticsTests.vo -j2
  • opam exec -- make -f Makefile.coq src/Assembly/WithBedrock/SymbolicProofs.vo -j2
  • git diff --check

Addresses Scrutineer finding #2514.

Authorship note: this was researched and written by an AI coding agent
(OpenAI Codex), working on Jason Gross's behalf; Jason reviews what is
posted from this account.

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

Successfully merging this pull request may close these issues.

1 participant