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

minor fixes #359

Merged
merged 6 commits into from
Dec 4, 2019
Merged

minor fixes #359

merged 6 commits into from
Dec 4, 2019

Conversation

robdockins
Copy link
Contributor

Fix some minor issues found while working on other things, and add a "fail fast" option to crux that skips attempting to prove further goals once one is disproved

@@ -537,7 +537,6 @@ class (IsExpr (SymExpr sym), HashableF (SymExpr sym)) => IsExprBuilder sym where

-- | Equality of boolean values
eqPred :: sym -> Pred sym -> Pred sym -> IO (Pred sym)
eqPred sym x y = notPred sym =<< xorPred sym x y
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the problem with this default implementation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nothing, really, but xor is defined as the negation of equality now, and eqPred is actually the primitive that is defined. The only real problem is that the definition is misleading

@robdockins robdockins merged commit 33a68c9 into master Dec 4, 2019
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

2 participants