def choose
import stelliferous@0.0.2.0/kernel_band_planning.bend as KernelBandPlanningimport Base
78def choose(allowed: Bool,depth: U32,parallel: Bool,+time: F32,best: Plan) -> Plan:
79 Plan{old_depth,old_parallel,+old_time} = best
80 Bool.pick(Plan,allowed && F32.is_lt(time,old_time),Plan{depth,parallel,time},Plan{old_depth,old_parallel,old_time})