@contextlib.contextmanager
def clean_path_on_failure(path):
    try:
        yield
    except BaseException:
        if os.path.exists(path):
            rmtree(path)
        raise
Return operand memory access translation.
dataset/ETHPy150Open pre-commit/pre-commit/pre_commit/util.py/clean_path_on_failure--crossover with--dataset/ETHPy150Open programa-stic/barf-project/barf/barf/arch/arm/armtranslator.py/ArmTranslationBuilder._compute_memory_address