# Pastebin 4DAXLt1X >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> traceback >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> self = def test_compile_linear_loop(self): loop = parse(""" [i0] i1 = int_add(i0, 1) finish(i1, descr=faildescr) """, namespace={"faildescr": BasicFinalDescr(1)}) looptoken = JitCellToken() > self.cpu.compile_loop(loop.inputargs, loop.operations, looptoken) ../test/runner_test.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../llsupport/llmodel.py:113: in compile_loop looptoken, log) assembler.py:60: in assemble_loop allgcrefs) regalloc.py:193: in prepare_loop operations = self._prepare(inputargs, operations, allgcrefs) regalloc.py:183: in _prepare longevity, last_real_usage = compute_vars_longevity(inputargs, operations) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , var = 0 def __getitem__(self, var): > return self.longevity[var] E KeyError: 0 ../llsupport/regalloc.py:1043: KeyError >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> entering PDB >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [26] > /home/fijal/pypy/rpython/jit/backend/llsupport/regalloc.py(1043)__getitem__() -> return self.longevity[var]