+
    
þÎjBÛ  ã                   ó$  € ^ RI Ht ^ RIHtHtHtHtHtHt ^ RI	H
t
 ^ RIHt ^ RIHt ^ RIHt ^ RIHtHt ^ RIHtHtHtHtHtHtHtHtHtHtHt ^ R	I H!t! ^ R
I"H#t# RGR lt$R t%R t&R t'R t(R t)R t*R t+R t,R t-R t.R t/R t0R t1R t2R t3R t4R t5R t6R t7R t8R  t9R! t:R" t;R# t<R$ t=R% t>R& t?R' t@R( tAR) tBR* tCR+ tDR, tER- tFR. tGR/ tHR0 tIR1 tJR2 tKR3 tLR4 tMR5 tNR6 tOR7 tPR8 tQR9 tRR: tSR; tTR< tUR= tVR> tWR? tXR@ tYRA tZRB t[RC t\RD t]RE t^RF# )Hé    )ÚStringIO)ÚsymbolsÚEqÚpiÚCatalanÚLambdaÚDummy©ÚEquality)ÚSymbol)Úerf)ÚIntegral)ÚMatrixÚMatrixSymbol)ÚcodegenÚmake_routineÚCCodeGenÚ
C89CodeGenÚ
C99CodeGenÚInputArgumentÚCodeGenErrorÚFCodeGenÚCodeGenArgumentListErrorÚOutputArgumentÚInOutArgument)Úraises)Úimplemented_functionc                ón   € \        4       pV ! WW#V4       VP                  4       pVP                  4        V# )a  Wrapper for dump_fn. dump_fn writes its results to a stream object and
this wrapper returns the contents of that stream as a string. This
auxiliary function is used by many tests below.

The header and the empty lines are not generated to facilitate the
testing of the output.
)r   ÚgetvalueÚclose)Údump_fnÚroutinesÚprefixÚheaderÚemptyÚoutputÚsources   &&&&&  ÚX/opt/data/home/.local/lib/python3.14/site-packages/sympy/utilities/tests/test_codegen.pyÚ
get_stringr)      s1   € ô ‹Z€FÙˆH˜f¨eÔ4Ø�_‰_Ó€FØ
‡L�L„NØ€Mó    c                  óª  aa	a
aa€ \        R 4      w  oo
ooS
S,           S,          o	\        \        V	V
V3R l4       \        \        VV	V
VV3R l4       \        R\	        SS	4      SS
SS.R7      p V P
                   Uu. uF  qP                  NK  	  upSS
SS.8X  g   Q hV P
                   Uu. uF  p\        V4      NK  	  up\        \        \        \        .8X  g   Q h\        R\	        SS	4      SS
S.R7      p V P
                   Uu. uF  p\        V4      NK  	  up\        \        \        .8X  g   Q h^ RIHpHp \        VRR.4      w  rE\        RR	R
7      pV! RV4      p\        R\	        WG,          WW,          4      WTV.R7      p V P
                   Uu. uF  qP                  NK  	  upVP                  VP                  V.8X  g   Q h\!        S
S,          S,          S
^^3S^^34      o	\        R\	        SS	4      SS
SS.R7      p V P
                   Uu. uF  qP                  NK  	  upSS
SS.8X  g   Q hR# u upi u upi u upi u upi u upi )za x y zc                  ó$   <€ \        R S SS.R7      # ©Útest©Úargument_sequence©r   )ÚexprÚxÚzs   €€€r(   Ú<lambda>Ú-test_Routine_argument_order.<locals>.<lambda>&   s   ø€ ¬\¸&À$Ø ˜Võ.%r*   c                  ó:   <€ \        R \        S S4      SSS.R7      # r-   )r   r   )Úar2   r3   Úyr4   s   €€€€€r(   r5   r6   (   s"   ø€ ¬\¸&Ä"ÀQØóCØ%&¨¨1 Iõ./r*   r.   r/   ©ÚIndexedBaseÚIdxÚAÚBÚmT©ÚintegerÚiN)r   r   r   r   r   Ú	argumentsÚnameÚtyper   r   r   Úsympy.tensorr;   r<   ÚmapÚlabelr   )ÚrÚargr;   r<   r=   r>   r?   rB   r8   r2   r3   r9   r4   s           @@@@@r(   Útest_Routine_argument_orderrK   #   s  ü€ Ü˜Ó#�J€A€qˆ!ˆQØ��E�1�9€DÜ
Ô#ö &%ô &ä
Ô#÷ &/ð &/ô 0ä�VœR  4›[¸QÀÀ1Àa¸LÔI€AØ!"§¢Ó.¡˜#�XŒX¡Ñ.°1°a¸¸A°,Ô>Ð>Ð>Ø"#§+¢+Ó/¡+˜3ŒT�#ŽY¡+Ñ/Ü”}¤n´mð4Gô Gð Gð Gä�VœR  4›[¸QÀÀ1¸IÔF€AØ"#§+¢+Ó/¡+˜3ŒT�#ŽY¡+Ñ/Ü”}¤mð46ô 6ð 6ð 6÷ .Üˆ{˜S #˜JÓ'�D€AÜ�˜TÔ"€AÙˆC�‹€AÜ�VœR ¥ a¥d›^ÀÀa¸yÔI€AØ!"§¢Ó.¡˜#�XŒX¡Ñ.°1·7±7¸A¿G¹GÀQÐ2GÔGÐGÐGä�A�a•C˜•E˜A˜q !˜9 q¨!¨Q iÓ0€DÜ�VœR  4›[¸QÀÀ1Àa¸LÔI€AØ!"§¢Ó.¡˜#�XŒX¡Ñ.°1°a¸¸A°,Ô>Ð>Ò>ùò! /ùÚ/ùò 0ùò /ùò /s   Á>H<Â.IÄ	IÆIÈIc                  óX   € \        4       p \        V P                  . 4      pVR 8X  g   Q hR# )z$#include "file.h"
#include <math.h>
N©r   r)   Údump_c©Úcode_genr'   s     r(   Útest_empty_c_coderQ   >   s(   € Ü‹|€HÜ˜Ÿ™¨Ó,€FØÐ?Ô?Ð?Ò?r*   c                  óŠ   € \        4       p \        V P                  . R R7      pVR,          R8X  g   Q hVR,          R8X  g   Q hR# )T©r$   ºNéR   NzR/******************************************************************************
 *ºéž   NNa·  *
 *                                                                            *
 *              See http://www.sympy.org/ for more information.               *
 *                                                                            *
 *                       This file is part of 'project'                       *
 ******************************************************************************/
