]/%      !"#$9None %&'()*+,-./0 %&'()*+,-./0 %&'()*+,-./0None123456781234567812345678None9:;<=9:;<=9:;<=None>?>?>?None@A@A@ANone<BCDEFGHIJKLMNOPQRSTUVWXYZ[\BCDEFGHIJKLMNOPQRSTUVWXYZ[\BCDEFGHIJKLMNOPQRSTUVWXYZ[\None]^]^]^ None_`a_`a_`a Nonebcbcbc Nonedefdefdef Noneghijghijghij NoneklmnopklmnopklmnopNone<'qrstuvwxyz{|}~'qrstuvwxyz{|}~%qrstuvwxyz{|}~None<None<None<None  None<None<                 None< !"#$%&'()* !"#$%&'()* !"#$%&'()*None<+,-./0123456789:;<=+,-./0123456789:;<=+,-./0123456789:;<=None<>?>?>?None< @ABCDEFGHIJKL @ABCDEFGHIJKL @ABCDEFGHIJKLNoneNoneNoneNoneNoneMNMNMNNoneNone<OPQRSTUVWXYZOPQRSTUVWXYZ OPQRSTUVWXYZ None*[\]^_`abcdefghijklmnopqrstuvwxyz{|}~*[\]^_`abcdefghijklmnopqrstuvwxyz{|}~[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!None<"None#None<$None<%None&None<  'None< (None<               )None<*None<+None<  !"#$  !"#$ !"#$,None%&'()*+,-./012345%&'()*+,-./012345%&'()*+,-./012345-None!6789:;<= >?@ABCDEFGHIJKLMNOP!6789:;<= >?@ABCDEFGHIJKLMNOP6789:;<= >?@ABCDEFGHIJKLMNOP.None<QRSTUQRSTUQRSTU/None<VWXYZ[VWXYZ[VWXYZ[0None< \]^_`abcde \]^_`abcde \]^_`abcde1None< fghijklmnopq fghijklmnopq fghijklmnopq2None<rstuvwxyz{|}~rstuvwxyz{|}~rstuvwxyz{|}~3None<4None<5None<))  6None<7None<H       !"#$%&'()*+,-./0123456789:;<=H       !"#$%&'()*+,-./0123456789:;<=6         !"#$%&'()*+,-./0123456789:;<=8None<>?@ABCDEFGHIJKLMNOP>?@ABCDEFGHIJKLMNOP>?@ABCDEFGHIJKLMNOP9None QRSTUVWXY QRSTUVWXYQRSTUVWXYNone*4INpFrom the point of view of this library, a basic block is nothing more than an ordered sequence of operations.Every operation may reference multiple variables and/or specific physical registers. If a physical register is referenced, then that register is considered unavailable for allocation over the range of such references.Certain operations have special significance as to how basic blocks are organized, and the lifetime of allocations. Thus, if an operation begins or ends a loop, or represents a method call, it should be indicated using the  field. Indication of calls is necessary in order to save and restore all registers around a call, but indication of loops is optional, as it's merely avoids reloading of spilled variables inside loop bodies.Each variable has associated allocation details, and a flag to indicate whether it must be loaded into a register at its point of use. Variables are also distinguished by their kind, which allows for restricting the scope of their lifetime. For example, output variables are not needed in a basic block until the first point of use, while the lifetime of input variables extends until their final use.$Transform a list of basic blocks containing variable references, into an equivalent list where each reference is associated with a register allocation. Artificial save and restore instructions may also be inserted into blocks to indicate spilling and reloading of variables.In order to call this function, the caller must provide records that allow viewing and mutating of the original program graph.hIf allocation is found to be impossible -- for example if there are simply not enough registers -- a Z: value is returned, with a string describing the error.Q[\]^_`abcdefghijklmnopqrstuvwxyz{ !"#|}~$"Maximum number of registers to use%  !"#$%$   !"# ![ \]^_`abcdefgh ijklmnopqr stuvwxyz{ !"#|}~$:;<=>-?-@-A-B-C-D7E7F7G7HIIJKLMNOOPQRSTUVWWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~w wwwww      !"#$%&'()*+,-./0123456789:;<=w>?@ABCDEFGHIJKLMNOPQwRSTUVgWXYZ[af\`]^_`abcdefghijklmnopqrstuv w x y z { | } ~                                  !!!!!!!w!!!!!!!!!!!!!!""""w"""""""""""""""""""""#########D##############$$$$D$$w$$$$$$$$$$$%w%%%&&&&&&&w&&&&''''D''w''''''''(((( (D((w( ( ( ( (((((((((((((((())))w)* **!*"+#+$+++w+%+&+'+(,),*,w,+,,,-,.,/,0,1,2,3,4,5,6,7,8-I-9-:-O-;-<-W-=-X-Y-Z->-P-Q-R-S-T-U-J-K-L-M-N-?-@-A-B.C...w.D/E///F/G/H0I000w0J0K0L0M0N0O1P11Q1R1S1T1U1V1W1X1Y1Z2[2\22]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2q2r2s3t3u3v3w333w3x3y3z3{3|3}3~33334444w4444444444444444444444555555555555555555555555D55w5555555555555556666w66666666666666666666677777777777777777777777D77777777777777777777777777777 7 7 7 7 7777777777778888D888888 8!8"8#8$8%88&8'8(9)9*9+9,9-9.9/9091234))56789:;<=>[[]^_`abcd?@ABCDEFGHIJKLMNOPQRSTUVWXYZlinea_6DhFaDRuRm88lh9eBfdiq3 LinearScan Hask.UtilsLinearScan.ContextLinearScan.MaybeLinearScan.SpecifLinearScan.SsrLinearScan.SsrboolLinearScan.AsciiLinearScan.DatatypesLinearScan.LogicLinearScan.NonEmptyLinearScan.Prelude0LinearScan.SsrfunLinearScan.EqtypeLinearScan.SsrnatLinearScan.SeqLinearScan.IntSetLinearScan.List1LinearScan.IntMapLinearScan.ChoiceLinearScan.FintypeLinearScan.Vector0LinearScan.ContravariantLinearScan.GraphLinearScan.LibLinearScan.List0LinearScan.NatLinearScan.SsreflectLinearScan.TupleLinearScan.String0LinearScan.UsePosLinearScan.TraceLinearScan.RangeLinearScan.IntervalLinearScan.ScanStateLinearScan.MorphLinearScan.CursorLinearScan.SpillLinearScan.SplitLinearScan.AllocateLinearScan.FunctorLinearScan.ConstLinearScan.ApplicativeLinearScan.MonadLinearScan.BlocksLinearScan.ClassLinearScan.IdentityLinearScan.StateLinearScan.State0LinearScan.LoopsLinearScan.LensLinearScan.LiveSetsLinearScan.ResolveLinearScan.BuildLinearScan.VerifyLinearScan.AssignLinearScan.MainVarKindInput InputOutputTempOutputOpKindIsNormalIsCallIsBranchVarIdPhysReg UseVerifierVerifyDisabled VerifyEnabledVerifyEnabledStrict BlockInfoblockIdblockSuccessorssplitCriticalEdgeblockOps setBlockOpsOpInfoopKindopRefsmoveOpsaveOp restoreOp applyAllocsshowOp1VarInfovarIdvarKind regRequiredallocatetraceintMap_mergeWithKey'unconsvec_idvshiftinvreplacevmapvfoldl'vfoldl'_with_indexvmap_with_indexvnthvec_rectContextiaskcontextiputimapipureijoinibind fromMaybemaybeisJust option_map option_chooseCoq_sig2Coq_sig__prop Coq_pred_sort Coq_predTypePredType Coq_mem_predMem Coq_simpl_relCoq_simpl_predCoq_relCoq_pred Coq_reflectReflectTReflectFAny unsafeCoerceisSomeiffPidPandP coq_SimplPred pred_of_simplrel_of_simpl_rel mkPredType pred_of_memmemin_mempred_of_mem_pred Coq_asciiAsciinat_rect list_rectlist_reccoq_False_rect coq_False_reccoq_NonEmpty_rectcoq_NonEmpty_reccoq_NE_from_listflipconstapplylebf_Option__apply_Option__coq_default _Option__bindpcomps2val sig_of_sig2 Coq_sub_sort Coq_subTypeSubTypeEquality__Coq_sortEquality__Coq_typeEquality__Coq_mixin_ofEquality__MixinEquality__Coq_axiom _Equality__op_Equality__coq_classeq_opeqPeqbP bool_eqMixin bool_eqTypevalcoq_Subinsubinsubd sig_subType inj_eqAxiomval_eqP sig_eqMixin sig_eqTypepair_eqpair_eqP prod_eqMixin prod_eqTypeopt_eqopt_eqPoption_eqMixin option_eqTypesum_eqsum_eqP sum_eqMixin sum_eqTypeeqnP nat_eqMixin nat_eqType nat_of_boolodd double_recdoubleCoq_eqseq_class Coq_last_specLastNil LastRconsnilpheadrconslastbelastlastPlast_indfindcountalldropeqseqeqseqP seq_eqMixin seq_eqTypemem_seqpred_of_eq_seq seq_predTypeunduprempmapiotaflattenIntSet emptyIntSetcoq_IntSet_singletoncoq_IntSet_membercoq_IntSet_sizecoq_IntSet_insertcoq_IntSet_deletecoq_IntSet_unioncoq_IntSet_differencecoq_IntSet_foldlcoq_IntSet_forFoldcoq_IntSet_toListeqIntSet eqIntSetPcoq_IntSet_eqMixincoq_IntSet_eqTypeconcat maybeLookupforFoldforFoldr catMaybesspan partitioninsertsortByIntMap emptyIntMapcoq_IntMap_fromListcoq_IntMap_sizecoq_IntMap_lookupcoq_IntMap_altercoq_IntMap_insertcoq_IntMap_mapcoq_IntMap_mergeWithKeycoq_IntMap_foldlcoq_IntMap_foldrcoq_IntMap_foldlWithKeycoq_IntMap_foldrWithKeycoq_IntMap_toListcoq_IntMap_combineeqIntMap eqIntMapPcoq_IntMap_eqMixincoq_IntMap_eqTypecoq_IntMap_groupOnCountable__Coq_sortCountable__Coq_typeCountable__Coq_class_ofCountable__ClassCountable__Coq_mixin_ofCountable__MixinChoice__Coq_sortChoice__Coq_typeChoice__Coq_class_of Choice__ClassChoice__Coq_mixin_of _Choice__find _Choice__base_Choice__mixin_Choice__coq_class_Choice__InternalTheory__findcoq_PcanChoiceMixinsub_choiceMixinnat_choiceMixinnat_choiceType_Countable__pickle_Countable__unpickle_Countable__mixin_Countable__coq_classunpicklepicklecoq_PcanCountMixinsub_countMixinnat_countMixin nat_countTypeFinite__Coq_sortFinite__Coq_typeFinite__Coq_class_of Finite__ClassFinite__Coq_mixin_of Finite__Mixin_Finite__mixin_enum _Finite__base_Finite__mixin_Finite__coq_class_Finite__EnumDef__enum_Finite__EnumDef__enumDefenum_mem image_memordinal_subTypeordinal_eqMixinordinal_eqTypeordinal_choiceMixinordinal_choiceTypeordinal_countMixinord_enumordinal_finMixinordinal_finTypeord0inordVecvnilvsingvcons fin_contrafin_rect vecn_rect vec_to_seqvfoldr_with_indexvfoldl_with_indexvconstvmodify ContravariantGraph Build_Graphverticesedges emptyGraph addVertexaddEdge removeEdgeoutboundinbound removeVertextopsortfirstcurryUsePos Build_UsePos eqVarKind eqVarKindPcoq_VarKind_eqMixincoq_VarKind_eqTypeulocregRequvarupos_lehead_orSSTraceEIntersectsWithFixedIntervalESplitAssignedIntervalForRegESplitActiveOrInactiveIntervalEIntervalHasUsePosReqRegEIntervalBeginsAtSplitPositionEMoveUnhandledToActiveESplitActiveIntervalForRegESplitAnyInactiveIntervalForRegESpillIntervalESpillCurrentIntervalESplitUnhandledIntervalESplitCurrentIntervalETryAllocateFreeRegEAllocateBlockedRegERemoveUnhandledIntervalECannotInsertUnhandledEIntervalBeginsBeforeUnhandledENoValidSplitPositionECannotSplitSingletonERegisterAlreadyAssignedERegisterAssignmentsOverlapECannotModifyHandledIntervalEUnexpectedNoMoreUnhandledECannotSpillIfRegisterRequired$ECannotSpillIfRegisterRequiredBeforeEFuelExhaustedEUnhandledIntervalsRemainEActiveIntervalsRemainEInactiveIntervalsRemainENotYetImplemented TrueIfActiveTSplitPositionT BeforePosTEndOfLifetimeHoleTSpillConditionT NewToHandledTUnhandledToHandledTActiveToHandledTInactiveToHandledTPhysRegT IntervalIdT BoundedRange SubRangesOf SortedRanges RangeDescBuild_RangeDescrbegrendups head_or_end getRangeDesc packRangecoq_Range_shiftcoq_Range_cons range_ltncoq_SortedRanges_cattransportSortedRangesfindRangeUsePos rangeSpanemptyBoundedRangeSubIntervalsOf IntervalDescBuild_IntervalDescivaribegiendrdsgetIntervalDesc packInterval intervalStart intervalEndposWithinIntervalfindIntervalUsePos lookupUsePos nextUseAfterrangeFirstUsePos firstUsePosafterLifetimeHolefirstUseReqRegintervalsIntersectintervalIntersectsWithSubrangedivideIntervalRangessplitIntervalRanges splitInterval ScanStateSigScanStateStatusPendingInUse IntervalId ScanStateDescBuild_ScanStateDescFixedIntervalsType nextInterval intervalsfixedIntervals unhandledactiveinactivehandled handledIdssortRegisterVectorregisterWithHighestPoshandledIntervalDescsForRegverifyNewHandled packScanStateSStateSSInfo Build_SSInfothisDescerror_withScanStatePOliftLenstrengthenHasLenmoveUnhandledToHandledmoveUnhandledToActivemoveActiveToHandledmoveActiveToInactivemoveInactiveToActivemoveInactiveToHandledcurId curIntDetails withCursorSpillCondition NewToHandledUnhandledToHandledActiveToHandledInactiveToHandledcoq_SpillConditionToToptimalSplitPosition spillIntervalspillCurrentInterval SplitPosition BeforePosEndOfLifetimeHolecoq_SplitPositionToT splitPositionsplitUnhandledIntervalsplitCurrentIntervalsplitActiveOrInactiveIntervalsplitAssignedIntervalForRegsplitActiveIntervalForRegsplitAnyInactiveIntervalForReg AllocationBuild_AllocationCoq_intermediate_resultCoq_int_reg_seqintersectsWithFixedIntervalupdateRegisterPosfindEligibleRegistertryAllocateFreeRegallocateBlockedRegmorphlen_transportmt_fstgoActivedep_foldl_invEcheckActiveIntervalsmoveInactiveToActive' goInactivecheckInactiveIntervalshandleIntervalfinalizeScanState_obligation_1finalizeScanState walkIntervalsintValintRegdetermineAllocationsFunctorfmapConstcoq_Const_Functorcoq_Const_Contravariant ApplicativeBuild_Applicative is_functorpureapliftA2Monad Build_Monadis_applicativejoinbindreturn_whenunlessmapMmapM_forM_foldMforFoldMfoldrM forFoldrM concatMapMBuild_BlockInfoBlockId Build_OpInfoOpId Build_VarInfo nat_of_varId allBlockOps blockSizefoldOpscountOps MonadTransliftIdentitycoq_Identity_Functorcoq_Identity_Applicativecoq_Identity_MonadStategetgetsmodifycoq_State_Functorcoq_State_Applicativecoq_State_MonadStateTgetTputTmodifyTcoq_StateT_Functor coq_StateT_apcoq_StateT_Applicativecoq_StateT_joincoq_StateT_Monadcoq_StateT_MonadTrans liftStateT LoopStateBuild_LoopState activeBlocks visitedBlocksloopHeaderBlocks loopEndBlocksforwardBranchesbackwardBranches loopIndices loopDepthsemptyLoopStatemodifyActiveBlocksmodifyVisitedBlocksmodifyLoopHeaderBlocksmodifyLoopEndBlocksmodifyForwardBranchesmodifyBackwardBranchessetLoopIndices setLoopDepths addReferencepathToLoopHeadercomputeLoopDepthscomputeVarReferences findLoopEndscomputeBlockOrderGettingGetterLens'Lenssetoverview stepdownl' stepdowng_1_2use plusStateT modifyStateT applyStateT BlockLiveSetsBuild_BlockLiveSets blockLiveGen blockLiveKill blockLiveIn blockLiveOutblockFirstOpId blockLastOpIdemptyBlockLiveSetseqBlockLiveSetseqBlockLiveSetsPcoq_BlockLiveSets_eqMixincoq_BlockLiveSets_eqType _blockLiveGen_blockLiveKill _blockLiveIn _blockLiveOut_blockFirstOpId_blockLastOpIdcomputeLiveSetscomputeLocalLiveSetsupdateLiveSetscomputeGlobalLiveSets computeGlobalLiveSetsRecursively BlockMovesResolvingMoveSetRSMoveRSSpill RSRestore RSAllocReg RSFreeReg RSAssignReg RSClearReg RSAllocStack RSFreeStackRSLooped ResolvingMoveMoveSpillRestoreAllocRegFreeReg AssignRegClearReg AllocStack FreeStackLoopedcoq_ResolvingMove_rectweakenResolvingMoveeqResolvingMoveeqResolvingMovePcoq_ResolvingMove_eqMixincoq_ResolvingMove_eqTypeshouldAddResolvingEdge addResolutionaddResolutionsisMoveSplittable splitMoveresolvingMovesdetermineMovescheckBlockBoundaryresolveDataFlow PendingRanges BuildState newBuildStateemptyPendingRangescoq_BoundedRange_leqcompilePendingRangesrangesToBoundedRangescompressPendingRangesmergeIntoSortedRangesupos_before_rend makeNewRange makeUsePoshandleOutputVar handleVarhandleVars_combinehandleVars_onlyRangeshandleVars_onlyVars handleVarsreduceOp reduceBlock reduceBlockscompileIntervalsbuildIntervalsVerified VerifiedSigBuild_VerifiedSig RegStateSig AllocErrorVarNotAllocatedVarNotResidentVarNotResidentForRegVarNotReservedForRegStackNotAllocatedForVarStackAlreadyAllocatedForVarPhysRegAlreadyReservedForVarRegAlreadyReservedToVarBlockWithoutPredecessorsAllocationDoesNotMatchUnknownPredecessorBlockLoopInResolvingMovesRegStateDescSetBuild_RegStateDescSet RegStateDescBuild_RegStateDescRegAllocationsrsAllocsrsStackfromRegStateDesc residency reservationnewRegStateDesc packRegStateverDescverInitverFinalverMoves verErrorsverExtnewVerifiedSig_verDesc _verState_verInit _verFinal _verMoves _verErrors_verExterrorsTerrorTaddMove allocationsAt allocationForcheckAllocation reserveReg isReservedcheckReservation releaseRegclearReg assignReg isResidentcheckResidencyisStackAllocated checkStack allocStack freeStackverifyBlockBeginverifyBlockEnd verifyAllocsverifyResolutionsverifyTransitions AssnStateDescBuild_AssnStateDescassnOpId assnBlockBeg assnBlockEndnewAssnStateDesc _assnOpId _assnBlockBeg _assnBlockEnd generateMoves varAllocs varInfoAllocssetAllocations considerOps assignRegNumDetails Build_DetailsScanStateDescSetBuild_ScanStateDescSet FinalStageBuildingIntervalsFailedAllocatingRegistersFailedtoScanStateDescSet linearScanbase Data.EitherLeftreasonliveSets _inputBlocks orderedBlocksallocatedBlocks scanStatePre scanStatePost blockInfoopInfo loopState _nextInterval allocations coqFunctorcoqApplicativecoqMonad fromVarInfo fromOpInfo showIntervalshowIntervalDesc showRangesshowUsePositionstoScanStateDesc toLoopState showBlock1 opContextshowOps1 showBlocks1 fromBlockInfo showSplit showDetails toDetails$fShowSplitPositionT$fShowSpillConditionT$fShowResolvingMoveSet$fShowRegStateDescSet$fShowLoopState$fShowScanStateDesc