@Test(groups = "1s") public void testUncheckedEnqueue() throws Exception { }
void uncheckedEnqueue(int l) { assert valueLit(l) == Boolean.kUndefined; if (assignment_.get(var(l)) == Boolean.kUndefined) { touched_variables_.add(l); } assignment_.put(var(l), sign(l) ? Boolean.kFalse : Boolean.kTrue); trail_.add(l); }
SatSolver implements SatFactory { void uncheckedEnqueue(int l) { assert valueLit(l) == Boolean.kUndefined; if (assignment_.get(var(l)) == Boolean.kUndefined) { touched_variables_.add(l); } assignment_.put(var(l), sign(l) ? Boolean.kFalse : Boolean.kTrue); trail_.add(l); } }
SatSolver implements SatFactory { void uncheckedEnqueue(int l) { assert valueLit(l) == Boolean.kUndefined; if (assignment_.get(var(l)) == Boolean.kUndefined) { touched_variables_.add(l); } assignment_.put(var(l), sign(l) ? Boolean.kFalse : Boolean.kTrue); trail_.add(l); } SatSolver(); }
SatSolver implements SatFactory { void uncheckedEnqueue(int l) { assert valueLit(l) == Boolean.kUndefined; if (assignment_.get(var(l)) == Boolean.kUndefined) { touched_variables_.add(l); } assignment_.put(var(l), sign(l) ? Boolean.kFalse : Boolean.kTrue); trail_.add(l); } SatSolver(); @Override SatSolver _me(); int newVariable(); boolean addClause(TIntList ps); boolean learnClause(int... ps); boolean addClause(int l); void cancelUntil(int level); int trailMarker(); int nLearnt(); boolean propagateOneLiteral(int lit); void detachLearnt(int ci); static int makeLiteral(int var, boolean sign); static int negated(int l); static boolean sign(int l); static int var(int l); void copyFrom(SatSolver o); long nbclauses(); long numvars(); }
SatSolver implements SatFactory { void uncheckedEnqueue(int l) { assert valueLit(l) == Boolean.kUndefined; if (assignment_.get(var(l)) == Boolean.kUndefined) { touched_variables_.add(l); } assignment_.put(var(l), sign(l) ? Boolean.kFalse : Boolean.kTrue); trail_.add(l); } SatSolver(); @Override SatSolver _me(); int newVariable(); boolean addClause(TIntList ps); boolean learnClause(int... ps); boolean addClause(int l); void cancelUntil(int level); int trailMarker(); int nLearnt(); boolean propagateOneLiteral(int lit); void detachLearnt(int ci); static int makeLiteral(int var, boolean sign); static int negated(int l); static boolean sign(int l); static int var(int l); void copyFrom(SatSolver o); long nbclauses(); long numvars(); public boolean ok_; public ArrayList<Clause> clauses; public ArrayList<Clause> learnts; public TIntObjectHashMap<TIntArrayList> implies_; public TIntArrayList touched_variables_; }