Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/prelude/Char/IntToDigit.p.c

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#include "newmacros.h"
#include "runtime.h"

#define v198	((void*)startLabel+95)
#define v200	((void*)startLabel+193)
#define v202	((void*)startLabel+219)
#define CT_v218	((void*)startLabel+492)
#define FN_LAMBDA194	((void*)startLabel+580)
#define CT_v222	((void*)startLabel+624)
#define CF_LAMBDA194	((void*)startLabel+632)
#define FN_LAMBDA193	((void*)startLabel+660)
#define CT_v226	((void*)startLabel+704)
#define CF_LAMBDA193	((void*)startLabel+712)
#define ST_v205	((void*)startLabel+732)
#define ST_v225	((void*)startLabel+748)
#define PP_LAMBDA193	((void*)startLabel+777)
#define PC_LAMBDA193	((void*)startLabel+777)
#define ST_v224	((void*)startLabel+777)
#define PP_LAMBDA194	((void*)startLabel+805)
#define PC_LAMBDA194	((void*)startLabel+805)
#define ST_v220	((void*)startLabel+805)
#define ST_v221	((void*)startLabel+831)
#define PS_v209	((void*)startLabel+888)
#define PS_v212	((void*)startLabel+900)
#define PS_v217	((void*)startLabel+912)
#define PS_v210	((void*)startLabel+924)
#define PS_v215	((void*)startLabel+936)
#define PS_v208	((void*)startLabel+948)
#define PS_v204	((void*)startLabel+960)
#define PS_v206	((void*)startLabel+972)
#define PS_v207	((void*)startLabel+984)
#define PS_v211	((void*)startLabel+996)
#define PS_v213	((void*)startLabel+1008)
#define PS_v214	((void*)startLabel+1020)
#define PS_v216	((void*)startLabel+1032)
#define PS_v223	((void*)startLabel+1044)
#define PS_v219	((void*)startLabel+1056)
extern Node FN_Prelude_46Ord_46Prelude_46Int_46_62_61[];
extern Node FN_Prelude_46Ord_46Prelude_46Int_46_60_61[];
extern Node FN_Prelude_46_38_38[];
extern Node FN_Char_46ord[];
extern Node FN_NHC_46Internal_46_95apply1[];
extern Node FN_Prelude_46Num_46Prelude_46Int_46_43[];
extern Node FN_Char_46chr[];
extern Node FN_Prelude_46Num_46Prelude_46Int_46_45[];
extern Node CF_Prelude_46otherwise[];
extern Node FN_Prelude_46error[];
extern Node FN_NHC_46Internal_46_95patternMatchFail[];
extern Node PM_Char[];
extern Node PC_Char_46ord[];
extern Node PC_Char_46chr[];
extern Node PC_NHC_46Internal_46_95patternMatchFail[];
extern Node PC_NHC_46Internal_46_95apply1[];
extern Node PC_Prelude_46error[];
extern Node PC_Prelude_46_38_38[];
extern Node PC_Prelude_46Ord_46Prelude_46Int_46_62_61[];
extern Node PC_Prelude_46Ord_46Prelude_46Int_46_60_61[];
extern Node PC_Prelude_46Num_46Prelude_46Int_46_43[];
extern Node PC_Prelude_46Num_46Prelude_46Int_46_45[];

