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

Simplify operations in simplify.rs #2

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

spshah1701
Copy link
Collaborator

@spshah1701 spshah1701 commented Sep 25, 2024

  • Simplified operations in simplify.rs
  • Refactored code in op.rs.

@spshah1701 spshah1701 self-assigned this Sep 25, 2024
simplify!(lhs, rhs);
match (lhs.op(), rhs.op()) {
(AstOp::BVV(lhs), AstOp::BVV(rhs)) => {
ctx.srem(&ctx.bvv(lhs.clone())?, &ctx.bvv(rhs.clone())?)?
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same as the default case right? Instead if both of these are BVV, we want to calculate the actual signed remainder value using the type from clarirs_num and return a BVV instead of another SRem. This goes for all of the cases.

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.

2 participants