Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/prelude/FFI/MarshalAlloc.z.c

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


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

#define FN_NHC_46FFI_46_95free_35	((void*)startLabel+8)
#define CT_v544	((void*)startLabel+36)
#define F0_NHC_46FFI_46_95free_35	((void*)startLabel+44)
#define FN_NHC_46FFI_46_95free	((void*)startLabel+56)
#define CT_v546	((void*)startLabel+80)
#define CF_NHC_46FFI_46_95free	((void*)startLabel+88)
#define FN_NHC_46FFI_46_95realloc_35	((void*)startLabel+112)
#define CT_v548	((void*)startLabel+144)
#define F0_NHC_46FFI_46_95realloc_35	((void*)startLabel+152)
#define FN_NHC_46FFI_46_95realloc	((void*)startLabel+164)
#define CT_v550	((void*)startLabel+188)
#define CF_NHC_46FFI_46_95realloc	((void*)startLabel+196)
#define FN_NHC_46FFI_46_95malloc_35	((void*)startLabel+216)
#define CT_v552	((void*)startLabel+244)
#define F0_NHC_46FFI_46_95malloc_35	((void*)startLabel+252)
#define FN_NHC_46FFI_46_95malloc	((void*)startLabel+264)
#define CT_v554	((void*)startLabel+288)
#define CF_NHC_46FFI_46_95malloc	((void*)startLabel+296)
#define FN_NHC_46FFI_46failWhenNULL	((void*)startLabel+320)
#define CT_v556	((void*)startLabel+348)
#define F0_NHC_46FFI_46failWhenNULL	((void*)startLabel+356)
#define FN_LAMBDA538	((void*)startLabel+380)
#define CT_v558	((void*)startLabel+456)
#define F0_LAMBDA538	((void*)startLabel+464)
#define FN_LAMBDA537	((void*)startLabel+516)
#define CT_v561	((void*)startLabel+548)
#define CF_LAMBDA537	((void*)startLabel+556)
#define CT_v563	((void*)startLabel+596)
#define CT_v565	((void*)startLabel+640)
#define CT_v567	((void*)startLabel+716)
#define FN_LAMBDA539	((void*)startLabel+768)
#define CT_v570	((void*)startLabel+800)
#define CF_LAMBDA539	((void*)startLabel+808)
#define CT_v572	((void*)startLabel+852)
#define FN_NHC_46FFI_46Prelude_46344_46doRealloc	((void*)startLabel+884)
#define CT_v574	((void*)startLabel+944)
#define F0_NHC_46FFI_46Prelude_46344_46doRealloc	((void*)startLabel+952)
#define FN_LAMBDA540	((void*)startLabel+1000)
#define CT_v576	((void*)startLabel+1032)
#define CF_LAMBDA540	((void*)startLabel+1040)
#define CT_v578	((void*)startLabel+1100)
#define FN_LAMBDA541	((void*)startLabel+1148)
#define CT_v581	((void*)startLabel+1180)
#define CF_LAMBDA541	((void*)startLabel+1188)
#define CT_v583	((void*)startLabel+1228)
#define CT_v585	((void*)startLabel+1284)
#define FN_NHC_46FFI_46Prelude_46340_46doAlloca	((void*)startLabel+1316)
#define CT_v587	((void*)startLabel+1348)
#define F0_NHC_46FFI_46Prelude_46340_46doAlloca	((void*)startLabel+1356)
#define CT_v589	((void*)startLabel+1404)
#define FN_NHC_46FFI_46Prelude_46337_46doMalloc	((void*)startLabel+1436)
#define CT_v591	((void*)startLabel+1468)
#define F0_NHC_46FFI_46Prelude_46337_46doMalloc	((void*)startLabel+1476)
#define ST_v560	((void*)startLabel+1492)
#define ST_v545	((void*)startLabel+1507)
#define ST_v543	((void*)startLabel+1521)
#define ST_v553	((void*)startLabel+1536)
#define ST_v551	((void*)startLabel+1552)
#define ST_v549	((void*)startLabel+1569)
#define ST_v547	((void*)startLabel+1586)
#define ST_v584	((void*)startLabel+1604)
#define ST_v586	((void*)startLabel+1619)
#define ST_v582	((void*)startLabel+1645)
#define ST_v555	((void*)startLabel+1665)
#define ST_v557	((void*)startLabel+1686)
#define ST_v559	((void*)startLabel+1713)
#define ST_v562	((void*)startLabel+1746)
#define ST_v564	((void*)startLabel+1768)
#define ST_v588	((void*)startLabel+1781)
#define ST_v590	((void*)startLabel+1796)
#define ST_v577	((void*)startLabel+1822)
#define ST_v579	((void*)startLabel+1842)
#define ST_v571	((void*)startLabel+1874)
#define ST_v573	((void*)startLabel+1890)
#define ST_v575	((void*)startLabel+1917)
#define ST_v566	((void*)startLabel+1945)
#define ST_v568	((void*)startLabel+1966)
#define ST_v580	((void*)startLabel+1999)
#define ST_v569	((void*)startLabel+2006)
extern Node TM_NHC_46FFI[];
void FR_NHC_46FFI_46_95free_35(void);
extern Node FN_NHC_46Internal_46_95mkIOok1[];
void FR_NHC_46FFI_46_95realloc_35(void);
extern Node FN_NHC_46Internal_46_95mkIOok2[];
void FR_NHC_46FFI_46_95malloc_35(void);
extern Node FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61[];
extern Node TMSUB_NHC_46FFI[];
extern Node FN_Prelude_46Eq_46NHC_46FFI_46Ptr_46_61_61[];
extern Node CF_NHC_46FFI_46nullPtr[];
extern Node FN_Prelude_46_43_43[];
extern Node FN_Prelude_46Enum_46NHC_46DErrNo_46ErrNo_46fromEnum[];
extern Node FN_NHC_46FFI_46throwIOError[];
extern Node FN_Monad_46when[];
extern Node CF_Prelude_46Monad_46NHC_46Internal_46IO[];
extern Node FN_Prelude_46Monad_46NHC_46Internal_46IO_46return[];
extern Node FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62[];
void FR_NHC_46FFI_46finalizerFree(void);
extern Node FN_Prelude_46fromIntegral[];
extern Node CF_Prelude_46Integral_46Prelude_46Int[];
extern Node CF_Prelude_46Num_46NHC_46FFI_46CSize[];
extern Node FN_NHC_46Internal_46_95apply1[];
extern Node FN_NHC_46Internal_46_95apply2[];
extern Node CF_Prelude_46undefined[];
extern Node FN_NHC_46FFI_46sizeOf[];
extern Node FN_IO_46bracket[];

