interp: evaluate cache-free nominal sizes without recursion

This commit is contained in:
dev committed 2026-10-10 11:05:22 +03:00
1 parent c9064418bd
commit 897f538840
7 files changed
+218 -43

No files matched your search

+1 -1
View File
@@ -367,7 +367,7 @@ test "cached predicates match uncached derivations on mixed acyclic graphs" {
if (before) |b| try std.testing.expect(b.eql(after.?));
}
var memo: @import("../verifier/budget.zig").SizeMemo = .{ .arena = a };
for ([_]usize{ 0, 1, 5, 6 }) |depth| try std.testing.expectEqual(@import("../verifier/budget.zig").accountedSize(m, t, depth), try memo.size(m, t, depth));
for ([_]usize{ 0, 1, 5, 6 }) |depth| try std.testing.expectEqual(try @import("../verifier/budget.zig").accountedSize(a, m, t, depth), try memo.size(m, t, depth));
}
}
}