@harmoniclabs/pebble 0.1.0-dev0 → 0.1.0-dev2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/IR/IRHash.d.ts +0 -8
- package/dist/IR/IRHash.js +0 -78
- package/dist/IR/IRNodeKind.d.ts +0 -17
- package/dist/IR/IRNodeKind.js +0 -19
- package/dist/IR/IRNodes/BaseIRMetadata.d.ts +0 -3
- package/dist/IR/IRNodes/BaseIRMetadata.js +0 -1
- package/dist/IR/IRNodes/IRApp.d.ts +0 -36
- package/dist/IR/IRNodes/IRApp.js +0 -91
- package/dist/IR/IRNodes/IRCase.d.ts +0 -32
- package/dist/IR/IRNodes/IRCase.js +0 -91
- package/dist/IR/IRNodes/IRConst.d.ts +0 -49
- package/dist/IR/IRNodes/IRConst.js +0 -273
- package/dist/IR/IRNodes/IRConstr.d.ts +0 -30
- package/dist/IR/IRNodes/IRConstr.js +0 -87
- package/dist/IR/IRNodes/IRDelayed.d.ts +0 -31
- package/dist/IR/IRNodes/IRDelayed.js +0 -68
- package/dist/IR/IRNodes/IRError.d.ts +0 -32
- package/dist/IR/IRNodes/IRError.js +0 -44
- package/dist/IR/IRNodes/IRForced.d.ts +0 -31
- package/dist/IR/IRNodes/IRForced.js +0 -69
- package/dist/IR/IRNodes/IRFunc.d.ts +0 -33
- package/dist/IR/IRNodes/IRFunc.js +0 -91
- package/dist/IR/IRNodes/IRHoisted.d.ts +0 -55
- package/dist/IR/IRNodes/IRHoisted.js +0 -212
- package/dist/IR/IRNodes/IRLetted.d.ts +0 -108
- package/dist/IR/IRNodes/IRLetted.js +0 -444
- package/dist/IR/IRNodes/IRNative/IRNativeTag.d.ts +0 -138
- package/dist/IR/IRNodes/IRNative/IRNativeTag.js +0 -204
- package/dist/IR/IRNodes/IRNative/index.d.ts +0 -165
- package/dist/IR/IRNodes/IRNative/index.js +0 -240
- package/dist/IR/IRNodes/IRNative/isForcedNative.d.ts +0 -3
- package/dist/IR/IRNodes/IRNative/isForcedNative.js +0 -18
- package/dist/IR/IRNodes/IRRecursive.d.ts +0 -29
- package/dist/IR/IRNodes/IRRecursive.js +0 -90
- package/dist/IR/IRNodes/IRSelfCall.d.ts +0 -46
- package/dist/IR/IRNodes/IRSelfCall.js +0 -127
- package/dist/IR/IRNodes/IRVar.d.ts +0 -41
- package/dist/IR/IRNodes/IRVar.js +0 -93
- package/dist/IR/IRNodes/index.d.ts +0 -12
- package/dist/IR/IRNodes/index.js +0 -12
- package/dist/IR/IRNodes/utils/dependsByDbns.d.ts +0 -5
- package/dist/IR/IRNodes/utils/dependsByDbns.js +0 -29
- package/dist/IR/IRNodes/utils/isClosedAtDbn.d.ts +0 -2
- package/dist/IR/IRNodes/utils/isClosedAtDbn.js +0 -22
- package/dist/IR/IRNodes/utils/makeArrayLikeProxy.d.ts +0 -1
- package/dist/IR/IRNodes/utils/makeArrayLikeProxy.js +0 -34
- package/dist/IR/IRNodes/utils/mapArrayLike.d.ts +0 -1
- package/dist/IR/IRNodes/utils/mapArrayLike.js +0 -8
- package/dist/IR/IRTerm.d.ts +0 -15
- package/dist/IR/IRTerm.js +0 -1
- package/dist/IR/index.d.ts +0 -5
- package/dist/IR/index.js +0 -5
- package/dist/IR/interfaces/IHash.d.ts +0 -6
- package/dist/IR/interfaces/IHash.js +0 -1
- package/dist/IR/interfaces/IIRParent.d.ts +0 -4
- package/dist/IR/interfaces/IIRParent.js +0 -1
- package/dist/IR/interfaces/IRMetadata.d.ts +0 -3
- package/dist/IR/interfaces/IRMetadata.js +0 -2
- package/dist/IR/interfaces/ToIR.d.ts +0 -5
- package/dist/IR/interfaces/ToIR.js +0 -1
- package/dist/IR/interfaces/index.d.ts +0 -4
- package/dist/IR/interfaces/index.js +0 -4
- package/dist/IR/toUPLC/CompilerOptions.d.ts +0 -80
- package/dist/IR/toUPLC/CompilerOptions.js +0 -98
- package/dist/IR/toUPLC/_internal/_addDepth.d.ts +0 -2
- package/dist/IR/toUPLC/_internal/_addDepth.js +0 -58
- package/dist/IR/toUPLC/_internal/_irToUplc.d.ts +0 -9
- package/dist/IR/toUPLC/_internal/_irToUplc.js +0 -156
- package/dist/IR/toUPLC/_internal/_makeAllNegativeNativesHoisted.d.ts +0 -2
- package/dist/IR/toUPLC/_internal/_makeAllNegativeNativesHoisted.js +0 -12
- package/dist/IR/toUPLC/_internal/_modifyChildFromTo.d.ts +0 -10
- package/dist/IR/toUPLC/_internal/_modifyChildFromTo.js +0 -141
- package/dist/IR/toUPLC/_internal/depth.d.ts +0 -5
- package/dist/IR/toUPLC/_internal/depth.js +0 -8
- package/dist/IR/toUPLC/_internal/findAll.d.ts +0 -3
- package/dist/IR/toUPLC/_internal/findAll.js +0 -99
- package/dist/IR/toUPLC/_internal/getDebruijnInTerm.d.ts +0 -2
- package/dist/IR/toUPLC/_internal/getDebruijnInTerm.js +0 -51
- package/dist/IR/toUPLC/_internal/getDiffDbn.d.ts +0 -2
- package/dist/IR/toUPLC/_internal/getDiffDbn.js +0 -55
- package/dist/IR/toUPLC/_internal/includesLettedTerms.d.ts +0 -2
- package/dist/IR/toUPLC/_internal/includesLettedTerms.js +0 -50
- package/dist/IR/toUPLC/_internal/includesNode.d.ts +0 -2
- package/dist/IR/toUPLC/_internal/includesNode.js +0 -54
- package/dist/IR/toUPLC/_internal/iterTree.d.ts +0 -2
- package/dist/IR/toUPLC/_internal/iterTree.js +0 -93
- package/dist/IR/toUPLC/_internal/lowestCommonAncestor.d.ts +0 -3
- package/dist/IR/toUPLC/_internal/lowestCommonAncestor.js +0 -41
- package/dist/IR/toUPLC/compileIRToUPLC.d.ts +0 -4
- package/dist/IR/toUPLC/compileIRToUPLC.js +0 -118
- package/dist/IR/toUPLC/index.d.ts +0 -1
- package/dist/IR/toUPLC/index.js +0 -1
- package/dist/IR/toUPLC/subRoutines/handleHoistedAndReturnRoot/index.d.ts +0 -2
- package/dist/IR/toUPLC/subRoutines/handleHoistedAndReturnRoot/index.js +0 -161
- package/dist/IR/toUPLC/subRoutines/handleLetted/findHighestRecursiveParent.d.ts +0 -5
- package/dist/IR/toUPLC/subRoutines/handleLetted/findHighestRecursiveParent.js +0 -14
- package/dist/IR/toUPLC/subRoutines/handleLetted/groupByScope.d.ts +0 -20
- package/dist/IR/toUPLC/subRoutines/handleLetted/groupByScope.js +0 -107
- package/dist/IR/toUPLC/subRoutines/handleLetted/incrementUnboundDbns.d.ts +0 -9
- package/dist/IR/toUPLC/subRoutines/handleLetted/incrementUnboundDbns.js +0 -73
- package/dist/IR/toUPLC/subRoutines/handleLetted/index.d.ts +0 -2
- package/dist/IR/toUPLC/subRoutines/handleLetted/index.js +0 -304
- package/dist/IR/toUPLC/subRoutines/handleRecursiveTerms.d.ts +0 -3
- package/dist/IR/toUPLC/subRoutines/handleRecursiveTerms.js +0 -32
- package/dist/IR/toUPLC/subRoutines/hoistForcedNatives.d.ts +0 -2
- package/dist/IR/toUPLC/subRoutines/hoistForcedNatives.js +0 -58
- package/dist/IR/toUPLC/subRoutines/inlineSingleUseApplications.d.ts +0 -1
- package/dist/IR/toUPLC/subRoutines/inlineSingleUseApplications.js +0 -12
- package/dist/IR/toUPLC/subRoutines/markRecursiveHoistsAsForced.d.ts +0 -2
- package/dist/IR/toUPLC/subRoutines/markRecursiveHoistsAsForced.js +0 -82
- package/dist/IR/toUPLC/subRoutines/performUplcOptimizationsAndReturnRoot/expandFuncsAndReturnRoot.d.ts +0 -4
- package/dist/IR/toUPLC/subRoutines/performUplcOptimizationsAndReturnRoot/expandFuncsAndReturnRoot.js +0 -68
- package/dist/IR/toUPLC/subRoutines/performUplcOptimizationsAndReturnRoot/index.d.ts +0 -5
- package/dist/IR/toUPLC/subRoutines/performUplcOptimizationsAndReturnRoot/index.js +0 -227
- package/dist/IR/toUPLC/subRoutines/replaceClosedLettedWithHoisted.d.ts +0 -2
- package/dist/IR/toUPLC/subRoutines/replaceClosedLettedWithHoisted.js +0 -13
- package/dist/IR/toUPLC/subRoutines/replaceForcedNativesWithHoisted.d.ts +0 -2
- package/dist/IR/toUPLC/subRoutines/replaceForcedNativesWithHoisted.js +0 -11
- package/dist/IR/toUPLC/subRoutines/replaceHoistedWithLetted.d.ts +0 -2
- package/dist/IR/toUPLC/subRoutines/replaceHoistedWithLetted.js +0 -16
- package/dist/IR/toUPLC/subRoutines/replaceNatives/index.d.ts +0 -2
- package/dist/IR/toUPLC/subRoutines/replaceNatives/index.js +0 -16
- package/dist/IR/toUPLC/subRoutines/replaceNatives/nativeToIR.d.ts +0 -3
- package/dist/IR/toUPLC/subRoutines/replaceNatives/nativeToIR.js +0 -520
- package/dist/IR/toUPLC/subRoutines/sanifyTree.d.ts +0 -5
- package/dist/IR/toUPLC/subRoutines/sanifyTree.js +0 -84
- package/dist/IR/tree_utils/_ir_apps.d.ts +0 -3
- package/dist/IR/tree_utils/_ir_apps.js +0 -8
- package/dist/IR/tree_utils/_ir_lazyChooseList.d.ts +0 -3
- package/dist/IR/tree_utils/_ir_lazyChooseList.js +0 -5
- package/dist/IR/tree_utils/_ir_lazyIfThenElse.d.ts +0 -3
- package/dist/IR/tree_utils/_ir_lazyIfThenElse.js +0 -5
- package/dist/IR/tree_utils/_ir_let.d.ts +0 -3
- package/dist/IR/tree_utils/_ir_let.js +0 -4
- package/dist/IR/tree_utils/getChildren.d.ts +0 -2
- package/dist/IR/tree_utils/getChildren.js +0 -33
- package/dist/IR/tree_utils/getRoot.d.ts +0 -2
- package/dist/IR/tree_utils/getRoot.js +0 -6
- package/dist/IR/utils/MutArrayLike.d.ts +0 -5
- package/dist/IR/utils/MutArrayLike.js +0 -1
- package/dist/IR/utils/concatUint8Arr.d.ts +0 -1
- package/dist/IR/utils/concatUint8Arr.js +0 -11
- package/dist/IR/utils/equalIRTerm.d.ts +0 -12
- package/dist/IR/utils/equalIRTerm.js +0 -19
- package/dist/IR/utils/index.d.ts +0 -3
- package/dist/IR/utils/index.js +0 -3
- package/dist/IR/utils/isClosedIRTerm.d.ts +0 -2
- package/dist/IR/utils/isClosedIRTerm.js +0 -58
- package/dist/IR/utils/isIRParentTerm.d.ts +0 -12
- package/dist/IR/utils/isIRParentTerm.js +0 -26
- package/dist/IR/utils/isIRTerm.d.ts +0 -2
- package/dist/IR/utils/isIRTerm.js +0 -30
- package/dist/IR/utils/positiveIntAsBytes.d.ts +0 -5
- package/dist/IR/utils/positiveIntAsBytes.js +0 -27
- package/dist/IR/utils/showIR.d.ts +0 -43
- package/dist/IR/utils/showIR.js +0 -372
- package/dist/ast/PebbleAst.d.ts +0 -8
- package/dist/ast/PebbleAst.js +0 -15
- package/dist/ast/Source/Source.d.ts +0 -47
- package/dist/ast/Source/Source.js +0 -89
- package/dist/ast/Source/SourceRange.d.ts +0 -16
- package/dist/ast/Source/SourceRange.js +0 -49
- package/dist/ast/nodes/HasSourceRange.d.ts +0 -5
- package/dist/ast/nodes/HasSourceRange.js +0 -6
- package/dist/ast/nodes/common/Identifier.d.ts +0 -13
- package/dist/ast/nodes/common/Identifier.js +0 -20
- package/dist/ast/nodes/expr/CaseExpr.d.ts +0 -22
- package/dist/ast/nodes/expr/CaseExpr.js +0 -30
- package/dist/ast/nodes/expr/ElemAccessExpr.d.ts +0 -12
- package/dist/ast/nodes/expr/ElemAccessExpr.js +0 -13
- package/dist/ast/nodes/expr/IsExpr.d.ts +0 -1
- package/dist/ast/nodes/expr/IsExpr.js +0 -14
- package/dist/ast/nodes/expr/ParentesizedExpr.d.ts +0 -8
- package/dist/ast/nodes/expr/ParentesizedExpr.js +0 -8
- package/dist/ast/nodes/expr/PebbleExpr.d.ts +0 -18
- package/dist/ast/nodes/expr/PebbleExpr.js +0 -31
- package/dist/ast/nodes/expr/PropAccessExpr.d.ts +0 -28
- package/dist/ast/nodes/expr/PropAccessExpr.js +0 -46
- package/dist/ast/nodes/expr/TernaryExpr.d.ts +0 -10
- package/dist/ast/nodes/expr/TernaryExpr.js +0 -12
- package/dist/ast/nodes/expr/TypeConversionExpr.d.ts +0 -10
- package/dist/ast/nodes/expr/TypeConversionExpr.js +0 -11
- package/dist/ast/nodes/expr/binary/BinaryExpr.d.ts +0 -133
- package/dist/ast/nodes/expr/binary/BinaryExpr.js +0 -253
- package/dist/ast/nodes/expr/functions/ArrowKind.d.ts +0 -9
- package/dist/ast/nodes/expr/functions/ArrowKind.js +0 -11
- package/dist/ast/nodes/expr/functions/CallExpr.d.ts +0 -17
- package/dist/ast/nodes/expr/functions/CallExpr.js +0 -16
- package/dist/ast/nodes/expr/functions/FuncExpr.d.ts +0 -21
- package/dist/ast/nodes/expr/functions/FuncExpr.js +0 -21
- package/dist/ast/nodes/expr/litteral/LitArrExpr.d.ts +0 -8
- package/dist/ast/nodes/expr/litteral/LitArrExpr.js +0 -8
- package/dist/ast/nodes/expr/litteral/LitFalseExpr.d.ts +0 -6
- package/dist/ast/nodes/expr/litteral/LitFalseExpr.js +0 -6
- package/dist/ast/nodes/expr/litteral/LitHexBytesExpr.d.ts +0 -7
- package/dist/ast/nodes/expr/litteral/LitHexBytesExpr.js +0 -8
- package/dist/ast/nodes/expr/litteral/LitIntExpr.d.ts +0 -7
- package/dist/ast/nodes/expr/litteral/LitIntExpr.js +0 -8
- package/dist/ast/nodes/expr/litteral/LitNamedObjExpr.d.ts +0 -12
- package/dist/ast/nodes/expr/litteral/LitNamedObjExpr.js +0 -12
- package/dist/ast/nodes/expr/litteral/LitObjExpr.d.ts +0 -14
- package/dist/ast/nodes/expr/litteral/LitObjExpr.js +0 -10
- package/dist/ast/nodes/expr/litteral/LitStrExpr.d.ts +0 -7
- package/dist/ast/nodes/expr/litteral/LitStrExpr.js +0 -8
- package/dist/ast/nodes/expr/litteral/LitThisExpr.d.ts +0 -6
- package/dist/ast/nodes/expr/litteral/LitThisExpr.js +0 -6
- package/dist/ast/nodes/expr/litteral/LitTrueExpr.d.ts +0 -6
- package/dist/ast/nodes/expr/litteral/LitTrueExpr.js +0 -6
- package/dist/ast/nodes/expr/litteral/LitUndefExpr.d.ts +0 -6
- package/dist/ast/nodes/expr/litteral/LitUndefExpr.js +0 -6
- package/dist/ast/nodes/expr/litteral/LitVoidExpr.d.ts +0 -6
- package/dist/ast/nodes/expr/litteral/LitVoidExpr.js +0 -6
- package/dist/ast/nodes/expr/litteral/LitteralExpr.d.ts +0 -13
- package/dist/ast/nodes/expr/litteral/LitteralExpr.js +0 -24
- package/dist/ast/nodes/expr/unary/IUnaryExpression.d.ts +0 -4
- package/dist/ast/nodes/expr/unary/IUnaryExpression.js +0 -1
- package/dist/ast/nodes/expr/unary/NonNullExpr.d.ts +0 -8
- package/dist/ast/nodes/expr/unary/NonNullExpr.js +0 -8
- package/dist/ast/nodes/expr/unary/UnaryExclamation.d.ts +0 -9
- package/dist/ast/nodes/expr/unary/UnaryExclamation.js +0 -8
- package/dist/ast/nodes/expr/unary/UnaryMinus.d.ts +0 -9
- package/dist/ast/nodes/expr/unary/UnaryMinus.js +0 -8
- package/dist/ast/nodes/expr/unary/UnaryPlus.d.ts +0 -9
- package/dist/ast/nodes/expr/unary/UnaryPlus.js +0 -8
- package/dist/ast/nodes/expr/unary/UnaryPrefixExpr.d.ts +0 -14
- package/dist/ast/nodes/expr/unary/UnaryPrefixExpr.js +0 -27
- package/dist/ast/nodes/expr/unary/UnaryTilde.d.ts +0 -9
- package/dist/ast/nodes/expr/unary/UnaryTilde.js +0 -8
- package/dist/ast/nodes/statements/AssertStmt.d.ts +0 -15
- package/dist/ast/nodes/statements/AssertStmt.js +0 -14
- package/dist/ast/nodes/statements/AssignmentStmt.d.ts +0 -105
- package/dist/ast/nodes/statements/AssignmentStmt.js +0 -211
- package/dist/ast/nodes/statements/BlockStmt.d.ts +0 -8
- package/dist/ast/nodes/statements/BlockStmt.js +0 -8
- package/dist/ast/nodes/statements/BreakStmt.d.ts +0 -6
- package/dist/ast/nodes/statements/BreakStmt.js +0 -6
- package/dist/ast/nodes/statements/ContinueStmt.d.ts +0 -6
- package/dist/ast/nodes/statements/ContinueStmt.js +0 -6
- package/dist/ast/nodes/statements/DecrStmt.d.ts +0 -11
- package/dist/ast/nodes/statements/DecrStmt.js +0 -11
- package/dist/ast/nodes/statements/DoWhileStmt.d.ts +0 -10
- package/dist/ast/nodes/statements/DoWhileStmt.js +0 -10
- package/dist/ast/nodes/statements/EmptyStmt.d.ts +0 -6
- package/dist/ast/nodes/statements/EmptyStmt.js +0 -6
- package/dist/ast/nodes/statements/ExportImportStmt.d.ts +0 -15
- package/dist/ast/nodes/statements/ExportImportStmt.js +0 -15
- package/dist/ast/nodes/statements/ExportStarStmt.d.ts +0 -8
- package/dist/ast/nodes/statements/ExportStarStmt.js +0 -8
- package/dist/ast/nodes/statements/ExportStmt.d.ts +0 -13
- package/dist/ast/nodes/statements/ExportStmt.js +0 -13
- package/dist/ast/nodes/statements/ExprStmt.d.ts +0 -8
- package/dist/ast/nodes/statements/ExprStmt.js +0 -18
- package/dist/ast/nodes/statements/FailStmt.d.ts +0 -11
- package/dist/ast/nodes/statements/FailStmt.js +0 -10
- package/dist/ast/nodes/statements/ForOfStmt.d.ts +0 -16
- package/dist/ast/nodes/statements/ForOfStmt.js +0 -15
- package/dist/ast/nodes/statements/ForStmt.d.ts +0 -19
- package/dist/ast/nodes/statements/ForStmt.js +0 -19
- package/dist/ast/nodes/statements/IfStmt.d.ts +0 -11
- package/dist/ast/nodes/statements/IfStmt.js +0 -12
- package/dist/ast/nodes/statements/ImportStarStmt.d.ts +0 -15
- package/dist/ast/nodes/statements/ImportStarStmt.js +0 -15
- package/dist/ast/nodes/statements/ImportStmt.d.ts +0 -21
- package/dist/ast/nodes/statements/ImportStmt.js +0 -25
- package/dist/ast/nodes/statements/IncrStmt.d.ts +0 -8
- package/dist/ast/nodes/statements/IncrStmt.js +0 -8
- package/dist/ast/nodes/statements/MatchStmt.d.ts +0 -17
- package/dist/ast/nodes/statements/MatchStmt.js +0 -20
- package/dist/ast/nodes/statements/PebbleStmt.d.ts +0 -29
- package/dist/ast/nodes/statements/PebbleStmt.js +0 -62
- package/dist/ast/nodes/statements/ReturnStmt.d.ts +0 -8
- package/dist/ast/nodes/statements/ReturnStmt.js +0 -8
- package/dist/ast/nodes/statements/TestStmt.d.ts +0 -10
- package/dist/ast/nodes/statements/TestStmt.js +0 -10
- package/dist/ast/nodes/statements/TypeImplementsStmt.d.ts +0 -21
- package/dist/ast/nodes/statements/TypeImplementsStmt.js +0 -26
- package/dist/ast/nodes/statements/UsingStmt.d.ts +0 -16
- package/dist/ast/nodes/statements/UsingStmt.js +0 -20
- package/dist/ast/nodes/statements/VarStmt.d.ts +0 -10
- package/dist/ast/nodes/statements/VarStmt.js +0 -11
- package/dist/ast/nodes/statements/WhileStmt.d.ts +0 -10
- package/dist/ast/nodes/statements/WhileStmt.js +0 -10
- package/dist/ast/nodes/statements/declarations/EnumDecl.d.ts +0 -18
- package/dist/ast/nodes/statements/declarations/EnumDecl.js +0 -22
- package/dist/ast/nodes/statements/declarations/FuncDecl.d.ts +0 -8
- package/dist/ast/nodes/statements/declarations/FuncDecl.js +0 -9
- package/dist/ast/nodes/statements/declarations/InterfaceDecl.d.ts +0 -19
- package/dist/ast/nodes/statements/declarations/InterfaceDecl.js +0 -26
- package/dist/ast/nodes/statements/declarations/PebbleTypeDecl.d.ts +0 -5
- package/dist/ast/nodes/statements/declarations/PebbleTypeDecl.js +0 -8
- package/dist/ast/nodes/statements/declarations/StructDecl.d.ts +0 -25
- package/dist/ast/nodes/statements/declarations/StructDecl.js +0 -36
- package/dist/ast/nodes/statements/declarations/TypeAliasDecl.d.ts +0 -11
- package/dist/ast/nodes/statements/declarations/TypeAliasDecl.js +0 -12
- package/dist/ast/nodes/statements/declarations/VarDecl/ArrayLikeDeconstr.d.ts +0 -19
- package/dist/ast/nodes/statements/declarations/VarDecl/ArrayLikeDeconstr.js +0 -19
- package/dist/ast/nodes/statements/declarations/VarDecl/HasInit.d.ts +0 -5
- package/dist/ast/nodes/statements/declarations/VarDecl/HasInit.js +0 -7
- package/dist/ast/nodes/statements/declarations/VarDecl/NamedDeconstructVarDecl.d.ts +0 -24
- package/dist/ast/nodes/statements/declarations/VarDecl/NamedDeconstructVarDecl.js +0 -30
- package/dist/ast/nodes/statements/declarations/VarDecl/SimpleVarDecl.d.ts +0 -17
- package/dist/ast/nodes/statements/declarations/VarDecl/SimpleVarDecl.js +0 -21
- package/dist/ast/nodes/statements/declarations/VarDecl/SingleDeconstructVarDecl.d.ts +0 -24
- package/dist/ast/nodes/statements/declarations/VarDecl/SingleDeconstructVarDecl.js +0 -20
- package/dist/ast/nodes/statements/declarations/VarDecl/VarDecl.d.ts +0 -8
- package/dist/ast/nodes/statements/declarations/VarDecl/VarDecl.js +0 -13
- package/dist/ast/nodes/types/AstNamedTypeExpr.d.ts +0 -14
- package/dist/ast/nodes/types/AstNamedTypeExpr.js +0 -14
- package/dist/ast/nodes/types/AstNativeTypeExpr.d.ts +0 -52
- package/dist/ast/nodes/types/AstNativeTypeExpr.js +0 -82
- package/dist/ast/nodes/types/AstTypeExpr.d.ts +0 -4
- package/dist/ast/nodes/types/AstTypeExpr.js +0 -7
- package/dist/common.d.ts +0 -194
- package/dist/common.js +0 -224
- package/dist/compiler/AstCompiler/AstCompilationCtx.d.ts +0 -35
- package/dist/compiler/AstCompiler/AstCompilationCtx.js +0 -43
- package/dist/compiler/AstCompiler/AstCompiler.d.ts +0 -73
- package/dist/compiler/AstCompiler/AstCompiler.js +0 -532
- package/dist/compiler/AstCompiler/compileAst.d.ts +0 -0
- package/dist/compiler/AstCompiler/compileAst.js +0 -0
- package/dist/compiler/AstCompiler/index.d.ts +0 -1
- package/dist/compiler/AstCompiler/index.js +0 -1
- package/dist/compiler/AstCompiler/internal/exprs/_compileBinaryExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/_compileBinaryExpr.js +0 -66
- package/dist/compiler/AstCompiler/internal/exprs/_compileCallExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/_compileCallExpr.js +0 -36
- package/dist/compiler/AstCompiler/internal/exprs/_compileCaseExpr.d.ts +0 -6
- package/dist/compiler/AstCompiler/internal/exprs/_compileCaseExpr.js +0 -47
- package/dist/compiler/AstCompiler/internal/exprs/_compileElemAccessExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/_compileElemAccessExpr.js +0 -23
- package/dist/compiler/AstCompiler/internal/exprs/_compileExpr.d.ts +0 -22
- package/dist/compiler/AstCompiler/internal/exprs/_compileExpr.js +0 -77
- package/dist/compiler/AstCompiler/internal/exprs/_compileFuncExpr.d.ts +0 -26
- package/dist/compiler/AstCompiler/internal/exprs/_compileFuncExpr.js +0 -163
- package/dist/compiler/AstCompiler/internal/exprs/_compileIsExpr.d.ts +0 -1
- package/dist/compiler/AstCompiler/internal/exprs/_compileIsExpr.js +0 -43
- package/dist/compiler/AstCompiler/internal/exprs/_compileLitteralExpr.d.ts +0 -19
- package/dist/compiler/AstCompiler/internal/exprs/_compileLitteralExpr.js +0 -202
- package/dist/compiler/AstCompiler/internal/exprs/_compileNonNullExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/_compileNonNullExpr.js +0 -43
- package/dist/compiler/AstCompiler/internal/exprs/_compilePropAccessExpr.d.ts +0 -9
- package/dist/compiler/AstCompiler/internal/exprs/_compilePropAccessExpr.js +0 -102
- package/dist/compiler/AstCompiler/internal/exprs/_compileTernaryExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/_compileTernaryExpr.js +0 -22
- package/dist/compiler/AstCompiler/internal/exprs/_compileTypeConversionExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/_compileTypeConversionExpr.js +0 -25
- package/dist/compiler/AstCompiler/internal/exprs/_compileUnaryPrefixExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/_compileUnaryPrefixExpr.js +0 -54
- package/dist/compiler/AstCompiler/internal/exprs/_compileVarAccessExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/_compileVarAccessExpr.js +0 -9
- package/dist/compiler/AstCompiler/internal/exprs/_hasDuplicateTypeParams.d.ts +0 -3
- package/dist/compiler/AstCompiler/internal/exprs/_hasDuplicateTypeParams.js +0 -13
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileAddExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileAddExpr.js +0 -20
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileBitwiseAndExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileBitwiseAndExpr.js +0 -20
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileBitwiseOrExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileBitwiseOrExpr.js +0 -20
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileBitwiseXorExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileBitwiseXorExpr.js +0 -20
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileDivExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileDivExpr.js +0 -20
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileEqualExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileEqualExpr.js +0 -18
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileExponentiationExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileExponentiationExpr.js +0 -20
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileGreaterThanEqualExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileGreaterThanEqualExpr.js +0 -27
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileGreaterThanExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileGreaterThanExpr.js +0 -26
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileLessThanEqualExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileLessThanEqualExpr.js +0 -25
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileLessThanExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileLessThanExpr.js +0 -26
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileLogicalAndExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileLogicalAndExpr.js +0 -22
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileLogicalOrExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileLogicalOrExpr.js +0 -22
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileModuloExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileModuloExpr.js +0 -20
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileMultExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileMultExpr.js +0 -20
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileNotEqualExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileNotEqualExpr.js +0 -18
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileOptionalDefaultExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileOptionalDefaultExpr.js +0 -60
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileShiftLeftExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileShiftLeftExpr.js +0 -21
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileShiftRightExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileShiftRightExpr.js +0 -21
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileSubExpr.d.ts +0 -5
- package/dist/compiler/AstCompiler/internal/exprs/binary/_compileSubExpr.js +0 -20
- package/dist/compiler/AstCompiler/internal/statements/_compileAssertStmt.d.ts +0 -4
- package/dist/compiler/AstCompiler/internal/statements/_compileAssertStmt.js +0 -30
- package/dist/compiler/AstCompiler/internal/statements/_compileAssignmentStmt.d.ts +0 -8
- package/dist/compiler/AstCompiler/internal/statements/_compileAssignmentStmt.js +0 -154
- package/dist/compiler/AstCompiler/internal/statements/_compileBlockStmt.d.ts +0 -4
- package/dist/compiler/AstCompiler/internal/statements/_compileBlockStmt.js +0 -14
- package/dist/compiler/AstCompiler/internal/statements/_compileBreakStmt.d.ts +0 -4
- package/dist/compiler/AstCompiler/internal/statements/_compileBreakStmt.js +0 -7
- package/dist/compiler/AstCompiler/internal/statements/_compileContinueStmt.d.ts +0 -4
- package/dist/compiler/AstCompiler/internal/statements/_compileContinueStmt.js +0 -7
- package/dist/compiler/AstCompiler/internal/statements/_compileExprStmt.d.ts +0 -1
- package/dist/compiler/AstCompiler/internal/statements/_compileExprStmt.js +0 -12
- package/dist/compiler/AstCompiler/internal/statements/_compileFailStmt.d.ts +0 -4
- package/dist/compiler/AstCompiler/internal/statements/_compileFailStmt.js +0 -18
- package/dist/compiler/AstCompiler/internal/statements/_compileForOfStmt.d.ts +0 -4
- package/dist/compiler/AstCompiler/internal/statements/_compileForOfStmt.js +0 -30
- package/dist/compiler/AstCompiler/internal/statements/_compileForStmt.d.ts +0 -7
- package/dist/compiler/AstCompiler/internal/statements/_compileForStmt.js +0 -46
- package/dist/compiler/AstCompiler/internal/statements/_compileIfStmt.d.ts +0 -4
- package/dist/compiler/AstCompiler/internal/statements/_compileIfStmt.js +0 -27
- package/dist/compiler/AstCompiler/internal/statements/_compileMatchStmt.d.ts +0 -6
- package/dist/compiler/AstCompiler/internal/statements/_compileMatchStmt.js +0 -182
- package/dist/compiler/AstCompiler/internal/statements/_compileReturnStmt.d.ts +0 -4
- package/dist/compiler/AstCompiler/internal/statements/_compileReturnStmt.js +0 -17
- package/dist/compiler/AstCompiler/internal/statements/_compileStatement.d.ts +0 -11
- package/dist/compiler/AstCompiler/internal/statements/_compileStatement.js +0 -73
- package/dist/compiler/AstCompiler/internal/statements/_compileTestStmt.d.ts +0 -1
- package/dist/compiler/AstCompiler/internal/statements/_compileTestStmt.js +0 -32
- package/dist/compiler/AstCompiler/internal/statements/_compileUsingStmt.d.ts +0 -11
- package/dist/compiler/AstCompiler/internal/statements/_compileUsingStmt.js +0 -41
- package/dist/compiler/AstCompiler/internal/statements/_compileVarStmt.d.ts +0 -34
- package/dist/compiler/AstCompiler/internal/statements/_compileVarStmt.js +0 -207
- package/dist/compiler/AstCompiler/internal/statements/_compileWhileStmt.d.ts +0 -4
- package/dist/compiler/AstCompiler/internal/statements/_compileWhileStmt.js +0 -19
- package/dist/compiler/AstCompiler/internal/types/_compileDataEncodedConcreteType.d.ts +0 -4
- package/dist/compiler/AstCompiler/internal/types/_compileDataEncodedConcreteType.js +0 -61
- package/dist/compiler/AstCompiler/internal/types/_compileSopEncodedConcreteType.d.ts +0 -4
- package/dist/compiler/AstCompiler/internal/types/_compileSopEncodedConcreteType.js +0 -59
- package/dist/compiler/AstCompiler/scope/AstScope.d.ts +0 -102
- package/dist/compiler/AstCompiler/scope/AstScope.js +0 -195
- package/dist/compiler/AstCompiler/utils/deps/ResolveStackNode.d.ts +0 -14
- package/dist/compiler/AstCompiler/utils/deps/ResolveStackNode.js +0 -36
- package/dist/compiler/AstCompiler/utils/getPropAccessReturnType.d.ts +0 -4
- package/dist/compiler/AstCompiler/utils/getPropAccessReturnType.js +0 -121
- package/dist/compiler/AstCompiler/utils/getTirFuncSigTree/TirFuncSigTree.d.ts +0 -39
- package/dist/compiler/AstCompiler/utils/getTirFuncSigTree/TirFuncSigTree.js +0 -129
- package/dist/compiler/AstCompiler/utils/getTirFuncSigTree/getTirFuncSigTree.d.ts +0 -4
- package/dist/compiler/AstCompiler/utils/getTirFuncSigTree/getTirFuncSigTree.js +0 -49
- package/dist/compiler/AstCompiler/utils/wrapManyStatementsOrReturnSame.d.ts +0 -3
- package/dist/compiler/AstCompiler/utils/wrapManyStatementsOrReturnSame.js +0 -12
- package/dist/compiler/Compiler.d.ts +0 -10
- package/dist/compiler/Compiler.js +0 -39
- package/dist/compiler/TirCompiler/TirCompilerCtx.d.ts +0 -7
- package/dist/compiler/TirCompiler/TirCompilerCtx.js +0 -8
- package/dist/compiler/TirCompiler/compileTirProgram.d.ts +0 -9
- package/dist/compiler/TirCompiler/compileTirProgram.js +0 -18
- package/dist/compiler/TirCompiler/expressify/ExpressifyCtx.d.ts +0 -72
- package/dist/compiler/TirCompiler/expressify/ExpressifyCtx.js +0 -282
- package/dist/compiler/TirCompiler/expressify/determineReassignedVariablesAndReturn.d.ts +0 -27
- package/dist/compiler/TirCompiler/expressify/determineReassignedVariablesAndReturn.js +0 -248
- package/dist/compiler/TirCompiler/expressify/expressify.d.ts +0 -15
- package/dist/compiler/TirCompiler/expressify/expressify.js +0 -403
- package/dist/compiler/TirCompiler/expressify/expressifyForStmt.d.ts +0 -8
- package/dist/compiler/TirCompiler/expressify/expressifyForStmt.js +0 -115
- package/dist/compiler/TirCompiler/expressify/expressifyIfBranch.d.ts +0 -6
- package/dist/compiler/TirCompiler/expressify/expressifyIfBranch.js +0 -105
- package/dist/compiler/TirCompiler/expressify/expressifyTerminatingIfStmt.d.ts +0 -5
- package/dist/compiler/TirCompiler/expressify/expressifyTerminatingIfStmt.js +0 -15
- package/dist/compiler/TirCompiler/expressify/expressifyVarAssignmentStmt.d.ts +0 -4
- package/dist/compiler/TirCompiler/expressify/expressifyVarAssignmentStmt.js +0 -20
- package/dist/compiler/TirCompiler/expressify/expressifyVarDecl.d.ts +0 -3
- package/dist/compiler/TirCompiler/expressify/expressifyVarDecl.js +0 -34
- package/dist/compiler/TirCompiler/expressify/expressifyVars.d.ts +0 -10
- package/dist/compiler/TirCompiler/expressify/expressifyVars.js +0 -320
- package/dist/compiler/TirCompiler/expressify/flattenSopNamedDeconstructInplace_addTopDestructToCtx_getNestedDeconstruct.d.ts +0 -9
- package/dist/compiler/TirCompiler/expressify/flattenSopNamedDeconstructInplace_addTopDestructToCtx_getNestedDeconstruct.js +0 -59
- package/dist/compiler/TirCompiler/expressify/isSingleConstrStruct.d.ts +0 -3
- package/dist/compiler/TirCompiler/expressify/isSingleConstrStruct.js +0 -9
- package/dist/compiler/TirCompiler/expressify/toNamedDeconstructVarDecl.d.ts +0 -3
- package/dist/compiler/TirCompiler/expressify/toNamedDeconstructVarDecl.js +0 -15
- package/dist/compiler/TirCompiler/index.d.ts +0 -2
- package/dist/compiler/TirCompiler/index.js +0 -2
- package/dist/compiler/TirCompiler/internal/_compileHoistedDeps.d.ts +0 -5
- package/dist/compiler/TirCompiler/internal/_compileHoistedDeps.js +0 -37
- package/dist/compiler/TirCompiler/internal/deps/DepsNode.d.ts +0 -13
- package/dist/compiler/TirCompiler/internal/deps/DepsNode.js +0 -36
- package/dist/compiler/index.d.ts +0 -4
- package/dist/compiler/index.js +0 -4
- package/dist/compiler/internalVar.d.ts +0 -19
- package/dist/compiler/internalVar.js +0 -56
- package/dist/compiler/io/CompilerIoApi.d.ts +0 -36
- package/dist/compiler/io/CompilerIoApi.js +0 -62
- package/dist/compiler/io/IOutputStream.d.ts +0 -28
- package/dist/compiler/io/IOutputStream.js +0 -45
- package/dist/compiler/io/index.d.ts +0 -2
- package/dist/compiler/io/index.js +0 -2
- package/dist/compiler/path/getAbsolutePath.d.ts +0 -12
- package/dist/compiler/path/getAbsolutePath.js +0 -114
- package/dist/compiler/path/path.d.ts +0 -5
- package/dist/compiler/path/path.js +0 -160
- package/dist/compiler/tir/expressions/ITirExpr.d.ts +0 -11
- package/dist/compiler/tir/expressions/ITirExpr.js +0 -1
- package/dist/compiler/tir/expressions/TirAssertAndContinueExpr.d.ts +0 -19
- package/dist/compiler/tir/expressions/TirAssertAndContinueExpr.js +0 -41
- package/dist/compiler/tir/expressions/TirCallExpr.d.ts +0 -17
- package/dist/compiler/tir/expressions/TirCallExpr.js +0 -28
- package/dist/compiler/tir/expressions/TirCaseExpr.d.ts +0 -36
- package/dist/compiler/tir/expressions/TirCaseExpr.js +0 -257
- package/dist/compiler/tir/expressions/TirElemAccessExpr.d.ts +0 -20
- package/dist/compiler/tir/expressions/TirElemAccessExpr.js +0 -43
- package/dist/compiler/tir/expressions/TirExpr.d.ts +0 -23
- package/dist/compiler/tir/expressions/TirExpr.js +0 -46
- package/dist/compiler/tir/expressions/TirFailExpr.d.ts +0 -19
- package/dist/compiler/tir/expressions/TirFailExpr.js +0 -28
- package/dist/compiler/tir/expressions/TirFromDataExpr.d.ts +0 -22
- package/dist/compiler/tir/expressions/TirFromDataExpr.js +0 -196
- package/dist/compiler/tir/expressions/TirFuncExpr.d.ts +0 -37
- package/dist/compiler/tir/expressions/TirFuncExpr.js +0 -92
- package/dist/compiler/tir/expressions/TirHoistedExpr.d.ts +0 -18
- package/dist/compiler/tir/expressions/TirHoistedExpr.js +0 -28
- package/dist/compiler/tir/expressions/TirInlineClosedIR.d.ts +0 -16
- package/dist/compiler/tir/expressions/TirInlineClosedIR.js +0 -25
- package/dist/compiler/tir/expressions/TirLettedExpr.d.ts +0 -18
- package/dist/compiler/tir/expressions/TirLettedExpr.js +0 -28
- package/dist/compiler/tir/expressions/TirNativeFunc.d.ts +0 -104
- package/dist/compiler/tir/expressions/TirNativeFunc.js +0 -805
- package/dist/compiler/tir/expressions/TirParentesizedExpr.d.ts +0 -17
- package/dist/compiler/tir/expressions/TirParentesizedExpr.js +0 -20
- package/dist/compiler/tir/expressions/TirPropAccessExpr.d.ts +0 -18
- package/dist/compiler/tir/expressions/TirPropAccessExpr.js +0 -29
- package/dist/compiler/tir/expressions/TirTernaryExpr.d.ts +0 -18
- package/dist/compiler/tir/expressions/TirTernaryExpr.js +0 -36
- package/dist/compiler/tir/expressions/TirToDataExpr.d.ts +0 -28
- package/dist/compiler/tir/expressions/TirToDataExpr.js +0 -172
- package/dist/compiler/tir/expressions/TirTraceIfFalseExpr.d.ts +0 -23
- package/dist/compiler/tir/expressions/TirTraceIfFalseExpr.js +0 -32
- package/dist/compiler/tir/expressions/TirTypeConversionExpr.d.ts +0 -16
- package/dist/compiler/tir/expressions/TirTypeConversionExpr.js +0 -66
- package/dist/compiler/tir/expressions/TirVariableAccessExpr.d.ts +0 -18
- package/dist/compiler/tir/expressions/TirVariableAccessExpr.js +0 -30
- package/dist/compiler/tir/expressions/ToIRTermCtx.d.ts +0 -29
- package/dist/compiler/tir/expressions/ToIRTermCtx.js +0 -77
- package/dist/compiler/tir/expressions/binary/TirBinaryExpr.d.ts +0 -221
- package/dist/compiler/tir/expressions/binary/TirBinaryExpr.js +0 -532
- package/dist/compiler/tir/expressions/litteral/TirLitArrExpr.d.ts +0 -16
- package/dist/compiler/tir/expressions/litteral/TirLitArrExpr.js +0 -60
- package/dist/compiler/tir/expressions/litteral/TirLitFalseExpr.d.ts +0 -14
- package/dist/compiler/tir/expressions/litteral/TirLitFalseExpr.js +0 -17
- package/dist/compiler/tir/expressions/litteral/TirLitHexBytesExpr.d.ts +0 -15
- package/dist/compiler/tir/expressions/litteral/TirLitHexBytesExpr.js +0 -19
- package/dist/compiler/tir/expressions/litteral/TirLitIntExpr.d.ts +0 -15
- package/dist/compiler/tir/expressions/litteral/TirLitIntExpr.js +0 -19
- package/dist/compiler/tir/expressions/litteral/TirLitNamedObjExpr.d.ts +0 -22
- package/dist/compiler/tir/expressions/litteral/TirLitNamedObjExpr.js +0 -105
- package/dist/compiler/tir/expressions/litteral/TirLitObjExpr.d.ts +0 -22
- package/dist/compiler/tir/expressions/litteral/TirLitObjExpr.js +0 -102
- package/dist/compiler/tir/expressions/litteral/TirLitStrExpr.d.ts +0 -15
- package/dist/compiler/tir/expressions/litteral/TirLitStrExpr.js +0 -20
- package/dist/compiler/tir/expressions/litteral/TirLitThisExpr.d.ts +0 -14
- package/dist/compiler/tir/expressions/litteral/TirLitThisExpr.js +0 -20
- package/dist/compiler/tir/expressions/litteral/TirLitTrueExpr.d.ts +0 -14
- package/dist/compiler/tir/expressions/litteral/TirLitTrueExpr.js +0 -17
- package/dist/compiler/tir/expressions/litteral/TirLitUndefExpr.d.ts +0 -18
- package/dist/compiler/tir/expressions/litteral/TirLitUndefExpr.js +0 -23
- package/dist/compiler/tir/expressions/litteral/TirLitVoidExpr.d.ts +0 -14
- package/dist/compiler/tir/expressions/litteral/TirLitVoidExpr.js +0 -17
- package/dist/compiler/tir/expressions/litteral/TirLitteralExpr.d.ts +0 -13
- package/dist/compiler/tir/expressions/litteral/TirLitteralExpr.js +0 -24
- package/dist/compiler/tir/expressions/unary/ITirUnaryExpression.d.ts +0 -4
- package/dist/compiler/tir/expressions/unary/ITirUnaryExpression.js +0 -1
- package/dist/compiler/tir/expressions/unary/TirUnaryExclamation.d.ts +0 -17
- package/dist/compiler/tir/expressions/unary/TirUnaryExclamation.js +0 -23
- package/dist/compiler/tir/expressions/unary/TirUnaryMinus.d.ts +0 -17
- package/dist/compiler/tir/expressions/unary/TirUnaryMinus.js +0 -22
- package/dist/compiler/tir/expressions/unary/TirUnaryPlus.d.ts +0 -15
- package/dist/compiler/tir/expressions/unary/TirUnaryPlus.js +0 -20
- package/dist/compiler/tir/expressions/unary/TirUnaryPrefixExpr.d.ts +0 -6
- package/dist/compiler/tir/expressions/unary/TirUnaryPrefixExpr.js +0 -10
- package/dist/compiler/tir/expressions/unary/TirUnaryTilde.d.ts +0 -17
- package/dist/compiler/tir/expressions/unary/TirUnaryTilde.js +0 -22
- package/dist/compiler/tir/expressions/utils/NamedExpr.d.ts +0 -5
- package/dist/compiler/tir/expressions/utils/NamedExpr.js +0 -1
- package/dist/compiler/tir/program/TypedProgram.d.ts +0 -44
- package/dist/compiler/tir/program/TypedProgram.js +0 -126
- package/dist/compiler/tir/program/stdScope/StdTypes.d.ts +0 -34
- package/dist/compiler/tir/program/stdScope/StdTypes.js +0 -40
- package/dist/compiler/tir/program/stdScope/prelude/preludeTypesSrc.d.ts +0 -0
- package/dist/compiler/tir/program/stdScope/prelude/preludeTypesSrc.js +0 -288
- package/dist/compiler/tir/program/stdScope/stdScope.d.ts +0 -15
- package/dist/compiler/tir/program/stdScope/stdScope.js +0 -730
- package/dist/compiler/tir/statements/TirAssertStmt.d.ts +0 -18
- package/dist/compiler/tir/statements/TirAssertStmt.js +0 -29
- package/dist/compiler/tir/statements/TirAssignmentStmt.d.ts +0 -12
- package/dist/compiler/tir/statements/TirAssignmentStmt.js +0 -14
- package/dist/compiler/tir/statements/TirBlockStmt.d.ts +0 -9
- package/dist/compiler/tir/statements/TirBlockStmt.js +0 -25
- package/dist/compiler/tir/statements/TirBreakStmt.d.ts +0 -8
- package/dist/compiler/tir/statements/TirBreakStmt.js +0 -11
- package/dist/compiler/tir/statements/TirContinueStmt.d.ts +0 -8
- package/dist/compiler/tir/statements/TirContinueStmt.js +0 -13
- package/dist/compiler/tir/statements/TirFailStmt.d.ts +0 -13
- package/dist/compiler/tir/statements/TirFailStmt.js +0 -14
- package/dist/compiler/tir/statements/TirForOfStmt.d.ts +0 -16
- package/dist/compiler/tir/statements/TirForOfStmt.js +0 -25
- package/dist/compiler/tir/statements/TirForStmt.d.ts +0 -19
- package/dist/compiler/tir/statements/TirForStmt.js +0 -39
- package/dist/compiler/tir/statements/TirIfStmt.d.ts +0 -12
- package/dist/compiler/tir/statements/TirIfStmt.js +0 -23
- package/dist/compiler/tir/statements/TirMatchStmt.d.ts +0 -27
- package/dist/compiler/tir/statements/TirMatchStmt.js +0 -51
- package/dist/compiler/tir/statements/TirReturnStmt.d.ts +0 -10
- package/dist/compiler/tir/statements/TirReturnStmt.js +0 -12
- package/dist/compiler/tir/statements/TirStmt.d.ts +0 -32
- package/dist/compiler/tir/statements/TirStmt.js +0 -40
- package/dist/compiler/tir/statements/TirVarDecl/TirArrayLikeDeconstr.d.ts +0 -17
- package/dist/compiler/tir/statements/TirVarDecl/TirArrayLikeDeconstr.js +0 -30
- package/dist/compiler/tir/statements/TirVarDecl/TirNamedDeconstructVarDecl.d.ts +0 -21
- package/dist/compiler/tir/statements/TirVarDecl/TirNamedDeconstructVarDecl.js +0 -34
- package/dist/compiler/tir/statements/TirVarDecl/TirSimpleVarDecl.d.ts +0 -17
- package/dist/compiler/tir/statements/TirVarDecl/TirSimpleVarDecl.js +0 -22
- package/dist/compiler/tir/statements/TirVarDecl/TirSingleDeconstructVarDecl.d.ts +0 -17
- package/dist/compiler/tir/statements/TirVarDecl/TirSingleDeconstructVarDecl.js +0 -30
- package/dist/compiler/tir/statements/TirVarDecl/TirVarDecl.d.ts +0 -10
- package/dist/compiler/tir/statements/TirVarDecl/TirVarDecl.js +0 -11
- package/dist/compiler/tir/statements/TirWhileStmt.d.ts +0 -11
- package/dist/compiler/tir/statements/TirWhileStmt.js +0 -19
- package/dist/compiler/tir/statements/utils/definitelyFails.d.ts +0 -3
- package/dist/compiler/tir/statements/utils/definitelyFails.js +0 -52
- package/dist/compiler/tir/types/TirAliasType.d.ts +0 -32
- package/dist/compiler/tir/types/TirAliasType.js +0 -49
- package/dist/compiler/tir/types/TirInterfaceImpl.d.ts +0 -44
- package/dist/compiler/tir/types/TirInterfaceImpl.js +0 -32
- package/dist/compiler/tir/types/TirInterfaceType.d.ts +0 -28
- package/dist/compiler/tir/types/TirInterfaceType.js +0 -36
- package/dist/compiler/tir/types/TirNativeType/TirNativeType.d.ts +0 -41
- package/dist/compiler/tir/types/TirNativeType/TirNativeType.js +0 -86
- package/dist/compiler/tir/types/TirNativeType/index.d.ts +0 -2
- package/dist/compiler/tir/types/TirNativeType/index.js +0 -2
- package/dist/compiler/tir/types/TirNativeType/native/Optional/data.d.ts +0 -17
- package/dist/compiler/tir/types/TirNativeType/native/Optional/data.js +0 -47
- package/dist/compiler/tir/types/TirNativeType/native/Optional/index.d.ts +0 -3
- package/dist/compiler/tir/types/TirNativeType/native/Optional/index.js +0 -3
- package/dist/compiler/tir/types/TirNativeType/native/Optional/isTirOptType.d.ts +0 -4
- package/dist/compiler/tir/types/TirNativeType/native/Optional/isTirOptType.js +0 -6
- package/dist/compiler/tir/types/TirNativeType/native/Optional/sop.d.ts +0 -17
- package/dist/compiler/tir/types/TirNativeType/native/Optional/sop.js +0 -48
- package/dist/compiler/tir/types/TirNativeType/native/bool.d.ts +0 -13
- package/dist/compiler/tir/types/TirNativeType/native/bool.js +0 -12
- package/dist/compiler/tir/types/TirNativeType/native/bytes.d.ts +0 -13
- package/dist/compiler/tir/types/TirNativeType/native/bytes.js +0 -12
- package/dist/compiler/tir/types/TirNativeType/native/data.d.ts +0 -13
- package/dist/compiler/tir/types/TirNativeType/native/data.js +0 -12
- package/dist/compiler/tir/types/TirNativeType/native/function.d.ts +0 -16
- package/dist/compiler/tir/types/TirNativeType/native/function.js +0 -38
- package/dist/compiler/tir/types/TirNativeType/native/index.d.ts +0 -10
- package/dist/compiler/tir/types/TirNativeType/native/index.js +0 -10
- package/dist/compiler/tir/types/TirNativeType/native/int.d.ts +0 -13
- package/dist/compiler/tir/types/TirNativeType/native/int.js +0 -12
- package/dist/compiler/tir/types/TirNativeType/native/linearMap.d.ts +0 -17
- package/dist/compiler/tir/types/TirNativeType/native/linearMap.js +0 -44
- package/dist/compiler/tir/types/TirNativeType/native/list.d.ts +0 -16
- package/dist/compiler/tir/types/TirNativeType/native/list.js +0 -38
- package/dist/compiler/tir/types/TirNativeType/native/string.d.ts +0 -13
- package/dist/compiler/tir/types/TirNativeType/native/string.js +0 -12
- package/dist/compiler/tir/types/TirNativeType/native/void.d.ts +0 -13
- package/dist/compiler/tir/types/TirNativeType/native/void.js +0 -12
- package/dist/compiler/tir/types/TirStructType.d.ts +0 -68
- package/dist/compiler/tir/types/TirStructType.js +0 -128
- package/dist/compiler/tir/types/TirType.d.ts +0 -34
- package/dist/compiler/tir/types/TirType.js +0 -16
- package/dist/compiler/tir/types/TirTypeParam.d.ts +0 -18
- package/dist/compiler/tir/types/TirTypeParam.js +0 -39
- package/dist/compiler/tir/types/utils/canAssignTo.d.ts +0 -24
- package/dist/compiler/tir/types/utils/canAssignTo.js +0 -337
- package/dist/compiler/tir/types/utils/canCastTo.d.ts +0 -9
- package/dist/compiler/tir/types/utils/canCastTo.js +0 -155
- package/dist/compiler/tir/types/utils/getDeconstructableType.d.ts +0 -9
- package/dist/compiler/tir/types/utils/getDeconstructableType.js +0 -20
- package/dist/compiler/tir/types/utils/getListTypeArg.d.ts +0 -2
- package/dist/compiler/tir/types/utils/getListTypeArg.js +0 -9
- package/dist/compiler/tir/types/utils/getOptTypeArg.d.ts +0 -2
- package/dist/compiler/tir/types/utils/getOptTypeArg.js +0 -14
- package/dist/compiler/tir/types/utils/getUnaliased.d.ts +0 -3
- package/dist/compiler/tir/types/utils/getUnaliased.js +0 -9
- package/dist/diagnostics/DiagnosticCategory.d.ts +0 -16
- package/dist/diagnostics/DiagnosticCategory.js +0 -39
- package/dist/diagnostics/DiagnosticEmitter.d.ts +0 -32
- package/dist/diagnostics/DiagnosticEmitter.js +0 -95
- package/dist/diagnostics/DiagnosticMessage.d.ts +0 -37
- package/dist/diagnostics/DiagnosticMessage.js +0 -229
- package/dist/diagnostics/diagnosticMessages.generated.d.ts +0 -275
- package/dist/diagnostics/diagnosticMessages.generated.js +0 -551
- package/dist/diagnostics/utils/types.d.ts +0 -5
- package/dist/diagnostics/utils/types.js +0 -1
- package/dist/index.d.ts +0 -12
- package/dist/index.js +0 -13
- package/dist/parser/Parser.d.ts +0 -150
- package/dist/parser/Parser.js +0 -2416
- package/dist/parser/Precedence.d.ts +0 -38
- package/dist/parser/Precedence.js +0 -98
- package/dist/parser/hoistStatementsInplace.d.ts +0 -14
- package/dist/parser/hoistStatementsInplace.js +0 -94
- package/dist/parser/index.d.ts +0 -1
- package/dist/parser/index.js +0 -1
- package/dist/parser/parseFile.d.ts +0 -3
- package/dist/parser/parseFile.js +0 -8
- package/dist/tokenizer/IdentifierHandling.d.ts +0 -5
- package/dist/tokenizer/IdentifierHandling.js +0 -6
- package/dist/tokenizer/OnNewLine.d.ts +0 -6
- package/dist/tokenizer/OnNewLine.js +0 -8
- package/dist/tokenizer/Token.d.ts +0 -160
- package/dist/tokenizer/Token.js +0 -213
- package/dist/tokenizer/Tokenizer.d.ts +0 -129
- package/dist/tokenizer/Tokenizer.js +0 -1323
- package/dist/tokenizer/TokenizerState.d.ts +0 -17
- package/dist/tokenizer/TokenizerState.js +0 -17
- package/dist/tokenizer/index.d.ts +0 -2
- package/dist/tokenizer/index.js +0 -2
- package/dist/tokenizer/utils/isIllegalVariableIdentifier.d.ts +0 -1
- package/dist/tokenizer/utils/isIllegalVariableIdentifier.js +0 -12
- package/dist/tokenizer/utils/operatorTokenToString.d.ts +0 -2
- package/dist/tokenizer/utils/operatorTokenToString.js +0 -57
- package/dist/tokenizer/utils/tokenFromKeyword.d.ts +0 -2
- package/dist/tokenizer/utils/tokenFromKeyword.js +0 -222
- package/dist/tokenizer/utils/tokenIsAlsoIdentifier.d.ts +0 -2
- package/dist/tokenizer/utils/tokenIsAlsoIdentifier.js +0 -24
- package/dist/utils/BasePlutsError.d.ts +0 -2
- package/dist/utils/BasePlutsError.js +0 -2
- package/dist/utils/BitUtils/index.d.ts +0 -30
- package/dist/utils/BitUtils/index.js +0 -60
- package/dist/utils/CharCode.d.ts +0 -125
- package/dist/utils/CharCode.js +0 -1
- package/dist/utils/Cloneable.d.ts +0 -6
- package/dist/utils/Cloneable.js +0 -4
- package/dist/utils/InvalidCborFormatError.d.ts +0 -3
- package/dist/utils/InvalidCborFormatError.js +0 -5
- package/dist/utils/IsSingleKey.d.ts +0 -7
- package/dist/utils/IsSingleKey.js +0 -1
- package/dist/utils/MaybePromise.d.ts +0 -2
- package/dist/utils/MaybePromise.js +0 -4
- package/dist/utils/PlutusScriptType.d.ts +0 -12
- package/dist/utils/PlutusScriptType.js +0 -1
- package/dist/utils/ToJson.d.ts +0 -4
- package/dist/utils/ToJson.js +0 -5
- package/dist/utils/UPLCFlatUtils/index.d.ts +0 -46
- package/dist/utils/UPLCFlatUtils/index.js +0 -124
- package/dist/utils/array/filterSortedStrArrInplace.d.ts +0 -7
- package/dist/utils/array/filterSortedStrArrInplace.js +0 -46
- package/dist/utils/array/keepSortedArrInplace.d.ts +0 -7
- package/dist/utils/array/keepSortedArrInplace.js +0 -49
- package/dist/utils/array/mergeSortedStrArrInplace.d.ts +0 -6
- package/dist/utils/array/mergeSortedStrArrInplace.js +0 -52
- package/dist/utils/assert.d.ts +0 -1
- package/dist/utils/assert.js +0 -5
- package/dist/utils/capitalize.d.ts +0 -1
- package/dist/utils/capitalize.js +0 -5
- package/dist/utils/combinators.d.ts +0 -37
- package/dist/utils/combinators.js +0 -76
- package/dist/utils/getCallStackAt/index.d.ts +0 -43
- package/dist/utils/getCallStackAt/index.js +0 -295
- package/dist/utils/hex.d.ts +0 -1
- package/dist/utils/hex.js +0 -6
- package/dist/utils/ints.d.ts +0 -4
- package/dist/utils/ints.js +0 -19
- package/dist/utils/isNonEmpty.d.ts +0 -1
- package/dist/utils/isNonEmpty.js +0 -3
- package/dist/utils/maybeData.d.ts +0 -4
- package/dist/utils/maybeData.js +0 -10
- package/dist/utils/stringify.d.ts +0 -2
- package/dist/utils/stringify.js +0 -31
- package/dist/utils/terminal.d.ts +0 -28
- package/dist/utils/terminal.js +0 -38
- package/dist/utils/text.d.ts +0 -172
- package/dist/utils/text.js +0 -672
- package/dist/utils/types.d.ts +0 -12
- package/dist/utils/types.js +0 -1
|
@@ -1,805 +0,0 @@
|
|
|
1
|
-
import { SourceRange } from "../../../ast/Source/SourceRange.js";
|
|
2
|
-
import { IRNativeTag } from "../../../IR/IRNodes/IRNative/IRNativeTag.js";
|
|
3
|
-
import { IRNative } from "../../../IR/IRNodes/IRNative/index.js";
|
|
4
|
-
import { bool_t, bytes_t, data_t, int_t, void_t } from "../program/stdScope/stdScope.js";
|
|
5
|
-
import { TirUnConstrDataResultT, TirPairDataT } from "../types/TirNativeType/index.js";
|
|
6
|
-
import { TirFuncT } from "../types/TirNativeType/native/function.js";
|
|
7
|
-
import { TirLinearMapT } from "../types/TirNativeType/native/linearMap.js";
|
|
8
|
-
import { TirListT } from "../types/TirNativeType/native/list.js";
|
|
9
|
-
import { TirDataOptT } from "../types/TirNativeType/native/Optional/data.js";
|
|
10
|
-
export class TirNativeFunc {
|
|
11
|
-
tag;
|
|
12
|
-
type;
|
|
13
|
-
constructor(tag, type) {
|
|
14
|
-
this.tag = tag;
|
|
15
|
-
this.type = type;
|
|
16
|
-
}
|
|
17
|
-
toIR(ctx) {
|
|
18
|
-
return new IRNative(this.tag);
|
|
19
|
-
}
|
|
20
|
-
clone() {
|
|
21
|
-
return new TirNativeFunc(this.tag, this.type);
|
|
22
|
-
}
|
|
23
|
-
get range() { return SourceRange.unknown; }
|
|
24
|
-
deps() { return []; }
|
|
25
|
-
get isConstant() { return true; }
|
|
26
|
-
// Integer operations
|
|
27
|
-
static get addInteger() {
|
|
28
|
-
return new TirNativeFunc(IRNativeTag.addInteger, new TirFuncT([
|
|
29
|
-
// a
|
|
30
|
-
int_t,
|
|
31
|
-
// b
|
|
32
|
-
int_t
|
|
33
|
-
], int_t));
|
|
34
|
-
}
|
|
35
|
-
static get subtractInteger() {
|
|
36
|
-
return new TirNativeFunc(IRNativeTag.subtractInteger, new TirFuncT([
|
|
37
|
-
// a
|
|
38
|
-
int_t,
|
|
39
|
-
// b
|
|
40
|
-
int_t
|
|
41
|
-
], int_t));
|
|
42
|
-
}
|
|
43
|
-
static get multiplyInteger() {
|
|
44
|
-
return new TirNativeFunc(IRNativeTag.multiplyInteger, new TirFuncT([
|
|
45
|
-
// a
|
|
46
|
-
int_t,
|
|
47
|
-
// b
|
|
48
|
-
int_t
|
|
49
|
-
], int_t));
|
|
50
|
-
}
|
|
51
|
-
static get divideInteger() {
|
|
52
|
-
return new TirNativeFunc(IRNativeTag.divideInteger, new TirFuncT([
|
|
53
|
-
// numerator
|
|
54
|
-
int_t,
|
|
55
|
-
// denominator
|
|
56
|
-
int_t
|
|
57
|
-
], int_t));
|
|
58
|
-
}
|
|
59
|
-
static get quotientInteger() {
|
|
60
|
-
return new TirNativeFunc(IRNativeTag.quotientInteger, new TirFuncT([
|
|
61
|
-
// a
|
|
62
|
-
int_t,
|
|
63
|
-
// b
|
|
64
|
-
int_t
|
|
65
|
-
], int_t));
|
|
66
|
-
}
|
|
67
|
-
static get remainderInteger() {
|
|
68
|
-
return new TirNativeFunc(IRNativeTag.remainderInteger, new TirFuncT([
|
|
69
|
-
// a
|
|
70
|
-
int_t,
|
|
71
|
-
// b
|
|
72
|
-
int_t
|
|
73
|
-
], int_t));
|
|
74
|
-
}
|
|
75
|
-
static get modInteger() {
|
|
76
|
-
return new TirNativeFunc(IRNativeTag.modInteger, new TirFuncT([
|
|
77
|
-
// a
|
|
78
|
-
int_t,
|
|
79
|
-
// b
|
|
80
|
-
int_t
|
|
81
|
-
], int_t));
|
|
82
|
-
}
|
|
83
|
-
static get equalsInteger() {
|
|
84
|
-
return new TirNativeFunc(IRNativeTag.equalsInteger, new TirFuncT([
|
|
85
|
-
// a
|
|
86
|
-
int_t,
|
|
87
|
-
// b
|
|
88
|
-
int_t
|
|
89
|
-
], bool_t));
|
|
90
|
-
}
|
|
91
|
-
static get lessThanInteger() {
|
|
92
|
-
return new TirNativeFunc(IRNativeTag.lessThanInteger, new TirFuncT([
|
|
93
|
-
// a
|
|
94
|
-
int_t,
|
|
95
|
-
// b
|
|
96
|
-
int_t
|
|
97
|
-
], bool_t));
|
|
98
|
-
}
|
|
99
|
-
static get lessThanEqualInteger() {
|
|
100
|
-
return new TirNativeFunc(IRNativeTag.lessThanEqualInteger, new TirFuncT([
|
|
101
|
-
// a
|
|
102
|
-
int_t,
|
|
103
|
-
// b
|
|
104
|
-
int_t
|
|
105
|
-
], bool_t));
|
|
106
|
-
}
|
|
107
|
-
// ByteString operations
|
|
108
|
-
static get appendByteString() {
|
|
109
|
-
return new TirNativeFunc(IRNativeTag.appendByteString, new TirFuncT([
|
|
110
|
-
// left
|
|
111
|
-
bytes_t,
|
|
112
|
-
// right
|
|
113
|
-
bytes_t
|
|
114
|
-
], bytes_t));
|
|
115
|
-
}
|
|
116
|
-
static get consByteString() {
|
|
117
|
-
return new TirNativeFunc(IRNativeTag.consByteString, new TirFuncT([
|
|
118
|
-
// byte
|
|
119
|
-
int_t,
|
|
120
|
-
// bytes
|
|
121
|
-
bytes_t
|
|
122
|
-
], bytes_t));
|
|
123
|
-
}
|
|
124
|
-
static get sliceByteString() {
|
|
125
|
-
return new TirNativeFunc(IRNativeTag.sliceByteString, new TirFuncT([
|
|
126
|
-
// offset
|
|
127
|
-
int_t,
|
|
128
|
-
// length
|
|
129
|
-
int_t,
|
|
130
|
-
// bytes
|
|
131
|
-
bytes_t
|
|
132
|
-
], bytes_t));
|
|
133
|
-
}
|
|
134
|
-
static get lengthOfByteString() {
|
|
135
|
-
return new TirNativeFunc(IRNativeTag.lengthOfByteString, new TirFuncT([
|
|
136
|
-
// bytes
|
|
137
|
-
bytes_t
|
|
138
|
-
], int_t));
|
|
139
|
-
}
|
|
140
|
-
static get indexByteString() {
|
|
141
|
-
return new TirNativeFunc(IRNativeTag.indexByteString, new TirFuncT([
|
|
142
|
-
// bytes
|
|
143
|
-
bytes_t,
|
|
144
|
-
// index
|
|
145
|
-
int_t
|
|
146
|
-
], int_t));
|
|
147
|
-
}
|
|
148
|
-
static get equalsByteString() {
|
|
149
|
-
return new TirNativeFunc(IRNativeTag.equalsByteString, new TirFuncT([
|
|
150
|
-
// a
|
|
151
|
-
bytes_t,
|
|
152
|
-
// b
|
|
153
|
-
bytes_t
|
|
154
|
-
], bool_t));
|
|
155
|
-
}
|
|
156
|
-
static get lessThanByteString() {
|
|
157
|
-
return new TirNativeFunc(IRNativeTag.lessThanByteString, new TirFuncT([
|
|
158
|
-
// a
|
|
159
|
-
bytes_t,
|
|
160
|
-
// b
|
|
161
|
-
bytes_t
|
|
162
|
-
], bool_t));
|
|
163
|
-
}
|
|
164
|
-
static get lessThanEqualsByteString() {
|
|
165
|
-
return new TirNativeFunc(IRNativeTag.lessThanEqualsByteString, new TirFuncT([
|
|
166
|
-
// a
|
|
167
|
-
bytes_t,
|
|
168
|
-
// b
|
|
169
|
-
bytes_t
|
|
170
|
-
], bool_t));
|
|
171
|
-
}
|
|
172
|
-
// Hashing operations
|
|
173
|
-
static get sha2_256() {
|
|
174
|
-
return new TirNativeFunc(IRNativeTag.sha2_256, new TirFuncT([
|
|
175
|
-
// bytes
|
|
176
|
-
bytes_t
|
|
177
|
-
], bytes_t));
|
|
178
|
-
}
|
|
179
|
-
static get sha3_256() {
|
|
180
|
-
return new TirNativeFunc(IRNativeTag.sha3_256, new TirFuncT([
|
|
181
|
-
// bytes
|
|
182
|
-
bytes_t
|
|
183
|
-
], bytes_t));
|
|
184
|
-
}
|
|
185
|
-
static get blake2b_256() {
|
|
186
|
-
return new TirNativeFunc(IRNativeTag.blake2b_256, new TirFuncT([
|
|
187
|
-
// bytes
|
|
188
|
-
bytes_t
|
|
189
|
-
], bytes_t));
|
|
190
|
-
}
|
|
191
|
-
static get verifyEd25519Signature() {
|
|
192
|
-
return new TirNativeFunc(IRNativeTag.verifyEd25519Signature, new TirFuncT([
|
|
193
|
-
// pubKey
|
|
194
|
-
bytes_t,
|
|
195
|
-
// message
|
|
196
|
-
bytes_t,
|
|
197
|
-
// signature
|
|
198
|
-
bytes_t
|
|
199
|
-
], bool_t));
|
|
200
|
-
}
|
|
201
|
-
// Control flow functions that need type parameters
|
|
202
|
-
static strictIfThenElse(returnT) {
|
|
203
|
-
return new TirNativeFunc(IRNativeTag.strictIfThenElse, new TirFuncT([
|
|
204
|
-
// condition
|
|
205
|
-
bool_t,
|
|
206
|
-
// thenValue
|
|
207
|
-
returnT,
|
|
208
|
-
// elseValue
|
|
209
|
-
returnT
|
|
210
|
-
], returnT));
|
|
211
|
-
}
|
|
212
|
-
static chooseUnit(returnT) {
|
|
213
|
-
return new TirNativeFunc(IRNativeTag.chooseUnit, new TirFuncT([
|
|
214
|
-
// unit
|
|
215
|
-
void_t
|
|
216
|
-
], returnT));
|
|
217
|
-
}
|
|
218
|
-
static strictChooseList(elemT, returnT) {
|
|
219
|
-
return new TirNativeFunc(IRNativeTag.strictChooseList, new TirFuncT([
|
|
220
|
-
// list
|
|
221
|
-
new TirListT(elemT),
|
|
222
|
-
// caseNil
|
|
223
|
-
returnT,
|
|
224
|
-
// caseCons
|
|
225
|
-
returnT
|
|
226
|
-
], returnT));
|
|
227
|
-
}
|
|
228
|
-
// List operations with type parameters
|
|
229
|
-
static mkCons(elemT) {
|
|
230
|
-
return new TirNativeFunc(IRNativeTag.mkCons, new TirFuncT([
|
|
231
|
-
// head
|
|
232
|
-
elemT,
|
|
233
|
-
// tail
|
|
234
|
-
new TirListT(elemT)
|
|
235
|
-
], new TirListT(elemT)));
|
|
236
|
-
}
|
|
237
|
-
static headList(elemT) {
|
|
238
|
-
return new TirNativeFunc(IRNativeTag.headList, new TirFuncT([
|
|
239
|
-
// list
|
|
240
|
-
new TirListT(elemT)
|
|
241
|
-
], elemT));
|
|
242
|
-
}
|
|
243
|
-
static tailList(elemT) {
|
|
244
|
-
return new TirNativeFunc(IRNativeTag.tailList, new TirFuncT([
|
|
245
|
-
// list
|
|
246
|
-
new TirListT(elemT)
|
|
247
|
-
], new TirListT(elemT)));
|
|
248
|
-
}
|
|
249
|
-
static nullList(elemT) {
|
|
250
|
-
return new TirNativeFunc(IRNativeTag.nullList, new TirFuncT([
|
|
251
|
-
// list
|
|
252
|
-
new TirListT(elemT)
|
|
253
|
-
], bool_t));
|
|
254
|
-
}
|
|
255
|
-
// Data operations with return type parameters
|
|
256
|
-
static chooseData(returnT) {
|
|
257
|
-
return new TirNativeFunc(IRNativeTag.chooseData, new TirFuncT([
|
|
258
|
-
// data
|
|
259
|
-
data_t,
|
|
260
|
-
// caseConstr
|
|
261
|
-
returnT,
|
|
262
|
-
// caseMap
|
|
263
|
-
returnT,
|
|
264
|
-
// caseList
|
|
265
|
-
returnT,
|
|
266
|
-
// caseIData
|
|
267
|
-
returnT,
|
|
268
|
-
// caseBData
|
|
269
|
-
returnT
|
|
270
|
-
], returnT));
|
|
271
|
-
}
|
|
272
|
-
static get constrData() {
|
|
273
|
-
return new TirNativeFunc(IRNativeTag.constrData, new TirFuncT([
|
|
274
|
-
// tag
|
|
275
|
-
int_t,
|
|
276
|
-
// fields
|
|
277
|
-
new TirListT(data_t)
|
|
278
|
-
], data_t));
|
|
279
|
-
}
|
|
280
|
-
static get mapData() {
|
|
281
|
-
return new TirNativeFunc(IRNativeTag.mapData, new TirFuncT([
|
|
282
|
-
// map
|
|
283
|
-
new TirLinearMapT(data_t, data_t)
|
|
284
|
-
], data_t));
|
|
285
|
-
}
|
|
286
|
-
static get listData() {
|
|
287
|
-
return new TirNativeFunc(IRNativeTag.listData, new TirFuncT([
|
|
288
|
-
// list
|
|
289
|
-
new TirListT(data_t)
|
|
290
|
-
], data_t));
|
|
291
|
-
}
|
|
292
|
-
static get iData() {
|
|
293
|
-
return new TirNativeFunc(IRNativeTag.iData, new TirFuncT([
|
|
294
|
-
// int
|
|
295
|
-
int_t
|
|
296
|
-
], data_t));
|
|
297
|
-
}
|
|
298
|
-
static get bData() {
|
|
299
|
-
return new TirNativeFunc(IRNativeTag.bData, new TirFuncT([
|
|
300
|
-
// bytes
|
|
301
|
-
bytes_t
|
|
302
|
-
], data_t));
|
|
303
|
-
}
|
|
304
|
-
// Data unwrapping operations
|
|
305
|
-
static get unConstrData() {
|
|
306
|
-
return new TirNativeFunc(IRNativeTag.unConstrData, new TirFuncT([
|
|
307
|
-
// data
|
|
308
|
-
data_t
|
|
309
|
-
], new TirUnConstrDataResultT()));
|
|
310
|
-
}
|
|
311
|
-
static get unConstrDataResultFields() {
|
|
312
|
-
return new TirNativeFunc(IRNativeTag.sndPair, new TirFuncT([
|
|
313
|
-
new TirUnConstrDataResultT(),
|
|
314
|
-
], new TirListT(data_t)));
|
|
315
|
-
}
|
|
316
|
-
static get unConstrDataResultIndex() {
|
|
317
|
-
return new TirNativeFunc(IRNativeTag.fstPair, new TirFuncT([
|
|
318
|
-
new TirUnConstrDataResultT(),
|
|
319
|
-
], int_t));
|
|
320
|
-
}
|
|
321
|
-
static get unMapData() {
|
|
322
|
-
return new TirNativeFunc(IRNativeTag.unMapData, new TirFuncT([
|
|
323
|
-
// data
|
|
324
|
-
data_t
|
|
325
|
-
], new TirLinearMapT(data_t, data_t)));
|
|
326
|
-
}
|
|
327
|
-
static get unListData() {
|
|
328
|
-
return new TirNativeFunc(IRNativeTag.unListData, new TirFuncT([
|
|
329
|
-
// data
|
|
330
|
-
data_t
|
|
331
|
-
], new TirListT(data_t)));
|
|
332
|
-
}
|
|
333
|
-
static get unIData() {
|
|
334
|
-
return new TirNativeFunc(IRNativeTag.unIData, new TirFuncT([
|
|
335
|
-
// data
|
|
336
|
-
data_t
|
|
337
|
-
], int_t));
|
|
338
|
-
}
|
|
339
|
-
static get unBData() {
|
|
340
|
-
return new TirNativeFunc(IRNativeTag.unBData, new TirFuncT([
|
|
341
|
-
// data
|
|
342
|
-
data_t
|
|
343
|
-
], bytes_t));
|
|
344
|
-
}
|
|
345
|
-
// Data comparison
|
|
346
|
-
static get equalsData() {
|
|
347
|
-
return new TirNativeFunc(IRNativeTag.equalsData, new TirFuncT([
|
|
348
|
-
// a
|
|
349
|
-
data_t,
|
|
350
|
-
// b
|
|
351
|
-
data_t
|
|
352
|
-
], bool_t));
|
|
353
|
-
}
|
|
354
|
-
static get mkNilData() {
|
|
355
|
-
return new TirNativeFunc(IRNativeTag.mkNilData, new TirFuncT([], new TirListT(data_t)));
|
|
356
|
-
}
|
|
357
|
-
static get serialiseData() {
|
|
358
|
-
return new TirNativeFunc(IRNativeTag.serialiseData, new TirFuncT([
|
|
359
|
-
// data
|
|
360
|
-
data_t
|
|
361
|
-
], bytes_t));
|
|
362
|
-
}
|
|
363
|
-
// Cryptography functions
|
|
364
|
-
static get verifyEcdsaSecp256k1Signature() {
|
|
365
|
-
return new TirNativeFunc(IRNativeTag.verifyEcdsaSecp256k1Signature, new TirFuncT([
|
|
366
|
-
// pubKey
|
|
367
|
-
bytes_t,
|
|
368
|
-
// message
|
|
369
|
-
bytes_t,
|
|
370
|
-
// signature
|
|
371
|
-
bytes_t
|
|
372
|
-
], bool_t));
|
|
373
|
-
}
|
|
374
|
-
static get verifySchnorrSecp256k1Signature() {
|
|
375
|
-
return new TirNativeFunc(IRNativeTag.verifySchnorrSecp256k1Signature, new TirFuncT([
|
|
376
|
-
// pubKey
|
|
377
|
-
bytes_t,
|
|
378
|
-
// message
|
|
379
|
-
bytes_t,
|
|
380
|
-
// signature
|
|
381
|
-
bytes_t
|
|
382
|
-
], bool_t));
|
|
383
|
-
}
|
|
384
|
-
// BLS12-381 operations
|
|
385
|
-
/* TODO: add bls supprot
|
|
386
|
-
get bls12_381_G1_add(): TirNativeFunc {
|
|
387
|
-
return new TirNativeFunc(
|
|
388
|
-
IRNativeTag.bls12_381_G1_add,
|
|
389
|
-
new TirFuncT([bytes_t, bytes_t], bytes_t)
|
|
390
|
-
);
|
|
391
|
-
}
|
|
392
|
-
get bls12_381_G1_neg(): TirNativeFunc {
|
|
393
|
-
return new TirNativeFunc(
|
|
394
|
-
IRNativeTag.bls12_381_G1_neg,
|
|
395
|
-
new TirFuncT([bytes_t], bytes_t)
|
|
396
|
-
);
|
|
397
|
-
}
|
|
398
|
-
get bls12_381_G1_scalarMul(): TirNativeFunc {
|
|
399
|
-
return new TirNativeFunc(
|
|
400
|
-
IRNativeTag.bls12_381_G1_scalarMul,
|
|
401
|
-
new TirFuncT([bytes_t, int_t], bytes_t)
|
|
402
|
-
);
|
|
403
|
-
}
|
|
404
|
-
get bls12_381_G1_equal(): TirNativeFunc {
|
|
405
|
-
return new TirNativeFunc(
|
|
406
|
-
IRNativeTag.bls12_381_G1_equal,
|
|
407
|
-
new TirFuncT([bytes_t, bytes_t], bool_t)
|
|
408
|
-
);
|
|
409
|
-
}
|
|
410
|
-
get bls12_381_G1_hashToGroup(): TirNativeFunc {
|
|
411
|
-
return new TirNativeFunc(
|
|
412
|
-
IRNativeTag.bls12_381_G1_hashToGroup,
|
|
413
|
-
new TirFuncT([bytes_t], bytes_t)
|
|
414
|
-
);
|
|
415
|
-
}
|
|
416
|
-
get bls12_381_G1_compress(): TirNativeFunc {
|
|
417
|
-
return new TirNativeFunc(
|
|
418
|
-
IRNativeTag.bls12_381_G1_compress,
|
|
419
|
-
new TirFuncT([bytes_t], bytes_t)
|
|
420
|
-
);
|
|
421
|
-
}
|
|
422
|
-
get bls12_381_G1_uncompress(): TirNativeFunc {
|
|
423
|
-
return new TirNativeFunc(
|
|
424
|
-
IRNativeTag.bls12_381_G1_uncompress,
|
|
425
|
-
new TirFuncT([bytes_t], bytes_t)
|
|
426
|
-
);
|
|
427
|
-
}
|
|
428
|
-
get bls12_381_G2_add(): TirNativeFunc {
|
|
429
|
-
return new TirNativeFunc(
|
|
430
|
-
IRNativeTag.bls12_381_G2_add,
|
|
431
|
-
new TirFuncT([bytes_t, bytes_t], bytes_t)
|
|
432
|
-
);
|
|
433
|
-
}
|
|
434
|
-
get bls12_381_G2_neg(): TirNativeFunc {
|
|
435
|
-
return new TirNativeFunc(
|
|
436
|
-
IRNativeTag.bls12_381_G2_neg,
|
|
437
|
-
new TirFuncT([bytes_t], bytes_t)
|
|
438
|
-
);
|
|
439
|
-
}
|
|
440
|
-
get bls12_381_G2_scalarMul(): TirNativeFunc {
|
|
441
|
-
return new TirNativeFunc(
|
|
442
|
-
IRNativeTag.bls12_381_G2_scalarMul,
|
|
443
|
-
new TirFuncT([bytes_t, int_t], bytes_t)
|
|
444
|
-
);
|
|
445
|
-
}
|
|
446
|
-
get bls12_381_G2_equal(): TirNativeFunc {
|
|
447
|
-
return new TirNativeFunc(
|
|
448
|
-
IRNativeTag.bls12_381_G2_equal,
|
|
449
|
-
new TirFuncT([bytes_t, bytes_t], bool_t)
|
|
450
|
-
);
|
|
451
|
-
}
|
|
452
|
-
get bls12_381_G2_hashToGroup(): TirNativeFunc {
|
|
453
|
-
return new TirNativeFunc(
|
|
454
|
-
IRNativeTag.bls12_381_G2_hashToGroup,
|
|
455
|
-
new TirFuncT([bytes_t], bytes_t)
|
|
456
|
-
);
|
|
457
|
-
}
|
|
458
|
-
get bls12_381_G2_compress(): TirNativeFunc {
|
|
459
|
-
return new TirNativeFunc(
|
|
460
|
-
IRNativeTag.bls12_381_G2_compress,
|
|
461
|
-
new TirFuncT([bytes_t], bytes_t)
|
|
462
|
-
);
|
|
463
|
-
}
|
|
464
|
-
get bls12_381_G2_uncompress(): TirNativeFunc {
|
|
465
|
-
return new TirNativeFunc(
|
|
466
|
-
IRNativeTag.bls12_381_G2_uncompress,
|
|
467
|
-
new TirFuncT([bytes_t], bytes_t)
|
|
468
|
-
);
|
|
469
|
-
}
|
|
470
|
-
get bls12_381_millerLoop(): TirNativeFunc {
|
|
471
|
-
return new TirNativeFunc(
|
|
472
|
-
IRNativeTag.bls12_381_millerLoop,
|
|
473
|
-
new TirFuncT([bytes_t, bytes_t], bytes_t)
|
|
474
|
-
);
|
|
475
|
-
}
|
|
476
|
-
get bls12_381_mulMlResult(): TirNativeFunc {
|
|
477
|
-
return new TirNativeFunc(
|
|
478
|
-
IRNativeTag.bls12_381_mulMlResult,
|
|
479
|
-
new TirFuncT([bytes_t, bytes_t], bytes_t)
|
|
480
|
-
);
|
|
481
|
-
}
|
|
482
|
-
get bls12_381_finalVerify(): TirNativeFunc {
|
|
483
|
-
return new TirNativeFunc(
|
|
484
|
-
IRNativeTag.bls12_381_finalVerify,
|
|
485
|
-
new TirFuncT([bytes_t, bytes_t], bool_t)
|
|
486
|
-
);
|
|
487
|
-
}
|
|
488
|
-
//*/
|
|
489
|
-
// Additional hashing functions
|
|
490
|
-
static get keccak_256() {
|
|
491
|
-
return new TirNativeFunc(IRNativeTag.keccak_256, new TirFuncT([
|
|
492
|
-
// bytes
|
|
493
|
-
bytes_t
|
|
494
|
-
], bytes_t));
|
|
495
|
-
}
|
|
496
|
-
static get blake2b_224() {
|
|
497
|
-
return new TirNativeFunc(IRNativeTag.blake2b_224, new TirFuncT([
|
|
498
|
-
// bytes
|
|
499
|
-
bytes_t
|
|
500
|
-
], bytes_t));
|
|
501
|
-
}
|
|
502
|
-
// ByteString manipulation
|
|
503
|
-
static get integerToByteString() {
|
|
504
|
-
return new TirNativeFunc(IRNativeTag.integerToByteString, new TirFuncT([
|
|
505
|
-
// flag
|
|
506
|
-
bool_t,
|
|
507
|
-
// value
|
|
508
|
-
int_t,
|
|
509
|
-
// size
|
|
510
|
-
int_t
|
|
511
|
-
], bytes_t));
|
|
512
|
-
}
|
|
513
|
-
static get byteStringToInteger() {
|
|
514
|
-
return new TirNativeFunc(IRNativeTag.byteStringToInteger, new TirFuncT([
|
|
515
|
-
// flag
|
|
516
|
-
bool_t,
|
|
517
|
-
// bytes
|
|
518
|
-
bytes_t
|
|
519
|
-
], int_t));
|
|
520
|
-
}
|
|
521
|
-
static get andByteString() {
|
|
522
|
-
return new TirNativeFunc(IRNativeTag.andByteString, new TirFuncT([
|
|
523
|
-
// flag
|
|
524
|
-
bool_t,
|
|
525
|
-
// a
|
|
526
|
-
bytes_t,
|
|
527
|
-
// b
|
|
528
|
-
bytes_t
|
|
529
|
-
], bytes_t));
|
|
530
|
-
}
|
|
531
|
-
static get orByteString() {
|
|
532
|
-
return new TirNativeFunc(IRNativeTag.orByteString, new TirFuncT([
|
|
533
|
-
// flag
|
|
534
|
-
bool_t,
|
|
535
|
-
// a
|
|
536
|
-
bytes_t,
|
|
537
|
-
// b
|
|
538
|
-
bytes_t
|
|
539
|
-
], bytes_t));
|
|
540
|
-
}
|
|
541
|
-
static get xorByteString() {
|
|
542
|
-
return new TirNativeFunc(IRNativeTag.xorByteString, new TirFuncT([
|
|
543
|
-
// flag
|
|
544
|
-
bool_t,
|
|
545
|
-
// a
|
|
546
|
-
bytes_t,
|
|
547
|
-
// b
|
|
548
|
-
bytes_t
|
|
549
|
-
], bytes_t));
|
|
550
|
-
}
|
|
551
|
-
static get complementByteString() {
|
|
552
|
-
return new TirNativeFunc(IRNativeTag.complementByteString, new TirFuncT([
|
|
553
|
-
// bytes
|
|
554
|
-
bytes_t
|
|
555
|
-
], bytes_t));
|
|
556
|
-
}
|
|
557
|
-
static get readBit() {
|
|
558
|
-
return new TirNativeFunc(IRNativeTag.readBit, new TirFuncT([
|
|
559
|
-
// bytes
|
|
560
|
-
bytes_t,
|
|
561
|
-
// index
|
|
562
|
-
int_t
|
|
563
|
-
], bool_t));
|
|
564
|
-
}
|
|
565
|
-
static get writeBits() {
|
|
566
|
-
return new TirNativeFunc(IRNativeTag.writeBits, new TirFuncT([
|
|
567
|
-
// bytes
|
|
568
|
-
bytes_t,
|
|
569
|
-
// positions
|
|
570
|
-
new TirListT(int_t),
|
|
571
|
-
// value
|
|
572
|
-
bool_t
|
|
573
|
-
], bytes_t));
|
|
574
|
-
}
|
|
575
|
-
// Additional ByteString operations
|
|
576
|
-
static get replicateByte() {
|
|
577
|
-
return new TirNativeFunc(IRNativeTag.replicateByte, new TirFuncT([
|
|
578
|
-
// count
|
|
579
|
-
int_t,
|
|
580
|
-
// byte
|
|
581
|
-
int_t
|
|
582
|
-
], bytes_t));
|
|
583
|
-
}
|
|
584
|
-
static get shiftByteString() {
|
|
585
|
-
return new TirNativeFunc(IRNativeTag.shiftByteString, new TirFuncT([
|
|
586
|
-
// bytes
|
|
587
|
-
bytes_t,
|
|
588
|
-
// shift
|
|
589
|
-
int_t
|
|
590
|
-
], bytes_t));
|
|
591
|
-
}
|
|
592
|
-
static get rotateByteString() {
|
|
593
|
-
return new TirNativeFunc(IRNativeTag.rotateByteString, new TirFuncT([
|
|
594
|
-
// bytes
|
|
595
|
-
bytes_t,
|
|
596
|
-
// amount
|
|
597
|
-
int_t
|
|
598
|
-
], bytes_t));
|
|
599
|
-
}
|
|
600
|
-
static get countSetBits() {
|
|
601
|
-
return new TirNativeFunc(IRNativeTag.countSetBits, new TirFuncT([
|
|
602
|
-
// bytes
|
|
603
|
-
bytes_t
|
|
604
|
-
], int_t));
|
|
605
|
-
}
|
|
606
|
-
static get findFirstSetBit() {
|
|
607
|
-
return new TirNativeFunc(IRNativeTag.findFirstSetBit, new TirFuncT([
|
|
608
|
-
// bytes
|
|
609
|
-
bytes_t
|
|
610
|
-
], int_t));
|
|
611
|
-
}
|
|
612
|
-
static get ripemd_160() {
|
|
613
|
-
return new TirNativeFunc(IRNativeTag.ripemd_160, new TirFuncT([
|
|
614
|
-
// bytes
|
|
615
|
-
bytes_t
|
|
616
|
-
], bytes_t));
|
|
617
|
-
}
|
|
618
|
-
// Custom utility functions
|
|
619
|
-
static _dropList(elemT) {
|
|
620
|
-
return new TirNativeFunc(IRNativeTag._dropList, new TirFuncT([
|
|
621
|
-
// n
|
|
622
|
-
int_t,
|
|
623
|
-
// list
|
|
624
|
-
new TirListT(elemT)
|
|
625
|
-
], new TirListT(elemT)));
|
|
626
|
-
}
|
|
627
|
-
static _foldr(elemT, returnT) {
|
|
628
|
-
return new TirNativeFunc(IRNativeTag._foldr, new TirFuncT([
|
|
629
|
-
// reduce function
|
|
630
|
-
new TirFuncT([
|
|
631
|
-
elemT,
|
|
632
|
-
returnT
|
|
633
|
-
], returnT),
|
|
634
|
-
// initial accumulator
|
|
635
|
-
returnT,
|
|
636
|
-
// list to fold
|
|
637
|
-
new TirListT(elemT)
|
|
638
|
-
], returnT));
|
|
639
|
-
}
|
|
640
|
-
static _foldl(elemT, returnT) {
|
|
641
|
-
return new TirNativeFunc(IRNativeTag._foldl, new TirFuncT([
|
|
642
|
-
// reduce function
|
|
643
|
-
new TirFuncT([
|
|
644
|
-
returnT,
|
|
645
|
-
elemT
|
|
646
|
-
], returnT),
|
|
647
|
-
// initial accumulator
|
|
648
|
-
returnT,
|
|
649
|
-
// list to fold
|
|
650
|
-
new TirListT(elemT)
|
|
651
|
-
], returnT));
|
|
652
|
-
}
|
|
653
|
-
static _mkFindDataOptional(elems_t) {
|
|
654
|
-
return new TirNativeFunc(IRNativeTag._mkFindDataOptional, new TirFuncT([
|
|
655
|
-
// elem -> data
|
|
656
|
-
new TirFuncT([elems_t], data_t),
|
|
657
|
-
// elem -> bool (predicate)
|
|
658
|
-
new TirFuncT([elems_t], bool_t),
|
|
659
|
-
// List<elem>
|
|
660
|
-
new TirListT(elems_t)
|
|
661
|
-
], new TirDataOptT(elems_t)));
|
|
662
|
-
}
|
|
663
|
-
static _length(elemT) {
|
|
664
|
-
return new TirNativeFunc(IRNativeTag._length, new TirFuncT([
|
|
665
|
-
// list
|
|
666
|
-
new TirListT(elemT)
|
|
667
|
-
], int_t));
|
|
668
|
-
}
|
|
669
|
-
static _some(elemT) {
|
|
670
|
-
return new TirNativeFunc(IRNativeTag._some, new TirFuncT([
|
|
671
|
-
// predicate
|
|
672
|
-
new TirFuncT([
|
|
673
|
-
elemT
|
|
674
|
-
], bool_t),
|
|
675
|
-
// list
|
|
676
|
-
new TirListT(elemT)
|
|
677
|
-
], bool_t));
|
|
678
|
-
}
|
|
679
|
-
static _every(elemT) {
|
|
680
|
-
return new TirNativeFunc(IRNativeTag._every, new TirFuncT([
|
|
681
|
-
// predicate
|
|
682
|
-
new TirFuncT([
|
|
683
|
-
elemT
|
|
684
|
-
], bool_t),
|
|
685
|
-
// list
|
|
686
|
-
new TirListT(elemT)
|
|
687
|
-
], bool_t));
|
|
688
|
-
}
|
|
689
|
-
static _mkFilter(elemT) {
|
|
690
|
-
return new TirNativeFunc(IRNativeTag._mkFilter, new TirFuncT([
|
|
691
|
-
// pnilOfType: an empty list with the right element type
|
|
692
|
-
new TirListT(elemT),
|
|
693
|
-
// predicate
|
|
694
|
-
new TirFuncT([
|
|
695
|
-
elemT
|
|
696
|
-
], bool_t),
|
|
697
|
-
// list to filter
|
|
698
|
-
new TirListT(elemT)
|
|
699
|
-
], new TirListT(elemT)));
|
|
700
|
-
}
|
|
701
|
-
static _id(t) {
|
|
702
|
-
return new TirNativeFunc(IRNativeTag._id, new TirFuncT([t], t));
|
|
703
|
-
}
|
|
704
|
-
static get _not() {
|
|
705
|
-
return new TirNativeFunc(IRNativeTag._not, new TirFuncT([
|
|
706
|
-
// bool
|
|
707
|
-
bool_t
|
|
708
|
-
], bool_t));
|
|
709
|
-
}
|
|
710
|
-
static get _strictAnd() {
|
|
711
|
-
return new TirNativeFunc(IRNativeTag._strictAnd, new TirFuncT([
|
|
712
|
-
bool_t,
|
|
713
|
-
bool_t
|
|
714
|
-
], bool_t));
|
|
715
|
-
}
|
|
716
|
-
static get _and() {
|
|
717
|
-
return new TirNativeFunc(IRNativeTag._and, new TirFuncT([
|
|
718
|
-
bool_t,
|
|
719
|
-
bool_t
|
|
720
|
-
], bool_t));
|
|
721
|
-
}
|
|
722
|
-
static get _strictOr() {
|
|
723
|
-
return new TirNativeFunc(IRNativeTag._strictOr, new TirFuncT([
|
|
724
|
-
bool_t,
|
|
725
|
-
bool_t
|
|
726
|
-
], bool_t));
|
|
727
|
-
}
|
|
728
|
-
static get _or() {
|
|
729
|
-
return new TirNativeFunc(IRNativeTag._or, new TirFuncT([
|
|
730
|
-
bool_t,
|
|
731
|
-
bool_t
|
|
732
|
-
], bool_t));
|
|
733
|
-
}
|
|
734
|
-
static get _gtBS() {
|
|
735
|
-
return new TirNativeFunc(IRNativeTag._gtBS, new TirFuncT([
|
|
736
|
-
bytes_t,
|
|
737
|
-
bytes_t
|
|
738
|
-
], bool_t));
|
|
739
|
-
}
|
|
740
|
-
static get _gtEqBS() {
|
|
741
|
-
return new TirNativeFunc(IRNativeTag._gtEqBS, new TirFuncT([
|
|
742
|
-
bytes_t,
|
|
743
|
-
bytes_t
|
|
744
|
-
], bool_t));
|
|
745
|
-
}
|
|
746
|
-
static get _gtInt() {
|
|
747
|
-
return new TirNativeFunc(IRNativeTag._gtInt, new TirFuncT([
|
|
748
|
-
int_t,
|
|
749
|
-
int_t
|
|
750
|
-
], bool_t));
|
|
751
|
-
}
|
|
752
|
-
static get _gtEqInt() {
|
|
753
|
-
return new TirNativeFunc(IRNativeTag._gtEqInt, new TirFuncT([
|
|
754
|
-
int_t,
|
|
755
|
-
int_t
|
|
756
|
-
], bool_t));
|
|
757
|
-
}
|
|
758
|
-
static get _pairDataToData() {
|
|
759
|
-
return new TirNativeFunc(IRNativeTag._pairDataToData, new TirFuncT([
|
|
760
|
-
// pair
|
|
761
|
-
new TirPairDataT()
|
|
762
|
-
], data_t));
|
|
763
|
-
}
|
|
764
|
-
static get _pairDataFromData() {
|
|
765
|
-
return new TirNativeFunc(IRNativeTag._pairDataFromData, new TirFuncT([
|
|
766
|
-
// data
|
|
767
|
-
data_t
|
|
768
|
-
], new TirPairDataT()));
|
|
769
|
-
}
|
|
770
|
-
static _mkEqualsList(elemT) {
|
|
771
|
-
return new TirNativeFunc(IRNativeTag._mkEqualsList, new TirFuncT([
|
|
772
|
-
// elem equality
|
|
773
|
-
new TirFuncT([
|
|
774
|
-
elemT,
|
|
775
|
-
elemT
|
|
776
|
-
], bool_t),
|
|
777
|
-
// listA
|
|
778
|
-
new TirListT(elemT),
|
|
779
|
-
// listB
|
|
780
|
-
new TirListT(elemT)
|
|
781
|
-
], bool_t));
|
|
782
|
-
}
|
|
783
|
-
static get _equalPairData() {
|
|
784
|
-
return new TirNativeFunc(IRNativeTag._equalPairData, new TirFuncT([
|
|
785
|
-
// pairA
|
|
786
|
-
new TirPairDataT(),
|
|
787
|
-
// pairB
|
|
788
|
-
new TirPairDataT()
|
|
789
|
-
], bool_t));
|
|
790
|
-
}
|
|
791
|
-
static get _equalBoolean() {
|
|
792
|
-
return new TirNativeFunc(IRNativeTag._equalBoolean, new TirFuncT([
|
|
793
|
-
// a
|
|
794
|
-
bool_t,
|
|
795
|
-
// b
|
|
796
|
-
bool_t
|
|
797
|
-
], bool_t));
|
|
798
|
-
}
|
|
799
|
-
static get _negateInt() {
|
|
800
|
-
return new TirNativeFunc(IRNativeTag._negateInt, new TirFuncT([
|
|
801
|
-
// n
|
|
802
|
-
int_t
|
|
803
|
-
], int_t));
|
|
804
|
-
}
|
|
805
|
-
}
|