Skip to content

test_tangled_rjumpi()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py::test_tangled_rjumpi@83970623.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py::test_tangled_rjumpi --fork Osaka

EOF code containing tangled RJUMPI paths.

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
def test_tangled_rjumpi(
    eof_test: EOFTestFiller,
):
    """EOF code containing tangled RJUMPI paths."""
    container = Container.Code(
        code=(
            Op.PUSH0  # [0,0]
            + Op.PUSH0  # [1,1]
            + Op.RJUMPI[8]  # [2,2]
            + Op.PUSH1(127)  # [1,1]
            + Op.RJUMPI[7]  # [2,2]
            + Op.RJUMP[5]  # [1,1]
            + Op.PUSH0  # [1,1]
            + Op.RJUMP[0]  # [2,1]
            + Op.LT  # [1,x]
            + Op.STOP  # [1,x]
        )
    )
    eof_test(
        container=container,
        expect_exception=EOFException.STACK_UNDERFLOW,
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test