@pytest.mark.valid_from("Osaka")deftest_worst_clz_diff_input(blockchain_test:BlockchainTestFiller,pre:Alloc,fork:Fork,gas_benchmark_value:int,env:Environment,):"""Test running a block with as many CLZ with different input as possible."""tx_gas_limit=fork.transaction_gas_limit_cap()orenv.gas_limitmax_code_size=fork.max_code_size()code_prefix=Op.JUMPDESTcode_suffix=Op.PUSH0+Op.JUMPavailable_code_size=max_code_size-len(code_prefix)-len(code_suffix)code_seq=Bytecode()foriinrange(available_code_size):value=(2**256-1)>>(i%256)clz_op=Op.CLZ(value)+Op.POPiflen(code_seq)+len(clz_op)>available_code_size:breakcode_seq+=clz_opattack_code=code_prefix+code_seq+code_suffixassertlen(attack_code)<=max_code_sizecode_address=pre.deploy_contract(code=attack_code)sender=pre.fund_eoa()tx_count=gas_benchmark_value//tx_gas_limitremainder_gas=gas_benchmark_value%tx_gas_limittxs=[Transaction(to=code_address,gas_limit=tx_gas_limitifi<tx_countelseremainder_gas,nonce=i,sender=sender,)foriinrange(tx_count+1)]blockchain_test(genesis_environment=env,pre=pre,post={},blocks=[Block(txs=txs)],)