static Node startLabel[] = {
  bytes2word(1,0,0,1)
, useLabel(CT_v218)
,};
Node FN_Char_46intToDigit[] = {
  bytes2word(NEEDHEAP_I32,HEAP_CVAL_P1,7,HEAP_CVAL_N1)
, bytes2word(7,HEAP_CREATE,HEAP_SPACE,HEAP_SPACE)
, bytes2word(HEAP_ARG,1,HEAP_INT_P1,0)
, bytes2word(HEAP_CVAL_P1,8,HEAP_CVAL_N1,12)
, bytes2word(HEAP_CREATE,HEAP_SPACE,HEAP_SPACE,HEAP_ARG)
, bytes2word(1,HEAP_INT_P1,9,PUSH_HEAP)
, bytes2word(HEAP_CVAL_P1,9,HEAP_CVAL_N1,17)
, bytes2word(HEAP_CREATE,HEAP_SPACE,HEAP_SPACE,HEAP_OFF_N1)
, bytes2word(19,HEAP_OFF_N1,13,EVAL)
, bytes2word(NEEDHEAP_I32,JUMPFALSE,49,0)
, bytes2word(HEAP_CVAL_P1,10,HEAP_CVAL_N1,22)
, bytes2word(HEAP_CREATE,HEAP_SPACE,HEAP_SPACE,HEAP_CVAL_P1)
, bytes2word(11,HEAP_CVAL_N1,27,HEAP_CREATE)
, bytes2word(HEAP_SPACE,HEAP_SPACE,HEAP_OFF_N1,10)
, bytes2word(HEAP_CHAR_P1,48,PUSH_HEAP,HEAP_CVAL_P1)
, bytes2word(12,HEAP_CVAL_N1,32,HEAP_CREATE)
, bytes2word(HEAP_SPACE,HEAP_SPACE,HEAP_OFF_N1,12)
, bytes2word(HEAP_ARG,1,PUSH_P1,0)
, bytes2word(PUSH_HEAP,HEAP_CVAL_P1,13,HEAP_CVAL_N1)
, bytes2word(37,HEAP_CREATE,HEAP_SPACE,HEAP_SPACE)
, bytes2word(ZAP_STACK_P1,2,EVAL,NEEDHEAP_I32)
,	/* v198: (byte 3) */
  bytes2word(APPLY,1,RETURN_EVAL,HEAP_CVAL_P1)
, bytes2word(7,HEAP_CVAL_N1,7,HEAP_CREATE)
, bytes2word(HEAP_SPACE,HEAP_SPACE,HEAP_ARG,1)
, bytes2word(HEAP_INT_P1,10,HEAP_CVAL_P1,8)
, bytes2word(HEAP_CVAL_N1,12,HEAP_CREATE,HEAP_SPACE)
, bytes2word(HEAP_SPACE,HEAP_ARG,1,HEAP_INT_P1)
, bytes2word(15,PUSH_HEAP,HEAP_CVAL_P1,9)
, bytes2word(HEAP_CVAL_N1,17,HEAP_CREATE,HEAP_SPACE)
, bytes2word(HEAP_SPACE,HEAP_OFF_N1,19,HEAP_OFF_N1)
, bytes2word(13,EVAL,NEEDHEAP_I32,JUMPFALSE)
, bytes2word(61,0,HEAP_CVAL_P1,10)
, bytes2word(HEAP_CVAL_N1,22,HEAP_CREATE,HEAP_SPACE)
, bytes2word(HEAP_SPACE,HEAP_CVAL_P1,11,HEAP_CVAL_N1)
, bytes2word(27,HEAP_CREATE,HEAP_SPACE,HEAP_SPACE)
, bytes2word(HEAP_OFF_N1,10,HEAP_CHAR_P1,97)
, bytes2word(HEAP_CVAL_P1,12,HEAP_CVAL_N1,32)
, bytes2word(HEAP_CREATE,HEAP_SPACE,HEAP_SPACE,HEAP_OFF_N1)
, bytes2word(12,HEAP_ARG,1,PUSH_HEAP)
, bytes2word(HEAP_CVAL_P1,14,HEAP_CVAL_N1,42)
, bytes2word(HEAP_CREATE,HEAP_SPACE,HEAP_SPACE,HEAP_OFF_N1)
, bytes2word(12,HEAP_INT_P1,10,PUSH_P1)
, bytes2word(0,PUSH_HEAP,HEAP_CVAL_P1,13)
, bytes2word(HEAP_CVAL_N1,37,HEAP_CREATE,HEAP_SPACE)
, bytes2word(HEAP_SPACE,ZAP_ARG_I1,ZAP_STACK_P1,2)
, bytes2word(EVAL,NEEDHEAP_I32,APPLY,1)
,	/* v200: (byte 1) */
  bytes2word(RETURN_EVAL,PUSH_CVAL_P1,15,ZAP_ARG_I1)
, bytes2word(EVAL,NEEDHEAP_I32,JUMPFALSE,20)
, bytes2word(0,HEAP_CVAL_P1,16,HEAP_CVAL_N1)
, bytes2word(47,HEAP_CREATE,HEAP_SPACE,HEAP_SPACE)
, bytes2word(PUSH_HEAP,HEAP_CVAL_P1,17,HEAP_CVAL_N1)
, bytes2word(52,HEAP_CREATE,HEAP_SPACE,HEAP_SPACE)
,	/* v202: (byte 3) */
  bytes2word(HEAP_OFF_N1,10,RETURN_EVAL,HEAP_CVAL_P1)
, bytes2word(18,HEAP_CVAL_N1,57,HEAP_CREATE)
, bytes2word(HEAP_SPACE,HEAP_SPACE,PUSH_HEAP,HEAP_CVAL_P1)
, bytes2word(19,HEAP_CVAL_N1,62,HEAP_CREATE)
, bytes2word(HEAP_SPACE,HEAP_SPACE,HEAP_OFF_N1,10)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, useLabel(PS_v217)
, 0
, 0
, 0
, 0
, useLabel(PS_v216)
, 0
, 0
, 0
, 0
, useLabel(PS_v215)
, 0
, 0
, 0
, 0
, useLabel(PS_v214)
, 0
, 0
, 0
, 0
, useLabel(PS_v213)
, 0
, 0
, 0
, 0
, useLabel(PS_v212)
, 0
, 0
, 0
, 0
, useLabel(PS_v211)
, 0
, 0
, 0
, 0
, useLabel(PS_v210)
, 0
, 0
, 0
, 0
, useLabel(PS_v209)
, 0
, 0
, 0
, 0
, useLabel(PS_v208)
, 0
, 0
, 0
, 0
, useLabel(PS_v207)
, 0
, 0
, 0
, 0
, useLabel(PS_v206)
, 0
, 0
, 0
, 0
, 80001
, useLabel(ST_v205)
,	/* CT_v218: (byte 0) */
  HW(13,1)
, 0
,};
Node F0_Char_46intToDigit[] = {
  CAPTAG(useLabel(FN_Char_46intToDigit),1)
, useLabel(PS_v204)
, 0
, 0
, 0
, VAPTAG(useLabel(FN_Prelude_46Ord_46Prelude_46Int_46_62_61))
, VAPTAG(useLabel(FN_Prelude_46Ord_46Prelude_46Int_46_60_61))
, VAPTAG(useLabel(FN_Prelude_46_38_38))
, VAPTAG(useLabel(FN_Char_46ord))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1))
, VAPTAG(useLabel(FN_Prelude_46Num_46Prelude_46Int_46_43))
, VAPTAG(useLabel(FN_Char_46chr))
, VAPTAG(useLabel(FN_Prelude_46Num_46Prelude_46Int_46_45))
, useLabel(CF_Prelude_46otherwise)
, VAPTAG(useLabel(FN_LAMBDA193))
, VAPTAG(useLabel(FN_Prelude_46error))
, VAPTAG(useLabel(FN_LAMBDA194))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95patternMatchFail))
, bytes2word(0,0,0,0)
, useLabel(CT_v222)
,	/* FN_LAMBDA194: (byte 0) */
  bytes2word(NEEDHEAP_I32,PUSH_CADR_N1,8,STRING)