static Node startLabel[] = {
  bytes2word(1,0,0,1)
, useLabel(CT_v544)
,	/* FN_NHC_46FFI_46_95free_35: (byte 0) */
  useLabel(TM_NHC_46FFI)
, bytes2word(PUSH_ARG_I1,EVAL,POP_I1,PRIMITIVE)
, useLabel(FR_NHC_46FFI_46_95free_35)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 950001
, useLabel(ST_v543)
,	/* CT_v544: (byte 0) */
  HW(0,1)
, 0
,	/* F0_NHC_46FFI_46_95free_35: (byte 0) */
  CAPTAG(useLabel(FN_NHC_46FFI_46_95free_35),1)
, bytes2word(0,0,0,0)
, useLabel(CT_v546)
,	/* FN_NHC_46FFI_46_95free: (byte 0) */
  useLabel(TM_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_I3,HEAP_CVAL_I4)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 950001
, useLabel(ST_v545)
,	/* CT_v546: (byte 0) */
  HW(2,0)
, 0
,	/* CF_NHC_46FFI_46_95free: (byte 0) */
  VAPTAG(useLabel(FN_NHC_46FFI_46_95free))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95mkIOok1))
, useLabel(F0_NHC_46FFI_46_95free_35)
, bytes2word(0,0,2,0)
, bytes2word(1,1,0,2)
, useLabel(CT_v548)
,	/* FN_NHC_46FFI_46_95realloc_35: (byte 0) */
  useLabel(TM_NHC_46FFI)
, bytes2word(PUSH_ARG_I1,EVAL,POP_I1,PUSH_ARG_I2)
, bytes2word(EVAL,POP_I1,PRIMITIVE,NOP)
, useLabel(FR_NHC_46FFI_46_95realloc_35)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 930001
, useLabel(ST_v547)
,	/* CT_v548: (byte 0) */
  HW(0,2)
, 0
,	/* F0_NHC_46FFI_46_95realloc_35: (byte 0) */
  CAPTAG(useLabel(FN_NHC_46FFI_46_95realloc_35),2)
, bytes2word(0,0,0,0)
, useLabel(CT_v550)
,	/* FN_NHC_46FFI_46_95realloc: (byte 0) */
  useLabel(TM_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_I3,HEAP_CVAL_I4)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 930001
, useLabel(ST_v549)
,	/* CT_v550: (byte 0) */
  HW(2,0)
, 0
,	/* CF_NHC_46FFI_46_95realloc: (byte 0) */
  VAPTAG(useLabel(FN_NHC_46FFI_46_95realloc))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95mkIOok2))
, useLabel(F0_NHC_46FFI_46_95realloc_35)
, bytes2word(1,0,0,1)
, useLabel(CT_v552)
,	/* FN_NHC_46FFI_46_95malloc_35: (byte 0) */
  useLabel(TM_NHC_46FFI)
