We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A clingo user discovered a regression when passing assumptions in potassco/clingo#336.
The following program outputs model { a } even though a is assumed to be false:
{ a }
a
#include <clingo.hh> class SEH : public Clingo::SolveEventHandler { public: bool on_model(Clingo::Model &m) override { std::cerr << "model: " << m << std::endl; return true; } }; Clingo::SolveHandle iterate(Clingo::SolveHandle &&hnd) { for (auto const &m : hnd) { } return std::move(hnd); } int main() { Clingo::Control ctl; ctl.add("base", {}, "a."); ctl.ground({{"base", {}}}); SEH seh; auto atom_a = ctl.symbolic_atoms().find(Clingo::Function("a", {}))->literal(); std::cerr << "Solving iteratively..." << std::endl; iterate(ctl.solve(Clingo::LiteralSpan{-atom_a}, &seh, false, true)).get(); std::cerr << "Solving iteratively and asynchronously..." << std::endl; iterate(ctl.solve(Clingo::LiteralSpan{-atom_a}, &seh, true, true)).get(); std::cerr << "Solving asynchronously..." << std::endl; ctl.solve(Clingo::LiteralSpan{-atom_a}, &seh, true, false).get(); std::cerr << "Solving..." << std::endl; ctl.solve(Clingo::LiteralSpan{-atom_a}, &seh, false, false).get(); }
The bug is only triggered if iterative solving but not asynchronous solving is enabled.
The text was updated successfully, but these errors were encountered:
Fix issue #72: Regression introduced in 7335240.
4104dd2
* Fix regression in iterative (sequential) solving where UNSAT detected in start() no longer terminated the algorithm in the following call to next().
Oh, sorry for that! Hopefully fixed again in dev.
Sorry, something went wrong.
Thanks. My small program works now.
No branches or pull requests
A clingo user discovered a regression when passing assumptions in potassco/clingo#336.
The following program outputs model
{ a }
even thougha
is assumed to be false:The bug is only triggered if iterative solving but not asynchronous solving is enabled.
The text was updated successfully, but these errors were encountered: