home *** CD-ROM | disk | FTP | other *** search
- /*
- -- ANSI C code generated by :
- -- SmallEiffel The GNU Eiffel Compiler -- Release (- 0.82) --
- -- Copyright (C), 1994-98 - LORIA - UHP - CRIN - INRIA - FRANCE --
- -- Dominique COLNET and Suzanne COLLIN - colnet@loria.fr --
- -- http://www.loria.fr/SmallEiffel --
- */
- #include "compile_to_c.h"
- void r324put_arguments(T324* C){
- int _switch=0;
- T0* _fal=NULL;
- T0* _args=NULL;
- T0* _target=NULL;
- T0* _static_rf=NULL;
- T0* _rf=NULL;
- int _code=0;
- _code=/*(IRF4.6item*/((((T226*)((T226*)(oBC861stack_code))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]/*)*/;
- {int z1=_code;
-
- if((1011==z1)){
- }
- else
- if((1015==z1)){
- r324put_ith_argument(C,1);
- }
- else
- if((1007==z1)){
- _fal=/*X496*/((T0*)(((T832*)((T832*)(/*X321*/((T0*)r321item(((T321*)(oBC861stack_rf)),(((T324*)C))->_top/*32*/))))))->_arguments/*20*/);
- X431compile_to_c(/*(IRF4.6item*/((((T374*)((T374*)(oBC861stack_args))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]/*)*/,_fal);
- }
- else
- if((1008==z1)){
- _fal=/*X496*/((T0*)(((T832*)((T832*)(/*X321*/((T0*)r321item(((T321*)(oBC861stack_rf)),(((T324*)C))->_top/*32*/))))))->_arguments/*20*/);
- X431compile_to_c(/*(IRF4.6item*/((((T374*)((T374*)(oBC861stack_args))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]/*)*/,_fal);
- }
- else
- if((1009==z1)){
- _fal=/*X496*/((T0*)(((T832*)((T832*)(/*X321*/((T0*)r321item(((T321*)(oBC861stack_rf)),(((T324*)C))->_top/*32*/))))))->_arguments/*20*/);
- _static_rf=/*X321*/((T0*)r321item(((T321*)(oBC861stack_static_rf)),(((T324*)C))->_top/*32*/));
- r798put_arguments(_static_rf,_fal);
- }
- else
- if((1010==z1)){
- _fal=/*X496*/((T0*)(((T832*)((T832*)(/*X321*/((T0*)r321item(((T321*)(oBC861stack_rf)),(((T324*)C))->_top/*32*/))))))->_arguments/*20*/);
- X431compile_to_c(/*(IRF4.6item*/((((T374*)((T374*)(oBC861stack_args))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]/*)*/,_fal);
- }
- else
- if((1012==z1)){
- _rf=/*X321*/((T0*)r321item(((T321*)(oBC861stack_rf)),(((T324*)C))->_top/*32*/));
- _target=/*X32*/((T0*)r32item(((T32*)(oBC861stack_target)),(((T324*)C))->_top/*32*/));
- _args=/*(IRF4.6item*/((((T374*)((T374*)(oBC861stack_args))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]/*)*/;
- _static_rf=/*X321*/((T0*)r321item(((T321*)(oBC861stack_static_rf)),(((T324*)C))->_top/*32*/));
- C->_top=((((T324*)C))->_top/*32*/)-(1);
- X431dca_inline(_args,/*X496*/((T0*)(((T832*)((T832*)_rf)))->_arguments/*20*/));
- C->_top=((((T324*)C))->_top/*32*/)+(1);
- /*[IRF3.5put*/((((T226*)((T226*)(oBC861stack_code))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]=(_code);
- /*]*/
- /*X321*//*[IRF3.6put*/{T321* C1=((T321*)(oBC861stack_rf));
- T0* b1=_rf;
- int b2=(((T324*)C))->_top/*32*/;
- ((((T321*)C1))->_storage/*4*/)[b2]=(b1);
- }/*]*/
- /*X32*//*[IRF3.6put*/{T32* C1=((T32*)(oBC861stack_target));
- T0* b1=_target;
- int b2=(((T324*)C))->_top/*32*/;
- ((((T32*)C1))->_storage/*4*/)[b2]=(b1);
- }/*]*/
- /*[IRF3.5put*/((((T374*)((T374*)(oBC861stack_args))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]=(_args);
- /*]*/
- /*X321*//*[IRF3.6put*/{T321* C1=((T321*)(oBC861stack_static_rf));
- T0* b1=_static_rf;
- int b2=(((T324*)C))->_top/*32*/;
- ((((T321*)C1))->_storage/*4*/)[b2]=(b1);
- }/*]*/
- }
- else
- if((1013==z1)){
- _fal=/*X496*/((T0*)(((T832*)((T832*)(/*X321*/((T0*)r321item(((T321*)(oBC861stack_rf)),(((T324*)C))->_top/*32*/))))))->_arguments/*20*/);
- X431compile_to_c(/*(IRF4.6item*/((((T374*)((T374*)(oBC861stack_args))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]/*)*/,_fal);
- }
- else {}}
- }
- void r324expanded_writable(T324* C,T0* a1,T0* a2){
- r324stack_push(C,1011);
- /*X32*//*[IRF3.6put*/{T32* C1=((T32*)(oBC861stack_target));
- T0* b1=a2;
- int b2=(((T324*)C))->_top/*32*/;
- ((((T32*)C1))->_storage/*4*/)[b2]=(b1);
- }/*]*/
- /*X321*//*[IRF3.6put*/{T321* C1=((T321*)(oBC861stack_rf));
- T0* b1=NULL;
- int b2=(((T324*)C))->_top/*32*/;
- ((((T321*)C1))->_storage/*4*/)[b2]=(b1);
- }/*]*/
- C->_direct_call_count=((((T324*)C))->_direct_call_count/*40*/)+(1);
- r832mapping_c(((T832*)a1));
- r324pop(C);
- /*IF*/if (r324call_invariant_start((((T832*)((T832*)a1)))->_current_type/*4*/)) {
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\46';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- X662compile_to_c(a2);
- /*[IRF3.2call_invariant_end*//*[IRF3.6put_character*/{T544* C1=((T544*)(oBC324out_c));
- char b1='\51';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms134_470));
- /*]*/
- }
- /*FI*/}
- /*No:C_PRETTY_PRINTER.fz_void*/
- void r324path_o_in(T324* C,T0* a1,int a2){
- r7append(((T7*)a1),r324path_h(C));
- r7remove_last(((T7*)a1),(((T7*)((T7*)(((T0*)ms27_364)))))->_count/*4*/);
- r2append_in(a2,a1);
- r7append(((T7*)a1),r324o_suffix(C));
- }
- void r324current_class_invariant(T324* C,T0* a1){
- T0* _rc=NULL;
- _rc=r324need_invariant(a1);
- /*IF*/if ((_rc)!=((void*)(NULL))) {
- /*IF*/if (X291is_reference((((T355*)((T355*)_rc)))->_current_type/*0*/)) {
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms167_324));
- /*]*/
- }
- /*FI*//*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='i';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_integer*/r544put_integer(((T544*)((((T324*)C))->_current_out/*56*/)),(((T355*)((T355*)_rc)))->_id/*4*/);
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\50';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='C';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\51';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms134_470));
- /*]*/
- }
- /*FI*/}
- /*No:C_PRETTY_PRINTER.stack_first_size*/
- int r324target_cannot_be_dropped(T324* C){
- int R=0;
- {int z1=/*(IRF4.6item*/((((T226*)((T226*)(oBC861stack_code))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]/*)*/;
-
- if(((1007<=z1)&&(z1<=1008))){
- R=!(X662can_be_dropped(/*X32*/((T0*)r32item(((T32*)(oBC861stack_target)),(((T324*)C))->_top/*32*/))));
- }
- else
- if((1012==z1)){
- R=1;
- }
- else
- if((1013==z1)){
- C->_top=((((T324*)C))->_top/*32*/)-(1);
- R=r324target_cannot_be_dropped(C);
- C->_top=((((T324*)C))->_top/*32*/)+(1);
- }
- }
- /*IF*/if (R) {
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms82_324));
- /*]*/
- r324put_target_as_target(C);
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms147_470));
- /*]*/
- }
- /*FI*/return R;
- }
- /*No:C_PRETTY_PRINTER.C_direct_call*/
- /*No:C_PRETTY_PRINTER.function_count*/
- /*No:C_PRETTY_PRINTER.fz_cast_t0_star*/
- /*No:C_PRETTY_PRINTER.C_inline_one_pc*/
- void r324echo_rename_file(T0* a1,T0* a2){
- /*IF*/if (r324file_exists(a1)) {
- r306put_string(((T306*)(oBC364echo)),((T0*)ms41_364));
- r306put_string(((T306*)(oBC364echo)),a1);
- r306put_string(((T306*)(oBC364echo)),((T0*)ms42_364));
- r306put_string(((T306*)(oBC364echo)),a2);
- r306put_string(((T306*)(oBC364echo)),((T0*)ms152_470));
- /*[IRF3.6rename_file*/{T0* b1=a1;
- T0* b2=a2;
- /*[IRF3.6rename_to*/{T0* c1=b1;
- T0* c2=b2;
- rename(((char*)r7to_external(((T7*)c1))),((char*)r7to_external(((T7*)c2))));
- }/*]*/
- }/*]*/
- }
- /*FI*/}
- /*No:C_PRETTY_PRINTER.split_rc_count*/
- void r324put_cpc(T324* C,T0* a1){
- T0* _run_feature=NULL;
- T0* _target_type=NULL;
- T0* _target=NULL;
- _target=X135target(a1);
- _target_type=X291run_type(X662result_type(_target));
- _run_feature=X135run_feature(a1);
- /*IF*/if (X291is_expanded(_target_type)) {
- r324push_direct(C,_run_feature,_target,X135arguments(a1));
- X496mapping_c(_run_feature);
- r324pop(C);
- }
- else if (X662is_current(_target)) {
- r324push_direct(C,_run_feature,_target,X135arguments(a1));
- X496mapping_c(_run_feature);
- r324pop(C);
- }
- else if (X662is_manifest_string(_target)) {
- r324push_direct(C,_run_feature,_target,X135arguments(a1));
- X496mapping_c(_run_feature);
- r324pop(C);
- }
- else {
- r324push_cpc(C,_run_feature,(((T355*)((T355*)(X291run_class(_target_type)))))->_running/*12*/,_target,X135arguments(a1));
- }
- /*FI*/}
- void r324put_position(T324* C,T0* a1){
- /*IF*/if ((a1)==((void*)(NULL))) {
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms81_324));
- /*]*/
- }
- else {
- /*[IRF3.5put_integer*/r544put_integer(((T544*)((((T324*)C))->_current_out/*56*/)),/*(IRF4.6line*/((((T627*)((T627*)a1)))->_mem_line_column/*4*/)/(1000)/*)*/);
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\54';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_integer*/r544put_integer(((T544*)((((T324*)C))->_current_out/*56*/)),/*(IRF4.6column*/((((T627*)((T627*)a1)))->_mem_line_column/*4*/)%(1000)/*)*/);
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\54';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_integer*/r544put_integer(((T544*)((((T324*)C))->_current_out/*56*/)),(((T605*)((T605*)(r627base_class(((T627*)a1))))))->_id/*0*/);
- /*]*/
- }
- /*FI*/}
- void r324define_to_expanded(T324* C){
- T0* _dest_type=NULL;
- T0* _src_type=NULL;
- T0* _dest_rc=NULL;
- T0* _src_rc=NULL;
- int _i=0;
- _i=1;
- while (!((_i)>((((T396*)((T396*)((((T324*)C))->_to_expanded_mem/*64*/))))->_upper/*8*/))) {
- _src_rc=r396item(((T396*)((((T324*)C))->_to_expanded_mem/*64*/)),_i);
- _i=(_i)+(1);
- _dest_rc=r396item(((T396*)((((T324*)C))->_to_expanded_mem/*64*/)),_i);
- _i=(_i)+(1);
- _src_type=(((T355*)((T355*)_src_rc)))->_current_type/*0*/;
- _dest_type=(((T355*)((T355*)_dest_rc)))->_current_type/*0*/;
- r306put_string(((T306*)(oBC364echo)),((T0*)ms187_324));
- r306put_string(((T306*)(oBC364echo)),X291run_time_mark(_src_type));
- r306put_string(((T306*)(oBC364echo)),((T0*)ms93_324));
- r306put_string(((T306*)(oBC364echo)),X291run_time_mark(_dest_type));
- r306put_string(((T306*)(oBC364echo)),((T0*)ms186_324));
- /*[IRF3.3clear*/((((T7*)(((T7*)(oBC324tmp_string)))))->_count)=(0);
- /*]*/
- X291c_type_for_result_in(_dest_type,oBC324tmp_string);
- r7extend(((T7*)(oBC324tmp_string)),'\40');
- r324conversion_name((((T355*)((T355*)_dest_rc)))->_id/*4*/);
- r7append(((T7*)(oBC324tmp_string)),((T0*)ms94_324));
- r544put_string(((T544*)((((T324*)C))->_out_h/*52*/)),oBC324tmp_string);
- r544put_string(((T544*)((((T324*)C))->_out_h/*52*/)),((T0*)ms134_470));
- r544put_string(((T544*)(oBC324out_c)),oBC324tmp_string);
- r7copy(((T7*)(oBC324tmp_string)),((T0*)ms145_470));
- r7append(((T7*)(oBC324tmp_string)),((T0*)ms146_470));
- r544put_string(((T544*)(oBC324out_c)),oBC324tmp_string);
- }
- }
- void r324print_current(T324* C){
- int _level=0;
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='C';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- _level=(((T324*)C))->_inline_level/*76*/;
- /*IF*/if ((_level)>(0)) {
- /*[IRF3.5put_integer*/r544put_integer(((T544*)((((T324*)C))->_current_out/*56*/)),_level);
- /*]*/
- }
- /*FI*/}
- /*No:C_PRETTY_PRINTER.fatal_error*/
- /*No:C_PRETTY_PRINTER.elt_c_count*/
- void r324put_c_heading(T324* C,T0* a1){
- r324incr_elt_c_count(C,15);
- r544put_string(((T544*)((((T324*)C))->_out_h/*52*/)),a1);
- r544put_string(((T544*)((((T324*)C))->_out_h/*52*/)),((T0*)ms134_470));
- r544put_string(((T544*)(oBC324out_c)),a1);
- r544put_string(((T544*)(oBC324out_c)),((T0*)ms145_470));
- }
- void r324push_inline_dca(T324* C,T0* a1,T0* a2){
- r324stack_push(C,1012);
- /*X321*//*[IRF3.6put*/{T321* C1=((T321*)(oBC861stack_rf));
- T0* b1=X135run_feature(a2);
- int b2=(((T324*)C))->_top/*32*/;
- ((((T321*)C1))->_storage/*4*/)[b2]=(b1);
- }/*]*/
- /*X321*//*[IRF3.6put*/{T321* C1=((T321*)(oBC861stack_static_rf));
- T0* b1=a1;
- int b2=(((T324*)C))->_top/*32*/;
- ((((T321*)C1))->_storage/*4*/)[b2]=(b1);
- }/*]*/
- /*X32*//*[IRF3.6put*/{T32* C1=((T32*)(oBC861stack_target));
- T0* b1=X135target(a2);
- int b2=(((T324*)C))->_top/*32*/;
- ((((T32*)C1))->_storage/*4*/)[b2]=(b1);
- }/*]*/
- /*[IRF3.5put*/((((T374*)((T374*)(oBC861stack_args))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]=(X135arguments(a2));
- /*]*/
- C->_direct_call_count=((((T324*)C))->_direct_call_count/*40*/)+(1);
- }
- void r324to_reference(T324* C,T0* a1,T0* a2){
- T0* _dest_rc=NULL;
- T0* _src_rc=NULL;
- _src_rc=X291run_class(a1);
- _dest_rc=X291run_class(a2);
- /*IF*/if (((((T324*)C))->_to_reference_mem/*60*/)==((void*)(NULL))) {
- C->_to_reference_mem=se_ma396(2,_src_rc,_dest_rc);
- }
- else if (!(r396fast_has(((T396*)((((T324*)C))->_to_reference_mem/*60*/)),_src_rc))) {
- r396add_last(((T396*)((((T324*)C))->_to_reference_mem/*60*/)),_src_rc);
- r396add_last(((T396*)((((T324*)C))->_to_reference_mem/*60*/)),_dest_rc);
- }
- /*FI*//*[IRF3.3clear*/((((T7*)(((T7*)(oBC324tmp_string)))))->_count)=(0);
- /*]*/
- r324conversion_name((((T355*)((T355*)_dest_rc)))->_id/*4*/);
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),oBC324tmp_string);
- /*]*/
- }
- /*No:C_PRETTY_PRINTER.C_inside_twin*/
- void r324conversion_name(int a1){
- r7append(((T7*)(oBC324tmp_string)),((T0*)ms130_470));
- r2append_in(a1,oBC324tmp_string);
- }
- void r324print_local(T324* C,T0* a1){
- int _level=0;
- _level=((((T324*)C))->_inline_level/*76*/)+(1);
- while (!((_level)==(0))) {
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\137';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- _level=(_level)-(1);
- }
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),a1);
- /*]*/
- }
- void r324put_banner(T0* a1){
- r544put_string(((T544*)a1),((T0*)ms118_470));
- r544put_string(((T544*)a1),((T0*)ms173_324));
- r544put_string(((T544*)a1),((T0*)ms1_604));
- r544put_string(((T544*)a1),((T0*)ms81_470));
- /*[IRF3.6put_character*/{T544* C1=((T544*)a1);
- char b1='\n';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- }
- /*No:C_PRETTY_PRINTER.elt_c_count_max*/
- void r324put_comment_line(T324* C,T0* a1){
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\n';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- r324put_comment(C,a1);
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\n';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- }
- /*No:C_PRETTY_PRINTER.fz_arrow_id*/
- void r324stack_overflow(T324* C){
- T0* _rtma=NULL;
- T0* _rtm=NULL;
- T0* _rf=NULL;
- int _i=0;
- /*[IRF3.6append*/{T0* b1=((T0*)ms1_861);
- r7append(((T7*)(oBC683explanation)),b1);
- }/*]*/
- _i=((((T324*)C))->_top/*32*/)-(1);
- while (!((_i)<(0))) {
- _rf=/*X321*/((T0*)r321item(((T321*)(oBC861stack_rf)),_i));
- /*IF*/if ((_rf)!=((void*)(NULL))) {
- r683add_position(X496start_position(_rf));
- _rtm=X291run_time_mark(/*X496*/((T0*)(((T832*)((T832*)_rf)))->_current_type/*4*/));
- /*IF*/if ((_rtma)==((void*)(NULL))) {
- {T927*n=malloc(sizeof(*n));
- *n=M927;
- r927with_capacity(n,(((T324*)C))->_top/*32*/);
- _rtma=(T0*)n;
- }
- r927add_last(((T927*)_rtma),_rtm);
- /*[IRF3.6append*/{T0* b1=_rtm;
- r7append(((T7*)(oBC683explanation)),b1);
- }/*]*/
- }
- else if (r927fast_has(((T927*)_rtma),_rtm)) {
- }
- else {
- r927add_last(((T927*)_rtma),_rtm);
- /*[IRF3.6append*/{T0* b1=((T0*)ms2_861);
- r7append(((T7*)(oBC683explanation)),b1);
- }/*]*/
- /*[IRF3.6append*/{T0* b1=_rtm;
- r7append(((T7*)(oBC683explanation)),b1);
- }/*]*/
- }
- /*FI*/}
- /*FI*/_i=(_i)-(1);
- }
- r683fatal_error(((T683*)(oBC364eh)),((T0*)ms3_861));
- }
- /*No:C_PRETTY_PRINTER.real_procedure_count*/
- /*No:C_PRETTY_PRINTER.dos_system*/
- T0*oBC364cecil_pool=NULL;
- /*No:C_PRETTY_PRINTER.fz_system_se*/
- T0*oBC324out_make=NULL;
- void r324call_c_compiler(T324* C){
- r7copy(((T7*)(oBC324tmp_string)),r324c_compiler(C));
- r7extend(((T7*)(oBC324tmp_string)),'\40');
- /*IF*/if (((((T324*)C))->_c_compiler_options/*116*/)!=((void*)(NULL))) {
- r7append(((T7*)(oBC324tmp_string)),(((T324*)C))->_c_compiler_options/*116*/);
- }
- /*FI*/}
- /*No:C_PRETTY_PRINTER.C_switch*/
- T0*oBC364run_control=NULL;
- void r324print_argument(T324* C,int a1){
- int _code=0;
- _code=(((unsigned char)'a'))+((((T324*)C))->_inline_level/*76*/);
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1=((char)(_code));
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_integer*/r544put_integer(((T544*)((((T324*)C))->_current_out/*56*/)),a1);
- /*]*/
- }
- void r324incr_procedure_count(T324* C){
- C->_procedure_count=((((T324*)C))->_procedure_count/*8*/)+(1);
- }
- /*No:C_PRETTY_PRINTER.set_check_assertion_mode*/
- void r324put_trace_switch(T324* C){
- /*IF*/if ((((T590*)((T590*)(oBC364run_control))))->_trace/*4*/) {
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms86_324));
- /*]*/
- r324put_ith_argument(C,1);
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms148_470));
- /*]*/
- }
- /*FI*/}
- void r324get_started(T324* C){
- T0* _body=NULL;
- int _no_check=0;
- r306file_removing(((T306*)(oBC364echo)),r324path_make(C));
- _no_check=r590no_check(((T590*)(oBC364run_control)));
- C->_top=-(1);
- r324backup_sfw_connect(C,oBC324out_c,r324path_c(C));
- C->_current_out=oBC324out_c;
- r324add_first_include(C);
- {T544*n=malloc(sizeof(*n));
- *n=M544;
- /*[IRF3.1make*//*]*/
- C->_out_h=(T0*)n;
- }
- r324sfw_connect(C,(((T324*)C))->_out_h/*52*/,r324path_h(C));
- C->_current_out=(((T324*)C))->_out_h/*52*/;
- r324put_banner((((T324*)C))->_out_h/*52*/);
- r544put_string(((T544*)((((T324*)C))->_out_h/*52*/)),((T0*)ms1_324));
- r324cdef_id(C,((T0*)ms15_473),2);
- r324cdef_id(C,((T0*)ms8_473),3);
- r324cdef_id(C,((T0*)ms23_473),4);
- r324cdef_id(C,((T0*)ms11_473),5);
- r324cdef_id(C,((T0*)ms6_473),6);
- r324cdef_id(C,((T0*)ms21_473),8);
- r324cdef_id(C,((T0*)ms14_470),10);
- r324cdef_id(C,((T0*)ms2_324),11);
- r324cdef_id(C,((T0*)ms3_324),12);
- r324cdef_id(C,((T0*)ms4_324),13);
- r324cdef_id(C,((T0*)ms5_324),14);
- r324cdef_id(C,((T0*)ms6_324),15);
- r324cdef_id(C,((T0*)ms7_324),16);
- r324cdef_id(C,((T0*)ms8_324),17);
- r324cdef_id(C,((T0*)ms9_324),18);
- r324cdef_id(C,((T0*)ms10_324),19);
- r324cdef_id(C,((T0*)ms3_473),20);
- /*IF*/if (_no_check) {
- r324put_extern3(C,((T0*)ms11_324),((T0*)ms12_324));
- r324put_extern3(C,((T0*)ms13_324),((T0*)ms14_324));
- r324put_extern3(C,((T0*)ms15_324),((T0*)ms16_324));
- r324put_extern3(C,((T0*)ms17_324),((T0*)ms18_324));
- r324put_extern3(C,((T0*)ms19_324),((T0*)ms20_324));
- r324put_extern3(C,((T0*)ms21_324),((T0*)ms22_324));
- r324put_extern3(C,((T0*)ms143_473),((T0*)ms143_473));
- r324put_extern3(C,((T0*)ms146_473),((T0*)ms146_473));
- r324put_extern1(C,((T0*)ms23_324));
- r324put_extern1(C,((T0*)ms24_324));
- r324put_extern1(C,((T0*)ms25_324));
- r324put_extern1(C,((T0*)ms26_324));
- r324put_c_function(C,((T0*)ms27_324),((T0*)ms28_324));
- r324put_c_function(C,((T0*)ms29_324),((T0*)ms30_324));
- r324put_c_function(C,((T0*)ms31_324),((T0*)ms32_324));
- _body=((T0*)ms33_324);
- /*IF*/if ((((T590*)((T590*)(oBC364run_control))))->_trace/*4*/) {
- r7append(((T7*)_body),((T0*)ms34_324));
- }
- /*FI*/r324put_c_function(C,((T0*)ms35_324),_body);
- r324put_c_function(C,((T0*)ms36_324),((T0*)ms37_324));
- r324put_c_function(C,((T0*)ms38_324),((T0*)ms39_324));
- r324put_c_function(C,((T0*)ms40_324),((T0*)ms41_324));
- r324put_c_function(C,((T0*)ms42_324),((T0*)ms43_324));
- r324put_c_function(C,((T0*)ms44_324),((T0*)ms45_324));
- r324put_c_function(C,((T0*)ms46_324),((T0*)ms47_324));
- r324put_c_function(C,((T0*)ms48_324),((T0*)ms49_324));
- r324put_c_function(C,((T0*)ms50_324),((T0*)ms51_324));
- r324put_c_function(C,((T0*)ms52_324),((T0*)ms53_324));
- r324put_c_function(C,((T0*)ms54_324),((T0*)ms55_324));
- r324put_extern2(C,((T0*)ms56_324),'0');
- r324put_extern2(C,((T0*)ms57_324),'0');
- r324put_extern1(C,((T0*)ms58_324));
- r324put_extern1(C,((T0*)ms59_324));
- }
- /*FI*//*IF*/if (r590require_check(((T590*)(oBC364run_control)))) {
- r324put_c_function(C,((T0*)ms60_324),((T0*)ms61_324));
- }
- /*FI*//*IF*/if (r590ensure_check(((T590*)(oBC364run_control)))) {
- r324put_c_function(C,((T0*)ms62_324),((T0*)ms63_324));
- }
- /*FI*//*IF*/if (r590invariant_check(((T590*)(oBC364run_control)))) {
- r324put_c_function(C,((T0*)ms64_324),((T0*)ms65_324));
- r324put_c_function(C,((T0*)ms66_324),((T0*)ms67_324));
- r324put_c_function(C,((T0*)ms68_324),((T0*)ms69_324));
- }
- /*FI*//*IF*/if (r590loop_check(((T590*)(oBC364run_control)))) {
- r324put_c_function(C,((T0*)ms70_324),((T0*)ms71_324));
- r324put_c_function(C,((T0*)ms72_324),((T0*)ms73_324));
- }
- /*FI*//*IF*/if (r590all_check(((T590*)(oBC364run_control)))) {
- r324put_c_function(C,((T0*)ms74_324),((T0*)ms75_324));
- }
- /*FI*/C->_current_out=oBC324out_c;
- }
- /*No:C_PRETTY_PRINTER.unix_system*/
- /*No:C_PRETTY_PRINTER.c_library_list*/
- T0*oBC324out_c=NULL;
- /*No:C_PRETTY_PRINTER.fz_to_t*/
- /*No:C_PRETTY_PRINTER.exit_failure_code*/
- /*No:C_PRETTY_PRINTER.current_out*/
- /*No:C_PRETTY_PRINTER.vms_system*/
- T576 oBC364switch_collection=0;
- void r324rs_link(T324* C,T0* a1){
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms155_324));
- /*]*/
- X496put_tag(a1);
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms148_470));
- /*]*/
- }
- void r324put_to_pointer(T324* C){
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms87_324));
- /*]*/
- r324put_target_as_value(C);
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\51';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- }
- /*No:C_PRETTY_PRINTER.oflag*/
- /*No:C_PRETTY_PRINTER.C_inside_new*/
- int fBC364small_eiffel_directory=0;
- T0*oBC364small_eiffel_directory=NULL;
- T0* r324small_eiffel_directory(T324* C){
- if (fBC364small_eiffel_directory==0){
- T0* R=NULL;
- char _slash=0;
- int _i=0;
- fBC364small_eiffel_directory=1;
- R=r324get_environment_variable(C,((T0*)ms121_470));
- /*IF*/if ((R)==((void*)(NULL))) {
- R=r7twin(((T7*)(((T0*)ms121_470))));
- r7to_upper(((T7*)R));
- R=r324get_environment_variable(C,R);
- /*IF*/if ((R)!=((void*)(NULL))) {
- r7to_upper(((T7*)(((T0*)ms121_470))));
- }
- /*FI*/}
- /*FI*//*IF*/if ((R)==((void*)(NULL))) {
- R=((T0*)ms1_364);
- }
- /*FI*/_i=(((T7*)((T7*)R)))->_count/*4*/;
- while (!((_i)<(0))) {
- _slash=/*(IRF4.6item*/((((T7*)((T7*)R)))->_storage/*0*/)[(_i)-(1)]/*)*/;
- /*IF*/if ((r3is_letter(_slash))||(r3is_digit(_slash))) {
- _i=(_i)-(1);
- }
- else {
- _i=-(1);
- }
- /*FI*/}
- /*IF*/if ((_i)==(0)) {
- r7extend(((T7*)R),'\57');
- }
- else if (!((r7last(((T7*)R)))==(_slash))) {
- r7extend(((T7*)R),_slash);
- }
- /*FI*/oBC364small_eiffel_directory=R;}
- return oBC364small_eiffel_directory;}
- T0* r324to_bcn(T0* a1){
- T0* R=NULL;
- char _c=0;
- int _i=0;
- R=r7twin(((T7*)a1));
- /*IF*/if (r7has_suffix(((T7*)R),((T0*)ms25_364))) {
- r7remove_last(((T7*)R),2);
- }
- /*FI*/_i=(((T7*)((T7*)R)))->_count/*4*/;
- while (!((_i)==(0))) {
- _c=/*(IRF4.6item*/((((T7*)((T7*)R)))->_storage/*0*/)[(_i)-(1)]/*)*/;
- /*IF*/if (r3is_letter(_c)) {
- _i=(_i)-(1);
- }
- else if ((_c)==('\137')) {
- _i=(_i)-(1);
- }
- else if (r3is_digit(_c)) {
- _i=(_i)-(1);
- }
- else {
- r7remove_first(((T7*)R),_i);
- _i=0;
- }
- /*FI*/}
- r7to_upper(((T7*)R));
- return R;
- }
- /*No:C_PRETTY_PRINTER.split_count*/
- void r324rs_push_local(T324* C,T0* a1,T0* a2){
- /*[IRF3.3clear*/((((T7*)(((T7*)(oBC324tmp_string)))))->_count)=(0);
- /*]*/
- r7extend(((T7*)(oBC324tmp_string)),'\137');
- r7append(((T7*)(oBC324tmp_string)),a1);
- r324rs_push(C,a1,oBC324tmp_string,a2);
- }
- void r324add_c_library(T324* C,T0* a1){
- /*IF*/if (((((T324*)C))->_c_library_list/*124*/)==((void*)(NULL))) {
- C->_c_library_list=se_ma52(1,a1);
- }
- else if (r52has(((T52*)((((T324*)C))->_c_library_list/*124*/)),a1)) {
- }
- else {
- r52add_last(((T52*)((((T324*)C))->_c_library_list/*124*/)),a1);
- }
- /*FI*/}
- T0*oBC861stack_rf=NULL;
- /*No:C_PRETTY_PRINTER.disconnect_cecil_out_h*/
- /*No:C_PRETTY_PRINTER.to_reference_mem*/
- /*No:C_PRETTY_PRINTER.amiga_system*/
- /*No:C_PRETTY_PRINTER.inlined_function_count*/
- /*No:C_PRETTY_PRINTER.fz_t0_star*/
- /*No:C_PRETTY_PRINTER.make*/
- void r324push_cpc(T324* C,T0* a1,T0* a2,T0* a3,T0* a4){
- T0* _dyn_rf=NULL;
- /*IF*/if ((a2)==((void*)(NULL))) {
- r324push_void(C,a1,a3,a4);
- X496mapping_c(a1);
- r324pop(C);
- }
- else if ((r396count(((T396*)a2)))==(1)) {
- _dyn_rf=r355dynamic(((T355*)(r396first(((T396*)a2)))),a1);
- r324push_check(C,_dyn_rf,a3,a4);
- X496mapping_c(_dyn_rf);
- r324pop(C);
- }
- else {
- r324use_switch(C,a1,a2,a3,a4);
- }
- /*FI*/}
- /*No:C_PRETTY_PRINTER.us_current*/
- /*No:C_PRETTY_PRINTER.set_no_split*/
- /*No:C_PRETTY_PRINTER.out_h*/
- /*No:C_PRETTY_PRINTER.us_pointer*/
- void r324inspect_incr(T324* C){
- C->_inspect_level=((((T324*)C))->_inspect_level/*72*/)+(1);
- }
- int r324call_invariant_start(T0* a1){
- int R=0;
- T0* _rc=NULL;
- _rc=r324need_invariant(a1);
- /*IF*/if ((_rc)!=((void*)(NULL))) {
- /*[IRF3.6put_character*/{T544* C1=((T544*)(oBC324out_c));
- char b1='i';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- r544put_integer(((T544*)(oBC324out_c)),(((T355*)((T355*)_rc)))->_id/*4*/);
- /*[IRF3.6put_character*/{T544* C1=((T544*)(oBC324out_c));
- char b1='\50';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- R=1;
- }
- /*FI*/return R;
- }
- /*No:C_PRETTY_PRINTER.rs_unlink*/
- void r324push_void(T324* C,T0* a1,T0* a2,T0* a3){
- r324error_void_or_bad_type(C,a2);
- r324push_direct(C,a1,a2,a3);
- C->_sure_void_count=((((T324*)C))->_sure_void_count/*44*/)+(1);
- }
- /*No:C_PRETTY_PRINTER.check_assertion_mode*/
- void r324common_put_target(T324* C){
- T0* _ct=NULL;
- T0* _e=NULL;
- int _flag=0;
- T0* _rf=NULL;
- {int z1=/*(IRF4.6item*/((((T226*)((T226*)(oBC861stack_code))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]/*)*/;
-
- if((1015==z1)){
- _rf=/*X321*/((T0*)r321item(((T321*)(oBC861stack_rf)),(((T324*)C))->_top/*32*/));
- _ct=/*X496*/((T0*)(((T832*)((T832*)_rf)))->_current_type/*4*/);
- /*IF*/if (X291is_reference(_ct)) {
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\50';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- X291mapping_cast(_ct);
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='R';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\51';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- }
- else {
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\46';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='R';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- }
- /*FI*/}
- else
- if((1010==z1)){
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='n';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- }
- else
- if((1009==z1)){
- _rf=/*X321*/((T0*)r321item(((T321*)(oBC861stack_rf)),(((T324*)C))->_top/*32*/));
- _flag=r324call_invariant_start(/*X496*/((T0*)(((T832*)((T832*)_rf)))->_current_type/*4*/));
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\50';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\50';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='T';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_integer*/r544put_integer(((T544*)((((T324*)C))->_current_out/*56*/)),X496id(_rf));
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\52';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\51';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='C';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\51';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*IF*/if (_flag) {
- /*[IRF3.2call_invariant_end*//*[IRF3.6put_character*/{T544* C1=((T544*)(oBC324out_c));
- char b1='\51';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- }
- /*FI*/}
- else
- if((1011==z1)){
- _e=/*X32*/((T0*)r32item(((T32*)(oBC861stack_target)),(((T324*)C))->_top/*32*/));
- /*IF*/if ((_e)!=((void*)(NULL))) {
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\46';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- X662compile_to_c(_e);
- }
- else {
- r544put_string(((T544*)(oBC324out_c)),((T0*)ms185_324));
- r544put_string(((T544*)(oBC324out_c)),X776to_string(/*X496*/((T0*)(((T832*)((T832*)(/*X321*/((T0*)r321item(((T321*)(oBC861stack_rf)),(((T324*)C))->_top/*32*/))))))->_name/*16*/)));
- }
- /*FI*/}
- else {r324print_current(C);
- }}
- }
- void r324put_c_inline_c(T324* C){
- T0* _c_code=NULL;
- _c_code=r324get_inline_ms(C);
- r544put_string(((T544*)(oBC324out_c)),(((T805*)((T805*)_c_code)))->_to_string/*16*/);
- }
- void r324incr_real_function_count(T324* C){
- C->_real_function_count=((((T324*)C))->_real_function_count/*20*/)+(1);
- }
- void r324print_strip(T324* C){
- /*IF*/if (((((T0*)ms16_364))==((void*)(r324system_name(C))))||((((T0*)ms17_364))==((void*)(r324system_name(C))))) {
- /*[IRF3.3clear*/((((T7*)(((T7*)(oBC324tmp_string)))))->_count)=(0);
- /*]*/
- /*IF*/if ((((T0*)ms16_364))==((void*)(r324system_name(C)))) {
- r7append(((T7*)(oBC324tmp_string)),((T0*)ms179_324));
- }
- else {
- r7append(((T7*)(oBC324tmp_string)),((T0*)ms180_324));
- }
- /*FI*//*IF*/if (((((T324*)C))->_output_name/*96*/)==((void*)(NULL))) {
- r7append(((T7*)(oBC324tmp_string)),((T0*)ms181_324));
- }
- else {
- r7append(((T7*)(oBC324tmp_string)),(((T324*)C))->_output_name/*96*/);
- }
- /*FI*//*[IRF3.2echo_make*/r544put_string(((T544*)(oBC324out_make)),oBC324tmp_string);
- /*[IRF3.6put_character*/{T544* C1=((T544*)(oBC324out_make));
- char b1='\n';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- }
- /*FI*/}
- /*No:C_PRETTY_PRINTER.generator_used*/
- T670 oBC1file_tools=0;
- /*No:C_PRETTY_PRINTER.set_output_name*/
- /*No:C_PRETTY_PRINTER.fz_close_c_comment*/
- void r324put_ith_argument(T324* C,int a1){
- int _switch=0;
- T0* _fal=NULL;
- T0* _args=NULL;
- T0* _target=NULL;
- T0* _static_rf=NULL;
- T0* _rf=NULL;
- int _code=0;
- _code=/*(IRF4.6item*/((((T226*)((T226*)(oBC861stack_code))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]/*)*/;
- {int z1=_code;
-
- if((1007==z1)){
- _fal=/*X496*/((T0*)(((T832*)((T832*)(/*X321*/((T0*)r321item(((T321*)(oBC861stack_rf)),(((T324*)C))->_top/*32*/))))))->_arguments/*20*/);
- X431compile_to_c_ith(/*(IRF4.6item*/((((T374*)((T374*)(oBC861stack_args))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]/*)*/,_fal,a1);
- }
- else
- if((1008==z1)){
- _fal=/*X496*/((T0*)(((T832*)((T832*)(/*X321*/((T0*)r321item(((T321*)(oBC861stack_rf)),(((T324*)C))->_top/*32*/))))))->_arguments/*20*/);
- X431compile_to_c_ith(/*(IRF4.6item*/((((T374*)((T374*)(oBC861stack_args))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]/*)*/,_fal,a1);
- }
- else
- if((1009==z1)){
- _fal=/*X496*/((T0*)(((T832*)((T832*)(/*X321*/((T0*)r321item(((T321*)(oBC861stack_rf)),(((T324*)C))->_top/*32*/))))))->_arguments/*20*/);
- _static_rf=/*X321*/((T0*)r321item(((T321*)(oBC861stack_static_rf)),(((T324*)C))->_top/*32*/));
- r798put_ith_argument(_static_rf,_fal,a1);
- }
- else
- if((1010==z1)){
- _fal=/*X496*/((T0*)(((T832*)((T832*)(/*X321*/((T0*)r321item(((T321*)(oBC861stack_rf)),(((T324*)C))->_top/*32*/))))))->_arguments/*20*/);
- X431compile_to_c_ith(/*(IRF4.6item*/((((T374*)((T374*)(oBC861stack_args))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]/*)*/,_fal,a1);
- }
- else
- if((1012==z1)){
- _rf=/*X321*/((T0*)r321item(((T321*)(oBC861stack_rf)),(((T324*)C))->_top/*32*/));
- _target=/*X32*/((T0*)r32item(((T32*)(oBC861stack_target)),(((T324*)C))->_top/*32*/));
- _args=/*(IRF4.6item*/((((T374*)((T374*)(oBC861stack_args))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]/*)*/;
- _static_rf=/*X321*/((T0*)r321item(((T321*)(oBC861stack_static_rf)),(((T324*)C))->_top/*32*/));
- C->_top=((((T324*)C))->_top/*32*/)-(1);
- /*IF*/if ((_rf)!=((void*)(NULL))) {
- X431dca_inline_ith(_args,/*X496*/((T0*)(((T832*)((T832*)_rf)))->_arguments/*20*/),a1);
- }
- else {
- X431dca_inline_ith(_args,/*X496*/((T0*)(((T832*)((T832*)_static_rf)))->_arguments/*20*/),a1);
- }
- /*FI*/C->_top=((((T324*)C))->_top/*32*/)+(1);
- /*[IRF3.5put*/((((T226*)((T226*)(oBC861stack_code))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]=(_code);
- /*]*/
- /*X321*//*[IRF3.6put*/{T321* C1=((T321*)(oBC861stack_rf));
- T0* b1=_rf;
- int b2=(((T324*)C))->_top/*32*/;
- ((((T321*)C1))->_storage/*4*/)[b2]=(b1);
- }/*]*/
- /*X32*//*[IRF3.6put*/{T32* C1=((T32*)(oBC861stack_target));
- T0* b1=_target;
- int b2=(((T324*)C))->_top/*32*/;
- ((((T32*)C1))->_storage/*4*/)[b2]=(b1);
- }/*]*/
- /*[IRF3.5put*/((((T374*)((T374*)(oBC861stack_args))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]=(_args);
- /*]*/
- /*X321*//*[IRF3.6put*/{T321* C1=((T321*)(oBC861stack_static_rf));
- T0* b1=_static_rf;
- int b2=(((T324*)C))->_top/*32*/;
- ((((T321*)C1))->_storage/*4*/)[b2]=(b1);
- }/*]*/
- }
- else
- if((1013==z1)){
- _fal=/*X496*/((T0*)(((T832*)((T832*)(/*X321*/((T0*)r321item(((T321*)(oBC861stack_rf)),(((T324*)C))->_top/*32*/))))))->_arguments/*20*/);
- X431compile_to_c_ith(/*(IRF4.6item*/((((T374*)((T374*)(oBC861stack_args))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]/*)*/,_fal,a1);
- }
- else
- if((1014==z1)){
- r324print_argument(C,a1);
- }
- else {/*IF*/if (X291is_reference(/*X496*/((T0*)(((T832*)((T832*)(/*X321*/((T0*)r321item(((T321*)(oBC861stack_rf)),(((T324*)C))->_top/*32*/))))))->_current_type/*4*/))) {
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms84_324));
- /*]*/
- }
- else {
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms85_324));
- /*]*/
- }
- /*FI*/}}
- }
- T0*oBC324tmp_string2=NULL;
- T0*oBC364echo=NULL;
- T0*oBC364eiffel_parser=NULL;
- T0*oBC861stack_code=NULL;
- T0*oBC861stack_static_rf=NULL;
- void r324rs_push_argument(T324* C,T0* a1,int a2,T0* a3){
- /*[IRF3.3clear*/((((T7*)(((T7*)(oBC324tmp_string)))))->_count)=(0);
- /*]*/
- r7extend(((T7*)(oBC324tmp_string)),'a');
- r2append_in(a2,oBC324tmp_string);
- r324rs_push(C,a1,oBC324tmp_string,a3);
- }
- void r324add_c_compiler_option(T324* C,T0* a1){
- /*IF*/if (((((T324*)C))->_c_compiler_options/*116*/)==((void*)(NULL))) {
- {T7*n=malloc(sizeof(*n));
- *n=M7;
- r7make(n,10);
- C->_c_compiler_options=(T0*)n;
- }
- }
- /*FI*/r7append(((T7*)((((T324*)C))->_c_compiler_options/*116*/)),a1);
- r7extend(((T7*)((((T324*)C))->_c_compiler_options/*116*/)),'\40');
- }
- void r324put_error1(T324* C,T0* a1,T0* a2){
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms96_324));
- /*]*/
- r324put_string_c(a1);
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\54';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- r324put_position(C,a2);
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms148_470));
- /*]*/
- }
- T0*oBC324c_inline_h_mem=NULL;
- void r324split_c_start_run_class(T324* C){
- /*IF*/if ((((T324*)C))->_no_split/*112*/) {
- }
- else if (((((T324*)C))->_split_rc_count/*100*/)>=(9)) {
- /*[IRF3.4split_c_now*/r324incr_elt_c_count(C,(1960)+(1));
- /*]*/
- C->_split_rc_count=0;
- }
- else {
- C->_split_rc_count=((((T324*)C))->_split_rc_count/*100*/)+(1);
- }
- /*FI*/}
- T0*oBC324tmp_string3=NULL;
- /*No:C_PRETTY_PRINTER.switch_count*/
- /*No:C_PRETTY_PRINTER.rs_push_current*/
- /*No:C_PRETTY_PRINTER.us_character*/
- void r324stack_push(T324* C,int a1){
- int _new_size=0;
- C->_top=((((T324*)C))->_top/*32*/)+(1);
- /*IF*/if (((((T324*)C))->_top/*32*/)>((((T226*)((T226*)(oBC861stack_code))))->_upper/*8*/)) {
- _new_size=((((T226*)((T226*)(oBC861stack_code))))->_upper/*8*/)*(2);
- r226resize(((T226*)(oBC861stack_code)),_new_size);
- X321resize(oBC861stack_rf,_new_size);
- X32resize(oBC861stack_target,_new_size);
- r374resize(((T374*)(oBC861stack_args)),_new_size);
- X321resize(oBC861stack_static_rf,_new_size);
- r569resize(((T569*)(oBC861stack_cpc)),_new_size);
- /*IF*/if ((_new_size)>(2048)) {
- r324stack_overflow(C);
- }
- /*FI*/}
- /*FI*//*[IRF3.5put*/((((T226*)((T226*)(oBC861stack_code))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]=(a1);
- /*]*/
- }
- T0* r324need_invariant(T0* a1){
- T0* R=NULL;
- /*IF*/if (r590invariant_check(((T590*)(oBC364run_control)))) {
- R=X291run_class(X291run_type(a1));
- /*IF*/if (((((T355*)((T355*)R)))->_at_run_time/*8*/)&&(((((T355*)((T355*)R)))->_invariant_assertion/*16*/)!=((void*)(NULL)))) {
- }
- else {
- R=NULL;
- }
- /*FI*/}
- /*FI*/return R;
- }
- void r324incr_inlined_procedure_count(T324* C){
- C->_inlined_procedure_count=((((T324*)C))->_inlined_procedure_count/*0*/)+(1);
- }
- int fBC324c_linker=0;
- T0*oBC324c_linker=NULL;
- T0* r324c_linker(T324* C){
- if (fBC324c_linker==0){
- T0* R=NULL;
- fBC324c_linker=1;
- {T7*n=malloc(sizeof(*n));
- *n=M7;
- r7make(n,12);
- R=(T0*)n;
- }
- r7copy(((T7*)(oBC324tmp_string)),r324small_eiffel_directory(C));
- r324add_directory(C,oBC324tmp_string,((T0*)ms126_470));
- r7append(((T7*)(oBC324tmp_string)),((T0*)ms175_324));
- r7append(((T7*)(oBC324tmp_string)),r324system_name(C));
- r306sfr_connect(((T306*)(oBC364echo)),oBC364tmp_file_read,oBC324tmp_string);
- r675read_line_in(((T675*)(oBC364tmp_file_read)),R);
- r675disconnect(((T675*)(oBC364tmp_file_read)));
- oBC324c_linker=R;}
- return oBC324c_linker;}
- void r324add_first_include(T324* C){
- r324put_banner(oBC324out_c);
- r544put_string(((T544*)(oBC324out_c)),((T0*)ms172_324));
- r544put_string(((T544*)(oBC324out_c)),r324path_h(C));
- r544put_string(((T544*)(oBC324out_c)),((T0*)ms152_470));
- }
- T0*oBC364tmp_path=NULL;
- /*No:C_PRETTY_PRINTER.fz_b0*/
- void r324rs_push(T324* C,T0* a1,T0* a2,T0* a3){
- T0* _str=NULL;
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms163_324));
- /*]*/
- /*IF*/if (X291is_reference(a3)) {
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms164_324));
- /*]*/
- }
- else {
- /*IF*/if (X291is_basic_eiffel_expanded(a3)) {
- _str=X291written_mark(a3);
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1=/*(IRF4.6item*/((((T7*)((T7*)_str)))->_storage/*0*/)[(1)-(1)]/*)*/;
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1=/*(IRF4.6item*/((((T7*)((T7*)_str)))->_storage/*0*/)[(2)-(1)]/*)*/;
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1=/*(IRF4.6item*/((((T7*)((T7*)_str)))->_storage/*0*/)[(3)-(1)]/*)*/;
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- }
- else if (X291is_bit(a3)) {
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms165_324));
- /*]*/
- }
- else {
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms166_324));
- /*]*/
- }
- /*FI*//*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\50';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- }
- /*FI*//*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\46';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),a2);
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\54';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*IF*/if ((a1)==((void*)(((T0*)ms143_473)))) {
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms143_473));
- /*]*/
- }
- else if ((a1)==((void*)(((T0*)ms146_473)))) {
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms146_473));
- /*]*/
- }
- else {
- r324put_string_c(a1);
- }
- /*FI*//*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms148_470));
- /*]*/
- }
- int r324no_args_to_eval(T324* C){
- int R=0;
- T0* _args=NULL;
- int _code=0;
- _code=/*(IRF4.6item*/((((T226*)((T226*)(oBC861stack_code))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]/*)*/;
- {int z1=_code;
-
- if(((1007<=z1)&&(z1<=1008))||(1010==z1)||(1013==z1)){
- _args=/*(IRF4.6item*/((((T374*)((T374*)(oBC861stack_args))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]/*)*/;
- /*IF*/if ((_args)==((void*)(NULL))) {
- R=1;
- }
- else {
- R=X431can_be_dropped(_args);
- }
- /*FI*/}
- else
- if((1012==z1)){
- C->_top=((((T324*)C))->_top/*32*/)-(1);
- R=r324no_args_to_eval(C);
- C->_top=((((T324*)C))->_top/*32*/)+(1);
- }
- else{R=1;
- }}
- return R;
- }
- void r324incr_pre_computed_once_count(T324* C,T0* a1){
- /*IF*/if (((((T324*)C))->_pre_computed_once/*28*/)==((void*)(NULL))) {
- C->_pre_computed_once=se_ma365(1,a1);
- }
- else {
- r365add_last(((T365*)((((T324*)C))->_pre_computed_once/*28*/)),a1);
- }
- /*FI*/}
- /*No:C_PRETTY_PRINTER.set_no_strip*/
- void r324incr_static_expression_count(T324* C){
- C->_static_expression_count=((((T324*)C))->_static_expression_count/*24*/)+(1);
- }
- /*No:C_PRETTY_PRINTER.fz_se*/
- /*No:C_PRETTY_PRINTER.c_object_list*/
- void r324push_check(T324* C,T0* a1,T0* a2,T0* a3){
- r324stack_push(C,1008);
- /*X321*//*[IRF3.6put*/{T321* C1=((T321*)(oBC861stack_rf));
- T0* b1=a1;
- int b2=(((T324*)C))->_top/*32*/;
- ((((T321*)C1))->_storage/*4*/)[b2]=(b1);
- }/*]*/
- /*X32*//*[IRF3.6put*/{T32* C1=((T32*)(oBC861stack_target));
- T0* b1=a2;
- int b2=(((T324*)C))->_top/*32*/;
- ((((T32*)C1))->_storage/*4*/)[b2]=(b1);
- }/*]*/
- /*[IRF3.5put*/((((T374*)((T374*)(oBC861stack_args))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]=(a3);
- /*]*/
- }
- void r324write_make_file_no_split(T324* C){
- r324call_c_compiler(C);
- r324add_oflag(C);
- r7append(((T7*)(oBC324tmp_string)),r324path_c(C));
- r324tmp_string_object_library(C);
- /*[IRF3.2echo_make*/r544put_string(((T544*)(oBC324out_make)),oBC324tmp_string);
- /*[IRF3.6put_character*/{T544* C1=((T544*)(oBC324out_make));
- char b1='\n';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- }
- int r324cannot_drop_all(T324* C){
- int R=0;
- /*IF*/if (r324target_cannot_be_dropped(C)) {
- R=1;
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\54';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*IF*/if (r324arguments_cannot_be_dropped(C)) {
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\51';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- }
- else {
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='0';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- }
- /*FI*/}
- else {
- R=r324arguments_cannot_be_dropped(C);
- }
- /*FI*/return R;
- }
- int r324stupid_switch(T0* a1){
- int R=0;
- T0* _rc=NULL;
- T0* _f2=NULL;
- T0* _f1=NULL;
- int _i=0;
- T0* _r=NULL;
- _r=(((T355*)((T355*)(X496run_class(a1)))))->_running/*12*/;
- R=1;
- _i=(((T396*)((T396*)_r)))->_upper/*8*/;
- _f1=X496base_feature(a1);
- while (!((!(R))||((_i)==(0)))) {
- _rc=r396item(((T396*)_r),_i);
- _f2=X496base_feature(r355dynamic(((T355*)_rc),a1));
- R=(_f1)==((void*)(_f2));
- _i=(_i)-(1);
- }
- /*IF*/if (R) {
- R=X359stupid_switch(_f1,a1,_r);
- }
- /*FI*/return R;
- }
- /*No:C_PRETTY_PRINTER.us_bit*/
- void r324sfw_connect(T324* C,T0* a1,T0* a2){
- r544connect_to(((T544*)a1),a2);
- /*IF*/if (/*(IRF4.7is_connected*/((((T544*)((T544*)a1)))->_path/*0*/)!=(NULL)/*)*/) {
- r306put_string(((T306*)(oBC364echo)),((T0*)ms6_364));
- r306put_string(((T306*)(oBC364echo)),a2);
- r306put_string(((T306*)(oBC364echo)),((T0*)ms7_364));
- }
- else {
- r306w_put_string(((T0*)ms8_364));
- r306w_put_string(a2);
- r306w_put_string(((T0*)ms242_470));
- exit(1);
- }
- /*FI*/}
- T0*oBC364manifest_string_pool=NULL;
- /*No:C_PRETTY_PRINTER.fz_extern*/
- /*No:C_PRETTY_PRINTER.put_integer*/
- void r324put_generating_type(T324* C,T0* a1){
- T0* _rc=NULL;
- C->_generator_used=1;
- C->_generating_type_used=1;
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms85_470));
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\50';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='t';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\133';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*IF*/if (X291is_reference(a1)) {
- _rc=X291run_class(a1);
- /*IF*/if (r355is_tagged(((T355*)_rc))) {
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\50';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- r324put_target_as_value(C);
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\51';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms53_470));
- /*]*/
- }
- else {
- /*[IRF3.5put_integer*/r544put_integer(((T544*)((((T324*)C))->_current_out/*56*/)),(((T355*)((T355*)_rc)))->_id/*4*/);
- /*]*/
- }
- /*FI*/}
- else {
- /*[IRF3.5put_integer*/r544put_integer(((T544*)((((T324*)C))->_current_out/*56*/)),X291id(a1));
- /*]*/
- }
- /*FI*//*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\135';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\51';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- }
- int r324file_exists(T0* a1){
- int R=0;
- R=r670is_readable(a1);
- return R;
- }
- T0*oBC861stack_target=NULL;
- /*No:C_PRETTY_PRINTER.us_boolean*/
- void r324once_pre_computing(T324* C){
- T0* _of=NULL;
- T0* _rf6=NULL;
- T0* _of_array=NULL;
- int _i=0;
- /*IF*/if (((((T324*)C))->_pre_computed_once/*28*/)!=((void*)(NULL))) {
- r306put_string(((T306*)(oBC364echo)),((T0*)ms138_470));
- r306put_string(((T306*)(oBC364echo)),((T0*)ms139_470));
- _i=(((T365*)((T365*)((((T324*)C))->_pre_computed_once/*28*/))))->_upper/*12*/;
- {T495*n=malloc(sizeof(*n));
- *n=M495;
- r495with_capacity(n,(1)+((_i)/(2)),1);
- _of_array=(T0*)n;
- }
- while (!((_i)==(0))) {
- _rf6=r365item(((T365*)((((T324*)C))->_pre_computed_once/*28*/)),_i);
- _of=(((T868*)((T868*)_rf6)))->_base_feature/*44*/;
- /*IF*/if (!(r495fast_has(((T495*)_of_array),_of))) {
- r495add_last(((T495*)_of_array),_of);
- r868c_pre_computing(((T868*)_rf6));
- }
- /*FI*/_i=(_i)-(1);
- }
- r306print_count(((T306*)(oBC364echo)),((T0*)ms138_470),r495count(((T495*)_of_array)));
- }
- /*FI*/}
- /*No:C_PRETTY_PRINTER.fz_int*/
- void r324inline_level_incr(T324* C){
- C->_inline_level=((((T324*)C))->_inline_level/*76*/)+(1);
- }
- /*No:C_PRETTY_PRINTER.fz_b6*/
- void r324push_direct(T324* C,T0* a1,T0* a2,T0* a3){
- r324stack_push(C,1007);
- /*X321*//*[IRF3.6put*/{T321* C1=((T321*)(oBC861stack_rf));
- T0* b1=a1;
- int b2=(((T324*)C))->_top/*32*/;
- ((((T321*)C1))->_storage/*4*/)[b2]=(b1);
- }/*]*/
- /*X32*//*[IRF3.6put*/{T32* C1=((T32*)(oBC861stack_target));
- T0* b1=a2;
- int b2=(((T324*)C))->_top/*32*/;
- ((((T32*)C1))->_storage/*4*/)[b2]=(b1);
- }/*]*/
- /*[IRF3.5put*/((((T374*)((T374*)(oBC861stack_args))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]=(a3);
- /*]*/
- C->_direct_call_count=((((T324*)C))->_direct_call_count/*40*/)+(1);
- }
- /*No:C_PRETTY_PRINTER.procedure_count*/
- void r324put_generator(T324* C,T0* a1){
- T0* _rc=NULL;
- C->_generator_used=1;
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms85_470));
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\50';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='g';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\133';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*IF*/if (X291is_reference(a1)) {
- _rc=X291run_class(a1);
- /*IF*/if (r355is_tagged(((T355*)_rc))) {
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\50';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- r324put_target_as_value(C);
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\51';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms53_470));
- /*]*/
- }
- else {
- /*[IRF3.5put_integer*/r544put_integer(((T544*)((((T324*)C))->_current_out/*56*/)),(((T355*)((T355*)_rc)))->_id/*4*/);
- /*]*/
- }
- /*FI*/}
- else {
- /*[IRF3.5put_integer*/r544put_integer(((T544*)((((T324*)C))->_current_out/*56*/)),X291id(a1));
- /*]*/
- }
- /*FI*//*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\135';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\51';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- }
- void r324rs_push_position(T324* C,char a1,T0* a2){
- /*IF*/if (r590no_check(((T590*)(oBC364run_control)))) {
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms159_324));
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1=a1;
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\54';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- r324put_position(C,a2);
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\51';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*IF*/if ((a1)!=('2')) {
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms134_470));
- /*]*/
- }
- /*FI*/}
- /*FI*/}
- void r324put_object_size(T324* C,T0* a1){
- int _tcbd=0;
- _tcbd=r324target_cannot_be_dropped(C);
- /*IF*/if (_tcbd) {
- /*[IRF3.6put_character*/{T544* C1=((T544*)(oBC324out_c));
- char b1='\54';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- }
- /*FI*/r544put_string(((T544*)(oBC324out_c)),((T0*)ms88_324));
- r544put_integer(((T544*)(oBC324out_c)),X291id(a1));
- /*[IRF3.6put_character*/{T544* C1=((T544*)(oBC324out_c));
- char b1='\51';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*IF*/if (_tcbd) {
- /*[IRF3.6put_character*/{T544* C1=((T544*)(oBC324out_c));
- char b1='\51';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- }
- /*FI*/}
- void r324put_c_inline_h(T324* C){
- T0* _c_code=NULL;
- _c_code=r324get_inline_ms(C);
- /*IF*/if (r256has(((T256*)(oBC324c_inline_h_mem)),_c_code)) {
- }
- else {
- r256add_last(((T256*)(oBC324c_inline_h_mem)),_c_code);
- r544put_string(((T544*)((((T324*)C))->_out_h/*52*/)),(((T805*)((T805*)_c_code)))->_to_string/*16*/);
- /*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_out_h/*52*/));
- char b1='\n';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- }
- /*FI*/}
- /*No:C_PRETTY_PRINTER.eiffel_suffix*/
- void r324add_oflag(T324* C){
- /*IF*/if (((((T324*)C))->_output_name/*96*/)!=((void*)(NULL))) {
- /*IF*/if (((((T324*)C))->_oflag/*104*/)==((void*)(NULL))) {
- r7append(((T7*)(oBC324tmp_string)),((T0*)ms178_324));
- }
- else {
- r7append(((T7*)(oBC324tmp_string)),(((T324*)C))->_oflag/*104*/);
- }
- /*FI*/r7append(((T7*)(oBC324tmp_string)),(((T324*)C))->_output_name/*96*/);
- r7extend(((T7*)(oBC324tmp_string)),'\40');
- }
- /*FI*/}
- /*No:C_PRETTY_PRINTER.real_function_count*/
- void r324check_assertion(T324* C,T0* a1){
- int _static=0;
- _static=X662is_static(a1);
- /*IF*/if ((!(_static))||((X662static_value(a1))==(0))) {
- r324rs_push_position(C,'4',X662start_position(a1));
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms150_324));
- /*]*/
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),(((T324*)C))->_check_assertion_mode/*68*/);
- /*]*/
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='\50';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- /*IF*/if (_static) {
- C->_static_expression_count=((((T324*)C))->_static_expression_count/*24*/)+(1);
- /*[IRF3.5put_character*//*[IRF3.6put_character*/{T544* C1=((T544*)((((T324*)C))->_current_out/*56*/));
- char b1='0';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*]*/
- }
- else {
- X662compile_to_c(a1);
- }
- /*FI*//*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms148_470));
- /*]*/
- }
- /*FI*/}
- /*No:C_PRETTY_PRINTER.direct_call_count*/
- void r324put_extern1(T324* C,T0* a1){
- r324incr_elt_c_count(C,1);
- r544put_string(((T544*)((((T324*)C))->_out_h/*52*/)),((T0*)ms103_470));
- r544put_string(((T544*)((((T324*)C))->_out_h/*52*/)),a1);
- r544put_string(((T544*)((((T324*)C))->_out_h/*52*/)),((T0*)ms134_470));
- r544put_string(((T544*)(oBC324out_c)),a1);
- r544put_string(((T544*)(oBC324out_c)),((T0*)ms134_470));
- }
- /*No:C_PRETTY_PRINTER.c_suffix*/
- /*No:C_PRETTY_PRINTER.inline_level*/
- void r324push_switch(T324* C,T0* a1,T0* a2){
- r324stack_push(C,1009);
- /*X321*//*[IRF3.6put*/{T321* C1=((T321*)(oBC861stack_rf));
- T0* b1=a1;
- int b2=(((T324*)C))->_top/*32*/;
- ((((T321*)C1))->_storage/*4*/)[b2]=(b1);
- }/*]*/
- /*X321*//*[IRF3.6put*/{T321* C1=((T321*)(oBC861stack_static_rf));
- T0* b1=a2;
- int b2=(((T324*)C))->_top/*32*/;
- ((((T321*)C1))->_storage/*4*/)[b2]=(b1);
- }/*]*/
- /*[IRF3.5put*/((((T374*)((T374*)(oBC861stack_args))))->_storage/*0*/)[(((T324*)C))->_top/*32*/]=(NULL);
- /*]*/
- }
- void r324incr_function_count(T324* C){
- C->_function_count=((((T324*)C))->_function_count/*12*/)+(1);
- }
- /*No:C_PRETTY_PRINTER.h_suffix*/
- /*No:C_PRETTY_PRINTER.sure_void_count*/
- /*No:C_PRETTY_PRINTER.fz_expanded*/
- /*No:C_PRETTY_PRINTER.sprintf_double_is_used*/
- /*No:C_PRETTY_PRINTER.no_split*/
- int r324arguments_cannot_be_dropped(T324* C){
- int R=0;
- /*IF*/if (!(r324no_args_to_eval(C))) {
- R=1;
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms83_324));
- /*]*/
- r324put_arguments(C);
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),((T0*)ms147_470));
- /*]*/
- }
- /*FI*/return R;
- }
- void r324put_extern2(T324* C,T0* a1,char a2){
- r324incr_elt_c_count(C,1);
- r544put_string(((T544*)((((T324*)C))->_out_h/*52*/)),((T0*)ms103_470));
- r544put_string(((T544*)((((T324*)C))->_out_h/*52*/)),a1);
- r544put_string(((T544*)((((T324*)C))->_out_h/*52*/)),((T0*)ms134_470));
- r544put_string(((T544*)(oBC324out_c)),a1);
- /*[IRF3.6put_character*/{T544* C1=((T544*)(oBC324out_c));
- char b1='\75';
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- /*[IRF3.6put_character*/{T544* C1=((T544*)(oBC324out_c));
- char b1=a2;
- putc(b1,((FILE*)((((T544*)C1))->_output_stream/*4*/)));
- }/*]*/
- r544put_string(((T544*)(oBC324out_c)),((T0*)ms134_470));
- }
- /*No:C_PRETTY_PRINTER.no_strip*/
- /*No:C_PRETTY_PRINTER.pre_computed_once*/
- /*No:C_PRETTY_PRINTER.push_inline_one_pc*/
- void r324to_expanded(T324* C,T0* a1,T0* a2){
- T0* _dest_rc=NULL;
- T0* _src_rc=NULL;
- _src_rc=X291run_class(a1);
- _dest_rc=X291run_class(a2);
- /*IF*/if (((((T324*)C))->_to_expanded_mem/*64*/)==((void*)(NULL))) {
- C->_to_expanded_mem=se_ma396(2,_src_rc,_dest_rc);
- }
- else if (!(r396fast_has(((T396*)((((T324*)C))->_to_expanded_mem/*64*/)),_src_rc))) {
- r396add_last(((T396*)((((T324*)C))->_to_expanded_mem/*64*/)),_src_rc);
- r396add_last(((T396*)((((T324*)C))->_to_expanded_mem/*64*/)),_dest_rc);
- }
- /*FI*//*[IRF3.3clear*/((((T7*)(((T7*)(oBC324tmp_string)))))->_count)=(0);
- /*]*/
- r324conversion_name((((T355*)((T355*)_dest_rc)))->_id/*4*/);
- /*[IRF3.5put_string*/r544put_string(((T544*)((((T324*)C))->_current_out/*56*/)),oBC324tmp_string);
- /*]*/
- }
- int fBC364o_suffix=0;
- T0*oBC364o_suffix=NULL;
- T0* r324o_suffix(T324* C){
- if (fBC364o_suffix==0){
- T0* R=NULL;
- T0* _sn=NULL;
- fBC364o_suffix=1;
- _sn=r324system_name(C);
- {T7*n=malloc(sizeof(*n));
- *n=M7;
- r7make(n,4);
- R=(T0*)n;
- }
- r7copy(((T7*)(oBC364tmp_path)),r324small_eiffel_directory(C));
- r324add_directory(C,oBC364tmp_path,((T0*)ms126_470));
- r7append(((T7*)(oBC364tmp_path)),((T0*)ms28_364));
- r7append(((T7*)(oBC364tmp_path)),_sn);
- r306sfr_connect(((T306*)(oBC364echo)),oBC364tmp_file_read,oBC364tmp_path);
- r675read_line_in(((T675*)(oBC364tmp_file_read)),R);
- r675disconnect(((T675*)(oBC364tmp_file_read)));
- oBC364o_suffix=R;}
- return oBC364o_suffix;}
-
-