, bytes2word(PUSH_ARG_I1,EVAL,POP_I1,PRIMITIVE)
, useLabel(FR_NHC_46FFI_46_95malloc_35)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 920001
, useLabel(ST_v551)
,	/* CT_v552: (byte 0) */
  HW(0,1)
, 0
,	/* F0_NHC_46FFI_46_95malloc_35: (byte 0) */
  CAPTAG(useLabel(FN_NHC_46FFI_46_95malloc_35),1)
, bytes2word(0,0,0,0)
, useLabel(CT_v554)
,	/* FN_NHC_46FFI_46_95malloc: (byte 0) */
  useLabel(TM_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_I3,HEAP_CVAL_I4)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 920001
, useLabel(ST_v553)
,	/* CT_v554: (byte 0) */
  HW(2,0)
, 0
,	/* CF_NHC_46FFI_46_95malloc: (byte 0) */
  VAPTAG(useLabel(FN_NHC_46FFI_46_95malloc))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95mkIOok1))
, useLabel(F0_NHC_46FFI_46_95malloc_35)
, bytes2word(0,0,2,0)
, bytes2word(1,1,0,2)
, useLabel(CT_v556)
,	/* FN_NHC_46FFI_46failWhenNULL: (byte 0) */
  useLabel(TM_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_ARG,1)
, bytes2word(PUSH_HEAP,HEAP_CVAL_I4,HEAP_ARG,2)
, bytes2word(HEAP_OFF_N1,4,RETURN_EVAL,ENDCODE)
, bytes2word(0,0,0,0)
, 860001
, useLabel(ST_v555)
,	/* CT_v556: (byte 0) */
  HW(2,2)
, 0
,	/* F0_NHC_46FFI_46failWhenNULL: (byte 0) */
  CAPTAG(useLabel(FN_NHC_46FFI_46failWhenNULL),2)
, CAPTAG(useLabel(FN_LAMBDA538),1)
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61))
, bytes2word(0,0,2,0)
, bytes2word(1,1,0,2)
, useLabel(CT_v558)
,	/* FN_LAMBDA538: (byte 0) */
  useLabel(TMSUB_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_ARG,2)
, bytes2word(HEAP_CVAL_I4,HEAP_CVAL_I5,HEAP_CVAL_P1,6)
, bytes2word(HEAP_ARG,1,HEAP_OFF_N1,3)
, bytes2word(HEAP_CVAL_IN3,HEAP_CVAL_IN3,HEAP_CVAL_N1,4)
, bytes2word(HEAP_CVAL_P1,7,HEAP_OFF_N1,2)
, bytes2word(HEAP_CVAL_P1,8,HEAP_OFF_N1,9)
, bytes2word(HEAP_OFF_N1,7,HEAP_OFF_N1,7)
, bytes2word(HEAP_OFF_N1,6,HEAP_CVAL_P1,9)
, bytes2word(HEAP_CVAL_P1,10,HEAP_OFF_N1,19)
, bytes2word(HEAP_OFF_N1,8,HEAP_CVAL_P1,11)
, bytes2word(HEAP_ARG,2,PUSH_HEAP,HEAP_CVAL_P1)
, bytes2word(12,HEAP_OFF_N1,7,HEAP_OFF_N1)
, bytes2word(4,RETURN_EVAL,ENDCODE,0)
, bytes2word(0,0,0,0)
, CONSTR(12,0,0)
, CONSTR(0,0,0)
, 870012
, useLabel(ST_v557)
,	/* CT_v558: (byte 0) */
  HW(10,2)
, 0
,	/* F0_LAMBDA538: (byte 0) */
  CAPTAG(useLabel(FN_LAMBDA538),2)
, VAPTAG(useLabel(FN_Prelude_46Eq_46NHC_46FFI_46Ptr_46_61_61))
, useLabel(CF_NHC_46FFI_46nullPtr)
, VAPTAG(useLabel(FN_LAMBDA537))
, VAPTAG(useLabel(FN_Prelude_46_43_43))
, VAPTAG(useLabel(FN_Prelude_46Enum_46NHC_46DErrNo_46ErrNo_46fromEnum))
, VAPTAG(useLabel(FN_NHC_46FFI_46throwIOError))
, VAPTAG(useLabel(FN_Monad_46when))
, useLabel(CF_Prelude_46Monad_46NHC_46Internal_46IO)
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46return))
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62))
, bytes2word(0,0,0,0)
, useLabel(CT_v561)
,	/* FN_LAMBDA537: (byte 0) */
  useLabel(TMSUB_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,PUSH_CADR_N1,4,STRING)
