#include "M3Runtime.h" typedef struct { int tc; char* str; int len; } TXT; PRIVATE TXT txt1 = { 3, "bad type expression on constructor", 35}; PRIVATE TXT txt2 = { 3, "tailing \047..\047 in constructor, ignored", 37}; PRIVATE TXT txt3 = { 3, "{} ", 4}; #line 16 "../Interfaces/Type.i3" #define t2 ADDRESS #define t71 void typedef int t17; #line 116 ".ROOT/.boots/corelib/Interfaces/Wr.i3" typedef struct { char* elts; int size[1]; } t55; #line 16 "../Interfaces/Type.i3" #define t39 t55 #define TC2 TC_Type__Map IMPORT TYPE TC_Type__Map; #line 16 IMPORT char VS_Type__Map__41dd9f4b33104fce; #define t9 ADDRESS #define TC9 TC_NULL IMPORT TYPE TC_NULL; IMPORT char VS_NULL__fb50c7d53bec30dc; #line 14 "./Expr.i3" #define t14 ADDRESS #define t68 ADDRESS typedef struct { TYPE self; int private; } t68_methods; #define t68_msize (sizeof (t68_methods)) typedef struct { ADDRESS methods; } t68_fields; #define t68_size (sizeof (t68_fields)) #define TC68 TC_UNTRACED_ROOT IMPORT TYPE TC_UNTRACED_ROOT; IMPORT char VS_UNTRACED_ROOT__3e0964513fd6da20; #line 16 "../Interfaces/M3.i3" #define t5 ADDRESS #define TC5 TC_M3__Expr IMPORT TYPE TC_M3__Expr; #line 16 IMPORT char VS_M3__Expr__8ae39aaa2d432477; #line 14 "./Expr.i3" #define t35 t55 #define TC14 TC_Expr__List IMPORT TYPE TC_Expr__List; #line 14 IMPORT char VS_Expr__List__3f87eceb2b9a246a; #line 17 "../Interfaces/Scope.i3" #define t26 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 t30 t55 #define TC26 TC_Scope__ValueList IMPORT TYPE TC_Scope__ValueList; #line 17 IMPORT char VS_Scope__ValueList__64bf053e22e4e53c; #line 17 "../Interfaces/Type.i3" #define t37 ADDRESS #define t13 ADDRESS #define TC13 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 { t37 _next; t13 _type; } t38; #define TC37 TC_Type__List IMPORT TYPE TC_Type__List; #line 17 IMPORT char VS_Type__List__5791758e343becc1; #define t50 ADDRESS #define TC50 TC_ADDRESS IMPORT TYPE TC_ADDRESS; IMPORT char VS_ADDRESS__30f7308738738b44; #define t57 ADDRESS #define TC57 TC_REFANY IMPORT TYPE TC_REFANY; IMPORT char VS_REFANY__4b8748e831fc107a; #define t58 ADDRESS typedef struct { TYPE self; int private; } t58_methods; #define t58_msize (sizeof (t58_methods)) typedef struct { ADDRESS methods; } t58_fields; #define t58_size (sizeof (t58_fields)) #define TC58 TC_ROOT IMPORT TYPE TC_ROOT; IMPORT char VS_ROOT__349f58f628be0ac6; #define t58_MapProc TC_ROOT->mapProc #define t1 ADDRESS #define TC1 TC_Wr__T IMPORT TYPE TC_Wr__T; #line 90 ".ROOT/.boots/corelib/Interfaces/Wr.i3" IMPORT char VS_Wr__T__2555b70b3f7780b1; #define t1_MapProc TC_Wr__T->mapProc #define t3 ADDRESS typedef unsigned char t10; #line 73 "ConsExpr.m3" typedef t71 (*t4)(); #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 31 "./ExprRep.i3" typedef t7 (*t8)(); #line 24 typedef t5 (*t6)(); #line 14 "./ArrayExpr.i3" typedef t10 (*t11)(); #line 16 "ConsExpr.m3" typedef struct { int filler; } t3_methods; #define t3_msize (sizeof (t3_methods)) typedef struct { #line 16 t5 _tipe; t14 _args; t10 _dots; t5 _base; } t3_fields; #define t3_size (sizeof (t3_fields)) PRIVATE void t3_InitProc (); #line 16 PRIVATE void t3_SetupProc (); PRIVATE void t3_PrintProc (); PRIVATE typecell t3_TC; PRIVATE typecell t3_TC_init = {0, 0, 0, 0, 0, (PROC)NIL, #line 16 t3_size, t3_msize, NIL, 0, 0, t3_InitProc, t3_SetupProc, t3_PrintProc, "", -364507564, 553057523}; PRIVATE TYPE TC3 = &t3_TC; #line 14 "../Interfaces/M3.i3" #define t12 ADDRESS #define TC12 TC_M3__Scope IMPORT TYPE TC_M3__Scope; #line 14 IMPORT char VS_M3__Scope__6e6d8848308d8a2d; #line 13 "../Interfaces/String.i3" #define t15 ADDRESS #define TC15 TC_String__T IMPORT TYPE TC_String__T; #line 13 IMPORT char VS_String__T__3a6c7dc12615e4ee; #line 14 "./CompareExpr.i3" typedef unsigned char t16; #line 14 "../Interfaces/SetType.i3" typedef t13 (*t18)(); #line 15 "../Interfaces/Token.i3" typedef unsigned char t41; #line 45 typedef struct { int elts[4]; } t19; #line 29 "../Interfaces/ArrayType.i3" typedef t17 (*t21)(); #line 25 "../Interfaces/RecordType.i3" #define t22 t55 typedef short t23; #line 25 typedef struct { t13 elts[1001]; } t24; #line 19 "../Interfaces/String.i3" typedef signed_char t48; #line 65 "../Interfaces/Token.i3" #define t40 t55 typedef struct { t15 elts[100]; } t49; #line 17 "../Interfaces/String.i3" typedef struct { t17 _top; t49 _stk; } t25; #line 14 typedef struct { t15 _module; t15 _item; } t27; #line 38 "../Interfaces/Scope.i3" typedef t20 (*t28)(); #line 31 typedef t12 (*t29)(); #line 18 "../Interfaces/Value.i3" typedef unsigned char t31; #line 40 typedef t31 (*t32)(); #define t33 ADDRESS #define TC33 TC_TEXT IMPORT TYPE TC_TEXT; IMPORT char VS_TEXT__b7a92447326386f5; #define t33_MapProc TC_TEXT->mapProc #define t34 ADDRESS #line 13 "./ExprRep.i3" typedef struct { t4 _bind; t4 _check; t4 _write; t11 _isEqual; t6 _evaluate; t4 _getBounds; t11 _isWritable; t11 _isDesignator; #line 13 t11 _isZeroes; t4 _genLiteral; t4 _fprint; t8 _compile; } t34_methods; #define t34_msize (sizeof (t34_methods)) typedef struct { #line 13 t17 _origin; t13 _type; t10 _bound; t10 _inCheck; t10 _checked; } t34_fields; #define t34_size (sizeof (t34_fields)) #define TC34 TC_M3__Expr typedef t2 (*t36)(); #line 65 "../Interfaces/Token.i3" typedef struct { t15 elts[97]; } t42; typedef int t43; #line 37 "../Interfaces/String.i3" typedef t33 (*t44)(); #line 34 typedef t15 (*t45)(); typedef unsigned char t46; #line 28 #define t47 t55 typedef signed_char t51; #line 67 ".ROOT/.boots/corelib/Interfaces/Text.i3" typedef t51 (*t52)(); #line 26 typedef t43 (*t53)(); #line 23 typedef t46 (*t54)(); #line 91 ".ROOT/.boots/corelib/Interfaces/Wr.i3" typedef unsigned char t56; #line 15 ".ROOT/.boots/corelib/Interfaces/Thread.i3" #define t59 ADDRESS #define TC59 TC_Thread__T IMPORT TYPE TC_Thread__T; #line 15 IMPORT char VS_Thread__T__2555b70b3f7780b1; #define t59_MapProc TC_Thread__T->mapProc typedef t57 (*t60)(); #define t61 ADDRESS #define TC61 TC_Thread__Condition IMPORT TYPE TC_Thread__Condition; #line 21 IMPORT char VS_Thread__Condition__26d5968239e08f4e; #define t61_MapProc TC_Thread__Condition->mapProc #define t62 ADDRESS #define TC62 TC_MUTEX IMPORT TYPE TC_MUTEX; IMPORT char VS_MUTEX__1f9d4e89391ab815; #define t62_MapProc TC_MUTEX->mapProc typedef t59 (*t63)(); #line 23 #define t64 ADDRESS #line 23 typedef struct { t60 _apply; } t64_methods; #define t64_msize (sizeof (t64_methods)) typedef struct { #line 23 int filler; } t64_fields; #define t64_size (sizeof (t64_fields)) #define TC64 TC_Thread__Closure IMPORT TYPE TC_Thread__Closure; #line 23 IMPORT char VS_Thread__Closure__7fb5c6232c5a658a; #define t64_MapProc TC_Thread__Closure->mapProc typedef t61 (*t65)(); typedef t62 (*t66)(); #line 28 #define t67 ADDRESS #line 28 typedef struct { int filler; } t67_methods; #define t67_msize (sizeof (t67_methods)) typedef struct { #line 28 t43 _stackSize; } t67_fields; #define t67_size (sizeof (t67_fields)) #define TC67 TC_Thread__SizedClosure IMPORT TYPE TC_Thread__SizedClosure; #line 28 IMPORT char VS_Thread__SizedClosure__8a46717d2eae7b07; #define t67_MapProc TC_Thread__SizedClosure->mapProc #define t69 ADDRESS #define TC69 TC_M3__Stmt IMPORT TYPE TC_M3__Stmt; #line 17 "../Interfaces/M3.i3" IMPORT char VS_M3__Stmt__376b307627fc1f2f; typedef CLOSURE t70; typedef double t72; typedef float t73; #line 10 "ConsExpr.m3" IMPORT INITLINK* Wr__init; IMPORT INITLINK* ArrayExpr__init; IMPORT INITLINK* RecordExpr__init; IMPORT INITLINK* SetExpr__init; #line 10 IMPORT INITLINK* TypeExpr__init; IMPORT INITLINK* SetType__init; IMPORT INITLINK* Temp__init; IMPORT INITLINK* ArrayType__init; #line 10 IMPORT INITLINK* RecordType__init; IMPORT INITLINK* Scope__init; IMPORT INITLINK* Type__init; IMPORT INITLINK* Error__init; #line 10 IMPORT INITLINK* ExprRep__init; IMPORT INITLINK* Expr__init; IMPORT INITLINK* ConsExpr__init; IMPORT EXCEPTION_NAME _Thread__Alerted; #line 10 IMPORT char VS_Thread__Alerted__fc88feb43485af46; IMPORT EXCEPTION_NAME _Wr__Failure; IMPORT char VS_Wr__Failure__5f82cfb43dabf527; #line 10 IMPORT EXCEPTION_NAME _Wr__Error; IMPORT char VS_Wr__Error__c367253d3ed4fd15; IMPORT t71 _Wr__PutText (); IMPORT char VS_Wr__PutText__e034dab73a793846; #line 10 IMPORT t5 _ArrayExpr__New (); IMPORT char VS_ArrayExpr__New__716586d625f07976; IMPORT t5 _RecordExpr__New (); IMPORT char VS_RecordExpr__New__4bff9f952c09864b; #line 10 IMPORT t5 _SetExpr__New (); IMPORT char VS_SetExpr__New__36df42b53aabe0ad; IMPORT t10 _TypeExpr__Split (); IMPORT char VS_TypeExpr__Split__f3b91e1b2487bd66; #line 10 IMPORT t10 _SetType__Split (); IMPORT char VS_SetType__Split__edc8fdf02e117577; IMPORT TYPE TC_Temp__T; IMPORT char VS_Temp__T__3a6c7dc12615e4ee; #line 10 IMPORT t10 _ArrayType__Split (); IMPORT char VS_ArrayType__Split__b3402f88270f8053; IMPORT char VS_RecordType__MaxFields__7046285b3b00145b; #line 10 IMPORT t10 _RecordType__Split (); IMPORT char VS_RecordType__Split__a733312e25a1fca2; IMPORT TYPE TC_Scope__T; IMPORT char VS_Scope__T__3a6c7dc12615e4ee; #line 10 IMPORT TYPE TC_Type__T; IMPORT char VS_Type__T__2446b70b3f7780a5; IMPORT t71 _Error__Msg (); IMPORT char VS_Error__Msg__4d119a332467757f; #line 10 IMPORT t71 _ExprRep__Init (); IMPORT char VS_ExprRep__Init__8b7fff3e227cebab; IMPORT t71 _ExprRep__NoBind (); IMPORT char VS_ExprRep__NoBind__e7d0d3dd3d703c08; #line 10 IMPORT t71 _ExprRep__NoCheck (); IMPORT char VS_ExprRep__NoCheck__c11b54bc361794fa; IMPORT t5 _ExprRep__NoValue (); IMPORT char VS_ExprRep__NoValue__8ccc143224598a66; #line 10 IMPORT t71 _ExprRep__NoBounds (); IMPORT char VS_ExprRep__NoBounds__b64bb146289ee4f0; IMPORT t10 _ExprRep__IsNever (); IMPORT char VS_ExprRep__IsNever__8f1a069b301903c8; #line 10 IMPORT t10 _ExprRep__NeverEq (); IMPORT char VS_ExprRep__NeverEq__dfdc2412249ccb65; IMPORT t71 _ExprRep__NoWriter (); IMPORT char VS_ExprRep__NoWriter__a97bb1a23bbf506e; #line 10 IMPORT t71 _ExprRep__NoLiteral (); IMPORT char VS_ExprRep__NoLiteral__6c9c90073f496f67; IMPORT TYPE TC_Expr__T; IMPORT char VS_Expr__T__2446b70b3f7780a5; #line 10 IMPORT t71 _Expr__Bind (); IMPORT char VS_Expr__Bind__7e2752da3eaf56eb; IMPORT t13 _Expr__TypeOf (); IMPORT char VS_Expr__TypeOf__fef0a11b388c64fa; #line 10 IMPORT t5 _Expr__ConstValue (); IMPORT char VS_Expr__ConstValue__ce4fd448218fe483; IMPORT t71 _Expr__TypeCheck (); IMPORT char VS_Expr__TypeCheck__af9aa9073729e7f7; #line 10 IMPORT t7 _Expr__Compile (); IMPORT char VS_Expr__Compile__a7e0cc4029a2ec76; IMPORT t10 _Expr__IsEqual (); IMPORT char VS_Expr__IsEqual__062d8b2c385e35a9; #line 10 IMPORT t71 _Expr__Fingerprint (); IMPORT char VS_Expr__Fingerprint__50ce687c31d90a5b; EXPORT t5 _ConsExpr__New (); EXPORT char VS_ConsExpr__New__3a31cb372bfb3a81 = '\0'; #line 10 PRIVATE TYPE TC_ConsExpr__P; PRIVATE t71 _ConsExpr__Bind (); PRIVATE t71 _ConsExpr__BadDots (); PRIVATE t71 _ConsExpr__Check (); #line 10 PRIVATE t10 _ConsExpr__EqCheck (); PRIVATE t7 _ConsExpr__Compile (); PRIVATE t5 _ConsExpr__Fold (); PRIVATE t71 _ConsExpr__FPrinter (); #line 10 IMPORT char VS_M3__Expr__58bf709e39adf1f7; #line 36 "ConsExpr.m3" EXPORT t5 _ConsExpr__New (_type, _args, _dots) t5 _type; t14 _args; t10 _dots; { t3 z0; t3 z2; #line 36 "ConsExpr.m3" { auto t3 _p; auto t5 __result; { ZERO1 (& _p); { register char** ptr = (char**) UNEWOBJ (TC3); z0 = (t3) ptr; }; _p = z0; #line 36 CHECKSTACKOVERFLOW; _ExprRep__Init (_p); NILCHECKA (z2 = _p); (((t3_fields*)(z2+(0+t34_size+t68_size)))->_tipe) = _type; NILCHECKA (z2 = _p); (((t3_fields*)(z2+(0+t34_size+t68_size)))->_args) = _args; NILCHECKA (z2 = _p); (((t3_fields*)(z2+(0+t34_size+t68_size)))->_dots) = _dots; NILCHECKA (z2 = _p); (((t3_fields*)(z2+(0+t34_size+t68_size)))->_base) = (t5) 0; __result = _p; return __result; } } }; #line 47 "ConsExpr.m3" PRIVATE t71 _ConsExpr__Bind (_p) t3 _p; { t3 z2; t10 z4; t13 z3; t3 z1; t3 z5; t5 z6; t17 z0; t14 z7; t17 z8; t17 z9; #line 47 "ConsExpr.m3" { auto t13 _ta; auto t13 _range; auto t13 _index; auto t13 _element; auto t12 _fields; { CHECKSTACKOVERFLOW; NILCHECKA (z2 = _p); _Expr__Bind ((((t3_fields*)(z2+(0+t34_size+t68_size)))->_tipe)); NILCHECKA (z2 = _p); z4 = _TypeExpr__Split ((((t3_fields*)(z2+(0+t34_size+t68_size)))->_tipe), &_ta); if (z4) { NILCHECKA (z2 = _p); (((t34_fields*)(z2+(0+t68_size)))->_type) = _ta; goto if_1_end; }; NILCHECKA (z2 = _p); z3 = _Expr__TypeOf ((((t3_fields*)(z2+(0+t34_size+t68_size)))->_tipe)); NILCHECKA (z1 = _p); (((t34_fields*)(z1+(0+t68_size)))->_type) = z3; #line 53 _ta = (t13) 0; if_1_end: /**/; z4 = _RecordType__Split (_ta, &_fields); if (z4) { NILCHECKA (z1 = _p); if ((((t3_fields*)(z1+(0+t34_size+t68_size)))->_dots)) { _ConsExpr__BadDots (); goto if_3_end; #line 56 }; if_3_end: /**/; NILCHECKA (z5 = _p); z6 = _RecordExpr__New (_ta, (((t3_fields*)(z5+(0+t34_size+t68_size)))->_args)); NILCHECKA (z1 = _p); #line 57 (((t3_fields*)(z1+(0+t34_size+t68_size)))->_base) = z6; goto if_2_end; }; z4 = _SetType__Split (_ta, &_range); if (z4) { NILCHECKA (z1 = _p); if ((((t3_fields*)(z1+(0+t34_size+t68_size)))->_dots)) { _ConsExpr__BadDots (); goto if_4_end; #line 59 }; if_4_end: /**/; NILCHECKA (z5 = _p); z6 = _SetExpr__New (_ta, (((t3_fields*)(z5+(0+t34_size+t68_size)))->_args)); NILCHECKA (z1 = _p); #line 60 (((t3_fields*)(z1+(0+t34_size+t68_size)))->_base) = z6; goto if_2_end; }; z4 = _ArrayType__Split (_ta, &_index, &_element); #line 60 if (z4) { NILCHECKA (z5 = _p); z6 = _ArrayExpr__New (_ta, (((t3_fields*)(z5+(0+t34_size+t68_size)))->_args), (((t3_fields*)(z5+(0+t34_size+t68_size)))->_dots)); #line 62 NILCHECKA (z1 = _p); (((t3_fields*)(z1+(0+t34_size+t68_size)))->_base) = z6; NILCHECKA (z2 = _p); _Expr__Bind ((((t3_fields*)(z2+(0+t34_size+t68_size)))->_base)); NILCHECKA (z2 = _p); z3 = _Expr__TypeOf ((((t3_fields*)(z2+(0+t34_size+t68_size)))->_base)); NILCHECKA (z1 = _p); #line 65 (((t34_fields*)(z1+(0+t68_size)))->_type) = z3; goto if_2_end; }; _Error__Msg (((ADDRESS)(& txt1.str))); { int from, to, index; from = 0 ; NILCHECKA (z2 = _p); NILCHECKB (z7 = (((t3_fields*)(z2+(0+t34_size+t68_size)))->_args)); #line 68 z0 = (*((t35*) z7)).size[0] - 1; to = z0; { auto t17 _i; { for (index = from; index <= to; index += 1) { _i = (t17) index; #line 68 NILCHECKA (z2 = _p); NILCHECKB (z7 = (((t3_fields*)(z2+(0+t34_size+t68_size)))->_args)); { register t55* array = & (*((t35*) z7)); #line 68 z9 = _i; if (z9 >= (array->size[0])) RANGEFAULT; z8 = (int)(array->elts + (z9 * 4)); }; _Expr__Bind ((*(t5*)z8)); #line 68 } } }; }; if_2_end: /**/; NILCHECKA (z2 = _p); _Expr__Bind ((((t3_fields*)(z2+(0+t34_size+t68_size)))->_base)); } } }; #line 73 "ConsExpr.m3" PRIVATE t71 _ConsExpr__BadDots () { #line 73 "ConsExpr.m3" { { CHECKSTACKOVERFLOW; _Error__Msg (((ADDRESS)(& txt2.str))); } } }; #line 78 "ConsExpr.m3" PRIVATE t71 _ConsExpr__Check (_p) t3 _p; { t3 z2; t3 z1; t10 z3; t17 z0; t14 z4; t17 z5; t17 z6; #line 78 "ConsExpr.m3" { { CHECKSTACKOVERFLOW; NILCHECKA (z2 = _p); _Expr__TypeCheck ((((t3_fields*)(z2+(0+t34_size+t68_size)))->_tipe)); NILCHECKA (z2 = _p); _Expr__TypeCheck ((((t3_fields*)(z2+(0+t34_size+t68_size)))->_base)); NILCHECKA (z1 = _p); z3 = ((((t3_fields*)(z1+(0+t34_size+t68_size)))->_base) == 0); if (z3) { { int from, to, index; from = 0 ; NILCHECKA (z2 = _p); NILCHECKB (z4 = (((t3_fields*)(z2+(0+t34_size+t68_size)))->_args)); #line 83 z0 = (*((t35*) z4)).size[0] - 1; to = z0; { auto t17 _i; { for (index = from; index <= to; index += 1) { _i = (t17) index; #line 83 NILCHECKA (z2 = _p); NILCHECKB (z4 = (((t3_fields*)(z2+(0+t34_size+t68_size)))->_args)); { register t55* array = & (*((t35*) z4)); #line 83 z6 = _i; if (z6 >= (array->size[0])) RANGEFAULT; z5 = (int)(array->elts + (z6 * 4)); }; _Expr__TypeCheck ((*(t5*)z5)); #line 83 } } }; }; goto if_5_end; }; if_5_end: /**/; } } }; #line 87 "ConsExpr.m3" PRIVATE t10 _ConsExpr__EqCheck (_a, _e) t3 _a; t5 _e; { t3 z2; t3 z4; t10 z5; #line 87 "ConsExpr.m3" { auto t10 __result; { ZERO1B (& __result); CHECKSTACKOVERFLOW; { register ADDRESS ref = (ADDRESS) _e; register int tc = TYPECODE (ref); if (tc == 0) goto tc0_0; if (ISSUBTYPE (tc, TC3)) goto tc0_1; #line 89 goto tc0_else; tc0_0:; __result = 0 ; return __result; tc0_1:; { auto t3 _b; { ZERO1 (& _b); #line 90 _b = (t3) ref; NILCHECKA (z2 = _a); NILCHECKA (z4 = _b); z5 = _Expr__IsEqual ((((t3_fields*)(z2+(0+t34_size+t68_size)))->_base), (((t3_fields*)(z4+(0+t34_size+t68_size)))->_base)); #line 91 __result = z5; return __result; } } tc0_else:; NILCHECKA (z2 = _a); z5 = _Expr__IsEqual ((((t3_fields*)(z2+(0+t34_size+t68_size)))->_base), _e); __result = z5; return __result; tc0_exit:; #line 92 }; } } }; #line 96 "ConsExpr.m3" PRIVATE t7 _ConsExpr__Compile (_p) t3 _p; { t3 z2; t7 z3; #line 96 "ConsExpr.m3" { auto t7 __result; { CHECKSTACKOVERFLOW; NILCHECKA (z2 = _p); z3 = _Expr__Compile ((((t3_fields*)(z2+(0+t34_size+t68_size)))->_base)); __result = z3; return __result; #line 98 } } }; #line 101 "ConsExpr.m3" PRIVATE t5 _ConsExpr__Fold (_p) t3 _p; { t3 z2; t5 z3; #line 101 "ConsExpr.m3" { auto t5 __result; { CHECKSTACKOVERFLOW; NILCHECKA (z2 = _p); z3 = _Expr__ConstValue ((((t3_fields*)(z2+(0+t34_size+t68_size)))->_base)); __result = z3; return __result; #line 103 } } }; #line 106 "ConsExpr.m3" PRIVATE t71 _ConsExpr__FPrinter (_p, _map, _wr) t3 _p; t2 _map; t1 _wr; { t3 z2; #line 106 "ConsExpr.m3" { { CHECKSTACKOVERFLOW; _Wr__PutText (_wr, ((ADDRESS)(& txt3.str))); NILCHECKA (z2 = _p); _Expr__Fingerprint ((((t3_fields*)(z2+(0+t34_size+t68_size)))->_base), _map, _wr); } } }; PRIVATE int init_done = -1; #line 109 "ConsExpr.m3" PRIVATE void ConsExpr__initProc (g) int g; { #line 109 "ConsExpr.m3" if (init_done >= g) return; init_done = g; INITIALIZE (& ConsExpr__init); INITIALIZE (& Wr__init); INITIALIZE (& ArrayExpr__init); #line 109 INITIALIZE (& RecordExpr__init); INITIALIZE (& SetExpr__init); INITIALIZE (& TypeExpr__init); INITIALIZE (& SetType__init); #line 109 INITIALIZE (& Temp__init); INITIALIZE (& ArrayType__init); INITIALIZE (& RecordType__init); INITIALIZE (& Scope__init); INITIALIZE (& Type__init); #line 109 INITIALIZE (& Error__init); INITIALIZE (& ExprRep__init); INITIALIZE (& Expr__init); return; }; #line 109 "ConsExpr.m3" PRIVATE void t3_InitProc (obj) char* obj; { register t3_fields* p; #line 109 "ConsExpr.m3" CHECKSTACKOVERFLOW; p = (t3_fields*) (obj + TC5->datasize); }; #line 109 "ConsExpr.m3" PRIVATE void t3_SetupProc () { register int* p; #line 109 "ConsExpr.m3" t3_TC.datasize += TC5->datasize; t3_TC.methodsize += TC5->methodsize; p = (int*) UALLOC (t3_TC.methodsize); COPY (TC5->defaultMethods, p, (TC5->methodsize)); #line 109 p[0] = (int)(& t3_TC); p[1] = 0; ((t34_methods*) (((char*)p) + TC68->methodsize))->_bind = _ConsExpr__Bind; ((t34_methods*) (((char*)p) + TC68->methodsize))->_check = _ConsExpr__Check; #line 109 ((t34_methods*) (((char*)p) + TC68->methodsize))->_compile = _ConsExpr__Compile; ((t34_methods*) (((char*)p) + TC68->methodsize))->_evaluate = _ConsExpr__Fold; #line 109 ((t34_methods*) (((char*)p) + TC68->methodsize))->_fprint = _ConsExpr__FPrinter; ((t34_methods*) (((char*)p) + TC68->methodsize))->_write = _ExprRep__NoWriter; #line 109 ((t34_methods*) (((char*)p) + TC68->methodsize))->_isEqual = _ConsExpr__EqCheck; ((t34_methods*) (((char*)p) + TC68->methodsize))->_getBounds = _ExprRep__NoBounds; #line 109 ((t34_methods*) (((char*)p) + TC68->methodsize))->_isWritable = _ExprRep__IsNever; ((t34_methods*) (((char*)p) + TC68->methodsize))->_isDesignator = _ExprRep__IsNever; #line 109 ((t34_methods*) (((char*)p) + TC68->methodsize))->_isZeroes = _ExprRep__IsNever; ((t34_methods*) (((char*)p) + TC68->methodsize))->_genLiteral = _ExprRep__NoLiteral; #line 109 t3_TC.defaultMethods = (char*) p; }; #line 109 "ConsExpr.m3" PRIVATE void t3_PrintProc (obj) char *obj; { t3_fields* o; #line 109 "ConsExpr.m3" CHECKSTACKOVERFLOW; if (TC5->printProc != 0) {TC5->printProc (obj); } fprintf (stderr, "{%s} ", TC3->brand); o = (t3_fields*) (obj + TC5->datasize); #line 109 fprintf (stderr, "tipe = %#x", o->_tipe); fprintf (stderr, ", "); fprintf (stderr, "args = %#x", o->_args); fprintf (stderr, ", "); #line 109 fprintf (stderr, "dots = %d", o->_dots); fprintf (stderr, ", "); fprintf (stderr, "base = %#x", o->_base); fprintf (stderr, ", "); #line 109 }; PRIVATE INITLINK me_0 ={(INITLINK*)NIL, 0, ConsExpr__initProc}; static char* VSimports[] = { &VS_Thread__Alerted__fc88feb43485af46, &VS_Wr__T__2555b70b3f7780b1, &VS_Wr__Failure__5f82cfb43dabf527, &VS_Wr__Error__c367253d3ed4fd15, &VS_Wr__PutText__e034dab73a793846, &VS_ArrayExpr__New__716586d625f07976, &VS_RecordExpr__New__4bff9f952c09864b, &VS_SetExpr__New__36df42b53aabe0ad, &VS_TypeExpr__Split__f3b91e1b2487bd66, &VS_SetType__Split__edc8fdf02e117577, &VS_Temp__T__3a6c7dc12615e4ee, &VS_ArrayType__Split__b3402f88270f8053, &VS_RecordType__MaxFields__7046285b3b00145b, &VS_RecordType__Split__a733312e25a1fca2, &VS_Scope__T__3a6c7dc12615e4ee, &VS_Scope__ValueList__64bf053e22e4e53c, &VS_Type__T__2446b70b3f7780a5, &VS_Type__Map__41dd9f4b33104fce, &VS_Type__List__5791758e343becc1, &VS_Error__Msg__4d119a332467757f, &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__TypeCheck__af9aa9073729e7f7, &VS_Expr__Compile__a7e0cc4029a2ec76, &VS_Expr__IsEqual__062d8b2c385e35a9, &VS_Expr__Fingerprint__50ce687c31d90a5b, NIL }; void ConsExpr__MLink (phase) int phase; { switch (phase) { case 0: { me_0.link = ConsExpr__init; ConsExpr__init = & me_0; t3_TC = t3_TC_init; REGISTERTYPE (TC3); break; }; case 1: { t3_TC.parent = TC_M3__Expr; break; }; case 2: { break; }; }; };