#include "M3Runtime.h" typedef struct { int tc; char* str; int len; } TXT; PRIVATE TXT txt1 = { 3, "attempt to divide by 0.0D+0", 28}; PRIVATE TXT txt2 = { 3, " @ ", 4}; PRIVATE TXT txt3 = { 3, "@", 2}; #line 16 "../Interfaces/Type.i3" #define t6 ADDRESS #define t79 void typedef int t9; #line 116 ".ROOT/.boots/corelib/Interfaces/Wr.i3" typedef struct { char* elts; int size[1]; } t64; #line 16 "../Interfaces/Type.i3" #define t53 t64 #define TC6 TC_Type__Map IMPORT TYPE TC_Type__Map; #line 16 IMPORT char VS_Type__Map__41dd9f4b33104fce; #define t10 ADDRESS #define TC10 TC_NULL IMPORT TYPE TC_NULL; IMPORT char VS_NULL__fb50c7d53bec30dc; #define t23 ADDRESS #define TC23 TC_REFANY IMPORT TYPE TC_REFANY; IMPORT char VS_REFANY__4b8748e831fc107a; #define t24 ADDRESS #define TC24 TC_ADDRESS IMPORT TYPE TC_ADDRESS; IMPORT char VS_ADDRESS__30f7308738738b44; #line 17 "../Interfaces/Scope.i3" #define t37 ADDRESS #define t76 ADDRESS typedef struct { TYPE self; int private; } t76_methods; #define t76_msize (sizeof (t76_methods)) typedef struct { ADDRESS methods; } t76_fields; #define t76_size (sizeof (t76_fields)) #define TC76 TC_UNTRACED_ROOT IMPORT TYPE TC_UNTRACED_ROOT; IMPORT char VS_UNTRACED_ROOT__3e0964513fd6da20; #line 15 "../Interfaces/M3.i3" #define t31 ADDRESS #define TC31 TC_M3__Value IMPORT TYPE TC_M3__Value; #line 15 IMPORT char VS_M3__Value__6f64cf9c2cae25fb; #line 17 "../Interfaces/Scope.i3" #define t40 t64 #define TC37 TC_Scope__ValueList IMPORT TYPE TC_Scope__ValueList; #line 17 IMPORT char VS_Scope__ValueList__64bf053e22e4e53c; #line 14 "./Expr.i3" #define t47 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 t48 t64 #define TC47 TC_Expr__List IMPORT TYPE TC_Expr__List; #line 14 IMPORT char VS_Expr__List__3f87eceb2b9a246a; #line 17 "../Interfaces/Type.i3" #define t51 ADDRESS #define t33 ADDRESS #define TC33 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; t33 _type; } t52; #define TC51 TC_Type__List IMPORT TYPE TC_Type__List; #line 17 IMPORT char VS_Type__List__5791758e343becc1; #line 20 "LongrealExpr.m3" #define t1 ADDRESS #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; typedef double t7; #line 65 "../Interfaces/Emit.i3" typedef t79 (*t2)(); #line 19 "../Interfaces/M3.i3" #define t11 ADDRESS #define TC11 TC_M3__Temp IMPORT TYPE TC_M3__Temp; #line 19 IMPORT char VS_M3__Temp__450b691937f03dae; #line 31 "./ExprRep.i3" typedef t11 (*t12)(); #line 24 typedef t8 (*t13)(); typedef unsigned char t3; #line 44 typedef t3 (*t4)(); #line 20 "LongrealExpr.m3" typedef struct { int filler; } t1_methods; #define t1_msize (sizeof (t1_methods)) typedef struct { #line 20 t14 _str; t7 _val; } t1_fields; #define t1_size (sizeof (t1_fields)) PRIVATE void t1_InitProc (); #line 20 PRIVATE void t1_SetupProc (); PRIVATE void t1_PrintProc (); PRIVATE typecell t1_TC; PRIVATE typecell t1_TC_init = {0, 0, 0, 0, 0, (PROC)NIL, #line 20 t1_size, t1_msize, NIL, 0, 0, t1_InitProc, t1_SetupProc, t1_PrintProc, "", -1369510867, 1068212753}; PRIVATE TYPE TC1 = &t1_TC; #define t66 ADDRESS typedef struct { TYPE self; int private; } t66_methods; #define t66_msize (sizeof (t66_methods)) typedef struct { ADDRESS methods; } t66_fields; #define t66_size (sizeof (t66_fields)) #define TC66 TC_ROOT IMPORT TYPE TC_ROOT; IMPORT char VS_ROOT__349f58f628be0ac6; #define t66_MapProc TC_ROOT->mapProc #define t5 ADDRESS #define TC5 TC_Wr__T IMPORT TYPE TC_Wr__T; #line 90 ".ROOT/.boots/corelib/Interfaces/Wr.i3" IMPORT char VS_Wr__T__2555b70b3f7780b1; #define t5_MapProc TC_Wr__T->mapProc #define t15 ADDRESS #define TC15 TC_TEXT IMPORT TYPE TC_TEXT; IMPORT char VS_TEXT__b7a92447326386f5; #define t15_MapProc TC_TEXT->mapProc #define t16 t64 typedef t15 (*t17)(); #line 13 ".ROOT/.boots/corelib/Interfaces/Fmt.i3" typedef unsigned char t18; typedef unsigned char t19; typedef int t20; typedef float t21; typedef signed_char t22; typedef unsigned char t25; #line 14 "../Interfaces/String.i3" typedef struct { t14 _module; t14 _item; } t26; #line 27 "../Interfaces/Emit.i3" typedef signed_char t27; #line 63 typedef t27 (*t28)(); #line 19 "../Interfaces/String.i3" typedef signed_char t58; #line 65 "../Interfaces/Token.i3" #define t54 t64 typedef struct { t14 elts[100]; } t59; #line 17 "../Interfaces/String.i3" typedef struct { t9 _top; t59 _stk; } t29; #line 16 "../Interfaces/Variable.i3" #define t30 ADDRESS #define TC30 TC_Variable__T IMPORT TYPE TC_Variable__T; #line 16 IMPORT char VS_Variable__T__be7ead4a3afd8be5; #line 14 "../Interfaces/M3.i3" #define t32 ADDRESS #define TC32 TC_M3__Scope IMPORT TYPE TC_M3__Scope; #line 14 IMPORT char VS_M3__Scope__6e6d8848308d8a2d; #line 24 "../Interfaces/Variable.i3" typedef t30 (*t34)(); #line 14 "../Interfaces/Decl.i3" typedef struct { t14 _alias; t3 _isExternal; t3 _isInline; t3 _isUnused; t3 _isObsolete; } t35; #line 15 "../Interfaces/Token.i3" typedef unsigned char t55; #line 45 typedef struct { int elts[4]; } t36; #line 38 "../Interfaces/Scope.i3" typedef t31 (*t38)(); #line 31 typedef t32 (*t39)(); #line 45 "../Interfaces/Value.i3" typedef t33 (*t41)(); #line 18 typedef unsigned char t42; #line 40 typedef t42 (*t43)(); #line 15 "../Interfaces/Reel.i3" typedef t14 (*t44)(); #line 14 typedef t7 (*t45)(); #line 13 "./ExprRep.i3" #define t46 ADDRESS #line 13 typedef struct { t2 _bind; t2 _check; t2 _write; t4 _isEqual; t13 _evaluate; t2 _getBounds; t4 _isWritable; t4 _isDesignator; #line 13 t4 _isZeroes; t2 _genLiteral; t2 _fprint; t12 _compile; } t46_methods; #define t46_msize (sizeof (t46_methods)) typedef struct { #line 13 t9 _origin; t33 _type; t3 _bound; t3 _inCheck; t3 _checked; } t46_fields; #define t46_size (sizeof (t46_fields)) #define TC46 TC_M3__Expr typedef t6 (*t49)(); #line 97 "../Interfaces/Type.i3" typedef t9 (*t50)(); #line 65 "../Interfaces/Token.i3" typedef struct { t14 elts[97]; } t56; #line 28 "../Interfaces/String.i3" #define t57 t64 typedef signed_char t60; #line 67 ".ROOT/.boots/corelib/Interfaces/Text.i3" typedef t60 (*t61)(); #line 26 typedef t20 (*t62)(); #line 23 typedef t19 (*t63)(); #line 91 ".ROOT/.boots/corelib/Interfaces/Wr.i3" typedef unsigned char t65; #line 15 ".ROOT/.boots/corelib/Interfaces/Thread.i3" #define t67 ADDRESS #define TC67 TC_Thread__T IMPORT TYPE TC_Thread__T; #line 15 IMPORT char VS_Thread__T__2555b70b3f7780b1; #define t67_MapProc TC_Thread__T->mapProc typedef t23 (*t68)(); #define t69 ADDRESS #define TC69 TC_Thread__Condition IMPORT TYPE TC_Thread__Condition; #line 21 IMPORT char VS_Thread__Condition__26d5968239e08f4e; #define t69_MapProc TC_Thread__Condition->mapProc #define t70 ADDRESS #define TC70 TC_MUTEX IMPORT TYPE TC_MUTEX; IMPORT char VS_MUTEX__1f9d4e89391ab815; #define t70_MapProc TC_MUTEX->mapProc typedef t67 (*t71)(); #line 23 #define t72 ADDRESS #line 23 typedef struct { t68 _apply; } t72_methods; #define t72_msize (sizeof (t72_methods)) typedef struct { #line 23 int filler; } t72_fields; #define t72_size (sizeof (t72_fields)) #define TC72 TC_Thread__Closure IMPORT TYPE TC_Thread__Closure; #line 23 IMPORT char VS_Thread__Closure__7fb5c6232c5a658a; #define t72_MapProc TC_Thread__Closure->mapProc typedef t69 (*t73)(); typedef t70 (*t74)(); #line 28 #define t75 ADDRESS #line 28 typedef struct { int filler; } t75_methods; #define t75_msize (sizeof (t75_methods)) typedef struct { #line 28 t20 _stackSize; } t75_fields; #define t75_size (sizeof (t75_fields)) #define TC75 TC_Thread__SizedClosure IMPORT TYPE TC_Thread__SizedClosure; #line 28 IMPORT char VS_Thread__SizedClosure__8a46717d2eae7b07; #define t75_MapProc TC_Thread__SizedClosure->mapProc #define t77 ADDRESS #define TC77 TC_M3__Stmt IMPORT TYPE TC_M3__Stmt; #line 17 "../Interfaces/M3.i3" IMPORT char VS_M3__Stmt__376b307627fc1f2f; typedef CLOSURE t78; #line 11 "LongrealExpr.m3" IMPORT INITLINK* Fmt__init; IMPORT INITLINK* Type__init; IMPORT INITLINK* Wr__init; IMPORT INITLINK* Temp__init; IMPORT INITLINK* Error__init; #line 11 IMPORT INITLINK* Emit__init; IMPORT INITLINK* Reel__init; IMPORT INITLINK* Longreal__init; IMPORT INITLINK* String__init; #line 11 IMPORT INITLINK* ExprRep__init; IMPORT INITLINK* Expr__init; IMPORT INITLINK* LongrealExpr__init; IMPORT t15 _Fmt__LongReal (); #line 11 IMPORT char VS_Fmt__LongReal__a75dda5e2a97d101; IMPORT TYPE TC_Type__T; IMPORT char VS_Type__T__2446b70b3f7780a5; IMPORT EXCEPTION_NAME _Thread__Alerted; #line 11 IMPORT char VS_Thread__Alerted__fc88feb43485af46; IMPORT EXCEPTION_NAME _Wr__Failure; IMPORT char VS_Wr__Failure__5f82cfb43dabf527; #line 11 IMPORT EXCEPTION_NAME _Wr__Error; IMPORT char VS_Wr__Error__c367253d3ed4fd15; IMPORT t79 _Wr__PutText (); IMPORT char VS_Wr__PutText__e034dab73a793846; #line 11 IMPORT TYPE TC_Temp__T; IMPORT char VS_Temp__T__3a6c7dc12615e4ee; IMPORT t11 _Temp__FromExpr (); IMPORT char VS_Temp__FromExpr__808b53eb2a7a6d33; #line 11 IMPORT t79 _Error__Msg (); IMPORT char VS_Error__Msg__4d119a332467757f; IMPORT char VS_Emit__MaxStream__cf0a0e8934c9c9f3; #line 11 IMPORT TYPE TC_Emit__Format; IMPORT char VS_Emit__Format__bc4a2b083b93bbd7; IMPORT t79 _Emit__OpS (); IMPORT char VS_Emit__OpS__f7dc93802c012951; #line 11 IMPORT t79 _Emit__OpR (); IMPORT char VS_Emit__OpR__ef912b083185e4b5; IMPORT t7 _Reel__Flt (); IMPORT char VS_Reel__Flt__55fbdd5e2f40b337; #line 11 IMPORT t33 _Longreal__T; IMPORT char VS_Longreal__T__5097042c20911d85; IMPORT t79 _String__Put (); IMPORT char VS_String__Put__2457561e210725b3; #line 11 IMPORT t79 _ExprRep__Init (); IMPORT char VS_ExprRep__Init__8b7fff3e227cebab; IMPORT t79 _ExprRep__NoBind (); IMPORT char VS_ExprRep__NoBind__e7d0d3dd3d703c08; #line 11 IMPORT t79 _ExprRep__NoCheck (); IMPORT char VS_ExprRep__NoCheck__c11b54bc361794fa; IMPORT t8 _ExprRep__NoValue (); IMPORT char VS_ExprRep__NoValue__8ccc143224598a66; #line 11 IMPORT t8 _ExprRep__Self (); IMPORT char VS_ExprRep__Self__28962e523a8d814b; IMPORT t79 _ExprRep__NoBounds (); IMPORT char VS_ExprRep__NoBounds__b64bb146289ee4f0; #line 11 IMPORT t3 _ExprRep__IsNever (); IMPORT char VS_ExprRep__IsNever__8f1a069b301903c8; IMPORT t3 _ExprRep__NeverEq (); IMPORT char VS_ExprRep__NeverEq__dfdc2412249ccb65; #line 11 IMPORT t79 _ExprRep__NoWriter (); IMPORT char VS_ExprRep__NoWriter__a97bb1a23bbf506e; IMPORT t79 _ExprRep__NoLiteral (); IMPORT char VS_ExprRep__NoLiteral__6c9c90073f496f67; #line 11 IMPORT TYPE TC_Expr__T; IMPORT char VS_Expr__T__2446b70b3f7780a5; EXPORT t8 _LongrealExpr__NewS (); EXPORT char VS_LongrealExpr__NewS__b15c4da130a8ffb1 = '\0'; #line 11 EXPORT t8 _LongrealExpr__New (); EXPORT char VS_LongrealExpr__New__eccb05e538e7dc41 = '\0'; EXPORT t3 _LongrealExpr__Split (); #line 11 EXPORT char VS_LongrealExpr__Split__abe22fcb25f108c6 = '\0'; EXPORT t3 _LongrealExpr__Compare (); EXPORT char VS_LongrealExpr__Compare__1a12fd492ef0b03e = '\0'; #line 11 EXPORT t3 _LongrealExpr__Add (); EXPORT char VS_LongrealExpr__Add__a63b52d3211c5dd8 = '\0'; EXPORT t3 _LongrealExpr__Subtract (); #line 11 EXPORT char VS_LongrealExpr__Subtract__e6e7366e29551492 = '\0'; EXPORT t3 _LongrealExpr__Multiply (); EXPORT char VS_LongrealExpr__Multiply__bb1e1e01233422fb = '\0'; #line 11 EXPORT t3 _LongrealExpr__Divide (); EXPORT char VS_LongrealExpr__Divide__f835d36b21842b0d = '\0'; EXPORT t3 _LongrealExpr__Negate (); #line 11 EXPORT char VS_LongrealExpr__Negate__ff511f2721537bfa = '\0'; PRIVATE t7 _LongrealExpr__NOVALUE = -1.2234567890000e+31; PRIVATE TYPE TC_LongrealExpr__P; #line 11 PRIVATE t3 _LongrealExpr__EqCheck (); PRIVATE t11 _LongrealExpr__Compile (); PRIVATE t79 _LongrealExpr__Writer (); PRIVATE t3 _LongrealExpr__SplitPair (); #line 11 PRIVATE t79 _LongrealExpr__FPrinter (); PRIVATE t3 _LongrealExpr__IsZeroes (); PRIVATE t79 _LongrealExpr__GenLiteral (); #line 11 IMPORT char VS_M3__Expr__58bf709e39adf1f7; #line 38 "LongrealExpr.m3" EXPORT t8 _LongrealExpr__NewS (_value) t14 _value; { t1 z0; t1 z2; #line 38 "LongrealExpr.m3" { auto t1 _p; auto t8 __result; { ZERO1 (& _p); #line 38 CHECKSTACKOVERFLOW; { register char** ptr = (char**) UNEWOBJ (TC1); z0 = (t1) ptr; }; _p = z0; _ExprRep__Init (_p); NILCHECKA (z2 = _p); (((t1_fields*)(z2+(0+t46_size+t76_size)))->_str) = _value; NILCHECKA (z2 = _p); (((t1_fields*)(z2+(0+t46_size+t76_size)))->_val) = _LongrealExpr__NOVALUE; NILCHECKA (z2 = _p); (((t46_fields*)(z2+(0+t76_size)))->_type) = _Longreal__T; NILCHECKA (z2 = _p); (((t46_fields*)(z2+(0+t76_size)))->_bound) = 1 ; NILCHECKA (z2 = _p); (((t46_fields*)(z2+(0+t76_size)))->_checked) = 1 ; __result = _p; return __result; } } }; #line 51 "LongrealExpr.m3" EXPORT t8 _LongrealExpr__New (_value) t7 _value; { t1 z0; t1 z2; #line 51 "LongrealExpr.m3" { auto t1 _p; auto t8 __result; { ZERO1 (& _p); #line 51 CHECKSTACKOVERFLOW; { register char** ptr = (char**) UNEWOBJ (TC1); z0 = (t1) ptr; }; _p = z0; _ExprRep__Init (_p); NILCHECKA (z2 = _p); (((t1_fields*)(z2+(0+t46_size+t76_size)))->_str) = (t14) 0; NILCHECKA (z2 = _p); (((t1_fields*)(z2+(0+t46_size+t76_size)))->_val) = _value; NILCHECKA (z2 = _p); (((t46_fields*)(z2+(0+t76_size)))->_type) = _Longreal__T; NILCHECKA (z2 = _p); (((t46_fields*)(z2+(0+t76_size)))->_bound) = 1 ; NILCHECKA (z2 = _p); (((t46_fields*)(z2+(0+t76_size)))->_checked) = 1 ; __result = _p; return __result; } } }; #line 64 "LongrealExpr.m3" PRIVATE t3 _LongrealExpr__EqCheck (_a, _e) t1 _a; t8 _e; { t1 z1; t1 z3; t3 z4; t3 z0; t1 z2; t3 z5; #line 64 "LongrealExpr.m3" { auto t3 __result; { ZERO1B (& __result); CHECKSTACKOVERFLOW; { register ADDRESS ref = (ADDRESS) _e; register int tc = TYPECODE (ref); if (tc == 0) goto tc0_0; if (ISSUBTYPE (tc, TC1)) goto tc0_1; #line 66 goto tc0_else; tc0_0:; __result = 0 ; return __result; tc0_1:; { auto t1 _b; { ZERO1 (& _b); #line 67 _b = (t1) ref; NILCHECKA (z1 = _a); NILCHECKA (z3 = _b); z4 = ((((t1_fields*)(z1+(0+t46_size+t76_size)))->_str) == (((t1_fields*)(z3+(0+t46_size+t76_size)))->_str)); #line 68 z0 = 0; if (z4) { NILCHECKA (z2 = _a); z4 = ((((t1_fields*)(z2+(0+t46_size+t76_size)))->_str) != 0); z0 = z4; #line 68 }; z4 = 1; if (! z0) { NILCHECKA (z1 = _a); NILCHECKA (z3 = _b); z5 = ((((t1_fields*)(z1+(0+t46_size+t76_size)))->_val) == (((t1_fields*)(z3+(0+t46_size+t76_size)))->_val)); #line 68 z0 = 0; if (z5) { NILCHECKA (z2 = _a); z5 = ((((t1_fields*)(z2+(0+t46_size+t76_size)))->_val) != _LongrealExpr__NOVALUE); #line 68 z0 = z5; }; z4 = z0; }; __result = z4; return __result; } } tc0_else:; __result = 0 ; return __result; tc0_exit:; }; } } }; #line 74 "LongrealExpr.m3" PRIVATE t11 _LongrealExpr__Compile (_p) t1 _p; { t11 z2; #line 74 "LongrealExpr.m3" { auto t11 __result; { CHECKSTACKOVERFLOW; z2 = _Temp__FromExpr (_p); __result = z2; return __result; } } }; #line 79 "LongrealExpr.m3" PRIVATE t79 _LongrealExpr__Writer (_p, _t1, _t2) t1 _p; t11 _t1; t11 _t2; { t1 z1; t3 z3; t1 z4; #line 79 "LongrealExpr.m3" { { CHECKSTACKOVERFLOW; NILCHECKA (z1 = _p); z3 = ((((t1_fields*)(z1+(0+t46_size+t76_size)))->_str) != 0); if (z3) { NILCHECKA (z4 = _p); _Emit__OpS (((ADDRESS)(& txt2.str)), (((t1_fields*)(z4+(0+t46_size+t76_size)))->_str)); goto if_1_end; #line 82 }; NILCHECKA (z4 = _p); _Emit__OpR (((ADDRESS)(& txt2.str)), (((t1_fields*)(z4+(0+t46_size+t76_size)))->_val)); if_1_end: /**/; } } }; #line 87 "LongrealExpr.m3" EXPORT t3 _LongrealExpr__Split (_e, _r) t8 _e; t7 * _r; { t1 z1; t3 z3; t1 z2; t7 z4; #line 87 "LongrealExpr.m3" { auto t3 __result; { ZERO1B (& __result); CHECKSTACKOVERFLOW; { register ADDRESS ref = (ADDRESS) _e; register int tc = TYPECODE (ref); if (tc == 0) goto tc1_0; if (ISSUBTYPE (tc, TC1)) goto tc1_1; #line 89 goto tc1_else; tc1_0:; __result = 0 ; return __result; tc1_1:; { auto t1 _p; { ZERO1 (& _p); #line 90 _p = (t1) ref; NILCHECKA (z1 = _p); z3 = ((((t1_fields*)(z1+(0+t46_size+t76_size)))->_val) == _LongrealExpr__NOVALUE); #line 91 if (z3) { NILCHECKA (z2 = _p); z4 = _Reel__Flt ((((t1_fields*)(z2+(0+t46_size+t76_size)))->_str)); NILCHECKA (z1 = _p); #line 91 (((t1_fields*)(z1+(0+t46_size+t76_size)))->_val) = z4; goto if_2_end; }; if_2_end: /**/; NILCHECKA (z1 = _p); (*_r) = (((t1_fields*)(z1+(0+t46_size+t76_size)))->_val); __result = 1 ; return __result; #line 92 } } tc1_else:; __result = 0 ; return __result; tc1_exit:; }; } } }; #line 97 "LongrealExpr.m3" EXPORT t3 _LongrealExpr__Compare (_a, _b, _sign) t8 _a; t8 _b; t9 * _sign; { t3 z5; t3 z0; t3 z2; t9 z1; #line 97 "LongrealExpr.m3" { auto t7 _x; auto t7 _y; auto t3 __result; { ZERO2 (& _x); ZERO2 (& _y); #line 97 ZERO1B (& __result); CHECKSTACKOVERFLOW; z5 = _LongrealExpr__SplitPair (_a, _b, &_x, &_y); z0 = ! z5; if (z0) { __result = 0 ; return __result; }; z2 = (_x < _y); if (z2) { z1 = - 1 ; (*_sign) = z1; goto if_4_end; }; z2 = (_x > _y); if (z2) { (*_sign) = 1 ; goto if_4_end; }; (*_sign) = 0 ; if_4_end: /**/; __result = 1 ; return __result; } } }; #line 108 "LongrealExpr.m3" EXPORT t3 _LongrealExpr__Add (_a, _b, _c) t8 _a; t8 _b; t8 * _c; { t3 z5; t3 z0; t7 z3; t8 z1; #line 108 "LongrealExpr.m3" { auto t7 _x; auto t7 _y; auto t3 __result; { ZERO2 (& _x); ZERO2 (& _y); #line 108 ZERO1B (& __result); CHECKSTACKOVERFLOW; z5 = _LongrealExpr__SplitPair (_a, _b, &_x, &_y); z0 = ! z5; if (z0) { __result = 0 ; return __result; }; z3 = _x + _y; z1 = _LongrealExpr__New (z3); (*_c) = z1; __result = 1 ; return __result; } } }; #line 116 "LongrealExpr.m3" EXPORT t3 _LongrealExpr__Subtract (_a, _b, _c) t8 _a; t8 _b; t8 * _c; { t3 z5; t3 z0; t7 z3; t8 z1; #line 116 "LongrealExpr.m3" { auto t7 _x; auto t7 _y; auto t3 __result; { ZERO2 (& _x); ZERO2 (& _y); #line 116 ZERO1B (& __result); CHECKSTACKOVERFLOW; z5 = _LongrealExpr__SplitPair (_a, _b, &_x, &_y); z0 = ! z5; if (z0) { __result = 0 ; return __result; }; z3 = _x - _y; z1 = _LongrealExpr__New (z3); (*_c) = z1; __result = 1 ; return __result; } } }; #line 124 "LongrealExpr.m3" EXPORT t3 _LongrealExpr__Multiply (_a, _b, _c) t8 _a; t8 _b; t8 * _c; { t3 z5; t3 z0; t7 z3; t8 z1; #line 124 "LongrealExpr.m3" { auto t7 _x; auto t7 _y; auto t3 __result; { ZERO2 (& _x); ZERO2 (& _y); #line 124 ZERO1B (& __result); CHECKSTACKOVERFLOW; z5 = _LongrealExpr__SplitPair (_a, _b, &_x, &_y); z0 = ! z5; if (z0) { __result = 0 ; return __result; }; z3 = _x * _y; z1 = _LongrealExpr__New (z3); (*_c) = z1; __result = 1 ; return __result; } } }; #line 132 "LongrealExpr.m3" EXPORT t3 _LongrealExpr__Divide (_a, _b, _c) t8 _a; t8 _b; t8 * _c; { t3 z5; t3 z0; t3 z2; t7 z3; t8 z1; #line 132 "LongrealExpr.m3" { auto t7 _x; auto t7 _y; auto t3 __result; { ZERO2 (& _x); ZERO2 (& _y); #line 132 ZERO1B (& __result); CHECKSTACKOVERFLOW; z5 = _LongrealExpr__SplitPair (_a, _b, &_x, &_y); z0 = ! z5; if (z0) { __result = 0 ; return __result; }; z2 = (_y == 0.0e+0 ); if (z2) { _Error__Msg (((ADDRESS)(& txt1.str))); __result = 0 ; return __result; }; z3 = _x / _y; z1 = _LongrealExpr__New (z3); (*_c) = z1; __result = 1 ; return __result; } } }; #line 144 "LongrealExpr.m3" EXPORT t3 _LongrealExpr__Negate (_a, _c) t8 _a; t8 * _c; { t3 z3; t3 z0; t7 z2; t8 z1; #line 144 "LongrealExpr.m3" { auto t7 _x; auto t3 __result; { ZERO2 (& _x); #line 144 ZERO1B (& __result); CHECKSTACKOVERFLOW; z3 = _LongrealExpr__Split (_a, &_x); z0 = ! z3; if (z0) { __result = 0 ; return __result; }; z2 = - _x; z1 = _LongrealExpr__New (z2); (*_c) = z1; __result = 1 ; return __result; } } }; #line 152 "LongrealExpr.m3" PRIVATE t3 _LongrealExpr__SplitPair (_a, _b, _x, _y) t8 _a; t8 _b; t7 * _x; t7 * _y; { t3 z3; t3 z0; t3 z4; #line 152 "LongrealExpr.m3" { auto t3 __result; { ZERO1B (& __result); CHECKSTACKOVERFLOW; z3 = _LongrealExpr__Split (_a, &(*_x)); z0 = 0; if (z3) { z4 = _LongrealExpr__Split (_b, &(*_y)); z0 = z4; }; __result = z0; #line 154 return __result; } } }; #line 157 "LongrealExpr.m3" PRIVATE t79 _LongrealExpr__FPrinter (_p, _map, _wr) t1 _p; t6 _map; t5 _wr; { t1 z1; t3 z3; t1 z4; t15 z7; #line 157 "LongrealExpr.m3" { { CHECKSTACKOVERFLOW; NILCHECKA (z1 = _p); z3 = ((((t1_fields*)(z1+(0+t46_size+t76_size)))->_str) != 0); if (z3) { NILCHECKA (z4 = _p); _String__Put (_wr, (((t1_fields*)(z4+(0+t46_size+t76_size)))->_str)); goto if_11_end; }; NILCHECKA (z4 = _p); z7 = _Fmt__LongReal ((((t1_fields*)(z4+(0+t46_size+t76_size)))->_val), 13 , 2 ); _Wr__PutText (_wr, z7); if_11_end: /**/; #line 161 } } }; #line 165 "LongrealExpr.m3" PRIVATE t3 _LongrealExpr__IsZeroes (_p) t1 _p; { t1 z1; t3 z3; t1 z2; t7 z4; #line 165 "LongrealExpr.m3" { auto t3 __result; { ZERO1B (& __result); CHECKSTACKOVERFLOW; NILCHECKA (z1 = _p); z3 = ((((t1_fields*)(z1+(0+t46_size+t76_size)))->_val) == _LongrealExpr__NOVALUE); if (z3) { NILCHECKA (z2 = _p); #line 167 z4 = _Reel__Flt ((((t1_fields*)(z2+(0+t46_size+t76_size)))->_str)); NILCHECKA (z1 = _p); (((t1_fields*)(z1+(0+t46_size+t76_size)))->_val) = z4; #line 167 goto if_12_end; }; if_12_end: /**/; NILCHECKA (z1 = _p); z3 = ((((t1_fields*)(z1+(0+t46_size+t76_size)))->_val) == 0.0e+0 ); __result = z3; return __result; #line 168 } } }; #line 171 "LongrealExpr.m3" PRIVATE t79 _LongrealExpr__GenLiteral (_p) t1 _p; { t1 z1; t3 z3; t1 z4; #line 171 "LongrealExpr.m3" { { CHECKSTACKOVERFLOW; NILCHECKA (z1 = _p); z3 = ((((t1_fields*)(z1+(0+t46_size+t76_size)))->_str) != 0); if (z3) { NILCHECKA (z4 = _p); _Emit__OpS (((ADDRESS)(& txt3.str)), (((t1_fields*)(z4+(0+t46_size+t76_size)))->_str)); goto if_13_end; #line 174 }; NILCHECKA (z4 = _p); _Emit__OpR (((ADDRESS)(& txt3.str)), (((t1_fields*)(z4+(0+t46_size+t76_size)))->_val)); if_13_end: /**/; } } }; #line 175 PRIVATE int init_done = -1; #line 175 "LongrealExpr.m3" PRIVATE void LongrealExpr__initProc (g) int g; { #line 175 "LongrealExpr.m3" if (init_done >= g) return; init_done = g; INITIALIZE (& LongrealExpr__init); INITIALIZE (& Fmt__init); INITIALIZE (& Type__init); #line 175 INITIALIZE (& Wr__init); INITIALIZE (& Temp__init); INITIALIZE (& Error__init); INITIALIZE (& Emit__init); INITIALIZE (& Reel__init); #line 175 INITIALIZE (& Longreal__init); INITIALIZE (& String__init); INITIALIZE (& ExprRep__init); INITIALIZE (& Expr__init); return; #line 175 }; #line 175 "LongrealExpr.m3" PRIVATE void t1_InitProc (obj) char* obj; { register t1_fields* p; #line 175 "LongrealExpr.m3" CHECKSTACKOVERFLOW; p = (t1_fields*) (obj + TC8->datasize); }; #line 175 "LongrealExpr.m3" PRIVATE void t1_SetupProc () { register int* p; #line 175 "LongrealExpr.m3" t1_TC.datasize += TC8->datasize; t1_TC.methodsize += TC8->methodsize; p = (int*) UALLOC (t1_TC.methodsize); COPY (TC8->defaultMethods, p, (TC8->methodsize)); #line 175 p[0] = (int)(& t1_TC); p[1] = 0; ((t46_methods*) (((char*)p) + TC76->methodsize))->_bind = _ExprRep__NoBind; ((t46_methods*) (((char*)p) + TC76->methodsize))->_check = _ExprRep__NoCheck; #line 175 ((t46_methods*) (((char*)p) + TC76->methodsize))->_compile = _LongrealExpr__Compile; ((t46_methods*) (((char*)p) + TC76->methodsize))->_evaluate = _ExprRep__Self; #line 175 ((t46_methods*) (((char*)p) + TC76->methodsize))->_fprint = _LongrealExpr__FPrinter; ((t46_methods*) (((char*)p) + TC76->methodsize))->_write = _LongrealExpr__Writer; #line 175 ((t46_methods*) (((char*)p) + TC76->methodsize))->_isEqual = _LongrealExpr__EqCheck; ((t46_methods*) (((char*)p) + TC76->methodsize))->_getBounds = _ExprRep__NoBounds; #line 175 ((t46_methods*) (((char*)p) + TC76->methodsize))->_isWritable = _ExprRep__IsNever; ((t46_methods*) (((char*)p) + TC76->methodsize))->_isDesignator = _ExprRep__IsNever; #line 175 ((t46_methods*) (((char*)p) + TC76->methodsize))->_isZeroes = _LongrealExpr__IsZeroes; ((t46_methods*) (((char*)p) + TC76->methodsize))->_genLiteral = _LongrealExpr__GenLiteral; #line 175 t1_TC.defaultMethods = (char*) p; }; #line 175 "LongrealExpr.m3" PRIVATE void t1_PrintProc (obj) char *obj; { t1_fields* o; #line 175 "LongrealExpr.m3" CHECKSTACKOVERFLOW; if (TC8->printProc != 0) {TC8->printProc (obj); } fprintf (stderr, "{%s} ", TC1->brand); o = (t1_fields*) (obj + TC8->datasize); #line 175 fprintf (stderr, "str = %#x", o->_str); fprintf (stderr, ", "); fprintf (stderr, "val = %g", o->_val); fprintf (stderr, ", "); #line 175 }; PRIVATE INITLINK me_0 ={(INITLINK*)NIL, 0, LongrealExpr__initProc}; static char* VSimports[] = { &VS_Fmt__LongReal__a75dda5e2a97d101, &VS_Type__T__2446b70b3f7780a5, &VS_Type__Map__41dd9f4b33104fce, &VS_Type__List__5791758e343becc1, &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__FromExpr__808b53eb2a7a6d33, &VS_Error__Msg__4d119a332467757f, &VS_Emit__MaxStream__cf0a0e8934c9c9f3, &VS_Emit__Format__bc4a2b083b93bbd7, &VS_Emit__OpS__f7dc93802c012951, &VS_Emit__OpR__ef912b083185e4b5, &VS_Reel__Flt__55fbdd5e2f40b337, &VS_Longreal__T__5097042c20911d85, &VS_String__T__3a6c7dc12615e4ee, &VS_String__Put__2457561e210725b3, &VS_ExprRep__Init__8b7fff3e227cebab, &VS_ExprRep__NoBind__e7d0d3dd3d703c08, &VS_ExprRep__NoCheck__c11b54bc361794fa, &VS_ExprRep__NoValue__8ccc143224598a66, &VS_ExprRep__Self__28962e523a8d814b, &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, NIL }; void LongrealExpr__MLink (phase) int phase; { switch (phase) { case 0: { me_0.link = LongrealExpr__init; LongrealExpr__init = & me_0; t1_TC = t1_TC_init; REGISTERTYPE (TC1); break; }; case 1: { t1_TC.parent = TC_M3__Expr; break; }; case 2: { break; }; }; };