#include "file.h"
#include <math.h>
NrM   rO   s     r(   Útest_empty_c_code_with_commentrX   D   sR   € Ü‹|€HÜ˜Ÿ™¨°DÔ9€FØ�#�;Ø]ôð ð ð �$�<ð ["ô ð ò r*   c                  óX   € \        4       p \        V P                  . 4      pVR 8X  g   Q hR# )z9#ifndef PROJECT__FILE__H
#define PROJECT__FILE__H
#endif
N)r   r)   Údump_hrO   s     r(   Útest_empty_c_headerr[   V   s(   € Ü‹|€HÜ˜Ÿ™¨Ó,€FØÐSÔSÐSÒSr*   c                  ó®   € \        R 4      w  rpW,           V,          p\        RV4      p\        4       p\        VP                  V.4      pRpWg8X  g   Q hR# )úx,y,zr.   úœ#include "file.h"
#include <math.h>
double test(double x, double y, double z) {
   double test_result;
   test_result = z*(x + y);
   return test_result;
}
N©r   r   r   r)   rN   ©r3   r9   r4   r2   ÚroutinerP   r'   Úexpecteds           r(   Útest_simple_c_coderc   \   sX   € Ü�gÓ�G€Aˆ!Ø�E�1�9€DÜ˜6 4Ó(€GÜ‹|€HÜ˜Ÿ™¨'¨Ó3€Fð	ð ð ÔÐÒr*   c                  ó®   € \        R 4      w  rpW,           V,          p\        RV4      p\        4       p\        VP                  V.4      pRpWg8X  g   Q hR# )zif, typedef, whiler.   z¸#include "file.h"
#include <math.h>
double test(double if_, double typedef_, double while_) {
   double test_result;
   test_result = while_*(if_ + typedef_);
   return test_result;
}
N)r   r   r   r)   rN   r`   s           r(   Útest_c_code_reserved_wordsre   n   sY   € ÜÐ*Ó+�G€Aˆ!Ø�E�Q�;€DÜ˜6 4Ó(€GÜ‹|€HÜ˜Ÿ™¨'¨Ó3€Fð	ð ð ÔÐÒr*   c                  óÈ   € \        R \        \        ,          4      p \        4       p\	        VP
                  V .4      pR\        P                  ! ^4      ,          pW#8X  g   Q hR# )r.   z§#include "file.h"
#include <math.h>
double test() {
   double test_result;
   double const Catalan = %s;
   test_result = pow(M_PI, Catalan);
   return test_result;
}
N)r   r   r   r   r)   rN   Úevalf©ra   rP   r'   rb   s       r(   Útest_numbersymbol_c_coderi   €   sS   € Ü˜6¤2¤w¥;Ó/€GÜ‹|€HÜ˜Ÿ™¨'¨Ó3€Fð	ô 	�Š�bÓõ	€Hð ÔÐÒr*   c                  ó¦   € \        R 4      w  rpW,           p\        RW2W.R7      p\        4       p\        VP                  V.4      pRpWg8X  g   Q hR# )r]   r.   r/   z˜#include "file.h"
#include <math.h>
double test(double z, double x, double y) {
   double test_result;
   test_result = x + y;
   return test_result;
}
Nr_   r`   s           r(   Útest_c_code_argument_orderrk   ‘   sX   € Ü�gÓ�G€Aˆ!Ø�5€DÜ˜6 4¸q¸9ÔE€GÜ‹|€HÜ˜Ÿ™¨'¨Ó3€Fð	ð ð ÔÐÒr*   c                  ó®   € \        R 4      w  rpW,           V,          p\        RV4      p\        4       p\        VP                  V.4      pRpWg8X  g   Q hR# )r]   r.   úd#ifndef PROJECT__FILE__H
#define PROJECT__FILE__H
double test(double x, double y, double z);
#endif
N)r   r   r   r)   rZ   r`   s           r(   Útest_simple_c_headerrn   £   sX   € Ü�gÓ�G€Aˆ!Ø�E�1�9€DÜ˜6 4Ó(€GÜ‹|€HÜ˜Ÿ™¨'¨Ó3€Fð	ð ð ÔÐÒr*   c                  ó|   € \        R 4      w  rpW,           V,          pRR.p\        RV3RRRRR7      pWT8X  g   Q hR# )	r]   r.   ÚCÚfileF©r$   r%   N)úfile.cr^   )úfile.hrm   ©r   r   )r3   r9   r4   r2   rb   Úresults         r(   Útest_simple_c_codegenrw   ²   sP   € Ü�gÓ�G€Aˆ!Ø�E�1�9€Dð	ð	ð€Hô �f˜d�^ S¨&¸ÀeÔL€FØÔÐÒr*   c                  óº   aa€ \        R 4      w  rpW,           V,          pW,
          V,          p\        RW4.4      o\        4       o\        \        VV3R l4       R# )r]   r.   c                  ó2   <€ \        S P                  S.4      # ©N©r)   rZ   ©rP   ra   s   €€r(   r5   Ú)test_multiple_results_c.<locals>.<lambda>Ñ   ó   ø€ ¤¨H¯O©O¸g¸YÔ!Gr*   N)r   r   r   r   r   ©r3   r9   r4   Úexpr1Úexpr2rP   ra   s        @@r(   Útest_multiple_results_cr‚   È   sM   ù€ Ü�gÓ�G€Aˆ!Ø�U�A�I€EØ�U�A�I€EÜØØ	ˆó€Gô ‹|€HÜ
Œ<ÕGÖHr*   c                  ó(   € \        \        R  4       R# )c                  ó   € \        R . 4      # ©r.   r1   © r*   r(   r5   Ú#test_no_results_c.<locals>.<lambda>Õ   ó   € œ|¨F°BÔ7r*   N©r   Ú
ValueErrorr†   r*   r(   Útest_no_results_cr‹   Ô   ó   € Ü
Œ:Ñ7Ö8r*   c                  ón  € ^ RI Hp  ^ RIHp ^ RIHpHpHp ^ RIH	pH
p ^ RIHp ^ RIHpHp	Hp
HpHpHp \)        R4      pRV ! V4      3R	V! V4      3R
V	! V4      3RV
! V4      3RV! V4      3RV! V4      3RV! V4      3RV! V4      3RV! V4      3RV! V4      3RV! V4      3RV! V4      3RV! V4      3RV! V4      3RV! V4      3.p\+        VRRRRR7      pV^ ,          ^ ,          R8X  g   Q hV^ ,          ^,          R8X  g   Q hV^,          ^ ,          R8X  g   Q hV^,          ^,          R8X  g   Q hR# ) r   ©ÚAbs©Úlog©ÚcoshÚsinhÚtanh)ÚceilingÚfloor©Úsqrt©ÚacosÚasinÚatanÚcosÚsinÚtanr3   Ú	test_fabsÚ	test_acosÚ	test_asinÚ	test_atanÚ	test_ceilÚtest_cosÚ	test_coshÚ
test_floorÚtest_logÚtest_lnÚtest_sinÚ	test_sinhÚ	test_sqrtÚtest_tanÚ	test_tanhÚC89rq   Frr   rs   aö  #include "file.h"
#include <math.h>
double test_fabs(double x) {
   double test_fabs_result;
   test_fabs_result = fabs(x);
   return test_fabs_result;
}
double test_acos(double x) {
   double test_acos_result;
   test_acos_result = acos(x);
   return test_acos_result;
}
double test_asin(double x) {
   double test_asin_result;
   test_asin_result = asin(x);
   return test_asin_result;
}
double test_atan(double x) {
   double test_atan_result;
   test_atan_result = atan(x);
   return test_atan_result;
}
double test_ceil(double x) {
   double test_ceil_result;
   test_ceil_result = ceil(x);
   return test_ceil_result;
}
double test_cos(double x) {
   double test_cos_result;
   test_cos_result = cos(x);
   return test_cos_result;
}
double test_cosh(double x) {
   double test_cosh_result;
   test_cosh_result = cosh(x);
   return test_cosh_result;
}
double test_floor(double x) {
   double test_floor_result;
   test_floor_result = floor(x);
   return test_floor_result;
}
double test_log(double x) {
   double test_log_result;
   test_log_result = log(x);
   return test_log_result;
}
double test_ln(double x) {
   double test_ln_result;
   test_ln_result = log(x);
   return test_ln_result;
}
double test_sin(double x) {
   double test_sin_result;
   test_sin_result = sin(x);
   return test_sin_result;
}
double test_sinh(double x) {
   double test_sinh_result;
   test_sinh_result = sinh(x);
   return test_sinh_result;
}
double test_sqrt(double x) {
   double test_sqrt_result;
   test_sqrt_result = sqrt(x);
   return test_sqrt_result;
}
double test_tan(double x) {
   double test_tan_result;
   test_tan_result = tan(x);
   return test_tan_result;
}
double test_tanh(double x) {
   double test_tanh_result;
   test_tanh_result = tanh(x);
   return test_tanh_result;
}
rt   aØ  #ifndef PROJECT__FILE__H
#define PROJECT__FILE__H
double test_fabs(double x);
double test_acos(double x);
double test_asin(double x);
double test_atan(double x);
double test_ceil(double x);
double test_cos(double x);
double test_cosh(double x);
double test_floor(double x);
double test_log(double x);
double test_ln(double x);
double test_sin(double x);
double test_sinh(double x);
double test_sqrt(double x);
double test_tan(double x);
double test_tanh(double x);
#endif
N)Ú$sympy.functions.elementary.complexesr�   Ú&sympy.functions.elementary.exponentialr‘   Ú%sympy.functions.elementary.hyperbolicr“   r”   r•   Ú#sympy.functions.elementary.integersr–   r—   Ú(sympy.functions.elementary.miscellaneousr™   Ú(sympy.functions.elementary.trigonometricr›   rœ   r�   rž   rŸ   r    r   r   )r�   r‘   r“   r”   r•   r–   r—   r™   r›   rœ   r�   rž   rŸ   r    r3   Ú	name_exprrv   s                    r(   Útest_ansi_math1_codegenr¸   Ø   s_  € å8Ý:ßHÑHßDÝ=ßZ×ZÜ�‹€Aà	‘c˜!“fÐØ	‘d˜1“gÐØ	‘d˜1“gÐØ	‘d˜1“gÐØ	‘g˜a“jÐ!Ø	‘S˜“VÐØ	‘d˜1“gÐØ	‘u˜Q“xÐ Ø	‘S˜“VÐØ	‘C˜“FÐØ	‘S˜“VÐØ	‘d˜1“gÐØ	‘d˜1“gÐØ	‘S˜“VÐØ	‘d˜1“gÐð€Iô" �Y  v°eÀ5ÔI€FØ�!�9�Q�<˜8Ô#Ð#Ð#Ø�!�9�Q�<ð	Fôð ð ð$ �!�9�Q�<˜8Ô#Ð#Ð#Ø�!�9�Q�<ð	0ô
ð 
ò 
r*   c                  ó,  € ^ RI Hp  \        R4      w  rRV ! W4      3RW,          3.p\        VRRRRR7      pV^ ,          ^ ,          R	8X  g   Q hV^ ,          ^,          R
8X  g   Q hV^,          ^ ,          R8X  g   Q hV^,          ^,          R8X  g   Q hR# )r   ©Úatan2úx,yÚ
test_atan2Útest_powr°   rq   Frr   rs   a*  #include "file.h"
#include <math.h>
double test_atan2(double x, double y) {
   double test_atan2_result;
   test_atan2_result = atan2(x, y);
   return test_atan2_result;
}
double test_pow(double x, double y) {
   double test_pow_result;
   test_pow_result = pow(x, y);
   return test_pow_result;
}
rt   z…#ifndef PROJECT__FILE__H
#define PROJECT__FILE__H
double test_atan2(double x, double y);
double test_pow(double x, double y);
#endif
N©r¶   r»   r   r   )r»   r3   r9   r·   rv   s        r(   Útest_ansi_math2_codegenrÀ     s®   € å>Ü�5‹>�D€Aà	‘u˜Q“{Ð#Ø	�Q•TÐð€Iô �Y  v°eÀ5ÔI€FØ�!�9�Q�<˜8Ô#Ð#Ð#Ø�!�9�Q�<ð	Nôð ð ð
 �!�9�Q�<˜8Ô#Ð#Ð#Ø�!�9�Q�<ð	ôð ò r*   c                  ó  € ^ RI Hp HpHp \	        R4      w  r4pRV! V4      V ! V4      ,           V! V4      ,           ^,          P                  4       3RV ! V ! V ! V ! V ! V ! V ! V ! W4,           V,           4      4      4      4      4      4      4      4      3.p\        VRRRRR7      pV^ ,          ^ ,          R	8X  g   Q hV^ ,          ^,          R
8X  g   Q hV^,          ^ ,          R8X  g   Q hV^,          ^,          R8X  g   Q hR# )r   ©rž   rŸ   r    r]   Útest1Útest2r°   rq   Frr   rs   a-  #include "file.h"
#include <math.h>
double test1(double x, double y, double z) {
   double test1_result;
   test1_result = pow(sin(x), 7) + 7*pow(sin(x), 6)*cos(y) + 7*pow(sin(x), 6)*tan(z) + 21*pow(sin(x), 5)*pow(cos(y), 2) + 42*pow(sin(x), 5)*cos(y)*tan(z) + 21*pow(sin(x), 5)*pow(tan(z), 2) + 35*pow(sin(x), 4)*pow(cos(y), 3) + 105*pow(sin(x), 4)*pow(cos(y), 2)*tan(z) + 105*pow(sin(x), 4)*cos(y)*pow(tan(z), 2) + 35*pow(sin(x), 4)*pow(tan(z), 3) + 35*pow(sin(x), 3)*pow(cos(y), 4) + 140*pow(sin(x), 3)*pow(cos(y), 3)*tan(z) + 210*pow(sin(x), 3)*pow(cos(y), 2)*pow(tan(z), 2) + 140*pow(sin(x), 3)*cos(y)*pow(tan(z), 3) + 35*pow(sin(x), 3)*pow(tan(z), 4) + 21*pow(sin(x), 2)*pow(cos(y), 5) + 105*pow(sin(x), 2)*pow(cos(y), 4)*tan(z) + 210*pow(sin(x), 2)*pow(cos(y), 3)*pow(tan(z), 2) + 210*pow(sin(x), 2)*pow(cos(y), 2)*pow(tan(z), 3) + 105*pow(sin(x), 2)*cos(y)*pow(tan(z), 4) + 21*pow(sin(x), 2)*pow(tan(z), 5) + 7*sin(x)*pow(cos(y), 6) + 42*sin(x)*pow(cos(y), 5)*tan(z) + 105*sin(x)*pow(cos(y), 4)*pow(tan(z), 2) + 140*sin(x)*pow(cos(y), 3)*pow(tan(z), 3) + 105*sin(x)*pow(cos(y), 2)*pow(tan(z), 4) + 42*sin(x)*cos(y)*pow(tan(z), 5) + 7*sin(x)*pow(tan(z), 6) + pow(cos(y), 7) + 7*pow(cos(y), 6)*tan(z) + 21*pow(cos(y), 5)*pow(tan(z), 2) + 35*pow(cos(y), 4)*pow(tan(z), 3) + 35*pow(cos(y), 3)*pow(tan(z), 4) + 21*pow(cos(y), 2)*pow(tan(z), 5) + 7*cos(y)*pow(tan(z), 6) + pow(tan(z), 7);
   return test1_result;
}
double test2(double x, double y, double z) {
   double test2_result;
   test2_result = cos(cos(cos(cos(cos(cos(cos(cos(x + y + z))))))));
   return test2_result;
}
rt   z‘#ifndef PROJECT__FILE__H
#define PROJECT__FILE__H
double test1(double x, double y, double z);
double test2(double x, double y, double z);
#endif
N©r¶   rž   rŸ   r    r   Úexpandr   )rž   rŸ   r    r3   r9   r4   r·   rv   s           r(   Útest_complicated_codegenrÇ   ,  sþ   € ßHÑHÜ�gÓ�G€Aˆ!à	‘C˜“F™S ›V•O¡c¨!£fÕ,¨qÕ0×8Ñ8Ó:Ð;Ø	‘#‘c™#™c¡#¡c©#©c°!µ%¸!µ)«nÓ*=Ó&>Ó"?Ó@ÓAÓBÓCÐDð€Iô �Y  v°eÀ5ÔI€FØ�!�9�Q�<˜8Ô#Ð#Ð#Ø�!�9�Q�<ð.	ô0ð 0ð 0ðb �!�9�Q�<˜8Ô#Ð#Ð#Ø�!�9�Q�<ð	ôð ò r*   c            	      ó`  € ^ RI Hp Hp ^ RIHp V! RRR7      w  r4V ! R4      pV ! R4      pV ! R4      pV! R	V4      pV! R
V4      p	\        R\        Wx,          WXV	3,          Wi,          ,          4      3RRRRR7      w  w  r«w  rÍV
R8X  g   Q hRpW¾RRWƒ,          V	,           ,          /,          8X  gl   W¾RRW˜V,          ,           ,          /,          8X  gI   W¾RRWƒ,          V	,           ,          /,          8X  g&   W¾RRW˜V,          ,           ,          /,          8X  g   Q hVR8X  g   Q hVR8X  g   Q hR# )r   r:   ©r   ún mTr@   r=   r3   r9   rB   ÚjÚmatrix_vectorÚC99rq   Frr   rs   a  #include "file.h"
#include <math.h>
void matrix_vector(double *A, int m, int n, double *x, double *y) {
   for (int i=0; i<m; i++){
      y[i] = 0;
   }
   for (int i=0; i<m; i++){
      for (int j=0; j<n; j++){
         y[i] = %(rhs)s + y[i];
      }
   }
}
Úrhsú
A[%s]*x[j]ú
x[j]*A[%s]rt   z|#ifndef PROJECT__FILE__H
#define PROJECT__FILE__H
void matrix_vector(double *A, int m, int n, double *x, double *y);
#endif
N©rF   r;   r<   Úsympy.core.symbolr   r   r   ©r;   r<   r   Únr?   r=   r3   r9   rB   rË   Úf1ÚcodeÚf2Ú	interfacerb   s                  r(   Útest_loops_crÙ   p  s;  € ß-Ý)Ù�5 $Ô'�D€AÙ�CÓ€AÙ�CÓ€AÙ�CÓ€AÙˆC�‹€AÙˆC�‹€Aä")Ø	œ"˜Q�T 1¨ T¥7¨1­4¥<Ó0Ð1°5¸&ÈÐV[ô#]Ñ�J€R‘�ð �Œ>Ðˆ>ð	ð ð   |°qµs¸QµwÕ'?Ð@Õ@Ô@Ø  |°q¸Q½3µwÕ'?Ð@Õ@Ô@Ø  |°qµs¸QµwÕ'?Ð@Õ@Ô@Ø  |°q¸Q½3µwÕ'?Ð@Õ@Ô@ðBð Að �Œ>Ðˆ>Øð	ôð ò r*   c                  ó  € ^ RI Hp Hp \        RR\        R7      w  r#V ! R4      pV ! R4      pV! W#4      pRRVP
                  P                  R	VP                  /,          p\        R
