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

+2
View File
@@ -330,6 +330,8 @@ fn runSeed(arena: std.mem.Allocator, module: aji.air.Module, want: Expect.Run, h
.quantum = header.quantum,
.task_limit = header.task_limit,
.collect_every_step = collect_every_step and k == 1,
// Every run test also checks the verifier's DRF guarantee (spec 04 §21).
.detect_races = true,
.schedule_seed = schedule_seed,
}) catch |err| switch (err) {
error.EntryNotFound => return .{ .outcome = .fail, .detail = "module has no @main whose parameters are all capabilities" },