Home - Summaries: (main) : (py3.11) : (py3.12) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

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 0x00007fd2b4ea7f68>

    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-macos-x86-64 build #1427+
test: pypy/module/pypyjit/test_pypy_c/test_00_model.py::TestRunPyPyC::()::test_loops_by_id