wa-lang.org/wazero@v1.0.2/internal/integration_test/spectest/v2/testdata/labels.json (about)

     1  {"source_filename": "./labels.wast",
     2   "commands": [
     3    {"type": "module", "line": 1, "filename": "labels.0.wasm"}, 
     4    {"type": "assert_return", "line": 291, "action": {"type": "invoke", "field": "block", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
     5    {"type": "assert_return", "line": 292, "action": {"type": "invoke", "field": "loop1", "args": []}, "expected": [{"type": "i32", "value": "5"}]}, 
     6    {"type": "assert_return", "line": 293, "action": {"type": "invoke", "field": "loop2", "args": []}, "expected": [{"type": "i32", "value": "8"}]}, 
     7    {"type": "assert_return", "line": 294, "action": {"type": "invoke", "field": "loop3", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
     8    {"type": "assert_return", "line": 295, "action": {"type": "invoke", "field": "loop4", "args": [{"type": "i32", "value": "8"}]}, "expected": [{"type": "i32", "value": "16"}]}, 
     9    {"type": "assert_return", "line": 296, "action": {"type": "invoke", "field": "loop5", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 
    10    {"type": "assert_return", "line": 297, "action": {"type": "invoke", "field": "loop6", "args": []}, "expected": [{"type": "i32", "value": "3"}]}, 
    11    {"type": "assert_return", "line": 298, "action": {"type": "invoke", "field": "if", "args": []}, "expected": [{"type": "i32", "value": "5"}]}, 
    12    {"type": "assert_return", "line": 299, "action": {"type": "invoke", "field": "if2", "args": []}, "expected": [{"type": "i32", "value": "5"}]}, 
    13    {"type": "assert_return", "line": 300, "action": {"type": "invoke", "field": "switch", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "50"}]}, 
    14    {"type": "assert_return", "line": 301, "action": {"type": "invoke", "field": "switch", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "20"}]}, 
    15    {"type": "assert_return", "line": 302, "action": {"type": "invoke", "field": "switch", "args": [{"type": "i32", "value": "2"}]}, "expected": [{"type": "i32", "value": "20"}]}, 
    16    {"type": "assert_return", "line": 303, "action": {"type": "invoke", "field": "switch", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "i32", "value": "3"}]}, 
    17    {"type": "assert_return", "line": 304, "action": {"type": "invoke", "field": "switch", "args": [{"type": "i32", "value": "4"}]}, "expected": [{"type": "i32", "value": "50"}]}, 
    18    {"type": "assert_return", "line": 305, "action": {"type": "invoke", "field": "switch", "args": [{"type": "i32", "value": "5"}]}, "expected": [{"type": "i32", "value": "50"}]}, 
    19    {"type": "assert_return", "line": 306, "action": {"type": "invoke", "field": "return", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "0"}]}, 
    20    {"type": "assert_return", "line": 307, "action": {"type": "invoke", "field": "return", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "2"}]}, 
    21    {"type": "assert_return", "line": 308, "action": {"type": "invoke", "field": "return", "args": [{"type": "i32", "value": "2"}]}, "expected": [{"type": "i32", "value": "2"}]}, 
    22    {"type": "assert_return", "line": 309, "action": {"type": "invoke", "field": "br_if0", "args": []}, "expected": [{"type": "i32", "value": "29"}]}, 
    23    {"type": "assert_return", "line": 310, "action": {"type": "invoke", "field": "br_if1", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    24    {"type": "assert_return", "line": 311, "action": {"type": "invoke", "field": "br_if2", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    25    {"type": "assert_return", "line": 312, "action": {"type": "invoke", "field": "br_if3", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 
    26    {"type": "assert_return", "line": 313, "action": {"type": "invoke", "field": "br", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    27    {"type": "assert_return", "line": 314, "action": {"type": "invoke", "field": "shadowing", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    28    {"type": "assert_return", "line": 315, "action": {"type": "invoke", "field": "redefinition", "args": []}, "expected": [{"type": "i32", "value": "5"}]}, 
    29    {"type": "assert_invalid", "line": 318, "filename": "labels.1.wasm", "text": "type mismatch", "module_type": "binary"}, 
    30    {"type": "assert_invalid", "line": 322, "filename": "labels.2.wasm", "text": "type mismatch", "module_type": "binary"}, 
    31    {"type": "assert_invalid", "line": 326, "filename": "labels.3.wasm", "text": "type mismatch", "module_type": "binary"}]}