, bytes2word(RETURN,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, CONSTRW(1,0)
, useLabel(ST_v560)
, 890028
, useLabel(ST_v559)
,	/* CT_v561: (byte 0) */
  HW(0,0)
, 0
,	/* CF_LAMBDA537: (byte 0) */
  VAPTAG(useLabel(FN_LAMBDA537))
, bytes2word(0,0,0,0)
, useLabel(CT_v563)
,};
Node FN_NHC_46FFI_46finalizerFree[] = {
  useLabel(TM_NHC_46FFI)
, bytes2word(PRIMITIVE,NOP,NOP,NOP)
, useLabel(FR_NHC_46FFI_46finalizerFree)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 790001
, useLabel(ST_v562)
,	/* CT_v563: (byte 0) */
  HW(0,0)
, 0
,};
Node CF_NHC_46FFI_46finalizerFree[] = {
  VAPTAG(useLabel(FN_NHC_46FFI_46finalizerFree))
, bytes2word(0,0,0,0)
, useLabel(CT_v565)
,};
Node FN_NHC_46FFI_46free[] = {
  useLabel(TM_NHC_46FFI)
, bytes2word(NEEDSTACK_I16,PUSH_CVAL_P1,3,RETURN_EVAL)
, bytes2word(ENDCODE,0,0,0)
, bytes2word(0,0,0,0)
, 750001
, useLabel(ST_v564)
,	/* CT_v565: (byte 0) */
  HW(1,0)
, 0
,};
Node CF_NHC_46FFI_46free[] = {
  VAPTAG(useLabel(FN_NHC_46FFI_46free))
, useLabel(CF_NHC_46FFI_46_95free)
, bytes2word(0,0,2,0)
, bytes2word(1,1,0,2)
, useLabel(CT_v567)
,};
Node FN_NHC_46FFI_46reallocBytes[] = {
  useLabel(TM_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_CVAL_I4,HEAP_CVAL_I5)
, bytes2word(HEAP_CVAL_P1,6,HEAP_CVAL_P1,7)
, bytes2word(HEAP_CVAL_P1,8,HEAP_OFF_N1,4)
, bytes2word(HEAP_ARG,2,HEAP_CVAL_P1,9)
, bytes2word(HEAP_OFF_N1,8,HEAP_ARG,1)
, bytes2word(HEAP_OFF_N1,6,PUSH_HEAP,HEAP_CVAL_P1)
, bytes2word(10,HEAP_OFF_N1,13,HEAP_OFF_N1)
, bytes2word(6,RETURN_EVAL,ENDCODE,0)
, bytes2word(0,0,0,0)
, 690001
, useLabel(ST_v566)
,	/* CT_v567: (byte 0) */
  HW(8,2)
, 0
,};
Node F0_NHC_46FFI_46reallocBytes[] = {
  CAPTAG(useLabel(FN_NHC_46FFI_46reallocBytes),2)
, VAPTAG(useLabel(FN_LAMBDA539))
, VAPTAG(useLabel(FN_NHC_46FFI_46_95realloc))
, VAPTAG(useLabel(FN_Prelude_46fromIntegral))
, useLabel(CF_Prelude_46Integral_46Prelude_46Int)
, useLabel(CF_Prelude_46Num_46NHC_46FFI_46CSize)
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply2))
, VAPTAG(useLabel(FN_NHC_46FFI_46failWhenNULL))
, bytes2word(0,0,0,0)
, useLabel(CT_v570)
,	/* FN_LAMBDA539: (byte 0) */
  useLabel(TMSUB_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,PUSH_CADR_N1,4,STRING)
