{ "source_filename": "tests/testsuite/proposals/wasm-3.0/memory_copy0.wast", "commands": [ { "type": "module", "line": 2, "filename": "memory_copy0.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": "8" }, { "type": "i32", "value": "10" }, { "type": "i32", "value": "4" } ] } }, { "type": "assert_return", "line": 30, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "8" } ] }, "expected": [ { "type": "i32", "value": "170" } ] }, { "type": "assert_return", "line": 31, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "9" } ] }, "expected": [ { "type": "i32", "value": "187" } ] }, { "type": "assert_return", "line": 32, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "10" } ] }, "expected": [ { "type": "i32", "value": "204" } ] }, { "type": "assert_return", "line": 33, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "11" } ] }, "expected": [ { "type": "i32", "value": "221" } ] }, { "type": "assert_return", "line": 34, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "12" } ] }, "expected": [ { "type": "i32", "value": "204" } ] }, { "type": "assert_return", "line": 35, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "13" } ] }, "expected": [ { "type": "i32", "value": "221" } ] }, { "type": "action", "line": 38, "action": { "type": "invoke", "field": "copy", "args": [ { "type": "i32", "value": "10" }, { "type": "i32", "value": "7" }, { "type": "i32", "value": "6" } ] } }, { "type": "assert_return", "line": 39, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "10" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_return", "line": 40, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "11" } ] }, "expected": [ { "type": "i32", "value": "170" } ] }, { "type": "assert_return", "line": 41, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "12" } ] }, "expected": [ { "type": "i32", "value": "187" } ] }, { "type": "assert_return", "line": 42, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "13" } ] }, "expected": [ { "type": "i32", "value": "204" } ] }, { "type": "assert_return", "line": 43, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "14" } ] }, "expected": [ { "type": "i32", "value": "221" } ] }, { "type": "assert_return", "line": 44, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "15" } ] }, "expected": [ { "type": "i32", "value": "204" } ] }, { "type": "assert_return", "line": 45, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "16" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "action", "line": 48, "action": { "type": "invoke", "field": "copy", "args": [ { "type": "i32", "value": "65280" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "256" } ] } }, { "type": "action", "line": 49, "action": { "type": "invoke", "field": "copy", "args": [ { "type": "i32", "value": "65024" }, { "type": "i32", "value": "65280" }, { "type": "i32", "value": "256" } ] } }, { "type": "action", "line": 52, "action": { "type": "invoke", "field": "copy", "args": [ { "type": "i32", "value": "65536" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "0" } ] } }, { "type": "action", "line": 53, "action": { "type": "invoke", "field": "copy", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "65536" }, { "type": "i32", "value": "0" } ] } }, { "type": "assert_trap", "line": 56, "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": 58, "action": { "type": "invoke", "field": "copy", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "65537" }, { "type": "i32", "value": "0" } ] }, "text": "out of bounds memory access" } ] }