interp: evaluate cache-free nominal sizes without recursion
This commit is contained in:
1 parent
c9064418bd
commit
897f538840
7 files changed
+218
-43
No files matched your search
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user