@@ -33,14 +33,12 @@ using namespace std;
3333
3434Cnfizer::Cnfizer ( SMTConfig &config_
3535 , Logic &logic_
36- , PartitionManager &pmanager_
3736 , TermMapper &tmap
3837 , SimpSMTSolver &solver_
3938 ) :
4039 solver (solver_)
4140 , config (config_ )
4241 , logic (logic_)
43- , pmanager (pmanager_)
4442 , tmap (tmap)
4543 , s_empty (true )
4644 , alreadyAsserted(logic.getTerm_true())
@@ -52,7 +50,6 @@ Cnfizer::Cnfizer ( SMTConfig &config_
5250void Cnfizer::initialize ()
5351{
5452 // TODO: MB: why is all this initialization necessary?
55- currentPartition = 0 ;
5653 vec<Lit> c;
5754 Lit l = this ->getOrCreateLiteralFor (logic.getTerm_true ());
5855 c.push (l);
@@ -61,7 +58,6 @@ void Cnfizer::initialize()
6158 l = this ->getOrCreateLiteralFor (logic.getTerm_false ());
6259 c.push (~l);
6360 addClause (c);
64- currentPartition = -1 ;
6561}
6662
6763lbool
@@ -148,11 +144,6 @@ lbool Cnfizer::cnfizeAndGiveToSolver(PTRef formula, FrameId frame_id)
148144#ifdef PEDANTIC_DEBUG
149145 cerr << " cnfizerAndGiveToSolver: " << logic.printTerm (formula) << endl;
150146#endif
151-
152- if (keepPartitionInfo ()) {
153- assert (pmanager.getPartitionIndex (formula) != -1 );
154- currentPartition = pmanager.getPartitionIndex (formula);
155- }
156147 vec<PTRef> top_level_formulae;
157148 // Retrieve top-level formulae - this is a list constructed from a conjunction
158149 retrieveTopLevelFormulae (formula, top_level_formulae);
@@ -214,7 +205,6 @@ lbool Cnfizer::cnfizeAndGiveToSolver(PTRef formula, FrameId frame_id)
214205 declareVars (logic.propFormulasAppearingInUF );
215206 }
216207
217- currentPartition = -1 ;
218208 return res == false ? l_False : l_Undef;
219209}
220210
@@ -442,15 +432,6 @@ bool Cnfizer::addClause(const vec<Lit> & c_in)
442432#endif
443433 opensmt::pair<CRef, CRef> iorefs{CRef_Undef, CRef_Undef};
444434 bool res = solver.addOriginalSMTClause (c, iorefs);
445- if (keepPartitionInfo ()) {
446- CRef ref = iorefs.first ;
447- if (ref != CRef_Undef) {
448- ipartitions_t parts = 0 ;
449- assert (currentPartition != -1 );
450- setbit (parts, static_cast <unsigned int >(currentPartition));
451- pmanager.addClauseClassMask (ref, parts);
452- }
453- }
454435 return res;
455436}
456437//
0 commit comments