conformance: source/AIR equivalence does not compare schedule.choices
This commit is contained in:
1 parent
179dee3c3a
commit
609b6bf86e
1 file changed
+7
-1
@@ -214,8 +214,14 @@ fn equivalentRun(arena: std.mem.Allocator, io: std.Io, dir: std.Io.Dir, ref: []c
|
|||||||
.quantum = header.quantum,
|
.quantum = header.quantum,
|
||||||
.task_limit = header.task_limit,
|
.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);
|
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();
|
rec.* = w.written();
|
||||||
if (outcome == .trapped) code.* = outcome.trapped.code.id;
|
if (outcome == .trapped) code.* = outcome.trapped.code.id;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user