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
27
28
29 package org.sat4j.pb.constraints;
30
31 import java.io.FileNotFoundException;
32 import java.io.IOException;
33
34 import org.sat4j.pb.GoodOPBReader;
35 import org.sat4j.pb.IPBSolver;
36 import org.sat4j.reader.ParseFormatException;
37 import org.sat4j.reader.Reader;
38
39
40
41
42
43
44
45 public abstract class AbstractEZPseudoBooleanAndPigeonHoleTest extends
46 AbstractPigeonHoleWithCardinalityTest<IPBSolver> {
47
48
49
50
51
52
53
54 public AbstractEZPseudoBooleanAndPigeonHoleTest(String arg) {
55 super(arg);
56 }
57
58 @Override
59 protected Reader createInstanceReader(IPBSolver solver) {
60 return new GoodOPBReader(solver);
61 }
62
63 @Override
64 protected void tearDown() {
65 super.tearDown();
66 }
67
68
69 public void testncirc43() throws FileNotFoundException, IOException,
70 ParseFormatException {
71 assertTrue(solveInstance(PREFIX
72 + "normalized-opb/submitted/manquinho/ttp/normalized-circ4_3.opb"));
73 }
74
75 public void testncirc63() throws FileNotFoundException, IOException,
76 ParseFormatException {
77 assertTrue(solveInstance(PREFIX
78 + "normalized-opb/submitted/manquinho/ttp/normalized-circ6_3.opb"));
79 }
80
81 public void testncirc83() throws FileNotFoundException, IOException,
82 ParseFormatException {
83 assertTrue(solveInstance(PREFIX
84 + "normalized-opb/submitted/manquinho/ttp/normalized-circ8_3.opb"));
85 }
86
87 public void testndata43() throws FileNotFoundException, IOException,
88 ParseFormatException {
89 assertTrue(solveInstance(PREFIX
90 + "normalized-opb/submitted/manquinho/ttp/normalized-data4_3.opb"));
91 }
92
93 public void testndata63() throws FileNotFoundException, IOException,
94 ParseFormatException {
95 assertTrue(solveInstance(PREFIX
96 + "normalized-opb/submitted/manquinho/ttp/normalized-data6_3.opb"));
97 }
98
99 public void testndata83() throws FileNotFoundException, IOException,
100 ParseFormatException {
101 assertTrue(solveInstance(PREFIX
102 + "normalized-opb/submitted/manquinho/ttp/normalized-data8_3.opb"));
103 }
104
105 public void testn9symml() throws FileNotFoundException, IOException,
106 ParseFormatException {
107 assertTrue(solveInstance(PREFIX
108 + "normalized-opb/submitted/manquinho/synthesis-ptl-cmos-circuits/normalized-9symml.opb"));
109 }
110
111 public void testnC17() throws FileNotFoundException, IOException,
112 ParseFormatException {
113 assertTrue(solveInstance(PREFIX
114 + "normalized-opb/submitted/manquinho/synthesis-ptl-cmos-circuits/normalized-C17.opb"));
115 }
116
117 public void testnC432() throws FileNotFoundException, IOException,
118 ParseFormatException {
119 assertTrue(solveInstance(PREFIX
120 + "normalized-opb/submitted/manquinho/synthesis-ptl-cmos-circuits/normalized-C432.opb"));
121 }
122
123 public void testnb1() throws FileNotFoundException, IOException,
124 ParseFormatException {
125 assertTrue(solveInstance(PREFIX
126 + "normalized-opb/submitted/manquinho/synthesis-ptl-cmos-circuits/normalized-b1.opb"));
127 }
128
129 public void testnc8() throws FileNotFoundException, IOException,
130 ParseFormatException {
131 assertTrue(solveInstance(PREFIX
132 + "normalized-opb/submitted/manquinho/synthesis-ptl-cmos-circuits/normalized-c8.opb"));
133 }
134
135 public void testncc() throws FileNotFoundException, IOException,
136 ParseFormatException {
137 assertTrue(solveInstance(PREFIX
138 + "normalized-opb/submitted/manquinho/synthesis-ptl-cmos-circuits/normalized-cc.opb"));
139 }
140
141 public void testncm42a() throws FileNotFoundException, IOException,
142 ParseFormatException {
143 assertTrue(solveInstance(PREFIX
144 + "normalized-opb/submitted/manquinho/synthesis-ptl-cmos-circuits/normalized-cm42a.opb"));
145 }
146
147 public void testncmb() throws FileNotFoundException, IOException,
148 ParseFormatException {
149 assertTrue(solveInstance(PREFIX
150 + "normalized-opb/submitted/manquinho/synthesis-ptl-cmos-circuits/normalized-cmb.opb"));
151 }
152
153 public void testnmux() throws FileNotFoundException, IOException,
154 ParseFormatException {
155 assertTrue(solveInstance(PREFIX
156 + "normalized-opb/submitted/manquinho/synthesis-ptl-cmos-circuits/normalized-mux.opb"));
157 }
158
159 public void testnmyadder() throws FileNotFoundException, IOException,
160 ParseFormatException {
161 assertTrue(solveInstance(PREFIX
162 + "normalized-opb/submitted/manquinho/synthesis-ptl-cmos-circuits/normalized-my_adder.opb"));
163 }
164 }