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

Add missing assumptions in GHC.Internal.Real.div and its tests. Use div instead of / in the spec #2339

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

RCoeurjoly
Copy link

This PR is a continuation of #2311.

Co-authors are:

I would also be interested in adding quickcheck tests for the specs, as suggested by @ranjitjhala in #2285 (comment), but I think it would be better to do that in a separate PR.

Tested locally.

…iv instead of / in the spec

Co-authored-by: Marco Bazzani <114893351+mbazzani@users.noreply.github.com>
Co-authored-by: Facundo Domínguez <facundo.dominguez@tweag.io>
Co-authored-by: Roland Coeurjoly <rolandcoeurjoly@gmail.com>
Copy link
Collaborator

@facundominguez facundominguez left a comment

Choose a reason for hiding this comment

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

Thanks @RCoeurjoly. I left some comments.

tests/terminate/pos/Div.hs Show resolved Hide resolved
tests/terminate/pos/Div.hs Show resolved Hide resolved
src/GHC/Real_LHAssumptions.hs Outdated Show resolved Hide resolved
src/GHC/Real_LHAssumptions.hs Outdated Show resolved Hide resolved
tests/terminate/neg/Div.hs Show resolved Hide resolved
tests/terminate/pos/Div.hs Show resolved Hide resolved
RCoeurjoly and others added 3 commits September 22, 2024 18:57
Co-authored-by: Facundo Domínguez <facundominguez@gmail.com>
Co-authored-by: Facundo Domínguez <facundominguez@gmail.com>
Co-authored-by: Facundo Domínguez <facundominguez@gmail.com>
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