Ë
    pPêjì  ã                  ó0   — d Z ddlmZ ddlmZmZmZ dd„Zy)a%  Find basic blocks that are likely to be executed frequently.

For example, this would not include blocks that have exception handlers.

We can use different optimization heuristics for common and rare code. For
example, we can make IR fast to compile instead of fast to execute for rare
code.
é    )Úannotations)Ú
BasicBlockÚBranchÚGotoc                óÚ  — t        «       }| g}|rÛ|j                  «       }||v rŒ|j                  |«       |j                  }t	        |t
        «      r|j                  |j                  «       nzt	        |t        «      rj|j                  s|j                  �|j                  |j                  «       n6|j                  |j                  «       |j                  |j                  «       |rŒÛ|S )N)ÚsetÚpopÚaddÚ
terminatorÚ
isinstancer   ÚappendÚlabelr   ÚrareÚtraceback_entryÚfalseÚtrue)Úentry_pointÚresultÚworklistÚblockÚts        ú]/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/mypyc/analysis/blockfreq.pyÚfrequently_executed_blocksr      s±   € Ü!›e€FØˆ}€HÙ
Ø—‘“ˆØ�F‰?ØØ�
‰
�5ÔØ×ÑˆÜ�aœÔØ�O‰O˜AŸG™GÕ$Ü˜œ6Ô"Ø�vŠv˜×*Ñ*Ð6Ø—‘ §¡Õ(à—‘ §¡Ô'Ø—‘ §¡Ô(ò ð €Mó    N)r   r   Úreturnzset[BasicBlock])Ú__doc__Ú
__future__r   Úmypyc.ir.opsr   r   r   r   © r   r   ú<module>r       s   ðñõ #ç 1Ñ 1ôr   