deduce which locations may share the same value from val_loc_map