mirror of
https://github.com/Z3Prover/z3
synced 2025-04-13 12:28:44 +00:00
Fix issue https://z3.codeplex.com/workitem/48
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
fbbbfad564
commit
2c8b314a15
|
@ -625,7 +625,8 @@ namespace sat {
|
|||
case 1:
|
||||
TRACE("elim_lit", tout << "clause became unit: " << c[0] << "\n";);
|
||||
propagate_unit(c[0]);
|
||||
remove_clause(c);
|
||||
// propagate_unit will delete c.
|
||||
// remove_clause(c);
|
||||
return;
|
||||
case 2:
|
||||
TRACE("elim_lit", tout << "clause became binary: " << c[0] << " " << c[1] << "\n";);
|
||||
|
@ -816,7 +817,8 @@ namespace sat {
|
|||
}
|
||||
if (sz == 1) {
|
||||
propagate_unit(c[0]);
|
||||
remove_clause(c);
|
||||
// propagate_unit will delete c.
|
||||
// remove_clause(c);
|
||||
continue;
|
||||
}
|
||||
if (sz == 2) {
|
||||
|
|
Loading…
Reference in a new issue