P6A-7 for the freeze: three reference programs in source; source construct coverage

- programs/parallel_map, channel_transfer, tcp_echo_tasks: the Phase 3 exit
  programs in .aji, with AIR equivalence on every schedule seed
- tools/source_coverage.py: every .aji construct (56) has a run/accept test
  and, where it rejects, a reject test; CI step
- gaps filled: wrapping arithmetic run test, break outside a loop (E7006),
  close_receiver without pending (E7004)
- plan: P6A-7 freeze criterion (owner decision); further twins gradually
This commit is contained in:
dev committed 2026-10-05 18:15:48 +03:00
1 parent 748eddf4e5
commit 591f0aea19
9 files changed
+372 -1

No files matched your search

@@ -0,0 +1,20 @@
// channel.close_receiver can hand the receiver back on `pending`: the match handles it.
// expect: reject E7004
// phase: 6
// spec: docs/spec/15-source-language.md
module demo.closemissingpending
fn main(heap: cap<mem.alloc>) -> u64
effects [mem.alloc]
{
match channel.make<u64>(1, heap) {
ok(tx, rx) => {
channel.close_sender(move tx);
match channel.close_receiver(move rx) {
ok => {}
}
0
}
err(e) => { trap; }
}
}