, bytes2word(RETURN,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, CONSTRW(1,0)
, 0
, 0
, 0
, 0
, useLabel(ST_v221)
, 80001
, useLabel(ST_v220)
,	/* CT_v222: (byte 0) */
  HW(0,0)
, 0
,	/* CF_LAMBDA194: (byte 0) */
  VAPTAG(useLabel(FN_LAMBDA194))
, useLabel(PS_v219)
, 0
, 0
, 0
, bytes2word(0,0,0,0)
, useLabel(CT_v226)
,	/* FN_LAMBDA193: (byte 0) */
  bytes2word(NEEDHEAP_I32,PUSH_CADR_N1,8,STRING)
, bytes2word(RETURN,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, CONSTRW(1,0)
, 0
, 0
, 0
, 0
, useLabel(ST_v225)
, 110033
, useLabel(ST_v224)
,	/* CT_v226: (byte 0) */
  HW(0,0)
, 0
,	/* CF_LAMBDA193: (byte 0) */
  VAPTAG(useLabel(FN_LAMBDA193))
, useLabel(PS_v223)
, 0
, 0
, 0
,};
Node PP_Char_46intToDigit[] = {
 };
Node PC_Char_46intToDigit[] = {
 	/* ST_v205: (byte 0) */
  bytes2word(67,104,97,114)
, bytes2word(46,105,110,116)
, bytes2word(84,111,68,105)
,	/* ST_v225: (byte 4) */
  bytes2word(103,105,116,0)
, bytes2word(67,104,97,114)
, bytes2word(46,105,110,116)
, bytes2word(84,111,68,105)
, bytes2word(103,105,116,58)
, bytes2word(32,110,111,116)
, bytes2word(32,97,32,100)
, bytes2word(105,103,105,116)
,	/* PP_LAMBDA193: (byte 1) */
 	/* PC_LAMBDA193: (byte 1) */
 	/* ST_v224: (byte 1) */
  bytes2word(0,67,104,97)
, bytes2word(114,46,105,110)
, bytes2word(116,84,111,68)
, bytes2word(105,103,105,116)
, bytes2word(58,49,49,58)
, bytes2word(51,51,45,49)
, bytes2word(49,58,54,50)
,	/* PP_LAMBDA194: (byte 1) */
 	/* PC_LAMBDA194: (byte 1) */
 	/* ST_v220: (byte 1) */
  bytes2word(0,67,104,97)
, bytes2word(114,46,105,110)
, bytes2word(116,84,111,68)
, bytes2word(105,103,105,116)
, bytes2word(58,56,58,49)
, bytes2word(45,49,49,58)
,	/* ST_v221: (byte 3) */
  bytes2word(54,50,0,67)
, bytes2word(104,97,114,58)
, bytes2word(32,80,97,116)
, bytes2word(116,101,114,110)
, bytes2word(32,109,97,116)
, bytes2word(99,104,32,102)
, bytes2word(97,105,108,117)
, bytes2word(114,101,32,105)
, bytes2word(110,32,102,117)
, bytes2word(110,99,116,105)
, bytes2word(111,110,32,97)
, bytes2word(116,32,56,58)
, bytes2word(49,45,49,49)
, bytes2word(58,54,50,46)
, bytes2word(0,0,0,0)
,	/* PS_v209: (byte 0) */
  useLabel(PM_Char)
, useLabel(PP_Char_46intToDigit)
, useLabel(PC_Char_46ord)
,	/* PS_v212: (byte 0) */
  useLabel(PM_Char)
, useLabel(PP_Char_46intToDigit)
, useLabel(PC_Char_46chr)
,	/* PS_v217: (byte 0) */
  useLabel(PM_Char)
, useLabel(PP_Char_46intToDigit)
, useLabel(PC_NHC_46Internal_46_95patternMatchFail)
,	/* PS_v210: (byte 0) */
  useLabel(PM_Char)
, useLabel(PP_Char_46intToDigit)
, useLabel(PC_NHC_46Internal_46_95apply1)
,	/* PS_v215: (byte 0) */
  useLabel(PM_Char)
, useLabel(PP_Char_46intToDigit)
, useLabel(PC_Prelude_46error)
,	/* PS_v208: (byte 0) */
  useLabel(PM_Char)
, useLabel(PP_Char_46intToDigit)
, useLabel(PC_Prelude_46_38_38)
,	/* PS_v204: (byte 0) */
  useLabel(PM_Char)
, useLabel(PP_Char_46intToDigit)
, useLabel(PC_Char_46intToDigit)
,	/* PS_v206: (byte 0) */
  useLabel(PM_Char)
, useLabel(PP_Char_46intToDigit)
, useLabel(PC_Prelude_46Ord_46Prelude_46Int_46_62_61)
,	/* PS_v207: (byte 0) */
  useLabel(PM_Char)
, useLabel(PP_Char_46intToDigit)
, useLabel(PC_Prelude_46Ord_46Prelude_46Int_46_60_61)
,	/* PS_v211: (byte 0) */
  useLabel(PM_Char)
, useLabel(PP_Char_46intToDigit)
, useLabel(PC_Prelude_46Num_46Prelude_46Int_46_43)
,	/* PS_v213: (byte 0) */
  useLabel(PM_Char)
, useLabel(PP_Char_46intToDigit)
, useLabel(PC_Prelude_46Num_46Prelude_46Int_46_45)
,	/* PS_v214: (byte 0) */
  useLabel(PM_Char)
, useLabel(PP_Char_46intToDigit)
, useLabel(PC_LAMBDA193)
,	/* PS_v216: (byte 0) */
  useLabel(PM_Char)
, useLabel(PP_Char_46intToDigit)
, useLabel(PC_LAMBDA194)
,	/* PS_v223: (byte 0) */
  useLabel(PM_Char)
, useLabel(PP_LAMBDA193)
, useLabel(PC_LAMBDA193)
,	/* PS_v219: (byte 0) */
  useLabel(PM_Char)
, useLabel(PP_LAMBDA194)
, useLabel(PC_LAMBDA194)
,};

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].