{ "source_filename": "tests/testsuite/proposals/wasm-3.0/load1.wast", "commands": [ { "type": "module", "line": 1, "name": "M", "filename": "load1.0.wasm", "module_type": "binary" }, { "type": "register", "line": 8, "as": "M" }, { "type": "module", "line": 10, "filename": "load1.1.wasm", "module_type": "binary" }, { "type": "assert_return", "line": 25, "action": { "type": "invoke", "module": "M", "field": "read", "args": [ { "type": "i32", "value": "20" } ] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 26, "action": { "type": "invoke", "module": "M", "field": "read", "args": [ { "type": "i32", "value": "21" } ] }, "expected": [ { "type": "i32", "value": "2" } ] }, { "type": "assert_return", "line": 27, "action": { "type": "invoke", "module": "M", "field": "read", "args": [ { "type": "i32", "value": "22" } ] }, "expected": [ { "type": "i32", "value": "3" } ] }, { "type": "assert_return", "line": 28, "action": { "type": "invoke", "module": "M", "field": "read", "args": [ { "type": "i32", "value": "23" } ] }, "expected": [ { "type": "i32", "value": "4" } ] }, { "type": "assert_return", "line": 29, "action": { "type": "invoke", "module": "M", "field": "read", "args": [ { "type": "i32", "value": "24" } ] }, "expected": [ { "type": "i32", "value": "5" } ] }, { "type": "assert_return", "line": 31, "action": { "type": "invoke", "field": "read1", "args": [ { "type": "i32", "value": "20" } ] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 32, "action": { "type": "invoke", "field": "read1", "args": [ { "type": "i32", "value": "21" } ] }, "expected": [ { "type": "i32", "value": "2" } ] }, { "type": "assert_return", "line": 33, "action": { "type": "invoke", "field": "read1", "args": [ { "type": "i32", "value": "22" } ] }, "expected": [ { "type": "i32", "value": "3" } ] }, { "type": "assert_return", "line": 34, "action": { "type": "invoke", "field": "read1", "args": [ { "type": "i32", "value": "23" } ] }, "expected": [ { "type": "i32", "value": "4" } ] }, { "type": "assert_return", "line": 35, "action": { "type": "invoke", "field": "read1", "args": [ { "type": "i32", "value": "24" } ] }, "expected": [ { "type": "i32", "value": "5" } ] }, { "type": "assert_return", "line": 37, "action": { "type": "invoke", "field": "read2", "args": [ { "type": "i32", "value": "50" } ] }, "expected": [ { "type": "i32", "value": "10" } ] }, { "type": "assert_return", "line": 38, "action": { "type": "invoke", "field": "read2", "args": [ { "type": "i32", "value": "51" } ] }, "expected": [ { "type": "i32", "value": "11" } ] }, { "type": "assert_return", "line": 39, "action": { "type": "invoke", "field": "read2", "args": [ { "type": "i32", "value": "52" } ] }, "expected": [ { "type": "i32", "value": "12" } ] }, { "type": "assert_return", "line": 40, "action": { "type": "invoke", "field": "read2", "args": [ { "type": "i32", "value": "53" } ] }, "expected": [ { "type": "i32", "value": "13" } ] }, { "type": "assert_return", "line": 41, "action": { "type": "invoke", "field": "read2", "args": [ { "type": "i32", "value": "54" } ] }, "expected": [ { "type": "i32", "value": "14" } ] } ] }