{ "source_filename": "tests/testsuite/proposals/wasm-3.0/array_init_data.wast", "commands": [ { "type": "assert_invalid", "line": 6, "filename": "array_init_data.0.wasm", "module_type": "binary", "text": "array is immutable" }, { "type": "assert_invalid", "line": 19, "filename": "array_init_data.1.wasm", "module_type": "binary", "text": "array type is not numeric or vector" }, { "type": "module", "line": 31, "filename": "array_init_data.2.wasm", "module_type": "binary" }, { "type": "assert_trap", "line": 68, "action": { "type": "invoke", "field": "array_init_data-null", "args": [] }, "text": "null array reference" }, { "type": "assert_trap", "line": 71, "action": { "type": "invoke", "field": "array_init_data", "args": [ { "type": "i32", "value": "13" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "0" } ] }, "text": "out of bounds array access" }, { "type": "assert_trap", "line": 72, "action": { "type": "invoke", "field": "array_init_data", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "13" }, { "type": "i32", "value": "0" } ] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 75, "action": { "type": "invoke", "field": "array_init_data", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "13" } ] }, "text": "out of bounds array access" }, { "type": "assert_trap", "line": 76, "action": { "type": "invoke", "field": "array_init_data", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "13" } ] }, "text": "out of bounds array access" }, { "type": "assert_trap", "line": 77, "action": { "type": "invoke", "field": "array_init_data_i16", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "7" } ] }, "text": "out of bounds array access" }, { "type": "assert_return", "line": 80, "action": { "type": "invoke", "field": "array_init_data", "args": [ { "type": "i32", "value": "12" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "0" } ] }, "expected": [] }, { "type": "assert_return", "line": 81, "action": { "type": "invoke", "field": "array_init_data", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "12" }, { "type": "i32", "value": "0" } ] }, "expected": [] }, { "type": "assert_return", "line": 82, "action": { "type": "invoke", "field": "array_init_data_i16", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "6" }, { "type": "i32", "value": "0" } ] }, "expected": [] }, { "type": "assert_return", "line": 85, "action": { "type": "invoke", "field": "array_get_nth", "args": [ { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_return", "line": 86, "action": { "type": "invoke", "field": "array_get_nth", "args": [ { "type": "i32", "value": "5" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_return", "line": 87, "action": { "type": "invoke", "field": "array_get_nth", "args": [ { "type": "i32", "value": "11" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_trap", "line": 88, "action": { "type": "invoke", "field": "array_get_nth", "args": [ { "type": "i32", "value": "12" } ] }, "text": "out of bounds array access" }, { "type": "assert_return", "line": 89, "action": { "type": "invoke", "field": "array_get_nth_i16", "args": [ { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_return", "line": 90, "action": { "type": "invoke", "field": "array_get_nth_i16", "args": [ { "type": "i32", "value": "2" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_return", "line": 91, "action": { "type": "invoke", "field": "array_get_nth_i16", "args": [ { "type": "i32", "value": "5" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_trap", "line": 92, "action": { "type": "invoke", "field": "array_get_nth_i16", "args": [ { "type": "i32", "value": "6" } ] }, "text": "out of bounds array access" }, { "type": "assert_return", "line": 95, "action": { "type": "invoke", "field": "array_init_data", "args": [ { "type": "i32", "value": "4" }, { "type": "i32", "value": "2" }, { "type": "i32", "value": "2" } ] }, "expected": [] }, { "type": "assert_return", "line": 96, "action": { "type": "invoke", "field": "array_get_nth", "args": [ { "type": "i32", "value": "3" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_return", "line": 97, "action": { "type": "invoke", "field": "array_get_nth", "args": [ { "type": "i32", "value": "4" } ] }, "expected": [ { "type": "i32", "value": "99" } ] }, { "type": "assert_return", "line": 98, "action": { "type": "invoke", "field": "array_get_nth", "args": [ { "type": "i32", "value": "5" } ] }, "expected": [ { "type": "i32", "value": "100" } ] }, { "type": "assert_return", "line": 99, "action": { "type": "invoke", "field": "array_get_nth", "args": [ { "type": "i32", "value": "6" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_return", "line": 101, "action": { "type": "invoke", "field": "array_init_data_i16", "args": [ { "type": "i32", "value": "2" }, { "type": "i32", "value": "5" }, { "type": "i32", "value": "2" } ] }, "expected": [] }, { "type": "assert_return", "line": 102, "action": { "type": "invoke", "field": "array_get_nth_i16", "args": [ { "type": "i32", "value": "1" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_return", "line": 103, "action": { "type": "invoke", "field": "array_get_nth_i16", "args": [ { "type": "i32", "value": "2" } ] }, "expected": [ { "type": "i32", "value": "26470" } ] }, { "type": "assert_return", "line": 104, "action": { "type": "invoke", "field": "array_get_nth_i16", "args": [ { "type": "i32", "value": "3" } ] }, "expected": [ { "type": "i32", "value": "26984" } ] }, { "type": "assert_return", "line": 105, "action": { "type": "invoke", "field": "array_get_nth_i16", "args": [ { "type": "i32", "value": "4" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_return", "line": 108, "action": { "type": "invoke", "field": "drop_segs", "args": [] }, "expected": [] }, { "type": "assert_return", "line": 109, "action": { "type": "invoke", "field": "array_init_data", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "0" } ] }, "expected": [] }, { "type": "assert_trap", "line": 110, "action": { "type": "invoke", "field": "array_init_data", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "1" } ] }, "text": "out of bounds memory access" }, { "type": "module", "line": 113, "filename": "array_init_data.3.wasm", "module_type": "binary" }, { "type": "assert_trap", "line": 200, "action": { "type": "invoke", "field": "f0", "args": [] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 201, "action": { "type": "invoke", "field": "f1", "args": [] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 202, "action": { "type": "invoke", "field": "f2", "args": [] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 203, "action": { "type": "invoke", "field": "f3", "args": [] }, "text": "out of bounds memory access" }, { "type": "assert_return", "line": 204, "action": { "type": "invoke", "field": "f4", "args": [] }, "expected": [] }, { "type": "assert_trap", "line": 205, "action": { "type": "invoke", "field": "f9", "args": [] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 207, "action": { "type": "invoke", "field": "g0", "args": [] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 208, "action": { "type": "invoke", "field": "g1", "args": [] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 209, "action": { "type": "invoke", "field": "g4", "args": [] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 210, "action": { "type": "invoke", "field": "g7", "args": [] }, "text": "out of bounds memory access" }, { "type": "assert_return", "line": 211, "action": { "type": "invoke", "field": "g8", "args": [] }, "expected": [] }, { "type": "assert_trap", "line": 212, "action": { "type": "invoke", "field": "g9", "args": [] }, "text": "out of bounds memory access" } ] }