Skip to content

Commit

Permalink
Untest on unsat bugfix
Browse files Browse the repository at this point in the history
This commit fixes a bug in Untest when the last sat call was Unsat.
The conflict on untest results in more derivations during backtracking.
This fix ensures that all unit clauses are propagated.
Previously, the unit clause from derivations during untest backtracking
were not propagated.
  • Loading branch information
wsc1 committed Nov 24, 2018
1 parent f9dc12e commit 8ddfb9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/xo/s.go
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ func (s *S) cleanupSolve() {
if drvd.TargetLevel < s.endTestLevel {
trail.Back(s.endTestLevel)
s.x = CNull
break
//break
}
trail.Back(drvd.TargetLevel)
trail.Assign(drvd.Unit, drvd.P)
Expand Down

0 comments on commit 8ddfb9f

Please # to comment.