set STL errors code attached
hi
i have attached the code . the errors comes at the place subNetwork.insert(current);it crashes out at this line of code
plz can anybody help me out .
if(addThisOne)
{
cout<<" entred the condition addThisOne in CoptimizationEngine "<<endl;
addedAtThisLevel = true;
subNetwork.insert(current);
cout<<"&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"<<endl ;
reject.erase(current);
set<CNodeWrapper> & currentFaninNodes = current->getFaninNodes().m_osFanNodes;// raunaque
cout<<"the size is %%%%%%%%%% "<<currentFaninNodes.size()<<endl;
set<CNodeWrapper>::iterator itr_setNodeWrapper,currentFaninNodesBeg, currentFaninNodesEnd;
currentFaninNodesBeg = currentFaninNodes.begin();
currentFaninNodesEnd = currentFaninNodes.end();
cout<<"address of beg "<<(¤tFaninNodesBeg)<<endl;
cout<<"address of end "<<(¤tFaninNodesEnd)<<endl;
cout<<endl;
cout<<endl;
cout<<"the size is %%%%%%%%%% "<<currentFaninNodes.size()<<endl;
for(;currentFaninNodesBeg != currentFaninNodesEnd; ++currentFaninNodesBeg)
{
cout<<" size of @@@@@@@@@@@@"<<currentFaninNodes.size()<<endl;
currentFanIns.insert((*currentFaninNodesBeg)());
cout<<" fan in size raunaque "<<currentFanIns.size()<<endl;
}
/* for(itr_setNodeWrapper=current->getFaninNodes().m_osFanNodes.begin();itr_setNodeWrapper!= current->getFaninNodes().m_osFanNodes.end(); ++itr_setNodeWrapper)
{
currentFanIns.insert((*currentFaninNodesBeg)());
}*/
/* CNode *R_node=((*currentFaninNodesBeg)());
int i=currentFaninNodes.size();
for (int k=0;k<i;k++)
{
currentFanIns.insert(R_node);
cout<<" size of @@@@@@@@@@@@"<<currentFaninNodes.size()<<endl;
currentFaninNodesBeg++;
}*/
}// if addThisOne
else
{
reject.insert(current);
}
}
} // for nodesBeginInit
|