, bytes2word(RETURN,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, CONSTRW(1,0)
, useLabel(ST_v569)
, 700016
, useLabel(ST_v568)
,	/* CT_v570: (byte 0) */
  HW(0,0)
, 0
,	/* CF_LAMBDA539: (byte 0) */
  VAPTAG(useLabel(FN_LAMBDA539))
, bytes2word(0,0,2,0)
, bytes2word(1,1,0,2)
, useLabel(CT_v572)
,};
Node FN_NHC_46FFI_46realloc[] = {
  useLabel(TM_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_I3,HEAP_ARG_ARG)
, bytes2word(2,1,HEAP_CVAL_I4,RETURN_EVAL)
, bytes2word(ENDCODE,0,0,0)
, bytes2word(0,0,0,0)
, 600001
, useLabel(ST_v571)
,	/* CT_v572: (byte 0) */
  HW(2,2)
, 0
,};
Node F0_NHC_46FFI_46realloc[] = {
  CAPTAG(useLabel(FN_NHC_46FFI_46realloc),2)
, VAPTAG(useLabel(FN_NHC_46FFI_46Prelude_46344_46doRealloc))
, useLabel(CF_Prelude_46undefined)
, bytes2word(3,0,2,1)
, bytes2word(1,2,0,3)
, useLabel(CT_v574)
,	/* FN_NHC_46FFI_46Prelude_46344_46doRealloc: (byte 0) */
  useLabel(TMSUB_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_CVAL_I4,HEAP_CVAL_I5)
, bytes2word(HEAP_CVAL_P1,6,HEAP_CVAL_P1,7)
, bytes2word(HEAP_CVAL_P1,8,HEAP_ARG,2)
, bytes2word(HEAP_CVAL_P1,9,HEAP_OFF_N1,3)
, bytes2word(HEAP_ARG,3,HEAP_CVAL_P1,9)
, bytes2word(HEAP_OFF_N1,9,HEAP_OFF_N1,5)
, bytes2word(HEAP_CVAL_P1,10,HEAP_OFF_N1,13)
, bytes2word(HEAP_ARG,1,HEAP_OFF_N1,6)
, bytes2word(PUSH_HEAP,HEAP_CVAL_P1,11,HEAP_OFF_N1)
, bytes2word(18,HEAP_OFF_N1,6,RETURN_EVAL)
, bytes2word(ENDCODE,0,0,0)
, bytes2word(0,0,0,0)
, 630005
, useLabel(ST_v573)
,	/* CT_v574: (byte 0) */
  HW(9,3)
, 0
,	/* F0_NHC_46FFI_46Prelude_46344_46doRealloc: (byte 0) */
  CAPTAG(useLabel(FN_NHC_46FFI_46Prelude_46344_46doRealloc),3)
, VAPTAG(useLabel(FN_LAMBDA540))
, VAPTAG(useLabel(FN_NHC_46FFI_46_95realloc))
, VAPTAG(useLabel(FN_Prelude_46fromIntegral))
, useLabel(CF_Prelude_46Integral_46Prelude_46Int)
, useLabel(CF_Prelude_46Num_46NHC_46FFI_46CSize)
, VAPTAG(useLabel(FN_NHC_46FFI_46sizeOf))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply2))
, VAPTAG(useLabel(FN_NHC_46FFI_46failWhenNULL))
, bytes2word(0,0,0,0)
, useLabel(CT_v576)
,	/* FN_LAMBDA540: (byte 0) */
  useLabel(TMSUB_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,PUSH_CADR_N1,4,STRING)
, bytes2word(RETURN,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, CONSTRW(1,0)
, useLabel(ST_v569)
, 640022
, useLabel(ST_v575)
,	/* CT_v576: (byte 0) */
  HW(0,0)
, 0
,	/* CF_LAMBDA540: (byte 0) */
  VAPTAG(useLabel(FN_LAMBDA540))
, bytes2word(1,0,0,1)
, useLabel(CT_v578)
,};
Node FN_NHC_46FFI_46mallocBytes[] = {
  useLabel(TM_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_CVAL_I4,HEAP_CVAL_I5)
, bytes2word(HEAP_CVAL_P1,6,HEAP_CVAL_P1,7)
, bytes2word(HEAP_CVAL_P1,8,HEAP_OFF_N1,4)
, bytes2word(HEAP_ARG,1,HEAP_CVAL_P1,8)
, bytes2word(HEAP_OFF_N1,8,HEAP_OFF_N1,5)
, bytes2word(PUSH_HEAP,HEAP_CVAL_P1,9,HEAP_OFF_N1)
, bytes2word(12,HEAP_OFF_N1,5,RETURN_EVAL)
, bytes2word(ENDCODE,0,0,0)
, bytes2word(0,0,0,0)
, 340001
, useLabel(ST_v577)
,	/* CT_v578: (byte 0) */
  HW(7,1)
, 0
,};
Node F0_NHC_46FFI_46mallocBytes[] = {
  CAPTAG(useLabel(FN_NHC_46FFI_46mallocBytes),1)
, VAPTAG(useLabel(FN_LAMBDA541))
, VAPTAG(useLabel(FN_NHC_46FFI_46_95malloc))
, VAPTAG(useLabel(FN_Prelude_46fromIntegral))
, useLabel(CF_Prelude_46Integral_46Prelude_46Int)
, useLabel(CF_Prelude_46Num_46NHC_46FFI_46CSize)
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1))
, VAPTAG(useLabel(FN_NHC_46FFI_46failWhenNULL))
, bytes2word(0,0,0,0)
, useLabel(CT_v581)
,	/* FN_LAMBDA541: (byte 0) */
  useLabel(TMSUB_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,PUSH_CADR_N1,4,STRING)
