Ë
    pPêjú
  ã                  óâ   — d Z ddlmZ ddlZddlmZ ddlmZ ddl	m
Z
 ddlmZmZ ddlmZ dd	lmZ dd
lmZmZmZmZmZmZmZmZ ddlmZ ddlmZ ddlm Z  ddl!m"Z" ddl#m$Z$  G d„ de«      Z%y)z$Runner for lowering transform tests.é    )ÚannotationsN)ÚCompileError)Útest_temp_dir)ÚDataDrivenTestCase)ÚIS_FREE_THREADEDÚTOP_LEVEL_NAME)Úformat_func)ÚCompilerOptions)ÚICODE_GEN_BUILTINSÚMypycDataSuiteÚassert_test_outputÚbuild_ir_for_single_fileÚ%infer_ir_build_options_from_test_nameÚremove_comment_linesÚreplace_word_sizeÚuse_custom_builtins)Úinsert_exception_handling)Údo_flag_elimination)Úlower_ir)Úinsert_ref_count_opcodes)Úinsert_uninit_checksc                  ó    — e Zd Zg d¢ZeZdd„Zy)ÚTestLowering)zlowering-int.testzlowering-list.testzlowering-vec.testc                ó$  — t        |j                  «      }|€y d|j                  v rt        ry d|j                  v rt        sy t        t        j
                  j                  | j                  t        «      |«      5  t        |j                  «      }t        |«      }	 t        |j                  |«      }g }|D ]’  }|j                  t        k(  r|j                  j                  d«      sŒ2t!        d¬«      }t#        |d«       t%        |d«       t'        |«       t)        ||«       t+        ||«       |j-                  t/        |«      «       Œ” 	 t5        ||d|«       d d d «       y # t0        $ r}|j2                  }Y d }~Œ1d }~ww xY w# 1 sw Y   y xY w)NÚ_withgilÚ_nogilÚ	_toplevelT)Ústrict_traceback_checkszInvalid source code output)r   Únamer   r   ÚosÚpathÚjoinÚdata_prefixr   r   Úoutputr   r   Úinputr   Úendswithr
   r   r   r   r   r   Úextendr	   r   Úmessagesr   )ÚselfÚtestcaseÚoptionsÚexpected_outputÚirÚactualÚfnÚes           ú]/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/mypyc/test/test_lowering.pyÚrun_casezTestLowering.run_case"   sX  € Ü7¸¿¹ÓFˆØˆ?àØ˜Ÿ™Ñ&Õ+;àØ�x—}‘}Ñ$Õ-=àÜ ¤§¡§¡¨d×.>Ñ.>Ô@RÓ!SÐU]Ó^ñ 	`Ü2°8·?±?ÓCˆOÜ/°Ó@ˆOð3Ü-¨h¯n©n¸gÓF�ð �Øò 3�BØ—w‘w¤.Ò0¸¿¹×9OÑ9OÐP[Ô9\Ø Ü-ÀdÔK�Gô )¨¨TÔ2Ü-¨b°$Ô7Ü,¨RÔ0Ü˜R Ô)Ü'¨¨GÔ4Ø—M‘M¤+¨b£/Õ2ñ3ô ˜x¨Ð1MÈÔ_÷-	`ð 	`øô
  ò $ØŸ™•ûð$ú÷	`ð 	`ús7   Á;!FÂE$Â3B(FÅ$	FÅ-E>Å9FÅ>FÆFÆFN)r*   r   ÚreturnÚNone)Ú__name__Ú
__module__Ú__qualname__Úfilesr   Ú	base_pathr2   © ó    r1   r   r      s   „ ÚL€EØ€Iô!`r;   r   )&Ú__doc__Ú
__future__r   Úos.pathr    Úmypy.errorsr   Úmypy.test.configr   Úmypy.test.datar   Úmypyc.commonr   r   Úmypyc.ir.pprintr	   Úmypyc.optionsr
   Úmypyc.test.testutilr   r   r   r   r   r   r   r   Úmypyc.transform.exceptionsr   Ú mypyc.transform.flag_eliminationr   Úmypyc.transform.lowerr   Úmypyc.transform.refcountr   Úmypyc.transform.uninitr   r   r:   r;   r1   ú<module>rK      sO   ðÙ *å "ã å $Ý *Ý -ß 9Ý 'Ý )÷	÷ 	ó 	õ AÝ @Ý *Ý =Ý 7ô%`�>õ %`r;   