Skip to content

test_jumpf_with_inputs_stack_size_1024()

Documentation for tests/prague/eip7692_eof_v1/eip6206_jumpf/test_jumpf_execution.py::test_jumpf_with_inputs_stack_size_1024@verkle@v0.0.6.

Generate fixtures for these test cases for Pragueeip7692 with:

Pragueeip7692 only:

fill -v tests/prague/eip7692_eof_v1/eip6206_jumpf/test_jumpf_execution.py::test_jumpf_with_inputs_stack_size_1024 --fork=PragueEIP7692 --evm-bin=/path/to/evm-tool-dev-version

For all forks up to and including Pragueeip7692:

fill -v tests/prague/eip7692_eof_v1/eip6206_jumpf/test_jumpf_execution.py::test_jumpf_with_inputs_stack_size_1024 --until=PragueEIP7692

Test stack reaching 1024 items in target function of JUMPF with inputs

Source code in tests/prague/eip7692_eof_v1/eip6206_jumpf/test_jumpf_execution.py
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
def test_jumpf_with_inputs_stack_size_1024(
    eof_state_test: EOFStateTestFiller,
):
    """Test stack reaching 1024 items in target function of JUMPF with inputs"""
    eof_state_test(
        data=Container(
            sections=[
                Section.Code(
                    code=Op.PUSH0 * 1022 + Op.JUMPF[1],
                    max_stack_height=1022,
                ),
                Section.Code(
                    Op.SSTORE(slot_code_worked, value_code_worked) + Op.STOP,
                    code_inputs=3,
                    code_outputs=NON_RETURNING_SECTION,
                    max_stack_height=5,
                ),
            ],
        ),
        container_post=Account(storage={slot_code_worked: value_code_worked}),
    )