, bytes2word(RETURN,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, CONSTRW(1,0)
, useLabel(ST_v580)
, 340034
, useLabel(ST_v579)
,	/* CT_v581: (byte 0) */
  HW(0,0)
, 0
,	/* CF_LAMBDA541: (byte 0) */
  VAPTAG(useLabel(FN_LAMBDA541))
, bytes2word(1,0,0,1)
, useLabel(CT_v583)
,};
Node FN_NHC_46FFI_46allocaBytes[] = {
  useLabel(TM_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_ARG,1)
, bytes2word(PUSH_HEAP,HEAP_CVAL_I4,HEAP_OFF_N1,3)
, bytes2word(HEAP_CVAL_I5,RETURN,ENDCODE,0)
, bytes2word(0,0,0,0)
, 550001
, useLabel(ST_v582)
,	/* CT_v583: (byte 0) */
  HW(3,1)
, 0
,};
Node F0_NHC_46FFI_46allocaBytes[] = {
  CAPTAG(useLabel(FN_NHC_46FFI_46allocaBytes),1)
, VAPTAG(useLabel(FN_NHC_46FFI_46mallocBytes))
, CAPTAG(useLabel(FN_IO_46bracket),1)
, useLabel(CF_NHC_46FFI_46free)
, bytes2word(1,0,0,1)
, useLabel(CT_v585)
,};
Node FN_NHC_46FFI_46alloca[] = {
  useLabel(TM_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_I3,HEAP_ARG)
, bytes2word(1,HEAP_CVAL_I4,RETURN_EVAL,ENDCODE)
, bytes2word(0,0,0,0)
, 430001
, useLabel(ST_v584)
,	/* CT_v585: (byte 0) */
  HW(2,1)
, 0
,};
Node F0_NHC_46FFI_46alloca[] = {
  CAPTAG(useLabel(FN_NHC_46FFI_46alloca),1)
, VAPTAG(useLabel(FN_NHC_46FFI_46Prelude_46340_46doAlloca))
, useLabel(CF_Prelude_46undefined)
, bytes2word(0,0,2,0)
, bytes2word(1,1,0,2)
, useLabel(CT_v587)
,	/* FN_NHC_46FFI_46Prelude_46340_46doAlloca: (byte 0) */
  useLabel(TMSUB_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_ARG,1)
, bytes2word(HEAP_CVAL_I4,HEAP_OFF_N1,3,HEAP_ARG)
, bytes2word(2,PUSH_HEAP,HEAP_CVAL_I5,HEAP_OFF_N1)
, bytes2word(4,RETURN_EVAL,ENDCODE,0)
, bytes2word(0,0,0,0)
, 460005
, useLabel(ST_v586)
,	/* CT_v587: (byte 0) */
  HW(3,2)
, 0
,	/* F0_NHC_46FFI_46Prelude_46340_46doAlloca: (byte 0) */
  CAPTAG(useLabel(FN_NHC_46FFI_46Prelude_46340_46doAlloca),2)
, VAPTAG(useLabel(FN_NHC_46FFI_46sizeOf))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1))
, VAPTAG(useLabel(FN_NHC_46FFI_46allocaBytes))
, bytes2word(1,0,0,1)
, useLabel(CT_v589)
,};
Node FN_NHC_46FFI_46malloc[] = {
  useLabel(TM_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_I3,HEAP_ARG)
, bytes2word(1,HEAP_CVAL_I4,RETURN_EVAL,ENDCODE)
, bytes2word(0,0,0,0)
, 260001
, useLabel(ST_v588)
,	/* CT_v589: (byte 0) */
  HW(2,1)
, 0
,};
Node F0_NHC_46FFI_46malloc[] = {
  CAPTAG(useLabel(FN_NHC_46FFI_46malloc),1)
, VAPTAG(useLabel(FN_NHC_46FFI_46Prelude_46337_46doMalloc))
, useLabel(CF_Prelude_46undefined)
, bytes2word(0,0,2,0)
, bytes2word(1,1,0,2)
, useLabel(CT_v591)
,	/* FN_NHC_46FFI_46Prelude_46337_46doMalloc: (byte 0) */
  useLabel(TMSUB_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_ARG,1)
, bytes2word(HEAP_CVAL_I4,HEAP_OFF_N1,3,HEAP_ARG)
, bytes2word(2,PUSH_HEAP,HEAP_CVAL_I5,HEAP_OFF_N1)
, bytes2word(4,RETURN_EVAL,ENDCODE,0)
, bytes2word(0,0,0,0)
, 290005
, useLabel(ST_v590)
,	/* CT_v591: (byte 0) */
  HW(3,2)
, 0
,	/* F0_NHC_46FFI_46Prelude_46337_46doMalloc: (byte 0) */
  CAPTAG(useLabel(FN_NHC_46FFI_46Prelude_46337_46doMalloc),2)
, VAPTAG(useLabel(FN_NHC_46FFI_46sizeOf))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1))
, VAPTAG(useLabel(FN_NHC_46FFI_46mallocBytes))
,	/* ST_v560: (byte 0) */
  bytes2word(32,111,117,116)
, bytes2word(32,111,102,32)
, bytes2word(109,101,109,111)
,	/* ST_v545: (byte 3) */
  bytes2word(114,121,0,78)
, bytes2word(72,67,46,70)
, bytes2word(70,73,46,95)
, bytes2word(102,114,101,101)
,	/* ST_v543: (byte 1) */
  bytes2word(0,78,72,67)
