python (3.12.0)
͑e d dl Z d dlmZ d dlZd dlZ ed Zd dlmZ G d dej Z G d dej Z e
d k( r ej yy)
N)
import_module_opcode)stack_effectc e Zd Zd Zd Zy)OpcodeTestsc 0 | j t t j d d | j t t j d d d | j t t j d d d | j t t j d d d | j t
t d | j t
t t j d | j t
t t j d d t j }t d t j j D ] \ }}|t j k\ r| j |
5 ||vr(t | | j t
t |d n't |d | j t
t | d d d t t d t t j j z
D ]T }| j | 5 | j t
t | | j t
t |d d d d V y # 1 sw Y (xY w# 1 sw Y nxY w)
NPOP_TOPBUILD_SLICEr i0u c , | d t j vS Nr disdeoptmapitems E/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/test__opcode.py<lambda>z/OpcodeTests.test_stack_effect.<locals>.<lambda> d1gS\\.I opname )opcode)assertEqualr r opmapassertRaises
ValueErrorhasargfilteritemsr MIN_INSTRUMENTED_OPCODEsubTestsetrangevalues)selfhas_argnamecodes r test_stack_effectzOpcodeTests.test_stack_effect s cii &:;R@cii
&>BBGcii
&>BBGcii
&>BBG*lE:*lCIIm4LM*lCIIi4H!L** !I399??K\] FJD$v555T*
Fw& &%%j,aH q)%%j,E
F
F F c
Oc#))*:*:*<&== EDT*
E!!*lDA!!*lD!D
E
E E
F
F
E
Es
AI?<8J?J J c @ t j d }| j t |d d | j t |dd d | j t |dd d t j d }| j t |d d | j t |dd d | j t |dd d t j }t j
}t j t j z }t d t j j D ] \ }}|t j k\ r| j | 5 ||vr&t | }t |d } t |d }
n(t |d }t |dd } t |dd }
||v s||v r| j |t | |
n$| j | | | j |
| d d d y # 1 sw Y xY w)
NFOR_ITERr r T)jumpFJUMP_FORWARDc , | d t j vS r r r s r r z4OpcodeTests.test_stack_effect_jump.<locals>.<lambda>3 r r r )r r r r r"