Clover coverage report -
Coverage timestamp: jeu. juin 15 2006 08:24:33 CEST
file stats: LOC: 73   Methods: 3
NCLOC: 14   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
DecisionUIP.java - 100% 100% 100%
coverage
 1    /*
 2    * SAT4J: a SATisfiability library for Java
 3    * Copyright (C) 2004 Daniel Le Berre
 4    *
 5    * Based on the original minisat specification from:
 6    *
 7    * An extensible SAT solver. Niklas E?n and Niklas S?rensson.
 8    * Proceedings of the Sixth International Conference on Theory
 9    * and Applications of Satisfiability Testing, LNCS 2919,
 10    * pp 502-518, 2003.
 11    *
 12    * This library is free software; you can redistribute it and/or
 13    * modify it under the terms of the GNU Lesser General Public
 14    * License as published by the Free Software Foundation; either
 15    * version 2.1 of the License, or (at your option) any later version.
 16    *
 17    * This library is distributed in the hope that it will be useful,
 18    * but WITHOUT ANY WARRANTY; without even the implied warranty of
 19    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 20    * Lesser General Public License for more details.
 21    *
 22    * You should have received a copy of the GNU Lesser General Public
 23    * License along with this library; if not, write to the Free Software
 24    * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 25    *
 26    */
 27   
 28    package org.sat4j.minisat.uip;
 29   
 30    import java.io.Serializable;
 31   
 32    import org.sat4j.minisat.core.AssertingClauseGenerator;
 33    import org.sat4j.specs.IConstr;
 34   
 35    /**
 36    * Decision UIP scheme for building an asserting clause. This is one of the
 37    * simplest way to build an asserting clause: the generator stops when it meets
 38    * a decision variable (a literal with no reason). Note that this scheme cannot
 39    * be used for general constraints, since decision variables are not necessarily
 40    * UIP in the pseudo boolean case.
 41    *
 42    * @author leberre
 43    */
 44    public class DecisionUIP implements AssertingClauseGenerator, Serializable {
 45   
 46    private static final long serialVersionUID = 1L;
 47   
 48    /*
 49    * (non-Javadoc)
 50    *
 51    * @see org.sat4j.minisat.AnalysisScheme#initAnalyse()
 52    */
 53  120275 public void initAnalyze() {
 54    }
 55   
 56    /*
 57    * (non-Javadoc)
 58    *
 59    * @see org.sat4j.minisat.AnalysisScheme#onCurrentDecisionLevelLiteral()
 60    */
 61  1004702 public void onCurrentDecisionLevelLiteral(int p) {
 62    }
 63   
 64    /*
 65    * (non-Javadoc)
 66    *
 67    * @see org.sat4j.minisat.AnalysisScheme#continueResolution(org.sat4j.datatype.Lit)
 68    */
 69  1004702 public boolean clauseNonAssertive(IConstr reason) {
 70  1004702 return reason != null;
 71    }
 72   
 73    }