From 36a1e525027f3ef5dbf3d6e4233efbee49bae598 Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Wed, 30 Nov 2022 13:21:32 +0100 Subject: [PATCH] I think It work --- Makefile | 4 ++-- a.out | Bin 0 -> 22104 bytes ft_atoi.o | Bin 0 -> 2568 bytes ft_bit_finder.c | 17 ++++++++++++++--- ft_bit_finder.o | Bin 0 -> 2816 bytes ft_get_bit_max.c | 4 ++-- ft_get_bit_max.o | Bin 0 -> 2624 bytes ft_get_bit_min.c | 31 +++++++++++++++++++++++++++++++ ft_get_bit_min.o | Bin 0 -> 2624 bytes ft_get_max.o | Bin 0 -> 2816 bytes ft_get_min.o | Bin 0 -> 2808 bytes ft_is_sorted.c | 34 ++++++++++++++++++++++++++++++++++ ft_is_sorted.o | Bin 0 -> 2808 bytes ft_isnum.o | Bin 0 -> 2328 bytes ft_p.c | 10 +++++----- ft_p.o | Bin 0 -> 3528 bytes ft_putstr.c | 2 +- ft_putstr.o | Bin 0 -> 2312 bytes ft_r.c | 6 +++--- ft_r.o | Bin 0 -> 3200 bytes ft_radix.c | 24 +++++++++++++----------- ft_radix.o | Bin 0 -> 3128 bytes ft_sort.c | 4 ++-- ft_sort.o | Bin 0 -> 4320 bytes ft_swap.o | Bin 0 -> 2256 bytes ft_tablen.o | Bin 0 -> 2224 bytes main.o | Bin 0 -> 3128 bytes push_swap | Bin 24416 -> 25680 bytes pushswap.h | 7 +++++-- test.c | 42 ++++++++++++++++++++++++++++++++---------- 30 files changed, 144 insertions(+), 41 deletions(-) create mode 100755 a.out create mode 100644 ft_atoi.o create mode 100644 ft_bit_finder.o create mode 100644 ft_get_bit_max.o create mode 100644 ft_get_bit_min.c create mode 100644 ft_get_bit_min.o create mode 100644 ft_get_max.o create mode 100644 ft_get_min.o create mode 100644 ft_is_sorted.c create mode 100644 ft_is_sorted.o create mode 100644 ft_isnum.o create mode 100644 ft_p.o create mode 100644 ft_putstr.o create mode 100644 ft_r.o create mode 100644 ft_radix.o create mode 100644 ft_sort.o create mode 100644 ft_swap.o create mode 100644 ft_tablen.o create mode 100644 main.o diff --git a/Makefile b/Makefile index 75af3e8..193453d 100644 --- a/Makefile +++ b/Makefile @@ -6,11 +6,11 @@ # By: cchauvet o$=O%pmv8bRws4ulwkI|dBf-*?XW z_Hnf$Btx0}v1g?Fo$qG;HvbBqZE2H-3dr~b0|{=o~OuyA$v%W^rlNMkwZufg{}wbxrm{0 zJIqR^5Db~0FV9EHNIrSZ!&Y5ChQ)g1%Hd`uf4Hp_4r;x<8nPatr1z-SdsOQ&JV6d2 zG30nsOz3}wj;9^^z@y}oS0U_rJG7o1uGjJmsSHZj9?L|2m-4n~z4Lt1jIhJFA`6CG z-ZjwEO{*n78gMgj)#Xjs4&6Hb40U)#OFY)IY)MNz(j1Q^vU{8Nu2|N*Y>7Xe^e>hL zlV4N@b(@V>Zx=8#Ml>Bp*%pl&C;p{vkKK7~;``rUd+YVz{Q5d^{nlUIdLP@MGD(IK z>2sGLobo3ANk-NG3&<%N!Iz^i4iKC!(fFBNhS?9AuME8lv~uz_)6f@ALtixw{SMH5 z__wDogW$6hfnSRM1!d?0?GvWvSSBnhoe70^S>gU&R&OX47lYYMxIdHO!xJ2F{b!31!8^w?j@(PZp=UiurB-g~?I54bT{HwxH(!u^ zKXFbTe>IoO9gsLJCy)Of_O&f%AD3J$*(9QvOVTefwLy6(bKF*rK2PJ*^0C_Z=ANxu;990-oKH9Y7bp z<>|~>sQQcGQPs`dMBV)T5En-^g#2-0jxK$Tz$G6Bhff5LytyWLr}*q|Beuw1x;;45b~|N*!^bkU!I8GRfJ`3$FqfN*AUMytZUJuW zgl>uc@jYOYq3zH^V{M59N2)HmSlS7kUNkly7(-r+2cD&d7!N#8@gEPoKw%#byaeT3 za6B*pOaM+291omOV1l^gfu{&VUEjjy<8jJQei>f9?i&d_6+ASu{?4)C=fM3@o|^@C zDDae#=MSCEW&aH#-_46`g@`s>urnd;d?_!~Y_l^V?L0GsJb3j3_&vIPA~+ft3l9G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y)3;b)`sAly-EjU3$Z6-= k^fR-DPj_+uGePI470&-9a{WrZCWmU%kLtwHjD++53q}tQt^fc4 literal 0 HcmV?d00001 diff --git a/ft_bit_finder.c b/ft_bit_finder.c index 1157cfe..c8b63ca 100644 --- a/ft_bit_finder.c +++ b/ft_bit_finder.c @@ -6,18 +6,29 @@ /* By: cchauvet 0 && ((big >> i) & 1) != tofind) + while (i != 0 && ((big >> i) & 1) != tofind) i--; return (sizeof(int) * 8 - i - 1); } + + +int ft_bit_finder_right(int big, int tofind) +{ + int i; + + i = 0; + while (i != ((int) sizeof(int) * 8 - 1) && ((big << i) & 1) != tofind) + i++; + return (i); +} diff --git a/ft_bit_finder.o b/ft_bit_finder.o new file mode 100644 index 0000000000000000000000000000000000000000..ae8cc9be01b19296012b2fd7e283489d81ff1d86 GIT binary patch literal 2816 zcmbtWO>7%g5T4!jbK1DIouq*#jcOl?DvGjB(tv=PV1x{5)mEq?fC`bdw%0%4pJ1;| zK$KP_poSokf-3b!xuG8528c@|^-wr-LE@4N5J{*shs?5JoO7Zv44%>A^;0_inNkLC5U&+NBm;P2LZ! zA40g9e6V@0_1o^+j&>@!8@j%Yp3jo^ztuvY2z1{Ix-qS_?e<2pb?G@_Z3Rmn%2cCB8lR-&_W=8QQreX`*?XFr-lG;cl$IVY7aI;mW-lC^7Q z24a<5Jyxie?RqSeDOioB?ZoEiVk?b$q5ht=0>z5cpOY%tIhCpv^92Xe#XLAwstiT= zZ>yrcN1}aj0kqYycI3d&zAgL=Q^?UnLSu#(g5gi~7Z3XN6h?G>apF;EggyTS*MAEs z9~{TGrfL5K50avJ87r{dydTs&ing}7l+W~7@rd{OBB zxUS>UIx86T{u)Ui{M{bpGdde`kIU%ou0Educw7dE0eE&4nL|A4sqcOR;yMaH|c zN1H1Tqut%xX!BtrzH`XXKpE{QV18QSM?5@TJS>ya;P~exruC4}2)iE;?I(yt;rQha z1o~YhYJ9?Fd-0aU=N0~{#BVA5=MulI@Lx&Xl$!hU{MMCt_l`jBONHmYHx-`yey8x< zH!69Wjdwl?h3ECmOP<#$A%K~+(~W$}N~ddf6HLcmb->J2%Vm4dJ<+)o`tF;~-63n# zof?=myJSgRtmLX-R;rF|zI=XZy6#w+cfc%_n&p(0&El<=?+Y&#E4C!;LMm6Y%J!ZU zZDJ3{N`qN{zfAgn%lBBpyRW(66}j1e)tVGC zB*|9^ctnj|LZ8Y}_?wda*^^7A8v6=z-t)`hHzj#PCeZ&0MBx?f%3-OKs3~MdVpijF zQ(k96YVOZ^9Qi@{w`9KgkbFz#D`D`v_fUA8+?Od@A95>dIOo5?fl~ADXL<{bLGycB zZU~+W&2K+GoX_)HM^0T6QZOSoC7*xdNYvQN$PMaWko~z2^{2lEYX5hUGtRcFsIK7C f72f|$P(F#;|3~E1*-_k%T>mx!6w0F|sr~;2Foimh literal 0 HcmV?d00001 diff --git a/ft_get_bit_max.c b/ft_get_bit_max.c index 7a83f8a..58c04d4 100644 --- a/ft_get_bit_max.c +++ b/ft_get_bit_max.c @@ -6,7 +6,7 @@ /* By: cchauvet ft_bit_finder_left(max, 1)) max = tab[i]; i++; } diff --git a/ft_get_bit_max.o b/ft_get_bit_max.o new file mode 100644 index 0000000000000000000000000000000000000000..d410097444e5812abf70d02b5dc5aafa5234abc2 GIT binary patch literal 2624 zcmb_c-HRJl6hAYQJNuDtlFf?tLnNT371_yl-Gy!4ZdYV%T56HPiXb*lvXc)?CTlWD zw@Pg>RW?MVMa0MUp^rZJC<o?}5v^e2R{+(WXd8;44c`?Lvm$&Yd$1V;G*y&!|4dGwA_Rh(N@o!?` zh{zT$+_ih{ZLMSX9^dWv`(1mtWAAnCy-fS})Q7)m)7sJ4j4)z}7mmcHwIm)zw~$Pl zs|StPspuQgV~5VooH+zw2+)~2Hv zkkTbhKzomn7WeRL=(jfpsEI0~->w8`nrw(l0ZI}A5qu(M0M>F%&u^yk6~`;4T5i2j zu6d~w^VXa-H~V@sFrN5)9?^oe2n9b|bp33u>}RXarj>`ZS7@Y5wW`}l=kq0}*>e5# z!hCw8*(f!xI2%d;lszAOCkJJ~aDe}`Hzf_v1z$Y#r64oyiCPZh|-@T!ftCd|qEV#+)(%w=Ji zMKS)1FwKI9n5V@=QzXnUgnnKeHcMj6{6U<0D2^?QqdQ{E5|iYN9C_+ri^^9X7gxCjPRyRlc9ZsJ4Wt( z_Kl#X*51RmAqmP2vC7N#pG2F1LyF9Vc#4sd-b+aGs0ItNEKs@q)GP z=94TN8RjV%cANDZyZ=vk1yY+0vEud`>)bQ&ZF~DW7Py@@W z`L1>L;@WJ(ck&;DRjIV9S!aD6Uy9;B_e$AwnQ%+lLfxslN_N;<7H&c>fYrEKCH+6i zkGM{_p5(Guxj42Z!CLLSmyst<)~9q|<;gusuvUA7>MLBg()~|PYL1CGYWlDEBn5Ji zHLa)SM5Z0Kf52KQ)tBl|<;eF8lb^{z)~fHj$dAhZIFl(3p#14d)%1jJm%J z*Pr~)bbs^~$au-$L{6Rsr$f2R`+q-V1{2lyI?|)||7gVi^wz5T(>rEd=+m=w1IJJ{ hIbQBZ`IAUIKmb4CM7=w*Eph#C6F{Lj>M?cyzX3iM8*%^u literal 0 HcmV?d00001 diff --git a/ft_get_bit_min.c b/ft_get_bit_min.c new file mode 100644 index 0000000..cc3d37b --- /dev/null +++ b/ft_get_bit_min.c @@ -0,0 +1,31 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_get_bit_min.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cchauvet Z1SysLP~MP;rvO3=hoE>7jL33090o9>Kn8FXM+gVNsDEqpPn8?7HFrW!D2Qn}af-JHUU6O-aL3{*2%J$wkmMV%qePk1_|8^ zycvmorN2F4>OZ0dz;{T6U9h z`WWUgh%{v0K`sP;_J?eN@wf;MZ5v!dhe!kljHr~44S2H5UcjB$5bO7liwENRcZ}Qz zY#TyNt-X(JL*kbkVwIQeKaP6_4kkx!oEMUxW&Cu2_sf~_vjLvYS!Vn^Yr64+ z|BCD5|G=MQUdFx5_>97T%y?DdsRv28mO!3EjZRVR`iR(^A70%I=y|&(zDs5^fH>8eW}U2Dt1NYDznR z<<>mMI&)!lw&7*-AAwb=w5plx+8RC;#Y5hevgr!pwe#p*Ax_q(G+*JxO-Zm;dnAf{ux_RKU!2q&6J$sK6`v$u zjPx`J-=@;8uEb3zJsIQ|a=0;1Y(;@+_MSBAu=w^of`N6t9kuc6w+aUdJ) fFXK`EBoYr0z%RH^?~eACxc+YwKp{WsF*W`paLXIS literal 0 HcmV?d00001 diff --git a/ft_get_max.o b/ft_get_max.o new file mode 100644 index 0000000000000000000000000000000000000000..f02e5970c7dd72be1892b90cf779705c7dd1fe07 GIT binary patch literal 2816 zcmbtV-HRJl6hAYQJG)KVB%2j&t-5(w@j-U7yKV)$Ya7wnY-y_q5m9P3$xc3KKGtNi zrVHCj7piHjb{`7*4^$sY5e1?6V5NoPAK;%*SRvpF`>>!8&zU(lnT!z;56qnV`<>66 zx%cLB;>_!+qJR_yPQU<37WLR*9k-Wp2%~2z*?yF4Z|=97dk+&`ihP*ZC3`2)T}$>CDPVA!h);*=2=>Gbk*Xwl>yXWucLsPGT zlYgrlqzz_KNs49%xV>)QB zy|0@{sFHja7s}g&l+d^M*3|8mgYG)WauC^k>h_wACK#1%6d^Rocnkq&oEpkFHI&h| zfuK;~)9nsQEYseS#vq3OVw4g1*NLxBEiaJp;6i}0nlEu;va{~Mt<#et>>=u1Lf5@UK%MD*Jt zd_{~c3BO(t<7n{dFAMck;eTJKh(Nz8{QgH`O1~nePm3V>-4<$I)v>fwWYqghBz^FE zZ4}Xa<@0Wi6Tg-pp@&B0dCTrQ}3gZrI*-woz?FSOc%YMFc=sqv|`Od>% zU>s#lvvJQS?%`J$&#{($GQ@8^xGnes7!Y8rn%QO{oylhF<~kU4vz#$3vt@yit5qr{ z-W2T7u`{e z8)<%%$-_*9P}BFtE72CoKaI%S6FK~1djY)1S}L#a8))!y8FX?Nz7&Sk+q2%wP`O#e=(f1?o$1w3eS}Y6k{mDVQ9Oyn4g$D?3-9d6c7qS)Jpw2cM=8Da{{ooU BAX)$b literal 0 HcmV?d00001 diff --git a/ft_get_min.o b/ft_get_min.o new file mode 100644 index 0000000000000000000000000000000000000000..b8e0eaf4ca28ac960932b00cd5c76f584c9fe6b2 GIT binary patch literal 2808 zcmb_e-HRJl6hAYQJG)KVB%2j&ZFQqmEXdA&xP7p@)+`#EO4kP=B1+9>vy%_Zm&s&Z z3u~n-r7>Duq@Zto(}zBk`XoMBX`%QB_$L%r2)M#N1Qg;qGv{t5*N6xnm^t_NJD<68 z&n1_W7hcsh4Wwvr76wSN06lZCPPoeiMA0*yYClZ1w|ec?{)1$f3=fifl%SK`TTJdp zKA**Ps*~)cax2|V;99D)g3I*YVqhn7opPdIJK4qe_Fb)=-23%@zu)g9yBF`}BU7({ zmw&q(=NfLNc5*k>+3Iy#`@5I`+CL$?o67x6>9_C4FW%E8v}eMT!U#tnJ070UVpvDF zkc^p$qel2lXfgEcvGbEJ9Rn}~=uDlT1PCk)L2(j{@Yzr(1Ykyh9N-6h0#p^o-EBJT zuGQBKBy>r>jSKBfLR#bwz72h6(?j2T$ng-_0{TwfMH7t5E{YKvWIT<4GfoXPQBh>>4ynmux5j zrovD9UwU|ix<}D2y#d;0R6BlnZ2Sw{`4h;|LqZ!2%i-u%{pBO3o<G$NWXgSSPXB@VSj$XpWok{C0KB4*wa z(JNwXNd(P;7)L|Ed{OA1iQv0JM+D|o5ez;QC(JA2sn0Gz~4{t3R+^Af0ZNLJ;XJ&O1u@c3F-h;AUO z`C*0h|0FjtkN-T&w99tlmznkOZpRB zjM~2*Uyky3(f-k$CgbJz-$YLB2`T7tL)QuTMD=Z=ZB+eJe4u3=s!w;lTHi*_xX`bm l`WT-BNpQTZNAV;QdkElLT&R0Twrf0;cL|_S9Hmt2{{{Lk9d!Tz literal 0 HcmV?d00001 diff --git a/ft_is_sorted.c b/ft_is_sorted.c new file mode 100644 index 0000000..75c4140 --- /dev/null +++ b/ft_is_sorted.c @@ -0,0 +1,34 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_is_sorted.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cchauvet > shift != (prev >> shift) - 1) + return (0); + prev = tab[i]; + i++; + } + return (1); +} diff --git a/ft_is_sorted.o b/ft_is_sorted.o new file mode 100644 index 0000000000000000000000000000000000000000..f7818e703d707b665cebb172b417a8fba35b4908 GIT binary patch literal 2808 zcmbtV&2Jl35T9N9t@F|PBdKUZpt2}mij;MlrsB(#0CMZ5EeBAz0CN4YwpYaK$h%HU zr9hEO6>BBbT;N0j(IOF#ccbxZ0paNY#lBh$k*QZ zp62kzt&Y;p+{(I{?QA>KLEUkoow>b{*(3_#?wQS2daWC~bjk-h2)N-j_sp$dI_~0a z(!aNVZfz;g{205m2RR#=9el&qBYk|F)Xi+RZeY62t!v$G7ipBj&Fo}bH)r1ZK}jf& zMaM-b8s9$|O(KTiLrsXt~#ihJeNv;?T+pJs3!?XH~J~Mr! z={XO-JB!wweiX`1&a`uOz2O)oy$C6*Y^SRAnqjAk#cIB}VmPU}+0=5=uG;7F%h0rJ zvtk*gq-i;Qu|R-nfs-%5a>G~w6YQ#4b^!iUIk=X6v>+7a!mFU1k1LaVB12bjuOC8; z9unF{crhBktiHTgQ@=z8z~=~s;cgI&fREM!5nQ?&r2C*>w)g9o%@4H)TpF6~7u@6Ke1d$-**&(?1 zydFYNd;t5k`{17;KGsu@_bm`h;6p-ZowDy>W0E{fAPV7hwMblEGb4z3ZGxIaR!I16 z-{5$RoG22X_Dy(zHQ|ECq#oq4BpoA!-F=DpyX zkY_FNRkrH^{C&2iU-BizorIlJPUn=2cRq2afGA)Avqnax>@-?HcnfnavY#r0n9i-du)JXq- z`3|S(J)d&MDL%kINq{x&XRpwGMwmSB(l^fo**_8w_F@bjy?r2gXBm{|mU#4i@hbG> z0Bgz}tchHIu>TF#QU$pu&=JIldz`^9WFYGx_a(#!)qjP-DhE*g)W5;{ssD%~*NH<< zwm9x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Qlu@!i%X!zupUntr>TJa?SDFq%`$?K+pPnvQYV z*=&Z?9jCPuk-;}}yRD1HMsD}FuiNdmN@XXHo};trS9fDjFT}tYGHy>C z6jma2Xf!coq@w_)jbJ)DGh!v~i{Br=GznzbcN?3Otf!RW{>NhjRvRhruta|mva;=(~n6$_3@v*y`a&qGA zBx+OkaVYuob-M`JYN?T3s#Uy3wpd(po2#Cmotn(9G#g8em)#X<=E_kH1@PShELVM4 z#^dr|^3fWHX+Sbwc?yiRlregsum3#O_6TD15K#%?p+xE}^W2Ec!_&gdi+FTNBoQ0FAV%`y$OU2LMFichvQ&Zkrcx*TqW)RgtHA9rfEQ8d@NAmCdCPtmsIIDhj5BBrF1%>M6^yz zO2KfKl6CxEg>&Agm3~sg`J6nd#o==_r`bQR^hFKlI86<&DE$q^d7axze@}5<=e*KC z(r}Ldg@$9Vk(5!KZfUqaGaAnOI<4W`O8=*Nn*DLG7ra7qao#Ny>fS2Yb+7E&zPILs zU943q9(F$LoGVSg;n&%gL~5rr$fg;11%Z~Ur5f1Pn(x_F>VL)+u?_r{TPgwY_(EJPyNLK>Z8TB5J#2LP;9U~IdrIg=SRLPId1b40x zl!@rxQ~pU(LKIUAWqY3D^@lmjY(qS)z;YNwS+~viz{usSGNe8kCfz@WlfCx8ruP4# za-jWFjd?%3f9gYI!uJ71Nm=!ot1+NB=VwlRs+a#K%HRGMfBGlHvBIXmDE}}?`GRXJvq12M|2=l>h5TRu1d literal 0 HcmV?d00001 diff --git a/ft_radix.c b/ft_radix.c index 8187d8e..5bea940 100644 --- a/ft_radix.c +++ b/ft_radix.c @@ -6,7 +6,7 @@ /* By: cchauvet = 0 && !ft_is_sorted(tab_a)) { - if (((tab_a[i] >> (sizeof(int) * 8 - 1)) & 1) == 0) - ft_ra(tab_a); + if ((tab_a[i] >> (sizeof(int) * 8 -1) & 1) == 0) + ft_pb(tab_a, tab_b); else - ft_pa(tab_a, tab_b); - i++; + ft_ra(tab_a); } - while (0 < ft_tablen(tab_b)) - ft_pb(tab_b, tab_a); + while (tab_b[0] != -1) + ft_pa(tab_a, tab_b); + i = ft_tablen(tab_a); + while (--i >= 0 && !ft_is_sorted(tab_a)) + tab_a[i] = tab_a[i] << 1; } } diff --git a/ft_radix.o b/ft_radix.o new file mode 100644 index 0000000000000000000000000000000000000000..498ab77a157085cbedf78d9c59f0ed1d7d8ef4de GIT binary patch literal 3128 zcmbuBO>7%g5P)aBew!aR{z*cTQUn$%0)etl(jbM_gjA8iL`?-$p#}-LYiI4a_$Tt( zX{b~{F|Fd7Lwl&i5pkd#%84VFMD3;Jz<~<~4uFJ2(j0;WlB*)j%AH+_*?2#l8BEdB5X@UYwb??n*%;^jS(Q_eQ|0Q1A3CHV~n(=ydH{Q6^ z{FUsrCIoJ5Ot!v|0+$);TLE0ww$@`ijrpD0W~)BGGrm!K0PC^)fsY5#&vp?Dpyg`p zzP-$G(?%@ zvOhR{#2=FS6#$QluwR)Ok^RSgCwxyIe(5lP%)rCJs{;Vu$$csd08!;A$o^@c&xaKl z_;~RF=r(`SL+0H5nnjyOKvJYPNs|Jy=lZHOJC6fu%X^yFb3Jcrp%M*@-dH!zys(g} z7Aw_oICs3PIpNC8(S=JVFt7;k|#f%YIDiw4i zl1?va)fK%GnVg6$SB)j(g0^hCCXG_L0u?Ql)F4;1W+}+Qe@jfoqR^2ekuJUg(rQpT za;U5O8g9a4$mk)VO@WjC;1$nopCV67=mNhZ^1_q&mL%z+zmEoTqy4ih#g8(j$KGE# zAhF@zKUl9a$9fXXv&KToJ=TR9OCWra`IT#IV2vHku;Dp2l#tKgVzN9GWj*NDuiRqK zMp-1vx}(geWD#K898N!F45zYkCW(tA*Z|I>ILqSdbIePYvn=%XKjk?`dBRZ^Q0}r3 z%;Sx+zBPx0_gpCR(XZ>@F<9-Y1Owa+Z`)430#B14xOnYs+^ zC-??hf*ri?9>BjmfZslVKZ?BHQNMW>kj)?9{|Istx_5LT{=~aZa*QAfak`s=n|FKy1x$xK-*=(JAGF!Sn*b{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vb>*_f#@%OTg}nCbF@9n^$pOo=CHKV4oB77_LKPekkd8mIn zkM;hOz$j-cer~!Z7v&o_2wBxve5=It_%~%!>itn^RGi}PxN<5V;uk9os)FzL4mKdC zi$Vomk@4c676pQ<@hj+C2$f0=$^BR*ucRUN8di=STqEHKZmyBV;f_)XK8j8}Ij#S`iE>D<=mj{H86FVr3xK#XeZ_5T6O C%3Zkt literal 0 HcmV?d00001 diff --git a/ft_swap.o b/ft_swap.o new file mode 100644 index 0000000000000000000000000000000000000000..11076247a6fd73593c4173d1e184e80ac60a5ae3 GIT binary patch literal 2256 zcmb_dO-~bH5T19pyA%p-0Y5;EsforIWebSks8xcZQ4>w@<6!ExY+JNnw%dXxDkqc5 zMLhZo_!FLtf5G?%ym`PIi3gn7&cJq44kk|W?#%Pd%=^yH&fC75y>mlT3PcoKfgL0) zK-}1|Q=XZE7)H*|wSLaE-fYgb8XI$~vzx2Xn*D{w#%h>gE4+HwgRSt>uWC>oiw+xl zG`{~}bWjbM0Gfs5keM3MqZcEWBF9IsjsoZgXiVH11_(`cKqCgknnyv8UWr5^SWF#P z$SW%B)!y&f!N(~iG$9G7hlEs2*VdNX)^k*dsyis8tra~qSRrN56YEAR1oN3j*=;1U zMZ26&G@V*~u~JSQ8il6!jFBlFINMJn7x;rXEv9U*8v_*Su}?SVq{qZ1kY1 zTZVyznKX2BnoMOTH4V3H=XZOqAQ^(+Tity6&gbiJ>!5dF0ebsO3Eb8?(9m?s34}ww z{k`5G=Y4C`eYpIm^dlxAzCC&##68*~{21eXKHhhg;DC>(eaUW=1#&>Y{*;+ z9~Xl)L&@F{|UKZ?Z7K@3ag6 literal 0 HcmV?d00001 diff --git a/ft_tablen.o b/ft_tablen.o new file mode 100644 index 0000000000000000000000000000000000000000..30fa613bc3972407bfc870467c6b4deadfe6c762 GIT binary patch literal 2224 zcmbtV%}*0i5TCc(tw5nI;0K5?P1G1;*aBjLND!kHFldYs<7Z%7wxyxnlI|AK#E*a) z35m+Zqi6juOgwn>s7EgzylK({iHAC~eM6UZIT$B-JMZ_KueZ~A+sCP?3yKiHB4896 zh*^N2p~im9-Ht&FJ*OwuzE7+@-29ZP5<9V;+MLK-s;-W_sKuT}ky%ewS3iigRQ1QV zTCIlY?nlusjzl{(H5%X76KxkAVE{!(vLig!rACJ%rz1zZCp*t{1E?A(lA7!U2n}w7 z+F?+mqmf7iARGg7fIP1HNt@iaXhrcV`l#CtuwJ3JEa_wbbGl*9+6reunED{>g#G9fkf$15=e#PNKwZA@-> z{+N&RMrw-n=OmLO?YE_7<@eRm;OEHqvkWLo&C2h43=Q77XTL7ll=^2EfIj`?N8c2Z zuDSx6Z_3H@BWW0sg?6gX=h(AD{Cnv@@8=bcV|^Zty!ZNj2_gf0>8}A@7rl3Z@_d!? zLj*j+@6VKto1p$BB*}fE{x##`c;@LI2OTvo4|E6ZUh(_V9SEvF6i}bOmj3$JkW;5> jB~(vvZ3)jm6LfwOfBiSe`Flrx+|YLfP$-V>h`;_HLfg5= literal 0 HcmV?d00001 diff --git a/main.o b/main.o new file mode 100644 index 0000000000000000000000000000000000000000..01eaf0a87f6d85a495f43915e61a7610fe485f5f GIT binary patch literal 3128 zcmbuBU1%d!6oAjn$&9C{PSXnZX-v+a%bot>S=>Xw{bPx_&& ztu?RR_)`*DX^6G#cCPWAcK&A8aZJyd(hR3m(-v&AW*v96qHVcG*)lcTs$9}6uUasj znsyIJDd|{ZkSU3QJBAY}DXjv?G=`#MPg3OoGPqZ%hR{A|sxEN%SXcJX*T>w>zk}u2^Jj?a8V#TmZS{=8eY+Ks+gg&N^jXdP} zo#U4$(3;dwKovJnFT$v`SQ}lkt7dJqSX?r^y6KKiPK+*lwWZocW7&6uvgHD9evzs= zpqm3_aE(IV_>Y6qECGf(3Z$2x1!-kK8t#k6uHt6iiJS^ai>gNx18>NW^{eu)=mGF4 zq6plDwIoS@C;CazZ-7M->p>HsNA?v~N>XB}-q;K5kUGP9XIN~W^{G!XRh?&wT4Isw ztjA+MU=xys^7?>r{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