src/PredFinder/common/ElfMultiDoc.cpp
// end for each trimmed name
//substrings are dangerous here

end for each trimmed name
substrings are dangerous here
end for each trimmed name substrings are dangerous here
BOOST_FOREACH(std::wstring name1, substring_names){
		std::set<int> index_set;
		for(size_t i = 0; i < cluster_split.size(); i++){
			BOOST_FOREACH(std::wstring cname, cluster_split[i]){
				if(cname.find(name1) != std::wstring::npos){
					index_set.insert(i);
				}
			}
		}
		if(index_set.size() == 1)
			cluster_split[(*index_set.begin())].insert(name1);
	}
BOOST_FOREACH ( std :: wstring name1 , substring_names ) { std :: set < int > index_set ; for ( size_t i = 0 ; i < cluster_split . size ( ) ; i ++ ) { BOOST_FOREACH ( std :: wstring cname , cluster_split [ i ] ) { if ( cname . find ( name1 ) != std :: wstring :: npos ) { index_set . insert ( i ) ; } } } if ( index_set . size ( ) == 1 ) cluster_split [ ( * index_set . begin ( ) ) ] . insert ( name1 ) ; }
end for each trimmed name
substrings are dangerous here
end for each trimmed name substrings are dangerous here