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:
1 parent
ef6a2c5475
commit
50bf990355
14 files changed
+892
-11
No files matched your search
@@ -2,6 +2,11 @@
|
||||
; expect: accept
|
||||
; phase: 0
|
||||
; spec: docs/spec/07-air.md
|
||||
module test.loop_block_params
|
||||
air 0
|
||||
lang 0.1
|
||||
features []
|
||||
|
||||
fn @count(%n: u64) -> u64
|
||||
effects []
|
||||
|
||||
|
||||
@@ -2,6 +2,11 @@
|
||||
; expect: accept
|
||||
; phase: 0
|
||||
; spec: docs/spec/07-air.md
|
||||
module test.sum
|
||||
air 0
|
||||
lang 0.1
|
||||
features []
|
||||
|
||||
fn @sum(%a: u64, %b: u64) -> u64
|
||||
effects []
|
||||
|
||||
|
||||
@@ -2,6 +2,11 @@
|
||||
; expect: reject E5002
|
||||
; phase: 0
|
||||
; spec: docs/spec/07-air.md
|
||||
module test.missing_terminator
|
||||
air 0
|
||||
lang 0.1
|
||||
features []
|
||||
|
||||
fn @f(%a: u64) -> u64
|
||||
effects []
|
||||
|
||||
|
||||
@@ -2,6 +2,11 @@
|
||||
; expect: reject E1001
|
||||
; phase: 0
|
||||
; spec: docs/spec/02-types-and-values.md
|
||||
module test.operand_type_mismatch
|
||||
air 0
|
||||
lang 0.1
|
||||
features []
|
||||
|
||||
fn @f(%a: u64, %b: u32) -> u64
|
||||
effects []
|
||||
|
||||
|
||||
@@ -2,6 +2,11 @@
|
||||
; expect: reject E5001
|
||||
; phase: 0
|
||||
; spec: docs/spec/07-air.md
|
||||
module test.undefined_value
|
||||
air 0
|
||||
lang 0.1
|
||||
features []
|
||||
|
||||
fn @f(%a: u64) -> u64
|
||||
effects []
|
||||
|
||||
|
||||
@@ -2,6 +2,11 @@
|
||||
; expect: reject E2001
|
||||
; phase: 1
|
||||
; spec: docs/spec/03-memory-model.md
|
||||
module test.use_after_move
|
||||
air 0
|
||||
lang 0.1
|
||||
features []
|
||||
|
||||
fn @f(%p: Own<u64>) -> Own<u64>
|
||||
effects []
|
||||
|
||||
|
||||
Reference in new issue
Block a user