def position(interval, slot):
    if not slot or not interval:
        raise ValueError('@cutoff_slot: wrong parameters')
    if slot[0] > slot[1]:
        raise ValueError('@cutoff_slot: slot[0] > slot[1]')
    if interval[0] > interval[1]:
        raise ValueError('@cutoff_slot: interval[0] > interval[1]')

    r0_p = py_datetime.combine(interval[0].date(), slot[0].timetz())
    r1_p = r0_p + (slot[1] - slot[0])

    if r1_p < interval[0]:
        r0_p += py_timedelta(days=1)
        r1_p += py_timedelta(days=1)

    return r0_p, r1_p
List the variables used (read or written) by the instruction.
dataset/ETHPy150Open satnet-project/server/services/common/slots.py/position--crossover with--dataset/ETHPy150Open numba/numba/numba/ir.py/Inst.list_vars