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

An independent solution verifier would be very nice. #153

Open
johntyree opened this issue Mar 14, 2016 · 2 comments
Open

An independent solution verifier would be very nice. #153

johntyree opened this issue Mar 14, 2016 · 2 comments

Comments

@johntyree
Copy link
Contributor

Now that the solver is getting more complicated, it would be very nice to have an semi-independent way to verify that a solution is at least sane.

We could put all of the packages that should be installed into a bag, and then check one by one that all of their dependencies and none of their conflicts are also in the bag.

This will still need the Pool to deal with transformed requirements, but it at least lets us ignore the rules and clauses.

@cournape
Copy link
Contributor

Is that something you want for testing, or more generally ?

I would suggest checking solutions w/ minisat, but I guess that's what you had in mind by adding support for DIMACS ?

@johntyree
Copy link
Contributor Author

The DIMACS output support actually came from attempting to use the reference MiniSAT implementation.

My thought is that the sanity check should be independent from the RulesGenerator, if possible. The solver is getting fairly complicated and will continue to get more complicated as we add new features.

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

2 participants