github.com/wasilibs/wazerox@v0.0.0-20240124024944-4923be63ab5f/internal/integration_test/spectest/v1/testdata/memory.json (about) 1 {"source_filename": "./memory.wast", 2 "commands": [ 3 {"type": "module", "line": 3, "filename": "memory.0.wasm"}, 4 {"type": "module", "line": 4, "filename": "memory.1.wasm"}, 5 {"type": "module", "line": 5, "filename": "memory.2.wasm"}, 6 {"type": "module", "line": 6, "filename": "memory.3.wasm"}, 7 {"type": "assert_invalid", "line": 8, "filename": "memory.4.wasm", "text": "multiple memories", "module_type": "binary"}, 8 {"type": "assert_invalid", "line": 9, "filename": "memory.5.wasm", "text": "multiple memories", "module_type": "binary"}, 9 {"type": "module", "line": 11, "filename": "memory.6.wasm"}, 10 {"type": "assert_return", "line": 12, "action": {"type": "invoke", "field": "memsize", "args": []}, "expected": [{"type": "i32", "value": "0"}]}, 11 {"type": "module", "line": 13, "filename": "memory.7.wasm"}, 12 {"type": "assert_return", "line": 14, "action": {"type": "invoke", "field": "memsize", "args": []}, "expected": [{"type": "i32", "value": "0"}]}, 13 {"type": "module", "line": 15, "filename": "memory.8.wasm"}, 14 {"type": "assert_return", "line": 16, "action": {"type": "invoke", "field": "memsize", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 15 {"type": "assert_invalid", "line": 18, "filename": "memory.9.wasm", "text": "unknown memory", "module_type": "binary"}, 16 {"type": "assert_invalid", "line": 19, "filename": "memory.10.wasm", "text": "unknown memory", "module_type": "binary"}, 17 {"type": "assert_invalid", "line": 20, "filename": "memory.11.wasm", "text": "unknown memory", "module_type": "binary"}, 18 {"type": "assert_invalid", "line": 23, "filename": "memory.12.wasm", "text": "unknown memory", "module_type": "binary"}, 19 {"type": "assert_invalid", "line": 27, "filename": "memory.13.wasm", "text": "unknown memory", "module_type": "binary"}, 20 {"type": "assert_invalid", "line": 31, "filename": "memory.14.wasm", "text": "unknown memory", "module_type": "binary"}, 21 {"type": "assert_invalid", "line": 35, "filename": "memory.15.wasm", "text": "unknown memory", "module_type": "binary"}, 22 {"type": "assert_invalid", "line": 39, "filename": "memory.16.wasm", "text": "unknown memory", "module_type": "binary"}, 23 {"type": "assert_invalid", "line": 43, "filename": "memory.17.wasm", "text": "unknown memory", "module_type": "binary"}, 24 {"type": "assert_invalid", "line": 49, "filename": "memory.18.wasm", "text": "size minimum must not be greater than maximum", "module_type": "binary"}, 25 {"type": "assert_invalid", "line": 53, "filename": "memory.19.wasm", "text": "memory size must be at most 65536 pages (4GiB)", "module_type": "binary"}, 26 {"type": "assert_invalid", "line": 57, "filename": "memory.20.wasm", "text": "memory size must be at most 65536 pages (4GiB)", "module_type": "binary"}, 27 {"type": "assert_invalid", "line": 61, "filename": "memory.21.wasm", "text": "memory size must be at most 65536 pages (4GiB)", "module_type": "binary"}, 28 {"type": "assert_invalid", "line": 65, "filename": "memory.22.wasm", "text": "memory size must be at most 65536 pages (4GiB)", "module_type": "binary"}, 29 {"type": "assert_invalid", "line": 69, "filename": "memory.23.wasm", "text": "memory size must be at most 65536 pages (4GiB)", "module_type": "binary"}, 30 {"type": "assert_invalid", "line": 73, "filename": "memory.24.wasm", "text": "memory size must be at most 65536 pages (4GiB)", "module_type": "binary"}, 31 {"type": "module", "line": 77, "filename": "memory.25.wasm"}, 32 {"type": "assert_return", "line": 165, "action": {"type": "invoke", "field": "data", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 33 {"type": "assert_return", "line": 166, "action": {"type": "invoke", "field": "cast", "args": []}, "expected": [{"type": "f64", "value": "4631107791820423168"}]}, 34 {"type": "assert_return", "line": 168, "action": {"type": "invoke", "field": "i32_load8_s", "args": [{"type": "i32", "value": "4294967295"}]}, "expected": [{"type": "i32", "value": "4294967295"}]}, 35 {"type": "assert_return", "line": 169, "action": {"type": "invoke", "field": "i32_load8_u", "args": [{"type": "i32", "value": "4294967295"}]}, "expected": [{"type": "i32", "value": "255"}]}, 36 {"type": "assert_return", "line": 170, "action": {"type": "invoke", "field": "i32_load16_s", "args": [{"type": "i32", "value": "4294967295"}]}, "expected": [{"type": "i32", "value": "4294967295"}]}, 37 {"type": "assert_return", "line": 171, "action": {"type": "invoke", "field": "i32_load16_u", "args": [{"type": "i32", "value": "4294967295"}]}, "expected": [{"type": "i32", "value": "65535"}]}, 38 {"type": "assert_return", "line": 173, "action": {"type": "invoke", "field": "i32_load8_s", "args": [{"type": "i32", "value": "100"}]}, "expected": [{"type": "i32", "value": "100"}]}, 39 {"type": "assert_return", "line": 174, "action": {"type": "invoke", "field": "i32_load8_u", "args": [{"type": "i32", "value": "200"}]}, "expected": [{"type": "i32", "value": "200"}]}, 40 {"type": "assert_return", "line": 175, "action": {"type": "invoke", "field": "i32_load16_s", "args": [{"type": "i32", "value": "20000"}]}, "expected": [{"type": "i32", "value": "20000"}]}, 41 {"type": "assert_return", "line": 176, "action": {"type": "invoke", "field": "i32_load16_u", "args": [{"type": "i32", "value": "40000"}]}, "expected": [{"type": "i32", "value": "40000"}]}, 42 {"type": "assert_return", "line": 178, "action": {"type": "invoke", "field": "i32_load8_s", "args": [{"type": "i32", "value": "4275856707"}]}, "expected": [{"type": "i32", "value": "67"}]}, 43 {"type": "assert_return", "line": 179, "action": {"type": "invoke", "field": "i32_load8_s", "args": [{"type": "i32", "value": "878104047"}]}, "expected": [{"type": "i32", "value": "4294967279"}]}, 44 {"type": "assert_return", "line": 180, "action": {"type": "invoke", "field": "i32_load8_u", "args": [{"type": "i32", "value": "4275856707"}]}, "expected": [{"type": "i32", "value": "67"}]}, 45 {"type": "assert_return", "line": 181, "action": {"type": "invoke", "field": "i32_load8_u", "args": [{"type": "i32", "value": "878104047"}]}, "expected": [{"type": "i32", "value": "239"}]}, 46 {"type": "assert_return", "line": 182, "action": {"type": "invoke", "field": "i32_load16_s", "args": [{"type": "i32", "value": "4275856707"}]}, "expected": [{"type": "i32", "value": "25923"}]}, 47 {"type": "assert_return", "line": 183, "action": {"type": "invoke", "field": "i32_load16_s", "args": [{"type": "i32", "value": "878104047"}]}, "expected": [{"type": "i32", "value": "4294954479"}]}, 48 {"type": "assert_return", "line": 184, "action": {"type": "invoke", "field": "i32_load16_u", "args": [{"type": "i32", "value": "4275856707"}]}, "expected": [{"type": "i32", "value": "25923"}]}, 49 {"type": "assert_return", "line": 185, "action": {"type": "invoke", "field": "i32_load16_u", "args": [{"type": "i32", "value": "878104047"}]}, "expected": [{"type": "i32", "value": "52719"}]}, 50 {"type": "assert_return", "line": 187, "action": {"type": "invoke", "field": "i64_load8_s", "args": [{"type": "i64", "value": "18446744073709551615"}]}, "expected": [{"type": "i64", "value": "18446744073709551615"}]}, 51 {"type": "assert_return", "line": 188, "action": {"type": "invoke", "field": "i64_load8_u", "args": [{"type": "i64", "value": "18446744073709551615"}]}, "expected": [{"type": "i64", "value": "255"}]}, 52 {"type": "assert_return", "line": 189, "action": {"type": "invoke", "field": "i64_load16_s", "args": [{"type": "i64", "value": "18446744073709551615"}]}, "expected": [{"type": "i64", "value": "18446744073709551615"}]}, 53 {"type": "assert_return", "line": 190, "action": {"type": "invoke", "field": "i64_load16_u", "args": [{"type": "i64", "value": "18446744073709551615"}]}, "expected": [{"type": "i64", "value": "65535"}]}, 54 {"type": "assert_return", "line": 191, "action": {"type": "invoke", "field": "i64_load32_s", "args": [{"type": "i64", "value": "18446744073709551615"}]}, "expected": [{"type": "i64", "value": "18446744073709551615"}]}, 55 {"type": "assert_return", "line": 192, "action": {"type": "invoke", "field": "i64_load32_u", "args": [{"type": "i64", "value": "18446744073709551615"}]}, "expected": [{"type": "i64", "value": "4294967295"}]}, 56 {"type": "assert_return", "line": 194, "action": {"type": "invoke", "field": "i64_load8_s", "args": [{"type": "i64", "value": "100"}]}, "expected": [{"type": "i64", "value": "100"}]}, 57 {"type": "assert_return", "line": 195, "action": {"type": "invoke", "field": "i64_load8_u", "args": [{"type": "i64", "value": "200"}]}, "expected": [{"type": "i64", "value": "200"}]}, 58 {"type": "assert_return", "line": 196, "action": {"type": "invoke", "field": "i64_load16_s", "args": [{"type": "i64", "value": "20000"}]}, "expected": [{"type": "i64", "value": "20000"}]}, 59 {"type": "assert_return", "line": 197, "action": {"type": "invoke", "field": "i64_load16_u", "args": [{"type": "i64", "value": "40000"}]}, "expected": [{"type": "i64", "value": "40000"}]}, 60 {"type": "assert_return", "line": 198, "action": {"type": "invoke", "field": "i64_load32_s", "args": [{"type": "i64", "value": "20000"}]}, "expected": [{"type": "i64", "value": "20000"}]}, 61 {"type": "assert_return", "line": 199, "action": {"type": "invoke", "field": "i64_load32_u", "args": [{"type": "i64", "value": "40000"}]}, "expected": [{"type": "i64", "value": "40000"}]}, 62 {"type": "assert_return", "line": 201, "action": {"type": "invoke", "field": "i64_load8_s", "args": [{"type": "i64", "value": "18364758543954109763"}]}, "expected": [{"type": "i64", "value": "67"}]}, 63 {"type": "assert_return", "line": 202, "action": {"type": "invoke", "field": "i64_load8_s", "args": [{"type": "i64", "value": "3771275841602506223"}]}, "expected": [{"type": "i64", "value": "18446744073709551599"}]}, 64 {"type": "assert_return", "line": 203, "action": {"type": "invoke", "field": "i64_load8_u", "args": [{"type": "i64", "value": "18364758543954109763"}]}, "expected": [{"type": "i64", "value": "67"}]}, 65 {"type": "assert_return", "line": 204, "action": {"type": "invoke", "field": "i64_load8_u", "args": [{"type": "i64", "value": "3771275841602506223"}]}, "expected": [{"type": "i64", "value": "239"}]}, 66 {"type": "assert_return", "line": 205, "action": {"type": "invoke", "field": "i64_load16_s", "args": [{"type": "i64", "value": "18364758543954109763"}]}, "expected": [{"type": "i64", "value": "25923"}]}, 67 {"type": "assert_return", "line": 206, "action": {"type": "invoke", "field": "i64_load16_s", "args": [{"type": "i64", "value": "3771275841602506223"}]}, "expected": [{"type": "i64", "value": "18446744073709538799"}]}, 68 {"type": "assert_return", "line": 207, "action": {"type": "invoke", "field": "i64_load16_u", "args": [{"type": "i64", "value": "18364758543954109763"}]}, "expected": [{"type": "i64", "value": "25923"}]}, 69 {"type": "assert_return", "line": 208, "action": {"type": "invoke", "field": "i64_load16_u", "args": [{"type": "i64", "value": "3771275841602506223"}]}, "expected": [{"type": "i64", "value": "52719"}]}, 70 {"type": "assert_return", "line": 209, "action": {"type": "invoke", "field": "i64_load32_s", "args": [{"type": "i64", "value": "18364758543954109763"}]}, "expected": [{"type": "i64", "value": "1446274371"}]}, 71 {"type": "assert_return", "line": 210, "action": {"type": "invoke", "field": "i64_load32_s", "args": [{"type": "i64", "value": "3771275841602506223"}]}, "expected": [{"type": "i64", "value": "18446744071976963567"}]}, 72 {"type": "assert_return", "line": 211, "action": {"type": "invoke", "field": "i64_load32_u", "args": [{"type": "i64", "value": "18364758543954109763"}]}, "expected": [{"type": "i64", "value": "1446274371"}]}, 73 {"type": "assert_return", "line": 212, "action": {"type": "invoke", "field": "i64_load32_u", "args": [{"type": "i64", "value": "3771275841602506223"}]}, "expected": [{"type": "i64", "value": "2562379247"}]}]}