home *** CD-ROM | disk | FTP | other *** search
- /* ANSI C code generated by SmallEiffel. */
- /*
- -- SmallEiffel -- Release (- 0.97) -- FRANCE
- -- Copyright (C), 1994 - Dominique COLNET and Suzanne COLLIN
- -- University Henri Poincare' - Nancy 1 - email colnet@loria.fr
- -- CRIN (Centre de Recherche en Informatique de Nancy)
- -- FRANCE
- */
- #include "compile_to_c.h"
- void rT275clear(T275 *C){
- C->_upper=((C)->_lower)-(1);
- }
- void rT275clear_all(T275 *C){
- T0 * _value=NULL;
- rT275set_all_with(C,_value);
- }
- int rT275count(T275 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT275set_all_with(T275 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT275put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT275resize(T275 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T275 *n=((T275*)new(275));
- rT275make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T275*)_other)->_lower);
- _up=rT2min((C)->_upper,((T275*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT275put((T275*)_other,rT275item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- int rT275fast_index_of(T275 *C,T0 * a1){
- int R=0;
- R=(C)->_lower;
- while (!(((R)>((C)->_upper))||(((T0 *)a1)==((T0 *)rT275item(C,R))))) {
- R=(R)+(1);
- }
- return R;
- }
- int rT275fast_has(T275 *C,T0 * a1){
- int R=0;
- R=(rT275fast_index_of(C,a1))!=(((C)->_upper)+(1));
- return R;
- }
- int rT275empty(T275 *C){
- int R=0;
- R=(rT275count(C))==(0);
- return R;
- }
- T0 * rT275item(T275 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT275add_last(T275 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT275count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT275put(C,a1,(C)->_upper);
- }
- void rT275put(T275 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT275copy(T275 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT275make(C,((T275*)a1)->_lower,((T275*)a1)->_upper);
- }
- else {
- rT275resize(C,((T275*)a1)->_lower,((T275*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT275put(C,rT275item((T275*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT275make(T275 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT275clear_all(C);
- }
- /*FI*/}
- void rT274clear_all(T274 *C){
- T0 * _value=NULL;
- rT274set_all_with(C,_value);
- }
- int rT274count(T274 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT274set_all_with(T274 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT274put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- int rT274fast_has(T274 *C,T0 * a1){
- int R=0;
- R=(rT274fast_index_of(C,a1))!=(((C)->_upper)+(1));
- return R;
- }
- int rT274fast_index_of(T274 *C,T0 * a1){
- int R=0;
- R=(C)->_lower;
- while (!(((R)>((C)->_upper))||(((T0 *)a1)==((T0 *)rT274item(C,R))))) {
- R=(R)+(1);
- }
- return R;
- }
- void rT274resize(T274 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T274 *n=((T274*)new(274));
- rT274make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T274*)_other)->_lower);
- _up=rT2min((C)->_upper,((T274*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT274put((T274*)_other,rT274item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- void rT274force(T274 *C,T0 * a1,int a2){
- /*IF*/if (((C)->_upper)<(a2)) {
- rT274resize(C,(C)->_lower,a2);
- }
- else if ((a2)<((C)->_lower)) {
- rT274resize(C,a2,(C)->_upper);
- }
- /*FI*/rT274put(C,a1,a2);
- }
- T0 * rT274item(T274 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT274add_last(T274 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT274count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT274put(C,a1,(C)->_upper);
- }
- void rT274put(T274 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT274copy(T274 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT274make(C,((T274*)a1)->_lower,((T274*)a1)->_upper);
- }
- else {
- rT274resize(C,((T274*)a1)->_lower,((T274*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT274put(C,rT274item((T274*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT274make(T274 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT274clear_all(C);
- }
- /*FI*/}
- void rT272clear_all(T272 *C){
- T0 * _value=NULL;
- rT272set_all_with(C,_value);
- }
- void rT272set_all_with(T272 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT272put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT272resize(T272 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T272 *n=((T272*)new(272));
- rT272make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T272*)_other)->_lower);
- _up=rT2min((C)->_upper,((T272*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT272put((T272*)_other,rT272item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT272item(T272 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT272put(T272 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT272copy(T272 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT272make(C,((T272*)a1)->_lower,((T272*)a1)->_upper);
- }
- else {
- rT272resize(C,((T272*)a1)->_lower,((T272*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT272put(C,rT272item((T272*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT272make(T272 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT272clear_all(C);
- }
- /*FI*/}
- void rT271clear_all(T271 *C){
- T0 * _value=NULL;
- rT271set_all_with(C,_value);
- }
- int rT271count(T271 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT271set_all_with(T271 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT271put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT271resize(T271 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T271 *n=((T271*)new(271));
- rT271make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T271*)_other)->_lower);
- _up=rT2min((C)->_upper,((T271*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT271put((T271*)_other,rT271item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT271item(T271 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT271add_last(T271 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT271count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT271put(C,a1,(C)->_upper);
- }
- void rT271put(T271 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT271copy(T271 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT271make(C,((T271*)a1)->_lower,((T271*)a1)->_upper);
- }
- else {
- rT271resize(C,((T271*)a1)->_lower,((T271*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT271put(C,rT271item((T271*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT271make(T271 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT271clear_all(C);
- }
- /*FI*/}
- void rT270clear_all(T270 *C){
- T0* _value=NULL;
- rT270set_all_with(C,_value);
- }
- void rT270set_all_with(T270 *C,T0* a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT270put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT270resize(T270 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T270 *n=((T270*)new(270));
- rT270make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T270*)_other)->_lower);
- _up=rT2min((C)->_upper,((T270*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT270put((T270*)_other,rT270item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0* rT270item(T270 *C,int a1){
- T0* R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT270force(T270 *C,T0* a1,int a2){
- /*IF*/if (((C)->_upper)<(a2)) {
- rT270resize(C,(C)->_lower,a2);
- }
- else if ((a2)<((C)->_lower)) {
- rT270resize(C,a2,(C)->_upper);
- }
- /*FI*/rT270put(C,a1,a2);
- }
- int rT270valid_index(T270 *C,int a1){
- int R=0;
- R=(((C)->_lower)<=(a1))&&((a1)<=((C)->_upper));
- return R;
- }
- void rT270put(T270 *C,T0* a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT270copy(T270 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT270make(C,((T270*)a1)->_lower,((T270*)a1)->_upper);
- }
- else {
- rT270resize(C,((T270*)a1)->_lower,((T270*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT270put(C,rT270item((T270*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT270make(T270 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT270clear_all(C);
- }
- /*FI*/}
- void rT268clear(T268 *C){
- C->_upper=((C)->_lower)-(1);
- }
- void rT268clear_all(T268 *C){
- T0 * _value=NULL;
- rT268set_all_with(C,_value);
- }
- T0 * rT268first(T268 *C){
- T0 * R=NULL;
- R=rT268item(C,(C)->_lower);
- return R;
- }
- int rT268count(T268 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT268set_all_with(T268 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT268put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT268resize(T268 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T268 *n=((T268*)new(268));
- rT268make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T268*)_other)->_lower);
- _up=rT2min((C)->_upper,((T268*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT268put((T268*)_other,rT268item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- int rT268fast_index_of(T268 *C,T0 * a1){
- int R=0;
- R=(C)->_lower;
- while (!(((R)>((C)->_upper))||(((T0 *)a1)==((T0 *)rT268item(C,R))))) {
- R=(R)+(1);
- }
- return R;
- }
- int rT268fast_has(T268 *C,T0 * a1){
- int R=0;
- R=(rT268fast_index_of(C,a1))!=(((C)->_upper)+(1));
- return R;
- }
- int rT268empty(T268 *C){
- int R=0;
- R=(rT268count(C))==(0);
- return R;
- }
- T0 * rT268item(T268 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT268add_last(T268 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT268count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT268put(C,a1,(C)->_upper);
- }
- void rT268put(T268 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT268copy(T268 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT268make(C,((T268*)a1)->_lower,((T268*)a1)->_upper);
- }
- else {
- rT268resize(C,((T268*)a1)->_lower,((T268*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT268put(C,rT268item((T268*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT268make(T268 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT268clear_all(C);
- }
- /*FI*/}
- void rT265clear_all(T265 *C){
- T0 * _value=NULL;
- rT265set_all_with(C,_value);
- }
- int rT265count(T265 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT265set_all_with(T265 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT265put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- int rT265fast_index_of(T265 *C,T0 * a1){
- int R=0;
- R=(C)->_lower;
- while (!(((R)>((C)->_upper))||(((T0 *)a1)==((T0 *)rT265item(C,R))))) {
- R=(R)+(1);
- }
- return R;
- }
- int rT265fast_has(T265 *C,T0 * a1){
- int R=0;
- R=(rT265fast_index_of(C,a1))!=(((C)->_upper)+(1));
- return R;
- }
- void rT265resize(T265 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T265 *n=((T265*)new(265));
- rT265make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,XrT265lower(_other));
- _up=rT2min((C)->_upper,XrT265upper(_other));
- while (!((_i)>(_up))) {
- XrT265put(_other,rT265item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT265item(T265 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT265force(T265 *C,T0 * a1,int a2){
- /*IF*/if (((C)->_upper)<(a2)) {
- rT265resize(C,(C)->_lower,a2);
- }
- else if ((a2)<((C)->_lower)) {
- rT265resize(C,a2,(C)->_upper);
- }
- /*FI*/rT265put(C,a1,a2);
- }
- void rT265add_last(T265 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT265count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT265put(C,a1,(C)->_upper);
- }
- void rT265put(T265 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT265copy(T265 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT265make(C,XrT265lower(a1),XrT265upper(a1));
- }
- else {
- rT265resize(C,XrT265lower(a1),XrT265upper(a1));
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT265put(C,XrT265item(a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT265make(T265 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT265clear_all(C);
- }
- /*FI*/}
- void rT263clear_all(T263 *C){
- T0 * _value=NULL;
- rT263set_all_with(C,_value);
- }
- T0 * rT263first(T263 *C){
- T0 * R=NULL;
- R=rT263item(C,(C)->_lower);
- return R;
- }
- int rT263count(T263 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT263set_all_with(T263 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT263put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- int rT263fast_index_of(T263 *C,T0 * a1){
- int R=0;
- R=(C)->_lower;
- while (!(((R)>((C)->_upper))||(((T0 *)a1)==((T0 *)rT263item(C,R))))) {
- R=(R)+(1);
- }
- return R;
- }
- int rT263fast_has(T263 *C,T0 * a1){
- int R=0;
- R=(rT263fast_index_of(C,a1))!=(((C)->_upper)+(1));
- return R;
- }
- void rT263resize(T263 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T263 *n=((T263*)new(263));
- rT263make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T263*)_other)->_lower);
- _up=rT2min((C)->_upper,((T263*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT263put((T263*)_other,rT263item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- int rT263empty(T263 *C){
- int R=0;
- R=(rT263count(C))==(0);
- return R;
- }
- T0 * rT263item(T263 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT263add_last(T263 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT263count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT263put(C,a1,(C)->_upper);
- }
- void rT263put(T263 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT263copy(T263 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT263make(C,((T263*)a1)->_lower,((T263*)a1)->_upper);
- }
- else {
- rT263resize(C,((T263*)a1)->_lower,((T263*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT263put(C,rT263item((T263*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT263swap(T263 *C,int a1,int a2){
- T0 * _tmp=NULL;
- _tmp=rT263item(C,a1);
- rT263put(C,rT263item(C,a2),a1);
- rT263put(C,_tmp,a2);
- }
- void rT263make(T263 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT263clear_all(C);
- }
- /*FI*/}
- void rT258clear_all(T258 *C){
- T0 * _value=NULL;
- rT258set_all_with(C,_value);
- }
- int rT258count(T258 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT258set_all_with(T258 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT258put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT258resize(T258 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T258 *n=((T258*)new(258));
- rT258make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T258*)_other)->_lower);
- _up=rT2min((C)->_upper,((T258*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT258put((T258*)_other,rT258item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT258item(T258 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT258add_last(T258 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT258count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT258put(C,a1,(C)->_upper);
- }
- void rT258put(T258 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT258copy(T258 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT258make(C,((T258*)a1)->_lower,((T258*)a1)->_upper);
- }
- else {
- rT258resize(C,((T258*)a1)->_lower,((T258*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT258put(C,rT258item((T258*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT258make(T258 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT258clear_all(C);
- }
- /*FI*/}
- void rT234clear_all(T234 *C){
- T0 * _value=NULL;
- rT234set_all_with(C,_value);
- }
- int rT234count(T234 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT234set_all_with(T234 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT234put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT234resize(T234 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T234 *n=((T234*)new(234));
- rT234make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T234*)_other)->_lower);
- _up=rT2min((C)->_upper,((T234*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT234put((T234*)_other,rT234item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT234item(T234 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT234add_last(T234 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT234count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT234put(C,a1,(C)->_upper);
- }
- void rT234put(T234 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT234copy(T234 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT234make(C,((T234*)a1)->_lower,((T234*)a1)->_upper);
- }
- else {
- rT234resize(C,((T234*)a1)->_lower,((T234*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT234put(C,rT234item((T234*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT234make(T234 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT234clear_all(C);
- }
- /*FI*/}
- void rT232clear_all(T232 *C){
- T0 * _value=NULL;
- rT232set_all_with(C,_value);
- }
- T0 * rT232first(T232 *C){
- T0 * R=NULL;
- R=rT232item(C,(C)->_lower);
- return R;
- }
- int rT232count(T232 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT232set_all_with(T232 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT232put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT232resize(T232 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T232 *n=((T232*)new(232));
- rT232make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T232*)_other)->_lower);
- _up=rT2min((C)->_upper,((T232*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT232put((T232*)_other,rT232item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT232item(T232 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT232add_last(T232 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT232count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT232put(C,a1,(C)->_upper);
- }
- void rT232put(T232 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT232copy(T232 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT232make(C,((T232*)a1)->_lower,((T232*)a1)->_upper);
- }
- else {
- rT232resize(C,((T232*)a1)->_lower,((T232*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT232put(C,rT232item((T232*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT232make(T232 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT232clear_all(C);
- }
- /*FI*/}
- void rT229clear_all(T229 *C){
- T0 * _value=NULL;
- rT229set_all_with(C,_value);
- }
- int rT229count(T229 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT229set_all_with(T229 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT229put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT229resize(T229 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T229 *n=((T229*)new(229));
- rT229make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T229*)_other)->_lower);
- _up=rT2min((C)->_upper,((T229*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT229put((T229*)_other,rT229item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT229item(T229 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT229add_last(T229 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT229count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT229put(C,a1,(C)->_upper);
- }
- void rT229put(T229 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT229copy(T229 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT229make(C,((T229*)a1)->_lower,((T229*)a1)->_upper);
- }
- else {
- rT229resize(C,((T229*)a1)->_lower,((T229*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT229put(C,rT229item((T229*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT229make(T229 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT229clear_all(C);
- }
- /*FI*/}
- void rT223clear_all(T223 *C){
- T0 * _value=NULL;
- rT223set_all_with(C,_value);
- }
- int rT223count(T223 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT223set_all_with(T223 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT223put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT223resize(T223 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T223 *n=((T223*)new(223));
- rT223make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T223*)_other)->_lower);
- _up=rT2min((C)->_upper,((T223*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT223put((T223*)_other,rT223item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT223item(T223 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT223add_last(T223 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT223count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT223put(C,a1,(C)->_upper);
- }
- void rT223put(T223 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT223copy(T223 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT223make(C,((T223*)a1)->_lower,((T223*)a1)->_upper);
- }
- else {
- rT223resize(C,((T223*)a1)->_lower,((T223*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT223put(C,rT223item((T223*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT223make(T223 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT223clear_all(C);
- }
- /*FI*/}
- void rT217clear_all(T217 *C){
- T0 * _value=NULL;
- rT217set_all_with(C,_value);
- }
- T0 * rT217first(T217 *C){
- T0 * R=NULL;
- R=rT217item(C,(C)->_lower);
- return R;
- }
- int rT217count(T217 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT217set_all_with(T217 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT217put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT217resize(T217 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T217 *n=((T217*)new(217));
- rT217make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T217*)_other)->_lower);
- _up=rT2min((C)->_upper,((T217*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT217put((T217*)_other,rT217item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT217item(T217 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
- void rT217add_last(T217 *C,T0 * a1){
- /*IF*/if (((C)->_capacity)<((rT217count(C))+(1))) {
- C->_capacity=((C)->_capacity)+(16);
- /*IF*/if (((C)->_capacity)==(16)) {
- C->_storage=malloc(16*sizeof(*(C->_storage)));
- }
- else {
- C->_storage=realloc(C->_storage,((C->_capacity)*sizeof(*(C->_storage))));
- }
- /*FI*/}
- /*FI*/C->_upper=((C)->_upper)+(1);
- rT217put(C,a1,(C)->_upper);
- }
- void rT217put(T217 *C,T0 * a1,int a2){
- (C->_storage)[a2-(C->_lower)]=a1;
- }
- void rT217copy(T217 *C,T0* a1){
- int _i=0;
- C->_upper=((C)->_lower)-(1);
- /*IF*/if (((C)->_capacity)==(0)) {
- rT217make(C,((T217*)a1)->_lower,((T217*)a1)->_upper);
- }
- else {
- rT217resize(C,((T217*)a1)->_lower,((T217*)a1)->_upper);
- }
- /*FI*/_i=(C)->_lower;
- while (!((_i)>((C)->_upper))) {
- rT217put(C,rT217item((T217*)a1,_i),_i);
- _i=(_i)+(1);
- }
- }
- void rT217make(T217 *C,int a1,int a2){
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/C->_lower=a1;
- C->_upper=a2;
- C->_capacity=(((C)->_upper)-((C)->_lower))+(1);
- C->_storage=NULL;
- /*IF*/if (((C)->_capacity)>(0)) {
- C->_capacity=((C)->_capacity)+(16);
- C->_storage=malloc((size_t)((C->_capacity)*sizeof(*(C->_storage))));
- rT217clear_all(C);
- }
- /*FI*/}
- void rT96clear_all(T96 *C){
- T0 * _value=NULL;
- rT96set_all_with(C,_value);
- }
- int rT96count(T96 *C){
- int R=0;
- R=(((C)->_upper)-((C)->_lower))+(1);
- return R;
- }
- void rT96set_all_with(T96 *C,T0 * a1){
- int _i=0;
- _i=(C)->_upper;
- while (!((_i)<((C)->_lower))) {
- rT96put(C,a1,_i);
- _i=(_i)-(1);
- }
- }
- void rT96resize(T96 *C,int a1,int a2){
- int _up=0;
- int _i=0;
- T0* _other=NULL;
- {T96 *n=((T96*)new(96));
- rT96make(n,a1,a2);
- _other=(T0 *)n;}
- _i=rT2max((C)->_lower,((T96*)_other)->_lower);
- _up=rT2min((C)->_upper,((T96*)_other)->_upper);
- while (!((_i)>(_up))) {
- rT96put((T96*)_other,rT96item(C,_i),_i);
- _i=(_i)+(1);
- }
- /*IF*/{/*AT*/free(C->_storage);
- }
- /*FI*/memcpy(C,_other,sizeof(*C));free(_other);
- }
- T0 * rT96item(T96 *C,int a1){
- T0 * R=NULL;
- R=(C->_storage)[a1-(C->_lower)];
- return R;
- }
-