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

overflow in naturals leads to unsatisfiable constraint #105

Closed
abau opened this issue Jun 23, 2014 · 0 comments
Closed

overflow in naturals leads to unsatisfiable constraint #105

abau opened this issue Jun 23, 2014 · 0 comments

Comments

@abau
Copy link
Owner

abau commented Jun 23, 2014

An overflow in a natural number inside a branch of a case-distinction leads to an unsatisfiable constraint no matter if the branch is chosen or not. Instead, an overflow should result in a undefined value (definedness flag being set to False).

Test case

constraint c = case c of
  True  -> False && (geNat (nat 1 1) (plusNat (nat 1 1) (nat 1 1)))
  False -> True

should give a solution c = False despite of the overflow in the True branch.

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

No branches or pull requests

1 participant