+
    iX                        ^ RI t ^ RIt^ RIt^ RIt^ RIHt ^ RIHt ^ RIt^ RIHtH	t	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HtHt ^ RIHtHtHtHt ^ RI H!t! ^ R	I"H#t# ^ R
I$H%t%H&t& ]! R4      w  t't(t) ! R R]4      t*] PV                  R R l4       t,R t-R t.R t/R t0R t1R t2R t3R t4R t5R t6R t7R t8R t9R t:R t;R t<R# )     N)Enum)Callable)AddImpliessqrt)MulPow)SpisymbolsFunctionRationalIntegerSymbolEqNeLeLtGtGe)	Piecewiseexpsincos)Qsmtlib_code)raisesFailedzx,y,zc                       ] tR t^t]P
                  ! R]P                  4      t]P
                  ! R]P                  4      t]P
                  ! R]P                  4      t	Rt
R# )_Wz2Could not infer type of `.+`. Defaulting to float.z.Non-Symbol/Function `.+` will not be declared.zPNon-Boolean expression `.+` will not be asserted. Converting to SMTLib verbatim. N)__name__
__module____qualname____firstlineno__recompile
IGNORECASEDEFAULTING_TO_FLOATWILL_NOT_DECLAREWILL_NOT_ASSERT__static_attributes__r"       ^/var/www/html/photoedit/myenv/lib/python3.14/site-packages/sympy/printing/tests/test_smtlib.pyr!   r!      sW    **%Y[][h[hizz"RTVTaTabjj!suw  vC  vC  DOr.   r!   c                N    V ^8  d   QhR\         P                  \        ,          /# )   expected)typingIterabler!   )formats   "r/   __annotate__r6      s     / /6??2. /r.   c           	   #     "   . pVP                   pVx  . p\        \        P                  ! W4      4       F  w  pw  rVV'       g   VR V RV R2.,          pK#  V'       g   VR V RVP                   R2.,          pKH  VP
                  P                  V4      '       d   Kk  VR V RV RVP                   R2.,          pK  	  V'       d   \        RP                  V4      4      hR# 5i)	[z] Received unexpected warning `z`.z$] Did not receive expected warning `z] Warning `z` does not match expected .
N)	append	enumerate	itertoolszip_longestnamevaluematchr   join)r2   warnslog_warnerrorsiwes   &      r/   _check_warnsrI      s      E||H
NFy44UEF	6A1#<QCrBCCF1#A!&&LMMFq!!1#[+EaffXQOPPF G VDIIf-..vs   AC'!;C'!)C'C'c                     \        \        P                  .^,          4      ;_uu_ 4       p \        \	        ^C4      V R7      R8X  g   Q h\        \	        R4      V R7      R8X  g   Q h RRR4       \        . 4      ;_uu_ 4       p \        \	        ^C4      4      R8X  g   Q h\        \	        R4      4      R8X  g   Q h RRR4       R#   + '       g   i     Le; i  + '       g   i     R# ; i)r1   rD   67z-1N)rI   r!   r,   r   r   rG   s    r/   test_IntegerrO   -   s    	r))*Q.	/	/172;3t;;;72;3t;;; 
0 
b		Q72;'4///72;'4/// 
	 
0	/ 
		s   ;C7CC	C'	c            	         \        \        P                  .^,          4      ;_uu_ 4       p \        \	        ^^4      V R7      R8X  g   Q h\        \	        ^^	4      V R7      R8X  g   Q h\        \	        ^R
4      V R7      R8X  g   Q h\        \	        RR
4      V R7      R8X  g   Q h RRR4       \        \        P
                  \        P                  .^,          4      ;_uu_ 4       p \        \        \	        ^^4      ,           RV R7      R8X  g   Q h\        \	        ^^4      \        ,          V R7      R	8X  g   Q h RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)   rK   z(/ 3 7)2z(/ -3 7)NFauto_declarerD   z(+ (/ 3 7) x)z$(declare-const x Real)
