Phase 5: race detector (P5-6) and the atomic_stats reference program (P5-9b)

Dynamic data-race detector for ordinary memory: vector clocks are the
task-keyed part of the weak-memory views, so happens-before follows every
synchronization edge already modelled; per-cell shadows with path
granularity. Enabled for every conformance run test (433, no false
positive); a unit test shows an unverified racy program caught on every
schedule. Reference program atomic_stats in .aji and hand-written AIR by an
independent author (equivalent:, 30 schedule seeds). Author feedback:
07a clarifications; Q-025 (no array construction) logged.
This commit is contained in:
dev committed 2026-10-06 08:11:25 +03:00
1 parent 4242132b2a
commit 0879b9497b
10 files changed
+481 -10

No files matched your search

+5
View File
@@ -27,6 +27,7 @@ Status values: `open`, `resolved`.
| Q-019 | resolved | P3 | Non-terminating programs in test tooling |
| Q-020 | resolved | P2 | Size bound for SSA array values |
| Q-024 | resolved | P5 | Memory-model clarifications found by the independent oracle |
| Q-025 | open | — | No array construction from element values in AIR |
## Q-001 — Text AIR grammar
@@ -197,3 +198,7 @@ Points 1–3 and 5 are editorial. Point 4 fixes FIFO, which spec 04 §38 already
- capacity-based synchronization would be a separate feature by RFC.
5. The C++20 release sequence, stated explicitly.
## Q-025 — No array construction from element values in AIR
Found by the independent author of `program_atomic_stats.air` (P5-9b). AIR has `array.splat` but no way to build an array from distinct element values. A six-element constant array costs a mutable borrow, six `borrow.index`/`store`/`borrow.end` triples and six index constants. `.aji` has the same gap: it has `[e; N]` but no array literal. The options are an `array.make T (%a, %b, …)` instruction (a value constructor like `struct.make`) with an `.aji` literal `[a, b, c]`, or no change. This is a convenience question, not a correctness one. It is not urgent, and any RFC for it must report its agent-complexity cost.