R>Q     None  !"#$%&'  !"#$%&'  !"#$%&'None()*+,-.()*+,-.()*+,-.None/0123456789:;<=/0123456789:;<=/0123456789:;<=None>?>?>?None@ABCDEFGHIJKLMNOP@ABCDEFGHIJKLMNOP@ABCDEFGHIJKLMNOPNoneQRQRQRNone *+-./02345689:;=?BCDGHJKMSTUVWXYZ[\]^_`abcdefghSTUVWXYZ[\]^_`abcdefghSTUVWXYZ[]\^_`abcdefgh None None *+-./02345689:;=?BCDGHJKMiii Nonejklmjklmjklm None *+-./02345689:;=?BCDGHJKMnopqrstuvwxyz{|}~nopqrstuvwxyz{|}~nopqrstuvwxyz{|}~ NoneNoneNone *+-./02345689:;=?BCDGHJKMNone *+-./02345689:;=?BCDGHJKMNone *+-./02345689:;=?BCDGHJKMNoneNone *+-./02345689:;=?BCDGHJKM       !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~       !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~        !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~None *3HM pFrom 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 : value is returned, with a string describing the error.        !"#$$%&'()**+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnoVpqrstuvwx o y z { | } ~       o V V VooVo627$*oV      !"#+,-$%&'%&'()() !"#*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~linearscan-0.2.0.0 LinearScanLinearScan.UtilsLinearScan.IStateLinearScan.StateLinearScan.LogicLinearScan.RangeLinearScan.SpecifLinearScan.SsrboolLinearScan.NonEmpty0LinearScan.Vector0LinearScan.SsrfunLinearScan.EqtypeLinearScan.LibLinearScan.IntervalLinearScan.SsrnatLinearScan.FintypeLinearScan.SeqLinearScan.DatatypesLinearScan.MainOpKind IsLoopEnd IsLoopBeginIsBranchIsCallIsNormalVarKindOutputTempInputPhysReg BlockInfoblockIdblockSuccessorsblockOps setBlockOpsOpInfoopKindopRefssaveOp restoreOp applyAllocsVarInfovarIdvarKind regRequiredallocatetraceboundedTransport'snocset_nthvmapvfoldl'vfoldl'_with_indexnth list_rectunconsIStateierrigetiputimapipureijoinStategetputmodifyjoinfmapbindpureapliftA2mapMfoldMforFoldMconcat concatMapMcoq_False_rect coq_False_rec RangeDescBuild_RangeDescUsePosSublistsOfUsePos Build_UsePos__ulocregReq usePosSpanrbegrendupsrangesIntersectrangeIntersectionPointfindRangeUsePosmakeDividedRange rangeSpanCoq_sig2Coq_sig Coq_pred_sort Coq_predTypePredType Coq_mem_predMem Coq_simpl_relCoq_relCoq_pred Coq_reflectReflectFReflectT unsafeCoerceisSomeiffPidPandPrel_of_simpl_rel mkPredType pred_of_memmemin_mem_Option__apply_Option__coq_default _Option__bind _Option__map Coq_sub_sort Coq_subTypeSubTypeEquality__Coq_sortEquality__Coq_typeEquality__Coq_mixin_ofEquality__MixinEquality__Coq_axiom_Equality__mixin_of_rect_Equality__mixin_of_rec _Equality__op_Equality__type_rect_Equality__type_rec_Equality__coq_class_Equality__pack_Equality__cloneeq_opeqPval inj_eqAxiomval_eqPpair_eqpair_eqP prod_eqMixin prod_eqTypeopt_eqopt_eqPoption_eqMixin option_eqType option_map option_chooseforFoldfoldl_with_index dep_foldl_invdep_foldl_invE SplitPositionEndOfLifetimeHoleBeforeFirstUsePosReqReg BeforePos IntervalDescBuild_IntervalDesc IntervalKind RightMostMiddleLeftMostWhole splitKindivaribegiendikndrdsgetIntervalDesc packInterval intervalStart intervalEndintervalCoversPosintervalsIntersectintervalIntersectionPointfindIntervalUsePos nextUseAfter firstUsePosfirstUseReqReg splitPosition intervalSpaneqnP nat_eqMixin nat_eqTypeiter nat_of_bool double_recdoubleordinal_subTypeordinal_eqMixinordinal_eqTypeCoq_eqseq_classnconsnseqlastbelastcountcatrevrevmem_seqpred_of_eq_seq seq_predTypeundupremCoq_intermediate_resultCoq_int_reg_seqSStateSSInfo Build_SSInfo AssnState AssnStateInfoBuild_AssnStateInfo InsertPosAtEndAtBegin BlockLiveSetsBuild_BlockLiveSetsOpId BuildStateBuild_BuildState BoundedRangeBuild_BlockInfoBlockId Build_OpInfo Build_VarInfoVarId ScanStateSigScanStateStatusInUsePending IntervalId ScanStateDescBuild_ScanStateDescCoq_fixedIntervalsTypeSSErrorEUnexpectedNoMoreUnhandledEFuelExhaustedERegisterAssignmentsOverlapERegisterAlreadyAssignedENoIntervalsToSplitECannotSplitAssignedSingletonECannotSplitSingletonMyMachine__PhysReg_MyMachine__maxReg_MyMachine__regSizemaxRegregSizecoq_SSError_rectcoq_SSError_recstbinderror_return_coq_ScanStateDesc_rectcoq_ScanStateDesc_rec nextInterval intervalsfixedIntervals unhandledactiveinactivehandled unhandledIds activeIds inactiveIds handledIdsall_state_listsregisterWithHighestPosisWithinlookupIntervallookupRegistercoq_ScanStateStatus_rectcoq_ScanStateStatus_recgetScanStateDesc packScanStatecoq_ScanStateCursor_rectcoq_ScanStateCursor_reccurId curIntDetails curPositioncoq_VarKind_rectcoq_VarKind_reccoq_VarInfo_rectcoq_VarInfo_reccoq_OpKind_rectcoq_OpKind_reccoq_OpInfo_rectcoq_OpInfo_reccoq_BlockInfo_rectcoq_BlockInfo_rectransportBoundedRangecoq_BuildState_rectcoq_BuildState_recbsPosbsVarsbsRegsfoldOpscountOps foldOpsRevprocessOperationscomputeBlockOrdernumberOperationscoq_BlockLiveSets_rectcoq_BlockLiveSets_rec blockLiveGen blockLiveKill blockLiveIn blockLiveOutblockFirstOpId blockLastOpIdcoq_IntMap_rectcoq_IntMap_recunionrelative_complementcomputeLocalLiveSetscomputeGlobalLiveSetsbuildIntervalscoq_InsertPos_rectcoq_InsertPos_receqacteqactP act_eqMixin act_eqTypecoq_InsertPos_eqTyperesolveDataFlowcoq_AssnStateInfo_rectcoq_AssnStateInfo_recassnOpIdassnAccsaveOpM restoreOpMpairMsavesAndRestores collectAllocs doAllocationsresolveMappings considerOps assignRegNumcoq_SSMorph_rectcoq_SSMorph_reccoq_SSMorphLen_rectcoq_SSMorphLen_reccoq_SSMorphHasLen_rectcoq_SSMorphHasLen_reccoq_SSInfo_rectcoq_SSInfo_recthisDesc thisHolds withScanStatewithScanStatePOliftLen weakenHasLen_strengthenHasLen withCursormoveUnhandledToActivemoveActiveToHandledmoveActiveToInactivemoveInactiveToActivemoveInactiveToHandled splitIntervalsplitCurrentIntervalsplitAssignedIntervalForRegsplitActiveIntervalForRegsplitAnyInactiveIntervalForRegintersectsWithFixedIntervalupdateRegisterPostryAllocateFreeRegallocateBlockedRegmorphlen_transportmt_fstgoActivecheckActiveIntervalsmoveInactiveToActive' goInactivecheckInactiveIntervalshandleInterval walkIntervals linearScanbase Data.EitherLeft fromVarInfo fromOpInfo fromBlockInfo