- 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
17 lines
265 B
LLVM
17 lines
265 B
LLVM
; %p is moved into %q and then used again.
|
|
; 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 []
|
|
|
|
entry:
|
|
%q = move %p
|
|
%r = move %p
|
|
ret %r
|