Skip to content

[4.0] [ConstraintSolver] Use a flag to prevent solver from removing possible solutions #10522

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

Merged
merged 1 commit into from
Jun 23, 2017

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jun 22, 2017

  • Description: In some situations e.g. while trying to shrink domains of the type
    variables before attempting search, use a flag to tell constraint
    system to retain all of the viable solutions otherwise solver could
    loose some of the information required to produce complete solution.

  • Scope of the issue: Type Checker changes to allow shrink to be more precise.

  • Risk: Low.

  • Tested: New test cases added, Swift CI.

  • Reviewed by: Mark Lacey.

  • Resolves: rdar://problem/32726044

(cherry picked from commit 6231f85)

…e solutions

In some situations e.g. while trying to shrink domains of the type
variables before attempting search, use a flag to tell constraint
system to retain all of the viable solutions otherwise solver could
loose some of the information required to produce complete solution.

Resolves: rdar://problem/32726044
(cherry picked from commit 6231f85)
@xedin xedin requested a review from rudkx June 22, 2017 23:13
@xedin
Copy link
Contributor Author

xedin commented Jun 22, 2017

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jun 22, 2017

@swift-ci please test source compatibility

Copy link
Contributor

@rudkx rudkx left a comment

Choose a reason for hiding this comment

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

LGTM!

@tkremenek tkremenek merged commit 0140bf7 into swiftlang:swift-4.0-branch Jun 23, 2017
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.

3 participants