Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/prelude/Char/DigitToInt.hc

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


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

#define v194	((void*)startLabel+38)
#define v196	((void*)startLabel+85)
#define v198	((void*)startLabel+133)
#define v200	((void*)startLabel+149)
#define CT_v202	((void*)startLabel+164)
#define FN_LAMBDA192	((void*)startLabel+228)
#define CT_v204	((void*)startLabel+248)
#define CF_LAMBDA192	((void*)startLabel+256)
#define FN_LAMBDA191	((void*)startLabel+268)
#define CT_v206	((void*)startLabel+288)
#define CF_LAMBDA191	((void*)startLabel+296)
#define ST_v205	((void*)startLabel+300)
#define ST_v203	((void*)startLabel+329)
extern Node FN_Char_46isDigit[];
extern Node FN_Char_46ord[];
extern Node FN_NHC_46Internal_46_95apply1[];
extern Node FN_Prelude_46Ord_46Prelude_46Char_46_62_61[];
extern Node FN_Prelude_46Ord_46Prelude_46Char_46_60_61[];
extern Node FN_Prelude_46_38_38[];
extern Node CF_Prelude_46otherwise[];
extern Node FN_Prelude_46error[];
extern Node FN_NHC_46Internal_46_95patternMatchFail[];

static Node startLabel[] = {
  bytes2word(1,0,0,1)
, useLabel(CT_v202)
,};
Node FN_Char_46digitToInt[] = {
  bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_I3,HEAP_ARG)
, bytes2word(1,EVAL,NEEDHEAP_I32,JUMPFALSE)
, bytes2word(22,0,HEAP_CVAL_I4,PUSH_HEAP)
, bytes2word(HEAP_CVAL_I5,HEAP_OFF_N1,2,HEAP_CHAR_P1)
, bytes2word(48,EVAL,NEEDHEAP_I32,HEAP_CVAL_I4)
, bytes2word(PUSH_HEAP,HEAP_CVAL_I5,HEAP_OFF_N1,2)
, bytes2word(HEAP_ARG,1,EVAL,NEEDHEAP_I32)
,	/* v194: (byte 2) */
  bytes2word(SUB_W,RETURN,HEAP_CVAL_P1,6)
, bytes2word(HEAP_ARG,1,HEAP_CHAR_P1,97)
, bytes2word(HEAP_CVAL_P1,7,HEAP_ARG,1)
, bytes2word(HEAP_CHAR_P1,102,PUSH_HEAP,HEAP_CVAL_P1)
, bytes2word(8,HEAP_OFF_N1,7,HEAP_OFF_N1)
, bytes2word(5,EVAL,NEEDHEAP_I32,JUMPFALSE)
, bytes2word(25,0,PUSH_INT_P1,10)
, bytes2word(HEAP_CVAL_I4,PUSH_HEAP,HEAP_CVAL_I5,HEAP_OFF_N1)
, bytes2word(2,HEAP_CHAR_P1,97,EVAL)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I4,PUSH_HEAP,HEAP_CVAL_I5)
, bytes2word(HEAP_OFF_N1,2,HEAP_ARG,1)
, bytes2word(EVAL,NEEDHEAP_I32,SUB_W,ADD_W)
,	/* v196: (byte 1) */
  bytes2word(RETURN,HEAP_CVAL_P1,6,HEAP_ARG)
, bytes2word(1,HEAP_CHAR_P1,65,HEAP_CVAL_P1)
, bytes2word(7,HEAP_ARG,1,HEAP_CHAR_P1)
, bytes2word(70,PUSH_HEAP,HEAP_CVAL_P1,8)
, bytes2word(HEAP_OFF_N1,7,HEAP_OFF_N1,5)
, bytes2word(EVAL,NEEDHEAP_I32,JUMPFALSE,26)
, bytes2word(0,PUSH_INT_P1,10,HEAP_CVAL_I4)
, bytes2word(PUSH_HEAP,HEAP_CVAL_I5,HEAP_OFF_N1,2)
, bytes2word(HEAP_CHAR_P1,65,EVAL,NEEDHEAP_I32)
, bytes2word(HEAP_CVAL_I4,PUSH_HEAP,HEAP_CVAL_I5,HEAP_OFF_N1)
, bytes2word(2,HEAP_ARG,1,ZAP_ARG_I1)
, bytes2word(EVAL,NEEDHEAP_I32,SUB_W,ADD_W)
,	/* v198: (byte 1) */
  bytes2word(RETURN,PUSH_CVAL_P1,9,ZAP_ARG_I1)
