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

Make bvConcat rewrites fire more often #208

Merged
merged 4 commits into from
Apr 22, 2019
Merged

Make bvConcat rewrites fire more often #208

merged 4 commits into from
Apr 22, 2019

Conversation

robdockins
Copy link
Contributor

Be slightly more aggressive about deciding that terms are equal, so the rewrite rule fires in cases involving floating point casts that arise from LLVM memory model operations.

@robdockins robdockins requested a review from kquick April 22, 2019 18:44
Copy link
Member

@kquick kquick left a comment

Choose a reason for hiding this comment

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

Looks good. Just some documentation comments and a suggestion about a possible change to floatFpNe; that change would break existing uses, but that might be a good thing to ensure they are using it as intended.

what4/src/What4/Expr/Builder.hs Show resolved Hide resolved
bvSum = undefined
-}

-- | A slightly more aggressive syntaxtic equality check than testEquality,
Copy link
Member

Choose a reason for hiding this comment

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

... aggressive synta c tic equality... collection of known syntax formers.

-- floating point.
-- compare equal, despite having different bit patterns.
--
-- This test is most appropriate for interpreting the equalty tests of
Copy link
Member

Choose a reason for hiding this comment

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

"equality"

what4/src/What4/Expr/Builder.hs Show resolved Hide resolved
@robdockins robdockins merged commit 545b6e3 into master Apr 22, 2019
@langston-barrett langston-barrett deleted the rwd/bugfix branch April 22, 2019 20:40
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.

None yet

3 participants