Lib.Krakatau.ssa.ssa_ops.new.pyc Maven / Gradle / Ivy
?
?HRc @ s? d d l m Z d d l m Z d d l m Z d d l m Z m Z m Z d e f d ? ? YZ
d e f d ? ? YZ d
e f d ? ? YZ d S(
i ( t BaseOpi ( t
SSA_OBJECT( t excepttypes( t ObjectConstraintt
IntConstraintt DUMMYt Newc B s e Z d ? Z d ? Z RS( c C s_ t t | ? j | | g d t d t ?| d f | _ | j t d | ?| _ | j | _ d S( Nt
makeExceptiont makeMonadi t origin( t superR t __init__t Truet ttt makeVariableR t rvalt env( t selft parentt namet monad( ( s? /home/alex/projects/github/krakatau/Krakatau/ssa/ssa_ops/new.pyR s (c C sU t j | j g t j f d t ?} t j | j g | j g d t ?} | | t f S( Nt nonnull( R t fromTopsR R t OOMR R
R ( R t mt eoutt rout( ( s? /home/alex/projects/github/krakatau/Krakatau/ssa/ssa_ops/new.pyt propagateConstraints s $$( t __name__t
__module__R R ( ( ( s? /home/alex/projects/github/krakatau/Krakatau/ssa/ssa_ops/new.pyR s t NewArrayc B s e Z d ? Z d ? Z RS( c C s{ t t | ? j | | | g d t d t ?| | _ | j t d | ?| _ | \ } } | | d f | _ | j | _ d S( NR R R i (
R
R R R t basetR R R R
R ( R R t paramR R t baset dim( ( s? /home/alex/projects/github/krakatau/Krakatau/ssa/ssa_ops/new.pyR s + c C s? | j d k r@ t j | j g t j f d t ?} d | | f St j f } | j d k rn | t j f 7} n t
| j t | j d ? | j ? } t j | j g | d t ?} t j | j g | j g d t d | ?} | | t
f S( Ni R t arrlen( t maxR R R R t
NegArrSizeR t NoneR t minR t widthR
R ( R R t iR t etypesR# R ( ( s? /home/alex/projects/github/krakatau/Krakatau/ssa/ssa_ops/new.pyR s $
$*( R R R R ( ( ( s? /home/alex/projects/github/krakatau/Krakatau/ssa/ssa_ops/new.pyR s t
MultiNewArrayc B s e Z d ? Z d ? Z RS( c C s] t t | ? j | | g | d t d t ?| | _ | j t d | ?| _ | j | _ d S( NR R R ( R
R+ R R R
R R R R ( R R t paramst type_R ( ( s? /home/alex/projects/github/krakatau/Krakatau/ssa/ssa_ops/new.pyR , s , c G s xN | D]F } | j d k r t j | j g t j f d t ?} d | | f Sq Wt j f } x1 | D]) } | j d k rd | t j f 7} Pqd qd Wt
| j t | d j d ? | d j ? } t j | j g | d t ?} t j | j g | j g d t d | ?} | | t
f S( Ni R R# ( R$ R R R R R% R R&