introduced likely_get_symbol_name, factoring out common logic