home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 28
/
amigaformatcd28.iso
/
-seriously_amiga-
/
graphics
/
3dto3d
/
a29.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1998-05-09
|
12KB
|
174 lines
/* COBF by BB -- obfuscated at Sat Mar 21 22:21:01 1998
*/
#include<stdio.h>
#include<stdlib.h>
#include<limits.h>
#include"cobf.h"
b l344(b);b l326(b);b*l175(l115 l62);b*l366(b*l205,l115 l62);b*l353(
l115 l337,l115 l62);e*l73(e*l330);b l43(b*l205);
l26 s j;l26 j d[3];l26 j l[4][4];b l221(d l36,j l365,j l363,j l362);b
l150(d z,d x);a l294(d z,d x);b l274(d z,d x,d l78);b l280(d z,d x,d
l78);b l276(d z,d x,j l240);j l252(d l36);b l283(d l36);j l287(d z,d x
);b l301(d z,d x,d l78);b l361(d z,d x,d l78);b l368(d z,d x,d l78);c
a l315(d k[3],j l364);j l306(d z,d x);j l358(d z,d x);b l336(d l36,a
l158);b l194(l48*l181,d l36,e l410);b l378(d z,d x,a l72,j l87);b l388
(d z,d x,d l72,j l87);b l259(d l322[3],d l346);b l372(d z,d x,l l45);
b l392(d l87,d l76);s l391(d l176,d l76,c a l72);b l373(l l45);b l402
(l l80,l l86,a l72,j l87);b l390(l l80,l l86,d l72,j l87);b l349(l l80
,l l86,l l220);b l375(l l80,l l86,l l220);j l384(l l80,l l86);b l381(
l l45,d l137,d l122,d l124,d l216);b l285(l l71);b l386(l l71,d l146);
b l374(l l71,d l146);b l369(l l71,d l146);b l389(l l45,d l137,d l122,
d l124,d l216);b l314(l l210,l l219);b l316(l l210,l l357,l l219);b
l387(l l80,l l86);c a l376(d l122);b l324(d l333,l l71,d l290);b l396
(j l67,j l187,j l133,j*l202,j*l226,j*l200);b l383(j l202,j l329,j l200
,j*l67,j*l187,j*l133);l26 l94 l237{a l74;l94 l237*l31;}l50;c a l303(c
a l352,c a l62,e*l265,c a l89);l50* *l348(c a l89);b l347(l50* *l102,
c a l89);a l343(l50* *l102,a l74,c a l129);l26 a l40[3];l26 a l52[2];
l26 l94 l247{a l74;l94 l247*l31;}l98;l53 l119{d*l177;l98* *l244;l98* *
l257;a l69;c a l118;l50* *l107;c a l138;a l163(l50* *l102,c a l129,d k
);c a l162(d k,c a l89);l37:l119(c t l114=16);~l119(b);a l113(d k);a
l91(l48*i,a l74,a l320);a l91(l48*i);l98*l359(a h);l98*l435(a h);a
l434(d k);a l217(a l77,a h);a l211(a l77,a h);a l109(d k,a g);b l180(
a h){h=h;}a l182(b){m!(l177==q||l107==q);}a l42(b){m l69;}c t l171(b);
b l153(a h,c a l158);b l137(a h,j l62);};l53 l123{l40*l168;l40*l271;a
l69;c a l118;l50* *l107;c a l138;b l215(l40 k);c a l231(l40 l88,l40
l157);l37:l123(c t l114=16);~l123(b);a l163(l50* *l102,c a l129,l40 k
);c a l162(l40 k,c a l89);a l113(a l77,a l117,a l142);a l91(l48*i,a
l74);a l91(l48*i);a l109(l40 k,a g);a l332(l40 l88,a g);a l394(c a g);
b l180(a h){h=h;}a l211(a l77,a l117,a l142,a h);a l182(b){m!(l168==q
);}a l42(b){m l69;}c t l171(b);};l53 l121{l52*l185;l52*l251;c a*l116;
a l69;c a l118;l50* *l107;c a l138;b l215(l52 k);c a l231(l52 l88,l52
l157);l37:l121(c t l114=16);~l121(b);a l163(l50* *l102,c a l129,l52 k
);c a l162(l52 k,c a l89);a l113(a l77,a l117);a l217(a l77,a h);a l91
(l48*i,a l74);a l91(l48*i);a l109(l52 l88,a g);a l340(l52 l88,a g);a
l433(a g);b l180(a h){h=h;}a l182(b){m!(l185==q);}a l42(b){m l69;}c t
l171(b);a l321(a h){m(l116[h]&(0x00000001));}b l419(a h){l116[h]|=(
0x00000001);}b l449(a h){l116[h]&=~(0x00000001);}};l119::l119(c t l114
){l69=-1;l118=0;l177=q;l107=q;l138=0;c t l514;f(l114<1)l114=1;f(l114>
l595){l385(1);}l29{l114*=2L;l514=l114* (l151(d));f(l514>(2uL*l595)){
l385(1);}l177=(d* )l175((c a)l114*l151(d));l69=0;l118=(c a)l114;l138=
(c a)(l114*7L/10L);l514=(c t)l138* (l151(l50));f(l514>(2uL*l595)){
l385(1);}l107=l348(l138);f(l107==q){l107=q;l138=0;l118=0;l385(1);}
l244=(l98* * )l175((c a)l114*l151(l98));l257=(l98* * )l175((c a)l114*
l151(l98));c a g;l41(g=0;g<l114;g++)l244[g]=q;l41(g=0;g<l114;g++)l257
[g]=q;}m;}l119::~l119(b){f(l244){l98*l403;c a g;l41(g=0;g<l118;g++){
l201(l244[g]!=q){l403=l244[g];l244[g]=l244[g]->l31;l43(l403);}}l43(
l244);}f(l257){l98*l403;c a g;l41(g=0;g<l118;g++){l201(l257[g]!=q){
l403=l257[g];l257[g]=l257[g]->l31;l43(l403);}}l43(l257);}f(l177){l69=
-1;l43(l177);l177=q;l118=0;}f(l107){l347(l107,l138);l43(l107);l107=q;
l138=0;}l244=0;l257=0;}a l119::l217(a l77,a h){l98*l513;l98*l208;c a
l824;f(l69==-1)m-1;f(h>(l69-1))m-1;l824=0;f(l244)l41(l208=l244[h];
l208!=q;l208=l208->l31){f(l208->l74==l77){l824=1;l34;}}f(!l824&&l244){
l513=(l98* )l175(l151(l98));l513->l74=l77;l513->l31=l244[h];l244[h]=
l513;}m 1;}l98*l119::l359(a h){f(l69==-1)m q;f(h>(l69-1))m q;f(!l244)m
q;m l244[h];}a l119::l211(a l77,a h){l98*l513;l98*l208;c a l518;f(l69
==-1)m-1;f(h>(l69-1))m-1;l518=0;f(l257)l41(l208=l257[h];l208!=q;l208=
l208->l31){f(l208->l74==l77){l518=1;l34;}}f(!l518&&l257){l513=(l98* )l175
(l151(l98));l513->l74=l77;l513->l31=l257[h];l257[h]=l513;}m 1;}l98*
l119::l435(a h){f(l69==-1)m q;f(h>(l69-1))m q;f(!l257)m q;m l257[h];}
a l119::l163(l50* *l102,c a l129,d k){l50*l208;f(!l177)m-1;l41(l208=
l102[l129];l208!=q;l208=l208->l31){f(l294(l177[l208->l74],k))l34;}f(
l208!=q)m(l208->l74);l29 m(-1);}c a l119::l162(d k,c a l89){c a l447=
0;c a l823=l151(j);l447=l303(l447,l823,(e* )&k[0],l89);l447=l303(l447
,l823,(e* )&k[1],l89);l447=l303(l447,l823,(e* )&k[2],l89);m l447;}a
l119::l434(d k){c a l517;f(l69==-1)m-1;l517=l162(k,l138);m l163(l107,
l517,k);}a l119::l113(d k){a l74;c a l517;c a l114=(10);l74=-1;f(l69
==-1)m-1;f(!l177)m-1;l517=l162(k,l138);l74=l163(l107,l517,k);f(l74==-
1){f(l69>=(a)l118){l177=(d* )l591(l177,(l118+(c a)l114) *l151(d));f(
l177==q){l118=0;l385(1);}l29{l118+=(c a)l114;}l244=(l98* * )l591(l244
,(l118+(c a)l114) *l151(l98));f(l244==q){l385(1);}l257=(l98* * )l591(
l257,(l118+(c a)l114) *l151(l98));f(l257==q){l385(1);}c a g;l41(g=(
l118-l114);g<l118;g++){l244[g]=q;l257[g]=q;}}l150(l177[l69],k);l343(
l107,l69,l517);l74=l69;l69++;}m l74;}a l119::l91(l48*i,a l74,a l320){
f(l69==-1)m-1;f(l74<0)m-1;f(l74>=l69)m-1;f(!l177)m-1;l194(i,l177[l74]
,(e)l320);m 0;}a l119::l91(l48*i){c a g;f(l69==-1)m-1;l41(g=0;g<(c a)l69
;g++){l91(i,(a)g,0);o(i,"\n");}m 0;}a l119::l109(d k,a h){f(l69==-1)m
-1;f(h>(l69-1))m-1;f(!l177)m-1;k[0]=l177[h][0];k[1]=l177[h][1];k[2]=
l177[h][2];m 0;}c t l119::l171(b){c t l62;c t l49;l98*l403=0;l50*l81;
c a g;f(l244==q)m 0L;f(l107==q)m 0L;l62=l151(l119);l62+=(c t)l118*
l151(d);l49=0;l41(g=0;g<l118;g++){l49+=l151(l98);l403=l244[g];l201(
l403!=q){l403=l403->l31;l49+=l151(l98);}}l62+=l49;l49=0;l41(g=0;g<
l118;g++){l49+=l151(l98);l403=l244[g];l201(l403!=q){l403=l403->l31;
l49+=l151(l98);}}l62+=l49;l49=0;l41(g=0;g<l138;g++){l49+=l151(l50);
l81=l107[g];l201(l81!=q){l81=l81->l31;l49+=l151(l50);}}l62+=l49;m l62
;}b l119::l153(a h,c a l158){f(l177)l336(l177[h],(a)l158);}b l119::
l137(a h,j l62){f(l177)l276(l177[h],l177[h],l62);}l123::l123(c t l114
){l69=-1;l118=0;l168=q;c t l514;f(l114<1)l114=1;f(l114>l595){l385(1);
}l29{l514=l114*l151(l40);f(l514>(2uL*l595)){l385(1);}l168=(l40* )l175
((c a)l114*l151(l40));l69=0;l118=(c a)l114;l138=(c a)(l114*2L);l514=(
c t)l138* (l151(l50));f(l514>(2uL*l595)){l385(1);}l107=l348(l138);f(
l107==q){l107=q;l138=0;l385(1);}l271=(l40* )l175((c a)l114*l151(l40));
}m;}l123::~l123(b){f(l168){l69=-1;l43(l168);l168=q;l118=0;}f(l107){
l347(l107,l138);l43(l107);l107=q;l138=0;}f(l271)l43(l271);l271=0;}a
l123::l91(l48*i,a l74){f(l69==-1)m-1;f(l74<0)m-1;f(l74>=l69)m-1;f(
l168==q)m-1;o(i,"\x25\x64\x20\x25\x64\x20\x25\x64",l168[l74][0],l168[
l74][1],l168[l74][2]);m 0;}a l123::l91(l48*i){a g;f(l69==-1)m-1;l41(g
=0;g<l69;g++){l91(i,g);o(i,"\n");}m 0;}a l123::l163(l50* *l102,c a
l129,l40 k){l50*l208;f(l168==q)m-1;l41(l208=l102[l129];l208!=q;l208=
l208->l31){f(l231(l168[l208->l74],k))l34;}f(l208!=q)m(l208->l74);l29 m
(-1);}c a l123::l162(l40 k,c a l89){c a l447=0;l447=l303(l447,l151(a),
(e* )&k[0],l89);l447=l303(l447,l151(a),(e* )&k[1],l89);l447=l303(l447
,l151(a),(e* )&k[2],l89);m l447;}a l123::l113(a l77,a l117,a l142){a
l74;c a l517;l40 l512;c a l114=(10);l512[0]=l77;l512[1]=l117;l512[2]=
l142;l215(l512);l74=-1;f(l69==-1)m-1;f(l168==q)m-1;l517=l162(l512,
l138);l74=l163(l107,l517,l512);f(l74==-1){f(l69>=(a)l118){l168=(l40* )l591
(l168,(l118+(c a)l114) *l151(l40));f(l168==q){l118=0;l385(1);}l29{
l118+=(c a)l114;}l271=(l40* )l591(l271,(l118+(c a)l114) *l151(l40));f
(l271==q){l385(1);}}l168[l69][0]=l77;l168[l69][1]=l117;l168[l69][2]=
l142;l343(l107,l69,l517);l74=l69;l69++;}m l74;}a l123::l211(a l77,a
l117,a l142,a h){f(l69==-1)m-1;f(h>(l69-1))m-1;f(l271==q)m-1;l271[h][
0]=l77;l271[h][1]=l117;l271[h][2]=l142;m 1;}a l123::l394(c a g){a l49
;f(l69==-1)m-1;f(l168==q)m-1;l49=l168[g][0];l168[g][0]=l168[g][1];
l168[g][1]=l49;m 0;}a l123::l109(l40 l88,a g){f(l69==-1)m-1;f(l168==q
)m-1;l88[0]=l168[g][0];l88[1]=l168[g][1];l88[2]=l168[g][2];m 0;}a l123
::l332(l40 l88,a g){f(l69==-1)m-1;f(l271==q)m-1;l88[0]=l271[g][0];l88
[1]=l271[g][1];l88[2]=l271[g][2];m 0;}b l123::l215(l40 k){a l49;f(k[0
]>k[1]){l49=k[0];k[0]=k[1];k[1]=l49;}f(k[1]>k[2]){l49=k[1];k[1]=k[2];
k[2]=l49;}f(k[0]>k[1]){l49=k[0];k[0]=k[1];k[1]=l49;}}c a l123::l231(
l40 l88,l40 l157){l40 l117,l142;l117[0]=l88[0];l117[1]=l88[1];l117[2]
=l88[2];l142[0]=l157[0];l142[1]=l157[1];l142[2]=l157[2];l215(l117);
l215(l142);f((l117[0]==l142[0])&&(l117[1]==l142[1])&&(l117[2]==l142[2
]))m(1);m(0);}c t l123::l171(b){c t l62;c t l49;l50*l81;c a g;f(l107
==q)m 0L;l62=l151(l123);l62+=(c t)l118*l151(l40);l62+=(c t)l118*l151(
l271);l49=0;l41(g=0;g<l138;g++){l49+=l151(l50);l81=l107[g];l201(l81!=
q){l81=l81->l31;l49+=l151(l50);}}l62+=l49;m l62;}l121::l121(c t l114){
l69=-1;l118=0;l185=q;l116=q;c t l514;f(l114<1)l114=1;f(l114>l595){
l385(1);}l29{l114*=3L;l514=l114*l151(l52);f(l514>(2uL*l595)){l385(1);
}l185=(l52* )l175((c a)l114*l151(l52));l69=0;l118=(c a)l114;l138=(c a
)(l114);l514=(c t)l138* (l151(l50));f(l514>(2uL*l595)){l385(1);}l107=
l348(l138);f(l107==q){l107=q;l138=0;l385(1);}l251=(l52* )l175((c a)l114
*l151(l52));c a g;l41(g=0;g<l118;g++){l251[g][0]=-1;l251[g][1]=-1;}
l116=(c a* )l175((c a)l114*l151(c a));l41(g=0;g<l118;g++)l116[g]=
0x00000000;}m;}l121::~l121(b){f(l185){l69=-1;l43(l185);l185=q;l118=0;
}f(l107){l347(l107,l138);l43(l107);l107=q;l138=0;}f(l251)l43(l251);
l251=0;f(l116)l43(l116);l116=0;}a l121::l91(l48*i,a l74){f(l69==-1)m-
1;f(l74<0)m-1;f(l74>=l69)m-1;f(l185==q)m-1;o(i,"\x25\x64\x20\x25\x64"
,l185[l74][0],l185[l74][1]);m 0;}a l121::l91(l48*i){a g;f(l69==-1)m-1
;l41(g=0;g<l69;g++){l91(i,g);o(i,"\n");}m 0;}a l121::l163(l50* *l102,
c a l129,l52 k){l50*l208;f(l185==q)m-1;l41(l208=l102[l129];l208!=q;
l208=l208->l31){f(l231(l185[l208->l74],k))l34;}f(l208!=q)m(l208->l74);
l29 m(-1);}c a l121::l162(l52 k,c a l89){c a l447=0;l447=l303(l447,
l151(a),(e* )&k[0],l89);l447=l303(l447,l151(a),(e* )&k[1],l89);m l447
;}a l121::l113(a l77,a l117){a l74;l52 l682;c a l517;c a l114=(10);
l682[0]=l77;l682[1]=l117;l215(l682);l74=-1;f(l69==-1)m-1;f(l185==q)m-
1;l517=l162(l682,l138);l74=l163(l107,l517,l682);f(l74==-1){f(l69>=(a)l118
){l185=(l52* )l591(l185,(l118+(c a)l114) *l151(l52));f(l185==q){l118=
0;l385(1);}l29{l118+=(c a)l114;}l251=(l52* )l591(l251,(l118+(c a)l114
) *l151(l52));f(l251==q){l385(1);}l29{c a g;l41(g=(l118-l114);g<l118;
g++){l251[g][0]=-1;l251[g][1]=-1;}}l116=(c a* )l591(l116,(l118+(c a)l114
) *l151(c a));f(l116==q){l385(1);}l29{c a g;l41(g=(l118-l114);g<l118;
g++)l116[g]=0;}}l185[l69][0]=l77;l185[l69][1]=l117;l343(l107,l69,l517
);l74=l69;l69++;}m l74;}a l121::l433(a g){f(l251==q)m-1;m(l251[g][1]
!=-1);}a l121::l217(a l77,a h){f(l69==-1)m-1;f(h>(l69-1))m-1;f(l251==
q)m-1;f(l251[h][0]==-1)l251[h][0]=l77;l29 l251[h][1]=l77;m 1;}a l121
::l109(l52 l88,a g){f(l69==-1)m-1;f(l185==q)m-1;l88[0]=l185[g][0];l88
[1]=l185[g][1];m 0;}a l121::l340(l52 l88,a g){f(l69==-1)m-1;f(l251==q
)m-1;l88[0]=l251[g][0];l88[1]=l251[g][1];m 0;}b l121::l215(l52 k){a
l49;f(k[0]>k[1]){l49=k[0];k[0]=k[1];k[1]=l49;}}c a l121::l231(l52 l88
,l52 l157){l52 l117,l142;l117[0]=l88[0];l117[1]=l88[1];l142[0]=l157[0
];l142[1]=l157[1];l215(l117);l215(l142);f((l117[0]==l142[0])&&(l117[1
]==l142[1]))m(1);m(0);}c t l121::l171(b){c t l62;c t l49;l50*l81;c a g
;f(l107==q)m 0L;l62=l151(l121);l62+=(c t)l118*l151(l185);l62+=(c t)l118
*l151(l251);l49=0;l41(g=0;g<l138;g++){l49+=l151(l50);l81=l107[g];
l201(l81!=q){l81=l81->l31;l49+=l151(l50);}}l62+=l49;m l62;}