src/PredFinder/common/ElfMultiDoc.cpp
// There is an entry in the entity-id-to-xdoc_id map for this entity ID. Retrieve all the primary xdoc_ids
// to which the entity ID points. Then make sure that there are entity-id-to-xdoc_id entries pointing
// from each entity ID in other_ids to each of the primary xdoc_ids (and that any preexisting entries
// are cleared).

There is an entry in the entity-id-to-xdoc_id map for this entity ID. Retrieve all the primary xdoc_ids
to which the entity ID points. Then make sure that there are entity-id-to-xdoc_id entries pointing
from each entity ID in other_ids to each of the primary xdoc_ids (and that any preexisting entries
are cleared).
There is an entry in the entity - id - to - xdoc_id map for this entity ID . Retrieve all the primary xdoc_ids to which the entity ID points . Then make sure that there are entity - id - to - xdoc_id entries pointing from each entity ID in other_ids to each of the primary xdoc_ids ( and that any preexisting entries are cleared ) .
BOOST_FOREACH(int other_eid, other_eids){
			_eid_to_xdoc_ids[other_eid].clear();
			BOOST_FOREACH(XDocIdType primary_xdoc_id, _eid_to_xdoc_ids[primary_eid]){
				_eid_to_xdoc_ids[other_eid].insert(primary_xdoc_id);
			}
		}
BOOST_FOREACH ( int other_eid , other_eids ) { _eid_to_xdoc_ids [ other_eid ] . clear ( ) ; BOOST_FOREACH ( XDocIdType primary_xdoc_id , _eid_to_xdoc_ids [ primary_eid ] ) { _eid_to_xdoc_ids [ other_eid ] . insert ( primary_xdoc_id ) ; } }
There is an entry in the entity-id-to-xdoc_id map for this entity ID.
There is an entry in the entity - id - to - xdoc_id map for this entity ID .