Skip to content

Solver raises assert in debug mode with some inputs #9

Description

@marco-calautti

Hi, sorry for disappearining. We are using EvalMaxSat with Cadical for our experiments, and we are using it in incremental mode.
In some cases, in debug mode I get the following error:

EvalMaxSAT/lib/EvalMaxSAT/src/EvalMaxSAT.h:393: bool EvalMaxSAT<SAT_SOLVER>::solve() [with SAT_SOLVER = Solver_cadical]: Assertion _cardToAdd.size() == 0' failed

In release mode the solver keeps working, but of course reports wrong optimal cost/solution.

I will try to come up with a small example to reproduce the issue, since I get this problem with some complex formulas.
Anyway, the error happens after a couple of iterative additions of hard and soft clauses

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions