def __create_random_context(self):
        context = {}

        for reg in self.arch_info.registers_gp_base:
            if reg not in ['rsp', 'rip', 'rbp']:
                min_value, max_value = 0, 1 - 2**self.arch_info.operand_size
                context[reg] = random.randint(min_value, max_value)

        context['rflags'] = self.__create_random_flags()

        return context
dataset/ETHPy150Open programa-stic/barf-project/barf/tests/arch/x86/test_x86translator.py/X86TranslationTests.__create_random_context/swapped operands of `-`