1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105openJs_of_ocaml.JsopenJs_of_ocaml.Js.Unsafetypet=inttypekind=|Invalid|Nop|Block|If|Loop|Break|Switch|Call|CallIndirect|LocalGet|LocalSet|GlobalGet|GlobalSet|Load|Store|AtomicRMW|AtomicCmpxchg|AtomicWait|AtomicNotify|AtomicFence|SIMDExtract|SIMDReplace|SIMDShuffle|SIMDTernary|SIMDShift|SIMDLoad|SIMDLoadStoreLane|MemoryInit|DataDrop|MemoryCopy|MemoryFill|Const|Unary|Binary|Select|Drop|Return|MemorySize|MemoryGrow|Unreachable|Pop|RefNull|RefIs|RefFunc|RefEq|Try|Throw|Rethrow|TupleMake|TupleExtract|I31New|I31Get|CallRef|RefTest|RefCast|BrOn|RttCanon|RttSub|StructNew|StructGet|StructSet|ArrayNew|ArrayGet|ArraySet|ArrayLen|RefAsletexpression_to_optionx=ifx=0thenNoneelseSomexletget_kindexpr=matchmeth_callglobal##.binaryen"getExpressionId"[|injectexpr|]with|nwhenn=global##.binaryen##.InvalidId->Invalid|nwhenn=global##.binaryen##.NopId->Nop|nwhenn=global##.binaryen##.BlockId->Block|nwhenn=global##.binaryen##.IfId->If|nwhenn=global##.binaryen##.LoopId->Loop|nwhenn=global##.binaryen##.BreakId->Break|nwhenn=global##.binaryen##.SwitchId->Switch|nwhenn=global##.binaryen##.CallId->Call|nwhenn=global##.binaryen##.CallIndirectId->CallIndirect|nwhenn=global##.binaryen##.LocalGetId->LocalGet|nwhenn=global##.binaryen##.LocalSetId->LocalSet|nwhenn=global##.binaryen##.GlobalGetId->GlobalGet|nwhenn=global##.binaryen##.GlobalSetId->GlobalSet|nwhenn=global##.binaryen##.LoadId->Load|nwhenn=global##.binaryen##.StoreId->Store|nwhenn=global##.binaryen##.AtomicRMWId->AtomicRMW|nwhenn=global##.binaryen##.AtomicCmpxchgId->AtomicCmpxchg|nwhenn=global##.binaryen##.AtomicWaitId->AtomicWait|nwhenn=global##.binaryen##.AtomicNotifyId->AtomicNotify|nwhenn=global##.binaryen##.AtomicFenceId->AtomicFence|nwhenn=global##.binaryen##.SIMDExtractId->SIMDExtract|nwhenn=global##.binaryen##.SIMDReplaceId->SIMDReplace|nwhenn=global##.binaryen##.SIMDShuffleId->SIMDShuffle|nwhenn=global##.binaryen##.SIMDTernaryId->SIMDTernary|nwhenn=global##.binaryen##.SIMDShiftId->SIMDShift|nwhenn=global##.binaryen##.SIMDLoadId->SIMDLoad|nwhenn=global##.binaryen##.SIMDLoadStoreLaneId->SIMDLoadStoreLane|nwhenn=global##.binaryen##.MemoryInitId->MemoryInit|nwhenn=global##.binaryen##.DataDropId->DataDrop|nwhenn=global##.binaryen##.MemoryCopyId->MemoryCopy|nwhenn=global##.binaryen##.MemoryFillId->MemoryFill|nwhenn=global##.binaryen##.ConstId->Const|nwhenn=global##.binaryen##.UnaryId->Unary|nwhenn=global##.binaryen##.BinaryId->Binary|nwhenn=global##.binaryen##.SelectId->Select|nwhenn=global##.binaryen##.DropId->Drop|nwhenn=global##.binaryen##.ReturnId->Return|nwhenn=global##.binaryen##.MemorySizeId->MemorySize|nwhenn=global##.binaryen##.MemoryGrowId->MemoryGrow|nwhenn=global##.binaryen##.UnreachableId->Unreachable|nwhenn=global##.binaryen##.PopId->Pop|nwhenn=global##.binaryen##.RefNullId->RefNull|nwhenn=global##.binaryen##.RefIsId->RefIs|nwhenn=global##.binaryen##.RefFuncId->RefFunc|nwhenn=global##.binaryen##.RefEqId->RefEq|nwhenn=global##.binaryen##.TryId->Try|nwhenn=global##.binaryen##.ThrowId->Throw|nwhenn=global##.binaryen##.RethrowId->Rethrow|nwhenn=global##.binaryen##.TupleMakeId->TupleMake|nwhenn=global##.binaryen##.TupleExtractId->TupleExtract|nwhenn=global##.binaryen##.I31NewId->I31New|nwhenn=global##.binaryen##.I31GetId->I31Get|nwhenn=global##.binaryen##.CallRefId->CallRef|nwhenn=global##.binaryen##.RefTestId->RefTest|nwhenn=global##.binaryen##.RefCastId->RefCast|nwhenn=global##.binaryen##.BrOnId->BrOn|nwhenn=global##.binaryen##.RttCanonId->RttCanon|nwhenn=global##.binaryen##.RttSubId->RttSub|nwhenn=global##.binaryen##.StructNewId->StructNew|nwhenn=global##.binaryen##.StructGetId->StructGet|nwhenn=global##.binaryen##.StructSetId->StructSet|nwhenn=global##.binaryen##.ArrayNewId->ArrayNew|nwhenn=global##.binaryen##.ArrayGetId->ArrayGet|nwhenn=global##.binaryen##.ArraySetId->ArraySet|nwhenn=global##.binaryen##.ArrayLenId->ArrayLen|nwhenn=global##.binaryen##.RefAsId->RefAs|_->failwith"unknown expression kind"letprintexpr=lettext=meth_callglobal##.binaryen"emitText"[|injectexpr|]inprint_string(to_stringtext)letfinalizeexp=meth_callglobal##.binaryen##.Expression"finalize"[|injectexp|]letcopyexpwasm_mod=meth_callwasm_mod"copyExpression"[|injectexp|]moduleBlock=structletmake?(return_type=Type.auto)wasm_modnamechildren=meth_callwasm_mod"block"[|inject(stringname);inject(array(Array.of_listchildren));injectreturn_type;|]letget_nameexp=Option.mapto_string(Opt.to_option(meth_callglobal##.binaryen##.Block"getName"[|injectexp|]))letset_nameexpname=meth_callglobal##.binaryen##.Block"setName"[|injectexp;inject(stringname)|]letget_num_childrenexp=meth_callglobal##.binaryen##.Block"getNumChildren"[|injectexp|]letget_child_atexpindex=meth_callglobal##.binaryen##.Block"getChildAt"[|injectexp;injectindex|]letset_child_atexpindexchild=meth_callglobal##.binaryen##.Block"setChildAt"[|injectexp;injectindex;injectchild|]letappend_childexpchild=meth_callglobal##.binaryen##.Block"appendChild"[|injectexp;injectchild|]letinsert_child_atexpindexchild=meth_callglobal##.binaryen##.Block"insertChildAt"[|injectexp;injectindex;injectchild|]letremove_child_atexpindex=meth_callglobal##.binaryen##.Block"removeChildAt"[|injectexp;injectindex|]endmoduleIf=structletmakewasm_modcondif_trueif_false=meth_callwasm_mod"if"[|injectcond;injectif_true;injectif_false|]letget_conditionexp=meth_callglobal##.binaryen##.If"getCondition"[|injectexp|]letset_conditionexpcond=meth_callglobal##.binaryen##.If"setCondition"[|injectexp;injectcond|]letget_if_trueexp=meth_callglobal##.binaryen##.If"getIfTrue"[|injectexp|]letset_if_trueexpchild=meth_callglobal##.binaryen##.If"setIfTrue"[|injectexp;injectchild|]letget_if_falseexp=expression_to_option(meth_callglobal##.binaryen##.If"getIfFalse"[|injectexp|])letset_if_falseexpchild=meth_callglobal##.binaryen##.If"setIfFalse"[|injectexp;injectchild|]endmoduleLoop=structletmakewasm_modnamebody=meth_callwasm_mod"loop"[|inject(stringname);injectbody|]letget_nameexp=to_string(meth_callglobal##.binaryen##.Loop"getName"[|injectexp|])letset_nameexpname=meth_callglobal##.binaryen##.Loop"setName"[|injectexp;inject(stringname)|]letget_bodyexp=meth_callglobal##.binaryen##.Loop"getBody"[|injectexp|]letset_bodyexpchild=meth_callglobal##.binaryen##.Loop"setBody"[|injectexp;injectchild|]endmoduleBreak=structletmakewasm_modnamecondres=meth_callwasm_mod"br"[|inject(stringname);injectcond;injectres|]letget_nameexp=to_string(meth_callglobal##.binaryen##.Break"getName"[|injectexp|])letset_nameexpname=meth_callglobal##.binaryen##.Break"setName"[|injectexp;inject(stringname)|]letget_conditionexp=expression_to_option(meth_callglobal##.binaryen##.Break"getCondition"[|injectexp|])letset_conditionexpchild=meth_callglobal##.binaryen##.Break"setCondition"[|injectexp;injectchild|]letget_valueexp=expression_to_option(meth_callglobal##.binaryen##.Break"getValue"[|injectexp|])letset_valueexpchild=meth_callglobal##.binaryen##.Break"setValue"[|injectexp;injectchild|]endmoduleSwitch=structletmakewasm_modnamesdefault_namecondvalue=meth_callwasm_mod"switch"[|inject(array(Array.of_list(List.mapstringnames)));inject(stringdefault_name);injectcond;injectvalue;|]letget_num_namesexp=meth_callglobal##.binaryen##.Switch"getNumNames"[|injectexp|]letget_name_atexpindex=to_string(meth_callglobal##.binaryen##.Switch"getNameAt"[|injectexp;injectindex|])letset_name_atexpindexname=meth_callglobal##.binaryen##.Switch"setNameAt"[|injectexp;injectindex;inject(stringname)|]letappend_nameexpname=meth_callglobal##.binaryen##.Switch"appendName"[|injectexp;inject(stringname)|]letinsert_name_atexpindexname=meth_callglobal##.binaryen##.Switch"insertNameAt"[|injectexp;injectindex;inject(stringname)|]letremove_name_atexpindex=to_string(meth_callglobal##.binaryen##.Switch"removeNameAt"[|injectexp;injectindex|])letget_default_nameexp=Option.mapto_string(Opt.to_option(meth_callglobal##.binaryen##.Switch"getDefaultName"[|injectexp|]))letset_default_nameexpname=meth_callglobal##.binaryen##.Switch"setDefaultName"[|injectexp;inject(stringname)|]letget_conditionexp=meth_callglobal##.binaryen##.Switch"getCondition"[|injectexp|]letset_conditionexpchild=meth_callglobal##.binaryen##.Switch"setCondition"[|injectexp;injectchild|]letget_valueexp=expression_to_option(meth_callglobal##.binaryen##.Switch"getValue"[|injectexp|])letset_valueexpchild=meth_callglobal##.binaryen##.Switch"setValue"[|injectexp;injectchild|]endmoduleCall=structletmakewasm_modnameparamsreturn_typ=meth_callwasm_mod"call"[|inject(stringname);inject(array(Array.of_listparams));injectreturn_typ;|]letmake_returnwasm_modnameparamsreturn_typ=meth_callwasm_mod"return_call"[|inject(stringname);inject(array(Array.of_listparams));injectreturn_typ;|]letget_targetexp=to_string(meth_callglobal##.binaryen##.Call"getTarget"[|injectexp|])letset_targetexpname=meth_callglobal##.binaryen##.Call"setTarget"[|injectexp;inject(stringname)|]letget_num_operandsexp=meth_callglobal##.binaryen##.Call"getNumOperands"[|injectexp|]letget_operand_atexpindex=meth_callglobal##.binaryen##.Call"getOperandAt"[|injectexp;injectindex|]letset_operand_atexpindexoperand=meth_callglobal##.binaryen##.Call"setOperandAt"[|injectexp;injectindex;injectoperand|]letappend_operandexpoperand=meth_callglobal##.binaryen##.Call"appendOperand"[|injectexp;injectoperand|]letinsert_operand_atexpindexoperand=meth_callglobal##.binaryen##.Call"insertOperandAt"[|injectexp;injectindex;injectoperand|]letremove_operand_atexpindex=meth_callglobal##.binaryen##.Call"removeOperandAt"[|injectexp;injectindex|]letis_returnexp=to_bool(meth_callglobal##.binaryen##.Call"isReturn"[|injectexp|])letset_returnexpisReturn=meth_callglobal##.binaryen##.Call"setReturn"[|injectexp;inject(boolisReturn)|]endmoduleCall_indirect=structletmakewasm_modtabletargetparamsparams_typreturn_typ=meth_callwasm_mod"call_indirect"[|inject(stringtable);injecttarget;inject(array(Array.of_listparams));injectparams_typ;injectreturn_typ;|]letmake_returnwasm_modtabletargetparamsparams_typreturn_typ=meth_callwasm_mod"return_call_indirect"[|inject(stringtable);injecttarget;inject(array(Array.of_listparams));injectparams_typ;injectreturn_typ;|]letget_targetexp=meth_callglobal##.binaryen##.CallIndirect"getTarget"[|injectexp|]letset_targetexptarget=meth_callglobal##.binaryen##.CallIndirect"setTarget"[|injectexp;injecttarget|]letget_tableexp=to_string(meth_callglobal##.binaryen##.CallIndirect"getTable"[|injectexp|])letset_tableexpname=meth_callglobal##.binaryen##.CallIndirect"setTable"[|injectexp;inject(stringname)|]letget_num_operandsexp=meth_callglobal##.binaryen##.CallIndirect"getNumOperands"[|injectexp|]letget_operand_atexpindex=meth_callglobal##.binaryen##.CallIndirect"getOperandAt"[|injectexp;injectindex|]letset_operand_atexpindexoperand=meth_callglobal##.binaryen##.CallIndirect"setOperandAt"[|injectexp;injectindex;injectoperand|]letappend_operandexpoperand=meth_callglobal##.binaryen##.CallIndirect"appendOperand"[|injectexp;injectoperand|]letinsert_operand_atexpindexoperand=meth_callglobal##.binaryen##.CallIndirect"insertOperandAt"[|injectexp;injectindex;injectoperand|]letremove_operand_atexpindex=meth_callglobal##.binaryen##.CallIndirect"removeOperandAt"[|injectexp;injectindex|]letis_returnexp=to_bool(meth_callglobal##.binaryen##.CallIndirect"isReturn"[|injectexp|])letset_returnexpisReturn=meth_callglobal##.binaryen##.CallIndirect"setReturn"[|injectexp;inject(boolisReturn)|]endmoduleLocal_get=structletmakewasm_modslottyp=letscope=getwasm_mod"local"inmeth_callscope"get"[|injectslot;injecttyp|]endmoduleLocal_set=structletmakewasm_modslotvalue=letscope=getwasm_mod"local"inmeth_callscope"set"[|injectslot;injectvalue|]letget_valueexp=meth_callglobal##.binaryen##.LocalSet"getValue"[|injectexp|]letset_valueexpvalue=meth_callglobal##.binaryen##.LocalSet"setValue"[|injectexp;injectvalue|]endmoduleLocal_tee=structletmakewasm_modslotvaluetyp=letscope=getwasm_mod"local"inmeth_callscope"tee"[|injectslot;injectvalue;injecttyp|]endmoduleGlobal_get=structletmakewasm_modnametyp=letscope=getwasm_mod"global"inmeth_callscope"get"[|inject(stringname);injecttyp|]letget_nameexp=to_string(meth_callglobal##.binaryen##.GlobalGet"getName"[|injectexp|])letset_nameexpname=meth_callglobal##.binaryen##.GlobalGet"setName"[|injectexp;inject(stringname)|]endmoduleGlobal_set=structletmakewasm_modnamevalue=letscope=getwasm_mod"global"inmeth_callscope"set"[|inject(stringname);injectvalue|]letget_nameexp=to_string(meth_callglobal##.binaryen##.GlobalSet"getName"[|injectexp|])letset_nameexpname=meth_callglobal##.binaryen##.GlobalSet"setName"[|injectexp;inject(stringname)|]letget_valueexp=meth_callglobal##.binaryen##.GlobalSet"getValue"[|injectexp|]letset_valueexpvalue=meth_callglobal##.binaryen##.GlobalSet"setValue"[|injectexp;injectvalue|]endmoduleLoad=structletmakewasm_modbyts?(signed=false)offsetaligntypptr=meth_callglobal##.binaryen"_BinaryenLoad"[|injectwasm_mod;injectbyts;injectsigned;injectoffset;injectalign;injecttyp;injectptr;|]letget_ptrexp=meth_callglobal##.binaryen##.Load"getPtr"[|injectexp|]letset_ptrexpptr=meth_callglobal##.binaryen##.Load"setPtr"[|injectexp;injectptr|]endmoduleStore=structletmakewasm_modbytsoffsetalignptrvaluetyp=meth_callglobal##.binaryen"_BinaryenStore"[|injectwasm_mod;injectbyts;injectoffset;injectalign;injectptr;injectvalue;injecttyp;|]letget_ptrexp=meth_callglobal##.binaryen##.Store"getPtr"[|injectexp|]letset_ptrexpptr=meth_callglobal##.binaryen##.Store"setPtr"[|injectexp;injectptr|]letget_valueexp=meth_callglobal##.binaryen##.Store"getValue"[|injectexp|]letset_valueexpvalue=meth_callglobal##.binaryen##.Store"setValue"[|injectexp;injectvalue|]endmoduleConst=structletmakewasm_modlit=letlit_hack=Literal.to_jsoolitinmatchlit_hackwith|Int32value->letscope=getwasm_mod"i32"inmeth_callscope"const"[|injectvalue|]|Int64(low,high)->letscope=getwasm_mod"i64"inmeth_callscope"const"[|injectlow;injecthigh|]|Float32Bitsvalue->letscope=getwasm_mod"f32"inmeth_callscope"const_bits"[|injectvalue|]|Float64Bits(low,high)->letscope=getwasm_mod"f64"inmeth_callscope"const_bits"[|injectlow;injecthigh|]|Float32value->letscope=getwasm_mod"f32"inmeth_callscope"const"[|injectvalue|]|Float64value->letscope=getwasm_mod"f64"inmeth_callscope"const"[|injectvalue|]endmoduleUnary=structletmakewasm_modopp=meth_callglobal##.binaryen"_BinaryenUnary"[|injectwasm_mod;injectop;injectp|]letget_valueexp=meth_callglobal##.binaryen##.Unary"getValue"[|injectexp|]letset_valueexpvalue=meth_callglobal##.binaryen##.Unary"setValue"[|injectexp;injectvalue|]endmoduleBinary=structletmakewasm_modopab=meth_callglobal##.binaryen"_BinaryenBinary"[|injectwasm_mod;injectop;injecta;injectb|]letget_leftexp=meth_callglobal##.binaryen##.Binary"getLeft"[|injectexp|]letset_leftexpvalue=meth_callglobal##.binaryen##.Binary"setLeft"[|injectexp;injectvalue|]letget_rightexp=meth_callglobal##.binaryen##.Binary"getRight"[|injectexp|]letset_rightexpvalue=meth_callglobal##.binaryen##.Binary"setRight"[|injectexp;injectvalue|]endmoduleSelect=structletmakewasm_modcondif_trueif_false=meth_callwasm_mod"select"[|injectcond;injectif_true;injectif_false;injectType.auto|]letget_if_trueexp=meth_callglobal##.binaryen##.Select"getIfTrue"[|injectexp|]letset_if_trueexpvalue=meth_callglobal##.binaryen##.Select"setIfTrue"[|injectexp;injectvalue|]letget_if_falseexp=meth_callglobal##.binaryen##.Select"getIfFalse"[|injectexp|]letset_if_falseexpvalue=meth_callglobal##.binaryen##.Select"setIfFalse"[|injectexp;injectvalue|]letget_conditionexp=meth_callglobal##.binaryen##.Select"getCondition"[|injectexp|]letset_conditionexpvalue=meth_callglobal##.binaryen##.Select"setCondition"[|injectexp;injectvalue|]endmoduleDrop=structletmakewasm_modvalue=meth_callwasm_mod"drop"[|injectvalue|]letget_valueexp=meth_callglobal##.binaryen##.Drop"getValue"[|injectexp|]letset_valueexpvalue=meth_callglobal##.binaryen##.Drop"setValue"[|injectexp;injectvalue|]endmoduleReturn=structletmakewasm_modvalue=meth_callwasm_mod"return"[|injectvalue|]letget_valueexp=meth_callglobal##.binaryen##.Return"getValue"[|injectexp|]letset_valueexpvalue=meth_callglobal##.binaryen##.Return"setValue"[|injectexp;injectvalue|]endmoduleMemory_size=structletmakewasm_mod=letscope=getwasm_mod"memory"inmeth_callscope"size"[||]endmoduleMemory_grow=structletmakewasm_modvalue=letscope=getwasm_mod"memory"inmeth_callscope"grow"[|injectvalue|]letget_deltaexp=meth_callglobal##.binaryen##.MemoryGrow"getDelta"[|injectexp|]letset_deltaexpdelta=meth_callglobal##.binaryen##.MemoryGrow"setDelta"[|injectexp;injectdelta|]endmoduleMemory_copy=structletmakewasm_moddestsourcesize=letscope=getwasm_mod"memory"inmeth_callscope"copy"[|injectdest;injectsource;injectsize|]letget_destexp=meth_callglobal##.binaryen##.MemoryCopy"getDest"[|injectexp|]letset_destexpvalue=meth_callglobal##.binaryen##.MemoryCopy"setDest"[|injectexp;injectvalue|]letget_sourceexp=meth_callglobal##.binaryen##.MemoryCopy"getSource"[|injectexp|]letset_sourceexpvalue=meth_callglobal##.binaryen##.MemoryCopy"setSource"[|injectexp;injectvalue|]letget_sizeexp=meth_callglobal##.binaryen##.MemoryCopy"getSize"[|injectexp|]letset_sizeexpvalue=meth_callglobal##.binaryen##.MemoryCopy"setSize"[|injectexp;injectvalue|]endmoduleMemory_fill=structletmakewasm_moddestvaluesize=letscope=getwasm_mod"memory"inmeth_callscope"fill"[|injectdest;injectvalue;injectsize|]letget_destexp=meth_callglobal##.binaryen##.MemoryFill"getDest"[|injectexp|]letset_destexpvalue=meth_callglobal##.binaryen##.MemoryFill"setDest"[|injectexp;injectvalue|]letget_valueexp=meth_callglobal##.binaryen##.MemoryFill"getValue"[|injectexp|]letset_valueexpvalue=meth_callglobal##.binaryen##.MemoryFill"setValue"[|injectexp;injectvalue|]letget_sizeexp=meth_callglobal##.binaryen##.MemoryFill"getSize"[|injectexp|]letset_sizeexpvalue=meth_callglobal##.binaryen##.MemoryFill"setSize"[|injectexp;injectvalue|]endmoduleTuple_make=structletmakewasm_modoperands=letscope=getwasm_mod"tuple"inmeth_callscope"make"[|inject(array(Array.of_listoperands))|]letget_num_operandsexp=meth_callglobal##.binaryen##.TupleMake"getNumOperands"[|injectexp|]letget_operand_atexpindex=meth_callglobal##.binaryen##.TupleMake"getOperandAt"[|injectexp;injectindex|]letset_operand_atexpindexoperand=meth_callglobal##.binaryen##.TupleMake"setOperandAt"[|injectexp;injectindex;injectoperand|]letappend_operandexpoperand=meth_callglobal##.binaryen##.TupleMake"appendOperand"[|injectexp;injectoperand|]letinsert_operand_atexpindexoperand=meth_callglobal##.binaryen##.TupleMake"insertOperandAt"[|injectexp;injectindex;injectoperand|]letremove_operand_atexpindex=meth_callglobal##.binaryen##.TupleMake"removeOperandAt"[|injectexp;injectindex|]endmoduleTuple_extract=structletmakewasm_modtupleindex=letscope=getwasm_mod"tuple"inmeth_callscope"extract"[|injecttuple;injectindex|]letget_tupleexp=meth_callglobal##.binaryen##.TupleExtract"getTuple"[|injectexp|]letset_tupleexpvalue=meth_callglobal##.binaryen##.TupleExtract"setTuple"[|injectexp;injectvalue|]endmoduleNop=structletmakewasm_mod=meth_callwasm_mod"nop"[||]endmoduleUnreachable=structletmakewasm_mod=meth_callwasm_mod"unreachable"[||]endmodulePop=structletmakewasm_modtyp=meth_callglobal##.binaryen"_BinaryenPop"[|injectwasm_mod;injecttyp|]endmoduleNull=structletmake()=pure_js_expr"null"endmoduleRef=struct(** Module, type *)letnullwasm_modtyp=letscope=getwasm_mod"ref"inmeth_callscope"null"[|injecttyp|](** Module, op, value *)letiswasm_modopvalue=meth_callglobal##.binaryen"_BinaryenRefIs"[|injectwasm_mod;injectop;injectvalue|](** Module, op, value *)letas_wasm_modopvalue=meth_callglobal##.binaryen"_BinaryenRefAs"[|injectwasm_mod;injectop;injectvalue|](** Module, func, type *)letfuncwasm_modfunctyp=letscope=getwasm_mod"ref"inmeth_callscope"func"[|inject(stringfunc);injecttyp|](** Module, left, right *)leteqwasm_modleftright=letscope=getwasm_mod"ref"inmeth_callscope"func"[|injectleft;injectright|]endmoduleTable=struct(** Module, name, index, type *)letgetwasm_modnameindextyp=letscope=Js_of_ocaml.Js.Unsafe.getwasm_mod"table"inmeth_callscope"get"[|inject(stringname);injectindex;injecttyp|](** Module, name, index, value *)letsetwasm_modnameindexvalue=letscope=Js_of_ocaml.Js.Unsafe.getwasm_mod"table"inmeth_callscope"set"[|inject(stringname);injectindex;injectvalue|](** Module, name *)letsizewasm_modname=letscope=Js_of_ocaml.Js.Unsafe.getwasm_mod"table"inmeth_callscope"size"[|inject(stringname)|](** Module, name, value, delta *)letgrowwasm_modnamevaluedelta=letscope=Js_of_ocaml.Js.Unsafe.getwasm_mod"table"inmeth_callscope"grow"[|inject(stringname);injectvalue;injectdelta|]endmoduleTable_get=struct(** Gets the name of the table being accessed by a `Table.get` expression. *)letget_tableexp=to_string(meth_callglobal##.binaryen##.TableGet"getTable"[|injectexp|])(** Gets the name of the table being accessed by a `Table.get` expression. *)letset_tableexpname=meth_callglobal##.binaryen##.TableGet"setTable"[|injectexp;inject(stringname)|](** Gets the index expression of a `Table.get` expression. *)letget_indexexp=meth_callglobal##.binaryen##.TableGet"getIndex"[|injectexp|](** Gets the index expression of a `Table.get` expression. *)letset_indexexpindex=meth_callglobal##.binaryen##.TableGet"setIndex"[|injectexp;injectindex|]endmoduleTable_set=struct(** Gets the name of the table being accessed by a `Table.set` expression. *)letget_tableexp=to_string(meth_callglobal##.binaryen##.TableSet"getTable"[|injectexp|])(** Sets the name of the table being accessed by a `Table.set` expression. *)letset_tableexpname=meth_callglobal##.binaryen##.TableSet"setTable"[|injectexp;inject(stringname)|](** Gets the index expression of a `Table.set` expression. *)letget_indexexp=meth_callglobal##.binaryen##.TableSet"getIndex"[|injectexp|](** Sets the index expression of a `Table.set` expression. *)letset_indexexpindex=meth_callglobal##.binaryen##.TableSet"setIndex"[|injectexp;injectindex|](** Gets the value expression of a `Table.set` expression. *)letget_valueexp=meth_callglobal##.binaryen##.TableSet"getValue"[|injectexp|](** Sets the value expression of a `Table.set` expression. *)letset_valueexpvalue=meth_callglobal##.binaryen##.TableSet"setValue"[|injectexp;injectvalue|]endmoduleTable_size=struct(** Gets the name of the table being accessed by a `Table.size` expression. *)letget_tableexp=to_string(meth_callglobal##.binaryen##.TableSize"getTable"[|injectexp|])(** Sets the name of the table being accessed by a `Table.size` expression. *)letset_tableexpname=meth_callglobal##.binaryen##.TableSize"setTable"[|injectexp;inject(stringname)|]endmoduleTable_grow=struct(** Gets the name of the table being accessed by a `Table.grow` expression. *)letget_tableexp=to_string(meth_callglobal##.binaryen##.TableGrow"getTable"[|injectexp|])(** Gets the name of the table being accessed by a `Table.grow` expression. *)letset_tableexpname=meth_callglobal##.binaryen##.TableGrow"setTable"[|injectexp;inject(stringname)|](** Gets the value expression of a `Table.grow` expression. *)letget_valueexp=meth_callglobal##.binaryen##.TableGrow"getValue"[|injectexp|](** Sets the value expression of a `Table.grow` expression. *)letset_valueexpvalue=meth_callglobal##.binaryen##.TableGrow"setValue"[|injectexp;injectvalue|](** Gets the delta of a `Table.grow` expression. *)letget_deltaexp=meth_callglobal##.binaryen##.TableGrow"getDelta"[|injectexp|](** Sets the delta of a `Table.grow` expression. *)letset_deltaexpdelta=meth_callglobal##.binaryen##.TableGrow"setDelta"[|injectexp;injectdelta|]end