verifier: resource limits, CFG, SSA dominance and types (P0-7..P0-10)

- verifier.zig: staged pipeline per spec 07 §8.6, deterministic order
- budget.zig: fixed limits from spec 08 §7 (E5101)
- cfg.zig: terminators, branch arity, switch/enum.switch shape (E5002)
- ssa.zig: Cooper-Harvey-Kennedy dominators, use dominance (E5001)
- types.zig: operand/result types, casts, calls, returns, recursive
  aggregates (E1001, E1002, E1003)
- check.zig runs parse -> verify; seed conformance tests get module
  headers; tests for unimplemented phases report PENDING
This commit is contained in:
dev committed 2026-10-04 12:24:41 +03:00
1 parent ef6a2c5475
commit 50bf990355
14 files changed
+892 -11

No files matched your search

+3
View File
@@ -107,6 +107,9 @@ fn runOne(arena: std.mem.Allocator, path: []const u8, source: []const u8) !Resul
const header = parseHeader(arena, source) catch |err|
return .{ .outcome = .fail, .detail = try std.fmt.allocPrint(arena, "bad header: {t}", .{err}) };
if (header.phase > aji.implemented_phase)
return .{ .outcome = .pending, .detail = try std.fmt.allocPrint(arena, "phase {d} not implemented", .{header.phase}) };
// Blank header lines (keeping newlines) so spans in diagnostics stay accurate
// and the AIR grammar does not have to know about test metadata.
const body = try arena.dupe(u8, source);