kill_loop-tree.ai 253 Bytes
sink: "{ S[] -> a[] }"
must_source: "{ T[i] -> a[] : 0 <= i <= 9 }"
kill: "{ T[9] -> a[] }"
schedule:
  domain: "{ T[i]; S[] }"
  child:
    sequence:
    - filter: "{ T[i] }"
      child:
        schedule: "[{ T[i] -> [(i)] }]"
    - filter: "{ S[] }"