{ "source_filename": "tests/testsuite/proposals/wasm-3.0/memory_init0.wast", "commands": [ { "type": "module", "line": 2, "filename": "memory_init0.0.wasm", "module_type": "binary" }, { "type": "action", "line": 19, "action": { "type": "invoke", "field": "init", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "1" }, { "type": "i32", "value": "2" } ] } }, { "type": "assert_return", "line": 20, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "i32", "value": "187" } ] }, { "type": "assert_return", "line": 21, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "1" } ] }, "expected": [ { "type": "i32", "value": "204" } ] }, { "type": "assert_return", "line": 22, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "2" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "action", "line": 25, "action": { "type": "invoke", "field": "init", "args": [ { "type": "i32", "value": "65532" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "4" } ] } }, { "type": "assert_trap", "line": 28, "action": { "type": "invoke", "field": "init", "args": [ { "type": "i32", "value": "65534" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "3" } ] }, "text": "out of bounds memory access" }, { "type": "assert_return", "line": 30, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "65534" } ] }, "expected": [ { "type": "i32", "value": "204" } ] }, { "type": "assert_return", "line": 31, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "65535" } ] }, "expected": [ { "type": "i32", "value": "221" } ] }, { "type": "action", "line": 34, "action": { "type": "invoke", "field": "init", "args": [ { "type": "i32", "value": "65536" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "0" } ] } }, { "type": "action", "line": 35, "action": { "type": "invoke", "field": "init", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "4" }, { "type": "i32", "value": "0" } ] } }, { "type": "assert_trap", "line": 38, "action": { "type": "invoke", "field": "init", "args": [ { "type": "i32", "value": "65537" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "0" } ] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 40, "action": { "type": "invoke", "field": "init", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "5" }, { "type": "i32", "value": "0" } ] }, "text": "out of bounds memory access" } ] }