#include "M3Runtime.h" typedef struct { int tc; char* str; int len; } TXT; PRIVATE TXT txt1 = { 3, "DISPOSE", 8}; PRIVATE TXT txt2 = { 3, "DISPOSE: unsafe operation", 26}; PRIVATE TXT txt3 = { 3, "DISPOSE: must be applied to a reference type", 45}; PRIVATE TXT txt4 = { 3, "DISPOSE: must be applied to a fixed reference type", 51 }; PRIVATE TXT txt5 = { 3, "TVDISPOSE(& @);\012", 17}; PRIVATE TXT txt6 = { 3, "TDISPOSE(@);\012", 14}; PRIVATE TXT txt7 = { 3, "UVDISPOSE(& @);\012", 17}; PRIVATE TXT txt8 = { 3, "UDISPOSE(@);\012", 14}; #line 14 "../Interfaces/Expr.i3" #define t5 ADDRESS #define t76 void #define t73 ADDRESS typedef struct { TYPE self; int private; } t73_methods; #define t73_msize (sizeof (t73_methods)) typedef struct { ADDRESS methods; } t73_fields; #define t73_size (sizeof (t73_fields)) #define TC73 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]; } t60; #line 14 "../Interfaces/Expr.i3" #define t42 t60 #define TC5 TC_Expr__List IMPORT TYPE TC_Expr__List; #line 14 IMPORT char VS_Expr__List__3f87eceb2b9a246a; #line 17 "../Interfaces/Scope.i3" #define t32 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 t34 t60 #define TC32 TC_Scope__ValueList IMPORT TYPE TC_Scope__ValueList; #line 17 IMPORT char VS_Scope__ValueList__64bf053e22e4e53c; #define t37 ADDRESS typedef int t9; #define TC37 TC_ADDRESS IMPORT TYPE TC_ADDRESS; IMPORT char VS_ADDRESS__30f7308738738b44; #line 16 "../Interfaces/Type.i3" #define t39 ADDRESS #define t47 t60 #define TC39 TC_Type__Map IMPORT TYPE TC_Type__Map; #line 16 IMPORT char VS_Type__Map__41dd9f4b33104fce; #define t45 ADDRESS #define t4 ADDRESS #define TC4 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 { t45 _next; t4 _type; } t46; #define TC45 TC_Type__List IMPORT TYPE TC_Type__List; #line 17 IMPORT char VS_Type__List__5791758e343becc1; #define t62 ADDRESS #define TC62 TC_REFANY IMPORT TYPE TC_REFANY; IMPORT char VS_REFANY__4b8748e831fc107a; #define t77 ADDRESS #define TC77 TC_NULL IMPORT TYPE TC_NULL; IMPORT char VS_NULL__fb50c7d53bec30dc; #line 65 "Dispose.m3" typedef t76 (*t1)(); #line 19 "../Interfaces/M3.i3" #define t2 ADDRESS #define TC2 TC_M3__Temp IMPORT TYPE TC_M3__Temp; #line 19 IMPORT char VS_M3__Temp__450b691937f03dae; #line 39 "Dispose.m3" typedef t2 (*t6)(); #line 20 typedef t4 (*t7)(); #line 17 "../Interfaces/CallExpr.i3" #define t8 ADDRESS #define TC8 TC_CallExpr__MethodList IMPORT TYPE TC_CallExpr__MethodList; #line 17 IMPORT char VS_CallExpr__MethodList__7e87c2d720444b71; #define t10 ADDRESS #define TC10 TC_TEXT IMPORT TYPE TC_TEXT; IMPORT char VS_TEXT__b7a92447326386f5; #define t10_MapProc TC_TEXT->mapProc #define t11 ADDRESS #define TC11 TC_String__T IMPORT TYPE TC_String__T; #line 13 "../Interfaces/String.i3" IMPORT char VS_String__T__3a6c7dc12615e4ee; typedef struct { t11 _module; t11 _item; } t12; #line 32 "../Interfaces/Module.i3" typedef t11 (*t13)(); #line 14 "../Interfaces/M3.i3" #define t14 ADDRESS #define TC14 TC_M3__Scope IMPORT TYPE TC_M3__Scope; #line 14 IMPORT char VS_M3__Scope__6e6d8848308d8a2d; #line 14 "../Interfaces/Module.i3" #define t15 ADDRESS #define TC15 TC_Module__T IMPORT TYPE TC_Module__T; #line 14 IMPORT char VS_Module__T__be7ead4a3afd8be5; #line 30 typedef t14 (*t16)(); typedef unsigned char t17; #line 28 typedef t17 (*t18)(); #line 18 typedef t15 (*t19)(); #line 27 "../Interfaces/Emit.i3" typedef signed_char t21; #line 63 typedef t21 (*t22)(); #line 19 "../Interfaces/String.i3" typedef signed_char t54; #line 65 "../Interfaces/Token.i3" #define t48 t60 typedef struct { t11 elts[100]; } t55; #line 17 "../Interfaces/String.i3" typedef struct { t9 _top; t55 _stk; } t23; #line 16 "../Interfaces/Variable.i3" #define t24 ADDRESS #define TC24 TC_Variable__T IMPORT TYPE TC_Variable__T; #line 16 IMPORT char VS_Variable__T__be7ead4a3afd8be5; typedef double t25; typedef unsigned char t26; #line 37 "../Interfaces/Procedure.i3" #define t27 t60 #define t28 ADDRESS #define TC28 TC_Procedure__T IMPORT TYPE TC_Procedure__T; #line 15 IMPORT char VS_Procedure__T__be7ead4a3afd8be5; #line 14 "../Interfaces/Decl.i3" typedef struct { t11 _alias; t17 _isExternal; t17 _isInline; t17 _isUnused; t17 _isObsolete; } t29; #line 15 "../Interfaces/Token.i3" typedef unsigned char t49; #line 45 typedef struct { int elts[4]; } t30; #line 24 "../Interfaces/Variable.i3" typedef t24 (*t31)(); #line 38 "../Interfaces/Scope.i3" typedef t20 (*t33)(); #line 39 "../Interfaces/CallExpr.i3" typedef t3 (*t35)(); #line 27 typedef t8 (*t36)(); #define t63 ADDRESS typedef struct { TYPE self; int private; } t63_methods; #define t63_msize (sizeof (t63_methods)) typedef struct { ADDRESS methods; } t63_fields; #define t63_size (sizeof (t63_fields)) #define TC63 TC_ROOT IMPORT TYPE TC_ROOT; IMPORT char VS_ROOT__349f58f628be0ac6; #define t63_MapProc TC_ROOT->mapProc #define t38 ADDRESS #define TC38 TC_Wr__T IMPORT TYPE TC_Wr__T; #line 90 ".ROOT/.boots/corelib/Interfaces/Wr.i3" IMPORT char VS_Wr__T__2555b70b3f7780b1; #define t38_MapProc TC_Wr__T->mapProc typedef unsigned char t40; #line 40 "../Interfaces/Value.i3" typedef t40 (*t41)(); #line 121 "../Interfaces/Type.i3" typedef t39 (*t43)(); #line 97 typedef t9 (*t44)(); #line 65 "../Interfaces/Token.i3" typedef struct { t11 elts[97]; } t50; typedef int t51; #line 37 "../Interfaces/String.i3" typedef t10 (*t52)(); #line 28 #define t53 t60 typedef signed_char t56; #line 67 ".ROOT/.boots/corelib/Interfaces/Text.i3" typedef t56 (*t57)(); #line 26 typedef t51 (*t58)(); #line 23 typedef t26 (*t59)(); #line 91 ".ROOT/.boots/corelib/Interfaces/Wr.i3" typedef unsigned char t61; #line 15 ".ROOT/.boots/corelib/Interfaces/Thread.i3" #define t64 ADDRESS #define TC64 TC_Thread__T IMPORT TYPE TC_Thread__T; #line 15 IMPORT char VS_Thread__T__2555b70b3f7780b1; #define t64_MapProc TC_Thread__T->mapProc typedef t62 (*t65)(); #define t66 ADDRESS #define TC66 TC_Thread__Condition IMPORT TYPE TC_Thread__Condition; #line 21 IMPORT char VS_Thread__Condition__26d5968239e08f4e; #define t66_MapProc TC_Thread__Condition->mapProc #define t67 ADDRESS #define TC67 TC_MUTEX IMPORT TYPE TC_MUTEX; IMPORT char VS_MUTEX__1f9d4e89391ab815; #define t67_MapProc TC_MUTEX->mapProc typedef t64 (*t68)(); #line 23 #define t69 ADDRESS #line 23 typedef struct { t65 _apply; } t69_methods; #define t69_msize (sizeof (t69_methods)) typedef struct { #line 23 int filler; } t69_fields; #define t69_size (sizeof (t69_fields)) #define TC69 TC_Thread__Closure IMPORT TYPE TC_Thread__Closure; #line 23 IMPORT char VS_Thread__Closure__7fb5c6232c5a658a; #define t69_MapProc TC_Thread__Closure->mapProc typedef t66 (*t70)(); typedef t67 (*t71)(); #line 28 #define t72 ADDRESS #line 28 typedef struct { int filler; } t72_methods; #define t72_msize (sizeof (t72_methods)) typedef struct { #line 28 t51 _stackSize; } t72_fields; #define t72_size (sizeof (t72_fields)) #define TC72 TC_Thread__SizedClosure IMPORT TYPE TC_Thread__SizedClosure; #line 28 IMPORT char VS_Thread__SizedClosure__8a46717d2eae7b07; #define t72_MapProc TC_Thread__SizedClosure->mapProc #define t74 ADDRESS #define TC74 TC_M3__Stmt IMPORT TYPE TC_M3__Stmt; #line 17 "../Interfaces/M3.i3" IMPORT char VS_M3__Stmt__376b307627fc1f2f; typedef CLOSURE t75; typedef float t78; #line 10 "Dispose.m3" IMPORT INITLINK* Temp__init; IMPORT INITLINK* ObjectAdr__init; IMPORT INITLINK* ObjectRef__init; IMPORT INITLINK* Error__init; #line 10 IMPORT INITLINK* Module__init; IMPORT INITLINK* Refany__init; IMPORT INITLINK* Address__init; IMPORT INITLINK* Emit__init; #line 10 IMPORT INITLINK* Void__init; IMPORT INITLINK* Procedure__init; IMPORT INITLINK* Type__init; IMPORT INITLINK* Expr__init; IMPORT INITLINK* CallExpr__init; #line 10 IMPORT INITLINK* Dispose__init; IMPORT TYPE TC_Temp__T; IMPORT char VS_Temp__T__3a6c7dc12615e4ee; IMPORT t76 _Temp__Free (); #line 10 IMPORT char VS_Temp__Free__3b952a2225c26846; IMPORT t4 _ObjectAdr__T; IMPORT char VS_ObjectAdr__T__7898cb0a38c2f52a; IMPORT t4 _ObjectRef__T; #line 10 IMPORT char VS_ObjectRef__T__a4b0a7f73562a7cb; IMPORT t76 _Error__Msg (); IMPORT char VS_Error__Msg__4d119a332467757f; #line 10 IMPORT t17 _Module__IsSafe (); IMPORT char VS_Module__IsSafe__13f026ba31f586b3; IMPORT t4 _Refany__T; IMPORT char VS_Refany__T__f1d580683a3395ec; #line 10 IMPORT t4 _Address__T; IMPORT char VS_Address__T__8a8b518c29ea7c1d; IMPORT char VS_Emit__MaxStream__cf0a0e8934c9c9f3; #line 10 IMPORT TYPE TC_Emit__Format; IMPORT char VS_Emit__Format__bc4a2b083b93bbd7; IMPORT t76 _Emit__OpT (); IMPORT char VS_Emit__OpT__764bdffe21d249e8; #line 10 IMPORT t4 _Void__T; IMPORT char VS_Void__T__d44caf853dc63223; IMPORT t76 _Procedure__Define (); IMPORT char VS_Procedure__Define__23155a563959ddb7; #line 10 IMPORT TYPE TC_Type__T; IMPORT char VS_Type__T__2446b70b3f7780a5; IMPORT t4 _Type__Base (); IMPORT char VS_Type__Base__2bebd0333659a92c; #line 10 IMPORT t17 _Type__IsTraced (); IMPORT char VS_Type__IsTraced__1998431b3bdeb797; IMPORT t17 _Type__IsEqual (); IMPORT char VS_Type__IsEqual__4098bc3f32325d05; #line 10 IMPORT t17 _Type__IsSubtype (); IMPORT char VS_Type__IsSubtype__8591fba5245cb882; IMPORT TYPE TC_Expr__T; IMPORT char VS_Expr__T__2446b70b3f7780a5; #line 10 IMPORT t4 _Expr__TypeOf (); IMPORT char VS_Expr__TypeOf__fef0a11b388c64fa; IMPORT t17 _Expr__IsDesignator (); IMPORT char VS_Expr__IsDesignator__e3556614321cb906; #line 10 IMPORT t2 _Expr__Compile (); IMPORT char VS_Expr__Compile__a7e0cc4029a2ec76; IMPORT t2 _Expr__CompileLValue (); IMPORT char VS_Expr__CompileLValue__46b9da092357ba5c; #line 10 IMPORT t8 _CallExpr__NewMethodList (); IMPORT char VS_CallExpr__NewMethodList__1e86caa631267427; IMPORT t17 _CallExpr__IsNever (); #line 10 IMPORT char VS_CallExpr__IsNever__ed0ffc703e490927; IMPORT t3 _CallExpr__NoValue (); IMPORT char VS_CallExpr__NoValue__93a279c02a9c62e4; #line 10 EXPORT t76 _Dispose__Initialize (); EXPORT char VS_Dispose__Initialize__930fb55c2499c2b7 = '\0'; PRIVATE t8 _Dispose__Z; #line 10 PRIVATE t4 _Dispose__Bind (); PRIVATE t76 _Dispose__Check (); PRIVATE t2 _Dispose__Compile (); #line 20 "Dispose.m3" PRIVATE t4 _Dispose__Bind (_proc, _args) t3 _proc; t5 _args; { #line 20 "Dispose.m3" { auto t4 __result; { CHECKSTACKOVERFLOW; __result = _Void__T; return __result; } } }; #line 25 "Dispose.m3" PRIVATE t76 _Dispose__Check (_proc, _args) t3 _proc; t5 * _args; { t5 z2; t9 z4; t9 z5; t4 z3; t17 z1; t17 z6; t17 z0; #line 25 "Dispose.m3" { auto t4 _t; { CHECKSTACKOVERFLOW; NILCHECKB (z2 = (*_args)); { register t60* array = & (*((t42*) z2)); z5 = 0 ; if (z5 >= (array->size[0])) RANGEFAULT; #line 28 z4 = (int)(array->elts + (z5 * 4)); }; z3 = _Expr__TypeOf ((*(t3*)z4)); _t = z3; z1 = _Module__IsSafe (); if (z1) { _Error__Msg (((ADDRESS)(& txt2.str))); goto if_1_end; }; if_1_end: /**/; z6 = _Type__IsSubtype (_t, _Refany__T); z0 = ! z6; z1 = 0; if (z0) { z6 = _Type__IsSubtype (_t, _Address__T); z0 = ! z6; #line 30 z1 = z0; }; if (z1) { _Error__Msg (((ADDRESS)(& txt3.str))); goto if_2_end; }; z6 = _Type__IsEqual (_t, _Refany__T); z0 = 1; if (! z6) { #line 32 z6 = _Type__IsEqual (_t, _Address__T); z0 = z6; }; z1 = 1; if (! z0) { z6 = _Type__IsEqual (_t, _ObjectRef__T); z1 = z6; #line 32 }; z0 = 1; if (! z1) { z6 = _Type__IsEqual (_t, _ObjectAdr__T); z0 = z6; }; if (z0) { _Error__Msg (((ADDRESS)(& txt4.str))); goto if_2_end; }; if_2_end: /**/; } } }; #line 39 "Dispose.m3" PRIVATE t2 _Dispose__Compile (_proc, _args) t3 _proc; t5 _args; { t5 z1; t9 z3; t9 z4; t4 z5; t4 z2; t17 z6; t2 z7; #line 39 "Dispose.m3" { auto t4 _t; auto t3 _e; auto t2 _x; auto t2 __result; { CHECKSTACKOVERFLOW; NILCHECKB (z1 = _args); { register t60* array = & (*((t42*) z1)); z4 = 0 ; if (z4 >= (array->size[0])) RANGEFAULT; #line 42 z3 = (int)(array->elts + (z4 * 4)); }; _e = (*(t3*)z3); z5 = _Expr__TypeOf (_e); z2 = _Type__Base (z5); _t = z2; z6 = _Type__IsTraced (_t); if (z6) { z6 = _Expr__IsDesignator (_e); if (z6) { z7 = _Expr__CompileLValue (_e); _x = z7; _Emit__OpT (((ADDRESS)(& txt5.str)), _x); goto if_4_end; }; z7 = _Expr__Compile (_e); _x = z7; _Emit__OpT (((ADDRESS)(& txt6.str)), _x); if_4_end: /**/; goto if_3_end; }; z6 = _Expr__IsDesignator (_e); if (z6) { z7 = _Expr__CompileLValue (_e); _x = z7; _Emit__OpT (((ADDRESS)(& txt7.str)), _x); goto if_5_end; }; z7 = _Expr__Compile (_e); _x = z7; _Emit__OpT (((ADDRESS)(& txt8.str)), _x); if_5_end: /**/; if_3_end: /**/; _Temp__Free (_x); __result = _x; return __result; } } }; #line 65 "Dispose.m3" EXPORT t76 _Dispose__Initialize () { t8 z10; #line 65 "Dispose.m3" { { CHECKSTACKOVERFLOW; z10 = _CallExpr__NewMethodList ( 1 , 1 , 0 , _Dispose__Bind, _Dispose__Check, _Dispose__Compile, _CallExpr__NoValue, #line 67 _CallExpr__IsNever, _CallExpr__IsNever); _Dispose__Z = z10; _Procedure__Define (((ADDRESS)(& txt1.str)), _Dispose__Z, 0); } } }; PRIVATE int init_done = -1; #line 71 "Dispose.m3" PRIVATE void Dispose__initProc (g) int g; { #line 71 "Dispose.m3" if (init_done >= g) return; init_done = g; INITIALIZE (& Dispose__init); INITIALIZE (& Temp__init); INITIALIZE (& ObjectAdr__init); #line 71 INITIALIZE (& ObjectRef__init); INITIALIZE (& Error__init); INITIALIZE (& Module__init); INITIALIZE (& Refany__init); INITIALIZE (& Address__init); #line 71 INITIALIZE (& Emit__init); INITIALIZE (& Void__init); INITIALIZE (& Procedure__init); INITIALIZE (& Type__init); INITIALIZE (& Expr__init); #line 71 INITIALIZE (& CallExpr__init); return; }; PRIVATE INITLINK me_0 ={(INITLINK*)NIL, 0, Dispose__initProc}; static char* VSimports[] = { &VS_Temp__T__3a6c7dc12615e4ee, &VS_Temp__Free__3b952a2225c26846, &VS_ObjectAdr__T__7898cb0a38c2f52a, &VS_ObjectRef__T__a4b0a7f73562a7cb, &VS_Error__Msg__4d119a332467757f, &VS_Module__T__be7ead4a3afd8be5, &VS_Module__IsSafe__13f026ba31f586b3, &VS_Refany__T__f1d580683a3395ec, &VS_Address__T__8a8b518c29ea7c1d, &VS_Emit__MaxStream__cf0a0e8934c9c9f3, &VS_Emit__Format__bc4a2b083b93bbd7, &VS_Emit__OpT__764bdffe21d249e8, &VS_Void__T__d44caf853dc63223, &VS_Procedure__T__be7ead4a3afd8be5, &VS_Procedure__Define__23155a563959ddb7, &VS_Type__T__2446b70b3f7780a5, &VS_Type__Map__41dd9f4b33104fce, &VS_Type__List__5791758e343becc1, &VS_Type__Base__2bebd0333659a92c, &VS_Type__IsTraced__1998431b3bdeb797, &VS_Type__IsEqual__4098bc3f32325d05, &VS_Type__IsSubtype__8591fba5245cb882, &VS_Expr__T__2446b70b3f7780a5, &VS_Expr__List__3f87eceb2b9a246a, &VS_Expr__TypeOf__fef0a11b388c64fa, &VS_Expr__IsDesignator__e3556614321cb906, &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 Dispose__MLink (phase) int phase; { switch (phase) { case 0: { me_0.link = Dispose__init; Dispose__init = & me_0; break; }; case 1: { break; }; case 2: { break; }; }; };