, bytes2word(EVAL,NEEDHEAP_I32,JUMPFALSE,10)
, bytes2word(0,HEAP_CVAL_P1,10,PUSH_HEAP)
, bytes2word(HEAP_CVAL_P1,11,HEAP_OFF_N1,2)
,	/* v200: (byte 1) */
  bytes2word(RETURN_EVAL,HEAP_CVAL_P1,12,PUSH_HEAP)
, bytes2word(HEAP_CVAL_P1,13,HEAP_OFF_N1,2)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
,	/* CT_v202: (byte 0) */
  HW(11,1)
, 0
,};
Node F0_Char_46digitToInt[] = {
  CAPTAG(useLabel(FN_Char_46digitToInt),1)
, VAPTAG(useLabel(FN_Char_46isDigit))
, VAPTAG(useLabel(FN_Char_46ord))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1))
, VAPTAG(useLabel(FN_Prelude_46Ord_46Prelude_46Char_46_62_61))
, VAPTAG(useLabel(FN_Prelude_46Ord_46Prelude_46Char_46_60_61))
, VAPTAG(useLabel(FN_Prelude_46_38_38))
, useLabel(CF_Prelude_46otherwise)
, VAPTAG(useLabel(FN_LAMBDA191))
, VAPTAG(useLabel(FN_Prelude_46error))
, VAPTAG(useLabel(FN_LAMBDA192))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95patternMatchFail))
, bytes2word(0,0,0,0)
, useLabel(CT_v204)
,	/* FN_LAMBDA192: (byte 0) */
  bytes2word(NEEDHEAP_I32,PUSH_CADR_N1,2,STRING)
, bytes2word(RETURN,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, CONSTRW(1,0)
, useLabel(ST_v203)
,	/* CT_v204: (byte 0) */
  HW(0,0)
, 0
,	/* CF_LAMBDA192: (byte 0) */
  VAPTAG(useLabel(FN_LAMBDA192))
, bytes2word(0,0,0,0)
, useLabel(CT_v206)
,	/* FN_LAMBDA191: (byte 0) */
  bytes2word(NEEDHEAP_I32,PUSH_CADR_N1,2,STRING)
, bytes2word(RETURN,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, CONSTRW(1,0)
, useLabel(ST_v205)
,	/* CT_v206: (byte 0) */
  HW(0,0)
, 0
,	/* CF_LAMBDA191: (byte 0) */
  VAPTAG(useLabel(FN_LAMBDA191))
,	/* ST_v205: (byte 0) */
  bytes2word(67,104,97,114)
, bytes2word(46,100,105,103)
, bytes2word(105,116,84,111)
, bytes2word(73,110,116,58)
, bytes2word(32,110,111,116)
, bytes2word(32,97,32,100)
, bytes2word(105,103,105,116)
,	/* ST_v203: (byte 1) */
  bytes2word(0,67,104,97)
, bytes2word(114,58,32,80)
, bytes2word(97,116,116,101)
, bytes2word(114,110,32,109)
, bytes2word(97,116,99,104)
, bytes2word(32,102,97,105)
, bytes2word(108,117,114,101)
, bytes2word(32,105,110,32)
, bytes2word(102,117,110,99)
, bytes2word(116,105,111,110)
, bytes2word(32,97,116,32)
, bytes2word(55,58,49,45)
, bytes2word(49,49,58,54)
, bytes2word(52,46,0,0)
,};

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.