
NWc           @@  s  d  d l  m Z d  d l Z d  d l Z y e Wn! e k
 rS d  d l m Z n Xd d l m Z m	 Z	 m
 Z
 d d l m Z d d l m Z d d l m Z m Z d	 e f d
     YZ d e f d     YZ d   Z d  d  Z d e f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ e d d d d d d d d d d  g
  Z d! e f d"     YZ d# e f d$     YZ d% e f d&     YZ d' e f d(     YZ d) e f d*     YZ  d+ e f d,     YZ! d- e! f d.     YZ" d/ e f d0     YZ# d1 f  d2     YZ$ e$   Z% d3 e# f d4     YZ& d5   Z' d6 e& f d7     YZ( d8 e& f d9     YZ) d: e& f d;     YZ* d< e& f d=     YZ+ d> e& f d?     YZ, d@ e& f dA     YZ- dB e& f dC     YZ. dD e& f dE     YZ/ dF e& f dG     YZ0 dH e& f dI     YZ1 dJ e# f dK     YZ2 dL e# f dM     YZ3 i dN d dO f 6dP d dQ f 6dR dS dT f 6dU dS dO f 6dV dS dW f 6dX dS dY f 6dZ dS d[ f 6Z4 d\ e f d]     YZ5 d^ e5 f d_     YZ6 d` e5 f da     YZ7 db e7 f dc     YZ8 dd e f de     YZ9 df e9 f dg     YZ: dh e f di     YZ; dj   Z< dk   Z= dl   Z> dm   Z? dn f  do  Z@ dp   ZA dq   ZB dr e f ds     YZC dt e f du     YZD dv e f dw     YZE dx f ZF i dS dy 6d dz 6d d{ 6d d| 6d d} 6dS d~ 6dS d 6d d 6ZG d e f d     YZH d e f d     YZI d   ZJ d e f d     YZK d e f d     YZL d   ZM d e f d     YZN d e f d     YZO d d d d d d d d f ZP eQ eP  ZR eR jS d  ZT eR jS d  ZU eR jS d  ZV d  ZW dS ZX eO   ZY eN   ZZ e   Z[ e!   Z\ e& d  eW  Z] e& d eW  Z^ e& dS eW  Z_ e& d eW  Z` e& d eW  Za e& d   Zb e& d  Zc e& dS  Zd e& d  Ze e& d  Zf e& d  eX  Zg e& d eX  Zh e& dS eX  Zi e& d eX  Zj e& d eX  Zk e2 d d d Zl e2 d  Zm e2 d d d Zn e3 el  Zo e3 em  Zp e3 en  Zq e( d  Zr e) eT  Zs e* eT  Zt e, eT d eW  Zu e+ eU d eW  Zv e- eU d eX  Zw e. eU d eX  Zx e/ eU d eX  Zy e0 eU d eW  Zz e1 eU d eX  Z{ e8 e\  Z| e7 e\  Z} e7 e}  Z~ e7 eb  Z e7 e eb   Z e7 e]  Z e7 e e]   Z e7 e  Z e7 ed  Z e7 eu  Z e7 e eu   Z e7 ex  Z e7 ey  Z e7 ez  Z eK d d e  Z eE d d e d d  Z e7 e  Z eE d d e d d  Z e7 e  Z e  ec ed ee g d d Z e  el em g d d Z e  ec ed ee el em eo ep g d d Z eE d d e d d  Z eE d d e d d  Z e7 e  Z eE d d e d d  Z eE d d e d  d  Z eE d d e d d  Z i  e] d  d  d f 6eb d d  d f 6eg dS d  d f 6e^ d  d d f 6e_ d  d  d f 6e` d  d d f 6ea d  dS d f 6ec d d d f 6ed d d  d f 6ee d d d f 6ef d dS d f 6eh dS d d f 6ei dS d  d f 6ej dS d d f 6ek dS dS d f 6el d d  d f 6em d d  d f 6en d d d f 6ep d d  d f 6eo d d  d f 6ep d d  d f 6eq d d d f 6e\ d d  d f 6et d d  d f 6eu d  d  d f 6ev d  d  d f 6ew dS d  d f 6ex dS d  d f 6ey dS d  d f 6ez d  d  d f 6e{ dS d  d f 6e[ d d  d f 6Z d   Z e e d  Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z i  Z d   Z d d d  Z d S(   i    (   t   absolute_importN(   t   reducei   (   t   UtilityCodet   LazyUtilityCodet   TempitaUtilityCode(   t   StringEncoding(   t   Naming(   t   errort   warningt   BaseTypec           B@  s   e  Z g  Z d Z d Z d    Z d d  Z d d  Z d   Z	 d   Z
 d   Z d   Z d   Z d d d d  Z d	   Z e d
    Z d   Z d   Z d   Z d   Z d   Z d   Z RS(   c         C@  s   t  S(   N(   t   False(   t   selft   env(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   can_coerce_to_pyobject   s    c         C@  s   t  S(   N(   R
   (   R   R   t   format_spec(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   can_coerce_to_pystring"   s    c         C@  s   t  d   d  S(   Ns@   C types that support string formatting must override this method(   t   NotImplementedError(   R   t   cvaluet   codeR   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   convert_to_pystring%   s    c         C@  s   d |  j    | f S(   Ns   ((%s)%s)(   t   empty_declaration_code(   R   t	   expr_code(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt	   cast_code(   s    c         C@  s+   |  j  d  k r$ |  j d  |  _  n  |  j  S(   Nt    (   t   _empty_declarationt   Nonet   declaration_code(   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   +   s    c         C@  s   d } g  } xk |  j    j d d  j d d  j d d  D]9 } | | k r_ | j |  q= | j d t |   q= Wd	 j |  S(
   Nt?   ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_0123456789s	   unsigned t	   unsigned_s	   long longt	   long_longt    t   __s   _%x_R   (   R   t   replacet   appendt   ordt   join(   R   t   safet   allt   c(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   specialization_name0   s    7c         C@  s   | r d | | f S| Sd  S(   Ns   %s %s(    (   R   t	   base_codet   entity_code(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   base_declaration_code;   s    c         C@  s   |  S(   sg   
        Types never need to be copied, if we do copy, Unfortunate Things
        Will Happen!
        (    (   R   t   memo(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   __deepcopy__A   s    c         C@  s   | p |  j  } | s d  S| d  k r7 g  } t   } n  xi | D]a } t |  |  } | r> t | t  r{ | j | |  q x! | D] } | j | |  q Wq> q> W| S(   N(   t   subtypesR   t   sett   getattrt
   isinstanceR	   t   get_fused_types(   R   t   resultt   seenR-   t   attrt   list_or_subtypet   subtype(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR1   H   s    c         C@  s   | j  r |  j | j   S|  S(   N(   t   fused_to_specifict
   specialize(   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   specialize_fused\   s    	c         C@  s
   |  j    S(   sJ   
        Whether this type or any of its subtypes is a fused type
        (   R1   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   is_fusedb   s    c         C@  s   |  | k r i  Sd Sd S(   s   
        Deduce any template params in this (argument) type given the actual
        argument type.

        http://en.cppreference.com/w/cpp/language/function_template#Template_argument_deduction
        N(   R   (   R   t   actual(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   deduce_template_paramsk   s    c         C@  s"   t  t |    t  t |   k  S(   s   
        For sorting. The sorting order should correspond to the preference of
        conversion from Python types.

        Override to provide something sensible. This is only implemented so that
        python 3 doesn't trip
        (   t   idt   type(   R   t   other(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   __lt__w   s    c         C@  s   d S(   sR   
        Return the name of the Python type that can coerce to this type.
        N(    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   py_type_name   s    c         C@  s:   |  j  s |  j   d k r* |  j   } n t |   } | S(   sU   
        Return the string with which fused python functions can be indexed.
        t   object(   t   is_builtin_typeRA   t   str(   R   t
   index_name(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   typeof_name   s    c         C@  s   d S(   s   
        Return the code for a NULL-check in case an UnboundLocalError should
        be raised if an entry of this type is referenced before assignment.
        Returns None if no check should be performed.
        N(   R   (   R   t   cname(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   check_for_null_code   s    c         C@  s   d S(   s   
        Returns the most invalid value an object of this type can assume as a
        C expression string. Returns None if no such value exists.
        N(    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   invalid_value   s    N(   t   __name__t
   __module__R-   R   R   t   default_format_specR   R   R   R   R   R'   R*   R,   R1   R9   t   propertyR:   R<   R@   RA   RF   RH   RI   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR	      s(   										
			t	   PyrexTypec           B@  sX  e  Z d  Z d  Z d  Z d  Z d  Z d  Z d  Z d  Z	 d  Z
 d  Z d  Z d  Z d  Z d  Z d  Z d  Z d  Z d  Z d  Z d  Z d  Z d  Z d  Z d  Z d  Z d  Z d  Z d  Z d  Z d  Z d  Z  d Z! d   Z" d   Z# d   Z$ d   Z% d   Z& d   Z' d   Z( d	   Z) d
   Z* d   Z+ d   Z, d   Z- d   Z. d   Z/ d   Z0 d   Z1 RS(   i    R   c         C@  s   |  S(   N(    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   resolve   s    c         C@  s   |  S(   N(    (   R   t   values(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR8      s    c         C@  s
   t  |  S(   N(   RD   (   R   t   value(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   literal_code  s    c         C@  s   |  j  d d d j   S(   NR   t   for_displayi   (   R   t   strip(   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   __str__  s    c         K@  s   |  j  | j   |  S(   N(   t   same_as_resolved_typeRO   (   R   t
   other_typet   kwds(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   same_as  s    c         C@  s   |  | k p | t  k S(   N(   t
   error_type(   R   RW   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRV     s    c         C@  s   |  j  | j    S(   N(   t   subtype_of_resolved_typeRO   (   R   RW   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt
   subtype_of  s    c         C@  s   |  j  |  S(   N(   RY   (   R   RW   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR[     s    c         C@  s   |  j  | j    S(   N(   t   assignable_from_resolved_typeRO   (   R   t   src_type(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   assignable_from  s    c         C@  s   |  j  |  S(   N(   RY   (   R   R^   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR]     s    c         C@  s   |  S(   N(    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   as_argument_type  s    c         C@  s   d S(   Ni   (    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   is_complete   s    c         C@  s4   |  j  p3 |  j p3 |  j p3 |  j p3 |  j p3 |  j S(   N(   t   is_intt   is_floatt
   is_complext   is_pyobjectt   is_extension_typet   is_ptr(   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   is_simple_buffer_dtype%  s    $c         C@  s   d S(   Ni   (    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   struct_nesting_depth)  s    c         C@  s   d  S(   N(    (   R   t   entryR   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   global_init_code/  s    c         C@  s   d S(   Ni    (    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   needs_nonecheck3  s    (2   RJ   RK   Re   t   is_unspecifiedRf   t   is_final_typeRC   t
   is_numericRb   Rc   Rd   t   is_voidt   is_arrayRg   t   is_null_ptrt   is_referencet   is_constt   is_cfunctiont   is_struct_or_uniont   is_cpp_classt   is_cpp_stringt	   is_structt   is_enumt
   is_typedeft	   is_stringt   is_pyunicode_ptrt   is_unicode_chart   is_returncodet   is_errort	   is_buffert	   is_ctuplet   is_memoryviewslicet   has_attributest   default_valueRO   R8   RR   RU   RY   RV   R\   R[   R_   R]   R`   Ra   Rh   Ri   Rk   Rl   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRN      s`   :															c         C@  s   | r d | |  f S|  Sd  S(   Ns   %s(%s)(    (   R(   t   dll_linkage(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   public_decl7  s    c         C@  sa   | j  } | j s | rJ | rF | r- d } n d } t d |   n  | St |  | | |  Sd  S(   Nt   Fusedt   Complexs"   %s external typedefs not supported(   R:   Rd   t
   ValueErrort   CTypedefType(   t   namet	   base_typeRG   t   is_externalR:   t   msg(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   create_typedef_type=  s    		R   c           B@  s   e  Z d  Z d Z d Z d Z d g Z d d  Z d   Z	 d   Z
 d d d d  Z d   Z d   Z d	   Z d
   Z d   Z d   Z d   Z d d  Z d d d  Z e d  Z d   Z d   Z d   Z d   Z RS(   i   i    t   typedef_base_typec         C@  s8   | j  s t  | |  _ | |  _ | |  _ | |  _ d  S(   N(   Rd   t   AssertionErrort   typedef_namet   typedef_cnameR   t   typedef_is_external(   R   R   R   RG   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   __init__b  s
    			c         C@  s   |  j  j   S(   N(   R   RI   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRI   i  s    c         C@  s   |  j  j   S(   N(   R   RO   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRO   l  s    c         C@  s:   | s | r |  j  } n t |  j |  } |  j | |  S(   N(   R   R   R   R*   (   R   R)   RS   R   t   pyrexR(   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   o  s    c         C@  s   |  S(   N(    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR`   w  s    c         C@  s?   |  j  j r+ |  j  j } t |  j |  St j |  |  Sd  S(   N(   R   Rq   R   t   CPtrTypeR   R	   (   R   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   z  s    c         C@  s   d |  j  S(   Ns   <CTypedefType %s>(   R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   __repr__  s    c         C@  s   |  j  S(   N(   R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRU     s    c         C@  s>   t  |  j  } | j d |  j d |  } | | } | | f S(   NR>   t   TypeName(   t   type_identifierR   R8   (   R   t   template_utility_codet   template_function_namet	   type_namet   utility_codet   function_name(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   _create_utility_code  s    			
c         C@  s   |  j  r |  j s |  j } t |  t k rz d |  j   |  _ | j t j	 d d d i |  j
   d 6|  j d 6 t S| j r q | j r q n  |  j r | j |  j  t Sn  |  j j |  S(   Nt   __Pyx_PyInt_From_t   CIntToPys   TypeConversion.ct   contextt   TYPEt   TO_PY_FUNCTION(   R   t   to_py_utility_codeR   R>   t   CIntTypeR'   t   to_py_functiont   use_utility_codeR   t   load_cachedR   t   TrueRc   Rd   t   create_to_py_utility_code(   R   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s$    							c         C@  s   |  j  r |  j s |  j } t |  t k rz d |  j   |  _ | j t j	 d d d i |  j
   d 6|  j d 6 t S| j r q | j r q n  |  j r | j |  j  t Sn  |  j j |  S(   Nt   __Pyx_PyInt_As_t
   CIntFromPys   TypeConversion.cR   R   t   FROM_PY_FUNCTION(   R   t   from_py_utility_codeR   R>   R   R'   t   from_py_functionR   R   R   R   R   Rc   Rd   t   create_from_py_utility_code(   R   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s$    							c         C@  s1   | d  k r |  j } n  |  j j | | | |  S(   N(   R   R   R   t   to_py_call_code(   R   t   source_codet   result_codet   result_typeR   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    	c         C@  sU   | d  k r |  j } n  | d  k r6 |  j |  } n  |  j j | | | | | |  S(   N(   R   R   t   error_conditionR   t   from_py_call_code(   R   R   R   t	   error_posR   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    	c         C@  s  | j  t j d d   |  j   } |  j   } | d k rw | j  t j d d d i | d 6| d 6|  j d 6 n~ | r | d	 7} n  t |  | j  t j d
 d d i | d 6| d 6 | j  t j d d d i | d 6| d 6| d 6 d | | f S(   Nt   Commons
   Overflow.ct   lshiftt	   LeftShiftR   R   t   NAMEt   SIGNEDt   _constt	   SizeCheckt   Binopt   BINOPs   __Pyx_%s_%s_checking_overflow(	   R   R   t   loadR   R'   R   R   t   signedt   _load_overflow_base(   R   t   binopR   t	   const_rhsR>   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   overflow_check_binop  s"    	%
		c         C@  sX   |  j  rH |  j rH d | |  j |  j f } |  j rA | d 7} n  | Sn  |  j j |  S(   Ns   (%s == (%s)%s)s    && PyErr_Occurred()(   R   t   exception_valueR   t   exception_checkR   R   (   R   R   t	   condition(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    			c         C@  s   t  |  j |  S(   N(   R/   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   __getattr__  s    c         C@  s   |  j  j   S(   N(   R   RA   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRA     s    c         C@  s   |  j  j |  S(   N(   R   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    N(   RJ   RK   R{   R   R   R   R   R-   R   RI   RO   R   R`   R   R   RU   R   R   R   R   R   R
   R   R   R   RA   R   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   M  s.   															t   MemoryViewSliceTypec           B@  sj  e  Z d  Z d  Z d! Z d! Z d! Z d! Z e	 Z
 d g Z d   Z d   Z d   Z d   Z d   Z d   Z d d! d d	  Z d
   Z d   Z d! d! d  Z e e d  Z d d  Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z  d! d! d  Z! d   Z" d! d  Z# d   Z$ d   Z% d   Z& d   Z' d   Z( d   Z) d    Z* RS("   i   t   dtypec         C@  s   d d l  m } m } | |  _ | |  _ t |  |  _ | j |  j  |  _ | j	 |  j  \ |  _
 |  _ |  j
 oy |  j s t  | j |  |  _ t |  _ |  j j s | j |  j  |  _ n  d S(   s  
        MemoryViewSliceType(base, axes)

        Base is the C base type; axes is a list of (access, packing) strings,
        where access is one of 'full', 'direct' or 'ptr' and packing is one of
        'contig', 'strided' or 'follow'.  There is one (access, packing) tuple
        for each dimension.

        the access specifiers determine whether the array data contains
        pointers that need to be dereferenced along that axis when
        retrieving/setting:

        'direct' -- No pointers stored in this dimension.
        'ptr' -- Pointer stored in this dimension.
        'full' -- Check along this dimension, don't assume either.

        the packing specifiers specify how the array elements are layed-out
        in memory.

        'contig' -- The data are contiguous in memory along this dimension.
                At most one dimension may be specified as 'contig'.
        'strided' -- The data aren't contiguous along this dimenison.
        'follow' -- Used for C/Fortran contiguous arrays, a 'follow' dimension
            has its stride automatically computed from extents of the other
            dimensions to ensure C or Fortran memory layout.

        C-contiguous memory has 'direct' as the access spec, 'contig' as the
        *last* axis' packing spec and 'follow' for all other packing specs.

        Fortran-contiguous memory has 'direct' as the access spec, 'contig' as
        the *first* axis' packing spec and 'follow' for all other packing
        specs.
        i   (   t   Buffert
   MemoryViewN(   R   R   R   R   t   axest   lent   ndimt   get_buf_flagst   flagst   is_cf_contigt   is_c_contigt   is_f_contigR   t   get_modet   modeR
   t   writable_neededR:   t   mangle_dtype_namet
   dtype_name(   R   t
   base_dtypeR   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    "			c         C@  s-   t  |  j  t  |  j  At  t |  j   AS(   N(   t   hasht	   __class__R   t   tupleR   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   __hash__7  s    c         C@  s$   t  | t  r |  j |  St Sd  S(   N(   R0   R	   RV   R
   (   R   R?   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   __eq__:  s    c         C@  s:   | j  r0 |  j j | j  r0 |  j | j k p9 | t k S(   N(   R   R   RY   R   RZ   (   R   RW   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRV   @  s    	c         C@  s   t  S(   N(   R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRl   F  s    c         C@  s   d S(   Ni    (    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRa   I  s    i    c         C@  s=   | s t   | s t   d d l m } |  j | j |  S(   Ni   (   R   (   R   R   R   R*   t   memviewslice_cname(   R   R)   RS   R   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   M  s    c         C@  s   |  j  d  k r| d d l m } | j d |  j   d  d d |  _  } |  | _ i  | _ | j d t	 d  d d d	 d n  t
 S(
   Ni   (   t   Symtabt
   mvs_class_t
   visibilityt   externt   _dataRG   t   datat   is_cdef(   t   scopeR   R   R   t   CClassScopet   specialization_suffixt   parent_typet
   directivest   declare_vart   c_char_ptr_typeR   (   R   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   attributes_knownW  s    		c      
   C@  s  d d l  m } m } |  j } | d k rY | j d t t | j  | d d d d nB| d k r | j d t t | j  | d d d d n| d k r | j d t t | j  | d d d d n| d k rt |  j	  } d g } d g }	 | | d |	 }
 |	 | | d } t
 |  j |
  } t
 |  j |  } x | d f | d	 f g D] \ } } t | t d |  d   g  } | j |  } | j | | d | d d d | } | j | |  |  } | j |  q[W| j |  n | d k rx d d f D] \ } } | j | |  j  } t d t d t d |  d   g d d  } | j | | d | d d d | } | j | d k |  j  | _ qWn  t S(   Ni   (   R   t   Optionst   shapeRG   R   t   stridest
   suboffsetst   copyt   copy_fortrant   directt   followt   contigt   memviewslicet   post   definingR   R   R&   t   ft   return_typet   argsR   s   -1(   s   copyR   (   s   directR   (   s   directR   (   s   is_c_contigs   is_f_contig(   R&   s   is_c_contig(   R  s   is_f_contig(   R   R   R   R   R   t   c_array_typet   c_py_ssize_t_typet   buffer_max_dimsR   R   R   R   t	   CFuncTypet   CFuncTypeArgR   t   copy_c_or_fortran_cnamet   declare_cfunctiont   get_copy_new_utilityR   t   use_cython_array_utility_codet   get_is_contig_func_nameR   t   c_bint_typet   get_is_contig_utilityt   utility_code_definitionR   (   R   t	   attributeR   R   R   R   R   R   t
   follow_dimt
   contig_dimt	   to_axes_ct	   to_axes_ft   to_memview_ct   to_memview_ft
   to_memviewt   cython_namet   copy_func_typet
   copy_cnameRj   t   utilityt   c_or_ft   is_contig_namet	   cfunctype(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   declare_attributeh  sv    			
		
		
						c         C@  s   d d l  m } m } | d  k rU | j   sF | j sF | j sF t  | j   } n  | d  k rm | j	 } n  | j
 | | | | j  } | j |  S(   Ni   (   R   R   (   R   R   R   R   t	   is_simplet   is_tempt   is_elementalR   R2   R>   t   EntryR   t   MemoryViewSliceBufferEntry(   R   t   nodeRG   R>   R   R   Rj   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt	   get_entry  s    $c         C@  s   d d l  m } |  } | j | j k r, t S| j | j k rf | r_ | j | |  \ } } qf t Sn  xz t | j | j  D]c \ } } | \ } }	 | \ }
 } | |
 k r |
 d k r t S|	 | k r| | d k r| | r| t Sq| Wt S(   s  
        Returns True if src conforms to dst, False otherwise.

        If conformable, the types are the same, the ndims are equal, and each axis spec is conformable.

        Any packing/access spec is conformable to itself.

        'direct' and 'ptr' are conformable to 'full'.
        'contig' and 'follow' are conformable to 'strided'.
        Any other combo is not conformable.
        i   (   R   t   fullt   strided(	   R   R   R   R
   R   t   broadcast_typest   zipR   R   (   R   t   dstt	   broadcastt   copyingR   t   srct   src_spect   dst_spect
   src_accesst   src_packingt
   dst_accesst   dst_packing(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   conforms_to  s     "c         C@  s   | j  r | j j r t S| j rb | j d k rb x* | j j D] } |  j | j	  s> t Sq> Wt
 S| j p | j r | d k  r |  j | j | d  p | j p | j p | j p | j o |  j | j  S(   s   
        Return whether type dtype can be used as the base type of a
        memoryview slice.

        We support structs, numeric types and objects
        t   structi   i   (   Rd   t	   real_typeRb   R
   Ry   t   kindR   t   var_entriest   valid_dtypeR>   R   R   Rq   R   Ro   Re   R:   R{   R   (   R   R   t   it   member(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR;    s    	.			c         C@  s-   |  j  |  j  s) t | d |  j  n  d  S(   Ns*   Invalid base type for memoryview slice: %s(   R;  R   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   validate_memslice_dtype  s    c         C@  s;   x4 |  j  D]) \ } } | d k r
 t | d  t Sq
 Wt S(   NR   s   All dimensions must be direct(   R   R   R
   R   (   R   R   t   accesst   packing(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   assert_direct_dims	  s
    c         C@  s3   |  j  |  s t St |  j |  j d  d  d   S(   Ni(   RA  RZ   R   R   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt	   transpose  s    c         C@  s#   d t  t |   j   |  j   f S(   Ns   %s_%s(   t   superR   R'   R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR'     s    c         C@  s   d |  j    |  j f S(   Ns   %s_%s(   t   axes_to_nameR   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   t  S(   N(   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   | d S(   Ns   .memview(    (   R   RG   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRH      s    c         @  s  d d l  m } m       f d   } | j   j  | j | j  | j t |    j rp d } n  j r d } n d }  j	   } d | } t
 | j d  j d	  j d
 d j  j    d  j j   d  j j   d | d |  |  _ t S(   Ni   (   R   R   c         @  s/     j  |   j   d <t j d d d  S(   Nt   dtype_typeinfot   ObjectToMemviewSlices   MemoryView_C.cR   (   t   get_type_information_cnameR   R   R   (   R   (   R   R   R   (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   lazy_utility_callback'  s    t   __Pyx_IS_C_CONTIGt   __Pyx_IS_F_CONTIGt   0t"   __Pyx_PyObject_to_MemoryviewSlice_t   buf_flagR   t
   axes_specss   , t   dtype_typedeclRi   t   c_or_f_flagt   funcname(   R   R   R   R   t   acquire_utility_codet   memviewslice_init_codeR   R   R   R   t   dictR   R   R   R#   t   axes_to_codeR   R   Ri   R   R   (   R   R   R   RH  RP  t   suffixRQ  (    (   R   R   R   s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   #  s.    				
					c         C@  s8   d | | p |  j  | | j | p- |  j |  |  f S(   Ns   %s = %s(%s); %s(   R   t   error_goto_ifR   (   R   R   R   R   R   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   H  s
    c         C@  s   |  j  |  \ |  _ |  _ t S(   N(   t   dtype_object_conversion_funcst   _dtype_to_py_funct   _dtype_from_py_funcR   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   P  s    c         C@  sa   |  j  s t  |  j s t  d |  j  } d |  j } | | |  j | | |  j j f } d | S(   Ns   (PyObject *(*)(char *)) s   (int (*)(char *, PyObject *)) s4   %s = __pyx_memoryview_fromslice(%s, %s, %s, %s, %d);(   RY  R   RZ  R   R   Re   (   R   R   R   R   R   t
   to_py_funct   from_py_funct   tup(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   T  s    !c   
   	   C@  s&  d |  j  } d |  j  } t d | d |  } |  j j rD d } n |  j j |  } |  j j |  } | pq | sx d S|  j j s d } n  |  j j s d } n  d } |  j j d  p d	 } | j	 d
 |  j j d |  j j d |  j j
   d |  t j | d d | }	 | j |	  | | f S(   Ns   __pyx_memview_get_%ss   __pyx_memview_set_%st   get_functiont   set_functiont   MemviewObjectToObjectt   NULLt   MemviewDtypeToObjectRQ   s   PyErr_Occurred()R   R   R   R   s   MemoryView_C.cR   (   s   NULLs   NULL(   R   RT  R   Re   R   R   R   R   R   t   updateR   R   R   R   (
   R   R   R^  R_  R   t   utility_namet   to_pyt   from_pyR   R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRX  ^  s6    					c         C@  sK   d d l  m } | j } g  |  j D]$ \ } } d | | | | f ^ q# S(   s-   Return a list of code constants for each axisi   (   R   s	   (%s | %s)(   R   R   t   _spec_to_constR   (   R   R   t   dt   at   p(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRU    s    	c         C@  sT   d d l  m } | j } d j g  |  j D]$ \ } } d | | | | f ^ q)  S(   s'   Return an abbreviated name for our axesi   (   R   R   s   %s%s(   R   R   t   _spec_to_abbrevR#   R   (   R   R   Rh  Ri  Rj  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRD    s    	c         C@  s   d | S(   Ns   !%s.memview(    (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   d d l  m } g  } x t |  j  D] \ } \ } } | j | |  } | d k rf | j d  q& | d k r g  |  j | d | d !D] \ } } | d k r | ^ q }	 |	 s |  j d k r d } q n  | j d	 |  q& W|  j j r |  j j	 }
 n	 |  j }
 d
 |
 d j
 |  f S(   Ni   (   R   R)  t   :t
   contiguousi   R   t   1s   ::s   %s[%s]s   , (   R   R   t	   enumerateR   t   get_memoryview_flagR!   R   R   Re   R   R#   (   R   R   t   axes_code_listt   idxR?  R@  t   flagRi  Rj  t   have_followR   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRU     s     "%	c         C@  s5   |  j  j |  } | |  j  k	 r1 t | |  j  S|  S(   s&   This does not validate the base type!!(   R   R8   R   R   (   R   RP   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR8     s    c         C@  s   | S(   N(    (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    N(+   RJ   RK   R   R   R   R   R   R   R   R   R   R-   R   R   R   RV   Rl   Ra   R   R   R   R'  R
   R6  R;  R>  RA  RB  R'   R   R   RH   R   R   R   R   RX  RU  RD  R   RU   R8   R   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     sL   		2								Q#								&	
	&					t
   BufferTypec           B@  sz   e  Z d  Z e Z d g Z d   Z d   Z d   Z d   Z	 d   Z
 d   Z d   Z d	   Z d
   Z e d  Z RS(   i   R   c         C@  sI   | |  _  | |  _ | |  _ t |  |  _ | |  _ | |  _ | |  _ d  S(   N(   t   baseR   R   R   t   buffer_ptr_typeR   t   negative_indicest   cast(   R   Rv  R   R   R   Rx  Ry  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    					c         C@  s   t  S(   N(   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   |  S(   N(    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR`     s    c         C@  sM   |  j  j |  } | |  j  k	 rI t |  j | |  j |  j |  j |  j  S|  S(   N(   R   R8   Ru  Rv  R   R   Rx  Ry  (   R   RP   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR8     s
    c         C@  s/   d d l  m } | j s t  | j | j  S(   Ni   (   R   (   R   R   t   is_nameR   t   BufferEntryRj   (   R   R&  R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR'    s    c         C@  s   t  |  j |  S(   N(   R/   Rv  (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   d |  j  S(   Ns   <BufferType %r>(   Rv  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s5   d } |  j  r d } n  d |  j |  j |  j | f S(   NR   s
   ,cast=Trues   %s[%s,ndim=%d%s](   Ry  Rv  R   R   (   R   t   cast_str(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRU     s
    		c         C@  sA   | j  r1 |  j | d t o0 |  j j | j  S|  j j |  S(   Nt   compare_base(   R   RY   R
   Rv  R_   (   R   RW   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR_     s    	c         C@  s~   | j  s | j |  j  S|  j j | j  o} |  j | j k o} |  j | j k o} |  j | j k o} | p} |  j j | j  S(   N(   R   RY   Rv  R   R   R   Ry  (   R   RW   R}  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRY     s    	(   RJ   RK   R   R   t   writableR-   R   R   R`   R8   R'  R   R   RU   R_   RY   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRu    s   												t   PyObjectTypec           B@  s   e  Z d  Z d Z d Z d Z e Z e Z	 e Z
 d   Z d   Z d   Z d   Z d   Z d d d d	  Z d
   Z d   Z d   Z d   Z d   Z RS(   RB   i   RK  c         C@  s   d S(   Ns   Python object(    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRU     s    c         C@  s   d S(   Ns   <PyObjectType>(    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   t  S(   N(   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   d S(   s=   The default C type that this Python type coerces to, or None.N(   R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   default_coerced_ctype  s    c         C@  s   | j  p | j p | j S(   N(   Rg   R|   R}   (   R   R^   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR_      s    i    c         C@  s>   | s | r d } n t  d |  } d | } |  j | |  S(   NRB   t   PyObjects   *%s(   R   R*   (   R   R)   RS   R   R   R(   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   $  s
    	
c         C@  s&   |  j    s |  j r d | S| Sd  S(   Ns   (PyObject *)(   Ra   Rf   (   R   RG   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   as_pyobject-  s    c         C@  s   d S(   NRB   (    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRA   3  s    c         C@  s   t  S(   ss   
        Make sure we sort highest, as instance checking on py_type_name
        ('object') is always true
        (   R
   (   R   R?   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR@   6  s    c         C@  s   | j  | d t d  S(   Nt   nanny(   t   put_init_var_to_py_noneR
   (   R   Rj   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRk   =  s    c         C@  s   | S(   N(    (   R   RG   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRH   @  s    N(   RJ   RK   R   Re   R   R   t   buffer_defaultsR
   t	   is_externt   is_subclassedt   is_gc_simpleRU   R   R   R  R_   R   R  RA   R@   Rk   RH   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s$   									t   boolt   intt   longt   floatt   complext	   bytearrayt   bytest   unicodeRD   t
   basestringt   BuiltinObjectTypec           B@  s   e  Z d  Z d  Z d Z d Z d Z d Z d Z	 e
 Z e
 Z d Z d d  Z d   Z d   Z d   Z d   Z d   Z d	   Z d
   Z d   Z e
 d  Z d   Z e e
 d  Z d d d d  Z d   Z e d  Z d   Z RS(   i   t   __builtin__R  c         C@  sS   | |  _  | |  _ d | |  _ | |  _ | t k |  _ | d k rO | |  _ n  d  S(   Ns   (&%s)R>   (   R   RG   t   typeptr_cnamet   objstruct_cnamet*   builtin_types_that_cannot_create_refcyclesR  t	   decl_type(   R   R   RG   R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   Z  s    			c         C@  s   | |  _  | r |  | _ n  d  S(   N(   R   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt	   set_scopee  s    	c         C@  s   d |  j  S(   Ns	   %s object(   R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRU   j  s    c         C@  s   d |  j  S(   Ns   <%s>(   RG   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   m  s    c         C@  s=   |  j  d k r t S|  j  d k r& t S|  j  d k r9 t Sd  S(   NR  R  R  R  (   s   bytess	   bytearray(   R   R   R  t   c_double_typeR   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  p  s    c         C@  sn   t  | t  r> |  j d k r+ | j d k S| j |  j k Sn, | j rf | j d k oe | j |  j k St Sd  S(   NR  RD   R  R  (   s   strs   unicodes
   basestring(   R0   R  R   Rf   t   module_nameR   (   R   R^   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR_   y  s    	c         C@  s   t  S(   N(   R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   typeobj_is_available  s    c         C@  s   t  S(   N(   R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   | j  o | j |   S(   N(   Re   R_   (   R   R>   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR\     s    c         C@  s   |  j  } | d k r d } nO | d k r3 d } n: | d k rH d } n% | d k r] d } n d	 | j   } | r | d k r | d 7} n  | S(   NRD   t   PyString_CheckR  t   __Pyx_PyBaseString_CheckR  t   PyByteArray_Checkt	   frozensett   PyFrozenSet_Checks
   Py%s_CheckR  t   slicet   Exact(   s   bools   slice(   R   t
   capitalize(   R   t   exactR   t
   type_check(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   type_check_function  s    					c         C@  s   d |  j  d t  | f S(   Ns   %s(%s)R  (   R  R
   (   R   t   arg(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   isinstance_code  s    c   	      C@  s   |  j  d |  } d | | f } | s9 | d | 7} n  |  j d k rW d } d } n( d |  j } t |  j  d d d } d	 | | | f } | d
 | S(   NR  s   likely(%s(%s))s   ||((%s) == Py_None)R  s-   (PY_MAJOR_VERSION < 3 ? "basestring" : "str")i   s   "%s"i   s\   (PyErr_Format(PyExc_TypeError, "Expected %%.%ds, got %%.200s", %s, Py_TYPE(%s)->tp_name), 0)s   ||(   R  R   R   (	   R   R  t   notnoneR  R  t   checkR   t   space_for_nameR   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   type_test_code  s    	i    c         C@  sD   | s | r |  j  } n t |  j |  } d | } |  j | |  S(   Ns   *%s(   R   R   R  R*   (   R   R)   RS   R   R   R(   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s
    
c         C@  s   |  j  d k r | Sd | Sd  S(   NR  s   (PyObject *)(   R  (   R   RG   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s    c         C@  s    d | r |  j  p |  j | f S(   Ns	   ((%s*)%s)(   R  R  (   R   R   t   to_object_struct(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   |  j  S(   N(   R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRA     s    N(   RJ   RK   RC   R   R   R   R  t   vtabslot_cnamet   vtabstruct_cnamet   vtabptr_cnameR   t   typedef_flagR   R  R   R  RU   R   R  R_   R  R   R\   R  R  R
   R  R   R  R   RA   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  J  s4   											t   PyExtensionTypec           B@  s   e  Z d  Z d  Z d Z d d  Z d   Z d   Z d   Z	 d   Z
 d   Z d   Z d d d d d	  Z e d
  Z d   Z d   Z d   Z d   Z RS(   i   i    c         C@  s   | |  _  d  |  _ | |  _ | d  k	 r3 t | _ n  | |  _ d  |  _ d  |  _ d  |  _	 d  |  _
 d  |  _ d  |  _ d  |  _ d  |  _ | |  _ g  |  _ d  S(   N(   R   R   R   R  R   R  R   R  R  t   typeobj_cnameR  R  R  R  t   vtable_cnameR   t   defered_declarations(   R   R   R  R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s     													c         C@  s   | |  _  | r |  | _ n  d  S(   N(   R   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s    	c         C@  s   t  S(   N(   R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRl     s    c         C@  sE   | j  s | j r7 |  | k p6 |  j o6 |  j j |  S| t k Sd  S(   N(   Rf   RC   R   R\   t   py_object_type(   R   RW   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR[     s    c         C@  s   |  j  S(   N(   R  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  	  s    c         C@  s   |  j  d  k o |  j d  k	 S(   N(   R  R   R  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   typeobj_is_imported  s    c         C@  ss   |  | k r t  St | t  rA | j d  k	 rA |  j | j  Sn  t | t  ro |  j d k on |  j | j k St	 S(   NR  (
   R   R0   R  R   R   R_   R  R  R   R
   (   R   R^   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR_     s    c         C@  sy   | s | r |  j  } nQ |  j r- |  j } n d |  j } t | |  } | r_ | si t  n
 d | } |  j | |  S(   Ns	   struct %ss   *%s(   R   R  R  R   R   R*   (   R   R)   RS   R   R   t   derefR(   t	   objstruct(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   "  s    	
c         C@  s9   d | } d | |  j  f } | r' | Sd | | f Sd  S(   Ns   ((%s) == Py_None)s   likely(__Pyx_TypeTest(%s, %s))s   likely(%s || %s)(   R  (   R   t   py_argR  t
   none_checkR  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  2  s    
c         C@  s   |  j  d  k	 S(   N(   R   R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   <  s    c         C@  s   |  j  S(   N(   R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRU   ?  s    c         C@  s   d |  j  j d |  j f S(   Ns   <PyExtensionType %s%s>R   s    typedef(   R   s    typedef(   R   t
   class_nameR  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   B  s    c         C@  s$   |  j  s |  j Sd |  j  |  j f S(   Ns#   __import__(%r, None, None, ['']).%s(   R  R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRA   F  s    		N(   RJ   RK   Rf   R   R   t   objtypedef_cnameR   R  Rl   R[   R  R  R_   R   R
   R  R   RU   R   RA   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s    						
			t   CTypec           B@  s_   e  Z d Z d Z d Z d  Z d   Z d   Z d   Z	 d   Z
 d d  Z d d d  Z RS(   i   c         C@  s   |  j  d  k	 S(   N(   R   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   Z  s    c         C@  s   |  j  d  k	 S(   N(   R   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   ]  s    c         C@  s   |  j  |  S(   N(   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   `  s    c         C@  s   g  } |  j  s |  j r, | j d |  n5 |  j d  k	 ra | j d | |  j   |  j f  n  |  j rz | j d  n  t |  d k r d j |  Sd Sd  S(   Ns   (!%s)s   (%s == (%s)%s)s   PyErr_Occurred()i    s    && (	   R|   R}   R!   R   R   t   sign_and_nameR   R   R#   (   R   R   t   conds(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   c  s    &	c         C@  s   | d  k r |  j n | } | s' t  |  j s9 |  j r | j r | j } | d
 k ru | j d | j   d  } q | d k r | j d d d  } q q n  d | | | p d	 f S(   NR  RD   R  t   Objecti   R  t	   ByteArrays   %s = %s(%s)Ra  (   s   bytess   strs   unicode(	   R   R   R   R|   Rx   RC   R   R    t   title(   R   R   R   R   R   t   funct   result_type_name(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   p  s    		c         C@  s8   d | | p |  j  | | j | p- |  j |  |  f S(   Ns   %s = %s(%s); %s(   R   RW  R   (   R   R   R   R   R   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s
    N(   RJ   RK   R   R   R   R   R   R   R   R   R   R   R   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  M  s   				t
   CConstTypec           B@  sh   e  Z d  Z d   Z d   Z d   Z d d d d  Z d   Z d   Z	 d   Z
 d	   Z d
   Z RS(   i   c         C@  sM   | |  _  | j rI | j d  k	 rI d d l m } | j | j  |  _ n  d  S(   Ni   (   R   (   t   const_base_typeR   R   R   R   R   t   CConstScope(   R   R  R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    	c         C@  s   d t  |  j  S(   Ns   <CConstType %s>(   t   reprR  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   |  j  d d d S(   NR   RS   i   (   R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRU     s    i    c         C@  sJ   | s | r) d |  j  j | | | |  S|  j  j d | | | |  Sd  S(   Ns   const s   const %s(   R  R   (   R   R)   RS   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s3   |  j  j |  } | |  j  k r% |  St |  Sd  S(   N(   R  R8   R  (   R   RP   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR8     s    c         C@  s   |  j  j |  S(   N(   R  R<   (   R   R;   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR<     s    c         C@  s   |  j  j |  S(   N(   R  R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s)   |  j  j |  r% |  j  j |  _ t Sd  S(   N(   R  R   R   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   t  |  j |  S(   N(   R/   R  (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    N(   RJ   RK   Rt   R   R   RU   R   R   R8   R<   R   R   R   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s   							t	   FusedTypec           B@  sY   e  Z d  Z d Z d Z d d  Z d d d d  Z d   Z d   Z	 d d d  Z
 RS(	   st  
    Represents a Fused Type. All it needs to do is keep track of the types
    it aggregates, as it will be replaced with its specific version wherever
    needed.

    See http://wiki.cython.org/enhancements/fusedtypes

    types           [PyrexType]             is the list of types to be fused
    name            str                     the name of the ctypedef
    i   i    c         C@  s   g  } xf | D]^ } | j  rO xL | j D]" } | | k r& | j |  q& q& Wq | | k r | j |  q q W| |  _ | |  _ d  S(   N(   R:   t   typesR!   R   (   R   R  R   t   flattened_typest   tR6   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    		c         C@  s#   | s | r |  j  St d   d  S(   Ns*   This may never happen, please report a bug(   R   t	   Exception(   R   R)   RS   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   d |  j  S(   Ns   FusedType(name=%r)(   R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   | |  S(   N(    (   R   RP   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR8     s    c         C@  s@   | d  k r |  g S|  | k r< | j |   | j |   n  d  S(   N(   R   R!   t   add(   R   R2   R3   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR1     s
    N(   RJ   RK   t   __doc__R:   R   R   R   R   R   R8   R1   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s   
		t	   CVoidTypec           B@  s8   e  Z d  Z d Z d   Z d d d d  Z d   Z RS(   i   t   __Pyx_void_to_Nonec         C@  s   d S(   Ns   <CVoidType>(    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    i    c         C@  s4   | s | r d } n t  d |  } |  j | |  S(   Nt   void(   R   R*   (   R   R)   RS   R   R   R(   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    	c         C@  s   d S(   Ni    (    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRa     s    N(   RJ   RK   Rp   R   R   R   R   Ra   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s
   	t   InvisibleVoidTypec           B@  s   e  Z d  d d  d  Z RS(   i    c         C@  s4   | s | r d } n t  d |  } |  j | |  S(   Ns   [void]R   (   R   R*   (   R   R)   RS   R   R   R(   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    	N(   RJ   RK   R   R   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s   t   CNumericTypec           B@  sq   e  Z d  Z d Z e Z d Z d Z d  d  Z	 d   Z
 d   Z d d d d	  Z d
   Z d   Z d   Z RS(   i   RK  s	   unsigned R   s   signed c         C@  s7   | |  _  | d k r* | t k r* d } n  | |  _ d  S(   Ni    i   (   t   rankR   R   (   R   R  R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    		c         C@  s%   |  j  |  j } t |  j } | | S(   N(   t
   sign_wordsR   t   rank_to_type_nameR  (   R   t   st   n(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  #  s    c         C@  s   d |  j    S(   Ns   <CNumericType %s>(   R  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   (  s    i    c         C@  sL   |  j    } | s | r- | j d d  } n t | |  } |  j | |  S(   Nt   PY_LONG_LONGs	   long long(   R  R    R   R*   (   R   R)   RS   R   R   R   R(   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   +  s
    c      	   C@  s   |  j  d  k r d d l m } | j d d  d d |  _  } |  | _ i  | _ | j d t |  t	 d |  d   g d t
 d	 d  d
 d d d n  t
 S(   Ni   (   R   R   R   R   t	   conjugateR   t   nogilR   R   RG   R   (   R   R   R   R   R   R   R   R
  R  R  R   (   R   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   4  s    		$
c         C@  s/   | j  r+ |  j | j k o* |  j | j k St S(   s3   Sort based on rank, preferring signed over unsigned(   Ro   R  R   R   (   R   R?   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR@   E  s    	"c         C@  s   |  j  d k r d Sd S(   Ni   s   (int, long)R  (   R  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRA   M  s    N(   s	   unsigned R   s   signed (   RJ   RK   Ro   R   R   R   R   R   R  R   R  R   R   R   R@   RA   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s   				t   ForbidUseClassc           B@  s   e  Z d    Z d   Z RS(   c         C@  s   t     d  S(   N(   t   RuntimeError(   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   T  s    c         C@  s   t     d  S(   N(   R  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRU   V  s    (   RJ   RK   R   RU   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  S  s   	R   c           B@  s   e  Z d  Z d Z d Z d Z d Z d Z d Z	 d   Z
 e d    Z d d  Z d d  Z d   Z d	   Z d
   Z d   Z d   Z e d  Z RS(   i   i    Rh  ic         C@  s   t  S(   N(   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   e  s    c         C@  s   d } |  s d d | f S|  d } | d k r< |  d  } n( | j    rW d } |  } n d  d | f S| sw | d | f S| d d k r | d	 } n  | r | d d
 k r d
 } | j d
  } n  | j    r | t |  | f Sd  d | f S(   NR   Rh  i    it   ot   xt   Xt   -i   RK  (   R  Rh  R  R  (   t   isdigitR   t   lstripR  (   R   t   paddingt   format_typet   prefix(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   _parse_formath  s(    
	c         C@  s.   |  j  |  \ } } } | d  k	 o- | d k S(   Ni   i   i   @(   R  R   (   R   R   R   R  t   widthR  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c   	      C@  s   |  j  d  k r] d |  j   } t j d d d i |  j   d 6| d 6} | | f |  _  n |  j  \ } } | j j |  |  j |  \ } } } d | | | | | f S(   Nt   __Pyx_PyUnicode_From_t   CIntToPyUnicodes   TypeConversion.cR   R   R   s   %s(%s, %d, '%s', '%s')(	   t   to_pyunicode_utilityR   R'   R   R   R   t   globalstateR   R  (	   R   R   R   R   t   utility_code_nameR  R  R  t   padding_char(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    	c         C@  se   t  |   j d  k ra d |  j   |  _ | j t j d d d i |  j   d 6|  j d 6 n  t S(   NR   R   s   TypeConversion.cR   R   R   (	   R>   R   R   R'   R   R   R   R   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    	c         C@  se   t  |   j d  k ra d |  j   |  _ | j t j d d d i |  j   d 6|  j d 6 n  t S(   NR   R   s   TypeConversion.cR   R   R   (	   R>   R   R   R'   R   R   R   R   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    	c         C@  s   |  j  t t  j d  k  r" d Sd } d } d } |  j sL d } d } n  |  j  t t  j d  k ry d } d } n  d	 | | | f Sd  S(
   NR  t   PyInt_FromLongt   IntR   t   Longt   UnsignedR  t   LongLongs   Py%s_From%s%s(   R  t   listR  t   indexR   (   R   t   Prefixt   SignWordR   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   get_to_py_type_conversion  s    			c         C@  s   | j  p | j p | t k S(   N(   Rb   Rz   RZ   (   R   R^   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR]     s    c         C@  s%   t  t |  j  d k r d Sd Sd  S(   Nt   chars   '?'t
   0xbad0bad0(   R  R  R  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRI     s    c         C@  s  | j  t j d d   |  j   } |  j   } | d k rw | j  t j d d d i | d 6| d 6|  j d 6 n| r | d	 7} n  | d k r | j  t j d d d i | d 6| d 6 n | d k r| j  t j d d d i | d 6| d 6 n |  j d k rd | | f St	 |  | j  t j d d d i | d 6| d 6 | j  t j d d d i | d 6| d 6| d 6 d | | f S(   NR   s
   Overflow.cR   R   R   R   R   R   R   R  R  s	   long longt   BaseCaseSignedt   INTs   unsigned ints   unsigned longs   unsigned long longt   BaseCaseUnsignedt   UINTi   s   __Pyx_%s_%s_no_overflowR   R   R   s   __Pyx_%s_%s_checking_overflow(   s   ints   longs	   long long(   s   unsigned ints   unsigned longs   unsigned long long(
   R   R   R   R   R'   R   R   R   R  R   (   R   R   R   R   R>   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s6    	%		
		N(   RJ   RK   Rb   R  R   R   R   R  RL   R   R   t   staticmethodR  R   R   R   R   R  R]   RI   R
   R   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   [  s"   									c      
   C@  s   |  j  t j d d   xG d D]? } |  j  t j d d d i | d 6| j d	 d
  d 6 q  WxG d D]? } |  j  t j d d d i | d 6| j d	 d
  d 6 qj Wd  S(   NR   s
   Overflow.cR  R  s	   long longR  R   R  R   t   _R   s   unsigned ints   unsigned longs   unsigned long longR  R   (   s   ints   longs	   long long(   s   unsigned ints   unsigned longs   unsigned long long(   R   R   R   R   R   R    (   R   R>   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    	(	t   CAnonEnumTypec           B@  s   e  Z d  Z d   Z RS(   i   c         C@  s   d S(   NR  (    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s    (   RJ   RK   Rz   R  (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s   t   CReturnCodeTypec           B@  s8   e  Z d  Z e Z e Z d Z d d  Z	 d d  Z
 RS(   t   __Pyx_Owned_Py_NoneR   c         C@  s   | S(   N(    (   R   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s    d | j  j t j d   j S(   Ns   __Pyx_NewRef(%s)R   (   R  t   get_py_string_constR   t   EncodedStringRG   (   R   R   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    N(   RJ   RK   R   R   R   R
   R   RL   R   R   R   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s   t	   CBIntTypec           B@  se   e  Z d  Z d Z d Z d Z d d  Z d d  Z d d d d  Z	 d   Z
 d	   Z d
   Z RS(   t   __Pyx_PyBool_FromLongt   __Pyx_PyObject_IsTruei   R   c         C@  s    | p t  t |   j | |  S(   N(   RC  R  R   (   R   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   | r" t  t |   j | | |  Sd |  j   } t j d d d i | j j t j	 d   j
 d 6| j j t j	 d   j
 d 6| d	 6} | j j |  d
 | | f S(   Nt   __Pyx_PyUnicode_FromBInt_t   CBIntToPyUnicodes   TypeConversion.cR   R   t
   TRUE_CONSTR
   t   FALSE_CONSTR   s   %s(%s)(   RC  R  R   R'   R   R   R  R  R   R  RG   R   (   R   R   R   R   R  R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    i    c         C@  s=   | r d } n | r d } n t  d |  } |  j | |  S(   NR  t   bintR  (   R   R*   (   R   R)   RS   R   R   R(   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    		c         C@  s   d S(   Ns   <CNumericType bint>(    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   '  s    c         C@  s   d S(   NR  (    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRU   *  s    c         C@  s   d S(   NR  (    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRA   -  s    N(   RJ   RK   R   R   R   RL   R   R   R   R   R   RU   RA   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s   			t   CPyUCS4IntTypec           B@  s8   e  Z e Z d  Z d Z d d  Z d   Z d   Z	 RS(   t   PyUnicode_FromOrdinalt   __Pyx_PyObject_AsPy_UCS4c         C@  s   t  S(   N(   R
   (   R   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   ?  s    c         C@  s   | j  t j d d   t S(   Nt   ObjectAsUCS4s   TypeConversion.c(   R   R   R   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   B  s    c         C@  s   d S(   Nt   Py_UCS4(    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  F  s    N(
   RJ   RK   R   R~   R   R   R   R   R   R  (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  1  s   	t   CPyUnicodeIntTypec           B@  s8   e  Z e Z d  Z d Z d d  Z d   Z d   Z	 RS(   R  t   __Pyx_PyObject_AsPy_UNICODEc         C@  s   t  S(   N(   R
   (   R   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   W  s    c         C@  s   | j  t j d d   t S(   Nt   ObjectAsPyUnicodes   TypeConversion.c(   R   R   R   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   Z  s    c         C@  s   d S(   Nt
   Py_UNICODE(    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  ^  s    N(
   RJ   RK   R   R~   R   R   R   R   R   R  (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  J  s   	t   CPyHashTTypec           B@  s   e  Z d  Z d Z d   Z RS(   t   __Pyx_PyInt_FromHash_tt   __Pyx_PyInt_AsHash_tc         C@  s   d S(   Nt	   Py_hash_t(    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  g  s    (   RJ   RK   R   R   R  (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  b  s   t   CPySSizeTTypec           B@  s   e  Z d  Z d Z d   Z RS(   t   PyInt_FromSsize_tt   __Pyx_PyIndex_AsSsize_tc         C@  s   d S(   Nt
   Py_ssize_t(    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  o  s    (   RJ   RK   R   R   R  (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  j  s   t   CSSizeTTypec           B@  s   e  Z d  Z d Z d   Z RS(   R  t   PyInt_AsSsize_tc         C@  s   d S(   NR   (    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  w  s    (   RJ   RK   R   R   R  (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR!  r  s   t
   CSizeTTypec           B@  s   e  Z d  Z d   Z RS(   t   __Pyx_PyInt_FromSize_tc         C@  s   d S(   Nt   size_t(    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  ~  s    (   RJ   RK   R   R  (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR#  z  s   t   CPtrdiffTTypec           B@  s   e  Z d    Z RS(   c         C@  s   d S(   Nt	   ptrdiff_t(    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s    (   RJ   RK   R  (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR&    s   t
   CFloatTypec           B@  s>   e  Z d  Z d Z d Z d Z d d  Z d   Z d   Z RS(   i   t   PyFloat_FromDoublet   __pyx_PyFloat_AsDoubleiR   c         C@  s8   t  j |  | d  | |  _ | t k r4 d |  _ n  d  S(   Ni   t   __pyx_PyFloat_AsFloat(   R  R   t   math_h_modifiert
   RANK_FLOATR   (   R   R  R,  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    	c         C@  s   | j  r | j p | t k S(   N(   Ro   Rd   RZ   (   R   R^   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR]     s    c         C@  s   t  j S(   N(   R   t   PYX_NAN(   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRI     s    (	   RJ   RK   Rc   R   R   R   R   R]   RI   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR(    s   	t   CComplexTypec           B@  s   e  Z d  Z d Z d  Z d Z d   Z d   Z d   Z	 d   Z
 d   Z d d d d  Z d	   Z d
   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z RS(   i   t   __pyx_PyComplex_FromComplexc         C@  s   x  | j  r" | j r" | j } q W| j  rK | j rK d | j   |  _ n1 t | d  ri | j |  _ n d | j   |  _ | |  _ t j	 |  | j
 d | j  i  |  _ d |  j   |  _ d |  j |  _ d  S(   Ns   _%sR,  g      ?s   %s_from_partss   %s(0, 0)(   R{   R   R   R'   t
   funcsuffixt   hasattrR,  R8  R  R   R  R   t   binopst
   from_partsR   (   R   R8  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    		c         C@  s6   t  |  t  r. t  | t  r. |  j | j k St Sd  S(   N(   R0   R/  R8  R
   (   R   R?   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s6   t  |  t  r. t  | t  r. |  j | j k St Sd  S(   N(   R0   R/  R8  R   (   R   R?   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   __ne__  s    c         C@  s6   t  |  t  r. t  | t  r. |  j | j k  St Sd  S(   N(   R0   R/  R8  R
   (   R   R?   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR@     s    c         C@  s   t  |  j  S(   N(   R   R8  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    i    c         C@  sY   | s | r4 |  j  j d | | |  } d | } n t |  j   |  } |  j | |  S(   NR   s
   %s complex(   R8  R   R   R  R*   (   R   R)   RS   R   R   t	   real_codeR(   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s
    c         C@  sB   |  j  j   } | j d d  } | j d d  } t j | d S(   Nt   long__doublet   long_doubleR  R   t   _complex(   R8  R'   R    R   t   type_prefix(   R   t   real_type_name(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s    c         C@  sC   | j  r) | j r) | j r) | j r) t St t |   j |  Sd  S(   N(   Rd   Ro   R{   R   R
   RC  R/  R_   (   R   R^   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR_     s    	c         C@  sC   | j  r |  j j | j  pB | j r9 |  j j |  pB | t k S(   N(   Rd   R8  R]   Ro   RZ   (   R   R^   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR]     s    c      
   C@  s   |  j  d  k r d d l m } | j d d  d d |  _  } |  | _ i  | _ | j d |  j d  d d d t	 | j d	 |  j d  d d	 d t	 | j
 d
 t |  t d |  d   g d t	 d d  d d d d |  j n  t	 S(   Ni   (   R   R   R   R   t   realRG   R   t   imagR  R   R  R   R   s   __Pyx_c_conj%s(   R   R   R   R   R   R   R   R   R8  R   R
  R  R  R1  (   R   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s"    		""$c         C@  sK   i |  j    d 6|  j   d 6|  j j    d 6|  j d 6t |  j j  d 6S(   NR>   R   R8  t   mRc   (   R   R'   R8  R1  R  Rc   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   _utility_code_context  s    
c         C@  sz   | j  t j d d   | j  t j d d   | j  t j d d |  j     | j  t j d d |  j     t S(   Nt   Headers	   Complex.ct   RealImagt   Declarationst
   Arithmetic(   R   R   R   R   R?  R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   create_declaration_utility_code  s    c         C@  s   t  S(   N(   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   | j  t j d d   t S(   Nt   ToPys	   Complex.c(   R   R   R   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s9   | j  t j d d |  j     d |  j   |  _ t S(   Nt   FromPys	   Complex.ct   __Pyx_PyComplex_As_(   R   R   R   R?  R'   R   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s~   y |  j  | | f SWn t k
 r( n Xy< t | | f } d | |  j f |  j  | | f <} | SWn t k
 ry d  SXd  S(   Ns   __Pyx_c_%s%s(   R3  t   KeyErrort   complex_opsR1  R   (   R   t   nargst   opt   op_namet	   func_name(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt	   lookup_op  s    $c         C@  s   |  j  d |  S(   Ni   (   RN  (   R   RK  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   unary_op(  s    c         C@  s   |  j  d |  S(   Ni   (   RN  (   R   RK  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt	   binary_op+  s    c         C@  s   d S(   NR  (    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRA   .  s    c         C@  s   | S(   N(    (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   1  s    N(   RJ   RK   Rd   R   R   R   R   R   R   R5  R@   R   R   R  R_   R]   R   R?  RD  R   R   R   RN  RO  RP  RA   R   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR/    s0   																			t   negR  t   is_zerot   zerot   sumi   t   +t   difft   prodt   *t   quott   /t   eqs   ==t   CPointerBaseTypec           B@  s,   e  Z d  g Z d   Z d   Z d   Z RS(   R   c         C@  sG  | |  _  | j r | j } n  xN t t t f D]" } | j |  r. d |  _ Pq. q. W| j t  ro d |  _	 n  |  j r| j
 r| j d k r d |  _ |  j r d |  _ q nH | j r d |  _ |  j r d |  _ q n d |  _ |  j r d |  _ n  d |  _ n= |  j	 rC| j
 rCd	 |  _ |  j r7d
 |  _ n  d |  _ n  d  S(   Ni   i   t   __Pyx_PyObject_FromCStringt   __Pyx_PyObject_AsSStringt   __Pyx_PyObject_FromStringt   __Pyx_PyObject_AsStringt   __Pyx_PyObject_AsUStringRa  t   __Pyx_PyUnicode_FromUnicodet   __Pyx_PyUnicode_AsUnicode(   R   Rt   R  t   c_char_typet   c_uchar_typet   c_schar_typeRY   R|   t   c_py_unicode_typeR}   R   R   R   Rg   R   R   (   R   R   t	   char_type(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   F  s6    												c         C@  s1   |  j  r d S|  j r d St t |   j   Sd  S(   NR  R  (   R|   R}   RC  R\  RA   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRA   f  s
    		c         C@  s3   |  j  r/ t | t  s t  d t j |  Sd  S(   Ns   "%s"(   R|   R0   RD   R   R   t   escape_byte_string(   R   RQ   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRR   n  s    	(   RJ   RK   R-   R   RA   RR   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR\  ?  s   		 	t
   CArrayTypec           B@  s   e  Z d  Z d Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 d   Z d d d d	  Z d
   Z d   Z d   Z d   Z d   Z d   Z d d  Z d   Z d d d  Z RS(   i   c         C@  s#   t  t |   j |  | |  _ d  S(   N(   RC  Rj  R   t   size(   R   R   Rk  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   {  s    c         C@  sA   t  | t  r= | j r= |  j | j k r= |  j j | j  St S(   N(   R0   R  Rq   Rk  R   RY   R
   (   R   R?   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    *c         C@  s   t  |  j  d S(   Ni   (   R   R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   d |  j  t |  j  f S(   Ns   <CArrayType %s %s>(   Rk  R  R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s(   | j  r |  j j | j  p' | t k S(   N(   Rq   R   RY   RZ   (   R   RW   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRV     s    	c         C@  s6   | j  r t S| j s | j r2 |  j j | j  St S(   N(   Re   R   Rg   Rq   R   R_   R
   (   R   R^   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR]     s
    	c         C@  s   t  |  j  S(   N(   t
   c_ptr_typeR   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   element_ptr_type  s    i    c         C@  s`   |  j  d  k	 r |  j  } n d } | j d  r= d | } n  |  j j d | | f | | |  S(   NR   RX  s   (%s)s   %s[%s](   Rk  R   t
   startswithR   R   (   R   R)   RS   R   R   t   dimension_code(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    	c         C@  s   t  |  j  S(   N(   Rl  R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR`     s    c         C@  s   |  j  d  k	 S(   N(   Rk  R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRa     s    c         C@  s9   |  j  j |  } | |  j  k r% |  St | |  j  Sd  S(   N(   R   R8   Rj  Rk  (   R   RP   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR8     s    c         C@  s*   t  | t  r" |  j j | j  Sd  Sd  S(   N(   R0   Rj  R   R<   R   (   R   R;   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR<     s    c         C@  s   |  j  j |  S(   N(   R   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   |  j  d  k	 r |  j  S|  j j |  s, t S|  j j d d d } t j d d |  } d | } d | } d d l m	 } i | d	 6| d
 6| d 6} | j
 | j d d d | j   d | d t | j   j   | |  _ | |  _  t S(   NR   R   i   s   [^a-zA-Z0-9]R   s   __Pyx_carray_to_py_%ss   __Pyx_carray_to_tuple_%s(   t   CythonUtilityCodeRG   t   to_tuple_cnameR   s   carray.to_pys   CConvert.pyxt   outer_module_scopeR   t   compiler_directives(   R   R   R   R   R
   R   t   ret   subR   Rp  R   R   t   global_scopeRT  R   t   to_tuple_functionR   (   R   R   R   t   safe_typenameR   Rw  Rp  R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s(    


			c         C@  s|   | d  k r |  j n | } |  j s- |  j r> d | | | f S| j oS | j d k } d | | rk |  j n | | |  j f S(   Ns   %s = %s(%s)R   s   %s = %s(%s, %s)(   R   R   R|   R}   RC   R   Rw  Rk  (   R   R   R   R   R   R  t   target_is_tuple(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   |  j  d  k	 r |  j  S|  j j |  s, t S|  j j d d d } t j d d |  } d | } d d l m	 } i | d 6| d	 6} | j
 | j d
 d d | j   d | d t | j   j   | |  _  t S(   NR   R   i   s   [^a-zA-Z0-9]R   s   __Pyx_carray_from_py_%s(   Rp  RG   R   s   carray.from_pys   CConvert.pyxRr  R   Rs  (   R   R   R   R   R
   R   Rt  Ru  R   Rp  R   R   Rv  RT  R   R   (   R   R   R   Rx  R   Rp  R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s"    

		c         C@  s2   d | p |  j  | | |  j f } | j | |  S(   Ns   %s(%s, %s, %s)(   R   Rk  t   error_goto_if_neg(   R   R   R   R   R   R   R   t	   call_code(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    N(   RJ   RK   Rq   R   Rw  R   R   R   R   RV   R]   Rm  R   R`   Ra   R8   R<   R   R   R   R   R   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRj  t  s&   														R   c           B@  s   e  Z d  Z d Z d   Z d   Z d   Z d   Z d   Z d d d d  Z
 d	   Z d
   Z d   Z d   Z d d  Z RS(   i   RK  c         C@  s   t  |  j  d S(   Ni   (   R   R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   	  s    c         C@  s/   t  | t  r+ | j r+ |  j j | j  St S(   N(   R0   R  Rg   R   RY   R
   (   R   R?   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   
	  s    c         C@  s   |  | k S(   N(    (   R   R?   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR5  	  s    c         C@  s   d t  |  j  S(   Ns   <CPtrType %s>(   R  R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   	  s    c         C@  s(   | j  r |  j j | j  p' | t k S(   N(   Rg   R   RY   RZ   (   R   RW   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRV   	  s    	i    c         C@  s   |  j  j d | | | |  S(   Ns   *%s(   R   R   (   R   R)   RS   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   	  s    	c         C@  s   | t  k r d S| j r d S|  j j r> t |  j j  }  n  |  j j r | j re | j j   } n  | j r~ |  j j	 |  Sd Sn  |  j j
 r | j r | j j
 r | j j |  j  r d S| j s | j r |  j j p |  j j | j  Sd S(   Ni   i    (   RZ   Rr   R   Rt   R   R  Ru   Rg   RO   t%   pointer_assignable_from_resolved_typeRw   t   is_subclassRq   Rp   RY   (   R   RW   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR]   !	  s$    			!c         C@  s3   |  j  j |  } | |  j  k r% |  St |  Sd  S(   N(   R   R8   R   (   R   RP   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR8   6	  s    c         C@  s*   t  | t  r" |  j j | j  Sd  Sd  S(   N(   R0   R   R   R<   R   (   R   R;   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR<   =	  s    c         C@  s   d S(   NRn  (    (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRI   C	  s    c         C@  s#   |  j  j r |  j  j | |  Sd  S(   N(   R   Rw   t   find_cpp_operation_typeR   (   R   t   operatort   operand_type(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR~  F	  s    N(   RJ   RK   Rg   R   R   R   R5  R   RV   R   R   R]   R8   R<   RI   R~  (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   	  s   									t   CNullPtrTypec           B@  s   e  Z d  Z RS(   i   (   RJ   RK   Rr   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  L	  s   t   CReferenceTypec           B@  s\   e  Z d  Z d Z d   Z d   Z d   Z d d	 d d  Z d   Z	 d   Z
 d   Z RS(
   i   i    c         C@  s   | |  _  d  S(   N(   t   ref_base_type(   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   V	  s    c         C@  s   d t  |  j  S(   Ns   <CReferenceType %s>(   R  R  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   Y	  s    c         C@  s   d |  j  S(   Ns   %s &(   R  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRU   \	  s    c         C@  s   |  j  j d | | | |  S(   Ns   &%s(   R  R   (   R   R)   RS   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   _	  s    	c         C@  s9   |  j  j |  } | |  j  k r% |  St |   |  Sd  S(   N(   R  R8   R>   (   R   RP   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR8   f	  s    c         C@  s   |  j  j |  S(   N(   R  R<   (   R   R;   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR<   m	  s    c         C@  s   t  |  j |  S(   N(   R/   R  (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   p	  s    N(   RJ   RK   Rs   t   is_fake_referenceR   R   RU   R   R   R8   R<   R   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  Q	  s   					t   CFakeReferenceTypec           B@  s2   e  Z d  Z d   Z d   Z d d d d  Z RS(   i   c         C@  s   d t  |  j  S(   Ns   <CFakeReferenceType %s>(   R  R  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   x	  s    c         C@  s   d |  j  S(   Ns   %s [&](   R  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRU   {	  s    i    c         C@  s   d |  j  j   | f S(   Ns   __Pyx_FakeReference<%s> %s(   R  R   (   R   R)   RS   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   ~	  s    N(   RJ   RK   R  R   RU   R   R   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  t	  s   		R  c           B@  sg  e  Z d  Z d Z d Z e Z e Z d d g Z	 d d d d d d d d e e d e d  Z
 d   Z d   Z d   Z d d	  Z d d
  Z d   Z d d  Z d   Z d d  Z d   Z d   Z d d  Z d   Z d d d d  d  Z d   Z d   Z d   Z d   Z d   Z d d  Z d   Z d d d d  Z  d   Z! d   Z" d   Z# RS(    i   R  R  i    R   c         C@  s   | |  _  | |  _ | |  _ |
 |  _ | |  _ | |  _ | |  _ | |  _ | |  _ |	 |  _	 | |  _
 | |  _ | |  _ | |  _ d  S(   N(   R  R  t   has_varargst   optional_arg_countR   R   t   calling_conventionR  t   with_gilt   is_overridablet   is_const_methodt   is_static_methodt	   templatest   is_strict_signature(   R   R  R  R  R   R   R  R  R  R  R  R  R  R  R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   	  s    													c         C@  s   t  t t |  j   } |  j r1 | j d  n  |  j rJ d |  j } n d } |  j rf | d 7} n  d t |  j  |  j	   d j
 |  | f S(   Ns   ...s    %rR   t   ?s   <CFuncType %s %s[%s]%s>t   ,(   R  t   mapR  R  R  R!   R   R   R  t   calling_convention_prefixR#   (   R   t	   arg_reprst   except_clause(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   	  s    				c         C@  s   |  j  } | r | d Sd Sd  S(   NR   R   (   R  (   R   t   cc(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  	  s    	c         C@  s
   t  |   S(   N(   Rl  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR`   	  s    c         C@  s   |  j  | j   |  S(   N(   t!   same_c_signature_as_resolved_typeRO   (   R   RW   t
   as_cmethod(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   same_c_signature_as	  s    c         C@  s$  | t  k r d S| j s d S|  j | j k r3 d St |  j  } | t | j  k r[ d Sx> t | |  D]- } |  j | j j | j | j  sk d Sqk W|  j | j k r d S|  j	 | j	 k r d S|  j
 j | j
  s d S|  j |  s d S|  j | j k r
d S|  j | j  s d Sd S(   Ni   i    (   RZ   Ru   R  R   R  t   rangeR>   RY   R  R  R  t   same_calling_convention_asR   t   _same_exception_valueR   (   R   RW   R  RJ  R<  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  	  s2    	#c         C@  s   |  j  | k r d S|  j d k r& d S|  j  s7 | r; d S|  j  j | j k rT d S|  j  j r | j r |  j  j j | j j k r d Sn  |  j  j | j k r d Sd S(   Ni   RU  i    (   R   R   R>   Rj   RG   R   (   R   t   other_exc_value(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  	  s    c         C@  s   |  j  | j   |  S(   N(   t'   compatible_signature_with_resolved_typeRO   (   R   RW   R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   compatible_signature_with 
  s    c         C@  se  | t  k r d S| j s d S|  j r4 | j r4 d St |  j  } | |  j t | j  | j k rj d S|  j | j k  r d SxG t | t | j   D]- } |  j | j j | j | j  s d Sq W|  j	 | j	 k r d S|  j
 j | j
  s d S|  j |  sd S|  j | j k r"d S|  j r9| j r9d S|  j | j  sOd S| j p[| |  _ d S(   Ni   i    (   RZ   Ru   R  R   R  R  R  R>   RY   R  R  R[   R  R  R   R  R   t   original_sig(   R   RW   R  RJ  R<  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  
  s:    	#c         C@  s   |  j  | j   |  S(   N(   t'   narrower_c_signature_than_resolved_typeRO   (   R   RW   R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   narrower_c_signature_than(
  s    c         C@  s:  | t  k r d S| j s d St |  j  } | t | j  k rE d Sx| t | |  D]k } |  j | j j | j | j  s d S| j | j p |  j | j j | j | j  |  j | _ qU W|  j	 | j	 k r d S|  j
 | j
 k r d S|  j j | j  s	d S|  j r | j r d S|  j | j  s6d Sd S(   Ni   i    (   RZ   Ru   R   R  R  R>   R[   t   needs_type_testRY   R  R  R  R   R  R   (   R   RW   R  RJ  R<  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  +
  s.    	#2c         C@  s(   |  j  d k } | j  d k } | | k S(   Nt	   __stdcall(   R  (   R   R?   t   sc1t   sc2(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  F
  s    
c         C@  s"   |  j  | |  o! |  j | j k S(   N(   R  R  (   R   RW   R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRV   T
  s    c         C@  s!   |  j  |  o  |  j o | j S(   N(   R  R  (   R   RW   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR|  X
  s    c         C@  s	  g  } xG |  j  t |  j   |  j  D]( } | j | j j d | d |  q$ W|  j rp | j d t j  n  |  j r | j |  j	 j t j
   n  |  j r | j d  n  d j |  } | r | r d } n  d }	 | s | rz|  j j rz|  j r|  j rd |  j }	 nI |  j r1d |  j }	 n0 |  j d	 k rId
 }	 n |  j ra| rad }	 n  |  j rz|	 d 7}	 qzn  | sd }
 nA |  j   }
 | r|
 s| j d  rd |
 | f } d }
 n  |  j r|	 d 7}	 n  |  j j d |
 | | |	 f | | |  S(   NR   R   s   int %ss   ...s   , R  s    except? %ss
    except %sRU  s	    except +s	    except *s    nogilRX  s   (%s%s)s    consts
   %s%s(%s)%s(   R  R   R  R!   R>   R   R  R   t   skip_dispatch_cnamet   op_arg_structt   optional_args_cnameR  R#   R  Re   R   R   R  R  Rn  R  (   R   R)   RS   R   R   t   with_calling_conventiont   arg_decl_listR  t   arg_decl_codet   trailerR  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   \
  sH    $ 												c         C@  s2   |  j  r d } n d } d |  j   | | | f S(   Ns    constR   s
   %s%s(%s)%s(   R  R  (   R   RM  t   arg_codeR  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   function_header_code
  s
    		c         C@  s   |  j    } | S(   N(   R   (   R   R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   signature_string
  s    c         C@  s   |  j  d d t } d | S(   Ns   (*)R  s   (%s)(   R   R
   (   R   R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   signature_cast_string
  s    c         C@  s   t  |  j j |  g  |  j D] } | j |  ^ q d |  j d |  j d |  j d |  j d |  j d |  j	 d |  j
 d |  j d	 |  j d
 |  j d |  j } |  j | _ | S(   NR  R   R   R  R  R  R  R  R  R  R  (   R  R  R8   R  R  R   R   R  R  R  R  R  R  R  R  R:   t
   from_fused(   R   RP   R  R2   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR8   
  s    %										c         C@  s   |  j  j j j |  j S(   N(   R  R   R   t   lookupRG   (   R   t   arg_name(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   opt_arg_cname
  s    c         C@  s4   |  j  s t  | d k r* |  j   } n  t |  S(   s\  
        Permute all the types. For every specific instance of a fused type, we
        want all other specific instances of all other fused types.

        It returns an iterable of two-tuples of the cname that should prefix
        the cname of the function, and a dict mapping any fused types to their
        respective specific types.
        N(   R:   R   R   R1   t    get_all_specialized_permutations(   R   t   fused_types(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  
  s    	c   	      C@  s(  |  j  s t  |  j j r> g  |  j j j D] } | j ^ q+ S|  j d k	 rT |  j S|  j j j	 } | j
 |  j  g  } |  j   } x | D] \ } } |  j j j |  } |  j r |  j | |  n  t j |  j  } | j | |  | | _ | | _ | j |  | j |  q W| |  _ | S(   sB   
        Get all the specific function types of this one.
        N(   R:   R   Rj   t   fused_cfunctiont   nodesR>   t   cached_specialized_typesR   R   t   cfunc_entriest   removeR  R8   R  t   declare_opt_arg_structR   t   deepcopyt   specialize_entryR!   (	   R   R  R  R2   t   permutationsRG   R7   t   new_func_typet	   new_entry(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt"   get_all_specialized_function_types
  s*    #				c         C@  s"   t  t |   j | | d d g S(   s>   Return fused types in the order they appear as parameter typesR-   R  (   RC  R  R1   (   R   R2   R3   R-   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR1   
  s    c         C@  s!   |  j  s t  t | |  d  S(   N(   R:   R   R  (   R   Rj   RG   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  
  s    c         C@  s   |  j  s |  j r t S|  j d  k	 r, |  j Sx5 |  j D]* } | j j r6 | j j |  r6 t Sq6 W|  j	 j r |  j	 j |  r t St
 S(   N(   R  R  R
   R   R   R  R>   Re   R   R  R   (   R   R   R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   
  s      c   
      @  s  |  j  d  k	 r |  j  S|  j |  s) t Sd d l m } t j d d |  j d d d  } d | } x5 |  j	 D]* } | j
 j rq | j
 j |  rq t Sqq W|  j j r |  j j |  r t Sd     d	 t f   f d
     Y} |  j j r d } nC |  j j rd } n. |  j r:|  j r*d n d |  j } n d } i | d 6g  t |  j	  D]+ \ } } | | j pyd | | j
  ^ qZd 6| d |  j  d 6| d 6}	 | j | j d d d | j   d |	 d t | j   j   | |  _  t S(   Ni   (   Rp  s   [^a-zA-Z0-9]R   R   R   s   __Pyx_CFunc_%s_to_pyc         S@  s   t  |  j d d t  } |  j rj | } } |  j rC |  j } q |  j s[ d } d  } q t |  } nD |  t	 k r d } } n+ | } } |  t
 k r d } n t |  } | | | f S(   NR   RS   RB   R  R  (   RD   R   R   Re   RC   R   Rf   R   R  R  R  (   t   ctypet   type_displaynamet	   arg_ctypeR   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   declared_type
  s     	
			
	t   Argc           @  s   e  Z   f d    Z RS(   c         @  s4   | |  _  | |  _   |  \ |  _ |  _ |  _ d  S(   N(   R   R>   t
   type_cnameR  R  (   R   R  t   arg_type(   R  (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR      s    		(   RJ   RK   R   (    (   R  (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s   s   except *s
   except? %ss	   except %sRG   s   arg%sR  t   returnR  R  s   cfunc.to_pys   CConvert.pyxRr  R   Rs  (   R   R   R   R
   R   Rp  Rt  Ru  R   R  R>   Re   R   R  R   RB   Rp   R   R   Ro  R   R   R   Rv  RT  R   R   (
   R   R   Rp  Rx  R   R  R  R  t   ixR   (    (   R  s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   
  s@    $
  				B
		N($   RJ   RK   Ru   R   R  R  R
   R  R  R-   R   R   R  R`   R  R  R  R  R  R  R  R  RV   R|  R   R  R  R  R8   R  R  R  R1   R  R   R   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  	  sJ   				 		%				(						%		c         C@  s   t  |  _ t | |  j  |  _ |  j rd |  j |  _ |  j ry t j d t	 j
 |  j f  |  _ qy n t | |  j  |  _ |  j r t | |  j  |  _ n  d S(   sB   
    Specialize an entry of a copied fused function or method
    s   %s.%sN(   R   t   is_fused_specializedt   get_fused_cnameR   t
   is_cmethodRG   t   is_inheritedR   R  R   t   obj_base_cnamet
   func_cname(   Rj   RG   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  =  s    			"	c         C@  s/   |  r | s t   t j d t j |  | f  S(   sT   
    Given the fused cname id and an original cname, return a specialized cname
    s   %s%s%s(   R   R   R  R   t   fused_func_prefix(   t   fused_cnamet
   orig_cname(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  O  s    c         C@  sM   t    } g  } x7 |  D]/ } | | k r | j |  | j |  q q W| S(   N(   R.   R!   R  (   t   somelistR3   R2   t   obj(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   uniqueW  s    	c         C@  s   t  t |    S(   N(   t!   _get_all_specialized_permutationsR  (   R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  a  s    R   c         C@  s   |  d j    \ } g  } x t | j  D] \ } } t |  } | j i | | 6 | rn d | | f } n t |  } t |   d k r | j t |  d | |   q) | j	 | | f  q) W| S(   Ni    s   %s_%si   (
   R1   Ro  R  RT  Rc  RD   R   t   extendR  R!   (   R  R=   t   f2st
   fused_typeR2   t   newidt   specific_typeRG   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  d  s    	c         C@  sD   |  j    } t |  d k r+ | d } n |  } | j |  j   S(   sE  
    Return the signature for a specialization of a fused type. e.g.

        floating[:] ->
            'float' or 'double'

        cdef fused ft:
            float[:]
            double[:]

        ft ->
            'float[:]' or 'double[:]'

        integral func(floating) ->
            'int (*func)(float)' or ...
    i   i    (   R1   R   R8   RF   (   t   fused_compound_typeR7   R  R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   specialization_signature_stringz  s
    c         C@  s   |  j  s t  t |  t  rP t |  j  } xw | D] } | j   | _ q4 WnW g  } xN t |  j	    D]: \ } } |  j
 |  } t |  |  | _ | j |  qi W| S(   sE   
    Return a list of specialized types in their declared order.
    (   R:   R   R0   R  R  R  RF   t   specialization_stringR  R1   R8   R  R!   (   R>   R2   t   specialized_typeRG   R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   get_specialized_types  s    R  c           B@  sS   e  Z e Z e Z e Z e Z d  g Z d d  Z
 d   Z d d  Z d   Z RS(   R>   c         C@  sP   | |  _  | d  k	 r! | |  _ n t j | |  _ | |  _ | |  _ t |  _ d  S(   N(	   R   R   RG   R   t
   var_prefixR>   R   R
   R  (   R   R   R>   R   RG   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    			c         C@  s   d |  j  t |  j  f S(   Ns   %s:%s(   R   R  R>   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    i    c         C@  s   |  j  j |  j |  S(   N(   R>   R   RG   (   R   RS   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s(   t  |  j |  j j |  |  j |  j  S(   N(   R  R   R>   R8   R   RG   (   R   RP   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR8     s    N(   RJ   RK   R
   t   not_nonet   or_noneR   t   accept_nonet   accept_builtin_subtypesR-   R   R   R   R   R8   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s   	
	t   ToPyStructUtilityCodec           B@  sD   e  Z d Z d    Z d   Z d   Z d   Z d   Z d   Z	 RS(   c         C@  s>   | |  _  d | j | j d  f |  _ | |  _ | |  _ d  S(   Ns   static PyObject* %s(%s)R  (   R>   R   R   t   headert   forward_declR   (   R   R>   R  R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s
    			c         C@  s   t  | t  o |  j | j k S(   N(   R0   R  R  (   R   R?   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   t  |  j  S(   N(   R   R  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         K@  s   d  S(   N(    (   R   t   kwargs(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   get_tree  s    c         C@  sX  | d } | d } | j  d |  j  | j  d  | j  d  | j  d  xz |  j j j D]i } | j | j d t } | j  d | j j d	 | j	 d
 | j   | j  d |  | j  d  q_ W| j  d  | j  d  | j  d  | j  d  | j  d  | j  d  |  j
 r@| j  |  j j   d  n  | j  |  j d  d  S(   Nt   utility_code_deft   utility_code_protos   %s {s   PyObject* res;s   PyObject* member;s4   res = PyDict_New(); if (unlikely(!res)) return NULL;t
   identifiers$   %s; if (unlikely(!member)) goto bad;s   s.%sR=  s<   if (unlikely(PyDict_SetItem(res, %s, member) < 0)) goto bad;s   Py_DECREF(member);s   return res;s   bad:s   Py_XDECREF(member);s   Py_DECREF(res);s   return NULL;t   }t   ;(   t   putlnR  R>   R   R:  R  R   R   R   RG   R  R   (   R   t   outputR   t   protoR=  t   nameconst_cname(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   put_code  s*    

	$	c         C@  s   d  S(   N(    (   R   t   module_node(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   inject_tree_and_scope_into  s    N(
   RJ   RK   R   t   requiresR   R   R   R  R  R  (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s   					t   CStructOrUnionTypec           B@  s   e  Z d  Z d  Z e Z e d  Z d   Z d   Z	 d   Z
 d d d d  Z d   Z d   Z d	   Z d
   Z d   Z d   Z d   Z d   Z RS(   i   c         C@  s   | |  _  | |  _ | |  _ | |  _ | |  _ | d k |  _ d t j |  j   f |  _	 d t j |  j   f |  _
 t |  _ d  |  _ d  |  _ | |  _ d  S(   NR7  s   %s_to_py_%ss   %s_from_py_%s(   R   RG   R9  R   R  Ry   R   t   convert_func_prefixR'   R   R   R   R   R   t   _convert_to_py_codet   _convert_from_py_codet   packed(   R   R   R9  R   R  RG   R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    								c         C@  sJ  | j  d  k r t S|  j t k r& d  S|  j d  k r6|  j } t   } t   } xz |  j j D]l } | j } | j	 |  s d  |  _
 t |  _ t S| r^ | j s | j r | j |  q | j |  q^ q^ W| r| s t |  d k rd  |  _ t |  _ t S|  j j d k o|  j } t |  | |  |  _ n  | j |  j  t S(   Ni   R   (   t   outer_scopeR   R
   R  Ry   R.   R   R:  R>   R   R   Rg   Rw   R  R   R   R  Rj   R   R  R  R   R   (   R   R   t   is_uniont   unsafe_union_typest   safe_union_typesR=  t   member_typeR  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s4    
							c         C@  s   | j  d  k r t S|  j t k r& d  S|  j d  k r x< |  j j D]. } | j j |  sB d  |  _ t |  _ t SqB Wt	 d |  j
 d |  j j d |  j  } d d l m } | j |  j r d n d d d	 | j   d
 | |  _ n  | j |  j  t S(   Nt   struct_nameR:  RQ  i   (   Rp  t   FromPyStructUtilityt   FromPyUnionUtilitys   CConvert.pyxRr  R   (   R  R   R
   R  R   R:  R>   R   R   RT  R   R   Rp  R   Ry   Rv  R   R   (   R   R   R=  R   Rp  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   >  s,    			c         C@  s   d |  j  |  j d |  j f S(   Ns   <CStructOrUnionType %s %s%s>R   s    typedef(   R   s    typedef(   R   RG   R  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   [  s    i    c         C@  sb   | s | r |  j  } n: |  j r- |  j } n d |  j |  j f } t | |  } |  j | |  S(   Ns   %s %s(   R   R  RG   R9  R   R*   (   R   R)   RS   R   R   R(   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   `  s    	c         C@  s<   y# t  | t  o! |  j | j k SWn t k
 r7 t SXd  S(   N(   R0   R  R   t   AttributeErrorR
   (   R   R?   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   l  s
    c         C@  s-   y |  j  | j  k  SWn t k
 r( t SXd  S(   N(   R   R  R
   (   R   R?   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR@   s  s    c         C@  s   t  |  j  t  |  j  AS(   N(   R   RG   R9  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   {  s    c         C@  s   |  j  d  k	 S(   N(   R   R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRa   ~  s    c         C@  s
   |  j    S(   N(   Ra   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  sb   |  j  j } t |  d k r" t S| \ } } | j j oa | j j oa | j j   | j j   k S(   Ni   (   R   R:  R   R
   R>   Rc   R   (   R   t   fieldsRi  t   b(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   can_be_complex  s     c         C@  s6   g  |  j  j D] } | j j   ^ q } t |  d S(   Ni   (   R   R:  R>   Ri   t   max(   R   R  t   child_depths(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRi     s    %c         C@  s#   |  j  r | St t |   j |  S(   N(   Ry   RC  R  R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    	N(   RJ   RK   Rv   R   R   R   R
   R   R   R   R   R   R   R   R@   R   Ra   R   R
  Ri   R   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s    
	#										s   std::strings	   std::pairs   std::vectors	   std::lists   std::sets   std::unordered_sets   std::maps   std::unordered_maps   std::complext   CppClassTypec           B@  s   e  Z d  Z d  Z e Z d Z d Z e	 Z
 e	 Z d g Z d d d  Z d   Z d   Z d   Z d   Z d   Z d d d	  Z d d
  Z d   Z d   Z d d d d d  Z d   Z d   Z d   Z d   Z d d  Z d d  Z RS(   i   R7  R  c         C@  sz   | |  _  | |  _ | |  _ | |  _ g  |  _ | |  _ | |  _ t d   | pQ d D  |  _ i  |  _	 | t
 k |  _ d  S(   Nc         s@  s   |  ] } t  |  Vq d  S(   N(   t   is_optional_template_param(   t   .0t   T(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pys	   <genexpr>  s    (    (   R   RG   R   t   base_classest	   operatorsR  t   template_typeRT  t   num_optional_templatest   specializationst   cpp_string_conversionsRx   (   R   R   R   RG   R  R  R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    								c         C@  s   d  S(   N(    (   R   t
   from_or_to(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   use_conversion_utility  s    c         C@  s   d |  j  k r d Sd Sd  S(   Nt	   unorderedt
   unordered_R   (   RG   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   maybe_unordered  s    c         @  sY  |  j  d  k	 r t S|  j t k s1 |  j t k rUd } g  } d g } x?t |  j pX g   D](\ }   | t |  j k r Pn    j s   j	 |  r t
 S| j   j      j d  k	 r5  f d   } |   j  } d   j }   j r d | } n  | j d | j d d t | |   j   f  n' d	 } | j d
 | |   j   f  | j d | | | |   j  | f  q\ W|  j t k rd }	 t |   f } n |  j d }	 d |	 d j |  f }
 i d j |  d 6|
 d 6|  j   d 6|  j d 6} d d l m } | j | j |	 j d d  d d d |  |
 |  _  t Sd  S(   Nt   XYZABCs   cdef extern from *:c         @  sp     j  r    j s   j r    Sy t |   t SWn t k
 rE n Xy t |   t SWn t k
 rk n X  S(   N(   R{   Ro   Rg   R  t   c_longlong_typeR   R  R  (   RQ   (   R  (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt
   guess_type  s    

s   %s s   ? %ss       ctypedef %s %s '%s'R   RS   RX  s)       ctypedef struct %s '%s':
        passs.       cdef %s %s_from_py '%s' (object) except %st   stringi   s   __pyx_convert_%s_from_py_%st   __and_s   
t   template_type_declarationsRG   R  R>   i   (   Rp  R  s   .from_pys   CppConvert.pyxR   (   R   R   R   RG   t   builtin_cpp_conversionsR  Ro  R  Re   R   R
   R!   R'   R   R   R   R   R   R#   R  R   Rp  R   R   R    (   R   R   R  t   tagst   declarationsR  R  t   except_typeR  t   clsRG   R   Rp  (    (   R  s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     sV    	"	-##	c         C@  s  |  j  d  k	 r t S|  j t k s1 |  j t k rd } g  } d g } x t |  j pX g   D] \ } } | t |  j k r Pn  | j |  s t	 S| j
 | j    | j
 d | | | j   f  | j
 d | | | j  | | f  q\ W|  j t k rd } d } t |   f } n |  j d } d } d	 | | d
 j |  f }	 i d j |  d 6|	 d 6|  j   d 6|  j d 6}
 d d l m } | j | j | j d d  d d d |
  |	 |  _  t Sd  S(   NR  s   cdef extern from *:s)       ctypedef struct %s '%s':
        passs"       cdef object %s_to_py '%s' (%s)R  t	   PyObject_i   R   s   __pyx_convert_%s%s_to_py_%st   ____s   
R!  RG   R  R>   i   (   Rp  R  s   .to_pys   CppConvert.pyxR   (   R   R   R   RG   R"  R  Ro  R  R   R
   R!   R'   R   R   R#   R  R   Rp  R   R   R    (   R   R   R  R#  R$  R  R  R&  R  RG   R   Rp  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     sF    	" #	c         C@  s   |  j  d  k	 o |  j d  k S(   N(   R  R   R  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   is_template_type3  s    c         C@  sq   | d  k r g  } t   } n  |  j r= |  j j | |  n  |  j rm x$ |  j D] } | j | |  qP Wn  | S(   N(   R   R.   t	   namespaceR1   R  (   R   R2   R3   R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR1   6  s    		c         C@  sv  |  j    s! t | d |   t St |  j  |  j t |  k oW t |  j  k  n r t |  j  t |  } |  j d d | } | g  |  j | D]" } t d | | j f t	  ^ q } n  t |  j  t |  k rt | d |  j t |  j  t |  f  t St
 } x1 | D]) } | j r t	 } t | d |  q q W| rWt S|  j t t |  j |    S(   Ns   '%s' type is not a templateR   t   template_paramss   %s::%ss/   %s templated type receives %d arguments, got %ds=   Python object type '%s' cannot be used as a template argument(   R)  R   RZ   R   R  R  R   t   TemplatePlaceholderTypeR   R   R
   Re   R8   RT  R+  (   R   R   t   template_valuest   num_defaultst   partial_specializationt   paramt   has_object_template_paramRQ   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   specialize_hereA  s,    ;	8	#	c         C@  s  |  j  r |  j r |  S|  j  d  k r3 g  |  _  n  t | j    } | |  j k r_ |  j | Sg  |  j  D] } | j |  ^ qi } t |  j d  |  j	 g  | d |  } |  j | <g  |  j
 D] } | j |  ^ q | _
 |  j d  k	 r|  j j |  | _ n  |  j j | |  | _ | S(   NR  (   R  R*  R   R   t   itemsR  R8   R  R   RG   R  R   (   R   RP   t   keyR  R-  t   specializedR	  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR8   b  s    %/(c         C@  st   |  | k r i  S|  j    | j j    k rl t t g  t |  j | j  D] \ } } | j |  ^ qG i   Sd  Sd  S(   N(   R   R  R   t   merge_template_deductionsR+  R  R<   R   (   R   R;   t   formal_paramt   actual_param(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR<   u  s    1i    c         C@  s  | d  k r |  j } n  |  j r g  | D]5 } t |  r( | j r( | j d | d  |  ^ q( } | rr d } n d } | d j |  }	 n d }	 | s | r d |  j |	 f }
 nM d |  j |	 f }
 |  j d  k	 r d |  j j	   |
 f }
 n  t
 |
 |  }
 |  j |
 |  S(   NR   s   [%s]s   <%s> R  s   %s%ss   %s::%s(   R   R  R  R:   R   R#   R   RG   R*  R   R   R*   (   R   R)   RS   R   R   R+  R0  t   template_stringst   bracketsR  R(   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s$    	
5	c         C@  s>   |  j  |  r d Sx$ |  j D] } | j |  r d Sq Wd S(   Ni   i    (   RV   R  R}  (   R   RW   t
   base_class(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR}    s    c         C@  s   | j  r |  | k r d S|  j | j k r |  j r | j r |  j | j k rS d SxR t |  j | j  D]; \ } } t |  r t |  r Pn  | j |  si d Sqi Wd Sn  d S(   Ni   i    (   Rw   RG   R  R  R+  R  RV   (   R   RW   t   t1t   t2(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRV     s    	"c         C@  s&   | t  k r t S| j o% | j |   S(   N(   RZ   R   Rw   R}  (   R   RW   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR]     s    c         C@  s   |  j  d  k	 S(   N(   R   R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  sl   |  g } | d  k	 r% | j |  n  |  j j d  | |  } | sG d  S| j } | j re | j } n  | j S(   N(   R   R!   R   t   lookup_operator_for_typesR>   Rg   R   R  (   R   R  R  t   operandst   operator_entryt	   func_type(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR~    s    			s   stack allocatedc         C@  sQ   |  j  j d  } | d  k	 rM t g  | j    d  k rM t | d |  n  d  S(   Nu   <init>s2   C++ class must have a nullary constructor to be %s(   R   R  R   t
   best_matcht   all_alternativesR   (   R   R   R   t   constructor(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   check_nullary_constructor  s    'N(   RJ   RK   Rw   R   R   R   R   R*  R9  R
   R  R  R-   R   R  R  R   R   R)  R1   R2  R8   R<   R   R}  RV   R]   R   R~  RE  (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s4   				@	'	!							R,  c           B@  s\   e  Z e d   Z d d	 d d  Z d   Z d   Z d   Z d   Z	 d   Z
 d   Z RS(
   c         C@  s   | |  _  | |  _ d  S(   N(   R   t   optional(   R   R   RF  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    	i    c         C@  s    | r |  j  d | S|  j  Sd  S(   NR   (   R   (   R   R)   RS   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   |  | k r | |  S|  Sd  S(   N(    (   R   RP   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR8     s    c         C@  s   i | |  6S(   N(    (   R   R;   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR<     s    c         C@  s'   t  | t  r |  j | j k Sd Sd  S(   Ni    (   R0   R,  R   (   R   RW   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRV     s    c         C@  s   t  |  j  S(   N(   R   R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s?   t  | t  r" t |  j | j  St t |   t |   Sd  S(   N(   R0   R,  t   cmpR   R>   (   R   R?   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   __cmp__  s    c         C@  s'   t  | t  r |  j | j k St Sd  S(   N(   R0   R,  R   R
   (   R   R?   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    N(   RJ   RK   R
   R   R   R   R8   R<   RV   R   RH  R   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR,    s   					c         C@  s   t  |  t  o |  j S(   N(   R0   R,  RF  (   R>   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s    t	   CEnumTypec           B@  sh   e  Z d  Z d  Z d Z d   Z d   Z d   Z d d
 d d  Z	 d   Z
 d   Z d
 d
 d	  Z RS(   i   ic         C@  s;   | |  _  | |  _ g  |  _ | |  _ d |  j   |  _ d  S(   Ns   (%s) 0(   R   RG   RP   R  R   R   (   R   R   RG   R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s
    				c         C@  s   |  j  S(   N(   R   (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRU     s    c         C@  s   d |  j  |  j d |  j f S(   Ns   <CEnumType %s %s%s>R   s    typedef(   R   s    typedef(   R   RG   R  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    i    c         C@  sY   | s | r |  j  } n1 |  j r- |  j } n d |  j } t | |  } |  j | |  S(   Ns   enum %s(   R   R  RG   R   R*   (   R   R)   RS   R   R   R(   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    	c         C@  sM   d |  j    |  _ | j t j d d d i |  j   d 6|  j d 6 t S(   NR   R   s   TypeConversion.cR   R   R   (   R'   R   R   R   R   R   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   !  s    	c         C@  sM   d |  j    |  _ | j t j d d d i |  j   d 6|  j d 6 t S(   NR   R   s   TypeConversion.cR   R   R   (   R'   R   R   R   R   R   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   )  s    	c         C@  sU   d | p |  j  | f } d | t |  t |  d | j | pI |  j |  |  f S(   Ns   %s(%s)s
   %s = %s;%ss    %s(   R   t   typecastt   c_long_typeRW  R   (   R   R   R   R   R   R   R   t   rhs(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   1  s    
N(   RJ   RK   Rz   R   R  R   RU   R   R   R   R   R   R   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRI    s   						t
   CTupleTypec           B@  sM   e  Z e Z d    Z d   Z d d d d  Z d   Z d   Z	 d   Z
 RS(   c         C@  sr   | |  _  | |  _ t |  |  _ d t j |  j  f |  _ d t j |  j  f |  _ t |  _	 d  |  _ d  |  _ d  S(   Ns   %s_to_py_%ss   %s_from_py_%s(   RG   t
   componentsR   Rk  R   R  R   R   R   R   R   R  R  (   R   RG   RN  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   A  s    				c         C@  s   d d j  d   |  j D  S(   Ns   (%s)s   , c         s@  s   |  ] } t  |  Vq d  S(   N(   RD   (   R  R&   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pys	   <genexpr>L  s    (   R#   RN  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRU   K  s    i    c         C@  s-   | s | r t  |   S|  j |  j |  Sd  S(   N(   RD   R*   RG   (   R   R)   RS   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   N  s    
c         C@  s+   x$ |  j  D] } | j |  s
 t Sq
 Wt S(   N(   RN  R   R
   R   (   R   R   t	   component(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   U  s    c      
   C@  s   |  j  t k r d  S|  j  d  k r x6 |  j D]+ } | j |  s, d  |  _ t |  _  t Sq, Wt d |  j   d |  j d |  j d t |  j   } t	 j
 d d d | |  _  n  | j |  j   t S(   Nt   struct_type_declRN  RQ  Rk  t   ToPyCTupleUtilitys   TypeConversion.cR   (   R  R
   R   RN  R   R   RT  R   R   R   R   R   R   (   R   R   RO  R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   [  s"    				c      
   C@  s   |  j  t k r d  S|  j  d  k r x6 |  j D]+ } | j |  s, d  |  _ t |  _  t Sq, Wt d |  j   d |  j d |  j d t |  j   } t	 j
 d d d | |  _  n  | j |  j   t S(   NRP  RN  RQ  Rk  t   FromPyCTupleUtilitys   TypeConversion.cR   (   R  R
   R   RN  R   R   RT  R   R   R   R   R   R   (   R   R   RO  R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR   r  s"    				N(   RJ   RK   R   R   R   RU   R   R   R   R   R   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRM  <  s   	
			c         C@  s2   t  |   }  t j t |   } t | |   } | S(   N(   R   R   t   ctuple_type_prefixt   type_list_identifierRM  (   RN  RG   t
   tuple_type(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   c_tuple_type  s    t   UnspecifiedTypec           B@  s)   e  Z d  Z d d d d  Z d   Z RS(   i   i    c         C@  s   d S(   Ns   <unspecified>(    (   R   R)   RS   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   t  S(   N(   R
   (   R   RW   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRV     s    N(   RJ   RK   Rm   R   R   RV   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRW    s   t	   ErrorTypec           B@  s\   e  Z d  Z d Z d Z d Z d Z d   Z d   Z d d	 d d  Z
 d   Z d   Z RS(
   i   RK  i    t   dummyc         C@  s   t  S(   N(   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   t  S(   N(   R   (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   d S(   Ns   <error>(    (   R   R)   RS   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    c         C@  s   d S(   Ni   (    (   R   RW   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRV     s    c         C@  s   d S(   NRY  (    (   R   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s    N(   RJ   RK   R   R   R   R   R   R   R   R   R   RV   R   (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRX    s   			R  t   shortR  t   doubles   long doublei   i   i   R,  R  i   i   t   lig      ?g      ?t   PyGILState_STATEt   PyThreadStateR7  t	   Py_bufferR   t   integralt   floatingt   numerict   __Pyx_Buf_DimInfot   __Pyx_Buffert   __Pyx_LocalBuf_NDt   __pyx_memoryview_objt   memoryviewslicet   __Pyx_memviewslicet   floatcomplext   doublecomplexR  R  R  R  R  R   t   ssize_tR%  R'  RB   c         C@  sw   |  j  rs | j t  rH |  j } |  j pG |  j oG | |  j | j k  S| j t  rs |  j oo |  j | j k Sn  t	 S(   N(
   Ro   RY   t
   c_int_typeR   Rz   Rb   R  R  Rc   R
   (   R^   t   dst_typet   unsigned(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   is_promotionX  s    	
		c   (      C@  s  t  |   } g  } g  } x| D]} d } | j }	 |	 j rI |	 j }	 n  |	 j s |	 j ru | d k	 ru d |	 } n  | j | | f  q n  t  |	 j  }
 |
 |	 j	 } | | k  s |	 j
 r7| |
 k r7|
 | k r |	 j
 r |
 } n# | | k  rd | } n
 d |
 } d | | f } | j | | f  q n  |	 j rg  |  D] } | j ^ qG} t t g  t |	 j |  D] \ } } | j j |  ^ qui   } | d k r| j | d f  qt  |  t  |	 j  k  r.| j | d d j g  t |	 j  t | j    D] } | j ^ q f  qg  |	 j D] } | | ^ q8} d	 d
 l m } | d | j d d j g  | D] } t |  ^ qz d | j d d j g  | D] } | j   ^ q d |	 j |  d | j  } | j | | j f  q | j | |	 f  q Wt  |  d	 k r3| d d St  |  d k r| d k	 r| d \ } } t  |  d	 k sg  | D] \ } } | | k rzd	 ^ qzrt | |  qt | d  n  d Sg  } g  } i  } x0t |  D]"\ } \ } }	 d d d d g } xt t t  |   t  |	 j    D]} |  | j } |	 j | j }  |  j |  }! |! r| j  r| j! r| j d k r|  j"   j# r|  j"   }" n | j$   }" |" r|  j |"  }! |! r|" } | |  f | | <qqn  |! r| |  k s|  j% |  rq|	 j& rPqt' | |   r;| d c d	 7<q| j( rM|  j( s_| j) r|  j) r| d c t* |  j+ |  j, | j+ | j,  d	 7<q| j  s| d	 c d	 7<q| d c d	 7<q*d | |  f } | j | | f  Pq*W| j | | | f  qW| r| j-   t  |  d	 k rt| d d }# | d	 d }$ |# |$ k rt| d k	 rmt | d  n  d Sn  | d d }% |% | k r| r| |% \ }& }' |  |& j. |' |  |  |& <n  |% S| d k	 rt  |  d	 k rt | | d d	  qt | d  n  d S(   s  
    Given a list args of arguments and a list of functions, choose one
    to call which seems to be the "best" fit for this list of arguments.
    This function is used, e.g., when deciding which overloaded method
    to dispatch for C++ classes.

    We first eliminate functions based on arity, and if only one
    function has the correct arity, we return it. Otherwise, we weight
    functions based on how much work must be done to convert the
    arguments, with the following priorities:
      * identical types or pointers to identical types
      * promotions
      * non-Python types
    That is, we prefer functions where no arguments need converted,
    and failing that, functions where only promotions are required, and
    so on.

    If no function is deemed a good fit, or if two or more functions have
    the same weight, we return None (as there is no best match). If pos
    is not None, we also generate an error.
    R   s   Calling non-function type '%s's   at least %ss
   at most %ss9   Call with wrong number of arguments (expected %s, got %s)s    Unable to deduce type parameterss"   Unable to deduce type parameter %ss   , i   (   R$  R   s   [%s]R  RG   s   <%s>R>   R   i    s   no suitable method foundRD   i   s$   Invalid conversion from '%s' to '%s's   ambiguous overloaded methodiN(/   R   R>   Rg   R   Ru   R   R   R!   R  R  R  R  R   R6  R+  R<   R#   R.   t   keysR   R   R$  RD   RG   R   R8   R   R   Ro  R  t   minR_   Re   RC   RO   R|   R  RY   R  Ro  Rb   Rc   t   absR  R   t   sortt	   coerce_to((   R  t	   functionsR   R   t   actual_nargst
   candidatest   errorsR  t
   error_mesgRA  t	   max_nargst	   min_nargst   expectationR  t	   arg_typest   patternR;   t
   deductionsR0  t	   type_listR$  R  t   specializationt   errmsgt   et   possibilitiest	   bad_typest   needed_coercionsR  t   scoreR<  R^   Rm  t
   assignablet
   c_src_typet   score1t   score2t   functiont   arg_it   coerce_to_type(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRB  e  s    				
	4	F 33=+'		
c         C@  st   |  d  k s | d  k r d  S|  } xK | j   D]= \ } } | | k rb |  | | | k rl d  Sq/ | | | <q/ W| S(   N(   R   R3  (   Ri  R	  R%   R0  RQ   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR6  	  s    c         C@  s*  |  j  r |  j }  n  | j  r* | j } n  |  | k r? |  } n |  j sQ | j r~ d   } t t | |   | |    } n |  j r | j r t } n |  j | j k  r | } nr |  j | j k r |  } nW |  j | j k  r |  } n< |  j | j k r| } n! |  j	 | j	 k r |  } n | } | S(   sR   Given two numeric types, return the narrowest type encompassing both of them.
    c         S@  s   |  j  r |  j S|  S(   N(   Rd   R8  (   t   ntype(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR8     s    	(
   Rs   R  Rd   R/  t   widest_numeric_typeRz   Rl  R  R   R{   (   t   type1t   type2t   widest_typeR8  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s4    											c         C@  s   t  |  |  | k S(   N(   R  (   t
   small_typet
   large_type(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   numeric_type_fits9  s    c         C@  s   |  j  | j  Ar1 |  j  r% |  j }  q1 | j } n  |  | k rA |  S|  t k sY | t k ro |  j ro | j ro t St |  |  } | d  k r t S| S(   N(   Rs   R  R  Ro   R  t   _spanning_typeR   RZ   (   R  R  t	   span_type(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   independent_spanning_type=  s    	*c         C@  sk   |  | k r |  S|  t  k s( | t  k r, t  S|  t k sD | t k rH t  St |  |  } | d  k rg t  S| S(   N(   R  Rg  R  R   (   R  R  R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   spanning_typeW  s    c         C@  s&  |  j  r | j  r t |  |  S|  j rM |  j d k rM | j  rM t t |  S| j r{ | j d k r{ |  j  r{ t |  t  S|  j r | j r t |  |  S|  j s | j r t S|  j	 |  r |  j r |  j
   r t S|  S| j	 |   r| j r| j
   rt S| S|  j r| j rt Sd  Sd  S(   NR  (   Ro   R  RC   R   R  Rf   t   widest_extension_typeRe   R  R_   R  Rg   t   c_void_ptr_typeR   (   R  R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR  h  s*    !!c         C@  s   |  j    s | j    r t Sx_ t r} |  j |  r8 | S| j |   rK |  S|  j | j }  } |  d  k sv | d  k r t Sq Wd  S(   N(   R  R  R   R\   R   R   (   R  R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s    	c         C@  s   t  j |  | | f  S(   N(   t   modifiers_and_name_to_typet   get(   R   t   longnessR   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   simple_c_type  s    c         C@  s  d  } |  j d  r( t |  d  } nD |  j d  rJ t |  d  } n" |  j d  rl t |  d   } n  | r| t |  St d d |   } | r | Sd } d } |  d k r d } nU|  d	 k r d } n@|  d
 k r d } n+|  d k r d } n|  d k rd } n|  d k r"d } n |  j d  rD|  d }  d } n2 |  j d  rv|  j d  rv|  d }  d } n  d } x8 |  j d  r|  j d d d  j   }  | d 8} qWx8 |  j d  r|  j d d d  j   }  | d 7} qW| d k r|  rd }  n  t | | |   S(   Nt   p_i   Rj  i   RX  ii    R  R  R  R   Rk  R%  t   uR  RZ  R   R  R  (   R   Rn  t   parse_basic_typet   endswithR   R  R    RT   (   R   Rv  t
   basic_typeR   R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    sV    
						
	
		c         C@  s!   |  t  k r t  St |  |  Sd  S(   N(   RZ   Rj  (   R   Rk  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s    c         C@  s4   |  t  k r t  S|  j r& t |  j  St |   Sd  S(   N(   RZ   Rs   R   R  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRl    s
    	c         C@  s   |  t  k r t  St |   Sd  S(   N(   RZ   R  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt
   c_ref_type  s    c         C@  s   |  t  k r t  St |   Sd  S(   N(   RZ   R  (   R   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   c_const_type  s    c         C@  s   |  j  |  S(   N(   RY   (   R  R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt	   same_type  s    c         C@  s   |  j  |  S(   N(   R_   (   R  R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR_     s    c         C@  sh   |  | k s% |  j  r) t |  |  r) | S|  t k rW | rW | j rW | j d k rW | S|  j |  Sd  S(   NR>   (   Re   R_   R  RC   R   R   (   t   to_typet	   from_typeR   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRJ    s    c         C@  s   t  d j d   |  D   S(   NR   c         s@  s   |  ] } t  |  Vq d  S(   N(   R   (   R  R>   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pys	   <genexpr>  s    (   t
   cap_lengthR#   (   R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyRT    s    c         C@  s=  |  j    } t j |  } | d  k r9| } t j d d |  } t j d d |  } t j d d |  } | j d d  j d d	  j d d
  j d d  j d d  j d d  j d d  j d d  j d d  j d d  j d d  j d d  j d d  } t t j d d    |   } | t | <n  | S(!   Ns    +R   s    ([^a-zA-Z0-9_])s   \1s   ([^a-zA-Z0-9_]) R   t   __dunders   const t   __const_t   __space_RX  t   __ptrt   &t   __reft   [t   __lArrt   ]t   __rArrt   <t   __lAngt   >t   __rAngt   (t   __lParent   )t   __rParenR  t   __comma_s   ::t   __in_s   [^a-zA-Z0-9_]c         S@  s   d t  |  j d   S(   Ns   __%Xi    (   R"   t   group(   R  (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   <lambda>  s    (   R   t   _type_identifier_cacheR  R   Rt  Ru  R    R  (   R>   t   declR$   (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR     s.    i?   i   c         C@  s@   t  |   | k r |  Sd t t |    d |  | d  f Sd  S(   Ns   %x__%s__etci   i   i   i   (   R   Rr  R   (   R  t
   max_prefixt   max_len(    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyR    s    (   t
   __future__R    R   Rt  R   t	   NameErrort	   functoolst   CodeR   R   R   R   R   R   t   ErrorsR   R   RB   R	   RN   R   R   R   R   Ru  R  R.   R  R  R  R  R  R  R  R  R  R  t	   ForbidUseR   R   R  R  R  R  R  R  R  R!  R#  R&  R(  R/  RI  R\  Rj  R   R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R"  R  R,  R  RI  RM  RV  RW  RX  R  R  t   _rank_to_type_nameR  t   RANK_INTt	   RANK_LONGR-  t   UNSIGNEDR   RZ   t   unspecified_typeR  t   c_void_typeRe  t   c_ushort_typet   c_uint_typet   c_ulong_typet   c_ulonglong_typeRd  t   c_short_typeRl  RK  R  Rf  t   c_sshort_typet   c_sint_typet   c_slong_typet   c_slonglong_typet   c_float_typeR  t   c_longdouble_typet   c_float_complex_typet   c_double_complex_typet   c_longdouble_complex_typet   c_anon_enum_typet   c_returncode_typeR  Rg  t   c_py_ucs4_typet   c_py_hash_t_typeR  t   c_ssize_t_typet   c_size_t_typet   c_ptrdiff_t_typet   c_null_ptr_typeR  t   c_void_ptr_ptr_typeR   t   c_const_char_ptr_typet   c_uchar_ptr_typet   c_const_uchar_ptr_typet   c_char_ptr_ptr_typet   c_int_ptr_typet   c_py_unicode_ptr_typet   c_const_py_unicode_ptr_typet   c_py_ssize_t_ptr_typet   c_ssize_t_ptr_typet   c_size_t_ptr_typeR   t   c_gilstate_typeR   t   c_threadstate_typet   c_threadstate_ptr_typet   c_py_buffer_typet   c_py_buffer_ptr_typet   cy_integral_typet   cy_floating_typet   cy_numeric_typet   c_buf_diminfo_typet   c_pyx_buffer_typet   c_pyx_buffer_ptr_typet   c_pyx_buffer_nd_typet   cython_memoryview_typet   memoryviewslice_typeR  Ro  RB  R6  R  R  R  R  R  R  R  R  R  Rl  R  R  R  R_   RJ  RT  R  R   R  (    (    (    s=   /bar/jli/Chip-seq/script/cython/Cython/Compiler/PyrexTypes.pyt   <module>   s  	 N?~;-3G		,5K# 			
			!3	
 ++	>N														#							0										