}
} while (inputToSAT != simplified_solved_InputToSAT);
- bm->ASTNodeStats("After SimplifyWrites_Inplace: ", simplified_solved_InputToSAT);
- delete bvsolver;
- bvsolver = NULL;
+ bm->ASTNodeStats("After SimplifyWrites_Inplace: ",
+ simplified_solved_InputToSAT);
bm->start_abstracting = (arraywrite_refinement_flag) ? true : false;
bm->SimplifyWrites_InPlace_Flag = false;
return SOLVER_ERROR;
} //End of TopLevelSTPAux
- void STP::ClearAllTables(void)
- {
-// //Clear STPManager caches
-
-// //Clear ArrayTransformer caches
-
-// //Clear Simplifier caches
-
-// //Clear BVSolver caches
-
-// //Clear AbsRefine_CounterExample caches
-
-// //clear all tables before calling toplevelsat
-// //_ASTNode_to_SATVar.clear();
-// //_SATVar_to_AST.clear();
-
-// // for (ASTtoBitvectorMap::iterator it = _ASTNode_to_Bitvector.begin(),
-// // itend = _ASTNode_to_Bitvector.end(); it != itend; it++)
-// // {
-// // (it->second)->clear();
-// // delete (it->second);
-// // }
-// // _ASTNode_to_Bitvector.clear();
-
-// NodeLetVarMap.clear();
-// NodeLetVarMap1.clear();
-// PLPrintNodeSet.clear();
-// AlreadyPrintedSet.clear();
-// //ReferenceCount->clear();
-// //_arrayread_ite.clear();
-// //_introduced_symbols.clear();
-// //CounterExampleMap.clear();
-// //ComputeFormulaMap.clear();
-// StatInfoSet.clear();
-
-// _asserts.clear();
-
-// // for (ASTNodeToVecMap::iterator iset =
-// // _arrayname_readindices.begin(), iset_end =
-// // _arrayname_readindices.end(); iset != iset_end; iset++) {
-// // iset->second.clear(); }
-// // _arrayname_readindices.clear();
-
-// _interior_unique_table.clear();
-// _symbol_unique_table->clear();
-// _bvconst_unique_table.clear();
- }
-
- void STP::ClearAllCaches(void)
- {
-// //clear all tables before calling toplevelsat
-// //_ASTNode_to_SATVar.clear();
-// //_SATVar_to_AST.clear();
-
-// // for (ASTtoBitvectorMap::iterator it = _ASTNode_to_Bitvector.begin(),
-// // itend = _ASTNode_to_Bitvector.end(); it != itend; it++)
-// // {
-// // (it->second)->clear();
-// // delete (it->second);
-// // }
-// // _ASTNode_to_Bitvector.clear();
+// void STP::ClearAllTables(void)
+// {
+// // //Clear STPManager caches
+
+// // //Clear ArrayTransformer caches
+
+// // //Clear Simplifier caches
+
+// // //Clear BVSolver caches
+
+// // //Clear AbsRefine_CounterExample caches
+
+// // //clear all tables before calling toplevelsat
+// // //_ASTNode_to_SATVar.clear();
+// // //_SATVar_to_AST.clear();
+
+// // // for (ASTtoBitvectorMap::iterator it = _ASTNode_to_Bitvector.begin(),
+// // // itend = _ASTNode_to_Bitvector.end(); it != itend; it++)
+// // // {
+// // // (it->second)->clear();
+// // // delete (it->second);
+// // // }
+// // // _ASTNode_to_Bitvector.clear();
+
+// // NodeLetVarMap.clear();
+// // NodeLetVarMap1.clear();
+// // PLPrintNodeSet.clear();
+// // AlreadyPrintedSet.clear();
+// // //ReferenceCount->clear();
+// // //_arrayread_ite.clear();
+// // //_introduced_symbols.clear();
+// // //CounterExampleMap.clear();
+// // //ComputeFormulaMap.clear();
+// // StatInfoSet.clear();
+
+// // _asserts.clear();
+
+// // // for (ASTNodeToVecMap::iterator iset =
+// // // _arrayname_readindices.begin(), iset_end =
+// // // _arrayname_readindices.end(); iset != iset_end; iset++) {
+// // // iset->second.clear(); }
+// // // _arrayname_readindices.clear();
+
+// // _interior_unique_table.clear();
+// // _symbol_unique_table->clear();
+// // _bvconst_unique_table.clear();
+// }
+
+// void STP::ClearAllCaches(void)
+// {
+// // //clear all tables before calling toplevelsat
+// // //_ASTNode_to_SATVar.clear();
+// // //_SATVar_to_AST.clear();
+
+// // // for (ASTtoBitvectorMap::iterator it = _ASTNode_to_Bitvector.begin(),
+// // // itend = _ASTNode_to_Bitvector.end(); it != itend; it++)
+// // // {
+// // // (it->second)->clear();
+// // // delete (it->second);
+// // // }
+// // // _ASTNode_to_Bitvector.clear();
-// NodeLetVarMap.clear();
-// NodeLetVarMap1.clear();
-// PLPrintNodeSet.clear();
-// AlreadyPrintedSet.clear();
-// // SimplifyMap->clear();
-// // SimplifyNegMap->clear();
-// // ReferenceCount->clear();
-// // SolverMap.clear();
-// //AlwaysTrueFormMap.clear();
-// //_arrayread_ite.clear();
-// //_arrayread_symbol.clear();
-// //_introduced_symbols.clear();
-// //CounterExampleMap.clear();
-// //ComputeFormulaMap.clear();
-// StatInfoSet.clear();
-
-// // for (ASTNodeToVecMap::iterator iset = _arrayname_readindices.begin(), iset_end = _arrayname_readindices.end(); iset != iset_end; iset++)
-// // {
-// // iset->second.clear();
-// // }
+// // NodeLetVarMap.clear();
+// // NodeLetVarMap1.clear();
+// // PLPrintNodeSet.clear();
+// // AlreadyPrintedSet.clear();
+// // // SimplifyMap->clear();
+// // // SimplifyNegMap->clear();
+// // // ReferenceCount->clear();
+// // // SolverMap.clear();
+// // //AlwaysTrueFormMap.clear();
+// // //_arrayread_ite.clear();
+// // //_arrayread_symbol.clear();
+// // //_introduced_symbols.clear();
+// // //CounterExampleMap.clear();
+// // //ComputeFormulaMap.clear();
+// // StatInfoSet.clear();
+
+// // // for (ASTNodeToVecMap::iterator iset = _arrayname_readindices.begin(), iset_end = _arrayname_readindices.end(); iset != iset_end; iset++)
+// // // {
+// // // iset->second.clear();
+// // // }
-// // _arrayname_readindices.clear();
-// //_interior_unique_table.clear();
-// //_symbol_unique_table.clear();
-// //_bvconst_unique_table.clear();
- }
+// // // _arrayname_readindices.clear();
+// // //_interior_unique_table.clear();
+// // //_symbol_unique_table.clear();
+// // //_bvconst_unique_table.clear();
+// }
}; //end of namespace