mirror of
https://github.com/mudler/luet.git
synced 2025-09-13 13:50:26 +00:00
update vendor
This commit is contained in:
10
vendor/github.com/crillab/gophersat/solver/watcher.go
generated
vendored
10
vendor/github.com/crillab/gophersat/solver/watcher.go
generated
vendored
@@ -39,6 +39,16 @@ func (s *Solver) initWatcherList(clauses []*Clause) {
|
||||
}
|
||||
}
|
||||
|
||||
// Should be called when new vars are added to the problem (see Solver.newVar)
|
||||
func (s *Solver) addVarWatcherList(v Var) {
|
||||
cnfVar := int(v.Int())
|
||||
for i := s.nbVars; i < cnfVar; i++ {
|
||||
s.wl.wlistBin = append(s.wl.wlistBin, nil, nil)
|
||||
s.wl.wlist = append(s.wl.wlist, nil, nil)
|
||||
s.wl.wlistPb = append(s.wl.wlistPb, nil, nil)
|
||||
}
|
||||
}
|
||||
|
||||
// appendClause appends the clause without checking whether the clause is already satisfiable, unit, or unsatisfiable.
|
||||
// To perform those checks, call s.AppendClause.
|
||||
// clause is supposed to be a problem clause, not a learned one.
|
||||
|
Reference in New Issue
Block a user