{ "source_filename": "tests/testsuite/proposals/wasm-3.0/memory_copy1.wast", "commands": [ { "type": "module", "line": 2, "filename": "memory_copy1.0.wasm", "module_type": "binary" }, { "type": "action", "line": 19, "action": { "type": "invoke", "field": "copy", "args": [ { "type": "i32", "value": "10" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "4" } ] } }, { "type": "assert_return", "line": 21, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "9" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_return", "line": 22, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "10" } ] }, "expected": [ { "type": "i32", "value": "170" } ] }, { "type": "assert_return", "line": 23, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "11" } ] }, "expected": [ { "type": "i32", "value": "187" } ] }, { "type": "assert_return", "line": 24, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "12" } ] }, "expected": [ { "type": "i32", "value": "204" } ] }, { "type": "assert_return", "line": 25, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "13" } ] }, "expected": [ { "type": "i32", "value": "221" } ] }, { "type": "assert_return", "line": 26, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "14" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "action", "line": 29, "action": { "type": "invoke", "field": "copy", "args": [ { "type": "i32", "value": "65280" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "256" } ] } }, { "type": "action", "line": 30, "action": { "type": "invoke", "field": "copy", "args": [ { "type": "i32", "value": "65024" }, { "type": "i32", "value": "65280" }, { "type": "i32", "value": "256" } ] } }, { "type": "action", "line": 33, "action": { "type": "invoke", "field": "copy", "args": [ { "type": "i32", "value": "65536" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "0" } ] } }, { "type": "action", "line": 34, "action": { "type": "invoke", "field": "copy", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "65536" }, { "type": "i32", "value": "0" } ] } }, { "type": "assert_trap", "line": 37, "action": { "type": "invoke", "field": "copy", "args": [ { "type": "i32", "value": "65537" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "0" } ] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 39, "action": { "type": "invoke", "field": "copy", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "65537" }, { "type": "i32", "value": "0" } ] }, "text": "out of bounds memory access" } ] }