goinfre/crap/bf2c-optimized.sed
goinfre/crap/bf2c-optimized.sed
_____________________________________________________________________________
/ / Index / Goinfre / Resume / Links / Contact / Sitemap / .: v0.6.1.0 |^|
|\__/-------+ +--------+-------+---------+---------+-----------------+#|
| 1| /goinfre/crap/bf2c-optimized.sed |#|
| 2| ========================================== |#|
| 3| |#|
| 4| [ raw ] [ download ] |#|
| 5| ` `` ````````````````````` |#|
| 6| |#|
| 7| #!/usr/bin/sed -f |#|
| 8| s/\([+-]\)/\1\1*p;/g |#|
| 9| s/\./P(*p);/g |#|
| 10| s/,/*p=getchar();/g |#|
| 11| s/\[/while(*p){/g |#|
| 12| s/\]/}/g |#|
| 13| s/>/p++;/g |#|
| 14| s/</p--;/g |#|
| 15| |#|
| 16| s/\(\([-+]\)\{2\}\*p;\)\{15\}/*p\2=15;/g |#|
| 17| s/\(\([-+]\)\{2\}\*p;\)\{10\}/*p\2=10;/g |#|
| 18| s/\(\([-+]\)\{2\}\*p;\)\{9\}/*p\2=9;/g |#|
| 19| s/\(\([-+]\)\{2\}\*p;\)\{8\}/*p\2=8;/g |#|
| 20| s/\(\([-+]\)\{2\}\*p;\)\{7\}/*p\2=7;/g |#|
| 21| s/\(\([-+]\)\{2\}\*p;\)\{6\}/*p\2=6;/g |#|
| 22| s/\(\([-+]\)\{2\}\*p;\)\{5\}/*p\2=5;/g |#|
| 23| s/\(\([-+]\)\{2\}\*p;\)\{4\}/*p\2=4;/g |#|
| 24| s/\(\([-+]\)\{2\}\*p;\)\{3\}/*p\2=3;/g |#|
| 25| s/\(\([-+]\)\{2\}\*p;\)\{2\}/*p\2=2;/g |#|
| 26| |#|
| 27| s/\(p\([-+]\)\{2\};\)\{6\}/p-=6;/g |#|
| 28| s/\(p\([-+]\)\{2\};\)\{5\}/p-=5;/g | |
| 29| s/\(p\([-+]\)\{2\};\)\{4\}/p-=4;/g | |
| 30| s/\(p\([-+]\)\{2\};\)\{3\}/p-=3;/g | |
| 31| s/\(p\([-+]\)\{2\};\)\{2\}/p-=2;/g | |
| 32| | |
| 33| s/p\([-+]\)\{2\};\*p/*(\1\1p)/g | |
| 34| s/p\([-+]\)\{2\};\([-+]\)\{2\}\*p/\1\1*(\2\2p)/g | |
| 35| | |
| 36| $s/$/}/ | |
| 37| 1s/^/#include <stdlib.h>\ | |
| 38| #define P(c) putchar(c)\ | |
| 39| int main(){unsigned char *p=calloc(1, 65536);/ | |
| 40| | |
+---+ | |
\_ \______ mo5.so - normal - 1337.so - rev.so - video_r.so +---------------+ |
|__ \_____ plain.so - color.so - comment.so / moul 2008 (c) |V|
\-----\______\________________________________________/-----------------+-+