#include "M3Runtime.h" typedef struct { int tc; char* str; int len; } TXT; PRIVATE TXT txt1 = { 3, "record constructor must specify a record type", 46 }; PRIVATE TXT txt2 = { 3, "range expressions not allowed in record constructors", 53 }; PRIVATE TXT txt3 = { 3, "unknown field", 14}; PRIVATE TXT txt4 = { 3, "positional values must precede keyword values", 46 }; PRIVATE TXT txt5 = { 3, "too many values", 16}; PRIVATE TXT txt6 = { 3, "field already specified", 24}; PRIVATE TXT txt7 = { 3, "expression is not assignable to field", 38}; PRIVATE TXT txt8 = { 3, "no value specified for field", 29}; PRIVATE TXT txt9 = { 3, "@.", 3}; PRIVATE TXT txt10 = { 3, "_@ = ", 6}; PRIVATE TXT txt11 = { 3, "@;\012", 4}; PRIVATE TXT txt12 = { 3, "{\001\012", 4}; PRIVATE TXT txt13 = { 3, ",\012", 3}; PRIVATE TXT txt14 = { 3, "\012\002}", 4}; #line 16 "../Interfaces/Type.i3" #define t7 ADDRESS #define t89 void typedef int t1; #line 116 ".ROOT/.boots/corelib/Interfaces/Wr.i3" typedef struct { char* elts; int size[1]; } t74; #line 15 ".ROOT/.boots/corelib/Interfaces/FPrint.i3" #define t39 t74 #define TC7 TC_Type__Map IMPORT TYPE TC_Type__Map; #line 16 "../Interfaces/Type.i3" IMPORT char VS_Type__Map__41dd9f4b33104fce; #define t12 ADDRESS #define TC12 TC_NULL IMPORT TYPE TC_NULL; IMPORT char VS_NULL__fb50c7d53bec30dc; #line 115 "RecordExpr.m3" #define t13 ADDRESS #define t69 ADDRESS #define TC69 TC_ADDRESS IMPORT TYPE TC_ADDRESS; IMPORT char VS_ADDRESS__30f7308738738b44; #line 13 "../Interfaces/String.i3" #define t14 ADDRESS #define TC14 TC_String__T IMPORT TYPE TC_String__T; #line 13 IMPORT char VS_String__T__3a6c7dc12615e4ee; #line 115 "RecordExpr.m3" #define t15 t74 PRIVATE void t13_PrintProc (); #line 115 PRIVATE typecell t13_TC; PRIVATE typecell t13_TC_init = {0, 0, 0, 0, 0, (PROC)NIL, -2, 0, NIL, 1, 4, (PROC)NIL, (PROC)NIL, t13_PrintProc, #line 115 "", -1297154870, 1022211115}; PRIVATE TYPE TC13 = &t13_TC; #line 114 #define t16 ADDRESS #define t87 ADDRESS typedef struct { TYPE self; int private; } t87_methods; #define t87_msize (sizeof (t87_methods)) typedef struct { ADDRESS methods; } t87_fields; #define t87_size (sizeof (t87_fields)) #define TC87 TC_UNTRACED_ROOT IMPORT TYPE TC_UNTRACED_ROOT; IMPORT char VS_UNTRACED_ROOT__3e0964513fd6da20; #line 18 "../Interfaces/M3.i3" #define t17 ADDRESS #define TC17 TC_M3__Type IMPORT TYPE TC_M3__Type; #line 18 IMPORT char VS_M3__Type__4d87bc25311f81d2; #line 114 "RecordExpr.m3" #define t18 t74 PRIVATE void t16_PrintProc (); #line 114 PRIVATE typecell t16_TC; PRIVATE typecell t16_TC_init = {0, 0, 0, 0, 0, (PROC)NIL, -2, 0, NIL, 1, 4, (PROC)NIL, (PROC)NIL, t16_PrintProc, #line 114 "", -1039000266, 726357868}; PRIVATE TYPE TC16 = &t16_TC; #line 113 #define t19 ADDRESS typedef unsigned char t4; #line 113 #define t20 t74 PRIVATE void t19_PrintProc (); #line 113 PRIVATE typecell t19_TC; PRIVATE typecell t19_TC_init = {0, 0, 0, 0, 0, (PROC)NIL, -2, 0, NIL, 1, 1, (PROC)NIL, (PROC)NIL, t19_PrintProc, #line 113 "", 1250391734, 1067847575}; PRIVATE TYPE TC19 = &t19_TC; #line 17 "../Interfaces/Scope.i3" #define t21 ADDRESS #define t23 ADDRESS #define TC23 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 t54 t74 #define TC21 TC_Scope__ValueList IMPORT TYPE TC_Scope__ValueList; #line 17 IMPORT char VS_Scope__ValueList__64bf053e22e4e53c; #line 14 "./Expr.i3" #define t24 ADDRESS #define t8 ADDRESS #define TC8 TC_M3__Expr IMPORT TYPE TC_M3__Expr; #line 16 "../Interfaces/M3.i3" IMPORT char VS_M3__Expr__8ae39aaa2d432477; #line 14 "./Expr.i3" #define t56 t74 #define TC24 TC_Expr__List IMPORT TYPE TC_Expr__List; #line 14 IMPORT char VS_Expr__List__3f87eceb2b9a246a; #line 17 "../Interfaces/Type.i3" #define t59 ADDRESS typedef struct { #line 17 t59 _next; t17 _type; } t60; #define TC59 TC_Type__List IMPORT TYPE TC_Type__List; #line 17 IMPORT char VS_Type__List__5791758e343becc1; #define t76 ADDRESS #define TC76 TC_REFANY IMPORT TYPE TC_REFANY; IMPORT char VS_REFANY__4b8748e831fc107a; #line 16 "RecordExpr.m3" #define t2 ADDRESS #line 29 "../Interfaces/Stmt.i3" typedef t89 (*t3)(); #line 19 "../Interfaces/M3.i3" #define t10 ADDRESS #define TC10 TC_M3__Temp IMPORT TYPE TC_M3__Temp; #line 19 IMPORT char VS_M3__Temp__450b691937f03dae; #line 45 "../Interfaces/ValueRep.i3" typedef t10 (*t11)(); typedef t8 (*t9)(); #line 48 "RecordExpr.m3" typedef t4 (*t5)(); #line 16 typedef struct { int filler; } t2_methods; #define t2_msize (sizeof (t2_methods)) typedef struct { #line 16 t17 _tipe; t24 _args; t24 _map; t13 _names; } t2_fields; #define t2_size (sizeof (t2_fields)) PRIVATE void t2_InitProc (); #line 16 PRIVATE void t2_SetupProc (); PRIVATE void t2_PrintProc (); PRIVATE typecell t2_TC; PRIVATE typecell t2_TC_init = {0, 0, 0, 0, 0, (PROC)NIL, #line 16 t2_size, t2_msize, NIL, 0, 0, t2_InitProc, t2_SetupProc, t2_PrintProc, "", 1051536192, 817547834}; PRIVATE TYPE TC2 = &t2_TC; #define t77 ADDRESS typedef struct { TYPE self; int private; } t77_methods; #define t77_msize (sizeof (t77_methods)) typedef struct { ADDRESS methods; } t77_fields; #define t77_size (sizeof (t77_fields)) #define TC77 TC_ROOT IMPORT TYPE TC_ROOT; IMPORT char VS_ROOT__349f58f628be0ac6; #define t77_MapProc TC_ROOT->mapProc #define t6 ADDRESS #define TC6 TC_Wr__T IMPORT TYPE TC_Wr__T; #line 90 ".ROOT/.boots/corelib/Interfaces/Wr.i3" IMPORT char VS_Wr__T__2555b70b3f7780b1; #define t6_MapProc TC_Wr__T->mapProc #define t22 ADDRESS #define TC22 TC_M3__Scope IMPORT TYPE TC_M3__Scope; #line 14 "../Interfaces/M3.i3" IMPORT char VS_M3__Scope__6e6d8848308d8a2d; #line 18 "../Interfaces/AssignStmt.i3" typedef unsigned char t25; #line 17 "../Interfaces/M3.i3" #define t26 ADDRESS #define TC26 TC_M3__Stmt IMPORT TYPE TC_M3__Stmt; #line 17 IMPORT char VS_M3__Stmt__376b307627fc1f2f; #line 16 "../Interfaces/AssignStmt.i3" typedef t26 (*t27)(); #line 15 "../Interfaces/Token.i3" typedef unsigned char t61; #line 45 typedef struct { int elts[4]; } t28; #line 16 "../Interfaces/Stmt.i3" typedef unsigned char t31; typedef struct { int elts[1]; } t29; typedef void (*t30)(); #line 12 "../Interfaces/Field.i3" typedef t23 (*t32)(); #line 65 "../Interfaces/ValueRep.i3" typedef t17 (*t33)(); #line 18 "../Interfaces/Value.i3" typedef unsigned char t34; #line 43 "../Interfaces/ValueRep.i3" typedef t34 (*t35)(); #line 15 ".ROOT/.boots/corelib/Interfaces/FPrint.i3" typedef signed_char t42; typedef struct { t1 elts[2]; } t36; #line 16 "../Interfaces/ValueRep.i3" typedef t4 t37; #define t38 ADDRESS #line 19 typedef struct { t3 _bind; t3 _typeCheck; t35 _class; t3 _fingerprint; t11 _load; t3 _write; t32 _select; t5 _declare0; t3 _declare1; #line 19 t3 _declare2; t5 _needsDecl; t9 _toExpr; t33 _toType; } t38_methods; #define t38_msize (sizeof (t38_methods)) typedef struct { #line 19 t1 _origin; t14 _name; t14 _extName; t22 _scope; t17 _type; unsigned _checked : 1; unsigned _incheck : 1; unsigned _readonly : 1; #line 19 unsigned _declared : 1; unsigned _bound : 1; unsigned _compiled : 1; unsigned _imported : 1; unsigned _exported : 1; unsigned _external : 1; #line 19 unsigned _used : 1; unsigned _usedAtTop : 1; unsigned _unused : 1; unsigned _obsolete : 1; unsigned _inFrame : 1; t36 _fprint; #line 19 } t38_fields; #define t38_size (sizeof (t38_fields)) #define TC38 TC_M3__Value #define t40 ADDRESS #define TC40 TC_TEXT IMPORT TYPE TC_TEXT; IMPORT char VS_TEXT__b7a92447326386f5; #define t40_MapProc TC_TEXT->mapProc typedef void (*t41)(); #line 63 "../Interfaces/Emit.i3" typedef t42 (*t43)(); #line 19 "../Interfaces/String.i3" typedef signed_char t67; typedef struct { t14 elts[100]; } t68; #line 17 typedef struct { t1 _top; t68 _stk; } t44; #line 16 "../Interfaces/Variable.i3" #define t45 ADDRESS #define TC45 TC_Variable__T IMPORT TYPE TC_Variable__T; #line 16 IMPORT char VS_Variable__T__be7ead4a3afd8be5; typedef double t46; typedef unsigned char t47; typedef t45 (*t48)(); #line 14 "../Interfaces/Decl.i3" typedef struct { t14 _alias; t4 _isExternal; t4 _isInline; t4 _isUnused; t4 _isObsolete; } t49; #line 25 "../Interfaces/RecordType.i3" typedef short t50; typedef struct { t17 elts[1001]; } t51; #line 14 "../Interfaces/String.i3" typedef struct { t14 _module; t14 _item; } t52; #line 31 "../Interfaces/Scope.i3" typedef t22 (*t53)(); #line 13 "./ExprRep.i3" #define t55 ADDRESS #line 13 typedef struct { t3 _bind; t3 _check; t3 _write; t5 _isEqual; t9 _evaluate; t3 _getBounds; t5 _isWritable; t5 _isDesignator; #line 13 t5 _isZeroes; t3 _genLiteral; t3 _fprint; t11 _compile; } t55_methods; #define t55_msize (sizeof (t55_methods)) typedef struct { #line 13 t1 _origin; t17 _type; t4 _bound; t4 _inCheck; t4 _checked; } t55_fields; #define t55_size (sizeof (t55_fields)) #define TC55 TC_M3__Expr typedef t7 (*t57)(); #line 97 "../Interfaces/Type.i3" typedef t1 (*t58)(); #line 65 "../Interfaces/Token.i3" typedef struct { t14 elts[97]; } t62; typedef int t63; #line 37 "../Interfaces/String.i3" typedef t40 (*t64)(); #line 34 typedef t14 (*t65)(); #line 28 #define t66 t74 typedef signed_char t70; #line 67 ".ROOT/.boots/corelib/Interfaces/Text.i3" typedef t70 (*t71)(); #line 26 typedef t63 (*t72)(); #line 23 typedef t47 (*t73)(); #line 91 ".ROOT/.boots/corelib/Interfaces/Wr.i3" typedef unsigned char t75; #line 15 ".ROOT/.boots/corelib/Interfaces/Thread.i3" #define t78 ADDRESS #define TC78 TC_Thread__T IMPORT TYPE TC_Thread__T; #line 15 IMPORT char VS_Thread__T__2555b70b3f7780b1; #define t78_MapProc TC_Thread__T->mapProc typedef t76 (*t79)(); #define t80 ADDRESS #define TC80 TC_Thread__Condition IMPORT TYPE TC_Thread__Condition; #line 21 IMPORT char VS_Thread__Condition__26d5968239e08f4e; #define t80_MapProc TC_Thread__Condition->mapProc #define t81 ADDRESS #define TC81 TC_MUTEX IMPORT TYPE TC_MUTEX; IMPORT char VS_MUTEX__1f9d4e89391ab815; #define t81_MapProc TC_MUTEX->mapProc typedef t78 (*t82)(); #line 23 #define t83 ADDRESS #line 23 typedef struct { t79 _apply; } t83_methods; #define t83_msize (sizeof (t83_methods)) typedef struct { #line 23 int filler; } t83_fields; #define t83_size (sizeof (t83_fields)) #define TC83 TC_Thread__Closure IMPORT TYPE TC_Thread__Closure; #line 23 IMPORT char VS_Thread__Closure__7fb5c6232c5a658a; #define t83_MapProc TC_Thread__Closure->mapProc typedef t80 (*t84)(); typedef t81 (*t85)(); #line 28 #define t86 ADDRESS #line 28 typedef struct { int filler; } t86_methods; #define t86_msize (sizeof (t86_methods)) typedef struct { #line 28 t63 _stackSize; } t86_fields; #define t86_size (sizeof (t86_fields)) #define TC86 TC_Thread__SizedClosure IMPORT TYPE TC_Thread__SizedClosure; #line 28 IMPORT char VS_Thread__SizedClosure__8a46717d2eae7b07; #define t86_MapProc TC_Thread__SizedClosure->mapProc typedef CLOSURE t88; typedef float t90; #line 10 "RecordExpr.m3" IMPORT INITLINK* Wr__init; IMPORT INITLINK* AssignStmt__init; IMPORT INITLINK* RangeExpr__init; IMPORT INITLINK* KeywordExpr__init; #line 10 IMPORT INITLINK* Field__init; IMPORT INITLINK* ValueRep__init; IMPORT INITLINK* Value__init; IMPORT INITLINK* String__init; #line 10 IMPORT INITLINK* Emit__init; IMPORT INITLINK* Temp__init; IMPORT INITLINK* RecordType__init; IMPORT INITLINK* Scope__init; #line 10 IMPORT INITLINK* Type__init; IMPORT INITLINK* Error__init; IMPORT INITLINK* ExprRep__init; IMPORT INITLINK* Expr__init; IMPORT INITLINK* RecordExpr__init; #line 10 IMPORT EXCEPTION_NAME _Thread__Alerted; IMPORT char VS_Thread__Alerted__fc88feb43485af46; IMPORT EXCEPTION_NAME _Wr__Failure; #line 10 IMPORT char VS_Wr__Failure__5f82cfb43dabf527; IMPORT EXCEPTION_NAME _Wr__Error; IMPORT char VS_Wr__Error__c367253d3ed4fd15; #line 10 IMPORT t8 _AssignStmt__CheckRHS (); IMPORT char VS_AssignStmt__CheckRHS__9aaea40f392f387e; IMPORT t4 _RangeExpr__Split (); #line 10 IMPORT char VS_RangeExpr__Split__ee8f44e4219e1314; IMPORT t4 _KeywordExpr__Split (); IMPORT char VS_KeywordExpr__Split__c7296ea8373069e8; #line 10 IMPORT t4 _Field__Split (); IMPORT char VS_Field__Split__2f17aa55376061e0; IMPORT TYPE TC_ValueRep__V; IMPORT char VS_ValueRep__V__f28699153c608442; #line 10 IMPORT t23 _ValueRep__NoDuplicates (); IMPORT char VS_ValueRep__NoDuplicates__ed93f73a247eb7b4; IMPORT t8 _ValueRep__NoExpr (); #line 10 IMPORT char VS_ValueRep__NoExpr__1297c63d2e046c2c; IMPORT t17 _ValueRep__NoType (); IMPORT char VS_ValueRep__NoType__4061f01226f55ca3; #line 10 IMPORT t10 _ValueRep__NoLoader (); IMPORT char VS_ValueRep__NoLoader__9a7f0c5b24f526c1; IMPORT t89 _ValueRep__NoWriter (); #line 10 IMPORT char VS_ValueRep__NoWriter__3b24d43c367f7122; IMPORT t89 _ValueRep__NoDeclarer (); IMPORT char VS_ValueRep__NoDeclarer__22db283420635bde; #line 10 IMPORT t4 _ValueRep__Never (); IMPORT char VS_ValueRep__Never__39b6ab0628d97589; IMPORT t4 _ValueRep__Always (); IMPORT char VS_ValueRep__Always__1b0a9bbf2173b8b3; #line 10 IMPORT TYPE TC_Value__T; IMPORT char VS_Value__T__2446b70b3f7780a5; IMPORT char VS_Emit__MaxStream__cf0a0e8934c9c9f3; #line 10 IMPORT TYPE TC_Emit__Format; IMPORT char VS_Emit__Format__bc4a2b083b93bbd7; IMPORT t89 _Emit__Op (); IMPORT char VS_Emit__Op__072646cc27c8ae10; #line 10 IMPORT t89 _Emit__OpS (); IMPORT char VS_Emit__OpS__f7dc93802c012951; IMPORT t89 _Emit__OpT (); IMPORT char VS_Emit__OpT__764bdffe21d249e8; #line 10 IMPORT TYPE TC_Temp__T; IMPORT char VS_Temp__T__3a6c7dc12615e4ee; IMPORT t10 _Temp__Alloc (); IMPORT char VS_Temp__Alloc__0b946c9d3ec0974e; #line 10 IMPORT t89 _Temp__Free (); IMPORT char VS_Temp__Free__3b952a2225c26846; IMPORT char VS_RecordType__MaxFields__7046285b3b00145b; #line 10 IMPORT t4 _RecordType__Split (); IMPORT char VS_RecordType__Split__a733312e25a1fca2; IMPORT TYPE TC_Scope__T; IMPORT char VS_Scope__T__3a6c7dc12615e4ee; #line 10 IMPORT t23 _Scope__LookUpInScope (); IMPORT char VS_Scope__LookUpInScope__176166ad3a7fb5b9; IMPORT t89 _Scope__ToList (); #line 10 IMPORT char VS_Scope__ToList__4f3684492cf42c93; IMPORT TYPE TC_Type__T; IMPORT char VS_Type__T__2446b70b3f7780a5; IMPORT t17 _Type__Bind (); #line 10 IMPORT char VS_Type__Bind__3443ccd12eedb9e8; IMPORT t4 _Type__IsEqual (); IMPORT char VS_Type__IsEqual__4098bc3f32325d05; #line 10 IMPORT t89 _Type__Check (); IMPORT char VS_Type__Check__3c8ceb09206ee440; IMPORT t4 _Type__IsAssignable (); IMPORT char VS_Type__IsAssignable__6d0a7b0e2c806002; #line 10 IMPORT t89 _Type__Fingerprint (); IMPORT char VS_Type__Fingerprint__0d24a3463c25e166; IMPORT t89 _Error__Msg (); IMPORT char VS_Error__Msg__4d119a332467757f; #line 10 IMPORT t89 _Error__Str (); IMPORT char VS_Error__Str__2bd0723e3872e90c; IMPORT t89 _ExprRep__Init (); IMPORT char VS_ExprRep__Init__8b7fff3e227cebab; #line 10 IMPORT t89 _ExprRep__NoBind (); IMPORT char VS_ExprRep__NoBind__e7d0d3dd3d703c08; IMPORT t89 _ExprRep__NoCheck (); IMPORT char VS_ExprRep__NoCheck__c11b54bc361794fa; #line 10 IMPORT t8 _ExprRep__NoValue (); IMPORT char VS_ExprRep__NoValue__8ccc143224598a66; IMPORT t89 _ExprRep__NoBounds (); IMPORT char VS_ExprRep__NoBounds__b64bb146289ee4f0; #line 10 IMPORT t4 _ExprRep__IsNever (); IMPORT char VS_ExprRep__IsNever__8f1a069b301903c8; IMPORT t4 _ExprRep__NeverEq (); IMPORT char VS_ExprRep__NeverEq__dfdc2412249ccb65; #line 10 IMPORT t89 _ExprRep__NoWriter (); IMPORT char VS_ExprRep__NoWriter__a97bb1a23bbf506e; IMPORT t89 _ExprRep__NoLiteral (); IMPORT char VS_ExprRep__NoLiteral__6c9c90073f496f67; #line 10 IMPORT TYPE TC_Expr__T; IMPORT char VS_Expr__T__2446b70b3f7780a5; IMPORT t89 _Expr__Bind (); IMPORT char VS_Expr__Bind__7e2752da3eaf56eb; #line 10 IMPORT t17 _Expr__TypeOf (); IMPORT char VS_Expr__TypeOf__fef0a11b388c64fa; IMPORT t8 _Expr__ConstValue (); IMPORT char VS_Expr__ConstValue__ce4fd448218fe483; #line 10 IMPORT t4 _Expr__IsZeroes (); IMPORT char VS_Expr__IsZeroes__76ef605028be697c; IMPORT t89 _Expr__TypeCheck (); IMPORT char VS_Expr__TypeCheck__af9aa9073729e7f7; #line 10 IMPORT t10 _Expr__Compile (); IMPORT char VS_Expr__Compile__a7e0cc4029a2ec76; IMPORT t4 _Expr__IsEqual (); IMPORT char VS_Expr__IsEqual__062d8b2c385e35a9; #line 10 IMPORT t89 _Expr__Fingerprint (); IMPORT char VS_Expr__Fingerprint__50ce687c31d90a5b; IMPORT t89 _Expr__GenLiteral (); IMPORT char VS_Expr__GenLiteral__5d3c8414307dac94; #line 10 EXPORT t8 _RecordExpr__New (); EXPORT char VS_RecordExpr__New__4bff9f952c09864b = '\0'; EXPORT t4 _RecordExpr__Is (); EXPORT char VS_RecordExpr__Is__f3847f3d31cf3b3b = '\0'; #line 10 EXPORT t4 _RecordExpr__Qualify (); EXPORT char VS_RecordExpr__Qualify__94c66bdb287331af = '\0'; PRIVATE TYPE TC_RecordExpr__P; #line 10 PRIVATE t89 _RecordExpr__Bind (); PRIVATE t89 _RecordExpr__Check (); PRIVATE t4 _RecordExpr__EqCheck (); PRIVATE t10 _RecordExpr__Compile (); #line 10 PRIVATE t8 _RecordExpr__Fold (); PRIVATE t89 _RecordExpr__FPrinter (); PRIVATE t4 _RecordExpr__IsZeroes (); PRIVATE t89 _RecordExpr__GenLiteral (); #line 10 IMPORT char VS_M3__Expr__58bf709e39adf1f7; IMPORT char VS_M3__Value__6b416d5833e03839; #line 36 "RecordExpr.m3" EXPORT t8 _RecordExpr__New (_type, _args) t17 _type; t24 _args; { t2 z0; t2 z2; #line 36 "RecordExpr.m3" { auto t2 _p; auto t8 __result; { ZERO1 (& _p); #line 36 CHECKSTACKOVERFLOW; { register char** ptr = (char**) UNEWOBJ (TC2); z0 = (t2) ptr; }; _p = z0; _ExprRep__Init (_p); NILCHECKA (z2 = _p); (((t2_fields*)(z2+(0+t55_size+t87_size)))->_tipe) = _type; NILCHECKA (z2 = _p); (((t2_fields*)(z2+(0+t55_size+t87_size)))->_args) = _args; NILCHECKA (z2 = _p); (((t2_fields*)(z2+(0+t55_size+t87_size)))->_map) = (t24) 0; NILCHECKA (z2 = _p); (((t2_fields*)(z2+(0+t55_size+t87_size)))->_names) = (t13) 0; __result = _p; return __result; } } }; #line 48 "RecordExpr.m3" EXPORT t4 _RecordExpr__Is (_e) t8 _e; { t1 z1; t1 z0; t4 z2; #line 48 "RecordExpr.m3" { auto t4 __result; { ZERO1B (& __result); CHECKSTACKOVERFLOW; z1 = TYPECODE (_e); z0 = TC2->typecode; z2 = (z1 == z0); __result = z2; return __result; } } }; #line 53 "RecordExpr.m3" EXPORT t4 _RecordExpr__Qualify (_e, _id, _result) t8 _e; t14 _id; t8 * _result; { t2 z2; t4 z4; t4 z0; t23 z3; t4 z5; t1 z1; t24 z6; t1 z7; t1 z8; #line 53 "RecordExpr.m3" { auto t2 _p; auto t22 _fields; auto t23 _val; auto t1 _offset; auto t17 _type; auto t8 _z; auto t8 _default; auto t14 _key; #line 53 auto t8 _value; auto t4 __result; { ZERO1 (& _p); #line 53 ZERO1B (& __result); CHECKSTACKOVERFLOW; #line 64 { register ADDRESS ref = (ADDRESS) _e; register int tc = TYPECODE (ref); if (tc == 0) goto tc0_0; if (ISSUBTYPE (tc, TC2)) goto tc0_1; #line 64 goto tc0_else; tc0_0:; __result = 0 ; return __result; tc0_1:; { auto t2 _x; { ZERO1 (& _x); #line 65 _x = (t2) ref; _p = _x; } } goto tc0_exit; tc0_else:; __result = 0 ; return __result; tc0_exit:; }; NILCHECKA (z2 = _p); z4 = _RecordType__Split ((((t2_fields*)(z2+(0+t55_size+t87_size)))->_tipe), &_fields); z0 = ! z4; #line 69 if (z0) { __result = 0 ; return __result; }; z3 = _Scope__LookUpInScope (_fields, _id); _val = z3; z4 = (_val == 0); if (z4) { __result = 0 ; return __result; }; { { auto t4 _b; { ZERO1B (& _b); z5 = _Field__Split (_val, &_offset, &_type, &_default); _b = z5; if (!_b) ASSERTFAULT; } } }; { int from, to, index; from = 0 ; NILCHECKA (z2 = _p); NILCHECKB (z6 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_args)); #line 74 z1 = (*((t56*) z6)).size[0] - 1; to = z1; { auto t1 _i; { for (index = from; index <= to; index += 1) { _i = (t1) index; NILCHECKA (z2 = _p); NILCHECKB (z6 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_args)); { register t74* array = & (*((t56*) z6)); #line 75 z8 = _i; if (z8 >= (array->size[0])) RANGEFAULT; z7 = (int)(array->elts + (z8 * 4)); }; _z = (*(t8*)z7); z4 = _KeywordExpr__Split (_z, &_key, &_value); if (z4) { z4 = (_key == _id); if (z4) { (*_result) = _value; __result = 1 ; return __result; }; goto if_3_end; #line 77 }; z4 = (_i == _offset); if (z4) { (*_result) = _z; __result = 1 ; return __result; }; if_3_end: /**/; } } }; }; __result = 0 ; return __result; } } }; #line 85 "RecordExpr.m3" PRIVATE t89 _RecordExpr__Bind (_p) t2 _p; { t2 z2; t17 z3; t2 z1; t1 z0; t24 z4; t1 z5; t1 z6; #line 85 "RecordExpr.m3" { { CHECKSTACKOVERFLOW; NILCHECKA (z2 = _p); z3 = _Type__Bind ((((t2_fields*)(z2+(0+t55_size+t87_size)))->_tipe)); NILCHECKA (z1 = _p); (((t2_fields*)(z1+(0+t55_size+t87_size)))->_tipe) = z3; { int from, to, index; from = 0 ; NILCHECKA (z2 = _p); NILCHECKB (z4 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_args)); #line 88 z0 = (*((t56*) z4)).size[0] - 1; to = z0; { auto t1 _i; { for (index = from; index <= to; index += 1) { _i = (t1) index; #line 88 NILCHECKA (z2 = _p); NILCHECKB (z4 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_args)); { register t74* array = & (*((t56*) z4)); #line 88 z6 = _i; if (z6 >= (array->size[0])) RANGEFAULT; z5 = (int)(array->elts + (z6 * 4)); }; _Expr__Bind ((*(t8*)z5)); #line 88 } } }; }; NILCHECKA (z1 = _p); (((t55_fields*)(z1+(0+t87_size)))->_type) = (((t2_fields*)(z1+(0+t55_size+t87_size)))->_tipe); #line 89 } } }; #line 92 "RecordExpr.m3" PRIVATE t89 _RecordExpr__Check (_p) t2 _p; { t2 z2; t4 z4; t4 z0; t1 z1; t24 z3; t1 z5; t1 z6; t19 z7; t16 z8; t13 z9; t21 z10; t4 z11; t1 z12; t23 z13; t8 z14; t17 z15; #line 92 "RecordExpr.m3" { auto t1 _n; auto t22 _fields; auto t14 _key; auto t8 _value; auto t8 _e; auto t4 _posOK; auto t21 _objs; auto t1 _offset; #line 92 auto t17 _type; auto t8 _default; auto t19 _done; auto t16 _types; { ZERO1B (& _posOK); ZERO1 (& _done); ZERO1 (& _types); #line 92 CHECKSTACKOVERFLOW; #line 106 NILCHECKA (z2 = _p); _Type__Check ((((t2_fields*)(z2+(0+t55_size+t87_size)))->_tipe)); NILCHECKA (z2 = _p); z4 = _RecordType__Split ((((t2_fields*)(z2+(0+t55_size+t87_size)))->_tipe), &_fields); z0 = ! z4; #line 107 if (z0) { _Error__Msg (((ADDRESS)(& txt1.str))); { int from, to, index; from = 0 ; NILCHECKA (z2 = _p); NILCHECKB (z3 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_args)); #line 109 z1 = (*((t56*) z3)).size[0] - 1; to = z1; { auto t1 _i; { for (index = from; index <= to; index += 1) { _i = (t1) index; #line 109 NILCHECKA (z2 = _p); NILCHECKB (z3 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_args)); { register t74* array = & (*((t56*) z3)); #line 109 z6 = _i; if (z6 >= (array->size[0])) RANGEFAULT; z5 = (int)(array->elts + (z6 * 4)); }; _Expr__TypeCheck ((*(t8*)z5)); #line 109 } } }; }; return; }; _Scope__ToList (_fields, &_objs, &_n); { register t74* ptr; int sz[1]; sz[0] = _n; ptr = (t74*) TNEWA(TC19, 8 + sz[0] * 1); ptr->elts = (char*)(& ptr->size[1]); #line 113 ptr->size[0] = sz[0]; z7 = (t19) ptr; }; _done = z7; { register t74* ptr; int sz[1]; sz[0] = _n; ptr = (t74*) TNEWA(TC16, 8 + sz[0] * 4); ptr->elts = (char*)(& ptr->size[1]); #line 114 ptr->size[0] = sz[0]; z8 = (t16) ptr; }; _types = z8; { register t74* ptr; int sz[1]; sz[0] = _n; ptr = (t74*) UNEWA(TC13, 8 + sz[0] * 4); ptr->elts = (char*)(& ptr->size[1]); #line 115 ptr->size[0] = sz[0]; z9 = (t13) ptr; }; NILCHECKA (z2 = _p); (((t2_fields*)(z2+(0+t55_size+t87_size)))->_names) = z9; { register t74* ptr; int sz[1]; sz[0] = _n; ptr = (t74*) UNEWA(TC24, 8 + sz[0] * 4); ptr->elts = (char*)(& ptr->size[1]); #line 116 ptr->size[0] = sz[0]; z3 = (t24) ptr; }; NILCHECKA (z2 = _p); (((t2_fields*)(z2+(0+t55_size+t87_size)))->_map) = z3; { int from, to, index; from = 0 ; z5 = _n - 1 ; to = z5; { auto t1 _i; { for (index = from; index <= to; index += 1) { #line 117 _i = (t1) index; NILCHECKB (z7 = _done); { register t74* array = & (*((t20*) z7)); z6 = _i; if (z6 >= (array->size[0])) RANGEFAULT; #line 118 z5 = (int)(array->elts + (z6 * 1)); }; (*(t4*)z5) = 0 ; { { auto t4 _b; { ZERO1B (& _b); NILCHECKB (z10 = _objs); { register t74* array = & (*((t54*) z10)); z6 = _i; #line 119 if (z6 >= (array->size[0])) RANGEFAULT; z5 = (int)(array->elts + (z6 * 4)); }; z11 = _Field__Split ((*(t23*)z5), &_offset, &_type, &_default); #line 119 _b = z11; if (!_b) ASSERTFAULT; } } }; NILCHECKB (z8 = _types); z5 = _offset; if (z5 < 0) RANGEFAULT; { register t74* array = & (*((t18*) z8)); #line 121 z12 = z5; if (z12 >= (array->size[0])) RANGEFAULT; z6 = (int)(array->elts + (z12 * 4)); }; (*(t17*)z6) = _type; NILCHECKB (z10 = _objs); { register t74* array = & (*((t54*) z10)); z6 = _i; if (z6 >= (array->size[0])) RANGEFAULT; #line 122 z5 = (int)(array->elts + (z6 * 4)); }; NILCHECKA (z13 = (*(t23*)z5)); NILCHECKA (z2 = _p); NILCHECKB (z9 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_names)); #line 122 z5 = _offset; if (z5 < 0) RANGEFAULT; { register t74* array = & (*((t15*) z9)); z12 = z5; if (z12 >= (array->size[0])) RANGEFAULT; #line 122 z6 = (int)(array->elts + (z12 * 4)); }; (*(t14*)z6) = (((t38_fields*)(z13+(0+t87_size)))->_name); NILCHECKA (z2 = _p); NILCHECKB (z3 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_map)); z5 = _offset; if (z5 < 0) RANGEFAULT; #line 123 { register t74* array = & (*((t56*) z3)); z12 = z5; if (z12 >= (array->size[0])) RANGEFAULT; z6 = (int)(array->elts + (z12 * 4)); #line 123 }; (*(t8*)z6) = _default; } } }; }; _posOK = 1 ; z14 = _RecordExpr__Fold (_p); { int from, to, index; from = 0 ; NILCHECKA (z2 = _p); NILCHECKB (z3 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_args)); #line 127 z1 = (*((t56*) z3)).size[0] - 1; to = z1; { auto t1 _i; { for (index = from; index <= to; index += 1) { _i = (t1) index; NILCHECKA (z2 = _p); NILCHECKB (z3 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_args)); { register t74* array = & (*((t56*) z3)); #line 128 z6 = _i; if (z6 >= (array->size[0])) RANGEFAULT; z5 = (int)(array->elts + (z6 * 4)); }; _e = (*(t8*)z5); _Expr__TypeCheck (_e); z4 = _RangeExpr__Split (_e, &_value, &_default); if (z4) { _Error__Msg (((ADDRESS)(& txt2.str))); goto if_6_end; }; if_6_end: /**/; z4 = _KeywordExpr__Split (_e, &_key, &_value); if (z4) { _posOK = 0 ; _offset = 0 ; _e = _value; loop_0:; z4 = (_offset >= _n); if (z4) { _Error__Str (_key, ((ADDRESS)(& txt3.str))); _offset = _i; goto loop_exit_0; }; NILCHECKA (z2 = _p); NILCHECKB (z9 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_names)); z5 = _offset; #line 143 if (z5 < 0) RANGEFAULT; { register t74* array = & (*((t15*) z9)); z6 = z5; if (z6 >= (array->size[0])) RANGEFAULT; #line 143 z1 = (int)(array->elts + (z6 * 4)); }; z4 = ((*(t14*)z1) == _key); if (z4) { goto loop_exit_0; #line 143 }; _offset += 1 ; goto loop_0; loop_exit_0: /**/; goto if_7_end; }; z4 = ! _posOK; if (z4) { _Error__Msg (((ADDRESS)(& txt4.str))); goto if_10_end; }; if_10_end: /**/; z4 = (_i >= _n); if (z4) { _Error__Msg (((ADDRESS)(& txt5.str))); z5 = _n - 1 ; _offset = z5; goto if_11_end; }; _offset = _i; if_11_end: /**/; if_7_end: /**/; NILCHECKB (z7 = _done); z5 = _offset; if (z5 < 0) RANGEFAULT; { register t74* array = & (*((t20*) z7)); #line 155 z6 = z5; if (z6 >= (array->size[0])) RANGEFAULT; z1 = (int)(array->elts + (z6 * 1)); }; if ((*(t4*)z1)) { NILCHECKA (z2 = _p); NILCHECKB (z9 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_names)); z5 = _offset; #line 156 if (z5 < 0) RANGEFAULT; { register t74* array = & (*((t15*) z9)); z12 = z5; if (z12 >= (array->size[0])) RANGEFAULT; #line 156 z6 = (int)(array->elts + (z12 * 4)); }; _Error__Str ((*(t14*)z6), ((ADDRESS)(& txt6.str))); goto if_12_end; #line 156 }; if_12_end: /**/; NILCHECKB (z7 = _done); z5 = _offset; if (z5 < 0) RANGEFAULT; { register t74* array = & (*((t20*) z7)); #line 158 z12 = z5; if (z12 >= (array->size[0])) RANGEFAULT; z6 = (int)(array->elts + (z12 * 1)); }; (*(t4*)z6) = 1 ; NILCHECKB (z8 = _types); z5 = _offset; if (z5 < 0) RANGEFAULT; { register t74* array = & (*((t18*) z8)); #line 159 z12 = z5; if (z12 >= (array->size[0])) RANGEFAULT; z6 = (int)(array->elts + (z12 * 4)); }; z15 = _Expr__TypeOf (_e); #line 159 z4 = _Type__IsAssignable ((*(t17*)z6), z15); z0 = ! z4; if (z0) { NILCHECKA (z2 = _p); NILCHECKB (z9 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_names)); z5 = _offset; #line 160 if (z5 < 0) RANGEFAULT; { register t74* array = & (*((t15*) z9)); z12 = z5; if (z12 >= (array->size[0])) RANGEFAULT; #line 160 z6 = (int)(array->elts + (z12 * 4)); }; _Error__Str ((*(t14*)z6), ((ADDRESS)(& txt7.str))); goto if_13_end; #line 160 }; NILCHECKB (z8 = _types); z5 = _offset; if (z5 < 0) RANGEFAULT; { register t74* array = & (*((t18*) z8)); z12 = z5; if (z12 >= (array->size[0])) RANGEFAULT; #line 162 z6 = (int)(array->elts + (z12 * 4)); }; z14 = _AssignStmt__CheckRHS ((*(t17*)z6), _e, 0 ); NILCHECKA (z2 = _p); #line 162 NILCHECKB (z3 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_map)); z5 = _offset; if (z5 < 0) RANGEFAULT; #line 162 { register t74* array = & (*((t56*) z3)); z6 = z5; if (z6 >= (array->size[0])) RANGEFAULT; z1 = (int)(array->elts + (z6 * 4)); #line 162 }; (*(t8*)z1) = z14; if_13_end: /**/; } } }; }; { int from, to, index; from = 0 ; z5 = _n - 1 ; to = z5; { auto t1 _i; { for (index = from; index <= to; index += 1) { #line 165 _i = (t1) index; NILCHECKB (z7 = _done); { register t74* array = & (*((t20*) z7)); z6 = _i; if (z6 >= (array->size[0])) RANGEFAULT; #line 166 z5 = (int)(array->elts + (z6 * 1)); }; z4 = ! (*(t4*)z5); z0 = 0; if (z4) { NILCHECKA (z2 = _p); NILCHECKB (z3 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_map)); #line 166 { register t74* array = & (*((t56*) z3)); z6 = _i; if (z6 >= (array->size[0])) RANGEFAULT; z5 = (int)(array->elts + (z6 * 4)); #line 166 }; z4 = ((*(t8*)z5) == 0); z0 = z4; }; if (z0) { NILCHECKA (z2 = _p); NILCHECKB (z9 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_names)); { register t74* array = & (*((t15*) z9)); #line 167 z6 = _i; if (z6 >= (array->size[0])) RANGEFAULT; z5 = (int)(array->elts + (z6 * 4)); }; _Error__Str ((*(t14*)z5), ((ADDRESS)(& txt8.str))); #line 167 goto if_14_end; }; if_14_end: /**/; } } }; }; } } }; #line 172 "RecordExpr.m3" PRIVATE t4 _RecordExpr__EqCheck (_a, _e) t2 _a; t8 _e; { t2 z2; t2 z4; t4 z5; t4 z0; t4 z1; t4 z6; t63 z3; t24 z7; t63 z8; t1 z9; t1 z10; t1 z11; #line 172 "RecordExpr.m3" { auto t2 _b; auto t4 __result; { ZERO1 (& _b); #line 172 ZERO1B (& __result); CHECKSTACKOVERFLOW; { register ADDRESS ref = (ADDRESS) _e; register int tc = TYPECODE (ref); if (tc == 0) goto tc1_0; if (ISSUBTYPE (tc, TC2)) goto tc1_1; #line 175 goto tc1_else; tc1_0:; __result = 0 ; return __result; tc1_1:; { auto t2 _p; { ZERO1 (& _p); #line 176 _p = (t2) ref; _b = _p; } } goto tc1_exit; tc1_else:; __result = 0 ; return __result; tc1_exit:; }; NILCHECKA (z2 = _a); NILCHECKA (z4 = _b); z5 = _Type__IsEqual ((((t2_fields*)(z2+(0+t55_size+t87_size)))->_tipe), (((t2_fields*)(z4+(0+t55_size+t87_size)))->_tipe)); #line 180 z0 = ! z5; z1 = 1; if (! z0) { NILCHECKA (z2 = _a); z5 = ((((t2_fields*)(z2+(0+t55_size+t87_size)))->_args) == 0); NILCHECKA (z2 = _b); #line 180 z6 = ((((t2_fields*)(z2+(0+t55_size+t87_size)))->_args) == 0); z0 = (z5 != z6); z1 = z0; }; z0 = 1; if (! z1) { NILCHECKA (z2 = _a); #line 180 z5 = ((((t2_fields*)(z2+(0+t55_size+t87_size)))->_args) != 0); z1 = 0; if (z5) { NILCHECKA (z4 = _a); NILCHECKB (z7 = (((t2_fields*)(z4+(0+t55_size+t87_size)))->_args)); #line 180 z3 = (*((t56*) z7)).size[0]; NILCHECKA (z4 = _b); NILCHECKB (z7 = (((t2_fields*)(z4+(0+t55_size+t87_size)))->_args)); #line 180 z8 = (*((t56*) z7)).size[0]; z5 = (z3 != z8); z1 = z5; }; z0 = z1; }; if (z0) { __result = 0 ; return __result; }; { int from, to, index; from = 0 ; NILCHECKA (z2 = _a); NILCHECKB (z7 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_args)); #line 185 z9 = (*((t56*) z7)).size[0] - 1; to = z9; { auto t1 _i; { for (index = from; index <= to; index += 1) { _i = (t1) index; NILCHECKA (z2 = _a); NILCHECKB (z7 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_args)); { register t74* array = & (*((t56*) z7)); #line 186 z10 = _i; if (z10 >= (array->size[0])) RANGEFAULT; z9 = (int)(array->elts + (z10 * 4)); }; NILCHECKA (z4 = _b); #line 186 NILCHECKB (z7 = (((t2_fields*)(z4+(0+t55_size+t87_size)))->_args)); { register t74* array = & (*((t56*) z7)); #line 186 z11 = _i; if (z11 >= (array->size[0])) RANGEFAULT; z10 = (int)(array->elts + (z11 * 4)); }; z5 = _Expr__IsEqual ((*(t8*)z9), (*(t8*)z10)); #line 186 z0 = ! z5; if (z0) { __result = 0 ; return __result; }; } } }; }; __result = 1 ; return __result; } } }; #line 191 "RecordExpr.m3" PRIVATE t10 _RecordExpr__Compile (_p) t2 _p; { t10 z2; t1 z0; t2 z3; t24 z4; t1 z5; t1 z6; t13 z7; #line 191 "RecordExpr.m3" { auto t10 _t1; auto t10 _t2; auto t10 __result; { CHECKSTACKOVERFLOW; z2 = _Temp__Alloc (_p); _t1 = z2; { int from, to, index; from = 0 ; NILCHECKA (z3 = _p); NILCHECKB (z4 = (((t2_fields*)(z3+(0+t55_size+t87_size)))->_map)); #line 195 z0 = (*((t56*) z4)).size[0] - 1; to = z0; { auto t1 _i; { for (index = from; index <= to; index += 1) { _i = (t1) index; NILCHECKA (z3 = _p); NILCHECKB (z4 = (((t2_fields*)(z3+(0+t55_size+t87_size)))->_map)); { register t74* array = & (*((t56*) z4)); #line 196 z6 = _i; if (z6 >= (array->size[0])) RANGEFAULT; z5 = (int)(array->elts + (z6 * 4)); }; z2 = _Expr__Compile ((*(t8*)z5)); #line 196 _t2 = z2; _Emit__OpT (((ADDRESS)(& txt9.str)), _t1); NILCHECKA (z3 = _p); NILCHECKB (z7 = (((t2_fields*)(z3+(0+t55_size+t87_size)))->_names)); { register t74* array = & (*((t15*) z7)); #line 198 z6 = _i; if (z6 >= (array->size[0])) RANGEFAULT; z5 = (int)(array->elts + (z6 * 4)); }; _Emit__OpS (((ADDRESS)(& txt10.str)), (*(t14*)z5)); _Emit__OpT (((ADDRESS)(& txt11.str)), _t2); _Temp__Free (_t2); } } }; }; __result = _t1; return __result; } } }; #line 205 "RecordExpr.m3" PRIVATE t8 _RecordExpr__Fold (_p) t2 _p; { t1 z0; t2 z2; t24 z3; t1 z4; t1 z5; t8 z6; t4 z7; #line 205 "RecordExpr.m3" { auto t2 _result; auto t8 __result; { ZERO1 (& _result); _result = _p; #line 205 CHECKSTACKOVERFLOW; { int from, to, index; from = 0 ; NILCHECKA (z2 = _p); NILCHECKB (z3 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_args)); #line 208 z0 = (*((t56*) z3)).size[0] - 1; to = z0; { auto t1 _i; { for (index = from; index <= to; index += 1) { _i = (t1) index; { t8 with; NILCHECKA (z2 = _p); NILCHECKB (z3 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_args)); { register t74* array = & (*((t56*) z3)); #line 209 z5 = _i; if (z5 >= (array->size[0])) RANGEFAULT; z4 = (int)(array->elts + (z5 * 4)); }; z6 = _Expr__ConstValue ((*(t8*)z4)); #line 209 with = z6; { auto t8 _e; { _e = with; z7 = (_e == 0); if (z7) { _result = (t2) 0; goto if_17_end; }; NILCHECKA (z2 = _p); NILCHECKB (z3 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_args)); #line 210 { register t74* array = & (*((t56*) z3)); z5 = _i; if (z5 >= (array->size[0])) RANGEFAULT; z4 = (int)(array->elts + (z5 * 4)); #line 210 }; (*(t8*)z4) = _e; if_17_end: /**/; } } }; } } }; }; __result = _result; return __result; } } }; #line 216 "RecordExpr.m3" PRIVATE t89 _RecordExpr__FPrinter (_p, _map, _wr) t2 _p; t7 _map; t6 _wr; { t2 z2; t1 z0; t24 z3; t1 z4; t1 z5; #line 216 "RecordExpr.m3" { { CHECKSTACKOVERFLOW; NILCHECKA (z2 = _p); _Type__Fingerprint ((((t2_fields*)(z2+(0+t55_size+t87_size)))->_tipe), _map, _wr); { int from, to, index; from = 0 ; NILCHECKA (z2 = _p); NILCHECKB (z3 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_map)); #line 219 z0 = (*((t56*) z3)).size[0] - 1; to = z0; { auto t1 _i; { for (index = from; index <= to; index += 1) { _i = (t1) index; NILCHECKA (z2 = _p); NILCHECKB (z3 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_map)); { register t74* array = & (*((t56*) z3)); #line 220 z5 = _i; if (z5 >= (array->size[0])) RANGEFAULT; z4 = (int)(array->elts + (z5 * 4)); }; _Expr__Fingerprint ((*(t8*)z4), _map, _wr); #line 220 } } }; }; } } }; #line 224 "RecordExpr.m3" PRIVATE t4 _RecordExpr__IsZeroes (_p) t2 _p; { t2 z1; t4 z3; t1 z0; t2 z2; t24 z4; t1 z5; t1 z6; t4 z7; #line 224 "RecordExpr.m3" { auto t4 __result; { ZERO1B (& __result); CHECKSTACKOVERFLOW; NILCHECKA (z1 = _p); z3 = ((((t2_fields*)(z1+(0+t55_size+t87_size)))->_map) != 0); if (!z3) ASSERTFAULT; { int from, to, index; from = 0 ; NILCHECKA (z2 = _p); NILCHECKB (z4 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_map)); #line 227 z0 = (*((t56*) z4)).size[0] - 1; to = z0; { auto t1 _i; { for (index = from; index <= to; index += 1) { _i = (t1) index; NILCHECKA (z2 = _p); NILCHECKB (z4 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_map)); { register t74* array = & (*((t56*) z4)); #line 228 z6 = _i; if (z6 >= (array->size[0])) RANGEFAULT; z5 = (int)(array->elts + (z6 * 4)); }; z3 = _Expr__IsZeroes ((*(t8*)z5)); #line 228 z7 = ! z3; if (z7) { __result = 0 ; return __result; }; } } }; }; __result = 1 ; return __result; } } }; #line 233 "RecordExpr.m3" PRIVATE t89 _RecordExpr__GenLiteral (_p) t2 _p; { t2 z1; t4 z3; t1 z0; t2 z2; t24 z4; t4 z5; t1 z6; t1 z7; t1 z8; t8 z9; #line 233 "RecordExpr.m3" { auto t1 _last; { CHECKSTACKOVERFLOW; NILCHECKA (z1 = _p); z3 = ((((t2_fields*)(z1+(0+t55_size+t87_size)))->_map) != 0); if (!z3) ASSERTFAULT; NILCHECKA (z2 = _p); NILCHECKB (z4 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_map)); z0 = (*((t56*) z4)).size[0] - 1; #line 237 _last = z0; z3 = (_last > 0 ); z5 = 0; if (z3) { NILCHECKA (z2 = _p); NILCHECKB (z4 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_map)); #line 238 z6 = _last; if (z6 < 0) RANGEFAULT; { register t74* array = & (*((t56*) z4)); z8 = z6; if (z8 >= (array->size[0])) RANGEFAULT; #line 238 z7 = (int)(array->elts + (z8 * 4)); }; z3 = _Expr__IsZeroes ((*(t8*)z7)); z5 = z3; }; if (z5) do { _last -= 1 ; #line 238 z3 = (_last > 0 ); z5 = 0; if (z3) { NILCHECKA (z2 = _p); NILCHECKB (z4 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_map)); #line 238 z6 = _last; if (z6 < 0) RANGEFAULT; { register t74* array = & (*((t56*) z4)); z8 = z6; if (z8 >= (array->size[0])) RANGEFAULT; #line 238 z7 = (int)(array->elts + (z8 * 4)); }; z3 = _Expr__IsZeroes ((*(t8*)z7)); z5 = z3; }; } while (z5); z3 = (_last >= 0 ); if (z3) { _Emit__Op (((ADDRESS)(& txt12.str))); { int from, to, index; from = 0 ; to = _last; { auto t1 _i; { for (index = from; index <= to; index += 1) { _i = (t1) index; z3 = (_i != 0 ); if (z3) { _Emit__Op (((ADDRESS)(& txt13.str))); goto if_20_end; }; if_20_end: /**/; { t8 with; NILCHECKA (z2 = _p); NILCHECKB (z4 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_map)); { #line 243 register t74* array = & (*((t56*) z4)); z7 = _i; if (z7 >= (array->size[0])) RANGEFAULT; z6 = (int)(array->elts + (z7 * 4)); #line 243 }; z9 = _Expr__ConstValue ((*(t8*)z6)); with = z9; { auto t8 _e; { _e = with; z3 = (_e != 0); if (!z3) ASSERTFAULT; NILCHECKA (z2 = _p); NILCHECKB (z4 = (((t2_fields*)(z2+(0+t55_size+t87_size)))->_map)); { register t74* array = & (*((t56*) z4)); #line 245 z7 = _i; if (z7 >= (array->size[0])) RANGEFAULT; z6 = (int)(array->elts + (z7 * 4)); }; (*(t8*)z6) = _e; _Expr__GenLiteral (_e); } } }; } } }; }; _Emit__Op (((ADDRESS)(& txt14.str))); goto if_19_end; }; if_19_end: /**/; } } }; PRIVATE int init_done = -1; #line 249 "RecordExpr.m3" PRIVATE void RecordExpr__initProc (g) int g; { #line 249 "RecordExpr.m3" if (init_done >= g) return; init_done = g; INITIALIZE (& RecordExpr__init); INITIALIZE (& Wr__init); INITIALIZE (& AssignStmt__init); #line 249 INITIALIZE (& RangeExpr__init); INITIALIZE (& KeywordExpr__init); INITIALIZE (& Field__init); INITIALIZE (& ValueRep__init); #line 249 INITIALIZE (& Value__init); INITIALIZE (& String__init); INITIALIZE (& Emit__init); INITIALIZE (& Temp__init); INITIALIZE (& RecordType__init); #line 249 INITIALIZE (& Scope__init); INITIALIZE (& Type__init); INITIALIZE (& Error__init); INITIALIZE (& ExprRep__init); INITIALIZE (& Expr__init); #line 249 return; }; #line 249 "RecordExpr.m3" PRIVATE void t2_InitProc (obj) char* obj; { register t2_fields* p; #line 249 "RecordExpr.m3" CHECKSTACKOVERFLOW; p = (t2_fields*) (obj + TC8->datasize); }; #line 249 "RecordExpr.m3" PRIVATE void t2_SetupProc () { register int* p; #line 249 "RecordExpr.m3" t2_TC.datasize += TC8->datasize; t2_TC.methodsize += TC8->methodsize; p = (int*) UALLOC (t2_TC.methodsize); COPY (TC8->defaultMethods, p, (TC8->methodsize)); #line 249 p[0] = (int)(& t2_TC); p[1] = 0; ((t55_methods*) (((char*)p) + TC87->methodsize))->_bind = _RecordExpr__Bind; ((t55_methods*) (((char*)p) + TC87->methodsize))->_check = _RecordExpr__Check; #line 249 ((t55_methods*) (((char*)p) + TC87->methodsize))->_compile = _RecordExpr__Compile; ((t55_methods*) (((char*)p) + TC87->methodsize))->_evaluate = _RecordExpr__Fold; #line 249 ((t55_methods*) (((char*)p) + TC87->methodsize))->_fprint = _RecordExpr__FPrinter; ((t55_methods*) (((char*)p) + TC87->methodsize))->_write = _ExprRep__NoWriter; #line 249 ((t55_methods*) (((char*)p) + TC87->methodsize))->_isEqual = _RecordExpr__EqCheck; ((t55_methods*) (((char*)p) + TC87->methodsize))->_getBounds = _ExprRep__NoBounds; #line 249 ((t55_methods*) (((char*)p) + TC87->methodsize))->_isWritable = _ExprRep__IsNever; ((t55_methods*) (((char*)p) + TC87->methodsize))->_isDesignator = _ExprRep__IsNever; #line 249 ((t55_methods*) (((char*)p) + TC87->methodsize))->_isZeroes = _RecordExpr__IsZeroes; ((t55_methods*) (((char*)p) + TC87->methodsize))->_genLiteral = _RecordExpr__GenLiteral; #line 249 t2_TC.defaultMethods = (char*) p; }; #line 249 "RecordExpr.m3" PRIVATE void t2_PrintProc (obj) char *obj; { t2_fields* o; #line 249 "RecordExpr.m3" CHECKSTACKOVERFLOW; if (TC8->printProc != 0) {TC8->printProc (obj); } fprintf (stderr, "{%s} ", TC2->brand); o = (t2_fields*) (obj + TC8->datasize); #line 249 fprintf (stderr, "tipe = %#x", o->_tipe); fprintf (stderr, ", "); fprintf (stderr, "args = %#x", o->_args); fprintf (stderr, ", "); #line 249 fprintf (stderr, "map = %#x", o->_map); fprintf (stderr, ", "); fprintf (stderr, "names = %#x", o->_names); fprintf (stderr, ", "); #line 249 }; #line 249 "RecordExpr.m3" PRIVATE void t13_PrintProc (ref) t15* ref; { CHECKSTACKOVERFLOW; fprintf (stderr, "%s {", TC13->brand); fprintf (stderr, "^ = array"); #line 249 fprintf (stderr, "}\n"); }; #line 249 "RecordExpr.m3" PRIVATE void t16_PrintProc (ref) t18* ref; { CHECKSTACKOVERFLOW; fprintf (stderr, "%s {", TC16->brand); fprintf (stderr, "^ = array"); #line 249 fprintf (stderr, "}\n"); }; #line 249 "RecordExpr.m3" PRIVATE void t19_PrintProc (ref) t20* ref; { CHECKSTACKOVERFLOW; fprintf (stderr, "%s {", TC19->brand); fprintf (stderr, "^ = array"); #line 249 fprintf (stderr, "}\n"); }; PRIVATE INITLINK me_0 ={(INITLINK*)NIL, 0, RecordExpr__initProc}; static char* VSimports[] = { &VS_Thread__Alerted__fc88feb43485af46, &VS_Wr__T__2555b70b3f7780b1, &VS_Wr__Failure__5f82cfb43dabf527, &VS_Wr__Error__c367253d3ed4fd15, &VS_AssignStmt__CheckRHS__9aaea40f392f387e, &VS_RangeExpr__Split__ee8f44e4219e1314, &VS_KeywordExpr__Split__c7296ea8373069e8, &VS_Field__Split__2f17aa55376061e0, &VS_ValueRep__V__f28699153c608442, &VS_ValueRep__NoDuplicates__ed93f73a247eb7b4, &VS_ValueRep__NoExpr__1297c63d2e046c2c, &VS_ValueRep__NoType__4061f01226f55ca3, &VS_ValueRep__NoLoader__9a7f0c5b24f526c1, &VS_ValueRep__NoWriter__3b24d43c367f7122, &VS_ValueRep__NoDeclarer__22db283420635bde, &VS_ValueRep__Never__39b6ab0628d97589, &VS_ValueRep__Always__1b0a9bbf2173b8b3, &VS_Value__T__2446b70b3f7780a5, &VS_String__T__3a6c7dc12615e4ee, &VS_Emit__MaxStream__cf0a0e8934c9c9f3, &VS_Emit__Format__bc4a2b083b93bbd7, &VS_Emit__Op__072646cc27c8ae10, &VS_Emit__OpS__f7dc93802c012951, &VS_Emit__OpT__764bdffe21d249e8, &VS_Temp__T__3a6c7dc12615e4ee, &VS_Temp__Alloc__0b946c9d3ec0974e, &VS_Temp__Free__3b952a2225c26846, &VS_RecordType__MaxFields__7046285b3b00145b, &VS_RecordType__Split__a733312e25a1fca2, &VS_Scope__T__3a6c7dc12615e4ee, &VS_Scope__ValueList__64bf053e22e4e53c, &VS_Scope__LookUpInScope__176166ad3a7fb5b9, &VS_Scope__ToList__4f3684492cf42c93, &VS_Type__T__2446b70b3f7780a5, &VS_Type__Map__41dd9f4b33104fce, &VS_Type__List__5791758e343becc1, &VS_Type__Bind__3443ccd12eedb9e8, &VS_Type__IsEqual__4098bc3f32325d05, &VS_Type__Check__3c8ceb09206ee440, &VS_Type__IsAssignable__6d0a7b0e2c806002, &VS_Type__Fingerprint__0d24a3463c25e166, &VS_Error__Msg__4d119a332467757f, &VS_Error__Str__2bd0723e3872e90c, &VS_ExprRep__Init__8b7fff3e227cebab, &VS_ExprRep__NoBind__e7d0d3dd3d703c08, &VS_ExprRep__NoCheck__c11b54bc361794fa, &VS_ExprRep__NoValue__8ccc143224598a66, &VS_ExprRep__NoBounds__b64bb146289ee4f0, &VS_ExprRep__IsNever__8f1a069b301903c8, &VS_ExprRep__NeverEq__dfdc2412249ccb65, &VS_ExprRep__NoWriter__a97bb1a23bbf506e, &VS_ExprRep__NoLiteral__6c9c90073f496f67, &VS_Expr__T__2446b70b3f7780a5, &VS_Expr__List__3f87eceb2b9a246a, &VS_Expr__Bind__7e2752da3eaf56eb, &VS_Expr__TypeOf__fef0a11b388c64fa, &VS_Expr__ConstValue__ce4fd448218fe483, &VS_Expr__IsZeroes__76ef605028be697c, &VS_Expr__TypeCheck__af9aa9073729e7f7, &VS_Expr__Compile__a7e0cc4029a2ec76, &VS_Expr__IsEqual__062d8b2c385e35a9, &VS_Expr__Fingerprint__50ce687c31d90a5b, &VS_Expr__GenLiteral__5d3c8414307dac94, NIL }; void RecordExpr__MLink (phase) int phase; { switch (phase) { case 0: { me_0.link = RecordExpr__init; RecordExpr__init = & me_0; t2_TC = t2_TC_init; REGISTERTYPE (TC2); t13_TC = t13_TC_init; REGISTERTYPE (TC13); t16_TC = t16_TC_init; REGISTERTYPE (TC16); t19_TC = t19_TC_init; REGISTERTYPE (TC19); break; }; case 1: { t2_TC.parent = TC_M3__Expr; break; }; case 2: { break; }; }; };