- spec 08 §7.1: platform-independent accounted size table shared by max_value_size and max_local_frame; enum tag is the smallest of 1/2/4/8 bytes; borrows 8, slices 16; checked arithmetic, overflow is E5101 with found = "overflow" - every materializable type in a module must be at most 1 MiB, checked before functions are verified; each oversized type reported once - E5101 fields no longer truncate huge sizes - conformance: frame_too_large, value_too_large, size_overflow - Q-020 resolved; Phase 1 closed
17 lines
393 B
LLVM
17 lines
393 B
LLVM
; Three locals of 400 KiB: each value fits max_value_size, the frame exceeds max_local_frame.
|
|
; expect: reject E5101
|
|
; phase: 1
|
|
; spec: docs/spec/08-verifier.md
|
|
module test.frame_too_large
|
|
air 0
|
|
lang 0.1
|
|
features [arrays, ownership]
|
|
|
|
fn @f() -> void
|
|
effects []
|
|
entry:
|
|
%a = local.alloc array<u8, 409600>
|
|
%b = local.alloc array<u8, 409600>
|
|
%c = local.alloc array<u8, 409600>
|
|
ret
|