From 609b6bf86e3182f1d1bb5db5e1452256beb5514b Mon Sep 17 00:00:00 2001 From: "A.Shakhmatov" Date: Mon, 5 Oct 2026 17:55:35 +0300 Subject: [PATCH] conformance: source/AIR equivalence does not compare schedule.choices --- tools/conformance.zig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/conformance.zig b/tools/conformance.zig index e362739..6d44ccf 100644 --- a/tools/conformance.zig +++ b/tools/conformance.zig @@ -214,8 +214,14 @@ fn equivalentRun(arena: std.mem.Allocator, io: std.Io, dir: std.Io.Dir, ref: []c .quantum = header.quantum, .task_limit = header.task_limit, }); + // The number of scheduler choices depends on the instruction stream + // (the quantum counts AIR instructions), which the frontend may lay + // out differently; it is trace metadata, not program behaviour. The + // schedule's seed and quantum are compared. + var out = output; + if (out.schedule) |*sch| sch.choices = 0; var w: std.Io.Writer.Allocating = .init(arena); - try aji.interp.writeOutcome(m, outcome, output, &w.writer); + try aji.interp.writeOutcome(m, outcome, out, &w.writer); rec.* = w.written(); if (outcome == .trapped) code.* = outcome.trapped.code.id; }