public static LiveRange<?>[] getLiveRanges(List<Variable<?>> liveVariables) {
Collection<Variable<?>> lv = liveVariables;
LiveRange<?>[] liveRanges = new LiveRange[lv.size()];
int i = 0;
for (Variable<?> var : lv) {
LiveRange<?> range = new LiveRange(var);
liveRanges[i++] = range;
}
return liveRanges;
}