def deduplicate(self, name):
        basename = name
        while self.is_used(name):
            ident = self._basenamemap[basename] + 1
            self._basenamemap[basename] = ident
            name = "{0}.{1}".format(basename, ident)
        return name
dataset/ETHPy150Open numba/llvmlite/llvmlite/ir/_utils.py/NameScope.deduplicate/original