#include "M3Runtime.h" typedef struct { int tc; char* str; int len; } TXT; PRIVATE TXT txt1 = { 3, "unsafe operation", 17}; PRIVATE TXT txt2 = { 3, "illegal operands for comparison", 32}; PRIVATE TXT txt3 = { 3, " ", 2}; PRIVATE TXT txt4 = { 3, "@ = (@ < @);\012", 14}; PRIVATE TXT txt5 = { 3, "<", 2}; PRIVATE TXT txt6 = { 3, "@ = (@ <= @);\012", 15}; PRIVATE TXT txt7 = { 3, "<=", 3}; PRIVATE TXT txt8 = { 3, "@ = (@ > @);\012", 14}; PRIVATE TXT txt9 = { 3, ">", 2}; PRIVATE TXT txt10 = { 3, "@ = (@ >= @);\012", 15}; PRIVATE TXT txt11 = { 3, ">=", 3}; #line 16 "../Interfaces/Type.i3" #define t3 ADDRESS #define t83 void typedef int t7; #line 116 ".ROOT/.boots/corelib/Interfaces/Wr.i3" typedef struct { char* elts; int size[1]; } t67; #line 16 "../Interfaces/Type.i3" #define t53 t67 #define TC3 TC_Type__Map IMPORT TYPE TC_Type__Map; #line 16 IMPORT char VS_Type__Map__41dd9f4b33104fce; #define t12 ADDRESS #define TC12 TC_NULL IMPORT TYPE TC_NULL; IMPORT char VS_NULL__fb50c7d53bec30dc; #line 14 "./Expr.i3" #define t22 ADDRESS #define t80 ADDRESS typedef struct { TYPE self; int private; } t80_methods; #define t80_msize (sizeof (t80_methods)) typedef struct { ADDRESS methods; } t80_fields; #define t80_size (sizeof (t80_fields)) #define TC80 TC_UNTRACED_ROOT IMPORT TYPE TC_UNTRACED_ROOT; IMPORT char VS_UNTRACED_ROOT__3e0964513fd6da20; #line 16 "../Interfaces/M3.i3" #define t8 ADDRESS #define TC8 TC_M3__Expr IMPORT TYPE TC_M3__Expr; #line 16 IMPORT char VS_M3__Expr__8ae39aaa2d432477; #line 16 "../Interfaces/Bool.i3" #define t38 t67 #define TC22 TC_Expr__List IMPORT TYPE TC_Expr__List; #line 14 "./Expr.i3" IMPORT char VS_Expr__List__3f87eceb2b9a246a; #line 17 "../Interfaces/Scope.i3" #define t41 ADDRESS #define t29 ADDRESS #define TC29 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 t43 t67 #define TC41 TC_Scope__ValueList IMPORT TYPE TC_Scope__ValueList; #line 17 IMPORT char VS_Scope__ValueList__64bf053e22e4e53c; #line 17 "../Interfaces/Type.i3" #define t51 ADDRESS #define t15 ADDRESS #define TC15 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 { t51 _next; t15 _type; } t52; #define TC51 TC_Type__List IMPORT TYPE TC_Type__List; #line 17 IMPORT char VS_Type__List__5791758e343becc1; #define t62 ADDRESS #define TC62 TC_ADDRESS IMPORT TYPE TC_ADDRESS; IMPORT char VS_ADDRESS__30f7308738738b44; #define t69 ADDRESS #define TC69 TC_REFANY IMPORT TYPE TC_REFANY; IMPORT char VS_REFANY__4b8748e831fc107a; #define t16 ADDRESS #define TC16 TC_TEXT IMPORT TYPE TC_TEXT; IMPORT char VS_TEXT__b7a92447326386f5; #define t16_MapProc TC_TEXT->mapProc typedef struct { #line 43 "CompareExpr.m3" t16 _relop; t7 _signA; t7 _signB; t16 _tag; } t17; #define t1 t67 #define t70 ADDRESS typedef struct { TYPE self; int private; } t70_methods; #define t70_msize (sizeof (t70_methods)) typedef struct { ADDRESS methods; } t70_fields; #define t70_size (sizeof (t70_fields)) #define TC70 TC_ROOT IMPORT TYPE TC_ROOT; IMPORT char VS_ROOT__349f58f628be0ac6; #define t70_MapProc TC_ROOT->mapProc #define t2 ADDRESS #define TC2 TC_Wr__T IMPORT TYPE TC_Wr__T; #line 90 ".ROOT/.boots/corelib/Interfaces/Wr.i3" IMPORT char VS_Wr__T__2555b70b3f7780b1; #define t2_MapProc TC_Wr__T->mapProc #define t4 ADDRESS #line 14 "./CompareExpr.i3" typedef unsigned char t6; #line 15 "../Interfaces/Address.i3" typedef t83 (*t5)(); #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 31 "./ExprRep.i3" typedef t10 (*t11)(); #line 24 typedef t8 (*t9)(); typedef unsigned char t13; #line 15 "./SetExpr.i3" typedef t13 (*t14)(); #line 13 "./ExprABC.i3" #define t19 ADDRESS #line 13 "./ExprAB.i3" #define t47 ADDRESS #line 13 typedef struct { int filler; } t47_methods; #define t47_msize (sizeof (t47_methods)) typedef struct { #line 13 t8 _a; t8 _b; } t47_fields; #define t47_size (sizeof (t47_fields)) #define TC47 TC_ExprAB__T IMPORT TYPE TC_ExprAB__T; #line 13 IMPORT char VS_ExprAB__T__4de31144393ed1be; #line 13 "./ExprABC.i3" typedef struct { int filler; } t19_methods; #define t19_msize (sizeof (t19_methods)) typedef struct { #line 13 t7 _class; } t19_fields; #define t19_size (sizeof (t19_fields)) #define TC19 TC_ExprABC__T IMPORT TYPE TC_ExprABC__T; #line 13 IMPORT char VS_ExprABC__T__8376f97f3cce4ada; #line 26 "CompareExpr.m3" typedef struct { int filler; } t4_methods; #define t4_msize (sizeof (t4_methods)) typedef struct { #line 26 t6 _op; } t4_fields; #define t4_size (sizeof (t4_fields)) PRIVATE void t4_InitProc (); #line 26 PRIVATE void t4_SetupProc (); PRIVATE void t4_PrintProc (); PRIVATE typecell t4_TC; PRIVATE typecell t4_TC_init = {0, 0, 0, 0, 0, (PROC)NIL, #line 26 t4_size, t4_msize, NIL, 0, 0, t4_InitProc, t4_SetupProc, t4_PrintProc, "", -749257569, 962532290}; PRIVATE TYPE TC4 = &t4_TC; #line 43 typedef struct { t17 elts[6]; } t18; #line 13 "../Interfaces/String.i3" #define t20 ADDRESS #define TC20 TC_String__T IMPORT TYPE TC_String__T; #line 13 IMPORT char VS_String__T__3a6c7dc12615e4ee; typedef struct { t20 _module; t20 _item; } t21; typedef double t23; #line 32 "../Interfaces/Module.i3" typedef t20 (*t24)(); #line 14 "../Interfaces/M3.i3" #define t25 ADDRESS #define TC25 TC_M3__Scope IMPORT TYPE TC_M3__Scope; #line 14 IMPORT char VS_M3__Scope__6e6d8848308d8a2d; #line 14 "../Interfaces/Module.i3" #define t26 ADDRESS #define TC26 TC_Module__T IMPORT TYPE TC_Module__T; #line 14 IMPORT char VS_Module__T__be7ead4a3afd8be5; #line 30 typedef t25 (*t27)(); #line 18 typedef t26 (*t28)(); #line 27 "../Interfaces/Emit.i3" typedef signed_char t30; #line 63 typedef t30 (*t31)(); #line 19 "../Interfaces/String.i3" typedef signed_char t60; #line 65 "../Interfaces/Token.i3" #define t54 t67 typedef struct { t20 elts[100]; } t61; #line 17 "../Interfaces/String.i3" typedef struct { t7 _top; t61 _stk; } t32; #line 16 "../Interfaces/Variable.i3" #define t33 ADDRESS #define TC33 TC_Variable__T IMPORT TYPE TC_Variable__T; #line 16 IMPORT char VS_Variable__T__be7ead4a3afd8be5; typedef unsigned char t34; typedef t33 (*t35)(); #line 14 "../Interfaces/Decl.i3" typedef struct { t20 _alias; t13 _isExternal; t13 _isInline; t13 _isUnused; t13 _isObsolete; } t36; #line 15 "../Interfaces/Token.i3" typedef unsigned char t55; #line 45 typedef struct { int elts[4]; } t37; #line 16 "../Interfaces/Bool.i3" typedef struct { t8 elts[2]; } t39; #line 14 "../Interfaces/SetType.i3" typedef t15 (*t40)(); #line 38 "../Interfaces/Scope.i3" typedef t29 (*t42)(); #line 18 "../Interfaces/Value.i3" typedef unsigned char t44; #line 40 typedef t44 (*t45)(); #line 14 "../Interfaces/Reel.i3" typedef t23 (*t46)(); #line 13 "./ExprRep.i3" #define t48 ADDRESS #line 13 typedef struct { t5 _bind; t5 _check; t5 _write; t14 _isEqual; t9 _evaluate; t5 _getBounds; t14 _isWritable; t14 _isDesignator; #line 13 t14 _isZeroes; t5 _genLiteral; t5 _fprint; t11 _compile; } t48_methods; #define t48_msize (sizeof (t48_methods)) typedef struct { #line 13 t7 _origin; t15 _type; t13 _bound; t13 _inCheck; t13 _checked; } t48_fields; #define t48_size (sizeof (t48_fields)) #define TC48 TC_M3__Expr typedef t3 (*t49)(); #line 97 "../Interfaces/Type.i3" typedef t7 (*t50)(); #line 65 "../Interfaces/Token.i3" typedef struct { t20 elts[97]; } t56; typedef int t57; #line 37 "../Interfaces/String.i3" typedef t16 (*t58)(); #line 28 #define t59 t67 typedef signed_char t63; #line 67 ".ROOT/.boots/corelib/Interfaces/Text.i3" typedef t63 (*t64)(); #line 26 typedef t57 (*t65)(); #line 23 typedef t34 (*t66)(); #line 91 ".ROOT/.boots/corelib/Interfaces/Wr.i3" typedef unsigned char t68; #line 15 ".ROOT/.boots/corelib/Interfaces/Thread.i3" #define t71 ADDRESS #define TC71 TC_Thread__T IMPORT TYPE TC_Thread__T; #line 15 IMPORT char VS_Thread__T__2555b70b3f7780b1; #define t71_MapProc TC_Thread__T->mapProc typedef t69 (*t72)(); #define t73 ADDRESS #define TC73 TC_Thread__Condition IMPORT TYPE TC_Thread__Condition; #line 21 IMPORT char VS_Thread__Condition__26d5968239e08f4e; #define t73_MapProc TC_Thread__Condition->mapProc #define t74 ADDRESS #define TC74 TC_MUTEX IMPORT TYPE TC_MUTEX; IMPORT char VS_MUTEX__1f9d4e89391ab815; #define t74_MapProc TC_MUTEX->mapProc typedef t71 (*t75)(); #line 23 #define t76 ADDRESS #line 23 typedef struct { t72 _apply; } t76_methods; #define t76_msize (sizeof (t76_methods)) typedef struct { #line 23 int filler; } t76_fields; #define t76_size (sizeof (t76_fields)) #define TC76 TC_Thread__Closure IMPORT TYPE TC_Thread__Closure; #line 23 IMPORT char VS_Thread__Closure__7fb5c6232c5a658a; #define t76_MapProc TC_Thread__Closure->mapProc typedef t73 (*t77)(); typedef t74 (*t78)(); #line 28 #define t79 ADDRESS #line 28 typedef struct { int filler; } t79_methods; #define t79_msize (sizeof (t79_methods)) typedef struct { #line 28 t57 _stackSize; } t79_fields; #define t79_size (sizeof (t79_fields)) #define TC79 TC_Thread__SizedClosure IMPORT TYPE TC_Thread__SizedClosure; #line 28 IMPORT char VS_Thread__SizedClosure__8a46717d2eae7b07; #define t79_MapProc TC_Thread__SizedClosure->mapProc #define t81 ADDRESS #define TC81 TC_M3__Stmt IMPORT TYPE TC_M3__Stmt; #line 17 "../Interfaces/M3.i3" IMPORT char VS_M3__Stmt__376b307627fc1f2f; typedef CLOSURE t82; typedef float t84; #line 10 "CompareExpr.m3" IMPORT INITLINK* Error__init; IMPORT INITLINK* Text__init; IMPORT INITLINK* Wr__init; IMPORT INITLINK* Temp__init; IMPORT INITLINK* String__init; #line 10 IMPORT INITLINK* SetExpr__init; IMPORT INITLINK* AddressExpr__init; IMPORT INITLINK* LongrealExpr__init; IMPORT INITLINK* RealExpr__init; #line 10 IMPORT INITLINK* EnumExpr__init; IMPORT INITLINK* IntegerExpr__init; IMPORT INITLINK* Address__init; IMPORT INITLINK* Module__init; #line 10 IMPORT INITLINK* Emit__init; IMPORT INITLINK* Bool__init; IMPORT INITLINK* SetType__init; IMPORT INITLINK* EnumType__init; #line 10 IMPORT INITLINK* Longreal__init; IMPORT INITLINK* Reel__init; IMPORT INITLINK* Int__init; IMPORT INITLINK* Type__init; IMPORT INITLINK* Token__init; #line 10 IMPORT INITLINK* ExprABC__init; IMPORT INITLINK* ExprAB__init; IMPORT INITLINK* ExprRep__init; IMPORT INITLINK* Expr__init; #line 10 IMPORT INITLINK* CompareExpr__init; IMPORT t83 _Error__Msg (); IMPORT char VS_Error__Msg__4d119a332467757f; IMPORT TYPE TC_Text__T; #line 10 IMPORT char VS_Text__T__fc4b369f3ab271fd; IMPORT EXCEPTION_NAME _Thread__Alerted; IMPORT char VS_Thread__Alerted__fc88feb43485af46; #line 10 IMPORT EXCEPTION_NAME _Wr__Failure; IMPORT char VS_Wr__Failure__5f82cfb43dabf527; IMPORT EXCEPTION_NAME _Wr__Error; IMPORT char VS_Wr__Error__c367253d3ed4fd15; #line 10 IMPORT t83 _Wr__PutText (); IMPORT char VS_Wr__PutText__e034dab73a793846; IMPORT TYPE TC_Temp__T; IMPORT char VS_Temp__T__3a6c7dc12615e4ee; #line 10 IMPORT t10 _Temp__Alloc (); IMPORT char VS_Temp__Alloc__0b946c9d3ec0974e; IMPORT t83 _Temp__Free (); IMPORT char VS_Temp__Free__3b952a2225c26846; #line 10 IMPORT t13 _SetExpr__Compare (); IMPORT char VS_SetExpr__Compare__97823f082e8da06f; IMPORT t83 _SetExpr__CompileCompareT (); #line 10 IMPORT char VS_SetExpr__CompileCompareT__b38fcbec2cd1bfac; IMPORT t13 _AddressExpr__Compare (); IMPORT char VS_AddressExpr__Compare__a49c9aec3a342385; #line 10 IMPORT t13 _LongrealExpr__Compare (); IMPORT char VS_LongrealExpr__Compare__1a12fd492ef0b03e; IMPORT t13 _RealExpr__Compare (); #line 10 IMPORT char VS_RealExpr__Compare__45d2bc9723111c8f; IMPORT t13 _EnumExpr__Compare (); IMPORT char VS_EnumExpr__Compare__9bf5b5812a1bdda3; #line 10 IMPORT t13 _IntegerExpr__Compare (); IMPORT char VS_IntegerExpr__Compare__4c54a2b92cc8b49a; IMPORT t15 _Address__T; IMPORT char VS_Address__T__8a8b518c29ea7c1d; #line 10 IMPORT t13 _Module__IsSafe (); IMPORT char VS_Module__IsSafe__13f026ba31f586b3; IMPORT char VS_Emit__MaxStream__cf0a0e8934c9c9f3; #line 10 IMPORT TYPE TC_Emit__Format; IMPORT char VS_Emit__Format__bc4a2b083b93bbd7; IMPORT t83 _Emit__OpTTT (); IMPORT char VS_Emit__OpTTT__91a3dd742690c5b9; #line 10 IMPORT t15 _Bool__T; IMPORT char VS_Bool__T__e3969196271753d2; IMPORT t39 _Bool__Map; IMPORT char VS_Bool__Map__988f3fa721f87e62; #line 10 IMPORT t13 _SetType__Split (); IMPORT char VS_SetType__Split__edc8fdf02e117577; IMPORT t13 _EnumType__Is (); IMPORT char VS_EnumType__Is__2cef67ea2861a0e7; #line 10 IMPORT t15 _Longreal__T; IMPORT char VS_Longreal__T__5097042c20911d85; IMPORT t15 _Reel__T; IMPORT char VS_Reel__T__254c3c852237b326; #line 10 IMPORT t15 _Int__T; IMPORT char VS_Int__T__1062912139372387; IMPORT TYPE TC_Type__T; IMPORT char VS_Type__T__2446b70b3f7780a5; #line 10 IMPORT t15 _Type__Base (); IMPORT char VS_Type__Base__2bebd0333659a92c; IMPORT t13 _Type__IsEqual (); IMPORT char VS_Type__IsEqual__4098bc3f32325d05; #line 10 IMPORT t13 _Type__IsSubtype (); IMPORT char VS_Type__IsSubtype__8591fba5245cb882; IMPORT t37 _Token__DeclStart; IMPORT char VS_Token__DeclStart__730c82bc2c2001b8; #line 10 IMPORT t37 _Token__TypeStart; IMPORT char VS_Token__TypeStart__f71616cb38a20d02; IMPORT t37 _Token__ExprStart; IMPORT char VS_Token__ExprStart__21dc8a0a27344836; #line 10 IMPORT t83 _ExprAB__Bind (); IMPORT char VS_ExprAB__Bind__b38b69303e15f944; IMPORT t13 _ExprAB__EqCheck (); IMPORT char VS_ExprAB__EqCheck__4b21927f20e25ebf; #line 10 IMPORT t83 _ExprRep__Init (); IMPORT char VS_ExprRep__Init__8b7fff3e227cebab; IMPORT t83 _ExprRep__NoBind (); IMPORT char VS_ExprRep__NoBind__e7d0d3dd3d703c08; #line 10 IMPORT t83 _ExprRep__NoCheck (); IMPORT char VS_ExprRep__NoCheck__c11b54bc361794fa; IMPORT t8 _ExprRep__NoValue (); IMPORT char VS_ExprRep__NoValue__8ccc143224598a66; #line 10 IMPORT t83 _ExprRep__NoBounds (); IMPORT char VS_ExprRep__NoBounds__b64bb146289ee4f0; IMPORT t13 _ExprRep__IsNever (); IMPORT char VS_ExprRep__IsNever__8f1a069b301903c8; #line 10 IMPORT t13 _ExprRep__NeverEq (); IMPORT char VS_ExprRep__NeverEq__dfdc2412249ccb65; IMPORT t83 _ExprRep__NoWriter (); IMPORT char VS_ExprRep__NoWriter__a97bb1a23bbf506e; #line 10 IMPORT t83 _ExprRep__NoLiteral (); IMPORT char VS_ExprRep__NoLiteral__6c9c90073f496f67; IMPORT TYPE TC_Expr__T; IMPORT char VS_Expr__T__2446b70b3f7780a5; #line 10 IMPORT t15 _Expr__TypeOf (); IMPORT char VS_Expr__TypeOf__fef0a11b388c64fa; IMPORT t8 _Expr__ConstValue (); IMPORT char VS_Expr__ConstValue__ce4fd448218fe483; #line 10 IMPORT t83 _Expr__TypeCheck (); IMPORT char VS_Expr__TypeCheck__af9aa9073729e7f7; IMPORT t10 _Expr__Compile (); IMPORT char VS_Expr__Compile__a7e0cc4029a2ec76; #line 10 IMPORT t13 _Expr__IsEqual (); IMPORT char VS_Expr__IsEqual__062d8b2c385e35a9; IMPORT t83 _Expr__Fingerprint (); IMPORT char VS_Expr__Fingerprint__50ce687c31d90a5b; #line 10 EXPORT t8 _CompareExpr__NewLT (); EXPORT char VS_CompareExpr__NewLT__d3bc668c338ffbca = '\0'; EXPORT t8 _CompareExpr__NewLE (); #line 10 EXPORT char VS_CompareExpr__NewLE__270970fc3aa3e654 = '\0'; EXPORT t8 _CompareExpr__NewGT (); EXPORT char VS_CompareExpr__NewGT__95364c512e28e614 = '\0'; #line 10 EXPORT t8 _CompareExpr__NewGE (); EXPORT char VS_CompareExpr__NewGE__61835a212704fb8a = '\0'; PRIVATE TYPE TC_CompareExpr__P; #line 10 PRIVATE t18 _CompareExpr__Ops; PRIVATE t8 _CompareExpr__Create (); PRIVATE t83 _CompareExpr__Check (); PRIVATE t13 _CompareExpr__EqCheck (); #line 10 PRIVATE t10 _CompareExpr__Compile (); PRIVATE t8 _CompareExpr__Fold (); PRIVATE t83 _CompareExpr__FPrinter (); IMPORT char VS_M3__Expr__58bf709e39adf1f7; #line 10 IMPORT char VS_M3__Expr__58bf709e39adf1f7; IMPORT char VS_M3__Expr__58bf709e39adf1f7; IMPORT char VS_M3__Expr__58bf709e39adf1f7; #line 10 void CompareExpr__MMap (p) void (*p) (); { ADDRESS r = NIL; ADDRESS c = NIL; CHECKSTACKOVERFLOW; { int i4; for (i4 = 0; i4 < 6; i4++) { #line 10 p (& (_CompareExpr__Ops.elts[i4]._relop), r, c); p (& (_CompareExpr__Ops.elts[i4]._tag), r, c); }; }; }; #line 50 "CompareExpr.m3" EXPORT t8 _CompareExpr__NewLT (_a, _b) t8 _a; t8 _b; { t8 z4; #line 50 "CompareExpr.m3" { auto t8 __result; { CHECKSTACKOVERFLOW; z4 = _CompareExpr__Create (_a, _b, 2 ); __result = z4; return __result; } } }; #line 53 "CompareExpr.m3" EXPORT t8 _CompareExpr__NewLE (_a, _b) t8 _a; t8 _b; { t8 z4; #line 53 "CompareExpr.m3" { auto t8 __result; { CHECKSTACKOVERFLOW; z4 = _CompareExpr__Create (_a, _b, 3 ); __result = z4; return __result; } } }; #line 56 "CompareExpr.m3" EXPORT t8 _CompareExpr__NewGT (_a, _b) t8 _a; t8 _b; { t8 z4; #line 56 "CompareExpr.m3" { auto t8 __result; { CHECKSTACKOVERFLOW; z4 = _CompareExpr__Create (_a, _b, 4 ); __result = z4; return __result; } } }; #line 59 "CompareExpr.m3" EXPORT t8 _CompareExpr__NewGE (_a, _b) t8 _a; t8 _b; { t8 z4; #line 59 "CompareExpr.m3" { auto t8 __result; { CHECKSTACKOVERFLOW; z4 = _CompareExpr__Create (_a, _b, 5 ); __result = z4; return __result; } } }; #line 62 "CompareExpr.m3" PRIVATE t8 _CompareExpr__Create (_a, _b, _op) t8 _a; t8 _b; t6 _op; { t4 z0; t4 z2; #line 62 "CompareExpr.m3" { auto t4 _p; auto t8 __result; { ZERO1 (& _p); #line 62 CHECKSTACKOVERFLOW; { register char** ptr = (char**) UNEWOBJ (TC4); z0 = (t4) ptr; }; _p = z0; _ExprRep__Init (_p); NILCHECKA (z2 = _p); (((t47_fields*)(z2+(0+t48_size+t80_size)))->_a) = _a; NILCHECKA (z2 = _p); (((t47_fields*)(z2+(0+t48_size+t80_size)))->_b) = _b; NILCHECKA (z2 = _p); (((t4_fields*)(z2+(0+t19_size+t47_size+t48_size+t80_size)))->_op) = _op; NILCHECKA (z2 = _p); (((t48_fields*)(z2+(0+t80_size)))->_type) = _Bool__T; __result = _p; return __result; } } }; #line 74 "CompareExpr.m3" PRIVATE t83 _CompareExpr__Check (_p) t4 _p; { t4 z2; t4 z3; t15 z4; t15 z1; t13 z5; t13 z0; #line 74 "CompareExpr.m3" { auto t15 _ta; auto t15 _tb; auto t15 _range; { CHECKSTACKOVERFLOW; NILCHECKA (z2 = _p); _Expr__TypeCheck ((((t47_fields*)(z2+(0+t48_size+t80_size)))->_a)); NILCHECKA (z2 = _p); _Expr__TypeCheck ((((t47_fields*)(z2+(0+t48_size+t80_size)))->_b)); NILCHECKA (z3 = _p); z4 = _Expr__TypeOf ((((t47_fields*)(z3+(0+t48_size+t80_size)))->_a)); z1 = _Type__Base (z4); _ta = z1; NILCHECKA (z3 = _p); z4 = _Expr__TypeOf ((((t47_fields*)(z3+(0+t48_size+t80_size)))->_b)); z1 = _Type__Base (z4); _tb = z1; NILCHECKA (z2 = _p); (((t19_fields*)(z2+(0+t47_size+t48_size+t80_size)))->_class) = 0 ; z5 = (_ta == _Int__T); z0 = 0; if (z5) { z5 = (_tb == _Int__T); z0 = z5; }; if (z0) { NILCHECKA (z2 = _p); (((t19_fields*)(z2+(0+t47_size+t48_size+t80_size)))->_class) = 0 ; #line 82 goto if_1_end; }; z5 = (_ta == _Reel__T); z0 = 0; if (z5) { z5 = (_tb == _Reel__T); z0 = z5; }; if (z0) { NILCHECKA (z2 = _p); (((t19_fields*)(z2+(0+t47_size+t48_size+t80_size)))->_class) = 1 ; goto if_1_end; }; z5 = (_ta == _Longreal__T); #line 83 z0 = 0; if (z5) { z5 = (_tb == _Longreal__T); z0 = z5; }; if (z0) { NILCHECKA (z2 = _p); (((t19_fields*)(z2+(0+t47_size+t48_size+t80_size)))->_class) = 2 ; goto if_1_end; }; z5 = _Type__IsSubtype (_ta, _Address__T); #line 84 z0 = 0; if (z5) { z5 = _Type__IsSubtype (_tb, _Address__T); z0 = z5; }; if (z0) { NILCHECKA (z2 = _p); (((t19_fields*)(z2+(0+t47_size+t48_size+t80_size)))->_class) = 3 ; z5 = _Module__IsSafe (); if (z5) { _Error__Msg (((ADDRESS)(& txt1.str))); goto if_2_end; }; if_2_end: /**/; goto if_1_end; #line 87 }; z5 = _Type__IsEqual (_ta, _tb); z0 = ! z5; if (z0) { _Error__Msg (((ADDRESS)(& txt2.str))); goto if_1_end; }; z5 = _EnumType__Is (_ta); if (z5) { NILCHECKA (z2 = _p); (((t19_fields*)(z2+(0+t47_size+t48_size+t80_size)))->_class) = 4 ; goto if_1_end; }; z5 = _SetType__Split (_ta, &_range); #line 90 if (z5) { NILCHECKA (z2 = _p); (((t19_fields*)(z2+(0+t47_size+t48_size+t80_size)))->_class) = 5 ; goto if_1_end; }; _Error__Msg (((ADDRESS)(& txt2.str))); if_1_end: /**/; } } }; #line 96 "CompareExpr.m3" PRIVATE t13 _CompareExpr__EqCheck (_a, _e) t4 _a; t8 _e; { t4 z1; t4 z3; t13 z4; t13 z0; t4 z2; t4 z5; t13 z6; #line 96 "CompareExpr.m3" { auto t13 __result; { ZERO1B (& __result); CHECKSTACKOVERFLOW; { register ADDRESS ref = (ADDRESS) _e; register int tc = TYPECODE (ref); if (tc == 0) goto tc0_0; if (ISSUBTYPE (tc, TC4)) goto tc0_1; #line 98 goto tc0_else; tc0_0:; __result = 0 ; return __result; tc0_1:; { auto t4 _b; { ZERO1 (& _b); #line 99 _b = (t4) ref; NILCHECKA (z1 = _a); NILCHECKA (z3 = _b); z4 = ((((t19_fields*)(z1+(0+t47_size+t48_size+t80_size)))->_class) == (((t19_fields*)(z3+(0+t47_size+t48_size+t80_size)))->_class)); #line 100 z0 = 0; if (z4) { NILCHECKA (z2 = _a); NILCHECKA (z5 = _b); z4 = ((((t4_fields*)(z2+(0+t19_size+t47_size+t48_size+t80_size)))->_op) == (((t4_fields*)(z5+(0+t19_size+t47_size+t48_size+t80_size)))->_op)); #line 100 z0 = z4; }; z4 = 0; if (z0) { NILCHECKA (z2 = _a); NILCHECKA (z5 = _b); z6 = _Expr__IsEqual ((((t47_fields*)(z2+(0+t48_size+t80_size)))->_a), (((t47_fields*)(z5+(0+t48_size+t80_size)))->_a)); #line 100 z4 = z6; }; z0 = 0; if (z4) { NILCHECKA (z3 = _a); NILCHECKA (z5 = _b); z6 = _Expr__IsEqual ((((t47_fields*)(z3+(0+t48_size+t80_size)))->_b), (((t47_fields*)(z5+(0+t48_size+t80_size)))->_b)); #line 100 z0 = z6; }; __result = z0; return __result; } } tc0_else:; __result = 0 ; return __result; tc0_exit:; }; } } }; #line 108 "CompareExpr.m3" PRIVATE t10 _CompareExpr__Compile (_p) t4 _p; { t4 z2; t10 z3; t4 z1; t13 z4; t4 z5; t8 z6; t4 z7; #line 108 "CompareExpr.m3" { auto t10 _t1; auto t10 _t2; auto t10 _t3; auto t10 __result; { CHECKSTACKOVERFLOW; NILCHECKA (z2 = _p); z3 = _Expr__Compile ((((t47_fields*)(z2+(0+t48_size+t80_size)))->_a)); _t1 = z3; NILCHECKA (z2 = _p); z3 = _Expr__Compile ((((t47_fields*)(z2+(0+t48_size+t80_size)))->_b)); _t2 = z3; z3 = _Temp__Alloc (_p); _t3 = z3; NILCHECKA (z1 = _p); z4 = ((((t19_fields*)(z1+(0+t47_size+t48_size+t80_size)))->_class) != 5 ); if (z4) { NILCHECKA (z5 = _p); _Emit__OpTTT (((_CompareExpr__Ops.elts[(((t4_fields*)(z5+(0+t19_size+t47_size+t48_size+t80_size)))->_op)])._relop), _t3, _t1, _t2); #line 115 goto if_3_end; }; NILCHECKA (z5 = _p); NILCHECKA (z6 = (((t47_fields*)(z5+(0+t48_size+t80_size)))->_a)); NILCHECKA (z7 = _p); _SetExpr__CompileCompareT (_t1, _t2, _t3, (((t48_fields*)(z6+(0+t80_size)))->_type), (((t4_fields*)(z7+(0+t19_size+t47_size+t48_size+t80_size)))->_op)); #line 117 if_3_end: /**/; _Temp__Free (_t1); _Temp__Free (_t2); __result = _t3; return __result; } } }; #line 124 "CompareExpr.m3" PRIVATE t8 _CompareExpr__Fold (_p) t4 _p; { t4 z2; t8 z3; t13 z4; t4 z1; t13 z0; t13 z5; t13 z6; t13 z7; #line 124 "CompareExpr.m3" { auto t8 _e1; auto t8 _e2; auto t7 _s; auto t6 _op; auto t8 __result; { ZERO1B (& _op); #line 124 CHECKSTACKOVERFLOW; NILCHECKA (z2 = _p); z3 = _Expr__ConstValue ((((t47_fields*)(z2+(0+t48_size+t80_size)))->_a)); _e1 = z3; z4 = (_e1 == 0); if (z4) { __result = 0; return __result; }; NILCHECKA (z2 = _p); z3 = _Expr__ConstValue ((((t47_fields*)(z2+(0+t48_size+t80_size)))->_b)); _e2 = z3; z4 = (_e2 == 0); if (z4) { __result = 0; return __result; }; NILCHECKA (z1 = _p); _op = (((t4_fields*)(z1+(0+t19_size+t47_size+t48_size+t80_size)))->_op); z4 = _IntegerExpr__Compare (_e1, _e2, &_s); z0 = 1; if (! z4) { z5 = _EnumExpr__Compare (_e1, _e2, &_s); z0 = z5; }; #line 132 z4 = 1; if (! z0) { z5 = _RealExpr__Compare (_e1, _e2, &_s); z4 = z5; }; z0 = 1; if (! z4) { z5 = _LongrealExpr__Compare (_e1, _e2, &_s); #line 132 z0 = z5; }; z4 = 1; if (! z0) { z5 = _AddressExpr__Compare (_e1, _e2, &_s); z4 = z5; }; z0 = 1; if (! z4) { z5 = _SetExpr__Compare (_e1, _e2, &_s); #line 132 z0 = z5; }; if (z0) { z6 = (_s == ((_CompareExpr__Ops.elts[_op])._signA)); z4 = 1; if (! z6) { z7 = (_s == ((_CompareExpr__Ops.elts[_op])._signB)); #line 135 z4 = z7; }; __result = (_Bool__Map.elts[z4]); return __result; }; __result = 0; return __result; } } }; #line 140 "CompareExpr.m3" PRIVATE t83 _CompareExpr__FPrinter (_p, _map, _wr) t4 _p; t3 _map; t2 _wr; { t4 z4; t16 z8; t4 z2; #line 140 "CompareExpr.m3" { { CHECKSTACKOVERFLOW; NILCHECKA (z4 = _p); z8 = (ADDRESS) _Text__Cat (((_CompareExpr__Ops.elts[(((t4_fields*)(z4+(0+t19_size+t47_size+t48_size+t80_size)))->_op)])._tag), ((ADDRESS)(& txt3.str))); #line 142 _Wr__PutText (_wr, z8); NILCHECKA (z2 = _p); _Expr__Fingerprint ((((t47_fields*)(z2+(0+t48_size+t80_size)))->_a), _map, _wr); NILCHECKA (z2 = _p); _Expr__Fingerprint ((((t47_fields*)(z2+(0+t48_size+t80_size)))->_b), _map, _wr); } } }; PRIVATE int init_done = -1; #line 170 "CompareExpr.m3" PRIVATE void CompareExpr__initProc (g) int g; { t7 z1; #line 170 "CompareExpr.m3" if (init_done >= g) return; init_done = g; INITIALIZE (& CompareExpr__init); INITIALIZE (& Error__init); INITIALIZE (& Text__init); #line 170 INITIALIZE (& Wr__init); INITIALIZE (& Temp__init); INITIALIZE (& String__init); INITIALIZE (& SetExpr__init); INITIALIZE (& AddressExpr__init); #line 170 INITIALIZE (& LongrealExpr__init); INITIALIZE (& RealExpr__init); INITIALIZE (& EnumExpr__init); INITIALIZE (& IntegerExpr__init); #line 170 INITIALIZE (& Address__init); INITIALIZE (& Module__init); INITIALIZE (& Emit__init); INITIALIZE (& Bool__init); INITIALIZE (& SetType__init); #line 170 INITIALIZE (& EnumType__init); INITIALIZE (& Longreal__init); INITIALIZE (& Reel__init); INITIALIZE (& Int__init); INITIALIZE (& Type__init); #line 170 INITIALIZE (& Token__init); INITIALIZE (& ExprABC__init); INITIALIZE (& ExprAB__init); INITIALIZE (& ExprRep__init); INITIALIZE (& Expr__init); #line 43 ZERO (96, & _CompareExpr__Ops); #line 148 { t17 *with; with = &(_CompareExpr__Ops.elts[ 2 ]); { auto t17 * _z; { _z = with; ((*_z)._relop) = ((ADDRESS)(& txt4.str)); z1 = - 1 ; ((*_z)._signA) = z1; z1 = - 1 ; ((*_z)._signB) = z1; ((*_z)._tag) = ((ADDRESS)(& txt5.str)); } } }; { t17 *with; with = &(_CompareExpr__Ops.elts[ 3 ]); { auto t17 * _z; { _z = with; ((*_z)._relop) = ((ADDRESS)(& txt6.str)); z1 = - 1 ; ((*_z)._signA) = z1; ((*_z)._signB) = 0 ; ((*_z)._tag) = ((ADDRESS)(& txt7.str)); } } }; { t17 *with; with = &(_CompareExpr__Ops.elts[ 4 ]); { auto t17 * _z; { _z = with; ((*_z)._relop) = ((ADDRESS)(& txt8.str)); ((*_z)._signA) = 1 ; ((*_z)._signB) = 1 ; ((*_z)._tag) = ((ADDRESS)(& txt9.str)); } } }; { t17 *with; with = &(_CompareExpr__Ops.elts[ 5 ]); { auto t17 * _z; { _z = with; ((*_z)._relop) = ((ADDRESS)(& txt10.str)); ((*_z)._signA) = 1 ; ((*_z)._signB) = 0 ; ((*_z)._tag) = ((ADDRESS)(& txt11.str)); } } }; return; }; #line 170 "CompareExpr.m3" PRIVATE void t4_InitProc (obj) char* obj; { register t4_fields* p; #line 170 "CompareExpr.m3" CHECKSTACKOVERFLOW; p = (t4_fields*) (obj + TC19->datasize); }; #line 170 "CompareExpr.m3" PRIVATE void t4_SetupProc () { register int* p; #line 170 "CompareExpr.m3" t4_TC.datasize += TC19->datasize; t4_TC.methodsize += TC19->methodsize; p = (int*) UALLOC (t4_TC.methodsize); COPY (TC19->defaultMethods, p, (TC19->methodsize)); #line 170 p[0] = (int)(& t4_TC); p[1] = 0; ((t48_methods*) (((char*)p) + TC80->methodsize))->_bind = _ExprAB__Bind; ((t48_methods*) (((char*)p) + TC80->methodsize))->_check = _CompareExpr__Check; #line 170 ((t48_methods*) (((char*)p) + TC80->methodsize))->_compile = _CompareExpr__Compile; ((t48_methods*) (((char*)p) + TC80->methodsize))->_evaluate = _CompareExpr__Fold; #line 170 ((t48_methods*) (((char*)p) + TC80->methodsize))->_fprint = _CompareExpr__FPrinter; ((t48_methods*) (((char*)p) + TC80->methodsize))->_write = _ExprRep__NoWriter; #line 170 ((t48_methods*) (((char*)p) + TC80->methodsize))->_isEqual = _CompareExpr__EqCheck; ((t48_methods*) (((char*)p) + TC80->methodsize))->_getBounds = _ExprRep__NoBounds; #line 170 ((t48_methods*) (((char*)p) + TC80->methodsize))->_isWritable = _ExprRep__IsNever; ((t48_methods*) (((char*)p) + TC80->methodsize))->_isDesignator = _ExprRep__IsNever; #line 170 ((t48_methods*) (((char*)p) + TC80->methodsize))->_isZeroes = _ExprRep__IsNever; ((t48_methods*) (((char*)p) + TC80->methodsize))->_genLiteral = _ExprRep__NoLiteral; #line 170 t4_TC.defaultMethods = (char*) p; }; #line 170 "CompareExpr.m3" PRIVATE void t4_PrintProc (obj) char *obj; { t4_fields* o; #line 170 "CompareExpr.m3" CHECKSTACKOVERFLOW; if (TC19->printProc != 0) {TC19->printProc (obj); } fprintf (stderr, "{%s} ", TC4->brand); o = (t4_fields*) (obj + TC19->datasize); #line 170 fprintf (stderr, "op = %d", o->_op); fprintf (stderr, ", "); }; PRIVATE INITLINK me_0 ={(INITLINK*)NIL, 0, CompareExpr__initProc}; static char* VSimports[] = { &VS_Error__Msg__4d119a332467757f, &VS_Text__T__fc4b369f3ab271fd, &VS_Thread__Alerted__fc88feb43485af46, &VS_Wr__T__2555b70b3f7780b1, &VS_Wr__Failure__5f82cfb43dabf527, &VS_Wr__Error__c367253d3ed4fd15, &VS_Wr__PutText__e034dab73a793846, &VS_Temp__T__3a6c7dc12615e4ee, &VS_Temp__Alloc__0b946c9d3ec0974e, &VS_Temp__Free__3b952a2225c26846, &VS_String__T__3a6c7dc12615e4ee, &VS_SetExpr__Compare__97823f082e8da06f, &VS_SetExpr__CompileCompareT__b38fcbec2cd1bfac, &VS_AddressExpr__Compare__a49c9aec3a342385, &VS_LongrealExpr__Compare__1a12fd492ef0b03e, &VS_RealExpr__Compare__45d2bc9723111c8f, &VS_EnumExpr__Compare__9bf5b5812a1bdda3, &VS_IntegerExpr__Compare__4c54a2b92cc8b49a, &VS_Address__T__8a8b518c29ea7c1d, &VS_Module__T__be7ead4a3afd8be5, &VS_Module__IsSafe__13f026ba31f586b3, &VS_Emit__MaxStream__cf0a0e8934c9c9f3, &VS_Emit__Format__bc4a2b083b93bbd7, &VS_Emit__OpTTT__91a3dd742690c5b9, &VS_Bool__T__e3969196271753d2, &VS_Bool__Map__988f3fa721f87e62, &VS_SetType__Split__edc8fdf02e117577, &VS_EnumType__Is__2cef67ea2861a0e7, &VS_Longreal__T__5097042c20911d85, &VS_Reel__T__254c3c852237b326, &VS_Int__T__1062912139372387, &VS_Type__T__2446b70b3f7780a5, &VS_Type__Map__41dd9f4b33104fce, &VS_Type__List__5791758e343becc1, &VS_Type__Base__2bebd0333659a92c, &VS_Type__IsEqual__4098bc3f32325d05, &VS_Type__IsSubtype__8591fba5245cb882, &VS_Token__DeclStart__730c82bc2c2001b8, &VS_Token__TypeStart__f71616cb38a20d02, &VS_Token__ExprStart__21dc8a0a27344836, &VS_ExprABC__T__8376f97f3cce4ada, &VS_ExprAB__T__4de31144393ed1be, &VS_ExprAB__Bind__b38b69303e15f944, &VS_ExprAB__EqCheck__4b21927f20e25ebf, &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__TypeOf__fef0a11b388c64fa, &VS_Expr__ConstValue__ce4fd448218fe483, &VS_Expr__TypeCheck__af9aa9073729e7f7, &VS_Expr__Compile__a7e0cc4029a2ec76, &VS_Expr__IsEqual__062d8b2c385e35a9, &VS_Expr__Fingerprint__50ce687c31d90a5b, NIL }; void CompareExpr__MLink (phase) int phase; { switch (phase) { case 0: { me_0.link = CompareExpr__init; CompareExpr__init = & me_0; t4_TC = t4_TC_init; REGISTERTYPE (TC4); break; }; case 1: { t4_TC.parent = TC_ExprABC__T; break; }; case 2: { break; }; }; };