verifier: evaluate type sizes with explicit continuations
This commit is contained in:
1 parent
c94e5a0868
commit
3906ce5a9b
11 files changed
+353
-54
No files matched your search
@@ -0,0 +1,8 @@
|
||||
// Preserve zero-sized leaves and real overflow through many array wrappers.
|
||||
// expect: reject E5101
|
||||
// phase: 6
|
||||
// spec: docs/spec/08-verifier.md §7.1; docs/spec/15-source-language.md §10
|
||||
// AIR twin: phase1/reject/overflowing_array_chain.air
|
||||
module test.overflowing_array_chain
|
||||
fn unused(data: [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[u64; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]) -> void effects [] {} // diagnostic here: fn unused
|
||||
fn main() -> void effects [] {}
|
||||
@@ -0,0 +1,8 @@
|
||||
// Preserve zero-sized leaves and real overflow through many array wrappers.
|
||||
// expect: accept
|
||||
// phase: 6
|
||||
// spec: docs/spec/08-verifier.md §7.1; docs/spec/15-source-language.md §10
|
||||
module test.zero_size_array_chain
|
||||
struct Empty {}
|
||||
fn unused(data: [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[Empty; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]; 4294967296]) -> void effects [] {}
|
||||
fn main() -> void effects [] {}
|
||||
Reference in new issue
Block a user