

def __translate(self, asm_instrs):
    instr_container = ReilContainer()
    asm_instr_last = None
    instr_seq_prev = None
    for asm_instr in asm_instrs:
        instr_seq = ReilSequence()
        for reil_instr in self._translator.translate(asm_instr):
            instr_seq.append(reil_instr)
        if instr_seq_prev:
            instr_seq_prev.next_sequence_address = instr_seq.address
        instr_container.add(instr_seq)
        instr_seq_prev = instr_seq
    if instr_seq_prev:
        if asm_instr_last:
            instr_seq_prev.next_sequence_address = ((asm_instr_last.address + asm_instr_last.size) << 8)
    return instr_container

dataset/ETHPy150Open programa-stic/barf-project/barf/tests/core/reil/test_reilemulator.py ReilEmulatorTests.__translate/original