1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
package org.sat4j.minisat.constraints; |
27 |
|
|
28 |
|
import org.sat4j.minisat.constraints.cnf.LearntWLClause; |
29 |
|
import org.sat4j.minisat.constraints.cnf.Lits; |
30 |
|
import org.sat4j.minisat.constraints.cnf.MixableCBClause; |
31 |
|
import org.sat4j.minisat.constraints.cnf.WLClause; |
32 |
|
import org.sat4j.minisat.core.Constr; |
33 |
|
import org.sat4j.minisat.core.ILits; |
34 |
|
import org.sat4j.specs.ContradictionException; |
35 |
|
import org.sat4j.specs.IVecInt; |
36 |
|
|
37 |
|
|
38 |
|
@author |
39 |
|
|
40 |
|
|
41 |
|
|
|
|
| 81,8% |
Uncovered Elements: 2 (11) |
Complexity: 2 |
Complexity Density: 0,67 |
|
42 |
|
public class ClausalDataStructureCBWL extends AbstractDataStructureFactory<ILits> { |
43 |
|
|
44 |
|
private static final long serialVersionUID = 1L; |
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
@see |
50 |
|
|
|
|
| 66,7% |
Uncovered Elements: 2 (6) |
Complexity: 2 |
Complexity Density: 0,5 |
|
51 |
830
|
public Constr createClause(IVecInt literals) throws ContradictionException {... |
52 |
830
|
IVecInt v = WLClause.sanityCheck(literals, getVocabulary(), solver); |
53 |
830
|
if (v == null) |
54 |
0
|
return null; |
55 |
830
|
return MixableCBClause.brandNewClause(solver, getVocabulary(), v); |
56 |
|
} |
57 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
58 |
9095359
|
public Constr createUnregisteredClause(IVecInt literals) {... |
59 |
9095359
|
return new LearntWLClause(literals, getVocabulary()); |
60 |
|
} |
61 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
62 |
2
|
@Override... |
63 |
|
protected ILits createLits() { |
64 |
2
|
return new Lits(); |
65 |
|
} |
66 |
|
} |