pypy/module/pypyjit/test_pypy_c/test_00_model.py::TestRunPyPyC::()::test_loops_by_id
self = <pypy.module.pypyjit.test_pypy_c.test_00_model.TestRunPyPyC object at 0x0000000025f22bf0>
def test_loops_by_id(self):
def f():
i = 0
while i < 1003:
i += 1 # ID: increment
return i
#
log = self.run(f)
loop, = log.loops_by_id('increment')
assert loop.filename == self.filepath
assert loop.code.name == 'f'
#
ops = loop.allops()
assert log.opnames(ops) == [
# this is the actual loop
'int_lt', 'guard_true', 'int_add',
# this is the signal checking stuff
'guard_not_invalidated', 'getfield_raw_i', 'int_lt', 'guard_false',
> 'jump'
]
E assert ['guard_not_i...'int_lt', ...] == ['int_lt', 'gu...'int_lt', ...]
E At index 0 diff: 'guard_not_invalidated' != 'int_lt'
E Use -v to get the full diff
pypy/module/pypyjit/test_pypy_c/test_00_model.py:487: AssertionError
builder: pypy-c-jit-linux-aarch64 build #3041+
test: pypy/module/pypyjit/test_pypy_c/test_00_model.py::TestRunPyPyC::()::test_loops_by_id