, bytes2word(46,70,70,73)
, bytes2word(46,95,102,114)
,	/* ST_v553: (byte 4) */
  bytes2word(101,101,35,0)
, bytes2word(78,72,67,46)
, bytes2word(70,70,73,46)
, bytes2word(95,109,97,108)
,	/* ST_v551: (byte 4) */
  bytes2word(108,111,99,0)
, bytes2word(78,72,67,46)
, bytes2word(70,70,73,46)
, bytes2word(95,109,97,108)
, bytes2word(108,111,99,35)
,	/* ST_v549: (byte 1) */
  bytes2word(0,78,72,67)
, bytes2word(46,70,70,73)
, bytes2word(46,95,114,101)
, bytes2word(97,108,108,111)
,	/* ST_v547: (byte 2) */
  bytes2word(99,0,78,72)
, bytes2word(67,46,70,70)
, bytes2word(73,46,95,114)
, bytes2word(101,97,108,108)
,	/* ST_v584: (byte 4) */
  bytes2word(111,99,35,0)
, bytes2word(78,72,67,46)
, bytes2word(70,70,73,46)
, bytes2word(97,108,108,111)
,	/* ST_v586: (byte 3) */
  bytes2word(99,97,0,78)
, bytes2word(72,67,46,70)
, bytes2word(70,73,46,97)
, bytes2word(108,108,111,99)
, bytes2word(97,58,52,54)
, bytes2word(58,53,45,52)
, bytes2word(54,58,52,56)
,	/* ST_v582: (byte 1) */
  bytes2word(0,78,72,67)
, bytes2word(46,70,70,73)
, bytes2word(46,97,108,108)
, bytes2word(111,99,97,66)
, bytes2word(121,116,101,115)
,	/* ST_v555: (byte 1) */
  bytes2word(0,78,72,67)
, bytes2word(46,70,70,73)
, bytes2word(46,102,97,105)
, bytes2word(108,87,104,101)
, bytes2word(110,78,85,76)
,	/* ST_v557: (byte 2) */
  bytes2word(76,0,78,72)
, bytes2word(67,46,70,70)
, bytes2word(73,46,102,97)
, bytes2word(105,108,87,104)
, bytes2word(101,110,78,85)
, bytes2word(76,76,58,56)
, bytes2word(55,58,49,50)
,	/* ST_v559: (byte 1) */
  bytes2word(0,78,72,67)
, bytes2word(46,70,70,73)
, bytes2word(46,102,97,105)
, bytes2word(108,87,104,101)
, bytes2word(110,78,85,76)
, bytes2word(76,58,56,57)
, bytes2word(58,50,56,45)
, bytes2word(56,57,58,52)
,	/* ST_v562: (byte 2) */
  bytes2word(51,0,78,72)
, bytes2word(67,46,70,70)
, bytes2word(73,46,102,105)
, bytes2word(110,97,108,105)
, bytes2word(122,101,114,70)
,	/* ST_v564: (byte 4) */
  bytes2word(114,101,101,0)
, bytes2word(78,72,67,46)
, bytes2word(70,70,73,46)
, bytes2word(102,114,101,101)
,	/* ST_v588: (byte 1) */
  bytes2word(0,78,72,67)
, bytes2word(46,70,70,73)
, bytes2word(46,109,97,108)
,	/* ST_v590: (byte 4) */
  bytes2word(108,111,99,0)
, bytes2word(78,72,67,46)
, bytes2word(70,70,73,46)
, bytes2word(109,97,108,108)
, bytes2word(111,99,58,50)
, bytes2word(57,58,53,45)
, bytes2word(50,57,58,52)
,	/* ST_v577: (byte 2) */
  bytes2word(56,0,78,72)
, bytes2word(67,46,70,70)
, bytes2word(73,46,109,97)
, bytes2word(108,108,111,99)
, bytes2word(66,121,116,101)
,	/* ST_v579: (byte 2) */
  bytes2word(115,0,78,72)
, bytes2word(67,46,70,70)
, bytes2word(73,46,109,97)
, bytes2word(108,108,111,99)
, bytes2word(66,121,116,101)
, bytes2word(115,58,51,52)
, bytes2word(58,51,52,45)
, bytes2word(51,52,58,52)
,	/* ST_v571: (byte 2) */
  bytes2word(49,0,78,72)
, bytes2word(67,46,70,70)
, bytes2word(73,46,114,101)
, bytes2word(97,108,108,111)
,	/* ST_v573: (byte 2) */
  bytes2word(99,0,78,72)
, bytes2word(67,46,70,70)
, bytes2word(73,46,114,101)
, bytes2word(97,108,108,111)
, bytes2word(99,58,54,51)
, bytes2word(58,53,45,54)
, bytes2word(52,58,55,53)
,	/* ST_v575: (byte 1) */
  bytes2word(0,78,72,67)
