← Back
Editing: argument_effects.cpython-311.pyc
� cR�a � �� � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z ddlmZ ddl Zdd lmZ G d � de� � Zi Zd� Z ej � � D ] Z ee� � � G d � de� � ZdS )z5 ArgumentEffects computes write effect on arguments. � )�Aliases)�GlobalDeclarations)�ModuleAnalysis)�MODULES)�DiGraph)� intrinsicN)�reducec � � e Zd Zd� ZdS )�FunctionEffectsc � � || _ t |t j � � r$dgt |j j � � z | _ d S t |t j � � rd� |j D � � | _ d S t |t j � � r g | _ d S t |t j � � r g | _ d S t �)NFc �B � g | ]}t |t j � � ��S � )� isinstancer �UpdateEffect)�.0�xs �C/usr/lib/python3/dist-packages/pythran/analyses/argument_effects.py� <listcomp>z,FunctionEffects.__init__.<locals>.<listcomp> s; � � #C� #C� #C�'(� $.�a��1G�#H�#H� #C� #C� #C� ) �funcr �ast�FunctionDef�len�args�update_effectsr � Intrinsic�argument_effects�alias�Class�NotImplementedError��self�nodes r �__init__zFunctionEffects.__init__ s� � ��� ��d�C�O�,�,� &�#(�'�C�� ��,?�,?�"?�D���� ��i�1� 2� 2� &�#C� #C�,0�,A�#C� #C� #C�D���� ��c�i� (� (� &�"$�D���� ��i�o� .� .� &�"$�D����%�%r N)�__name__� __module__�__qualname__r$ r r r r r s# � � � � � �&� &� &� &� &r r c � � | � � � D ]n}t |t � � rt |� � �'t |� � }|t |<