#include "M3Runtime.h" typedef struct { int tc; char* str; int len; } TXT; PRIVATE TXT txt1 = { 3, "Xor", 4}; PRIVATE TXT txt2 = { 3, "@ = @ ^ @;\012", 12}; #line 14 "../Interfaces/Expr.i3" #define t5 ADDRESS #define t78 void #define t75 ADDRESS typedef struct { TYPE self; int private; } t75_methods; #define t75_msize (sizeof (t75_methods)) typedef struct { ADDRESS methods; } t75_fields; #define t75_size (sizeof (t75_fields)) #define TC75 TC_UNTRACED_ROOT IMPORT TYPE TC_UNTRACED_ROOT; IMPORT char VS_UNTRACED_ROOT__3e0964513fd6da20; #line 16 "../Interfaces/M3.i3" #define t4 ADDRESS #define TC4 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]; } t62; #line 14 "../Interfaces/Expr.i3" #define t44 t62 #define TC5 TC_Expr__List IMPORT TYPE TC_Expr__List; #line 14 IMPORT char VS_Expr__List__3f87eceb2b9a246a; #line 18 "../Interfaces/ProcType.i3" #define t19 ADDRESS #define t39 ADDRESS typedef int t3; #define TC39 TC_ADDRESS IMPORT TYPE TC_ADDRESS; IMPORT char VS_ADDRESS__30f7308738738b44; #line 13 "../Interfaces/String.i3" #define t22 ADDRESS #define TC22 TC_String__T IMPORT TYPE TC_String__T; #line 13 IMPORT char VS_String__T__3a6c7dc12615e4ee; typedef struct { t22 _module; t22 _item; } t24; #line 15 "../Interfaces/M3.i3" #define t11 ADDRESS #define TC11 TC_M3__Value IMPORT TYPE TC_M3__Value; #line 15 IMPORT char VS_M3__Value__6f64cf9c2cae25fb; #line 14 "../Interfaces/ProcType.i3" typedef struct { t19 _next; t24 _name; t11 _except; } t25; #define TC19 TC_ProcType__Raisee IMPORT TYPE TC_ProcType__Raisee; #line 18 IMPORT char VS_ProcType__Raisee__5fe771ff27c179d9; #line 17 "../Interfaces/Scope.i3" #define t38 ADDRESS #define t1 t62 #define TC38 TC_Scope__ValueList IMPORT TYPE TC_Scope__ValueList; #line 17 IMPORT char VS_Scope__ValueList__64bf053e22e4e53c; #line 16 "../Interfaces/Type.i3" #define t41 ADDRESS #define t48 t62 #define TC41 TC_Type__Map IMPORT TYPE TC_Type__Map; #line 16 IMPORT char VS_Type__Map__41dd9f4b33104fce; #define t46 ADDRESS #define t9 ADDRESS #define TC9 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 { t46 _next; t9 _type; } t47; #define TC46 TC_Type__List IMPORT TYPE TC_Type__List; #line 17 IMPORT char VS_Type__List__5791758e343becc1; #define t64 ADDRESS #define TC64 TC_REFANY IMPORT TYPE TC_REFANY; IMPORT char VS_REFANY__4b8748e831fc107a; #define t79 ADDRESS #define TC79 TC_NULL IMPORT TYPE TC_NULL; IMPORT char VS_NULL__fb50c7d53bec30dc; #line 50 "WordXor.m3" typedef t78 (*t2)(); #line 41 typedef t4 (*t6)(); #line 19 "../Interfaces/M3.i3" #define t7 ADDRESS #define TC7 TC_M3__Temp IMPORT TYPE TC_M3__Temp; #line 19 IMPORT char VS_M3__Temp__450b691937f03dae; #line 29 "WordXor.m3" typedef t7 (*t8)(); #line 19 typedef t9 (*t10)(); #line 17 typedef signed_char t12; typedef struct { t11 elts[2]; } t13; #line 17 "../Interfaces/CallExpr.i3" #define t14 ADDRESS #define TC14 TC_CallExpr__MethodList IMPORT TYPE TC_CallExpr__MethodList; #line 17 IMPORT char VS_CallExpr__MethodList__7e87c2d720444b71; typedef unsigned char t15; #line 32 "../Interfaces/ProcType.i3" typedef t15 (*t16)(); #line 28 typedef t3 (*t17)(); #line 27 typedef t14 (*t18)(); #line 14 "../Interfaces/M3.i3" #define t20 ADDRESS #define TC20 TC_M3__Scope IMPORT TYPE TC_M3__Scope; #line 14 IMPORT char VS_M3__Scope__6e6d8848308d8a2d; #line 24 "../Interfaces/ProcType.i3" typedef t20 (*t21)(); #line 15 "../Interfaces/Token.i3" typedef unsigned char t50; #line 45 typedef struct { int elts[4]; } t23; #line 13 "../Interfaces/Formal.i3" typedef unsigned char t26; typedef t11 (*t27)(); #line 63 "../Interfaces/Emit.i3" typedef t12 (*t28)(); #define t29 ADDRESS #define TC29 TC_TEXT IMPORT TYPE TC_TEXT; IMPORT char VS_TEXT__b7a92447326386f5; #define t29_MapProc TC_TEXT->mapProc typedef signed_char t56; #line 65 "../Interfaces/Token.i3" #define t49 t62 typedef struct { t22 elts[100]; } t57; #line 17 "../Interfaces/String.i3" typedef struct { t3 _top; t57 _stk; } t30; #line 16 "../Interfaces/Variable.i3" #define t31 ADDRESS #define TC31 TC_Variable__T IMPORT TYPE TC_Variable__T; #line 16 IMPORT char VS_Variable__T__be7ead4a3afd8be5; typedef double t32; typedef unsigned char t33; #line 37 "../Interfaces/Procedure.i3" #define t34 t62 #define t35 ADDRESS #define TC35 TC_Procedure__T IMPORT TYPE TC_Procedure__T; #line 15 IMPORT char VS_Procedure__T__be7ead4a3afd8be5; #line 14 "../Interfaces/Decl.i3" typedef struct { t22 _alias; t15 _isExternal; t15 _isInline; t15 _isUnused; t15 _isObsolete; } t36; #line 24 "../Interfaces/Variable.i3" typedef t31 (*t37)(); #define t65 ADDRESS typedef struct { TYPE self; int private; } t65_methods; #define t65_msize (sizeof (t65_methods)) typedef struct { ADDRESS methods; } t65_fields; #define t65_size (sizeof (t65_fields)) #define TC65 TC_ROOT IMPORT TYPE TC_ROOT; IMPORT char VS_ROOT__349f58f628be0ac6; #define t65_MapProc TC_ROOT->mapProc #define t40 ADDRESS #define TC40 TC_Wr__T IMPORT TYPE TC_Wr__T; #line 90 ".ROOT/.boots/corelib/Interfaces/Wr.i3" IMPORT char VS_Wr__T__2555b70b3f7780b1; #define t40_MapProc TC_Wr__T->mapProc typedef unsigned char t42; #line 40 "../Interfaces/Value.i3" typedef t42 (*t43)(); #line 121 "../Interfaces/Type.i3" typedef t41 (*t45)(); #line 65 "../Interfaces/Token.i3" typedef struct { t22 elts[97]; } t51; typedef int t52; #line 37 "../Interfaces/String.i3" typedef t29 (*t53)(); #line 34 typedef t22 (*t54)(); #line 28 #define t55 t62 typedef signed_char t58; #line 67 ".ROOT/.boots/corelib/Interfaces/Text.i3" typedef t58 (*t59)(); #line 26 typedef t52 (*t60)(); #line 23 typedef t33 (*t61)(); #line 91 ".ROOT/.boots/corelib/Interfaces/Wr.i3" typedef unsigned char t63; #line 15 ".ROOT/.boots/corelib/Interfaces/Thread.i3" #define t66 ADDRESS #define TC66 TC_Thread__T IMPORT TYPE TC_Thread__T; #line 15 IMPORT char VS_Thread__T__2555b70b3f7780b1; #define t66_MapProc TC_Thread__T->mapProc typedef t64 (*t67)(); #define t68 ADDRESS #define TC68 TC_Thread__Condition IMPORT TYPE TC_Thread__Condition; #line 21 IMPORT char VS_Thread__Condition__26d5968239e08f4e; #define t68_MapProc TC_Thread__Condition->mapProc #define t69 ADDRESS #define TC69 TC_MUTEX IMPORT TYPE TC_MUTEX; IMPORT char VS_MUTEX__1f9d4e89391ab815; #define t69_MapProc TC_MUTEX->mapProc typedef t66 (*t70)(); #line 23 #define t71 ADDRESS #line 23 typedef struct { t67 _apply; } t71_methods; #define t71_msize (sizeof (t71_methods)) typedef struct { #line 23 int filler; } t71_fields; #define t71_size (sizeof (t71_fields)) #define TC71 TC_Thread__Closure IMPORT TYPE TC_Thread__Closure; #line 23 IMPORT char VS_Thread__Closure__7fb5c6232c5a658a; #define t71_MapProc TC_Thread__Closure->mapProc typedef t68 (*t72)(); typedef t69 (*t73)(); #line 28 #define t74 ADDRESS #line 28 typedef struct { int filler; } t74_methods; #define t74_msize (sizeof (t74_methods)) typedef struct { #line 28 t52 _stackSize; } t74_fields; #define t74_size (sizeof (t74_fields)) #define TC74 TC_Thread__SizedClosure IMPORT TYPE TC_Thread__SizedClosure; #line 28 IMPORT char VS_Thread__SizedClosure__8a46717d2eae7b07; #define t74_MapProc TC_Thread__SizedClosure->mapProc #define t76 ADDRESS #define TC76 TC_M3__Stmt IMPORT TYPE TC_M3__Stmt; #line 17 "../Interfaces/M3.i3" IMPORT char VS_M3__Stmt__376b307627fc1f2f; typedef CLOSURE t77; typedef float t80; #line 10 "WordXor.m3" IMPORT INITLINK* ProcType__init; IMPORT INITLINK* Temp__init; IMPORT INITLINK* Formal__init; IMPORT INITLINK* Value__init; #line 10 IMPORT INITLINK* WordPlus__init; IMPORT INITLINK* IntegerExpr__init; IMPORT INITLINK* Int__init; IMPORT INITLINK* BuiltinArgs__init; #line 10 IMPORT INITLINK* Emit__init; IMPORT INITLINK* Procedure__init; IMPORT INITLINK* Type__init; IMPORT INITLINK* Expr__init; IMPORT INITLINK* CallExpr__init; #line 10 IMPORT INITLINK* Word__init; IMPORT INITLINK* WordXor__init; IMPORT t9 _ProcType__New (); IMPORT char VS_ProcType__New__43b2b105372c5e7b; #line 10 IMPORT TYPE TC_Temp__T; IMPORT char VS_Temp__T__3a6c7dc12615e4ee; IMPORT t7 _Temp__AllocEmpty (); IMPORT char VS_Temp__AllocEmpty__20296f6d2a78c948; #line 10 IMPORT t78 _Temp__Free (); IMPORT char VS_Temp__Free__3b952a2225c26846; IMPORT t15 _Formal__CheckArgs (); IMPORT char VS_Formal__CheckArgs__53fce8d22f93abb5; #line 10 IMPORT TYPE TC_Value__T; IMPORT char VS_Value__T__2446b70b3f7780a5; IMPORT t15 _WordPlus__GetArgs (); IMPORT char VS_WordPlus__GetArgs__dbd3689a27145704; #line 10 IMPORT t4 _IntegerExpr__New (); IMPORT char VS_IntegerExpr__New__864172512ee81acd; IMPORT t9 _Int__T; IMPORT char VS_Int__T__1062912139372387; #line 10 IMPORT t11 _BuiltinArgs__f1; IMPORT char VS_BuiltinArgs__f1__382999a92edd7592; IMPORT t11 _BuiltinArgs__f5; IMPORT char VS_BuiltinArgs__f5__7af922b22ddc30e8; #line 10 IMPORT char VS_Emit__MaxStream__cf0a0e8934c9c9f3; IMPORT TYPE TC_Emit__Format; IMPORT char VS_Emit__Format__bc4a2b083b93bbd7; #line 10 IMPORT t78 _Emit__OpTTT (); IMPORT char VS_Emit__OpTTT__91a3dd742690c5b9; IMPORT t78 _Procedure__Define (); IMPORT char VS_Procedure__Define__23155a563959ddb7; #line 10 IMPORT TYPE TC_Type__T; IMPORT char VS_Type__T__2446b70b3f7780a5; IMPORT TYPE TC_Expr__T; IMPORT char VS_Expr__T__2446b70b3f7780a5; #line 10 IMPORT t7 _Expr__Compile (); IMPORT char VS_Expr__Compile__a7e0cc4029a2ec76; IMPORT t14 _CallExpr__NewMethodList (); IMPORT char VS_CallExpr__NewMethodList__1e86caa631267427; #line 10 IMPORT t15 _CallExpr__IsNever (); IMPORT char VS_CallExpr__IsNever__ed0ffc703e490927; IMPORT t3 _Word__Xor (); IMPORT char VS_Word__Xor__44d536613f2a974d; #line 10 EXPORT t78 _WordXor__Initialize (); EXPORT char VS_WordXor__Initialize__c93e407b273cf789 = '\0'; PRIVATE t14 _WordXor__Z; #line 10 PRIVATE t13 _WordXor__formals; PRIVATE t9 _WordXor__Bind (); PRIVATE t78 _WordXor__Check (); PRIVATE t7 _WordXor__Compile (); #line 10 PRIVATE t4 _WordXor__Fold (); #line 19 "WordXor.m3" PRIVATE t9 _WordXor__Bind (_proc, _args) t4 _proc; t5 _args; { #line 19 "WordXor.m3" { auto t9 __result; { CHECKSTACKOVERFLOW; __result = _Int__T; return __result; } } }; #line 24 "WordXor.m3" PRIVATE t78 _WordXor__Check (_proc, _args) t4 _proc; t5 * _args; { t62 z3; t15 z5; #line 24 "WordXor.m3" { { CHECKSTACKOVERFLOW; { z3.elts = (char*) (& _WordXor__formals); z3.size[0] = 2; }; z5 = _Formal__CheckArgs (&(*_args), z3, 1 , 99999 ); if (z5) { #line 26 goto if_1_end; }; if_1_end: /**/; } } }; #line 29 "WordXor.m3" PRIVATE t7 _WordXor__Compile (_proc, _args) t4 _proc; t5 _args; { t5 z2; t3 z4; t3 z5; t7 z3; #line 29 "WordXor.m3" { auto t7 _t1; auto t7 _t2; auto t7 _t3; auto t7 __result; { CHECKSTACKOVERFLOW; NILCHECKB (z2 = _args); { register t62* array = & (*((t44*) z2)); z5 = 0 ; if (z5 >= (array->size[0])) RANGEFAULT; #line 32 z4 = (int)(array->elts + (z5 * 4)); }; z3 = _Expr__Compile ((*(t4*)z4)); _t1 = z3; NILCHECKB (z2 = _args); { register t62* array = & (*((t44*) z2)); z5 = 1 ; if (z5 >= (array->size[0])) RANGEFAULT; #line 33 z4 = (int)(array->elts + (z5 * 4)); }; z3 = _Expr__Compile ((*(t4*)z4)); _t2 = z3; z3 = _Temp__AllocEmpty (_Int__T, 0 ); _t3 = z3; _Emit__OpTTT (((ADDRESS)(& txt2.str)), _t3, _t1, _t2); _Temp__Free (_t1); _Temp__Free (_t2); __result = _t3; return __result; } } }; #line 41 "WordXor.m3" PRIVATE t4 _WordXor__Fold (_proc, _args) t4 _proc; t5 _args; { t15 z4; t3 z3; t4 z1; #line 41 "WordXor.m3" { auto t3 _w0; auto t3 _w1; auto t4 __result; { CHECKSTACKOVERFLOW; z4 = _WordPlus__GetArgs (_args, &_w0, &_w1); if (z4) { z3 = _w0 ^ _w1; z1 = _IntegerExpr__New (z3); __result = z1; return __result; }; __result = 0; return __result; } } }; #line 50 "WordXor.m3" EXPORT t78 _WordXor__Initialize () { t14 z10; t62 z5; t9 z6; #line 50 "WordXor.m3" { { CHECKSTACKOVERFLOW; (_WordXor__formals.elts[ 0 ]) = _BuiltinArgs__f1; (_WordXor__formals.elts[ 1 ]) = _BuiltinArgs__f5; z10 = _CallExpr__NewMethodList ( 2 , 2 , 1 , _WordXor__Bind, _WordXor__Check, _WordXor__Compile, _WordXor__Fold, #line 54 _CallExpr__IsNever, _CallExpr__IsNever); _WordXor__Z = z10; { z5.elts = (char*) (& _WordXor__formals); z5.size[0] = 2; }; z6 = _ProcType__New (&z5, _Int__T); _Procedure__Define (((ADDRESS)(& txt1.str)), _WordXor__Z, z6); #line 57 } } }; PRIVATE int init_done = -1; #line 57 "WordXor.m3" PRIVATE void WordXor__initProc (g) int g; { #line 57 "WordXor.m3" if (init_done >= g) return; init_done = g; INITIALIZE (& WordXor__init); INITIALIZE (& ProcType__init); INITIALIZE (& Temp__init); #line 57 INITIALIZE (& Formal__init); INITIALIZE (& Value__init); INITIALIZE (& WordPlus__init); INITIALIZE (& IntegerExpr__init); #line 57 INITIALIZE (& Int__init); INITIALIZE (& BuiltinArgs__init); INITIALIZE (& Emit__init); INITIALIZE (& Procedure__init); INITIALIZE (& Type__init); #line 57 INITIALIZE (& Expr__init); INITIALIZE (& CallExpr__init); INITIALIZE (& Word__init); return; }; PRIVATE INITLINK me_0 ={(INITLINK*)NIL, 0, WordXor__initProc}; static char* VSimports[] = { &VS_ProcType__Raisee__5fe771ff27c179d9, &VS_ProcType__New__43b2b105372c5e7b, &VS_Temp__T__3a6c7dc12615e4ee, &VS_Temp__AllocEmpty__20296f6d2a78c948, &VS_Temp__Free__3b952a2225c26846, &VS_Formal__CheckArgs__53fce8d22f93abb5, &VS_Value__T__2446b70b3f7780a5, &VS_WordPlus__GetArgs__dbd3689a27145704, &VS_IntegerExpr__New__864172512ee81acd, &VS_Int__T__1062912139372387, &VS_BuiltinArgs__f1__382999a92edd7592, &VS_BuiltinArgs__f5__7af922b22ddc30e8, &VS_Emit__MaxStream__cf0a0e8934c9c9f3, &VS_Emit__Format__bc4a2b083b93bbd7, &VS_Emit__OpTTT__91a3dd742690c5b9, &VS_Procedure__T__be7ead4a3afd8be5, &VS_Procedure__Define__23155a563959ddb7, &VS_Type__T__2446b70b3f7780a5, &VS_Type__Map__41dd9f4b33104fce, &VS_Type__List__5791758e343becc1, &VS_Expr__T__2446b70b3f7780a5, &VS_Expr__List__3f87eceb2b9a246a, &VS_Expr__Compile__a7e0cc4029a2ec76, &VS_CallExpr__MethodList__7e87c2d720444b71, &VS_CallExpr__NewMethodList__1e86caa631267427, &VS_CallExpr__IsNever__ed0ffc703e490927, &VS_Word__Xor__44d536613f2a974d, NIL }; void WordXor__MLink (phase) int phase; { switch (phase) { case 0: { me_0.link = WordXor__init; WordXor__init = & me_0; break; }; case 1: { break; }; case 2: { break; }; }; };