pressure-victims ( residents demanded distances capacity -- victims )


Vocabulary
compiler.cfg.register-allocation.chordal.spilling.residency

Inputs
residentsan object
demandedan object
distancesan object
capacityan object


Outputs
victimsan object


Definition


:: pressure-victims
( residents demanded distances capacity -- victims )
demanded members :> protected protected length capacity >
[ protected capacity impossible-register-pressure ] when
residents protected union length capacity - 0 max
:> excess excess zero?
[ { } ] [
residents protected diff
[ distances eviction-priority ] sort-by
<reversed> excess head
] if ;