}
private SymbolValuePair findUnitClause(List<Sentence> clauseList, Model model,
List<Symbol> symbols) {
for (int i = 0; i < clauseList.size(); i++) {
Sentence clause = (Sentence) clauseList.get(i);
if ((clause instanceof Symbol)
&& (!(model.getAssignedSymbols().contains(clause)))) {
// System.out.println("found unit clause - assigning");
return new SymbolValuePair(new Symbol(
((Symbol) clause).getValue()), true);
}
if (clause instanceof UnarySentence) {
UnarySentence sentence = (UnarySentence) clause;
Sentence negated = sentence.getNegated();
if ((negated instanceof Symbol)
&& (!(model.getAssignedSymbols().contains(negated)))) {
// System.out.println("found unit clause type 2 -
// assigning");
return new SymbolValuePair(new Symbol(