github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/internal/integration_test/spectest/v1/testdata/globals.json (about) 1 {"source_filename": "./globals.wast", 2 "commands": [ 3 {"type": "module", "line": 3, "filename": "globals.0.wasm"}, 4 {"type": "assert_return", "line": 181, "action": {"type": "invoke", "field": "get-a", "args": []}, "expected": [{"type": "i32", "value": "4294967294"}]}, 5 {"type": "assert_return", "line": 182, "action": {"type": "invoke", "field": "get-b", "args": []}, "expected": [{"type": "i64", "value": "18446744073709551611"}]}, 6 {"type": "assert_return", "line": 183, "action": {"type": "invoke", "field": "get-x", "args": []}, "expected": [{"type": "i32", "value": "4294967284"}]}, 7 {"type": "assert_return", "line": 184, "action": {"type": "invoke", "field": "get-y", "args": []}, "expected": [{"type": "i64", "value": "18446744073709551601"}]}, 8 {"type": "assert_return", "line": 186, "action": {"type": "invoke", "field": "get-1", "args": []}, "expected": [{"type": "f32", "value": "3225419776"}]}, 9 {"type": "assert_return", "line": 187, "action": {"type": "invoke", "field": "get-2", "args": []}, "expected": [{"type": "f64", "value": "13839561654909534208"}]}, 10 {"type": "assert_return", "line": 188, "action": {"type": "invoke", "field": "get-5", "args": []}, "expected": [{"type": "f32", "value": "3243245568"}]}, 11 {"type": "assert_return", "line": 189, "action": {"type": "invoke", "field": "get-6", "args": []}, "expected": [{"type": "f64", "value": "13847442954257432576"}]}, 12 {"type": "assert_return", "line": 191, "action": {"type": "invoke", "field": "set-x", "args": [{"type": "i32", "value": "6"}]}, "expected": []}, 13 {"type": "assert_return", "line": 192, "action": {"type": "invoke", "field": "set-y", "args": [{"type": "i64", "value": "7"}]}, "expected": []}, 14 {"type": "assert_return", "line": 193, "action": {"type": "invoke", "field": "set-5", "args": [{"type": "f32", "value": "1090519040"}]}, "expected": []}, 15 {"type": "assert_return", "line": 194, "action": {"type": "invoke", "field": "set-6", "args": [{"type": "f64", "value": "4621256167635550208"}]}, "expected": []}, 16 {"type": "assert_return", "line": 196, "action": {"type": "invoke", "field": "get-x", "args": []}, "expected": [{"type": "i32", "value": "6"}]}, 17 {"type": "assert_return", "line": 197, "action": {"type": "invoke", "field": "get-y", "args": []}, "expected": [{"type": "i64", "value": "7"}]}, 18 {"type": "assert_return", "line": 198, "action": {"type": "invoke", "field": "get-5", "args": []}, "expected": [{"type": "f32", "value": "1090519040"}]}, 19 {"type": "assert_return", "line": 199, "action": {"type": "invoke", "field": "get-6", "args": []}, "expected": [{"type": "f64", "value": "4621256167635550208"}]}, 20 {"type": "assert_return", "line": 201, "action": {"type": "invoke", "field": "as-select-first", "args": []}, "expected": [{"type": "i32", "value": "6"}]}, 21 {"type": "assert_return", "line": 202, "action": {"type": "invoke", "field": "as-select-mid", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 22 {"type": "assert_return", "line": 203, "action": {"type": "invoke", "field": "as-select-last", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 23 {"type": "assert_return", "line": 205, "action": {"type": "invoke", "field": "as-loop-first", "args": []}, "expected": [{"type": "i32", "value": "6"}]}, 24 {"type": "assert_return", "line": 206, "action": {"type": "invoke", "field": "as-loop-mid", "args": []}, "expected": [{"type": "i32", "value": "6"}]}, 25 {"type": "assert_return", "line": 207, "action": {"type": "invoke", "field": "as-loop-last", "args": []}, "expected": [{"type": "i32", "value": "6"}]}, 26 {"type": "assert_return", "line": 209, "action": {"type": "invoke", "field": "as-if-condition", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 27 {"type": "assert_return", "line": 210, "action": {"type": "invoke", "field": "as-if-then", "args": []}, "expected": [{"type": "i32", "value": "6"}]}, 28 {"type": "assert_return", "line": 211, "action": {"type": "invoke", "field": "as-if-else", "args": []}, "expected": [{"type": "i32", "value": "6"}]}, 29 {"type": "assert_return", "line": 213, "action": {"type": "invoke", "field": "as-br_if-first", "args": []}, "expected": [{"type": "i32", "value": "6"}]}, 30 {"type": "assert_return", "line": 214, "action": {"type": "invoke", "field": "as-br_if-last", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 31 {"type": "assert_return", "line": 216, "action": {"type": "invoke", "field": "as-br_table-first", "args": []}, "expected": [{"type": "i32", "value": "6"}]}, 32 {"type": "assert_return", "line": 217, "action": {"type": "invoke", "field": "as-br_table-last", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 33 {"type": "assert_return", "line": 219, "action": {"type": "invoke", "field": "as-call_indirect-first", "args": []}, "expected": [{"type": "i32", "value": "6"}]}, 34 {"type": "assert_return", "line": 220, "action": {"type": "invoke", "field": "as-call_indirect-mid", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 35 {"type": "assert_trap", "line": 221, "action": {"type": "invoke", "field": "as-call_indirect-last", "args": []}, "text": "undefined element", "expected": [{"type": "i32"}]}, 36 {"type": "assert_return", "line": 223, "action": {"type": "invoke", "field": "as-store-first", "args": []}, "expected": []}, 37 {"type": "assert_return", "line": 224, "action": {"type": "invoke", "field": "as-store-last", "args": []}, "expected": []}, 38 {"type": "assert_return", "line": 225, "action": {"type": "invoke", "field": "as-load-operand", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 39 {"type": "assert_return", "line": 226, "action": {"type": "invoke", "field": "as-memory.grow-value", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 40 {"type": "assert_return", "line": 228, "action": {"type": "invoke", "field": "as-call-value", "args": []}, "expected": [{"type": "i32", "value": "6"}]}, 41 {"type": "assert_return", "line": 230, "action": {"type": "invoke", "field": "as-return-value", "args": []}, "expected": [{"type": "i32", "value": "6"}]}, 42 {"type": "assert_return", "line": 231, "action": {"type": "invoke", "field": "as-drop-operand", "args": []}, "expected": []}, 43 {"type": "assert_return", "line": 232, "action": {"type": "invoke", "field": "as-br-value", "args": []}, "expected": [{"type": "i32", "value": "6"}]}, 44 {"type": "assert_return", "line": 234, "action": {"type": "invoke", "field": "as-local.set-value", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "6"}]}, 45 {"type": "assert_return", "line": 235, "action": {"type": "invoke", "field": "as-local.tee-value", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "6"}]}, 46 {"type": "assert_return", "line": 236, "action": {"type": "invoke", "field": "as-global.set-value", "args": []}, "expected": [{"type": "i32", "value": "6"}]}, 47 {"type": "assert_return", "line": 238, "action": {"type": "invoke", "field": "as-unary-operand", "args": []}, "expected": [{"type": "i32", "value": "0"}]}, 48 {"type": "assert_return", "line": 239, "action": {"type": "invoke", "field": "as-binary-operand", "args": []}, "expected": [{"type": "i32", "value": "36"}]}, 49 {"type": "assert_return", "line": 240, "action": {"type": "invoke", "field": "as-compare-operand", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 50 {"type": "assert_invalid", "line": 243, "filename": "globals.1.wasm", "text": "global is immutable", "module_type": "binary"}, 51 {"type": "module", "line": 248, "filename": "globals.2.wasm"}, 52 {"type": "module", "line": 249, "filename": "globals.3.wasm"}, 53 {"type": "assert_invalid", "line": 252, "filename": "globals.4.wasm", "text": "constant expression required", "module_type": "binary"}, 54 {"type": "assert_invalid", "line": 257, "filename": "globals.5.wasm", "text": "constant expression required", "module_type": "binary"}, 55 {"type": "assert_invalid", "line": 262, "filename": "globals.6.wasm", "text": "constant expression required", "module_type": "binary"}, 56 {"type": "assert_invalid", "line": 267, "filename": "globals.7.wasm", "text": "constant expression required", "module_type": "binary"}, 57 {"type": "assert_invalid", "line": 272, "filename": "globals.8.wasm", "text": "constant expression required", "module_type": "binary"}, 58 {"type": "assert_invalid", "line": 277, "filename": "globals.9.wasm", "text": "type mismatch", "module_type": "binary"}, 59 {"type": "assert_invalid", "line": 282, "filename": "globals.10.wasm", "text": "type mismatch", "module_type": "binary"}, 60 {"type": "assert_invalid", "line": 287, "filename": "globals.11.wasm", "text": "type mismatch", "module_type": "binary"}, 61 {"type": "assert_invalid", "line": 292, "filename": "globals.12.wasm", "text": "unknown global", "module_type": "binary"}, 62 {"type": "assert_invalid", "line": 297, "filename": "globals.13.wasm", "text": "unknown global", "module_type": "binary"}, 63 {"type": "module", "line": 301, "filename": "globals.14.wasm"}, 64 {"type": "assert_malformed", "line": 305, "filename": "globals.15.wasm", "text": "invalid mutability", "module_type": "binary"}, 65 {"type": "assert_malformed", "line": 318, "filename": "globals.16.wasm", "text": "invalid mutability", "module_type": "binary"}, 66 {"type": "module", "line": 331, "filename": "globals.17.wasm"}, 67 {"type": "assert_malformed", "line": 335, "filename": "globals.18.wasm", "text": "invalid mutability", "module_type": "binary"}, 68 {"type": "assert_malformed", "line": 347, "filename": "globals.19.wasm", "text": "invalid mutability", "module_type": "binary"}, 69 {"type": "assert_invalid", "line": 361, "filename": "globals.20.wasm", "text": "type mismatch", "module_type": "binary"}, 70 {"type": "assert_invalid", "line": 370, "filename": "globals.21.wasm", "text": "type mismatch", "module_type": "binary"}, 71 {"type": "assert_invalid", "line": 380, "filename": "globals.22.wasm", "text": "type mismatch", "module_type": "binary"}, 72 {"type": "assert_invalid", "line": 390, "filename": "globals.23.wasm", "text": "type mismatch", "module_type": "binary"}, 73 {"type": "assert_invalid", "line": 400, "filename": "globals.24.wasm", "text": "type mismatch", "module_type": "binary"}, 74 {"type": "assert_invalid", "line": 410, "filename": "globals.25.wasm", "text": "type mismatch", "module_type": "binary"}, 75 {"type": "assert_invalid", "line": 420, "filename": "globals.26.wasm", "text": "type mismatch", "module_type": "binary"}, 76 {"type": "assert_invalid", "line": 430, "filename": "globals.27.wasm", "text": "type mismatch", "module_type": "binary"}, 77 {"type": "assert_invalid", "line": 440, "filename": "globals.28.wasm", "text": "type mismatch", "module_type": "binary"}, 78 {"type": "assert_invalid", "line": 449, "filename": "globals.29.wasm", "text": "type mismatch", "module_type": "binary"}, 79 {"type": "assert_invalid", "line": 458, "filename": "globals.30.wasm", "text": "type mismatch", "module_type": "binary"}, 80 {"type": "assert_invalid", "line": 468, "filename": "globals.31.wasm", "text": "type mismatch", "module_type": "binary"}]}