← Back
Editing: cfg.cpython-311.pyc
� cR�a� � �X � d Z ddlmZ ddlmZ ddlmZ ddlZd� Z G d� de� � Z dS ) z0 Computes the Control Flow Graph of a function. � )�FunctionAnalysis)�isnum)�DiGraphNc �> � t | � � r | j rdS t | t j � � r | j dk rdS t | t j t j t j f� � r | j rdS t | t j � � r | j rdS dS )NT�TrueF)r �value� isinstance�ast� Attribute�attr�List�Tuple�Set�elts�Dict�keys)�nodes �6/usr/lib/python3/dist-packages/pythran/analyses/cfg.py�is_true_predicater s� � ��T�{�{� �t�z� ��t��$�� �&�&� �4�9��+>�+>��t��$���3�9�c�g�6�7�7� �D�I� ��t��$���!�!� �d�i� ��t��5� c � � � e Zd ZdZ e� � Z� fd�Zd� Zd� ZexZ xZ ZexZxZ ZexZZd� Zd� ZeZd� Zd� ZexZZd � Zd � Zd� Z� xZS )�CFGa Computes the Control Flow Graph of a function. The processing of a node yields a pair containing * the OUT nodes, to be linked with the IN nodes of the successor * the RAISE nodes, nodes that stop the control flow (exception/break/...) c �| �� t � � | _ t t | � � � � � d S )N)r �result�superr �__init__)�self� __class__s �r r zCFG.__init__&