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; }