(* (/ 3 7) x)i)rI   r!   r,   r   r   r*   xrN   s    r/   test_RationalrW   6   s#   	r))*Q.	/	/18Aq>A6)CCC8B?Q73>>>8Ar?Q7:EEE8B+a8IEEE	 
0 
r--r/A/ABQF	G	G11x1~-EANRaaaa8Aq>A-: ?N N 	N N 
H	G 
0	/ 
H	G	Gs   A9E$AEE	E'	c                  h   \        \        P                  .^,          4      ;_uu_ 4       p \        \	        \
        \        4      RV R7      R8X  g   Q h\        \        \
        \        4      RV R7      R8X  g   Q h\        \        \
        \        4      RV R7      R8X  g   Q h\        \        \
        \        4      RV R7      R8X  g   Q h\        \        \
        \        4      RV R7      R8X  g   Q h\        \        \
        \        4      RV R7      R8X  g   Q h R	R	R	4       R	#   + '       g   i     R	# ; i)
   FrS   (assert (= x y))(assert (not (= x y)))(assert (<= x y))(assert (< x y))(assert (> x y))(assert (>= x y))N)rI   r!   r*   r   r   rV   yr   r   r   r   r   rN   s    r/   test_Relationalra   C   s    	r--.3	4	42a8%!DHZZZZ2a8%!DH````2a8%!DH[[[[2a8%!DHZZZZ2a8%!DHZZZZ2a8%!DH[[[[ 
5	4	4	4s   C+D  D1	c                    a  \        \        P                  .^,          4      ;_uu_ 4       o \        \        P
                  ! \        \        4      RS R7      R8X  g   Q h\        \        P                  ! \        \        4      RS R7      R8X  g   Q h\        \        P                  ! \        \        4      RS R7      R8X  g   Q h\        \        P                  ! \        \        4      RS R7      R8X  g   Q h\        \        P                  ! \        \        4      RS R7      R8X  g   Q h\        \        P                  ! \        \        4      RS R7      R8X  g   Q h R	R	R	4       \        \        V 3R
 l4       R	#   + '       g   i     L&; i)rY   FrS   rZ   r[   r]   r\   r^   r_   Nc                  N   < \        \        P                  ! \        4      S R 7      # rK   )r   r   complexrV   rN   s   r/   <lambda>,test_AppliedBinaryRelation.<locals>.<lambda>V   s    {199Q<!Dr.   )rI   r!   r*   r   r   eqrV   r`   neltlegtger   
ValueErrorrN   s   @r/   test_AppliedBinaryRelationro   M   s   	r--.3	4	41441:EAFJ\\\\1441:EAFJbbbb1441:EAFJ\\\\1441:EAFJ]]]]1441:EAFJ\\\\1441:EAFJ]]]] 
5 :DE 
5	4s   D-E77F	c                     \        \        P                  .^,          4      ;_uu_ 4       p \        \        P
                  ! \        4      RV R7      R8X  g   Q h\        \        P                  ! \        4      RV R7      R8X  g   Q h\        \        P                  ! \        4      RV R7      R8X  g   Q h\        \        P                  ! \        4      RV R7      R8X  g   Q h\        \        P                  ! \        4      RV R7      R8X  g   Q h\        \        P                  ! \        4      RV R7      R8X  g   Q h R	R	R	4       R	#   + '       g   i     R	# ; i)
   FrS   z(assert (> x 0))z(assert (< x 0))z(assert (= x 0))z(assert (<= x 0))z(assert (>= x 0))z(assert (not (= x 0)))N)rI   r!   r*   r   r   positiverV   negativezerononpositivenonnegativenonzerorN   s    r/   test_AppliedPredicaterx   Y   s    	r--.2	3	3q1::a=uqIM____1::a=uqIM____166!951EI[[[[1==+%!LPcccc1==+%!LPcccc199Q<eaHLdddd 
4	3	3	3s   DEE	c            
      N   \        \        P                  \        P                  .4      ;_uu_ 4       p \	        \        \        4      \        \        4      ,          R V R7      R8X  g   Q h RRR4       \        \        P                  .4      ;_uu_ 4       p \	        \        \        4      \        \        \        \        /\        R/\        P                  R/V R7      R8X  g   Q h RRR4       \        R4      p\        \        P                  .4      ;_uu_ 4       p \	        V! \        4      V\        \        .\         3,          /V R	7      R
8X  g   Q h RRR4       \        . 4      ;_uu_ 4       p \	        V! \        4      V\        \        .\        3,          /V R	7      R8X  g   Q h\	        \#        V! \        \$        4      \        4      V\        \        \        .\        3,          /V R	7      R8X  g   Q h\	        \#        V! \        \$        4      \        4      V\        \        \        .\        3,          /VR\"        R/V R7      R8X  g   Q h RRR4       \        \        P                  .^,          4      ;_uu_ 4       p \	        \#        V! \        \$        4      \        4      VR\"        R/V R7      R8X  g   Q h RRR4       R#   + '       g   i     ELc; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     R# ; i)FrS   z(pow (sin x) (cos x))NINTEGER_TYPEABSOLUTE_VALUE_OF)symbol_tableknown_typesknown_functionsrD   z4(declare-const x INTEGER_TYPE)
(ABSOLUTE_VALUE_OF x)f1r|   rD   z:(declare-const x Bool)
(declare-fun f1 (Bool) Real)
(f1 x)zC(declare-const x Bool)
(declare-fun f1 (Bool) Bool)
(assert (f1 x))z|(declare-const x Int)
(declare-const y Bool)
(declare-const z Bool)
(declare-fun f1 (Int Bool) Bool)
(assert (= (f1 x z) y))MY_KNOWN_FUNz==)r|   r~   rD   zf(declare-const x Int)
(declare-const y Bool)
(declare-const z Bool)
(assert (== (MY_KNOWN_FUN x z) y)))r~   rD   zg(declare-const x Real)
(declare-const y Real)
(declare-const z Real)
(assert (== (MY_KNOWN_FUN x z) y)))rI   r!   r*   r,   r   r   rV   r   absintr`   boolsympyAbsr   r   floatr   z)rG   my_fun1s     r/   test_Functionr   b   s   	r--r/A/AB	C	Cq3q6SV+%!LPgggg 
D 
r))*	+	+qFS!T*n-"YY(;<
%% 	% % 
, tnG	r))*	+	+qAJ!8TFEM#:;
	 	  
, 
b		QAJ!8TFDL#9:
	 	  wq!}a !8S$K,=#>?
'	' 	' ' wq!}a !8S$K,=#>?$nb$?	

22 	2 2' 
: 
r--.2	3	3qwq!}a $nb$?
2	2 	2 2 
4	3i 
D	C	C 
,	+	+ 
,	+	+ 
	: 
4	3	3s=   7KAK8K,-CL >;LK	K)	,K=	 L	L$	c                     \        \        P                  \        P                  .4      ;_uu_ 4       p \	        \
        ^,          RV R7      R8X  g   Q h RRR4       \        \        P                  \        P                  \        P                  .4      ;_uu_ 4       p \	        \
        \        ^,          ,          RV R7      R8X  g   Q h RRR4       \        \        P                  \        P                  .4      ;_uu_ 4       p \	        \
        \        ^^4      ,          RV R7      R8X  g   Q h\        RRR	7      p\        R
RR7      p\        R4      pR p^V! V4      R,          WV,          ,
          ,          ,          V^,          V,           ,          pRRR4       \        . 4      ;_uu_ 4       p \	        \        X^8  X4      \        XV8  V4      VR,          \        X^\        ^^4      ,           4      .V R7      R8X  g   Q h RRR4       \        \        P                  \        P                  .4      ;_uu_ 4       p \	        \        RX\        \        XVRR7      RRR7      RR7      V R7      R8X  g   Q h RRR4       R#   + '       g   i     EL8; i  + '       g   i     EL; i  + '       g   i     EL ; i  + '       g   i     L; i  + '       g   i     R# ; i)   FrS   z	(pow x 3)Nz(pow x (pow y 3))z(pow x (/ 2 3))aTintegerbrealcc                     ^V ,          # )r1   r"   )rV   s   &r/   gtest_Pow.<locals>.g   s
    Q,r.   g      @rK   z(declare-const a Int)
(declare-const b Real)
(declare-const c Bool)
(assert (= (< a 2) c))
(assert (= (> b a) c))
(assert c)
(assert (= (* (pow (* 7.0 a) (+ (pow b a) (* -1 a))) (pow (+ b (pow a 2)) -1)) (/ 7 3)))evaluatezG(declare-const b Real)
(declare-const c Real)
(* -2 c (pow (* b b) -1))rM   )rI   r!   r*   r,   r   rV   r`   r   r   r   r   r	   )rG   r   r   r   r   exprs         r/   test_Powr      s6   	r--r/A/AB	C	Cq16BkQQQ 
D	r--r/E/ErGYGYZ	[	[_`1a=uqIM```` 
\	r--r/A/AB	C	Cq1A.UQOSdddd3%3T"3K AaD3JAQJ//16A:> 
D 
b		Q1q5!1q5!D4Xa^+,	 
	 	  
( 
r--r/A/AB	C	CqAs3q!e4b5ITYZ
)) 	) ) 
D	CI 
D	C	C	[	[	[	C	C	C 
	( 
D	C	Cs=   !J,JBJ+/AJ?>:KJ	J(	+J<	?K	K#	c                     \        \        P                  \        P                  \        P                  .4      ;_uu_ 4       p \	        \
        \        ,          R V R7      R8X  g   Q h RRR4       \        \        P                  \        P                  \        P                  .4      ;_uu_ 4       p \	        \
        \        ,           R V R7      R8X  g   Q h RRR4       \        \        P                  \        P                  .4      ;_uu_ 4       p \	        \
        ) R V R7      R8X  g   Q h RRR4       R#   + '       g   i     L; i  + '       g   i     Lz; i  + '       g   i     R# ; i)FrS   z(* x y)Nz(+ x y)z(* -1 x))rI   r!   r*   r,   r   rV   r`   rN   s    r/   test_basic_opsr      s    	r--r/E/ErGYGYZ	[	[_`1q5uqAYNNN 
\ 
r--r/E/ErGYGYZ	[	[_`1q5uqAYNNN 
\ 
r--r/A/AB	C	CqA2EA>*LLL 
D	C 
\	[ 
\	[ 
D	C	Cs$   %D4/%EE4E	E	E+	c                  \  aaaaa	 ^ RI Ho ^ RIHoHoHo	  ! VVVVV	3R lRS4      o\        R4      p \        \        P                  .4      ;_uu_ 4       p\        S! \        R^3\        V ! \        4      V ! \        4      4      4      V \        \        .\        3,          /VR7      R8X  g   Q h RRR4       \        \        P                  .^,          4      ;_uu_ 4       p\        S! \        R^3\        R^3\!        \        \        \        4      \        V ! \        4      V ! \        4      4      4      4      V \        \        .\        3,          /VR7      R	8X  g   Q h RRR4       \#        R
RR7      p\#        RRR7      p\#        R4      p\        . 4      ;_uu_ 4       p\        S! V^^d3S! V^^d3\!        W#8  \%        V4      V8  4      V,          4      4      VR7      R8X  g   Q h RRR4       R#   + '       g   i     ELL; i  + '       g   i     L; i  + '       g   i     R# ; i)r   )Boolean)IntervalTuplesympifyc                   `   <a  ] tR t^t o V3R lt]R 4       t]R 4       tVVVV3R ltRt	V t
R# )*test_quantifier_extensions.<locals>.ForAllc                :  < V P                    UUUu. uFL  w  r#pVP                  VP                  VP                  VP                  V,          ,          S! W44      .4      NKN  	  ppppVP                  R VP                  RV4      V P
                  .4      # u upppi )forall )limits_s_exprr?   _known_typesr|   function)selfprintersymstartendbound_symbol_declarationsr   s   &&    r/   _smtlib2test_quantifier_extensions.<locals>.ForAll._smtlib   s    
 +/++	) +6s3 (()=)=c)BCU(+  +6	 & ) ??8$=>.  )s   ABc                P    V P                    UUu0 uF  w  p q!kK
  	  upp# u uppi N)r   )r   s_s   &  r/   bound_symbols8test_quantifier_extensions.<locals>.ForAll.bound_symbols   s$    %)[[1['!QA[111s   "c                    V P                    Uu0 uF  qP                  kK  	  ppV P                  P                   Uu0 uF  pVP                  V9  g   K  VkK  	  up# u upi u upi r   )r   r?   r   free_symbols)r   r   bound_symbol_namess   &  r/   r   7test_quantifier_extensions.<locals>.ForAll.free_symbols   se    262D2D!E2DQ&&2D!E==555a66!33 5  "Fs   AA#A#c                L  < V Uu. uF%  p\        V\        S34      '       g   K  S	! V4      NK'  	  ppV Uu. uF  p\        VS4      '       g   K  S	! V4      NK!  	  pp\        V4      \        V4      ,           \        V4      8X  g   Q h\        V4      ^8X  g   Q hV^ ,          p\        VS4      '       d1   SP                  ! S.W4P                  ,           OVP
                  N5!  # SP                  V 4      p\        W4.,           4      Vn        W5n        WEn        V# u upi u upi )   )
isinstancetuplelen__new__r   r   _args)
clsargsr   r   r   instr   ForAllr   r   s
   &*    r/   r   2test_quantifier_extensions.<locals>.ForAll.__new__   s    *.P$Q*Q2Ojgaj$FP,0KDqJq'4J

DHKv;X.#d);;;x=A%%%{H(F++FNN5 ??255=5F5F5 . ??3'Dv
23DJ K$MK QKs   DDD!D!r"   N)r#   r$   r%   r&   r   propertyr   r   r   r-   __classdictcell__)__classdict__r   r   r   r   r   s   @r/   r   r      s<     
	 
	2 
	2 
	 
		 	r.   r   fr   z,(assert (forall ( (x Real [-42, 21])) true))Nzs(declare-fun f (Real) Real)
(assert (forall ( (x Real [-42, 21]) (y Real [-100, 3])) (=> (= x y) (= (f x) (f y)))))r   Tr   r   r   r   rK   zx(declare-const c Bool)
(assert (forall ( (a Int [2, 100]) (b Real [2, 100])) (or c (=> (< a b) (< (pow a (/ 1 2)) b)))))ii)sympy.logic.boolalgr   r   r   r   r   r   rI   r!   r*   r   rV   r   r   r   r`   r   r   r   )
r   rG   r   r   r   r   r   r   r   r   s
        @@@@@r/   test_quantifier_extensionsr      s   +..' ' 'V 	A	r--.	/	/1AsC="QqT1Q4.1Xugun56
 <	< 	< < 
0 
r--.2	3	3qC4|1a"QqT1Q4.1 Xugun56
 	  
4 	sD!AsAsA	b		QAsV3KAE47Q;/!3
 

 
	 
 
	3 
0	/	/ 
4	3$ 
		s'   AG3!A>H AH3H	H	H+	c                     \        \        P                  .4      ;_uu_ 4       p \        ^\        ,          \        R/V R7      R8X  g   Q h RRR4       \        \        P                  .4      ;_uu_ 4       p \        \        \        RRR7      ^\        ,          .\        R/V R7      R8X  g   Q h RRR4       \        \        P                  .4      ;_uu_ 4       p \        \        \        P                  \        P                  \        P                  \        P                  \        P                  \        P                  \        P                  RR7      \        P                  R	\        P                  R
\        P                  R/\        R\        R/^V R7      R8X  g   Q h RRR4       \        \        P                  .4      ;_uu_ 4       p \        \        \        P                  \        P                  \        P                  \        P                  \        P                  \        P                  \        P                  RR7      \        P                  R	/\        R\        R/^V R7      R8X  g   Q h RRR4       \        \        P                  .4      ;_uu_ 4       p \        \        \        P                  \        P                  \        P                  \        P                  \        P                  \        P                  \        P                  RR7      \        R/^V R7      R8X  g   Q h RRR4       \        \        P                  .4      ;_uu_ 4       p \        \        \        P                  \        P                  \        P                  \        P                  \        P                  \        P                  \        P                  RR7      \        P                  R/\        R/^V R7      R8X  g   Q h RRR4       R#   + '       g   i     EL; i  + '       g   i     ELr; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL/; i  + '       g   i     R# ; i)r   MY_PI)known_constantsrD   z(pow MY_PI -1)NgQ	@Fr   z&(assert (= MY_PI 3.14))
(pow MY_PI -1)pr   rH   plusr   )r   r~   	precisionrD   z!(plus 0 1 -1 (/ 1 2) (exp 1) p g)z$(plus 0 1 -1 (/ 1 2) (exp 1) p 1.62))r~   r   rD   z$(plus 0 1 -1 (/ 1 2) 2.72 3.14 1.62)z!(plus 0 1 -1 (/ 1 2) e 3.14 1.62))rI   r!   r,   r   r   r   r   r
   ZeroOneNegativeOneHalfExp1PiGoldenRatior   rN   s    r/   test_mix_number_mult_symbolsr   7  s3   	r))*	+	+qFM
 	 	  
, 
r))*	+	+q2te,B  M
 	  
, 
r))*	+	+qq}}affamme= c1==#
 VU 
 11 	1 1 
,  
r))*	+	+qq}}affamme= c VU 
 44 	4 4 
, 
r))*	+	+qq}}affamme= &M
 44 	4 4 
, 
r))*	+	+qq}}affamme=VVSM &M
 11 	1 1 
,	+u 
,	+	+ 
,	+	+ 
,	+	+  
,	+	+ 
,	+	+ 
,	+	+sK   'P59PCP,B'Q BQB!Q(P	P)	,P=	 Q	Q%	(Q9	c                  <   \        . 4      ;_uu_ 4       p \        \        \        ,          V R 7      R8X  g   Q h\        \        \        ,          V R 7      R8X  g   Q h\        \        ( V R 7      R8X  g   Q h\        \        \        ,          \        ,          V R 7      R8X  g   Q h RRR4       \        \
        P                  .4      ;_uu_ 4       p \        \        \        ( ,          \        ^8  ,          V R 7      R8X  g   Q h RRR4       \        R4      p\        R4      p\        R	4      p\        \
        P                  .4      ;_uu_ 4       p \        \        V! \        4      \        4      \        \        V! \        4      4      .V\        \        .\        3,          V\        \        .\        3,          /V R
7      R8X  g   Q h RRR4       \        . 4      ;_uu_ 4       p \        \        V! \        4      \        4      \        \        V! \        4      4      .V\        \        .\        3,          V\        \        .\        3,          /V R
7      R8X  g   Q h RRR4       \        . 4      ;_uu_ 4       p \        \        V! \        4      \        4      \        V! V! \        4      4      \        4      \        V! V! V! \        4      4      4      \        4      .V\        \        .\        3,          V\        \        .\        3,          V\        \        .\        3,          /V R
7      R8X  g   Q h RRR4       R#   + '       g   i     EL; i  + '       g   i     ELV; i  + '       g   i     EL; i  + '       g   i     EL&; i  + '       g   i     R# ; i)rK   z@(declare-const x Bool)
(declare-const y Bool)
(assert (and x y))z?(declare-const x Bool)
(declare-const y Bool)
(assert (or x y))z'(declare-const x Bool)
(assert (not x))zY(declare-const x Bool)
(declare-const y Bool)
(declare-const z Bool)
(assert (and x y z))Nzj(declare-const x Bool)
(declare-const y Bool)
(declare-const z Real)
(assert (or (> z 3) (and x (not y))))r   r   hr   z(declare-const x Bool)
(declare-const y Real)
(declare-const z Bool)
(declare-fun f (Bool) Int)
(declare-fun g (Bool) Int)
(assert (> (f x) y))
(assert (< y (g z)))z(declare-const x Bool)
(declare-const y Int)
(declare-const z Bool)
(declare-fun f (Bool) Int)
(declare-fun g (Bool) Int)
(assert (= (f x) y))
(assert (< y (g z)))z(declare-const x Real)
(declare-const y Int)
(declare-const z Bool)
(declare-fun f (Real) Int)
(declare-fun g (Int) Bool)
(declare-fun h (Bool) Real)
(assert (= (f x) y))
(assert (= (g (f x)) z))
(assert (= (h (g (f x))) x)))rI   r   rV   r`   r   r!   r*   r   r   r   r   r   r   r   r   )rG   r   r   r   s       r/   test_booleanr   }  s   	b		Q1q51- 2F F 	F F 1q51- 2E E 	E E A2* /A A 	A A1q519q1 6L L 	L L 
 
