{ "source_filename": "tests/testsuite/proposals/wasm-3.0/memory_fill0.wast", "commands": [ { "type": "module", "line": 2, "filename": "memory_fill0.0.wasm", "module_type": "binary" }, { "type": "action", "line": 18, "action": { "type": "invoke", "field": "fill", "args": [ { "type": "i32", "value": "1" }, { "type": "i32", "value": "255" }, { "type": "i32", "value": "3" } ] } }, { "type": "assert_return", "line": 19, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_return", "line": 20, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "1" } ] }, "expected": [ { "type": "i32", "value": "255" } ] }, { "type": "assert_return", "line": 21, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "2" } ] }, "expected": [ { "type": "i32", "value": "255" } ] }, { "type": "assert_return", "line": 22, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "3" } ] }, "expected": [ { "type": "i32", "value": "255" } ] }, { "type": "assert_return", "line": 23, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "4" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "action", "line": 26, "action": { "type": "invoke", "field": "fill", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "48042" }, { "type": "i32", "value": "2" } ] } }, { "type": "assert_return", "line": 27, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "i32", "value": "170" } ] }, { "type": "assert_return", "line": 28, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "1" } ] }, "expected": [ { "type": "i32", "value": "170" } ] }, { "type": "action", "line": 31, "action": { "type": "invoke", "field": "fill", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "65536" } ] } }, { "type": "assert_trap", "line": 34, "action": { "type": "invoke", "field": "fill", "args": [ { "type": "i32", "value": "65280" }, { "type": "i32", "value": "1" }, { "type": "i32", "value": "257" } ] }, "text": "out of bounds memory access" }, { "type": "assert_return", "line": 36, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "65280" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_return", "line": 37, "action": { "type": "invoke", "field": "load8_u", "args": [ { "type": "i32", "value": "65535" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "action", "line": 40, "action": { "type": "invoke", "field": "fill", "args": [ { "type": "i32", "value": "65536" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "0" } ] } }, { "type": "assert_trap", "line": 43, "action": { "type": "invoke", "field": "fill", "args": [ { "type": "i32", "value": "65537" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "0" } ] }, "text": "out of bounds memory access" } ] }