| 
 1 | 
  
 |  | 
| 
 2 | 
  
 |  | 
| 
 3 | 
  
 |  | 
| 
 4 | 
  
 |  | 
| 
 5 | 
  
 |  | 
| 
 6 | 
  
 |  | 
| 
 7 | 
  
 | package org.sat4j.minisat.constraints; | 
| 
 8 | 
  
 |  | 
| 
 9 | 
  
 | import java.math.BigInteger; | 
| 
 10 | 
  
 |  | 
| 
 11 | 
  
 | import org.sat4j.minisat.constraints.pb.PBConstr; | 
| 
 12 | 
  
 | import org.sat4j.minisat.constraints.pb.PuebloMinWatchPb; | 
| 
 13 | 
  
 | import org.sat4j.specs.ContradictionException; | 
| 
 14 | 
  
 | import org.sat4j.specs.IVec; | 
| 
 15 | 
  
 | import org.sat4j.specs.IVecInt; | 
| 
 16 | 
  
 |  | 
| 
 17 | 
  
 |  | 
| 
 18 | 
  
 |  | 
| 
 19 | 
  
 |  | 
| 
 20 | 
  
 |  | 
| 
 21 | 
  
 | public class PuebloPBMinDataStructure extends AbstractPBDataStructureFactory { | 
| 
 22 | 
  
 |  | 
| 
 23 | 
  
 |     private static final long serialVersionUID = 1L; | 
| 
 24 | 
  
 |  | 
| 
 25 | 
  
 |      | 
| 
 26 | 
  
 |  | 
| 
 27 | 
  
 |  | 
| 
 28 | 
  
 |  | 
| 
 29 | 
  
 |  | 
| 
 30 | 
  
 |  | 
| 
 31 | 
 830
 |     @Override
 | 
| 
 32 | 
  
 |     protected PBConstr constraintFactory(IVecInt literals, IVecInt coefs, | 
| 
 33 | 
  
 |             boolean moreThan, int degree) throws ContradictionException { | 
| 
 34 | 
 830
 |         return PuebloMinWatchPb.minWatchPbNew(solver, getVocabulary(), literals,
 | 
| 
 35 | 
  
 |                 coefs, moreThan, degree); | 
| 
 36 | 
  
 |     } | 
| 
 37 | 
  
 |  | 
| 
 38 | 
  
 |      | 
| 
 39 | 
  
 |  | 
| 
 40 | 
  
 |  | 
| 
 41 | 
  
 |  | 
| 
 42 | 
  
 |  | 
| 
 43 | 
  
 |  | 
| 
 44 | 
 0
 |     @Override
 | 
| 
 45 | 
  
 |     protected PBConstr constraintFactory(IVecInt literals, IVecInt coefs, | 
| 
 46 | 
  
 |             int degree) { | 
| 
 47 | 
 0
 |         return PuebloMinWatchPb.watchPbNew(getVocabulary(), literals, coefs, true,
 | 
| 
 48 | 
  
 |                 degree); | 
| 
 49 | 
  
 |     } | 
| 
 50 | 
  
 |  | 
| 
 51 | 
  
 |      | 
| 
 52 | 
  
 |  | 
| 
 53 | 
  
 |  | 
| 
 54 | 
  
 |  | 
| 
 55 | 
  
 |  | 
| 
 56 | 
  
 |  | 
| 
 57 | 
 278984
 |     @Override
 | 
| 
 58 | 
  
 |     protected PBConstr constraintFactory(IVecInt literals, | 
| 
 59 | 
  
 |             IVec<BigInteger> coefs, boolean moreThan, BigInteger degree) | 
| 
 60 | 
  
 |             throws ContradictionException { | 
| 
 61 | 
 278984
 |         return PuebloMinWatchPb.minWatchPbNew(solver, getVocabulary(), literals,
 | 
| 
 62 | 
  
 |                 coefs, moreThan, degree); | 
| 
 63 | 
  
 |     } | 
| 
 64 | 
  
 |  | 
| 
 65 | 
  
 |      | 
| 
 66 | 
  
 |  | 
| 
 67 | 
  
 |  | 
| 
 68 | 
  
 |  | 
| 
 69 | 
  
 |  | 
| 
 70 | 
  
 |  | 
| 
 71 | 
 21685
 |     @Override
 | 
| 
 72 | 
  
 |     protected PBConstr constraintFactory(IVecInt literals, | 
| 
 73 | 
  
 |             IVec<BigInteger> coefs, BigInteger degree) { | 
| 
 74 | 
 21685
 |         return PuebloMinWatchPb.watchPbNew(getVocabulary(), literals, coefs, true,
 | 
| 
 75 | 
  
 |                 degree); | 
| 
 76 | 
  
 |     } | 
| 
 77 | 
  
 |  | 
| 
 78 | 
  
 | } |