+
    i
                     >    ^ RI HtHtHtHtHtHt ^ RIHt R t	R t
R# )    )GrayCodebin_to_grayrandom_bitstringget_subset_from_bitstringgraycode_subsetsgray_to_bin)raisesc            	      0   \        ^4      p . pV P                  4        F;  pVP                  R4      '       d   V P                  4        VP	                  V4       K=  	  VRP                  4       8X  g   Q h\        ^4      pVP                  RL8X  g   Q hVP                  ^ 8X  g   Q h\        \        VP                  4       4      4      ^@8X  g   Q h. RNRNRNRNRNRNR	NR
NRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNR NR!NR"NR#NR$NR%NR&NR'NR(NR)NR*NR+NR,NR-NR.NR/NR0NR1Np\        VP                  RR27      4      V8X  g   Q h\        VP                  \        ^RR27      P                  R37      4      V8X  g   Q hVP                  4       P                  R48X  g   Q hVP                  ^4      P                  R58X  g   Q hVP                  RM4      P                  R18X  g   Q h\        ^R6R27      pVP                  ^8X  g   Q h\        ^R"R27      pVP                  ^08X  g   Q h\        ^^R37      P                  R78X  g   Q h\        ^^R37      P                  ^8X  g   Q h\        ^4      P                  4        Uu. uF  p\        ^VR27      P                  NK  	  up. RNO8X  g   Q h\        ^^R37      pVP                  R88X  g   Q h\        R94      R:8X  g   Q h\        ^4      p\        V4      \        J g   Q h\        V4      ^8X  g   Q h\        ;QJ d    R; V 4       F  '       d   K   R<M	  R=M! R; V 4       4      '       g   Q h\!        . ROORB4      R@RA.8X  g   Q h\!        RCRD4      R>RA.8X  g   Q h\        \#        . RPO4      4      . R@.R?R@.R?.R>R?.. RPOR>R@.R>..8X  g   Q h\%        \&        RE 4       \%        \&        RF 4       \%        \&        RG 4       \%        \&        RH 4       \%        \&        RI 4       \%        \&        RJ 4       RK# u upi )Q   0z00 11 10011001011011011010011110011111011101011100010100010101010111010110010010010011010001010000110000110001110011110010110110110111110101110100111100111101111111111110111010111011111001111000101000101001101011101010101110101111101101101100100100100101100111100110100010100011100001100000startrank00000100001110010000110000000000001000111100c              3   *   "   T F	  qR9   x  K  	  R# 5i)r   N)r   1 ).0is   & e/var/www/html/photoedit/myenv/lib/python3.14/site-packages/sympy/combinatorics/tests/test_graycode.py	<genexpr> test_graycode.<locals>.<genexpr>3   s     *1Js   FTabcd0011abcd1001c                      \        ^ 4      # )r   r   rI       rL   <lambda>test_graycode.<locals>.<lambda><   s    x{rX   c                      \        R 4      # )g@rW   rI   rX   rL   rY   rZ   =   s    x}rX   c                       \        ^. ROR7      # )r   r<   )   r]   r   rW   rI   rX   rL   rY   rZ   >   s    x;rX   c                      \        ^RR7      # )r   g      @r>   rW   rI   rX   rL   rY   rZ   ?   s    x4rX   c                      \        . ROR4      # )rQ   1100)rQ   rO   rQ   )r   rI   rX   rL   rY   rZ   @   s    8&QrX   c                  J    \        \        ^4      P                  RR7      4      # )   1111r<   )listr   generate_grayrI   rX   rL   rY   rZ   A   s    tHQK$=$=F$=$KLrX   N000000)r   r]   r   rb                  	   
                  )rO   rP   rQ   rR   )rO   rP   rQ   )r   re   
startswithskipappendsplitcurrentr?   lenrd   nextr   r   typestrallr   r   r	   
ValueError)ggotrK   rO   codesss         rL   test_graycoder      s   A
C__<<FFH

1  *""$$$$A9966Q;;tAOO%&'2---X x   "*,46>@H "*,46>@H   ! #+ -5 7? AI 	 	 !	 #+	 -5	 7?	 AI	
 
 
 !
 #+
 -5
 7?
 AI   ! #+ -5 7? AI  E h/0E999	Xax8==>@CHI I I668x'''66!9(((66":)))'"A66R<<(#A66R<<AA&&(222AA##q(((QK%%')' +,HQa %%')-HH H H 	"A99))))u&&&A7c>>q6Q;;3**333******$f&*-s4 4 4$VV4c
BBB 12	cUS#JSz?
scU	   :*+
:,-
:;<
:45
:QR
:LM3)s    Pc                      \        R 4      R8X  g   Q h\        R4      R8X  g   Q hR F  p \        \        V 4      4      V 8X  d   K  Q h	  R# )0100011001010111N)r   r   )r   r   )bitss    rL   test_live_issue_117r   D   sJ    v&(((v&((( ;t,-555 !rX   N)sympy.combinatorics.graycoder   r   r   r   r   r   sympy.testing.pytestr	   r   r   rI   rX   rL   <module>r      s      (;N|6rX   