solve-residency ( nodes edges -- plan )


Vocabulary
compiler.cfg.register-allocation.greedy.regions

Inputs
nodesan object
edgesan object


Outputs
planan object


Definition


:: solve-residency ( nodes edges -- plan )
nodes edges <residency-network>
:> network 0 :> cost! network residual-search :> reached!
[ network sink>> reached key? ] [
reached network augment-residual cost +
cost! network residual-search reached!
] while nodes length <iota> [ reached key? ] map
cost residency-plan boa ;