| 1 |
|
package org.sat4j.minisat.constraints; |
| 2 |
|
|
| 3 |
|
import org.sat4j.minisat.constraints.cnf.MixableCBClause; |
| 4 |
|
import org.sat4j.minisat.constraints.cnf.WLClause; |
| 5 |
|
import org.sat4j.minisat.core.Constr; |
| 6 |
|
import org.sat4j.specs.ContradictionException; |
| 7 |
|
import org.sat4j.specs.IVecInt; |
| 8 |
|
|
|
|
|
| 71,4% |
Uncovered Elements: 2 (7) |
Complexity: 2 |
Complexity Density: 0,5 |
|
| 9 |
|
public class MixedDataStructureDanielCBWL extends MixedDataStructureDaniel { |
| 10 |
|
|
| 11 |
|
private static final long serialVersionUID = 1L; |
| 12 |
|
|
|
|
|
| 66,7% |
Uncovered Elements: 2 (6) |
Complexity: 2 |
Complexity Density: 0,5 |
|
| 13 |
415
|
@Override... |
| 14 |
|
public Constr createClause(IVecInt literals) throws ContradictionException { |
| 15 |
415
|
IVecInt v = WLClause.sanityCheck(literals, getVocabulary(), solver); |
| 16 |
415
|
if (v == null) |
| 17 |
0
|
return null; |
| 18 |
415
|
return MixableCBClause.brandNewClause(solver, getVocabulary(), v); |
| 19 |
|
} |
| 20 |
|
|
| 21 |
|
} |