r--.	/	/1AFq1u-: ?f f 	f f 
0 	AAA	r--.	/	/1!a[1Q4[ 8TFCK(!Xtfck-B
$$ 	$ $ 
0 
b		Q!a[1Q4[ 8TFCK(!Xtfck-B
$$ 	$ $ 
 
b		Q!a[!A$^!AaD'
A  8UGSL)8SE4K(8TFEM*
 

,, 	, , 
	k 
		 
0	/	/ 
0	/	/ 
		 
		s?   BL:3MA8M" A8M64B;N
:M	M	"M3	6N	
N	c                    a a \        \        P                  \        P                  .4      ;_uu_ 4       o\	        \        \        \        ^8  3\        ^,          R34      RSR7      R8X  g   Q h RRR4       \        \        P                  \        P                  .4      ;_uu_ 4       o\	        \        \        ^,          \        ^8  3\        ^,          \        ^8  3\        ^,          \        ^8  3\        ^,          R34      RSR7      R8X  g   Q h RRR4       \        \        \        ^8  3\        ^,          \        ^8  3\        \        4      \        ^ 8  34      o \        \        P                  \        P                  .4      ;_uu_ 4       o\        \        V V3R l4       RRR4       R#   + '       g   i     ELK; i  + '       g   i     L; i  + '       g   i     R# ; i)r   TFrS   z(ite (< x 1) x (pow x 2))NzQ(ite (< x 1) (pow x 2) (ite (< x 2) (pow x 3) (ite (< x 3) (pow x 4) (pow x 5))))c                     < \        S SR 7      # rd   r   r   rG   s   r/   rf   'test_smtlib_piecewise.<locals>.<lambda>  s    {4!'Dr.   )
rI   r!   r*   r,   r   r   rV   r   r   AssertionErrorr   s   @@r/   test_smtlib_piecewiser     su   	r--r/A/AB	C	Cqq!a%jAvtn&	

 )) 	) ) 
D 
r--r/A/AB	C	CqqAvq1uoAvq1uoAvq1uoAvtn& 

 
	 
 
D aQZ!q&!a%3q61q5/BD	r--r/A/AB	C	Cq~DE 
D	C/ 
D	C	C 
D	C 
D	C	Cs$   :F1(A+GG1G	G	G)	c                     \        \        \        ^8  3\        ^,          R34      p \        \        P                  \        P
                  .4      ;_uu_ 4       p\        ^V ,          VR7      R8X  g   Q h RRR4       \        \        P                  \        P
                  .4      ;_uu_ 4       p\        V \        ,          VR7      R8X  g   Q h RRR4       \        \        P                  \        P                  \        P
                  .4      ;_uu_ 4       p\        V \        \        ,          ,          VR7      R8X  g   Q h RRR4       \        \        P                  \        P
                  .4      ;_uu_ 4       p\        V ^,          VR7      R8X  g   Q h RRR4       R#   + '       g   i     EL7; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R# ; i)r   TrK   z6(declare-const x Real)
(* 2 (ite (< x 1) x (pow x 2)))Nz?(declare-const x Real)
(* (pow x -1) (ite (< x 1) x (pow x 2)))za(declare-const x Real)
(declare-const y Real)
(* (pow x -1) (pow y -1) (ite (< x 1) x (pow x 2)))z<(declare-const x Real)
(* (/ 1 3) (ite (< x 1) x (pow x 2))))r   rV   rI   r!   r*   r,   r   r`   )pwrG   s     r/   !test_smtlib_piecewise_times_constr     sW   	Aq1u:Q~	.B	r--r/A/AB	C	Cq1r6A.2kkkk 
D	r--r/A/AB	C	Cq26A.2tttt 
D	r--r/E/ErGYGYZ	[	[_`2Q<!4  9^  ^  	^  ^ 
\	r--r/A/AB	C	Cq26A.2qqqq 
D	C 
D	C	C	C	C	[	[	C	C	Cs0   F#. F7+G
<G#F4	7G	
G	G.	c                     \        . 4      ;_uu_ 4       p \        R RV R7      R8X  g   Q h\        R V R7      R8X  g   Q h\        \        P                  V R7      R8X  g   Q h\        \        P                  V R7      R8X  g   Q h\        RV R7      R8X  g   Q h\        RRV R7      R8X  g   Q h RRR4       R#   + '       g   i     R# ; i)	TF)auto_assertrD   truerK   z(assert true)z(assert false)falseN)rI   r   r
   r   r   rN   s    r/   test_smtlib_booleanr     s    	b		Q4UQ?6III4!,???166A./AAA177Q/3CCCC51-1AAAA5ea@GKKK 
			s   BB66C	c                    a a \        R 4      o \        \        P                  \        P                  .4      ;_uu_ 4       o\        \        V V3R l4       RRR4       \        \        P                  .4      ;_uu_ 4       o\        \        V3R l4       RRR4       R#   + '       g   i     LQ; i  + '       g   i     R# ; i)r   c                     < \        S ! \        4      P                  \        4      S \        \        .\        3,          /SR 7      # )r   )r   rV   diffr   r   r   rG   s   r/   rf   $test_not_supported.<locals>.<lambda>!  s/    QqTYYq\HV[U\^cUcLdHepq!rr.   Nc                  :   < \        \        P                  S R 7      # rd   )r   r
   ComplexInfinityrN   s   r/   rf   r   #  s    Q->->!Kr.   )r   rI   r!   r*   r,   r   KeyErrorr   s   @@r/   test_not_supportedr     sx    A	r--r/A/AB	C	Cqxrs 
D	r))*	+	+qxKL 
,	+ 
D	C	+	+	+s   B?B1B.	1C	c                  r    \        R 4      R8X  g   Q h\        R4      R8X  g   Q h\        R4      R8X  g   Q hR# )g        z0.0geK<z(* 3.0 (pow 10 -18))g333333@z5.3Nr   r"   r.   r/   
test_Floatr   &  s=    su$$$+,0FFFFsu$$$r.   )=
contextlibr=   r'   r3   enumr   r   r   r   r   r   
sympy.corer   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   sympy.functionsr   r   r   r   sympy.assumptions.askr   sympy.printing.smtlibr   sympy.testing.pytestr   r   rV   r`   r   r!   contextmanagerrI   rO   rW   ra   ro   rx   r   r   r   r   r   r   r   r   r   r   r   r"   r.   r/   <module>r     s      	     $ $ 8 8 8 8 4 4 # - /
'
1aD D / /"0
N\	Fe=2@+)\MUpC1LI,pF8	rFLM%r.   