\        WR,          WB,          4      4      p\        4       p\        4       p	\        V	P                  V.4      p
W¦8X  g   Q h\        \        4      ;_uu_ 4        \        VP                  V.4       RRR4       R#   + '       g   i     R# ; i)r   r:   úi mT©rA   Úclsr3   r9   zÃ#include "file.h"
#include <math.h>
void test_dummies(int m_%(mno)i, double *x, double *y) {
   for (int i_%(ino)i=0; i_%(ino)i<m_%(mno)i; i_%(ino)i++){
      y[i_%(ino)i] = x[i_%(ino)i];
   }
}
ÚinoÚmnoÚtest_dummiesN)rF   r;   r<   r   r	   rH   Údummy_indexr   r   r   r   r)   rN   r   ÚNotImplementedError)r;   r<   rB   r?   r3   r9   rb   rI   Úc89Úc99rÖ   s              r(   Útest_dummy_loops_crå   š  sÉ   € ß-Ü�5 $¬EÔ2�D€AÙ�CÓ€AÙ�CÓ€AÙˆA‹	€Að	ð 
�—‘×#Ñ# U¨A¯M©MÐ:õ;€Hô 	�^¤R¨­¨a­d£^Ó4€AÜ
‹,€CÜ
‹,€CÜ�c—j‘j 1 #Ó&€DØÔÐÐÜ	Ô#×	$Õ	$Ü�3—:‘: ˜sÔ#÷ 
%×	$×	$Ò	$ús   ÃC.Ã.C?	c            	      ó¤  € ^ RI Hp Hp ^ RIHp V! RRR7      w  r4rVV ! RWF3R7      pV ! R4      pV ! R	4      p	V! R
WT^,
          34      p
V! RV4      p\        R\        Wš,          WzV3,          W‹,          ,          4      3RRRRR7      w  w  rÍw  rïVR8X  g   Q hRRV^,
          RR/,          pVVRRW¦,          V,           ,          /,          8X  go   VVRRWºV,          ,           ,          /,          8X  gK   VVRRW¦,          V,           ,          /,          8X  g'   VVRRWºV,          ,           ,          /,          8X  g   Q hVR8X  g   Q hVR8X  g   Q hR# )r   r:   rÉ   ún m o pTr@   r=   ©Úshaper3   r9   rB   rË   rÌ   rÍ   rq   Frr   rs   a#  #include "file.h"
#include <math.h>
void matrix_vector(double *A, int m, int n, int o, int p, double *x, double *y) {
   for (int i=o; i<%(upperi)s; i++){
      y[i] = 0;
   }
   for (int i=o; i<%(upperi)s; i++){
      for (int j=0; j<n; j++){
         y[i] = %(rhs)s + y[i];
      }
   }
}
ÚupperirÎ   ú%(rhs)srÏ   rÐ   rt   zŠ#ifndef PROJECT__FILE__H
#define PROJECT__FILE__H
void matrix_vector(double *A, int m, int n, int o, int p, double *x, double *y);
#endif
NrÑ   ©r;   r<   r   rÔ   r?   ÚoÚpr=   r3   r9   rB   rË   rÕ   rÖ   r×   rØ   rb   s                    r(   Útest_partial_loops_crï   ±  sf  € ÷ .Ý)Ù˜¨DÔ1�J€Aˆ!Ù�C ˜vÔ&€AÙ�CÓ€AÙ�CÓ€AÙˆC�!˜•U�Ó€AÙˆC�‹€Aä")Ø	œ"˜Q�T 1¨ T¥7¨1­4¥<Ó0Ð1°5¸&ÈÐV[ô#]Ñ�J€R‘�ð �Œ>Ðˆ>ð	ð 
�1�q•5˜% Ð+õ,€Hð �H  |°qµs¸QµwÕ'?Ð@Õ@Ô@Ø�H  |°q¸Q½3µwÕ'?Ð@Õ@Ô@Ø�H  |°qµs¸QµwÕ'?Ð@Õ@Ô@Ø�H  |°q¸Q½3µwÕ'?Ð@Õ@Ô@ðBð Að �Œ>Ðˆ>Øð	ôð ò r*   c            	      ó  € ^ RI Hp  ^ RIHpHp \        R4      w  r4p\        RV ! WB! V4      4      V! V4      .4      p\        4       pVP                  V.RRRR7      pV^ ,          ^ ,          R8X  g   Q hR	p	V^ ,          ^,          V	8X  g   Q hR
# )r   r
   ©rž   rŸ   r]   Úfoor.   Frr   útest.czž#include "test.h"
#include <math.h>
double foo(double x, double *y) {
   (*y) = sin(x);
   double foo_result;
   foo_result = cos(x);
   return foo_result;
}
N©	Úsympy.core.relationalr   r¶   rž   rŸ   r   r   r   Úwrite©
r   rž   rŸ   r3   r9   r4   rI   Úcrv   rb   s
             r(   Útest_output_arg_crù   Ý  s�   € Ý.ßCÜ�gÓ�G€Aˆ!Ü�U™X a¨¨Q«Ó0±#°a³&Ð9Ó:€AÜ‹€AØ�W‰W�a�S˜&¨°eˆWÓ<€FØ�!�9�Q�<˜8Ô#Ð#Ð#ð	ð ð �!�9�Q�<˜8Ô#Ð#Ò#r*   c            	      ó  € ^ RI Hp  ^ RIHpHp \        R4      w  r4p\        RV ! WB! V4      4      V! V4      .4      p\        4       pVP                  V.RRRR7      pV^ ,          ^ ,          R8X  g   Q hR	p	V^ ,          ^,          V	8X  g   Q hR
# )r   r
   rñ   zif, while, zrò   r.   Frr   ró   z®#include "test.h"
#include <math.h>
double foo(double if_, double *while_) {
   (*while_) = sin(if_);
   double foo_result;
   foo_result = cos(if_);
   return foo_result;
}
Nrô   r÷   s
             r(   Ú test_output_arg_c_reserved_wordsrû   ò  s�   € Ý.ßCÜ�nÓ%�G€Aˆ!Ü�U™X a¨¨Q«Ó0±#°a³&Ð9Ó:€AÜ‹€AØ�W‰W�a�S˜&¨°eˆWÓ<€FØ�!�9�Q�<˜8Ô#Ð#Ð#ð	ð ð �!�9�Q�<˜8Ô#Ð#Ò#r*   c                  óZ  € \        R ^^4      p \        R^^4      p\        V 4      p\        V4      pW#,          p\        RRR7      pVP                  RV4      pRVP                  R
,          n        RVP                  R
,          n        \        VP                  V.RR7      pRpWx8X  g   Q hR	# )r=   Úbr.   T)ÚprojectÚcserø   Úout)r#   zß#include "test.h"
#include <math.h>
void c(double *A, double *b, double *out) {
   out[0] = A[0]*b[0] + A[1]*b[1] + A[2]*b[2];
   out[1] = A[3]*b[0] + A[4]*b[1] + A[5]*b[2];
   out[2] = A[6]*b[0] + A[7]*b[1] + A[8]*b[2];
}
Néÿÿÿÿ)	r   r   r   ra   rC   Ú
result_varÚ_namer)   rN   )	ÚA_symÚb_symr=   rý   rø   ÚcgenrI   rÖ   rb   s	            r(   Útest_multidim_c_argument_cser    sŸ   € Ü˜˜a Ó#€EÜ˜˜a Ó#€EÜˆu‹€AÜˆu‹€AØ	�€AÜ˜F¨Ô-€DØ�‰�S˜!Ó€AØ!&€A‡K�K�…OÔØ!€A‡K�K�…OÔÜ�d—k‘k A 3¨vÔ6€Dð	ð ð ÔÐÒr*   c                  óH  € \        R 4      w  rp\        R4      w  r4\        R^^4      p\        V\        ^^V ..4      4      p\        W@V,           V,          4      p\        V^V ,          4      pRWgV.3p	Rp
\	        V	RRRRWW!WS3R7      pV^ ,          ^,          pWÊ8X  g   Q hR# )	r]   úB,Cr=   r.   z¼#include "test.h"
#include <math.h>
void test(double x, double *C, double z, double y, double *A, double *B) {
   (*C) = z*(x + y);
   A[0] = 1;
   A[1] = 2;
   A[2] = x;
   (*B) = 2*x;
}
rø   F©r$   r%   r0   N©r   r   r   r   r   )r3   r9   r4   r>   rp   r=   r€   r�   Úexpr3r·   rb   rv   r'   s                r(   Ú test_ccode_results_named_orderedr    s¶   € Ü�gÓ�G€Aˆ!Ü�5‹>�D€AÜ�S˜!˜QÓ€AÜ�Qœ  A q 	˜{Ó+Ó,€EÜ�Q˜Q� �	Ó"€EÜ�Q˜˜!�Ó€EØ˜%¨Ð.Ð/€Ið	ð ô �Y  V°EÀØ()¨a°AÐ'9ô;€Fà�A�Y�q�\€FØÔÐÒr*   c                  ó0  € \        R ^^4      p \        R^^4      p\        R^^4      p\        R^^4      pR\        WR
,          4      \        W R,          4      \        W0R,          4      .3p\        VRRRRR7      pV^ ,          ^,          pRpWg8X  g   Q hR	# )r=   r>   rp   ÚDr.   rä   Frr   a  #include "test.h"
#include <math.h>
void test(double *A, double *B, double *C, double *D) {
   B[0] = A[0];
   B[1] = A[1];
   B[2] = A[2];
   C[0] = A[3];
   C[1] = A[4];
   C[2] = A[5];
   D[0] = A[2];
   D[1] = A[5];
   D[2] = A[8];
   D[3] = A[11];
   D[4] = A[14];
}
N©r   ºNNN©é   r  ©r  é   ©r   r   r   ©r=   r>   rp   r  r·   rv   r'   rb   s           r(   Útest_ccode_matrixsymbol_slicer  8  s¥   € Ü�S˜!˜QÓ€AÜ�S˜!˜QÓ€AÜ�S˜!˜QÓ€AÜ�S˜!˜QÓ€AØœ( 1¨¥gÓ.Ü" 1¨¥gÓ.Ü" 1¨¥gÓ.ð0ð 1€Iô �Y  v°eÀ5ÔI€FØ�A�Y�q�\€Fð	ð ð" ÔÐÒr*   c            
      ó:  € \        R 4      w  rr#\        R^^4      pR\        V\        W,          .W,          W#,          ,           .W,          V,          V,          ..4      4      .3p\	        RR7      p\        WVRRR7      pV^ ,          ^,          pRp	W‰8X  g   Q hR# )	za b c dÚer.   T)rÿ   F)rP   r$   r%   zË#include "test.h"