, bytes2word(46,70,70,73)
, bytes2word(46,114,101,97)
, bytes2word(108,108,111,99)
, bytes2word(58,54,52,58)
, bytes2word(50,50,45,54)
, bytes2word(52,58,51,48)
,	/* ST_v566: (byte 1) */
  bytes2word(0,78,72,67)
, bytes2word(46,70,70,73)
, bytes2word(46,114,101,97)
, bytes2word(108,108,111,99)
, bytes2word(66,121,116,101)
,	/* ST_v568: (byte 2) */
  bytes2word(115,0,78,72)
, bytes2word(67,46,70,70)
, bytes2word(73,46,114,101)
, bytes2word(97,108,108,111)
, bytes2word(99,66,121,116)
, bytes2word(101,115,58,55)
, bytes2word(48,58,49,54)
, bytes2word(45,55,48,58)
,	/* ST_v580: (byte 3) */
  bytes2word(50,52,0,109)
, bytes2word(97,108,108,111)
,	/* ST_v569: (byte 2) */
  bytes2word(99,0,114,101)
, bytes2word(97,108,108,111)
, bytes2word(99,0,0,0)
,};

#include <haskell2c.h>
#include <HsFFI.h>

/* foreign import ccall "stdlib.h free" NHC.FFI._free# 1 :: FFI.Ptr -> Prelude.() */
#include "stdlib.h"
#ifdef PROFILE
static SInfo pf_NHC_46FFI_46_95free_35 = {"NHC.FFI","NHC.FFI._free#","Prelude.()"};
#endif
C_HEADER(FR_NHC_46FFI_46_95free_35) {
  NodePtr nodeptr;
  void* arg1;
  nodeptr = C_GETARG1(1);
  IND_REMOVE(nodeptr);
  arg1 = (void*)GET_INT_VALUE(nodeptr);

  free(arg1);

  nodeptr = nhc_mkUnit();
  INIT_PROFINFO(nodeptr,&pf_NHC_46FFI_46_95free_35);
  C_RETURN(nodeptr);
}

/* foreign import ccall "stdlib.h realloc" NHC.FFI._realloc# 2 :: FFI.Ptr -> Prelude.Int -> FFI.Ptr */
#include "stdlib.h"
#ifdef PROFILE
static SInfo pf_NHC_46FFI_46_95realloc_35 = {"NHC.FFI","NHC.FFI._realloc#","FFI.Ptr"};
#endif
C_HEADER(FR_NHC_46FFI_46_95realloc_35) {
  NodePtr nodeptr;
  void* result;
  void* arg1;
  HsInt arg2;
  nodeptr = C_GETARG1(1);
  IND_REMOVE(nodeptr);
  arg1 = (void*)GET_INT_VALUE(nodeptr);
  nodeptr = C_GETARG1(2);
  IND_REMOVE(nodeptr);
  arg2 = (HsInt)GET_INT_VALUE(nodeptr);

  result = realloc(arg1,arg2);

  nodeptr = nhc_mkInt((int)result);
  INIT_PROFINFO(nodeptr,&pf_NHC_46FFI_46_95realloc_35);
  C_RETURN(nodeptr);
}

/* foreign import ccall "stdlib.h malloc" NHC.FFI._malloc# 1 :: Prelude.Int -> FFI.Ptr */
#include "stdlib.h"
#ifdef PROFILE
static SInfo pf_NHC_46FFI_46_95malloc_35 = {"NHC.FFI","NHC.FFI._malloc#","FFI.Ptr"};
#endif
C_HEADER(FR_NHC_46FFI_46_95malloc_35) {
  NodePtr nodeptr;
  void* result;
  HsInt arg1;
  nodeptr = C_GETARG1(1);
  IND_REMOVE(nodeptr);
  arg1 = (HsInt)GET_INT_VALUE(nodeptr);

  result = malloc(arg1);

  nodeptr = nhc_mkInt((int)result);
  INIT_PROFINFO(nodeptr,&pf_NHC_46FFI_46_95malloc_35);
  C_RETURN(nodeptr);
}

/* foreign import ccall & "stdlib.h free" NHC.FFI.finalizerFree 0 ::  -> FFI.FunPtr(FFI.Ptr -> Prelude.()) */
#include "stdlib.h"
#ifdef PROFILE
static SInfo pf_NHC_46FFI_46finalizerFree = {"NHC.FFI","NHC.FFI.finalizerFree","FFI.FunPtr(FFI.Ptr -> Prelude.())"};
#endif
C_HEADER(FR_NHC_46FFI_46finalizerFree) {
  NodePtr nodeptr;
  void(*result)(void*);
;

  result = (void(*)(void*))&free;

  nodeptr = nhc_mkInt((int)result);
  INIT_PROFINFO(nodeptr,&pf_NHC_46FFI_46finalizerFree);
  C_RETURN(nodeptr);
}

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].