013 recovery exactness

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

--- bridge open
open(a.txt)
  open a: held=1
open(b.txt)
  open b: held=2
close-file() ran for 'a.txt'
  close a: held=1
--- hang up; only b.txt may be released
close-file() ran for 'b.txt'
[BRIDGE] Invoked 'close-file' for handle 'b.txt' [main:opened]
--- done

Expected output

--- bridge open
open(a.txt)
  open a: held=1
open(b.txt)
  open b: held=2
close-file() ran for 'a.txt'
  close a: held=1
--- hang up; only b.txt may be released
close-file() ran for 'b.txt'
[BRIDGE] Invoked 'close-file' for handle 'b.txt' [main:opened]
--- done

Flows

flow ~register click a branch to expand · @labels scroll to their anchor
register (scope: "files", source: open(10) close-file(1))
subflow ~run-turn click a branch to expand · @labels scroll to their anchor
run (br, source)
flow ~create click a branch to expand · @labels scroll to their anchor
create (id: "exactness", scope: "files")

Test Configuration

MUST_RUN