|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| package org.sat4j.reader; |
|
8 |
| |
|
9 |
| import java.io.IOException; |
|
10 |
| |
|
11 |
| import org.sat4j.specs.ISolver; |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| |
|
16 |
| |
|
17 |
| |
|
18 |
| |
|
19 |
| public class OPBReader2006 extends OPBReader2005 { |
|
20 |
| |
|
21 |
| |
|
22 |
| |
|
23 |
| |
|
24 |
| private static final long serialVersionUID = 1L; |
|
25 |
| |
|
26 |
0
| public OPBReader2006(ISolver solver) {
|
|
27 |
0
| super(solver);
|
|
28 |
| } |
|
29 |
| |
|
30 |
| |
|
31 |
| |
|
32 |
| |
|
33 |
| |
|
34 |
| |
|
35 |
| |
|
36 |
| |
|
37 |
| |
|
38 |
0
| @Override
|
|
39 |
| protected void readTerm(StringBuffer coeff, StringBuffer var) |
|
40 |
| throws IOException, ParseFormatException { |
|
41 |
0
| readInteger(coeff);
|
|
42 |
| |
|
43 |
0
| skipSpaces();
|
|
44 |
| |
|
45 |
0
| if (!readIdentifier(var))
|
|
46 |
0
| throw new ParseFormatException("identifier expected");
|
|
47 |
| } |
|
48 |
| } |