#include "M3Runtime.h" typedef struct { int tc; char* str; int len; } TXT; PRIVATE TXT txt1 = { 3, "INC", 4}; PRIVATE TXT txt2 = { 3, "@ += @;\012", 9}; PRIVATE TXT txt3 = { 3, "if ((@ += @)", 13}; PRIVATE TXT txt4 = { 3, " < @) RANGEFAULT;\012", 19}; PRIVATE TXT txt5 = { 3, " > @) RANGEFAULT;\012", 19}; PRIVATE TXT txt6 = { 3, "{\001\012", 4}; PRIVATE TXT txt7 = { 3, "register t@ r;\012", 16}; PRIVATE TXT txt8 = { 3, "r = (@ += @);\012", 15}; PRIVATE TXT txt9 = { 3, "if ((r < @) || (@ < r)) RANGEFAULT;\012", 37}; PRIVATE TXT txt10 = { 3, "\002};\012", 5}; #line 14 "../Interfaces/Expr.i3" #define t6 ADDRESS #define t75 void #define t72 ADDRESS typedef struct { TYPE self; int private; } t72_methods; #define t72_msize (sizeof (t72_methods)) typedef struct { ADDRESS methods; } t72_fields; #define t72_size (sizeof (t72_fields)) #define TC72 TC_UNTRACED_ROOT IMPORT TYPE TC_UNTRACED_ROOT; IMPORT char VS_UNTRACED_ROOT__3e0964513fd6da20; #line 16 "../Interfaces/M3.i3" #define t3 ADDRESS #define TC3 TC_M3__Expr IMPORT TYPE TC_M3__Expr; #line 16 IMPORT char VS_M3__Expr__8ae39aaa2d432477; #line 116 ".ROOT/.boots/corelib/Interfaces/Wr.i3" typedef struct { char* elts; int size[1]; } t59; #line 14 "../Interfaces/Expr.i3" #define t40 t59 #define TC6 TC_Expr__List IMPORT TYPE TC_Expr__List; #line 14 IMPORT char VS_Expr__List__3f87eceb2b9a246a; #line 17 "../Interfaces/Scope.i3" #define t29 ADDRESS #define t20 ADDRESS #define TC20 TC_M3__Value IMPORT TYPE TC_M3__Value; #line 15 "../Interfaces/M3.i3" IMPORT char VS_M3__Value__6f64cf9c2cae25fb; #line 17 "../Interfaces/Scope.i3" #define t33 t59 #define TC29 TC_Scope__ValueList IMPORT TYPE TC_Scope__ValueList; #line 17 IMPORT char VS_Scope__ValueList__64bf053e22e4e53c; #define t35 ADDRESS typedef int t4; #define TC35 TC_ADDRESS IMPORT TYPE TC_ADDRESS; IMPORT char VS_ADDRESS__30f7308738738b44; #line 16 "../Interfaces/Type.i3" #define t37 ADDRESS #define t45 t59 #define TC37 TC_Type__Map IMPORT TYPE TC_Type__Map; #line 16 IMPORT char VS_Type__Map__41dd9f4b33104fce; #define t43 ADDRESS #define t8 ADDRESS #define TC8 TC_M3__Type IMPORT TYPE TC_M3__Type; #line 18 "../Interfaces/M3.i3" IMPORT char VS_M3__Type__4d87bc25311f81d2; #line 17 "../Interfaces/Type.i3" typedef struct { t43 _next; t8 _type; } t44; #define TC43 TC_Type__List IMPORT TYPE TC_Type__List; #line 17 IMPORT char VS_Type__List__5791758e343becc1; #define t61 ADDRESS #define TC61 TC_REFANY IMPORT TYPE TC_REFANY; IMPORT char VS_REFANY__4b8748e831fc107a; #define t76 ADDRESS #define TC76 TC_NULL IMPORT TYPE TC_NULL; IMPORT char VS_NULL__fb50c7d53bec30dc; #line 73 "Inc.m3" typedef t75 (*t1)(); #line 35 typedef signed_char t2; #line 19 "../Interfaces/M3.i3" #define t5 ADDRESS #define TC5 TC_M3__Temp IMPORT TYPE TC_M3__Temp; #line 19 IMPORT char VS_M3__Temp__450b691937f03dae; #line 30 "Inc.m3" typedef t5 (*t7)(); #line 20 typedef t8 (*t9)(); #line 17 "../Interfaces/CallExpr.i3" #define t10 ADDRESS #define TC10 TC_CallExpr__MethodList IMPORT TYPE TC_CallExpr__MethodList; #line 17 IMPORT char VS_CallExpr__MethodList__7e87c2d720444b71; typedef unsigned char t11; #line 22 "../Interfaces/IntegerExpr.i3" typedef t11 (*t12)(); #line 12 typedef t3 (*t13)(); #line 27 "../Interfaces/Emit.i3" typedef signed_char t14; #line 63 typedef t14 (*t15)(); #define t16 ADDRESS #define TC16 TC_TEXT IMPORT TYPE TC_TEXT; IMPORT char VS_TEXT__b7a92447326386f5; #define t16_MapProc TC_TEXT->mapProc typedef signed_char t53; #line 13 "../Interfaces/String.i3" #define t19 ADDRESS #define TC19 TC_String__T IMPORT TYPE TC_String__T; #line 13 IMPORT char VS_String__T__3a6c7dc12615e4ee; #line 65 "../Interfaces/Token.i3" #define t46 t59 typedef struct { t19 elts[100]; } t54; #line 17 "../Interfaces/String.i3" typedef struct { t4 _top; t54 _stk; } t17; #line 16 "../Interfaces/Variable.i3" #define t18 ADDRESS #define TC18 TC_Variable__T IMPORT TYPE TC_Variable__T; #line 16 IMPORT char VS_Variable__T__be7ead4a3afd8be5; typedef double t21; typedef unsigned char t22; #line 37 "../Interfaces/Procedure.i3" #define t23 t59 #define t24 ADDRESS #define TC24 TC_Procedure__T IMPORT TYPE TC_Procedure__T; #line 15 IMPORT char VS_Procedure__T__be7ead4a3afd8be5; #line 14 "../Interfaces/Decl.i3" typedef struct { t19 _alias; t11 _isExternal; t11 _isInline; t11 _isUnused; t11 _isObsolete; } t25; #line 15 "../Interfaces/Token.i3" typedef unsigned char t47; #line 45 typedef struct { int elts[4]; } t26; #line 14 "../Interfaces/M3.i3" #define t27 ADDRESS #define TC27 TC_M3__Scope IMPORT TYPE TC_M3__Scope; #line 14 IMPORT char VS_M3__Scope__6e6d8848308d8a2d; #line 24 "../Interfaces/Variable.i3" typedef t18 (*t28)(); #line 14 "../Interfaces/String.i3" typedef struct { t19 _module; t19 _item; } t30; #line 38 "../Interfaces/Scope.i3" typedef t20 (*t31)(); #line 31 typedef t27 (*t32)(); #line 27 "../Interfaces/CallExpr.i3" typedef t10 (*t34)(); #define t62 ADDRESS typedef struct { TYPE self; int private; } t62_methods; #define t62_msize (sizeof (t62_methods)) typedef struct { ADDRESS methods; } t62_fields; #define t62_size (sizeof (t62_fields)) #define TC62 TC_ROOT IMPORT TYPE TC_ROOT; IMPORT char VS_ROOT__349f58f628be0ac6; #define t62_MapProc TC_ROOT->mapProc #define t36 ADDRESS #define TC36 TC_Wr__T IMPORT TYPE TC_Wr__T; #line 90 ".ROOT/.boots/corelib/Interfaces/Wr.i3" IMPORT char VS_Wr__T__2555b70b3f7780b1; #define t36_MapProc TC_Wr__T->mapProc typedef unsigned char t38; #line 40 "../Interfaces/Value.i3" typedef t38 (*t39)(); #line 121 "../Interfaces/Type.i3" typedef t37 (*t41)(); #line 97 typedef t4 (*t42)(); #line 65 "../Interfaces/Token.i3" typedef struct { t19 elts[97]; } t48; typedef int t49; #line 37 "../Interfaces/String.i3" typedef t16 (*t50)(); #line 34 typedef t19 (*t51)(); #line 28 #define t52 t59 typedef signed_char t55; #line 67 ".ROOT/.boots/corelib/Interfaces/Text.i3" typedef t55 (*t56)(); #line 26 typedef t49 (*t57)(); #line 23 typedef t22 (*t58)(); #line 91 ".ROOT/.boots/corelib/Interfaces/Wr.i3" typedef unsigned char t60; #line 15 ".ROOT/.boots/corelib/Interfaces/Thread.i3" #define t63 ADDRESS #define TC63 TC_Thread__T IMPORT TYPE TC_Thread__T; #line 15 IMPORT char VS_Thread__T__2555b70b3f7780b1; #define t63_MapProc TC_Thread__T->mapProc typedef t61 (*t64)(); #define t65 ADDRESS #define TC65 TC_Thread__Condition IMPORT TYPE TC_Thread__Condition; #line 21 IMPORT char VS_Thread__Condition__26d5968239e08f4e; #define t65_MapProc TC_Thread__Condition->mapProc #define t66 ADDRESS #define TC66 TC_MUTEX IMPORT TYPE TC_MUTEX; IMPORT char VS_MUTEX__1f9d4e89391ab815; #define t66_MapProc TC_MUTEX->mapProc typedef t63 (*t67)(); #line 23 #define t68 ADDRESS #line 23 typedef struct { t64 _apply; } t68_methods; #define t68_msize (sizeof (t68_methods)) typedef struct { #line 23 int filler; } t68_fields; #define t68_size (sizeof (t68_fields)) #define TC68 TC_Thread__Closure IMPORT TYPE TC_Thread__Closure; #line 23 IMPORT char VS_Thread__Closure__7fb5c6232c5a658a; #define t68_MapProc TC_Thread__Closure->mapProc typedef t65 (*t69)(); typedef t66 (*t70)(); #line 28 #define t71 ADDRESS #line 28 typedef struct { int filler; } t71_methods; #define t71_msize (sizeof (t71_methods)) typedef struct { #line 28 t49 _stackSize; } t71_fields; #define t71_size (sizeof (t71_fields)) #define TC71 TC_Thread__SizedClosure IMPORT TYPE TC_Thread__SizedClosure; #line 28 IMPORT char VS_Thread__SizedClosure__8a46717d2eae7b07; #define t71_MapProc TC_Thread__SizedClosure->mapProc #define t73 ADDRESS #define TC73 TC_M3__Stmt IMPORT TYPE TC_M3__Stmt; #line 17 "../Interfaces/M3.i3" IMPORT char VS_M3__Stmt__376b307627fc1f2f; typedef CLOSURE t74; typedef float t77; #line 11 "Inc.m3" IMPORT INITLINK* Address__init; IMPORT INITLINK* IntegerExpr__init; IMPORT INITLINK* Target__init; IMPORT INITLINK* Temp__init; #line 11 IMPORT INITLINK* Void__init; IMPORT INITLINK* Emit__init; IMPORT INITLINK* Dec__init; IMPORT INITLINK* Procedure__init; IMPORT INITLINK* Type__init; #line 11 IMPORT INITLINK* Expr__init; IMPORT INITLINK* CallExpr__init; IMPORT INITLINK* Inc__init; IMPORT t8 _Address__T; IMPORT char VS_Address__T__8a8b518c29ea7c1d; #line 11 IMPORT t3 _IntegerExpr__New (); IMPORT char VS_IntegerExpr__New__864172512ee81acd; IMPORT char VS_Target__MAXINT__6ffcde5a2f0f51a2; #line 11 IMPORT char VS_Target__MININT__62f667293f10b631; IMPORT TYPE TC_Temp__T; IMPORT char VS_Temp__T__3a6c7dc12615e4ee; IMPORT t75 _Temp__Free (); #line 11 IMPORT char VS_Temp__Free__3b952a2225c26846; IMPORT t8 _Void__T; IMPORT char VS_Void__T__d44caf853dc63223; IMPORT char VS_Emit__MaxStream__cf0a0e8934c9c9f3; #line 11 IMPORT TYPE TC_Emit__Format; IMPORT char VS_Emit__Format__bc4a2b083b93bbd7; IMPORT t75 _Emit__Op (); IMPORT char VS_Emit__Op__072646cc27c8ae10; #line 11 IMPORT t75 _Emit__OpI (); IMPORT char VS_Emit__OpI__02cb878634bb9f49; IMPORT t75 _Emit__OpII (); IMPORT char VS_Emit__OpII__2247fe46332f901b; #line 11 IMPORT t75 _Emit__OpTT (); IMPORT char VS_Emit__OpTT__cba0ce912431e01c; IMPORT t75 _Dec__DoCheck (); IMPORT char VS_Dec__DoCheck__9c40910039427330; #line 11 IMPORT t75 _Procedure__Define (); IMPORT char VS_Procedure__Define__23155a563959ddb7; IMPORT TYPE TC_Type__T; IMPORT char VS_Type__T__2446b70b3f7780a5; #line 11 IMPORT t4 _Type__Name (); IMPORT char VS_Type__Name__f99416972257a869; IMPORT t11 _Type__IsSubtype (); IMPORT char VS_Type__IsSubtype__8591fba5245cb882; #line 11 IMPORT TYPE TC_Expr__T; IMPORT char VS_Expr__T__2446b70b3f7780a5; IMPORT t8 _Expr__TypeOf (); IMPORT char VS_Expr__TypeOf__fef0a11b388c64fa; #line 11 IMPORT t75 _Expr__GetBounds (); IMPORT char VS_Expr__GetBounds__b20ec781333da5e4; IMPORT t5 _Expr__Compile (); IMPORT char VS_Expr__Compile__a7e0cc4029a2ec76; #line 11 IMPORT t5 _Expr__CompileLValue (); IMPORT char VS_Expr__CompileLValue__46b9da092357ba5c; IMPORT t10 _CallExpr__NewMethodList (); #line 11 IMPORT char VS_CallExpr__NewMethodList__1e86caa631267427; IMPORT t11 _CallExpr__IsNever (); IMPORT char VS_CallExpr__IsNever__ed0ffc703e490927; #line 11 IMPORT t3 _CallExpr__NoValue (); IMPORT char VS_CallExpr__NoValue__93a279c02a9c62e4; EXPORT t75 _Inc__Initialize (); EXPORT char VS_Inc__Initialize__93f33dac387f79f0 = '\0'; #line 11 PRIVATE t10 _Inc__Z; PRIVATE t8 _Inc__Bind (); PRIVATE t75 _Inc__Check (); PRIVATE t5 _Inc__Compile (); #line 20 "Inc.m3" PRIVATE t8 _Inc__Bind (_proc, _args) t3 _proc; t6 _args; { #line 20 "Inc.m3" { auto t8 __result; { CHECKSTACKOVERFLOW; __result = _Void__T; return __result; } } }; #line 25 "Inc.m3" PRIVATE t75 _Inc__Check (_proc, _args) t3 _proc; t6 * _args; { #line 25 "Inc.m3" { { CHECKSTACKOVERFLOW; _Dec__DoCheck (((ADDRESS)(& txt1.str)), (*_args)); } } }; #line 30 "Inc.m3" PRIVATE t5 _Inc__Compile (_proc, _args) t3 _proc; t6 _args; { t49 z0; t6 z2; t11 z3; t6 z1; t4 z4; t4 z5; t3 z6; t11 z7; t6 z8; t8 z9; t5 z10; t4 z11; t4 z12; #line 30 "Inc.m3" { auto t5 _t1; auto t5 _t2; auto t4 _bmin; auto t4 _bmax; auto t4 _imin; auto t4 _imax; auto t3 _inc; auto t2 _check; auto t5 __result; #line 30 { ZERO1B (& _check); ZERO1B ((& _check)); #line 30 CHECKSTACKOVERFLOW; NILCHECKB (z2 = _args); z0 = (*((t40*) z2)).size[0]; z3 = (z0 > 1 ); if (z3) { NILCHECKB (z1 = _args); { register t59* array = & (*((t40*) z1)); z5 = 1 ; if (z5 >= (array->size[0])) RANGEFAULT; #line 38 z4 = (int)(array->elts + (z5 * 4)); }; _inc = (*(t3*)z4); goto if_1_end; }; z6 = _IntegerExpr__New ( 1 ); _inc = z6; if_1_end: /**/; NILCHECKB (z2 = _args); { register t59* array = & (*((t40*) z2)); z5 = 0 ; if (z5 >= (array->size[0])) RANGEFAULT; #line 41 z4 = (int)(array->elts + (z5 * 4)); }; _Expr__GetBounds ((*(t3*)z4), &_bmin, &_bmax); _Expr__GetBounds (_inc, &_imin, &_imax); z3 = (_bmin != -2147483648 ); z7 = 0; if (z3) { z3 = (_imin < 0 ); z7 = z3; }; if (z7) { if ((_check += 1 ) > 3) RANGEFAULT; #line 44 goto if_2_end; }; if_2_end: /**/; z3 = (_bmax != 2147483647 ); z7 = 0; if (z3) { z3 = (_imax > 0 ); z7 = z3; }; if (z7) { if ((_check += 2 ) > 3) RANGEFAULT; #line 45 goto if_3_end; }; if_3_end: /**/; NILCHECKB (z8 = _args); { register t59* array = & (*((t40*) z8)); z5 = 0 ; if (z5 >= (array->size[0])) RANGEFAULT; #line 46 z4 = (int)(array->elts + (z5 * 4)); }; z9 = _Expr__TypeOf ((*(t3*)z4)); z3 = _Type__IsSubtype (z9, _Address__T); #line 46 if (z3) { _check = 0 ; goto if_4_end; }; if_4_end: /**/; NILCHECKB (z2 = _args); { register t59* array = & (*((t40*) z2)); z5 = 0 ; if (z5 >= (array->size[0])) RANGEFAULT; #line 48 z4 = (int)(array->elts + (z5 * 4)); }; z10 = _Expr__CompileLValue ((*(t3*)z4)); _t1 = z10; z10 = _Expr__Compile (_inc); _t2 = z10; switch (_check) { case 0: _Emit__OpTT (((ADDRESS)(& txt2.str)), _t1, _t2); break; case 1: _Emit__OpTT (((ADDRESS)(& txt3.str)), _t1, _t2); _Emit__OpI (((ADDRESS)(& txt4.str)), _bmin); break; case 2: _Emit__OpTT (((ADDRESS)(& txt3.str)), _t1, _t2); _Emit__OpI (((ADDRESS)(& txt5.str)), _bmax); break; case 3: _Emit__Op (((ADDRESS)(& txt6.str))); NILCHECKB (z8 = _args); { register t59* array = & (*((t40*) z8)); z12 = 0 ; if (z12 >= (array->size[0])) RANGEFAULT; #line 62 z11 = (int)(array->elts + (z12 * 4)); }; z9 = _Expr__TypeOf ((*(t3*)z11)); z4 = _Type__Name (z9); _Emit__OpI (((ADDRESS)(& txt7.str)), z4); _Emit__OpTT (((ADDRESS)(& txt8.str)), _t1, _t2); _Emit__OpII (((ADDRESS)(& txt9.str)), _bmin, _bmax); _Emit__Op (((ADDRESS)(& txt10.str))); break; default: /**/; }; _Temp__Free (_t2); _Temp__Free (_t1); __result = _t1; return __result; } } }; #line 73 "Inc.m3" EXPORT t75 _Inc__Initialize () { t10 z10; #line 73 "Inc.m3" { { CHECKSTACKOVERFLOW; z10 = _CallExpr__NewMethodList ( 1 , 2 , 0 , _Inc__Bind, _Inc__Check, _Inc__Compile, _CallExpr__NoValue, _CallExpr__IsNever, _CallExpr__IsNever); #line 75 _Inc__Z = z10; _Procedure__Define (((ADDRESS)(& txt1.str)), _Inc__Z, 0); } } }; PRIVATE int init_done = -1; #line 79 "Inc.m3" PRIVATE void Inc__initProc (g) int g; { #line 79 "Inc.m3" if (init_done >= g) return; init_done = g; INITIALIZE (& Inc__init); INITIALIZE (& Address__init); INITIALIZE (& IntegerExpr__init); #line 79 INITIALIZE (& Target__init); INITIALIZE (& Temp__init); INITIALIZE (& Void__init); INITIALIZE (& Emit__init); INITIALIZE (& Dec__init); #line 79 INITIALIZE (& Procedure__init); INITIALIZE (& Type__init); INITIALIZE (& Expr__init); INITIALIZE (& CallExpr__init); return; #line 79 }; PRIVATE INITLINK me_0 ={(INITLINK*)NIL, 0, Inc__initProc}; static char* VSimports[] = { &VS_Address__T__8a8b518c29ea7c1d, &VS_IntegerExpr__New__864172512ee81acd, &VS_Target__MAXINT__6ffcde5a2f0f51a2, &VS_Target__MININT__62f667293f10b631, &VS_Temp__T__3a6c7dc12615e4ee, &VS_Temp__Free__3b952a2225c26846, &VS_Void__T__d44caf853dc63223, &VS_Emit__MaxStream__cf0a0e8934c9c9f3, &VS_Emit__Format__bc4a2b083b93bbd7, &VS_Emit__Op__072646cc27c8ae10, &VS_Emit__OpI__02cb878634bb9f49, &VS_Emit__OpII__2247fe46332f901b, &VS_Emit__OpTT__cba0ce912431e01c, &VS_Dec__DoCheck__9c40910039427330, &VS_Procedure__T__be7ead4a3afd8be5, &VS_Procedure__Define__23155a563959ddb7, &VS_Type__T__2446b70b3f7780a5, &VS_Type__Map__41dd9f4b33104fce, &VS_Type__List__5791758e343becc1, &VS_Type__Name__f99416972257a869, &VS_Type__IsSubtype__8591fba5245cb882, &VS_Expr__T__2446b70b3f7780a5, &VS_Expr__List__3f87eceb2b9a246a, &VS_Expr__TypeOf__fef0a11b388c64fa, &VS_Expr__GetBounds__b20ec781333da5e4, &VS_Expr__Compile__a7e0cc4029a2ec76, &VS_Expr__CompileLValue__46b9da092357ba5c, &VS_CallExpr__MethodList__7e87c2d720444b71, &VS_CallExpr__NewMethodList__1e86caa631267427, &VS_CallExpr__IsNever__ed0ffc703e490927, &VS_CallExpr__NoValue__93a279c02a9c62e4, NIL }; void Inc__MLink (phase) int phase; { switch (phase) { case 0: { me_0.link = Inc__init; Inc__init = & me_0; break; }; case 1: { break; }; case 2: { break; }; }; };