#include <math.h>
void test(double a, double b, double c, double d, double *e) {
   const double x0 = a*b;
   const double x1 = c*d;
   e[0] = x0;
   e[1] = x0 + x1;
   e[2] = x0*x1;
}
N)r   r   r   r   r   r   )
r8   rý   rø   Údr  r·   Ú	generatorrv   r'   rb   s
             r(   Útest_ccode_cser  U  s•   € Ü˜Ó#�J€Aˆ!Ü�S˜!˜QÓ€AØœ( 1¤f¨q­s¨e°aµc¸A½Cµi°[À1Å3ÀqÅ5ÈÅ7À)Ð-LÓ&MÓNÐOÐP€IÜ˜TÔ"€IÜ�Y¸5ÈÔN€FØ�A�Y�q�\€Fð	ð ð ÔÐÒr*   c                  óŒ   € \        R ^^4      p Rp\        4       p\        WRRV 3R7      pV^ ,          ^,          pRpWE8X  g   Q hR# )r3   F)rP   r$   r%   r0   zƒ#include "test.h"
#include <math.h>
double test(double *x) {
   double test_result;
   test_result = 1.0;
   return test_result;
}
N)r.   g      ð?)r   r   r   )r3   r·   r  rv   r'   rb   s         r(   Útest_ccode_unused_array_argr  i  sU   € Ü�S˜!˜QÓ€Aà€IÜ“
€IÜ�Y¸5ÈÐbcÐaeÔf€FØ�A�Y�q�\€Fð	ð ð ÔÐÒr*   c            	      óÞ   € \        R ^^4      p \        R^^4      p\        RRR7      pRV ^ ,          V ^,          ,           3p\        VRRRWV3R7      pV^ ,          ^,          pR	pWV8X  g   Q hR
# )ÚXÚYr4   Tr@   ÚtestBugrp   F)Úlanguager$   r%   r0   z¬#include "testBug.h"
#include <math.h>
double testBug(double *X, double *Y, int z) {
   double testBug_result;
   testBug_result = X[0] + X[1];
   return testBug_result;
}
N)r   r   r   )r!  r"  r4   r·   rv   r'   rb   s          r(   Ú test_ccode_unused_array_arg_funcr%  |  s~   € ä�S˜˜1Ó€AÜ�S˜˜1Ó€AÜ�˜dÔ#€AØ˜A˜a�D 1 Q¥4�KÐ(€IÜ�Y¨°UÀ%Ð\]ÐbcÐ[dÔe€FØ�A�Y�q�\€Fð	ð ð ÔÐÒr*   c                  óX   € \        4       p \        V P                  . 4      pVR 8X  g   Q hR# ©Ú N©r   r)   Údump_f95rO   s     r(   Útest_empty_f_coder+  �  s'   € Ü‹z€HÜ˜×)Ñ)¨2Ó.€FØ�RŒ<ÐŠ<r*   c                  óŠ   € \        4       p \        V P                  . R R7      pVR,          R8X  g   Q hVR,          R8X  g   Q hR# )TrS   rT   zR!******************************************************************************
!*rV   a’  *
!*                                                                            *
!*              See http://www.sympy.org/ for more information.               *
!*                                                                            *
!*                       This file is part of 'project'                       *
!******************************************************************************
Nr)  rO   s     r(   Útest_empty_f_code_with_headerr-  •  sU   € Ü‹z€HÜ˜×)Ñ)¨2°dÔ;€FØ�#�;Ø]ôð ð ð �$�<ð [`ô ð ò r*   c                  óX   € \        4       p \        V P                  . 4      pVR 8X  g   Q hR# r'  )r   r)   rZ   rO   s     r(   Útest_empty_f_headerr/  ¥  s%   € Ü‹z€HÜ˜Ÿ™¨Ó,€FØ�RŒ<ÐŠ<r*   c                  ó®   € \        R 4      w  rpW,           V,          p\        RV4      p\        4       p\        VP                  V.4      pRpWg8X  g   Q hR# )r]   r.   ú’REAL*8 function test(x, y, z)
implicit none
REAL*8, intent(in) :: x
REAL*8, intent(in) :: y
REAL*8, intent(in) :: z
test = z*(x + y)
end function
N©r   r   r   r)   r*  r`   s           r(   Útest_simple_f_coder3  «  sZ   € Ü�gÓ�G€Aˆ!Ø�E�1�9€DÜ˜6 4Ó(€GÜ‹z€HÜ˜×)Ñ)¨G¨9Ó5€Fð	ð ð ÔÐÒr*   c                  óô   € \        R \        \        ,          4      p \        4       p\	        VP
                  V .4      pR\        P                  ! ^4      : R\        P                  ! ^4      : R2pW#8X  g   Q hR# )r.   zDREAL*8 function test()
implicit none
REAL*8, parameter :: Catalan = zd0
REAL*8, parameter :: pi = z#d0
test = pi**Catalan
end function
N)r   r   r   r   r)   r*  rg   rh   s       r(   Útest_numbersymbol_f_coder5  ½  sZ   € Ü˜6¤2¤w¥;Ó/€GÜ‹z€HÜ˜×)Ñ)¨G¨9Ó5�Fô 
�Š�rÖ	œBŸHšH RžLð*€Hð ÔÐÒr*   c                  óÔ   € \        R 4      p \        R\        V 4      \        RV ,          4      ,
          4      p\        4       p\	        VP
                  V.4      pRpW48X  g   Q V4       hR# )r3   r.   zhREAL*8 function test(x)
implicit none
REAL*8, intent(in) :: x
test = erf(x) + erf(2.0d0*x)
end function
Néþÿÿÿ)r   r   r   r   r)   r*  )r3   ra   rP   r'   rb   s        r(   Útest_erf_f_coder8  Ë  s`   € Ü�‹€AÜ˜6¤3 q£6¬C°°Qµ«KÕ#7Ó8€GÜ‹z€HÜ˜×)Ñ)¨G¨9Ó5€Fð	ð ð ÔÐ%˜vÓ%Òr*   c                  ó¦   € \        R 4      w  rpW,           p\        RW2W.R7      p\        4       p\        VP                  V.4      pRpWg8X  g   Q hR# )r]   r.   r/   zŽREAL*8 function test(z, x, y)
implicit none
REAL*8, intent(in) :: z
REAL*8, intent(in) :: x
REAL*8, intent(in) :: y
test = x + y
end function
Nr2  r`   s           r(   Útest_f_code_argument_orderr:  Ù  sZ   € Ü�gÓ�G€Aˆ!Ø�5€DÜ˜6 4¸q¸9ÔE€GÜ‹z€HÜ˜×)Ñ)¨G¨9Ó5€Fð	ð ð ÔÐÒr*   c                  ó®   € \        R 4      w  rpW,           V,          p\        RV4      p\        4       p\        VP                  V.4      pRpWg8X  g   Q hR# )r]   r.   ú™interface
REAL*8 function test(x, y, z)
implicit none
REAL*8, intent(in) :: x
REAL*8, intent(in) :: y
REAL*8, intent(in) :: z
end function
end interface
N)r   r   r   r)   rZ   r`   s           r(   Útest_simple_f_headerr=  ë  sX   € Ü�gÓ�G€Aˆ!Ø�E�1�9€DÜ˜6 4Ó(€GÜ‹z€HÜ˜Ÿ™¨'¨Ó3€Fð	ð ð ÔÐÒr*   c                  ó|   € \        R 4      w  rpW,           V,          p\        RV3RRRRR7      pRR.pWE8X  g   Q hR# )	r]   r.   ÚF95rq   Frr   N)úfile.f90r1  )rt   r<  ru   )r3   r9   r4   r2   rv   rb   s         r(   Útest_simple_f_codegenrA  þ  sT   € Ü�gÓ�G€Aˆ!Ø�E�1�9€DÜØ	�ˆ˜˜v¨e¸5ôB€Fð	ð	ð€Hð& ÔÐÒr*   c                  óº   aa€ \        R 4      w  rpW,           V,          pW,
          V,          p\        RW4.4      o\        4       o\        \        VV3R l4       R# )r]   r.   c                  ó2   <€ \        S P                  S.4      # rz   r{   r|   s   €€r(   r5   Ú)test_multiple_results_f.<locals>.<lambda>"  r~   r*   N)r   r   r   r   r   r   s        @@r(   Útest_multiple_results_frE    sM   ù€ Ü�gÓ�G€Aˆ!Ø�U�A�I€EØ�U�A�I€EÜØØ	ˆó€Gô ‹z€HÜ
Œ<ÕGÖHr*   c                  ó(   € \        \        R  4       R# )c                  ó   € \        R . 4      # r…   r1   r†   r*   r(   r5   Ú#test_no_results_f.<locals>.<lambda>&  rˆ   r*   Nr‰   r†   r*   r(   Útest_no_results_frI  %  rŒ   r*   c                  óB  € ^ RI Hp  ^ RIHp ^ RIHpHpHp ^ RIH	p ^ RI
HpHpHpHp	Hp
Hp \#        R4      pRV ! V4      3RV! V4      3R	V! V4      3R
V! V4      3RV	! V4      3RV! V4      3RV! V4      3RV! V4      3RV
! V4      3RV! V4      3RV! V4      3RV! V4      3RV! V4      3.p\%        VRRRRR7      pV^ ,          ^ ,          R8X  g   Q hRpV^ ,          ^,          V8X  g   Q hV^,          ^ ,          R8X  g   Q hRpV^,          ^,          V8X  g   Q hR# )r   rŽ   r�   r’   r˜   rš   r3   Útest_absr¢   r£   r¤   r¦   r§   r©   rª   r«   r¬   r­   r®   r¯   r?  rq   Frr   r@  a   REAL*8 function test_abs(x)
implicit none
REAL*8, intent(in) :: x
test_abs = abs(x)
end function
REAL*8 function test_acos(x)
implicit none
REAL*8, intent(in) :: x
test_acos = acos(x)
end function
REAL*8 function test_asin(x)
implicit none
REAL*8, intent(in) :: x
test_asin = asin(x)
end function
REAL*8 function test_atan(x)
implicit none
REAL*8, intent(in) :: x
test_atan = atan(x)
end function
REAL*8 function test_cos(x)
implicit none
REAL*8, intent(in) :: x
test_cos = cos(x)
end function
REAL*8 function test_cosh(x)
implicit none
REAL*8, intent(in) :: x
test_cosh = cosh(x)
end function
REAL*8 function test_log(x)
implicit none
REAL*8, intent(in) :: x
test_log = log(x)
end function
REAL*8 function test_ln(x)
implicit none
REAL*8, intent(in) :: x
test_ln = log(x)
end function
REAL*8 function test_sin(x)
implicit none
REAL*8, intent(in) :: x
test_sin = sin(x)
end function
REAL*8 function test_sinh(x)
implicit none
REAL*8, intent(in) :: x
test_sinh = sinh(x)
end function
REAL*8 function test_sqrt(x)
implicit none
REAL*8, intent(in) :: x
test_sqrt = sqrt(x)
end function
REAL*8 function test_tan(x)
implicit none
REAL*8, intent(in) :: x
test_tan = tan(x)
end function
REAL*8 function test_tanh(x)
implicit none
REAL*8, intent(in) :: x
test_tanh = tanh(x)
end function
rt   aA  interface
REAL*8 function test_abs(x)
implicit none
REAL*8, intent(in) :: x
end function
end interface
interface
REAL*8 function test_acos(x)
implicit none
REAL*8, intent(in) :: x
end function
end interface
interface
REAL*8 function test_asin(x)
implicit none
REAL*8, intent(in) :: x
end function
end interface
interface
REAL*8 function test_atan(x)
implicit none
REAL*8, intent(in) :: x
end function
end interface
interface
REAL*8 function test_cos(x)
implicit none
REAL*8, intent(in) :: x
end function
end interface
interface
REAL*8 function test_cosh(x)
implicit none
REAL*8, intent(in) :: x
end function
end interface
interface
REAL*8 function test_log(x)
implicit none
REAL*8, intent(in) :: x
end function
end interface
interface
REAL*8 function test_ln(x)
implicit none
REAL*8, intent(in) :: x
end function
end interface
interface
REAL*8 function test_sin(x)
implicit none
REAL*8, intent(in) :: x
end function
end interface
interface
REAL*8 function test_sinh(x)
implicit none
REAL*8, intent(in) :: x
end function
end interface
interface
REAL*8 function test_sqrt(x)
implicit none
REAL*8, intent(in) :: x
end function
end interface
interface
REAL*8 function test_tan(x)
implicit none
REAL*8, intent(in) :: x
end function
end interface
interface
REAL*8 function test_tanh(x)
implicit none
REAL*8, intent(in) :: x
end function
end interface
N)r±   r�   r²   r‘   r³   r“   r”   r•   rµ   r™   r¶   r›   rœ   r�   rž   rŸ   r    r   r   )r�   r‘   r“   r”   r•   r™   r›   rœ   r�   rž   rŸ   r    r3   r·   rv   rb   s                   r(   Útest_intrinsic_math_codegenrL  )  sK  € å8Ý:ßHÑHÝ=ßZ×ZÜ�‹€Aà	‘S˜“VÐØ	‘d˜1“gÐØ	‘d˜1“gÐØ	‘d˜1“gÐØ	‘S˜“VÐØ	‘d˜1“gÐØ	‘S˜“VÐØ	‘C˜“FÐØ	‘S˜“VÐØ	‘d˜1“gÐØ	‘d˜1“gÐØ	‘S˜“VÐØ	‘d˜1“gÐð€Iô �Y  v°eÀ5ÔI€FØ�!�9�Q�<˜:Ô%Ð%Ð%ð@	ð ðF �!�9�Q�<˜8Ô#Ð#Ð#à�!�9�Q�<˜8Ô#Ð#Ð#ðM	ð ð` �!�9�Q�<˜8Ô#Ð#Ò#r*   c                  ó4  € ^ RI Hp  \        R4      w  rRV ! W4      3RW,          3.p\        VRRRRR7      pV^ ,          ^ ,          R	8X  g   Q hR
pV^ ,          ^,          V8X  g   Q hV^,          ^ ,          R8X  g   Q hRpV^,          ^,          V8X  g   Q hR# )r   rº   r¼   r½   r¾   r?  rq   Frr   r@  zÿREAL*8 function test_atan2(x, y)
implicit none
REAL*8, intent(in) :: x
REAL*8, intent(in) :: y
test_atan2 = atan2(x, y)
end function
REAL*8 function test_pow(x, y)
implicit none
REAL*8, intent(in) :: x
REAL*8, intent(in) :: y
test_pow = x**y
end function
rt   a  interface
REAL*8 function test_atan2(x, y)
implicit none
REAL*8, intent(in) :: x
REAL*8, intent(in) :: y
end function
end interface
interface
REAL*8 function test_pow(x, y)
implicit none
REAL*8, intent(in) :: x
REAL*8, intent(in) :: y
end function
end interface
Nr¿   )r»   r3   r9   r·   rv   rb   s         r(   Útest_intrinsic_math2_codegenrN  Û  s±   € å>Ü�5‹>�D€Aà	‘u˜Q“{Ð#Ø	�Q•TÐð€Iô �Y  v°eÀ5ÔI€FØ�!�9�Q�<˜:Ô%Ð%Ð%ð	ð ð �!�9�Q�<˜8Ô#Ð#Ð#à�!�9�Q�<˜8Ô#Ð#Ð#ð	ð ð  �!�9�Q�<˜8Ô#Ð#Ò#r*   c                  ó
  € ^ RI Hp HpHp \	        R4      w  r4pRV! V4      V ! V4      ,           V! V4      ,           ^,          P                  4       3RV ! V ! V ! V ! V ! V ! V ! V ! W4,           V,           4      4      4      4      4      4      4      4      3.p\        VRRRRR7      pV^ ,          ^ ,          R	8X  g   Q hR
pV^ ,          ^,          V8X  g   Q hV^,          ^ ,          R8X  g   Q hRpV^,          ^,          V8X  g   Q hR# )r   rÂ   r]   rÃ   rÄ   r?  rq   Frr   r@  a{  REAL*8 function test1(x, y, z)
implicit none
REAL*8, intent(in) :: x
REAL*8, intent(in) :: y
REAL*8, intent(in) :: z
test1 = sin(x)**7 + 7*sin(x)**6*cos(y) + 7*sin(x)**6*tan(z) + 21*sin(x) &
      **5*cos(y)**2 + 42*sin(x)**5*cos(y)*tan(z) + 21*sin(x)**5*tan(z) &
      **2 + 35*sin(x)**4*cos(y)**3 + 105*sin(x)**4*cos(y)**2*tan(z) + &
      105*sin(x)**4*cos(y)*tan(z)**2 + 35*sin(x)**4*tan(z)**3 + 35*sin( &
      x)**3*cos(y)**4 + 140*sin(x)**3*cos(y)**3*tan(z) + 210*sin(x)**3* &
      cos(y)**2*tan(z)**2 + 140*sin(x)**3*cos(y)*tan(z)**3 + 35*sin(x) &
      **3*tan(z)**4 + 21*sin(x)**2*cos(y)**5 + 105*sin(x)**2*cos(y)**4* &
      tan(z) + 210*sin(x)**2*cos(y)**3*tan(z)**2 + 210*sin(x)**2*cos(y) &
      **2*tan(z)**3 + 105*sin(x)**2*cos(y)*tan(z)**4 + 21*sin(x)**2*tan &
      (z)**5 + 7*sin(x)*cos(y)**6 + 42*sin(x)*cos(y)**5*tan(z) + 105* &
      sin(x)*cos(y)**4*tan(z)**2 + 140*sin(x)*cos(y)**3*tan(z)**3 + 105 &
      *sin(x)*cos(y)**2*tan(z)**4 + 42*sin(x)*cos(y)*tan(z)**5 + 7*sin( &
      x)*tan(z)**6 + cos(y)**7 + 7*cos(y)**6*tan(z) + 21*cos(y)**5*tan( &
      z)**2 + 35*cos(y)**4*tan(z)**3 + 35*cos(y)**3*tan(z)**4 + 21*cos( &
      y)**2*tan(z)**5 + 7*cos(y)*tan(z)**6 + tan(z)**7
end function
REAL*8 function test2(x, y, z)
implicit none
REAL*8, intent(in) :: x
REAL*8, intent(in) :: y
REAL*8, intent(in) :: z
test2 = cos(cos(cos(cos(cos(cos(cos(cos(x + y + z))))))))
end function
rt   a4  interface
REAL*8 function test1(x, y, z)
implicit none
REAL*8, intent(in) :: x
REAL*8, intent(in) :: y
REAL*8, intent(in) :: z
end function
end interface
interface
REAL*8 function test2(x, y, z)
implicit none
REAL*8, intent(in) :: x
REAL*8, intent(in) :: y
REAL*8, intent(in) :: z
end function
end interface
NrÅ   )	rž   rŸ   r    r3   r9   r4   r·   rv   rb   s	            r(   Útest_complicated_codegen_f95rP  	  s  € ßHÑHÜ�gÓ�G€Aˆ!à	‘C˜“F™S ›V•O¡c¨!£fÕ,¨qÕ0×8Ñ8Ó:Ð;Ø	‘#‘c™#™c¡#¡c©#©c°!µ%¸!µ)«nÓ*=Ó&>Ó"?Ó@ÓAÓBÓCÐDð€Iô �Y  v°eÀ5ÔI€FØ�!�9�Q�<˜:Ô%Ð%Ð%ð	ð ð< �!�9�Q�<˜8Ô#Ð#Ð#Ø�!�9�Q�<˜8Ô#Ð#Ð#ð	ð ð$ �!�9�Q�<˜8Ô#Ð#Ò#r*   c            	      ór  € ^ RI Hp Hp ^ RIHp V! RRR7      w  r4\        V R4      w  rVpV! RV4      pV! RV4      p	\        R	\        Wx,          WXV	3,          Wi,          ,          4      3R
RRRR7      w  w  r«w  rÍV
R8X  g   Q hRpW¾RR/,          8X  g   W¾RR/,          8X  g   Q hVR8X  g   Q hVR8X  g   Q hR# )r   r:   rÉ   zn,mTr@   ÚAxyrB   rË   rÌ   r?  rq   Frr   r@  a~  subroutine matrix_vector(A, m, n, x, y)
implicit none
INTEGER*4, intent(in) :: m
INTEGER*4, intent(in) :: n
REAL*8, intent(in), dimension(1:m, 1:n) :: A
REAL*8, intent(in), dimension(1:n) :: x
REAL*8, intent(out), dimension(1:m) :: y
INTEGER*4 :: i
INTEGER*4 :: j
do i = 1, m
   y(i) = 0
end do
do i = 1, m
   do j = 1, n
      y(i) = %(rhs)s + y(i)
   end do
end do
end subroutine
rÎ   úA(i, j)*x(j)úx(j)*A(i, j)rt   a  interface
subroutine matrix_vector(A, m, n, x, y)
implicit none
INTEGER*4, intent(in) :: m
INTEGER*4, intent(in) :: n
REAL*8, intent(in), dimension(1:m, 1:n) :: A
REAL*8, intent(in), dimension(1:n) :: x
REAL*8, intent(out), dimension(1:m) :: y
end subroutine
end interface
N)rF   r;   r<   rÒ   r   rG   r   r   rÓ   s                  r(   Ú
test_loopsrU  G  sß   € ß-Ý)á�5 $Ô'�D€AÜ�+˜uÓ%�G€Aˆ!ÙˆC�‹€AÙˆC�‹€Aä")Ø	œ"˜Q�T 1¨ T¥7¨1­4¥<Ó0Ð1°5¸&ÈÐV[ô#]Ñ�J€R‘�ð �ÔÐÐð	ð ð* ˜u nÐ5Õ5Ô5Ø˜E >Ð2Õ2Ô2ð3ð 3à�Œ>Ðˆ>Øð		ôð ò r*   c                  óZ  € ^ RI Hp Hp \        RR\        R7      w  r#V ! R4      pV ! R4      pV! W#4      pRRVP
                  P                  R	VP                  /,          p\        R
\        WR,          WB,          4      4      p\        4       p\        VP                  V.4      p	W–8X  g   Q hR# )r   r:   rÛ   TrÜ   r3   r9   a>  subroutine test_dummies(m_%(mcount)i, x, y)
implicit none
INTEGER*4, intent(in) :: m_%(mcount)i
REAL*8, intent(in), dimension(1:m_%(mcount)i) :: x
REAL*8, intent(out), dimension(1:m_%(mcount)i) :: y
INTEGER*4 :: i_%(icount)i
do i_%(icount)i = 1, m_%(mcount)i
   y(i_%(icount)i) = x(i_%(icount)i)
end do
end subroutine
ÚicountÚmcountrà   N)rF   r;   r<   r   r	   rH   rá   r   r   r   r)   r*  )
r;   r<   rB   r?   r3   r9   rb   rI   rø   rÖ   s
             r(   Útest_dummy_loops_f95rY  z  s˜   € ß-Ü�5 $¬EÔ2�D€AÙ�CÓ€AÙ�CÓ€AÙˆA‹	€Að		ð 
�1—7‘7×&Ñ&¨°!·-±-Ð@õA€Hô 	�^¤R¨­¨a­d£^Ó4€AÜ‹
€AÜ�a—j‘j 1 #Ó&€DØÔÐÒr*   c            	      ó¸  € ^ RI Hp Hp ^ RIHp V! RRR7      w  r4rVV! R4      w  rxp	V ! V4      V! W64      V! WE4      3,          pV ! V4      V! WE4      ,          pV ! V	4      V! W64      ,          p	\        R\        W™Wx,          ,           4      3RR	R
R
R7      w  w  r«w  rÍV
R8X  g   Q hRpW¾RR/,          8X  g   W¾RR/,          8X  g   Q hVR8X  g   Q hVR8X  g   Q hR# )r   r:   rÉ   zi,j,n,mTr@   zA,x,yrÌ   r?  rq   Frr   r@  aa  subroutine matrix_vector(A, m, n, x, y)
implicit none
INTEGER*4, intent(in) :: m
INTEGER*4, intent(in) :: n
REAL*8, intent(in), dimension(1:m, 1:n) :: A
REAL*8, intent(in), dimension(1:n) :: x
REAL*8, intent(inout), dimension(1:m) :: y
INTEGER*4 :: i
INTEGER*4 :: j
do i = 1, m
   do j = 1, n
      y(i) = %(rhs)s + y(i)
   end do
end do
end subroutine
rÎ   rS  rT  rt   a  interface
subroutine matrix_vector(A, m, n, x, y)
implicit none
INTEGER*4, intent(in) :: m
INTEGER*4, intent(in) :: n
REAL*8, intent(in), dimension(1:m, 1:n) :: A
REAL*8, intent(in), dimension(1:n) :: x
REAL*8, intent(inout), dimension(1:m) :: y
end subroutine
end interface
NrÑ   )r;   r<   r   rB   rË   rÔ   r?   r=   r3   r9   rÕ   rÖ   r×   rØ   rb   s                  r(   Útest_loops_InOutr[  ’  sü   € ß-Ý)á˜¨DÔ1�J€Aˆ!Ù�gÓ�G€Aˆ!Ù�A‹‘s˜1“y¡# a£)Ð+Õ,€AÙ�A‹‘s˜1“yÕ!€AÙ�A‹‘s˜1“yÕ!€Aä")Ø	œ"˜Q A¥C¥›.Ð)¨5°&ÀÈeô#UÑ�J€R‘�ð �ÔÐÐð	ð ð$   ~Ð6Õ6Ô6Ø  ~Ð6Õ6Ô6ð8ð 7à�Œ>Ðˆ>Øð		ôð ò r*   c                  óú  € ^ RI Hp Hp ^ RIHp V! RRR7      w  r4rVV ! RWF3R7      pV ! R4      pV ! R	4      p	V! R
WT^,
          34      p
V! RV4      p\        R\        Wš,          WzV3,          W‹,          ,          4      3RRRRR7      w  w  rÍw  rïRRRR\        V^,
          4      R\        ^V,           4      R\        V^,
          V,
          4      /,          pVVRR/,          8X  g   VVRR/,          8X  g   Q hR# R# )r   r:   rÉ   rç   Tr@   r=   rè   r3   r9   rB   rË   rÌ   r?  rq   Frr   aß  subroutine matrix_vector(A, m, n, o, p, x, y)
implicit none
INTEGER*4, intent(in) :: m
INTEGER*4, intent(in) :: n
INTEGER*4, intent(in) :: o
INTEGER*4, intent(in) :: p
REAL*8, intent(in), dimension(1:m, 1:p) :: A
REAL*8, intent(in), dimension(1:n) :: x
REAL*8, intent(out), dimension(1:%(iup-ilow)s) :: y
INTEGER*4 :: i
INTEGER*4 :: j
do i = %(ilow)s, %(iup)s
   y(i) = 0
end do
do i = %(ilow)s, %(iup)s
   do j = 1, n
      y(i) = %(rhs)s + y(i)
   end do
end do
end subroutine
rÎ   rë   ÚiupÚilowziup-ilowrS  rT  N)rF   r;   r<   rÒ   r   r   r   Ústrrì   s                    r(   Útest_partial_loops_fr`  Ã  s  € ÷ .Ý)Ù˜¨DÔ1�J€Aˆ!Ù�C ˜vÔ&€AÙ�CÓ€AÙ�CÓ€AÙˆC�!˜•U�Ó€AÙˆC�‹€Aä")Ø	œ"˜Q�T 1¨ T¥7¨1­4¥<Ó0Ð1°5¸&ÈÐV[ô#]Ñ�J€R‘�ð	ð* 	ˆyØŒs�1�q•5‹zØ”�A˜•E“
Ø”C˜˜A� �	“Nð		õ+€Hð8 �8˜u nÐ5Õ5Ô5Ø�˜E >Ð2Õ2Ô2ð3ð 3Ù2ñ 6r*   c            	      ó  € ^ RI Hp  ^ RIHpHp \        R4      w  r4p\        RV ! WB! V4      4      V! V4      .4      p\        4       pVP                  V.RRRR7      pV^ ,          ^ ,          R8X  g   Q hV^ ,          ^,          R	8X  g   Q hR
# )r   r
   rñ   r]   rò   r.   Frr   ztest.f90z~REAL*8 function foo(x, y)
implicit none
REAL*8, intent(in) :: x
REAL*8, intent(out) :: y
y = sin(x)
foo = cos(x)
end function
N)	rõ   r   r¶   rž   rŸ   r   r   r   rö   )	r   rž   rŸ   r3   r9   r4   rI   rø   rv   s	            r(   Útest_output_arg_frb  ò  sŠ   € Ý.ßCÜ�gÓ�G€Aˆ!Ü�U™X a¨¨Q«Ó0±#°a³&Ð9Ó:€AÜ‹
€AØ�W‰W�a�S˜&¨°eˆWÓ<€FØ�!�9�Q�<˜:Ô%Ð%Ð%Ø�!�9�Q�<ð	ôð ò r*   c            
      óš  € ^ RI Hp Hp ^ RIHp V! RRR7      w  r4\        V R4      w  rVpV! RV4      p\        4       p	\        R\        W3V^,           ,          4      4      p
\        R	\        Wx,          V
! Wh,          4      4      4      p\        V	P                  V.4      pR
pRpWÍV,          8X  g   WÍVRRR1,          ,          8X  g   Q hR# R# )r   r:   rÉ   rÊ   Tr@   rR  rB   ÚfuncÚtest_inlinezÛsubroutine test_inline(m, x, y)
implicit none
INTEGER*4, intent(in) :: m
REAL*8, intent(in), dimension(1:m) :: x
REAL*8, intent(out), dimension(1:m) :: y
INTEGER*4 :: i
do i = 1, m
   y(i) = %s*%s
end do
end subroutine
N)zx(i)z
(x(i) + 1)r  )rF   r;   r<   rÒ   r   rG   r   r   r   r   r   r)   r*  )r;   r<   r   rÔ   r?   r=   r3   r9   rB   rî   rd  ra   rÖ   rb   Úargss                  r(   Útest_inline_functionrg    s¾   € ß-Ý)Ù�5 $Ô'�D€AÜ�+˜uÓ%�G€Aˆ!ÙˆC�‹€AÜ‹
€AÜ ¬¨q°Q¸µUµ)Ó(<Ó=€DÜ˜=¬"¨Q­T±4¸½³:Ó*>Ó?€GÜ�a—j‘j 7 )Ó,€Dð		ð ð "€DØ˜d•?Ô"Ø˜4¡ " �:Õ%Ô%ð&ð &Ù%ñ #r*   c                  ó°   € \        R 4      p ^ pV  F  pW,          pK  	  \        RV4      p\        4       p\        VP                  V.4      pRpWV8X  g   Q hR# )zx:20r.   a  REAL*8 function test(x0, x1, x10, x11, x12, x13, x14, x15, x16, x17, x18, &
      x19, x2, x3, x4, x5, x6, x7, x8, x9)
implicit none
REAL*8, intent(in) :: x0
REAL*8, intent(in) :: x1
REAL*8, intent(in) :: x10
REAL*8, intent(in) :: x11
REAL*8, intent(in) :: x12
REAL*8, intent(in) :: x13
REAL*8, intent(in) :: x14
REAL*8, intent(in) :: x15
REAL*8, intent(in) :: x16
REAL*8, intent(in) :: x17
REAL*8, intent(in) :: x18
REAL*8, intent(in) :: x19
REAL*8, intent(in) :: x2
REAL*8, intent(in) :: x3
REAL*8, intent(in) :: x4
REAL*8, intent(in) :: x5
REAL*8, intent(in) :: x6
REAL*8, intent(in) :: x7
REAL*8, intent(in) :: x8
REAL*8, intent(in) :: x9
test = x0 + x1 + x10 + x11 + x12 + x13 + x14 + x15 + x16 + x17 + x18 + &
      x19 + x2 + x3 + x4 + x5 + x6 + x7 + x8 + x9
end function
Nr2  )r3   r2   Úsymra   rP   r'   rb   s          r(   Útest_f_code_call_signature_wraprj     s]   € ä�‹€AØ€DÛˆØ�Šñ ä˜6 4Ó(€GÜ‹z€HÜ˜×)Ñ)¨G¨9Ó5€Fð€Hð8 ÔÐÒr*   c                  óP   a a€ \        R 4      w  oo \        \        V V3R l4       R# )zx,Xc                  ó0   <€ \        R SS ,          3RR4      # )r.   Úf95r#   )r   ©r!  r3   s   €€r(   r5   Ú!test_check_case.<locals>.<lambda>J  s   ø€ ¤¨&°!°Aµ#¨¸¸xÔ!Hr*   N)r   r   r   rn  s   @@r(   Útest_check_caserp  H  s   ù€ Ü�5‹>�D€A€qÜ
Œ<ÕHÖIr*   c                  óú   € \        R 4      p \        R RR7      p \        RW,          3RR4       R#   \         d?   pTP                  ^ ,          P	                  R4      '       d   \        R4      h Rp?R# Rp?ii ; i)	r3   T)Úmy_assumptionr.   rm  r#   zFortran ignores case.z$This exception should not be raised!N)r   r   r   rf  Ú
startswithÚAssertionError)Úx1Úx2r  s      r(   Útest_check_case_false_positiverw  M  sn   € ô
 
�‹€BÜ	� DÔ	)€BðIÜ�˜�� ¨Ö1øÜô IØ�6‰6�!�9×ÑÐ 7×8Ò8Ü Ð!GÓHÐHõ 9ûðIús   š1 ±A:¼3A5Á5A:c                  ó   € \        R 4      w  rR^V ,          3.p\        VRRRR7      p\        VRRRRR7      pV^ ,          ^,          V^ ,          ^,          8X  g   Q hRW,          3p\        VRRRR7      p\        VRRRRR7      pV^ ,          ^,          V^ ,          ^,          8X  g   Q hR\        W.W,           W,
          ..4      3p\        VRRRR7      p\        VRRRRR7      pV^ ,          ^,          V^ ,          ^,          8X  g   Q hR# )r¼   rò   r?  Frr   r°   N)r   r   r   )r3   r9   r·   rv   Ú	expresults        r(   Ú test_c_fortran_omit_routine_namerz  [  s  € Ü�5‹>�D€AØ˜˜1���€IÜ�Y ¨e¸5ÔA€FÜ˜	 5¨%¸ÀUÔK€IØ�!�9�Q�<˜9 Q�<¨�?Ô*Ð*Ð*à˜��€IÜ�Y ¨e¸5ÔA€FÜ˜	 5¨%¸ÀUÔK€IØ�!�9�Q�<˜9 Q�<¨�?Ô*Ð*Ð*àœ  ¨­¨a­c¨
Ð3Ó4Ð5€IÜ�Y ¨e¸5ÔA€FÜ˜	 5¨%¸ÀUÔK€IØ�!�9�Q�<˜9 Q�<¨�?Ô*Ð*Ò*r*   c                  ó(  € \        R 4      w  rpW,           p\        W.V^..4      pRW433p\        VRRRRR7      pV^ ,          ^,          pRpVP                  4       ^,          p	V	P	                  R4      p
V
^,          pVRV/,          pWx8X  g   Q hR# )	r]   r.   rm  Frr   a2  REAL*8 function test(x, y, z, out_%(hash)s)
implicit none
REAL*8, intent(in) :: x
REAL*8, intent(in) :: y
REAL*8, intent(in) :: z
REAL*8, intent(out), dimension(1:2, 1:2) :: out_%(hash)s
out_%(hash)s(1, 1) = x
out_%(hash)s(2, 1) = z
out_%(hash)s(1, 2) = y
out_%(hash)s(2, 2) = 16
test = x + y
end function
Ú_ÚhashN)r   r   r   Ú
splitlinesÚsplit)r3   r9   r4   Úe1Úe2r·   rv   r'   rb   r8   rý   r   s               r(   Útest_fcode_matrix_outputr‚  m  s¦   € Ü�gÓ�G€Aˆ!Ø	
�€BÜ	�!�˜!˜R˜Ð!Ó	"€BØ˜"˜Ð"€IÜ�Y  v°eÀ5ÔI€FØ�A�Y�q�\€Fð	ð ð 	×ÑÓ˜AÕ€AØ	�‰�‹€AØ
ˆA�$€CØ˜6 3˜-Õ'€HØÔÐÒr*   c                  óH  € \        R 4      w  rp\        R4      w  r4\        R^^4      p\        V\        ^^V ..4      4      p\        W@V,           V,          4      p\        V^V ,          4      pRWgV.3p	\	        V	RRRRWWWS3R7      p
V
^ ,          ^,          pRpW¼8X  g   Q hR# )	r]   r	  r=   r.   rm  Fr
  a!  subroutine test(x, z, y, C, A, B)
implicit none
REAL*8, intent(in) :: x
REAL*8, intent(in) :: z
REAL*8, intent(in) :: y
REAL*8, intent(out) :: C
REAL*8, intent(out) :: B
REAL*8, intent(out), dimension(1:1, 1:3) :: A
C = z*(x + y)
A(1, 1) = 1
A(1, 2) = 2
A(1, 3) = x
B = 2*x
end subroutine
Nr  )r3   r9   r4   r>   rp   r=   r€   r�   r  r·   rv   r'   rb   s                r(   Ú test_fcode_results_named_orderedr„  Š  s¶   € Ü�gÓ�G€Aˆ!Ü�5‹>�D€AÜ�S˜!˜QÓ€AÜ�Qœ  A q 	˜{Ó+Ó,€EÜ�Q˜Q� �	Ó"€EÜ�Q˜˜!�Ó€EØ˜%¨Ð.Ð/€IÜ�Y  v°eÀ5Ø()¨a°AÐ'9ô;€Fà�A�Y�q�\€Fð	ð ð  ÔÐÒr*   c                  ó0  € \        R ^^4      p \        R^^4      p\        R^^4      p\        R^^4      pR\        WR
,          4      \        W R,          4      \        W0R,          4      .3p\        VRRRRR7      pV^ ,          ^,          pRpWg8X  g   Q hR	# )r=   r>   rp   r  r.   rm  Frr   a€  subroutine test(A, B, C, D)
implicit none
REAL*8, intent(in), dimension(1:2, 1:3) :: A
REAL*8, intent(out), dimension(1:1, 1:3) :: B
REAL*8, intent(out), dimension(1:1, 1:3) :: C
REAL*8, intent(out), dimension(1:2, 1:1) :: D
B(1, 1) = A(1, 1)
B(1, 2) = A(1, 2)
B(1, 3) = A(1, 3)
C(1, 1) = A(2, 1)
C(1, 2) = A(2, 2)
C(1, 3) = A(2, 3)
D(1, 1) = A(1, 3)
D(2, 1) = A(2, 3)
end subroutine
Nr  r  r  r  r  s           r(   Útest_fcode_matrixsymbol_slicer†  ¨  s¥   € Ü�S˜!˜QÓ€AÜ�S˜!˜QÓ€AÜ�S˜!˜QÓ€AÜ�S˜!˜QÓ€AØœ( 1¨¥gÓ.Ü" 1¨¥gÓ.Ü" 1¨¥gÓ.ð0ð 1€Iô �Y  v°eÀ5ÔI€FØ�A�Y�q�\€Fð	ð ð" ÔÐÒr*   c                  ó  € \        R ^^4      p RV R	,          3p\        VRRRRR7      pV^ ,          ^,          pRpVP                  4       ^,          pVP                  R4      pV^,          pVRV/,          pW48X  g   Q hR# )
r=   r.   rm  Frr   zÞsubroutine test(A, out_%(hash)s)
implicit none
REAL*8, intent(in), dimension(1:2, 1:3) :: A
REAL*8, intent(out), dimension(1:2, 1:1) :: out_%(hash)s
out_%(hash)s(1, 1) = A(1, 2)
out_%(hash)s(2, 1) = A(2, 2)
end subroutine
r|  r}  N)r  r  )r   r   r~  r  )r=   r·   rv   r'   rb   r8   rý   r   s           r(   Ú&test_fcode_matrixsymbol_slice_autonamerˆ  Æ  sŒ   € ä�S˜!˜QÓ€AØ˜˜4�Ð!€IÜ�Y  v°eÀ5ÔI€FØ�A�Y�q�\€Fð	ð ð 	×ÑÓ˜AÕ€AØ	�‰�‹€AØ
ˆA�$€CØ˜6 3˜-Õ'€HØÔÐÒr*   c                  óü   € \        R 4      w  rr#\        RW,          3RRRV3R7      pV^ ,          ^,          pRpWV8X  g   Q hRp\        RW,          V,           3RRRW#3R7      pV^ ,          ^,          pWV8X  g   Q hR# )	zx y z tÚfr?  F)r$   r%   Úglobal_varszPREAL*8 function f(x)
implicit none
REAL*8, intent(in) :: x
f = x*y
end function
z�#include "f.h"
#include <math.h>
double f(double x, double y) {
   double f_result;
   f_result = x*y + z;
   return f_result;
}
rp   Nru   )r3   r9   r4   Útrv   r'   rb   s          r(   Útest_global_varsr�  Ý  s˜   € Ü˜Ó#�J€Aˆ!Ü�c˜1�3�Z ¨u¸EØ"# ô'€Fà�A�Y�q�\€Fð	ð ð ÔÐÐð	ð ô �c˜1�3˜q�5�\ 3¨u¸EØ"# ô)€Fà�A�Y�q�\€FØÔÐÒr*   c                  ó„  € ^ RI Hp  ^ RIHp V ! RRR//R7      p\	        R4      w  r4V! W4,           4      p\        VR.R	7      pR
p\        RV3RRVR7      pV^ ,          ^,          p	W—8X  g   Q h\        VR7      pVP                  P                  R4       Rp\        RV3RRVR7      pV^ ,          ^,          p	W—8X  g   Q hR# )r   ©ÚC99CodePrinter)ÚexpÚuser_functionsr‘  Úfastexp)Úsettingszx yz#include "fastexp.h")ÚprinterÚpreprocessor_statementszš#include "expr.h"
#include "fastexp.h"
double expr(double x, double y) {
   double expr_result;
   expr_result = fastexp(x + y);
   return expr_result;
}
r2   F)r$   r%   rP   )r•  z¬#include "expr.h"
#include <math.h>
#include "fastexp.h"
double expr(double x, double y) {
   double expr_result;
   expr_result = fastexp(x + y);
   return expr_result;
}
N)	Úsympy.printing.cr�  r²   r‘  r   r   r   r–  Úappend)
r�  r‘  r•  r3   r9   r2   Úgenrb   rv   r'   s
             r(   Útest_custom_codegenrš  ù  sÛ   € Ý/Ý:áÐ'7¸%ÀÐ9KÐ&LÔM€Gä�5‹>�D€AÙˆq�u‹:€Dô ˜WØ.DÐ-EôG€Cð	ð ô �f˜d�^¨E¸ÈÔM€FØ�A�Y�q�\€FØÔÐÐô ˜WÔ
%€CØ×Ñ×&Ñ&Ð'=Ô>ð	ð ô �f˜d�^¨E¸ÈÔM€FØ�A�Y�q�\€FØÔÐÒr*   c            	      ó˜   € ^ RI Hp   ! R RV 4      p\        R4      pV^,          pRR.p\        RV3RRRRV! 4       R	7      pWT8X  g   Q hR
# )r   r�  c                   ó&   a € ] tR tRt o R tRtV tR# )Ú*test_c_with_printer.<locals>.CustomPrinteri*  c                óŠ   € R P                  V P                  VP                  4      V P                  VP                  4      4      # )zfastpow({}, {}))ÚformatÚ_printÚbaser‘  )Úselfr2   s   &&r(   Ú
_print_PowÚ5test_c_with_printer.<locals>.CustomPrinter._print_Pow+  s6   € Ø$×+Ñ+¨D¯K©K¸¿	¹	Ó,BØ,0¯K©K¸¿¹Ó,AóCð Cr*   r†   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r£  Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r(   ÚCustomPrinterr�  *  s   ø‡ € ÷	Cð 	Cr*   r¬  r3   r.   rp   rq   F)r$   r%   r•  N)rs   zŒ#include "file.h"
#include <math.h>
double test(double x) {
   double test_result;
   test_result = fastpow(x, 3);
   return test_result;
}
)rt   zP#ifndef PROJECT__FILE__H
#define PROJECT__FILE__H
double test(double x);
#endif
)r—  r�  r   r   )r�  r¬  r3   r2   rb   rv   s         r(   Útest_c_with_printerr­  '  sb   € å/ôC˜ô Cô
 	�‹€AØˆa�4€Dð	ð	ð€Hô �f˜d�^ S¨¸ÀUÑVcÓVeÔf€FØÔÐÒr*   c                  ó¦  € ^ RI p RV P                  P                  n        \	        RRR7      p\	        RRR7      p\        RW,           3RRRRR	7      pV^ ,          ^,          pR
pWE8X  g   Q h\	        R4      p\	        RRR7      p\        RW,           3RRRRR	7      pV^ ,          ^,          pRpWE8X  g   Q hRV P                  P                  n        R# )r   NTr3   )Úrealr9   r.   rm  Frr   zsREAL*8 function test(x, y)
implicit none
REAL*8, intent(in) :: x
REAL*8, intent(in) :: y
test = x + y
end function
z{COMPLEX*16 function test(x, y)
implicit none
COMPLEX*16, intent(in) :: x
REAL*8, intent(in) :: y
test = x + y
end function
)Úsympy.utilities.codegenÚ	utilitiesr   ÚCOMPLEX_ALLOWEDr   )Úsympyr3   r9   rv   r'   rb   s         r(   Útest_fcode_complexr´  D  sÐ   € Û"Ø.2€E‡O�O×ÑÔ+Üˆs˜Ô€AÜˆs˜Ô€AÜ�f˜Q�S�\ 5¨&¸ÀeÔL€FØ�Q�i˜�l€Fð	ð ð ÔÐÐÜˆs‹€AÜˆs˜Ô€AÜ�f˜Q�S�\ 5¨&¸ÀeÔL€FØ�Q�i˜�l€Fð	ð ð ÔÐÐØ.3€E‡O�O×ÑÖ+r*   N)rq   FF)_Úior   Ú
sympy.corer   r   r   r   r   r	   rõ   r   rÒ   r   Ú'sympy.functions.special.error_functionsr   Úsympy.integrals.integralsr   Úsympy.matricesr   r   r°  r   r   r   r   r   r   r   r   r   r   r   Úsympy.testing.pytestr   Úsympy.utilities.lambdifyr   r)   rK   rQ   rX   r[   rc   re   ri   rk   rn   rw   r‚   r‹   r¸   rÀ   rÇ   rÙ   rå   rï   rù   rû   r  r  r  r  r  r%  r+  r-  r/  r3  r5  r8  r:  r=  rA  rE  rI  rL  rN  rP  rU  rY  r[  r`  rb  rg  rj  rp  rw  rz  r‚  r„  r†  rˆ  r�  rš  r­  r´  r†   r*   r(   Ú<module>r¼     st  ðÝ ç >× >Ý *Ý $Ý 7Ý .ß /÷÷ ÷ ñ õ (Ý 9ôò?ò6@òò$Tòò$ò$ò"ò$òò,	Iò9ò9òxò0AòH'òT$ò.)òX$ò*$ò*ò.ò4ò:ò(ò&ò&òò òò$ò&òò$ò&ò6	Iò9òo$òd+$ò\;$ò|0òfò0.òb,3ò^ò&&ò6%òPJò
Iò+ò$ò:ò<ò<ò.ò8,ò\ô:4r*   