{ "source_filename": "tests/testsuite/int_literals.wast", "commands": [ { "type": "module", "line": 1, "filename": "int_literals.0.wasm", "module_type": "binary" }, { "type": "assert_return", "line": 37, "action": { "type": "invoke", "field": "i32.test", "args": [] }, "expected": [ { "type": "i32", "value": "195940365" } ] }, { "type": "assert_return", "line": 38, "action": { "type": "invoke", "field": "i32.umax", "args": [] }, "expected": [ { "type": "i32", "value": "-1" } ] }, { "type": "assert_return", "line": 39, "action": { "type": "invoke", "field": "i32.smax", "args": [] }, "expected": [ { "type": "i32", "value": "2147483647" } ] }, { "type": "assert_return", "line": 40, "action": { "type": "invoke", "field": "i32.neg_smax", "args": [] }, "expected": [ { "type": "i32", "value": "-2147483647" } ] }, { "type": "assert_return", "line": 41, "action": { "type": "invoke", "field": "i32.smin", "args": [] }, "expected": [ { "type": "i32", "value": "-2147483648" } ] }, { "type": "assert_return", "line": 42, "action": { "type": "invoke", "field": "i32.alt_smin", "args": [] }, "expected": [ { "type": "i32", "value": "-2147483648" } ] }, { "type": "assert_return", "line": 43, "action": { "type": "invoke", "field": "i32.inc_smin", "args": [] }, "expected": [ { "type": "i32", "value": "-2147483647" } ] }, { "type": "assert_return", "line": 44, "action": { "type": "invoke", "field": "i32.neg_zero", "args": [] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_return", "line": 45, "action": { "type": "invoke", "field": "i32.not_octal", "args": [] }, "expected": [ { "type": "i32", "value": "10" } ] }, { "type": "assert_return", "line": 46, "action": { "type": "invoke", "field": "i32.unsigned_decimal", "args": [] }, "expected": [ { "type": "i32", "value": "-1" } ] }, { "type": "assert_return", "line": 47, "action": { "type": "invoke", "field": "i32.plus_sign", "args": [] }, "expected": [ { "type": "i32", "value": "42" } ] }, { "type": "assert_return", "line": 49, "action": { "type": "invoke", "field": "i64.test", "args": [] }, "expected": [ { "type": "i64", "value": "913028331277281902" } ] }, { "type": "assert_return", "line": 50, "action": { "type": "invoke", "field": "i64.umax", "args": [] }, "expected": [ { "type": "i64", "value": "-1" } ] }, { "type": "assert_return", "line": 51, "action": { "type": "invoke", "field": "i64.smax", "args": [] }, "expected": [ { "type": "i64", "value": "9223372036854775807" } ] }, { "type": "assert_return", "line": 52, "action": { "type": "invoke", "field": "i64.neg_smax", "args": [] }, "expected": [ { "type": "i64", "value": "-9223372036854775807" } ] }, { "type": "assert_return", "line": 53, "action": { "type": "invoke", "field": "i64.smin", "args": [] }, "expected": [ { "type": "i64", "value": "-9223372036854775808" } ] }, { "type": "assert_return", "line": 54, "action": { "type": "invoke", "field": "i64.alt_smin", "args": [] }, "expected": [ { "type": "i64", "value": "-9223372036854775808" } ] }, { "type": "assert_return", "line": 55, "action": { "type": "invoke", "field": "i64.inc_smin", "args": [] }, "expected": [ { "type": "i64", "value": "-9223372036854775807" } ] }, { "type": "assert_return", "line": 56, "action": { "type": "invoke", "field": "i64.neg_zero", "args": [] }, "expected": [ { "type": "i64", "value": "0" } ] }, { "type": "assert_return", "line": 57, "action": { "type": "invoke", "field": "i64.not_octal", "args": [] }, "expected": [ { "type": "i64", "value": "10" } ] }, { "type": "assert_return", "line": 58, "action": { "type": "invoke", "field": "i64.unsigned_decimal", "args": [] }, "expected": [ { "type": "i64", "value": "-1" } ] }, { "type": "assert_return", "line": 59, "action": { "type": "invoke", "field": "i64.plus_sign", "args": [] }, "expected": [ { "type": "i64", "value": "42" } ] }, { "type": "assert_return", "line": 61, "action": { "type": "invoke", "field": "i32-dec-sep1", "args": [] }, "expected": [ { "type": "i32", "value": "1000000" } ] }, { "type": "assert_return", "line": 62, "action": { "type": "invoke", "field": "i32-dec-sep2", "args": [] }, "expected": [ { "type": "i32", "value": "1000" } ] }, { "type": "assert_return", "line": 63, "action": { "type": "invoke", "field": "i32-hex-sep1", "args": [] }, "expected": [ { "type": "i32", "value": "168755353" } ] }, { "type": "assert_return", "line": 64, "action": { "type": "invoke", "field": "i32-hex-sep2", "args": [] }, "expected": [ { "type": "i32", "value": "109071" } ] }, { "type": "assert_return", "line": 66, "action": { "type": "invoke", "field": "i64-dec-sep1", "args": [] }, "expected": [ { "type": "i64", "value": "1000000" } ] }, { "type": "assert_return", "line": 67, "action": { "type": "invoke", "field": "i64-dec-sep2", "args": [] }, "expected": [ { "type": "i64", "value": "1000" } ] }, { "type": "assert_return", "line": 68, "action": { "type": "invoke", "field": "i64-hex-sep1", "args": [] }, "expected": [ { "type": "i64", "value": "3078696982321561" } ] }, { "type": "assert_return", "line": 69, "action": { "type": "invoke", "field": "i64-hex-sep2", "args": [] }, "expected": [ { "type": "i64", "value": "109071" } ] }, { "type": "assert_malformed", "line": 72, "filename": "int_literals.1.wat", "module_type": "text", "text": "unknown operator" }, { "type": "assert_malformed", "line": 76, "filename": "int_literals.2.wat", "module_type": "text", "text": "unknown operator" }, { "type": "assert_malformed", "line": 80, "filename": "int_literals.3.wat", "module_type": "text", "text": "unknown operator" }, { "type": "assert_malformed", "line": 84, "filename": "int_literals.4.wat", "module_type": "text", "text": "unknown operator" }, { "type": "assert_malformed", "line": 88, "filename": "int_literals.5.wat", "module_type": "text", "text": "unknown operator" }, { "type": "assert_malformed", "line": 92, "filename": "int_literals.6.wat", "module_type": "text", "text": "unknown operator" }, { "type": "assert_malformed", "line": 96, "filename": "int_literals.7.wat", "module_type": "text", "text": "unknown operator" }, { "type": "assert_malformed", "line": 100, "filename": "int_literals.8.wat", "module_type": "text", "text": "unknown operator" }, { "type": "assert_malformed", "line": 104, "filename": "int_literals.9.wat", "module_type": "text", "text": "unknown operator" }, { "type": "assert_malformed", "line": 108, "filename": "int_literals.10.wat", "module_type": "text", "text": "unknown operator" }, { "type": "assert_malformed", "line": 113, "filename": "int_literals.11.wat", "module_type": "text", "text": "unknown operator" }, { "type": "assert_malformed", "line": 117, "filename": "int_literals.12.wat", "module_type": "text", "text": "unknown operator" }, { "type": "assert_malformed", "line": 121, "filename": "int_literals.13.wat", "module_type": "text", "text": "unknown operator" }, { "type": "assert_malformed", "line": 125, "filename": "int_literals.14.wat", "module_type": "text", "text": "unknown operator" }, { "type": "assert_malformed", "line": 129, "filename": "int_literals.15.wat", "module_type": "text", "text": "unknown operator" }, { "type": "assert_malformed", "line": 133, "filename": "int_literals.16.wat", "module_type": "text", "text": "unknown operator" }, { "type": "assert_malformed", "line": 137, "filename": "int_literals.17.wat", "module_type": "text", "text": "unknown operator" }, { "type": "assert_malformed", "line": 141, "filename": "int_literals.18.wat", "module_type": "text", "text": "unknown operator" }, { "type": "assert_malformed", "line": 145, "filename": "int_literals.19.wat", "module_type": "text", "text": "unknown operator" }, { "type": "assert_malformed", "line": 149, "filename": "int_literals.20.wat", "module_type": "text", "text": "unknown operator" } ] }