Skip to content

Refactor interpretOp#263

Open
math-fehr wants to merge 1 commit intomainfrom
push-rwqwtnnwkvlr
Open

Refactor interpretOp#263
math-fehr wants to merge 1 commit intomainfrom
push-rwqwtnnwkvlr

Conversation

@math-fehr
Copy link
Collaborator

@math-fehr math-fehr commented Mar 3, 2026

This refactors the following:

  • Use getOperandValues and setResultValues to simplify interpretOp implementation, making it easier to formalise
  • Make interpretOp' not depend from the context anymore, and move the operation getters to interpretOp instead. This also helps for formalization and automation

@math-fehr math-fehr self-assigned this Mar 3, 2026
@math-fehr math-fehr force-pushed the push-rwqwtnnwkvlr branch from 9497205 to 33adac7 Compare March 3, 2026 01:30
This way, interpretOp' is a pure function that should not depend on the data structures.
This makes it much easier to write proofs and automation.


Factor out methods from `interpretOp`

This will make it easier to reason about `interpretOp`.
@math-fehr math-fehr force-pushed the push-rwqwtnnwkvlr branch from 33adac7 to 449f0fd Compare March 3, 2026 02:02
@math-fehr math-fehr changed the title Refactor interpretOp' to not depend on the context Refactor interpretOp Mar 3, 2026
@tobiasgrosser
Copy link
Collaborator

Nice!

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.

3 participants