From 31633899f9b54b5f7819ffb4ff365b5a94acdb40 Mon Sep 17 00:00:00 2001 From: dcodeIO Date: Sat, 17 Feb 2018 11:14:41 +0100 Subject: [PATCH] Use untouched/optimized naming scheme in tests as well --- tests/compiler.js | 7 +- .../{assert.wat => assert.untouched.wat} | 23 - .../{binary.wat => binary.untouched.wat} | 322 --- .../{builtins.wat => builtins.untouched.wat} | 625 +---- ...xtends.wat => class-extends.untouched.wat} | 6 - .../{class.wat => class.untouched.wat} | 52 - .../{comma.wat => comma.untouched.wat} | 56 - .../{declare.wat => declare.untouched.wat} | 8 - tests/compiler/{do.wat => do.untouched.wat} | 48 - .../{empty.wat => empty.untouched.wat} | 0 .../compiler/{enum.wat => enum.untouched.wat} | 2 - .../{export.wat => export.untouched.wat} | 9 - .../compiler/{fmod.wat => fmod.untouched.wat} | 385 --- tests/compiler/{for.wat => for.untouched.wat} | 41 - .../{function.wat => function.untouched.wat} | 50 - tests/compiler/game-of-life.untouched.wat | 308 +++ tests/compiler/game-of-life.wat | 417 --- ...setter.wat => getter-setter.untouched.wat} | 16 - ...olyfill.wat => i64-polyfill.untouched.wat} | 395 --- tests/compiler/{if.wat => if.untouched.wat} | 44 - .../{import.wat => import.untouched.wat} | 19 - ...nfer-type.wat => infer-type.untouched.wat} | 36 - .../{inlining.wat => inlining.untouched.wat} | 7 - .../{limits.wat => limits.untouched.wat} | 26 - .../{literals.wat => literals.untouched.wat} | 44 - .../{logical.wat => logical.untouched.wat} | 62 - .../{memcpy.wat => memcpy.untouched.wat} | 542 ---- .../{memmove.wat => memmove.untouched.wat} | 186 -- .../{memset.wat => memset.untouched.wat} | 212 -- ...{namespace.wat => namespace.untouched.wat} | 7 - .../{overflow.wat => overflow.untouched.wat} | 192 -- ...wat => portable-conversions.untouched.wat} | 104 - ...{recursive.wat => recursive.untouched.wat} | 11 - .../{reexport.wat => reexport.untouched.wat} | 15 - ...etain-i32.wat => retain-i32.untouched.wat} | 322 --- .../{scoped.wat => scoped.untouched.wat} | 31 - .../{showcase.wat => showcase.untouched.wat} | 2282 +---------------- ...rena.wat => allocator_arena.untouched.wat} | 840 ------ .../std/{array.wat => array.untouched.wat} | 1235 --------- .../std/{carray.wat => carray.untouched.wat} | 74 - .../std/{new.wat => new.untouched.wat} | 46 - .../std/{set.wat => set.untouched.wat} | 758 ------ .../std/{string.wat => string.untouched.wat} | 499 ---- .../{switch.wat => switch.untouched.wat} | 25 - .../{ternary.wat => ternary.untouched.wat} | 27 - .../compiler/{tlsf.wat => tlsf.untouched.wat} | 115 - ...{typealias.wat => typealias.untouched.wat} | 1 - .../{unary.wat => unary.untouched.wat} | 272 +- .../{while.wat => while.untouched.wat} | 52 - 49 files changed, 419 insertions(+), 10437 deletions(-) rename tests/compiler/{assert.wat => assert.untouched.wat} (80%) rename tests/compiler/{binary.wat => binary.untouched.wat} (61%) rename tests/compiler/{builtins.wat => builtins.untouched.wat} (62%) rename tests/compiler/{class-extends.wat => class-extends.untouched.wat} (73%) rename tests/compiler/{class.wat => class.untouched.wat} (73%) rename tests/compiler/{comma.wat => comma.untouched.wat} (77%) rename tests/compiler/{declare.wat => declare.untouched.wat} (86%) rename tests/compiler/{do.wat => do.untouched.wat} (80%) rename tests/compiler/{empty.wat => empty.untouched.wat} (100%) rename tests/compiler/{enum.wat => enum.untouched.wat} (98%) rename tests/compiler/{export.wat => export.untouched.wat} (83%) rename tests/compiler/{fmod.wat => fmod.untouched.wat} (64%) rename tests/compiler/{for.wat => for.untouched.wat} (74%) rename tests/compiler/{function.wat => function.untouched.wat} (72%) create mode 100644 tests/compiler/game-of-life.untouched.wat delete mode 100644 tests/compiler/game-of-life.wat rename tests/compiler/{getter-setter.wat => getter-setter.untouched.wat} (77%) rename tests/compiler/{i64-polyfill.wat => i64-polyfill.untouched.wat} (50%) rename tests/compiler/{if.wat => if.untouched.wat} (77%) rename tests/compiler/{import.wat => import.untouched.wat} (71%) rename tests/compiler/{infer-type.wat => infer-type.untouched.wat} (71%) rename tests/compiler/{inlining.wat => inlining.untouched.wat} (83%) rename tests/compiler/{limits.wat => limits.untouched.wat} (67%) rename tests/compiler/{literals.wat => literals.untouched.wat} (59%) rename tests/compiler/{logical.wat => logical.untouched.wat} (76%) rename tests/compiler/{memcpy.wat => memcpy.untouched.wat} (70%) rename tests/compiler/{memmove.wat => memmove.untouched.wat} (67%) rename tests/compiler/{memset.wat => memset.untouched.wat} (59%) rename tests/compiler/{namespace.wat => namespace.untouched.wat} (83%) rename tests/compiler/{overflow.wat => overflow.untouched.wat} (76%) rename tests/compiler/{portable-conversions.wat => portable-conversions.untouched.wat} (58%) rename tests/compiler/{recursive.wat => recursive.untouched.wat} (66%) rename tests/compiler/{reexport.wat => reexport.untouched.wat} (79%) rename tests/compiler/{retain-i32.wat => retain-i32.untouched.wat} (67%) rename tests/compiler/{scoped.wat => scoped.untouched.wat} (66%) rename tests/compiler/{showcase.wat => showcase.untouched.wat} (66%) rename tests/compiler/std/{allocator_arena.wat => allocator_arena.untouched.wat} (63%) rename tests/compiler/std/{array.wat => array.untouched.wat} (65%) rename tests/compiler/std/{carray.wat => carray.untouched.wat} (69%) rename tests/compiler/std/{new.wat => new.untouched.wat} (63%) rename tests/compiler/std/{set.wat => set.untouched.wat} (66%) rename tests/compiler/std/{string.wat => string.untouched.wat} (64%) rename tests/compiler/{switch.wat => switch.untouched.wat} (80%) rename tests/compiler/{ternary.wat => ternary.untouched.wat} (59%) rename tests/compiler/{tlsf.wat => tlsf.untouched.wat} (74%) rename tests/compiler/{typealias.wat => typealias.untouched.wat} (94%) rename tests/compiler/{unary.wat => unary.untouched.wat} (68%) rename tests/compiler/{while.wat => while.untouched.wat} (80%) diff --git a/tests/compiler.js b/tests/compiler.js index 75071109..8a4704f6 100644 --- a/tests/compiler.js +++ b/tests/compiler.js @@ -59,7 +59,6 @@ tests.forEach(filename => { filename, "--baseDir", basedir, "--validate", - "--sourceMap", "--measure", "--textFile" // -> stdout ], { @@ -71,11 +70,11 @@ tests.forEach(filename => { stderr.write(err + os.EOL); var actual = stdout.toString().replace(/\r\n/g, "\n"); if (args.create) { - fs.writeFileSync(path.join(basedir, basename + ".wat"), actual, { encoding: "utf8" }); + fs.writeFileSync(path.join(basedir, basename + ".untouched.wat"), actual, { encoding: "utf8" }); console.log("- " + chalk.yellow("Created fixture")); } else { - let expected = fs.readFileSync(path.join(basedir, basename + ".wat"), { encoding: "utf8" }).replace(/\r\n/g, "\n"); - let diffs = diff(basename + ".wat", expected, actual); + let expected = fs.readFileSync(path.join(basedir, basename + ".untouched.wat"), { encoding: "utf8" }).replace(/\r\n/g, "\n"); + let diffs = diff(basename + ".untouched.wat", expected, actual); if (diffs !== null) { console.log(diffs); console.log("- " + chalk.red("diff ERROR")); diff --git a/tests/compiler/assert.wat b/tests/compiler/assert.untouched.wat similarity index 80% rename from tests/compiler/assert.wat rename to tests/compiler/assert.untouched.wat index 00437f7a..3d78871c 100644 --- a/tests/compiler/assert.wat +++ b/tests/compiler/assert.untouched.wat @@ -10,10 +10,8 @@ (start $start) (func $start (; 1 ;) (type $v) (local $0 i32) - ;;@ assert.ts:1:0 (if (i32.eqz - ;;@ assert.ts:1:7 (i32.const 1) ) (block @@ -26,10 +24,8 @@ (unreachable) ) ) - ;;@ assert.ts:2:0 (if (i32.eqz - ;;@ assert.ts:2:7 (i32.const 1) ) (block @@ -42,13 +38,10 @@ (unreachable) ) ) - ;;@ assert.ts:3:0 (if (i32.eqz - ;;@ assert.ts:3:7 (i32.gt_s (i32.const 1) - ;;@ assert.ts:3:11 (i32.const 0) ) ) @@ -62,10 +55,8 @@ (unreachable) ) ) - ;;@ assert.ts:4:0 (if (f64.eq - ;;@ assert.ts:4:7 (f64.const 0.5) (f64.const 0) ) @@ -79,13 +70,10 @@ (unreachable) ) ) - ;;@ assert.ts:5:0 (if (i32.eqz - ;;@ assert.ts:5:7 (f64.gt (f64.const 0.5) - ;;@ assert.ts:5:13 (f64.const 0.4) ) ) @@ -99,10 +87,8 @@ (unreachable) ) ) - ;;@ assert.ts:6:0 (if (i64.eqz - ;;@ assert.ts:6:7 (i64.const 4294967296) ) (block @@ -115,13 +101,10 @@ (unreachable) ) ) - ;;@ assert.ts:7:0 (if (i32.eqz - ;;@ assert.ts:7:7 (i64.gt_s (i64.const 4294967296) - ;;@ assert.ts:7:21 (i64.const 1) ) ) @@ -135,21 +118,16 @@ (unreachable) ) ) - ;;@ assert.ts:10:0 (if - ;;@ assert.ts:10:4 (i32.eqz - ;;@ assert.ts:10:5 (if (result i32) (i32.eqz (tee_local $0 - ;;@ assert.ts:10:12 (i32.const 1) ) ) (block (call $abort - ;;@ assert.ts:10:18 (i32.const 28) (i32.const 4) (i32.const 10) @@ -160,7 +138,6 @@ (get_local $0) ) ) - ;;@ assert.ts:11:2 (unreachable) ) ) diff --git a/tests/compiler/binary.wat b/tests/compiler/binary.untouched.wat similarity index 61% rename from tests/compiler/binary.wat rename to tests/compiler/binary.untouched.wat index 431ac9ab..1e29f213 100644 --- a/tests/compiler/binary.wat +++ b/tests/compiler/binary.untouched.wat @@ -10,1129 +10,807 @@ (export "memory" (memory $0)) (start $start) (func $start (; 0 ;) (type $v) - ;;@ binary.ts:5:0 (drop (i32.lt_s (get_global $binary/i) - ;;@ binary.ts:5:4 (i32.const 1) ) ) - ;;@ binary.ts:6:0 (drop (i32.gt_s (get_global $binary/i) - ;;@ binary.ts:6:4 (i32.const 1) ) ) - ;;@ binary.ts:7:0 (drop (i32.le_s (get_global $binary/i) - ;;@ binary.ts:7:5 (i32.const 1) ) ) - ;;@ binary.ts:8:0 (drop (i32.ge_s (get_global $binary/i) - ;;@ binary.ts:8:5 (i32.const 1) ) ) - ;;@ binary.ts:9:0 (drop (i32.eq (get_global $binary/i) - ;;@ binary.ts:9:5 (i32.const 1) ) ) - ;;@ binary.ts:10:0 (drop (i32.eq (get_global $binary/i) - ;;@ binary.ts:10:6 (i32.const 1) ) ) - ;;@ binary.ts:11:0 (drop (i32.add (get_global $binary/i) - ;;@ binary.ts:11:4 (i32.const 1) ) ) - ;;@ binary.ts:12:0 (drop (i32.sub (get_global $binary/i) - ;;@ binary.ts:12:4 (i32.const 1) ) ) - ;;@ binary.ts:13:0 (drop (i32.mul (get_global $binary/i) - ;;@ binary.ts:13:4 (i32.const 1) ) ) - ;;@ binary.ts:14:0 (drop (i32.div_s (get_global $binary/i) - ;;@ binary.ts:14:4 (i32.const 1) ) ) - ;;@ binary.ts:15:0 (drop (i32.rem_s (get_global $binary/i) - ;;@ binary.ts:15:4 (i32.const 1) ) ) - ;;@ binary.ts:16:0 (drop (i32.shl (get_global $binary/i) - ;;@ binary.ts:16:5 (i32.const 1) ) ) - ;;@ binary.ts:17:0 (drop (i32.shr_s (get_global $binary/i) - ;;@ binary.ts:17:5 (i32.const 1) ) ) - ;;@ binary.ts:18:0 (drop (i32.shr_u (get_global $binary/i) - ;;@ binary.ts:18:6 (i32.const 1) ) ) - ;;@ binary.ts:19:0 (drop (i32.and (get_global $binary/i) - ;;@ binary.ts:19:4 (i32.const 1) ) ) - ;;@ binary.ts:20:0 (drop (i32.or (get_global $binary/i) - ;;@ binary.ts:20:4 (i32.const 1) ) ) - ;;@ binary.ts:21:0 (drop (i32.xor (get_global $binary/i) - ;;@ binary.ts:21:4 (i32.const 1) ) ) - ;;@ binary.ts:23:0 (set_global $binary/b - ;;@ binary.ts:23:4 (i32.lt_s (get_global $binary/i) - ;;@ binary.ts:23:8 (i32.const 1) ) ) - ;;@ binary.ts:24:0 (set_global $binary/b - ;;@ binary.ts:24:4 (i32.gt_s (get_global $binary/i) - ;;@ binary.ts:24:8 (i32.const 1) ) ) - ;;@ binary.ts:25:0 (set_global $binary/b - ;;@ binary.ts:25:4 (i32.le_s (get_global $binary/i) - ;;@ binary.ts:25:9 (i32.const 1) ) ) - ;;@ binary.ts:26:0 (set_global $binary/b - ;;@ binary.ts:26:4 (i32.ge_s (get_global $binary/i) - ;;@ binary.ts:26:9 (i32.const 1) ) ) - ;;@ binary.ts:27:0 (set_global $binary/b - ;;@ binary.ts:27:4 (i32.eq (get_global $binary/i) - ;;@ binary.ts:27:9 (i32.const 1) ) ) - ;;@ binary.ts:28:0 (set_global $binary/b - ;;@ binary.ts:28:4 (i32.eq (get_global $binary/i) - ;;@ binary.ts:28:10 (i32.const 1) ) ) - ;;@ binary.ts:29:0 (set_global $binary/i - ;;@ binary.ts:29:4 (i32.add (get_global $binary/i) - ;;@ binary.ts:29:8 (i32.const 1) ) ) - ;;@ binary.ts:30:0 (set_global $binary/i - ;;@ binary.ts:30:4 (i32.sub (get_global $binary/i) - ;;@ binary.ts:30:8 (i32.const 1) ) ) - ;;@ binary.ts:31:0 (set_global $binary/i - ;;@ binary.ts:31:4 (i32.mul (get_global $binary/i) - ;;@ binary.ts:31:8 (i32.const 1) ) ) - ;;@ binary.ts:32:0 (set_global $binary/i - ;;@ binary.ts:32:4 (i32.div_s (get_global $binary/i) - ;;@ binary.ts:32:8 (i32.const 1) ) ) - ;;@ binary.ts:33:0 (set_global $binary/i - ;;@ binary.ts:33:4 (i32.rem_s (get_global $binary/i) - ;;@ binary.ts:33:8 (i32.const 1) ) ) - ;;@ binary.ts:34:0 (set_global $binary/i - ;;@ binary.ts:34:4 (i32.shl (get_global $binary/i) - ;;@ binary.ts:34:9 (i32.const 1) ) ) - ;;@ binary.ts:35:0 (set_global $binary/i - ;;@ binary.ts:35:4 (i32.shr_s (get_global $binary/i) - ;;@ binary.ts:35:9 (i32.const 1) ) ) - ;;@ binary.ts:36:0 (set_global $binary/i - ;;@ binary.ts:36:4 (i32.shr_u (get_global $binary/i) - ;;@ binary.ts:36:10 (i32.const 1) ) ) - ;;@ binary.ts:37:0 (set_global $binary/i - ;;@ binary.ts:37:4 (i32.and (get_global $binary/i) - ;;@ binary.ts:37:8 (i32.const 1) ) ) - ;;@ binary.ts:38:0 (set_global $binary/i - ;;@ binary.ts:38:4 (i32.or (get_global $binary/i) - ;;@ binary.ts:38:8 (i32.const 1) ) ) - ;;@ binary.ts:39:0 (set_global $binary/i - ;;@ binary.ts:39:4 (i32.xor (get_global $binary/i) - ;;@ binary.ts:39:8 (i32.const 1) ) ) - ;;@ binary.ts:41:0 (set_global $binary/i (i32.add (get_global $binary/i) - ;;@ binary.ts:41:5 (i32.const 1) ) ) - ;;@ binary.ts:42:0 (set_global $binary/i (i32.sub (get_global $binary/i) - ;;@ binary.ts:42:5 (i32.const 1) ) ) - ;;@ binary.ts:43:0 (set_global $binary/i (i32.mul (get_global $binary/i) - ;;@ binary.ts:43:5 (i32.const 1) ) ) - ;;@ binary.ts:44:0 (set_global $binary/i (i32.rem_s (get_global $binary/i) - ;;@ binary.ts:44:5 (i32.const 1) ) ) - ;;@ binary.ts:45:0 (set_global $binary/i (i32.shl (get_global $binary/i) - ;;@ binary.ts:45:6 (i32.const 1) ) ) - ;;@ binary.ts:46:0 (set_global $binary/i (i32.shr_s (get_global $binary/i) - ;;@ binary.ts:46:6 (i32.const 1) ) ) - ;;@ binary.ts:47:0 (set_global $binary/i (i32.shr_u (get_global $binary/i) - ;;@ binary.ts:47:7 (i32.const 1) ) ) - ;;@ binary.ts:48:0 (set_global $binary/i (i32.and (get_global $binary/i) - ;;@ binary.ts:48:5 (i32.const 1) ) ) - ;;@ binary.ts:49:0 (set_global $binary/i (i32.or (get_global $binary/i) - ;;@ binary.ts:49:5 (i32.const 1) ) ) - ;;@ binary.ts:50:0 (set_global $binary/i (i32.xor (get_global $binary/i) - ;;@ binary.ts:50:5 (i32.const 1) ) ) - ;;@ binary.ts:54:0 (drop (i64.lt_s (get_global $binary/I) - ;;@ binary.ts:54:4 (i64.const 1) ) ) - ;;@ binary.ts:55:0 (drop (i64.gt_s (get_global $binary/I) - ;;@ binary.ts:55:4 (i64.const 1) ) ) - ;;@ binary.ts:56:0 (drop (i64.le_s (get_global $binary/I) - ;;@ binary.ts:56:5 (i64.const 1) ) ) - ;;@ binary.ts:57:0 (drop (i64.ge_s (get_global $binary/I) - ;;@ binary.ts:57:5 (i64.const 1) ) ) - ;;@ binary.ts:58:0 (drop (i64.eq (get_global $binary/I) - ;;@ binary.ts:58:5 (i64.const 1) ) ) - ;;@ binary.ts:59:0 (drop (i64.eq (get_global $binary/I) - ;;@ binary.ts:59:6 (i64.const 1) ) ) - ;;@ binary.ts:60:0 (drop (i64.add (get_global $binary/I) - ;;@ binary.ts:60:4 (i64.const 1) ) ) - ;;@ binary.ts:61:0 (drop (i64.sub (get_global $binary/I) - ;;@ binary.ts:61:4 (i64.const 1) ) ) - ;;@ binary.ts:62:0 (drop (i64.mul (get_global $binary/I) - ;;@ binary.ts:62:4 (i64.const 1) ) ) - ;;@ binary.ts:63:0 (drop (i64.div_s (get_global $binary/I) - ;;@ binary.ts:63:4 (i64.const 1) ) ) - ;;@ binary.ts:64:0 (drop (i64.rem_s (get_global $binary/I) - ;;@ binary.ts:64:4 (i64.const 1) ) ) - ;;@ binary.ts:65:0 (drop (i64.shl (get_global $binary/I) - ;;@ binary.ts:65:5 (i64.const 1) ) ) - ;;@ binary.ts:66:0 (drop (i64.shr_s (get_global $binary/I) - ;;@ binary.ts:66:5 (i64.const 1) ) ) - ;;@ binary.ts:67:0 (drop (i64.shr_u (get_global $binary/I) - ;;@ binary.ts:67:6 (i64.const 1) ) ) - ;;@ binary.ts:68:0 (drop (i64.and (get_global $binary/I) - ;;@ binary.ts:68:4 (i64.const 1) ) ) - ;;@ binary.ts:69:0 (drop (i64.or (get_global $binary/I) - ;;@ binary.ts:69:4 (i64.const 1) ) ) - ;;@ binary.ts:70:0 (drop (i64.xor (get_global $binary/I) - ;;@ binary.ts:70:4 (i64.const 1) ) ) - ;;@ binary.ts:72:0 (set_global $binary/b - ;;@ binary.ts:72:4 (i64.lt_s (get_global $binary/I) - ;;@ binary.ts:72:8 (i64.const 1) ) ) - ;;@ binary.ts:73:0 (set_global $binary/b - ;;@ binary.ts:73:4 (i64.gt_s (get_global $binary/I) - ;;@ binary.ts:73:8 (i64.const 1) ) ) - ;;@ binary.ts:74:0 (set_global $binary/b - ;;@ binary.ts:74:4 (i64.le_s (get_global $binary/I) - ;;@ binary.ts:74:9 (i64.const 1) ) ) - ;;@ binary.ts:75:0 (set_global $binary/b - ;;@ binary.ts:75:4 (i64.ge_s (get_global $binary/I) - ;;@ binary.ts:75:9 (i64.const 1) ) ) - ;;@ binary.ts:76:0 (set_global $binary/b - ;;@ binary.ts:76:4 (i64.eq (get_global $binary/I) - ;;@ binary.ts:76:9 (i64.const 1) ) ) - ;;@ binary.ts:77:0 (set_global $binary/b - ;;@ binary.ts:77:4 (i64.eq (get_global $binary/I) - ;;@ binary.ts:77:10 (i64.const 1) ) ) - ;;@ binary.ts:78:0 (set_global $binary/I - ;;@ binary.ts:78:4 (i64.add (get_global $binary/I) - ;;@ binary.ts:78:8 (i64.const 1) ) ) - ;;@ binary.ts:79:0 (set_global $binary/I - ;;@ binary.ts:79:4 (i64.sub (get_global $binary/I) - ;;@ binary.ts:79:8 (i64.const 1) ) ) - ;;@ binary.ts:80:0 (set_global $binary/I - ;;@ binary.ts:80:4 (i64.mul (get_global $binary/I) - ;;@ binary.ts:80:8 (i64.const 1) ) ) - ;;@ binary.ts:81:0 (set_global $binary/I - ;;@ binary.ts:81:4 (i64.div_s (get_global $binary/I) - ;;@ binary.ts:81:8 (i64.const 1) ) ) - ;;@ binary.ts:82:0 (set_global $binary/I - ;;@ binary.ts:82:4 (i64.rem_s (get_global $binary/I) - ;;@ binary.ts:82:8 (i64.const 1) ) ) - ;;@ binary.ts:83:0 (set_global $binary/I - ;;@ binary.ts:83:4 (i64.shl (get_global $binary/I) - ;;@ binary.ts:83:9 (i64.const 1) ) ) - ;;@ binary.ts:84:0 (set_global $binary/I - ;;@ binary.ts:84:4 (i64.shr_s (get_global $binary/I) - ;;@ binary.ts:84:9 (i64.const 1) ) ) - ;;@ binary.ts:85:0 (set_global $binary/I - ;;@ binary.ts:85:4 (i64.shr_u (get_global $binary/I) - ;;@ binary.ts:85:10 (i64.const 1) ) ) - ;;@ binary.ts:86:0 (set_global $binary/I - ;;@ binary.ts:86:4 (i64.and (get_global $binary/I) - ;;@ binary.ts:86:8 (i64.const 1) ) ) - ;;@ binary.ts:87:0 (set_global $binary/I - ;;@ binary.ts:87:4 (i64.or (get_global $binary/I) - ;;@ binary.ts:87:8 (i64.const 1) ) ) - ;;@ binary.ts:88:0 (set_global $binary/I - ;;@ binary.ts:88:4 (i64.xor (get_global $binary/I) - ;;@ binary.ts:88:8 (i64.const 1) ) ) - ;;@ binary.ts:90:0 (set_global $binary/I (i64.add (get_global $binary/I) - ;;@ binary.ts:90:5 (i64.const 1) ) ) - ;;@ binary.ts:91:0 (set_global $binary/I (i64.sub (get_global $binary/I) - ;;@ binary.ts:91:5 (i64.const 1) ) ) - ;;@ binary.ts:92:0 (set_global $binary/I (i64.mul (get_global $binary/I) - ;;@ binary.ts:92:5 (i64.const 1) ) ) - ;;@ binary.ts:93:0 (set_global $binary/I (i64.rem_s (get_global $binary/I) - ;;@ binary.ts:93:5 (i64.const 1) ) ) - ;;@ binary.ts:94:0 (set_global $binary/I (i64.shl (get_global $binary/I) - ;;@ binary.ts:94:6 (i64.const 1) ) ) - ;;@ binary.ts:95:0 (set_global $binary/I (i64.shr_s (get_global $binary/I) - ;;@ binary.ts:95:6 (i64.const 1) ) ) - ;;@ binary.ts:96:0 (set_global $binary/I (i64.shr_u (get_global $binary/I) - ;;@ binary.ts:96:7 (i64.const 1) ) ) - ;;@ binary.ts:97:0 (set_global $binary/I (i64.and (get_global $binary/I) - ;;@ binary.ts:97:5 (i64.const 1) ) ) - ;;@ binary.ts:98:0 (set_global $binary/I (i64.or (get_global $binary/I) - ;;@ binary.ts:98:5 (i64.const 1) ) ) - ;;@ binary.ts:99:0 (set_global $binary/I (i64.xor (get_global $binary/I) - ;;@ binary.ts:99:5 (i64.const 1) ) ) - ;;@ binary.ts:103:0 (drop (f32.lt (get_global $binary/f) - ;;@ binary.ts:103:4 (f32.const 1) ) ) - ;;@ binary.ts:104:0 (drop (f32.gt (get_global $binary/f) - ;;@ binary.ts:104:4 (f32.const 1) ) ) - ;;@ binary.ts:105:0 (drop (f32.le (get_global $binary/f) - ;;@ binary.ts:105:5 (f32.const 1) ) ) - ;;@ binary.ts:106:0 (drop (f32.ge (get_global $binary/f) - ;;@ binary.ts:106:5 (f32.const 1) ) ) - ;;@ binary.ts:107:0 (drop (f32.eq (get_global $binary/f) - ;;@ binary.ts:107:5 (f32.const 1) ) ) - ;;@ binary.ts:108:0 (drop (f32.eq (get_global $binary/f) - ;;@ binary.ts:108:6 (f32.const 1) ) ) - ;;@ binary.ts:109:0 (drop (f32.add (get_global $binary/f) - ;;@ binary.ts:109:4 (f32.const 1) ) ) - ;;@ binary.ts:110:0 (drop (f32.sub (get_global $binary/f) - ;;@ binary.ts:110:4 (f32.const 1) ) ) - ;;@ binary.ts:111:0 (drop (f32.mul (get_global $binary/f) - ;;@ binary.ts:111:4 (f32.const 1) ) ) - ;;@ binary.ts:112:0 (drop (f32.div (get_global $binary/f) - ;;@ binary.ts:112:4 (f32.const 1) ) ) - ;;@ binary.ts:115:0 (set_global $binary/b - ;;@ binary.ts:115:4 (f32.lt (get_global $binary/f) - ;;@ binary.ts:115:8 (f32.const 1) ) ) - ;;@ binary.ts:116:0 (set_global $binary/b - ;;@ binary.ts:116:4 (f32.gt (get_global $binary/f) - ;;@ binary.ts:116:8 (f32.const 1) ) ) - ;;@ binary.ts:117:0 (set_global $binary/b - ;;@ binary.ts:117:4 (f32.le (get_global $binary/f) - ;;@ binary.ts:117:9 (f32.const 1) ) ) - ;;@ binary.ts:118:0 (set_global $binary/b - ;;@ binary.ts:118:4 (f32.ge (get_global $binary/f) - ;;@ binary.ts:118:9 (f32.const 1) ) ) - ;;@ binary.ts:119:0 (set_global $binary/b - ;;@ binary.ts:119:4 (f32.eq (get_global $binary/f) - ;;@ binary.ts:119:9 (f32.const 1) ) ) - ;;@ binary.ts:120:0 (set_global $binary/b - ;;@ binary.ts:120:4 (f32.eq (get_global $binary/f) - ;;@ binary.ts:120:10 (f32.const 1) ) ) - ;;@ binary.ts:121:0 (set_global $binary/f - ;;@ binary.ts:121:4 (f32.add (get_global $binary/f) - ;;@ binary.ts:121:8 (f32.const 1) ) ) - ;;@ binary.ts:122:0 (set_global $binary/f - ;;@ binary.ts:122:4 (f32.sub (get_global $binary/f) - ;;@ binary.ts:122:8 (f32.const 1) ) ) - ;;@ binary.ts:123:0 (set_global $binary/f - ;;@ binary.ts:123:4 (f32.mul (get_global $binary/f) - ;;@ binary.ts:123:8 (f32.const 1) ) ) - ;;@ binary.ts:124:0 (set_global $binary/f - ;;@ binary.ts:124:4 (f32.div (get_global $binary/f) - ;;@ binary.ts:124:8 (f32.const 1) ) ) - ;;@ binary.ts:127:0 (set_global $binary/f (f32.add (get_global $binary/f) - ;;@ binary.ts:127:5 (f32.const 1) ) ) - ;;@ binary.ts:128:0 (set_global $binary/f (f32.sub (get_global $binary/f) - ;;@ binary.ts:128:5 (f32.const 1) ) ) - ;;@ binary.ts:129:0 (set_global $binary/f (f32.mul (get_global $binary/f) - ;;@ binary.ts:129:5 (f32.const 1) ) ) - ;;@ binary.ts:134:0 (drop (f64.lt (get_global $binary/F) - ;;@ binary.ts:134:4 (f64.const 1) ) ) - ;;@ binary.ts:135:0 (drop (f64.gt (get_global $binary/F) - ;;@ binary.ts:135:4 (f64.const 1) ) ) - ;;@ binary.ts:136:0 (drop (f64.le (get_global $binary/F) - ;;@ binary.ts:136:5 (f64.const 1) ) ) - ;;@ binary.ts:137:0 (drop (f64.ge (get_global $binary/F) - ;;@ binary.ts:137:5 (f64.const 1) ) ) - ;;@ binary.ts:138:0 (drop (f64.eq (get_global $binary/F) - ;;@ binary.ts:138:5 (f64.const 1) ) ) - ;;@ binary.ts:139:0 (drop (f64.eq (get_global $binary/F) - ;;@ binary.ts:139:6 (f64.const 1) ) ) - ;;@ binary.ts:140:0 (drop (f64.add (get_global $binary/F) - ;;@ binary.ts:140:4 (f64.const 1) ) ) - ;;@ binary.ts:141:0 (drop (f64.sub (get_global $binary/F) - ;;@ binary.ts:141:4 (f64.const 1) ) ) - ;;@ binary.ts:142:0 (drop (f64.mul (get_global $binary/F) - ;;@ binary.ts:142:4 (f64.const 1) ) ) - ;;@ binary.ts:143:0 (drop (f64.div (get_global $binary/F) - ;;@ binary.ts:143:4 (f64.const 1) ) ) - ;;@ binary.ts:146:0 (set_global $binary/b - ;;@ binary.ts:146:4 (f64.lt (get_global $binary/F) - ;;@ binary.ts:146:8 (f64.const 1) ) ) - ;;@ binary.ts:147:0 (set_global $binary/b - ;;@ binary.ts:147:4 (f64.gt (get_global $binary/F) - ;;@ binary.ts:147:8 (f64.const 1) ) ) - ;;@ binary.ts:148:0 (set_global $binary/b - ;;@ binary.ts:148:4 (f64.le (get_global $binary/F) - ;;@ binary.ts:148:9 (f64.const 1) ) ) - ;;@ binary.ts:149:0 (set_global $binary/b - ;;@ binary.ts:149:4 (f64.ge (get_global $binary/F) - ;;@ binary.ts:149:9 (f64.const 1) ) ) - ;;@ binary.ts:150:0 (set_global $binary/b - ;;@ binary.ts:150:4 (f64.eq (get_global $binary/F) - ;;@ binary.ts:150:9 (f64.const 1) ) ) - ;;@ binary.ts:151:0 (set_global $binary/b - ;;@ binary.ts:151:4 (f64.eq (get_global $binary/F) - ;;@ binary.ts:151:10 (f64.const 1) ) ) - ;;@ binary.ts:152:0 (set_global $binary/F - ;;@ binary.ts:152:4 (f64.add (get_global $binary/F) - ;;@ binary.ts:152:8 (f64.const 1) ) ) - ;;@ binary.ts:153:0 (set_global $binary/F - ;;@ binary.ts:153:4 (f64.sub (get_global $binary/F) - ;;@ binary.ts:153:8 (f64.const 1) ) ) - ;;@ binary.ts:154:0 (set_global $binary/F - ;;@ binary.ts:154:4 (f64.mul (get_global $binary/F) - ;;@ binary.ts:154:8 (f64.const 1) ) ) - ;;@ binary.ts:155:0 (set_global $binary/F - ;;@ binary.ts:155:4 (f64.div (get_global $binary/F) - ;;@ binary.ts:155:8 (f64.const 1) ) ) - ;;@ binary.ts:158:0 (set_global $binary/F (f64.add (get_global $binary/F) - ;;@ binary.ts:158:5 (f64.const 1) ) ) - ;;@ binary.ts:159:0 (set_global $binary/F (f64.sub (get_global $binary/F) - ;;@ binary.ts:159:5 (f64.const 1) ) ) - ;;@ binary.ts:160:0 (set_global $binary/F (f64.mul (get_global $binary/F) - ;;@ binary.ts:160:5 (f64.const 1) ) ) diff --git a/tests/compiler/builtins.wat b/tests/compiler/builtins.untouched.wat similarity index 62% rename from tests/compiler/builtins.wat rename to tests/compiler/builtins.untouched.wat index ffdb6d81..3e9a71fc 100644 --- a/tests/compiler/builtins.wat +++ b/tests/compiler/builtins.untouched.wat @@ -27,50 +27,36 @@ (local $3 i64) (local $4 f32) (local $5 f64) - ;;@ builtins.ts:7:0 (drop (i32.clz - ;;@ builtins.ts:7:9 (i32.const 1) ) ) - ;;@ builtins.ts:8:0 (drop (i32.ctz - ;;@ builtins.ts:8:9 (i32.const 1) ) ) - ;;@ builtins.ts:9:0 (drop (i32.popcnt - ;;@ builtins.ts:9:12 (i32.const 1) ) ) - ;;@ builtins.ts:10:0 (drop (i32.rotl - ;;@ builtins.ts:10:10 (i32.const 1) - ;;@ builtins.ts:10:13 (i32.const 1) ) ) - ;;@ builtins.ts:11:0 (drop (i32.rotr - ;;@ builtins.ts:11:10 (i32.const 1) - ;;@ builtins.ts:11:13 (i32.const 1) ) ) - ;;@ builtins.ts:12:0 (drop (select (tee_local $0 - ;;@ builtins.ts:12:9 (i32.const -42) ) (i32.sub @@ -83,15 +69,12 @@ ) ) ) - ;;@ builtins.ts:13:0 (drop (select (tee_local $0 - ;;@ builtins.ts:13:9 (i32.const 1) ) (tee_local $1 - ;;@ builtins.ts:13:12 (i32.const 2) ) (i32.gt_s @@ -100,15 +83,12 @@ ) ) ) - ;;@ builtins.ts:14:0 (drop (select (tee_local $0 - ;;@ builtins.ts:14:9 (i32.const 1) ) (tee_local $1 - ;;@ builtins.ts:14:12 (i32.const 2) ) (i32.lt_s @@ -117,56 +97,36 @@ ) ) ) - ;;@ builtins.ts:16:0 (set_global $builtins/i - ;;@ builtins.ts:16:4 (i32.clz - ;;@ builtins.ts:16:13 (i32.const 1) ) ) - ;;@ builtins.ts:17:0 (set_global $builtins/i - ;;@ builtins.ts:17:4 (i32.ctz - ;;@ builtins.ts:17:13 (i32.const 1) ) ) - ;;@ builtins.ts:18:0 (set_global $builtins/i - ;;@ builtins.ts:18:4 (i32.popcnt - ;;@ builtins.ts:18:16 (i32.const 1) ) ) - ;;@ builtins.ts:19:0 (set_global $builtins/i - ;;@ builtins.ts:19:4 (i32.rotl - ;;@ builtins.ts:19:14 (i32.const 1) - ;;@ builtins.ts:19:17 (i32.const 1) ) ) - ;;@ builtins.ts:20:0 (set_global $builtins/i - ;;@ builtins.ts:20:4 (i32.rotr - ;;@ builtins.ts:20:14 (i32.const 1) - ;;@ builtins.ts:20:17 (i32.const 1) ) ) - ;;@ builtins.ts:21:0 (set_global $builtins/i - ;;@ builtins.ts:21:4 (select (tee_local $0 - ;;@ builtins.ts:21:13 (i32.const -42) ) (i32.sub @@ -179,13 +139,10 @@ ) ) ) - ;;@ builtins.ts:21:19 (if (i32.eqz - ;;@ builtins.ts:21:26 (i32.eq (get_global $builtins/i) - ;;@ builtins.ts:21:31 (i32.const 42) ) ) @@ -199,16 +156,12 @@ (unreachable) ) ) - ;;@ builtins.ts:22:0 (set_global $builtins/i - ;;@ builtins.ts:22:4 (select (tee_local $0 - ;;@ builtins.ts:22:13 (i32.const 1) ) (tee_local $1 - ;;@ builtins.ts:22:16 (i32.const 2) ) (i32.gt_s @@ -217,13 +170,10 @@ ) ) ) - ;;@ builtins.ts:22:20 (if (i32.eqz - ;;@ builtins.ts:22:27 (i32.eq (get_global $builtins/i) - ;;@ builtins.ts:22:32 (i32.const 2) ) ) @@ -237,16 +187,12 @@ (unreachable) ) ) - ;;@ builtins.ts:23:0 (set_global $builtins/i - ;;@ builtins.ts:23:4 (select (tee_local $0 - ;;@ builtins.ts:23:13 (i32.const 1) ) (tee_local $1 - ;;@ builtins.ts:23:16 (i32.const 2) ) (i32.lt_s @@ -255,13 +201,10 @@ ) ) ) - ;;@ builtins.ts:23:20 (if (i32.eqz - ;;@ builtins.ts:23:27 (i32.eq (get_global $builtins/i) - ;;@ builtins.ts:23:32 (i32.const 1) ) ) @@ -275,50 +218,36 @@ (unreachable) ) ) - ;;@ builtins.ts:27:0 (drop (i64.clz - ;;@ builtins.ts:27:9 (i64.const 1) ) ) - ;;@ builtins.ts:28:0 (drop (i64.ctz - ;;@ builtins.ts:28:9 (i64.const 1) ) ) - ;;@ builtins.ts:29:0 (drop (i64.popcnt - ;;@ builtins.ts:29:12 (i64.const 1) ) ) - ;;@ builtins.ts:30:0 (drop (i64.rotl - ;;@ builtins.ts:30:10 (i64.const 1) - ;;@ builtins.ts:30:13 (i64.const 1) ) ) - ;;@ builtins.ts:31:0 (drop (i64.rotr - ;;@ builtins.ts:31:10 (i64.const 1) - ;;@ builtins.ts:31:13 (i64.const 1) ) ) - ;;@ builtins.ts:32:0 (drop (select (tee_local $2 - ;;@ builtins.ts:32:9 (i64.const -42) ) (i64.sub @@ -331,56 +260,36 @@ ) ) ) - ;;@ builtins.ts:34:0 (set_global $builtins/I - ;;@ builtins.ts:34:4 (i64.clz - ;;@ builtins.ts:34:13 (i64.const 1) ) ) - ;;@ builtins.ts:35:0 (set_global $builtins/I - ;;@ builtins.ts:35:4 (i64.ctz - ;;@ builtins.ts:35:13 (i64.const 1) ) ) - ;;@ builtins.ts:36:0 (set_global $builtins/I - ;;@ builtins.ts:36:4 (i64.popcnt - ;;@ builtins.ts:36:16 (i64.const 1) ) ) - ;;@ builtins.ts:37:0 (set_global $builtins/I - ;;@ builtins.ts:37:4 (i64.rotl - ;;@ builtins.ts:37:14 (i64.const 1) - ;;@ builtins.ts:37:17 (i64.const 1) ) ) - ;;@ builtins.ts:38:0 (set_global $builtins/I - ;;@ builtins.ts:38:4 (i64.rotr - ;;@ builtins.ts:38:14 (i64.const 1) - ;;@ builtins.ts:38:17 (i64.const 1) ) ) - ;;@ builtins.ts:39:0 (set_global $builtins/I - ;;@ builtins.ts:39:4 (select (tee_local $2 - ;;@ builtins.ts:39:13 (i64.const -42) ) (i64.sub @@ -393,13 +302,10 @@ ) ) ) - ;;@ builtins.ts:39:19 (if (i32.eqz - ;;@ builtins.ts:39:26 (i64.eq (get_global $builtins/I) - ;;@ builtins.ts:39:31 (i64.const 42) ) ) @@ -413,16 +319,12 @@ (unreachable) ) ) - ;;@ builtins.ts:40:0 (set_global $builtins/I - ;;@ builtins.ts:40:4 (select (tee_local $2 - ;;@ builtins.ts:40:13 (i64.const 1) ) (tee_local $3 - ;;@ builtins.ts:40:16 (i64.const 2) ) (i64.gt_s @@ -431,13 +333,10 @@ ) ) ) - ;;@ builtins.ts:40:20 (if (i32.eqz - ;;@ builtins.ts:40:27 (i64.eq (get_global $builtins/I) - ;;@ builtins.ts:40:32 (i64.const 2) ) ) @@ -451,16 +350,12 @@ (unreachable) ) ) - ;;@ builtins.ts:41:0 (set_global $builtins/I - ;;@ builtins.ts:41:4 (select (tee_local $2 - ;;@ builtins.ts:41:13 (i64.const 1) ) (tee_local $3 - ;;@ builtins.ts:41:16 (i64.const 2) ) (i64.lt_s @@ -469,13 +364,10 @@ ) ) ) - ;;@ builtins.ts:41:20 (if (i32.eqz - ;;@ builtins.ts:41:27 (i32.eq (get_global $builtins/i) - ;;@ builtins.ts:41:32 (i32.const 1) ) ) @@ -489,102 +381,73 @@ (unreachable) ) ) - ;;@ builtins.ts:47:0 (drop - ;;@ builtins.ts:47:5 (f32.const nan:0x400000) ) - ;;@ builtins.ts:48:0 (drop - ;;@ builtins.ts:48:5 (f32.const inf) ) - ;;@ builtins.ts:49:0 (drop (f32.abs - ;;@ builtins.ts:49:9 (f32.const 1.25) ) ) - ;;@ builtins.ts:50:0 (drop (f32.ceil - ;;@ builtins.ts:50:10 (f32.const 1.25) ) ) - ;;@ builtins.ts:51:0 (drop (f32.copysign - ;;@ builtins.ts:51:14 (f32.const 1.25) - ;;@ builtins.ts:51:20 (f32.const 2.5) ) ) - ;;@ builtins.ts:52:0 (drop (f32.floor - ;;@ builtins.ts:52:11 (f32.const 1.25) ) ) - ;;@ builtins.ts:53:0 (drop (f32.max - ;;@ builtins.ts:53:9 (f32.const 1.25) - ;;@ builtins.ts:53:15 (f32.const 2.5) ) ) - ;;@ builtins.ts:54:0 (drop (f32.min - ;;@ builtins.ts:54:9 (f32.const 1.25) - ;;@ builtins.ts:54:15 (f32.const 2.5) ) ) - ;;@ builtins.ts:55:0 (drop (f32.nearest - ;;@ builtins.ts:55:13 (f32.const 1.25) ) ) - ;;@ builtins.ts:56:0 (drop (f32.sqrt - ;;@ builtins.ts:56:10 (f32.const 1.25) ) ) - ;;@ builtins.ts:57:0 (drop (f32.trunc - ;;@ builtins.ts:57:11 (f32.const 1.25) ) ) - ;;@ builtins.ts:58:0 (drop (f32.ne (tee_local $4 - ;;@ builtins.ts:58:11 (f32.const 1.25) ) (get_local $4) ) ) - ;;@ builtins.ts:59:0 (drop (select (f32.ne (f32.abs (tee_local $4 - ;;@ builtins.ts:59:14 (f32.const 1.25) ) ) @@ -597,113 +460,73 @@ ) ) ) - ;;@ builtins.ts:61:0 (set_global $builtins/f - ;;@ builtins.ts:61:4 (f32.const nan:0x400000) ) - ;;@ builtins.ts:62:0 (set_global $builtins/f - ;;@ builtins.ts:62:4 (f32.const inf) ) - ;;@ builtins.ts:63:0 (set_global $builtins/f - ;;@ builtins.ts:63:4 (f32.abs - ;;@ builtins.ts:63:13 (f32.const 1.25) ) ) - ;;@ builtins.ts:64:0 (set_global $builtins/f - ;;@ builtins.ts:64:4 (f32.ceil - ;;@ builtins.ts:64:14 (f32.const 1.25) ) ) - ;;@ builtins.ts:65:0 (set_global $builtins/f - ;;@ builtins.ts:65:4 (f32.copysign - ;;@ builtins.ts:65:18 (f32.const 1.25) - ;;@ builtins.ts:65:24 (f32.const 2.5) ) ) - ;;@ builtins.ts:66:0 (set_global $builtins/f - ;;@ builtins.ts:66:4 (f32.floor - ;;@ builtins.ts:66:15 (f32.const 1.25) ) ) - ;;@ builtins.ts:67:0 (set_global $builtins/f - ;;@ builtins.ts:67:4 (f32.max - ;;@ builtins.ts:67:13 (f32.const 1.25) - ;;@ builtins.ts:67:19 (f32.const 2.5) ) ) - ;;@ builtins.ts:68:0 (set_global $builtins/f - ;;@ builtins.ts:68:4 (f32.min - ;;@ builtins.ts:68:13 (f32.const 1.25) - ;;@ builtins.ts:68:19 (f32.const 2.5) ) ) - ;;@ builtins.ts:69:0 (set_global $builtins/f - ;;@ builtins.ts:69:4 (f32.nearest - ;;@ builtins.ts:69:17 (f32.const 1.25) ) ) - ;;@ builtins.ts:70:0 (set_global $builtins/f - ;;@ builtins.ts:70:4 (f32.sqrt - ;;@ builtins.ts:70:14 (f32.const 1.25) ) ) - ;;@ builtins.ts:71:0 (set_global $builtins/f - ;;@ builtins.ts:71:4 (f32.trunc - ;;@ builtins.ts:71:15 (f32.const 1.25) ) ) - ;;@ builtins.ts:72:0 (set_global $builtins/b - ;;@ builtins.ts:72:4 (f32.ne (tee_local $4 - ;;@ builtins.ts:72:15 (f32.const 1.25) ) (get_local $4) ) ) - ;;@ builtins.ts:73:0 (set_global $builtins/b - ;;@ builtins.ts:73:4 (select (f32.ne (f32.abs (tee_local $4 - ;;@ builtins.ts:73:18 (f32.const 1.25) ) ) @@ -716,110 +539,79 @@ ) ) ) - ;;@ builtins.ts:77:0 - (drop - ;;@ builtins.ts:77:5 - (f64.const nan:0x8000000000000) - ) - ;;@ builtins.ts:78:0 - (drop - ;;@ builtins.ts:78:5 - (f64.const inf) - ) - ;;@ builtins.ts:79:0 (drop (f64.const nan:0x8000000000000) ) - ;;@ builtins.ts:80:0 (drop (f64.const inf) ) - ;;@ builtins.ts:81:0 + (drop + (f64.const nan:0x8000000000000) + ) + (drop + (f64.const inf) + ) (drop (f64.abs - ;;@ builtins.ts:81:9 (f64.const 1.25) ) ) - ;;@ builtins.ts:82:0 (drop (f64.ceil - ;;@ builtins.ts:82:10 (f64.const 1.25) ) ) - ;;@ builtins.ts:83:0 (drop (f64.copysign - ;;@ builtins.ts:83:14 (f64.const 1.25) - ;;@ builtins.ts:83:20 (f64.const 2.5) ) ) - ;;@ builtins.ts:84:0 (drop (f64.floor - ;;@ builtins.ts:84:11 (f64.const 1.25) ) ) - ;;@ builtins.ts:85:0 (drop (f64.max - ;;@ builtins.ts:85:9 (f64.const 1.25) - ;;@ builtins.ts:85:15 (f64.const 2.5) ) ) - ;;@ builtins.ts:86:0 (drop (f64.min - ;;@ builtins.ts:86:9 (f64.const 1.25) - ;;@ builtins.ts:86:15 (f64.const 2.5) ) ) - ;;@ builtins.ts:87:0 (drop (f64.nearest - ;;@ builtins.ts:87:13 (f64.const 1.25) ) ) - ;;@ builtins.ts:88:0 (drop (f64.sqrt - ;;@ builtins.ts:88:10 (f64.const 1.25) ) ) - ;;@ builtins.ts:89:0 (drop (f64.trunc - ;;@ builtins.ts:89:11 (f64.const 1.25) ) ) - ;;@ builtins.ts:90:0 (drop (f64.ne (tee_local $5 - ;;@ builtins.ts:90:11 (f64.const 1.25) ) (get_local $5) ) ) - ;;@ builtins.ts:91:0 (drop (select (f64.ne (f64.abs (tee_local $5 - ;;@ builtins.ts:91:14 (f64.const 1.25) ) ) @@ -832,113 +624,73 @@ ) ) ) - ;;@ builtins.ts:93:0 (set_global $builtins/F - ;;@ builtins.ts:93:4 (f64.const nan:0x8000000000000) ) - ;;@ builtins.ts:94:0 (set_global $builtins/F - ;;@ builtins.ts:94:4 (f64.const inf) ) - ;;@ builtins.ts:95:0 (set_global $builtins/F - ;;@ builtins.ts:95:4 (f64.abs - ;;@ builtins.ts:95:13 (f64.const 1.25) ) ) - ;;@ builtins.ts:96:0 (set_global $builtins/F - ;;@ builtins.ts:96:4 (f64.ceil - ;;@ builtins.ts:96:14 (f64.const 1.25) ) ) - ;;@ builtins.ts:97:0 (set_global $builtins/F - ;;@ builtins.ts:97:4 (f64.copysign - ;;@ builtins.ts:97:18 (f64.const 1.25) - ;;@ builtins.ts:97:24 (f64.const 2.5) ) ) - ;;@ builtins.ts:98:0 (set_global $builtins/F - ;;@ builtins.ts:98:4 (f64.floor - ;;@ builtins.ts:98:15 (f64.const 1.25) ) ) - ;;@ builtins.ts:99:0 (set_global $builtins/F - ;;@ builtins.ts:99:4 (f64.max - ;;@ builtins.ts:99:13 (f64.const 1.25) - ;;@ builtins.ts:99:19 (f64.const 2.5) ) ) - ;;@ builtins.ts:100:0 (set_global $builtins/F - ;;@ builtins.ts:100:4 (f64.min - ;;@ builtins.ts:100:13 (f64.const 1.25) - ;;@ builtins.ts:100:19 (f64.const 2.5) ) ) - ;;@ builtins.ts:101:0 (set_global $builtins/F - ;;@ builtins.ts:101:4 (f64.nearest - ;;@ builtins.ts:101:17 (f64.const 1.25) ) ) - ;;@ builtins.ts:102:0 (set_global $builtins/F - ;;@ builtins.ts:102:4 (f64.sqrt - ;;@ builtins.ts:102:14 (f64.const 1.25) ) ) - ;;@ builtins.ts:103:0 (set_global $builtins/F - ;;@ builtins.ts:103:4 (f64.trunc - ;;@ builtins.ts:103:15 (f64.const 1.25) ) ) - ;;@ builtins.ts:104:0 (set_global $builtins/b - ;;@ builtins.ts:104:4 (f64.ne (tee_local $5 - ;;@ builtins.ts:104:15 (f64.const 1.25) ) (get_local $5) ) ) - ;;@ builtins.ts:105:0 (set_global $builtins/b - ;;@ builtins.ts:105:4 (select (f64.ne (f64.abs (tee_local $5 - ;;@ builtins.ts:105:18 (f64.const 1.25) ) ) @@ -951,666 +703,419 @@ ) ) ) - ;;@ builtins.ts:109:0 (set_global $builtins/i - ;;@ builtins.ts:109:4 (i32.load - ;;@ builtins.ts:109:14 (i32.const 8) ) ) - ;;@ builtins.ts:109:18 (i32.store - ;;@ builtins.ts:109:29 (i32.const 8) - ;;@ builtins.ts:109:32 (get_global $builtins/i) ) - ;;@ builtins.ts:110:0 (i32.store - ;;@ builtins.ts:110:11 (i32.const 8) - ;;@ builtins.ts:110:14 (i32.load - ;;@ builtins.ts:110:24 (i32.const 8) ) ) - ;;@ builtins.ts:111:0 (set_global $builtins/I - ;;@ builtins.ts:111:4 (i64.load - ;;@ builtins.ts:111:14 (i32.const 8) ) ) - ;;@ builtins.ts:111:18 (i64.store - ;;@ builtins.ts:111:29 (i32.const 8) - ;;@ builtins.ts:111:32 (get_global $builtins/I) ) - ;;@ builtins.ts:112:0 (i64.store - ;;@ builtins.ts:112:11 (i32.const 8) - ;;@ builtins.ts:112:14 (i64.load - ;;@ builtins.ts:112:24 (i32.const 8) ) ) - ;;@ builtins.ts:113:0 (set_global $builtins/f - ;;@ builtins.ts:113:4 (f32.load - ;;@ builtins.ts:113:14 (i32.const 8) ) ) - ;;@ builtins.ts:113:18 (f32.store - ;;@ builtins.ts:113:29 (i32.const 8) - ;;@ builtins.ts:113:32 (get_global $builtins/f) ) - ;;@ builtins.ts:114:0 (f32.store - ;;@ builtins.ts:114:11 (i32.const 8) - ;;@ builtins.ts:114:14 (f32.load - ;;@ builtins.ts:114:24 (i32.const 8) ) ) - ;;@ builtins.ts:115:0 (set_global $builtins/F - ;;@ builtins.ts:115:4 (f64.load - ;;@ builtins.ts:115:14 (i32.const 8) ) ) - ;;@ builtins.ts:115:18 (f64.store - ;;@ builtins.ts:115:29 (i32.const 8) - ;;@ builtins.ts:115:32 (get_global $builtins/F) ) - ;;@ builtins.ts:116:0 (f64.store - ;;@ builtins.ts:116:11 (i32.const 8) - ;;@ builtins.ts:116:14 (f64.load - ;;@ builtins.ts:116:24 (i32.const 8) ) ) - ;;@ builtins.ts:119:0 (set_global $builtins/i - ;;@ builtins.ts:119:4 (i32.load offset=8 - ;;@ builtins.ts:119:14 (i32.const 0) ) ) - ;;@ builtins.ts:119:34 (i32.store offset=8 - ;;@ builtins.ts:119:45 (i32.const 0) - ;;@ builtins.ts:119:48 (get_global $builtins/i) ) - ;;@ builtins.ts:120:0 (i32.store offset=8 - ;;@ builtins.ts:120:11 (i32.const 0) - ;;@ builtins.ts:120:14 (i32.load offset=8 - ;;@ builtins.ts:120:24 (i32.const 0) ) ) - ;;@ builtins.ts:121:0 (set_global $builtins/I - ;;@ builtins.ts:121:4 (i64.load offset=8 - ;;@ builtins.ts:121:14 (i32.const 0) ) ) - ;;@ builtins.ts:121:34 (i64.store offset=8 - ;;@ builtins.ts:121:45 (i32.const 0) - ;;@ builtins.ts:121:48 (get_global $builtins/I) ) - ;;@ builtins.ts:122:0 (i64.store offset=8 - ;;@ builtins.ts:122:11 (i32.const 0) - ;;@ builtins.ts:122:14 (i64.load offset=8 - ;;@ builtins.ts:122:24 (i32.const 0) ) ) - ;;@ builtins.ts:123:0 (set_global $builtins/f - ;;@ builtins.ts:123:4 (f32.load offset=8 - ;;@ builtins.ts:123:14 (i32.const 0) ) ) - ;;@ builtins.ts:123:34 (f32.store offset=8 - ;;@ builtins.ts:123:45 (i32.const 0) - ;;@ builtins.ts:123:48 (get_global $builtins/f) ) - ;;@ builtins.ts:124:0 (f32.store offset=8 - ;;@ builtins.ts:124:11 (i32.const 0) - ;;@ builtins.ts:124:14 (f32.load offset=8 - ;;@ builtins.ts:124:24 (i32.const 0) ) ) - ;;@ builtins.ts:125:0 (set_global $builtins/F - ;;@ builtins.ts:125:4 (f64.load offset=8 - ;;@ builtins.ts:125:14 (i32.const 0) ) ) - ;;@ builtins.ts:125:34 (f64.store offset=8 - ;;@ builtins.ts:125:45 (i32.const 0) - ;;@ builtins.ts:125:48 (get_global $builtins/F) ) - ;;@ builtins.ts:126:0 (f64.store offset=8 - ;;@ builtins.ts:126:11 (i32.const 0) - ;;@ builtins.ts:126:14 (f64.load offset=8 - ;;@ builtins.ts:126:24 (i32.const 0) ) ) - ;;@ builtins.ts:130:0 (set_global $builtins/i - ;;@ builtins.ts:130:4 (i32.load8_s - ;;@ builtins.ts:130:13 (i32.const 8) ) ) - ;;@ builtins.ts:131:0 (set_global $builtins/i - ;;@ builtins.ts:131:4 (i32.load16_s - ;;@ builtins.ts:131:14 (i32.const 8) ) ) - ;;@ builtins.ts:132:0 (set_global $builtins/i - ;;@ builtins.ts:132:4 (i32.load - ;;@ builtins.ts:132:14 (i32.const 8) ) ) - ;;@ builtins.ts:134:0 (set_global $builtins/i - ;;@ builtins.ts:134:4 (i32.load8_u - ;;@ builtins.ts:134:13 (i32.const 8) ) ) - ;;@ builtins.ts:135:0 (set_global $builtins/i - ;;@ builtins.ts:135:4 (i32.load16_u - ;;@ builtins.ts:135:14 (i32.const 8) ) ) - ;;@ builtins.ts:136:0 (set_global $builtins/i - ;;@ builtins.ts:136:4 (i32.load - ;;@ builtins.ts:136:14 (i32.const 8) ) ) - ;;@ builtins.ts:139:0 (set_global $builtins/u - ;;@ builtins.ts:139:4 (i32.load8_u - ;;@ builtins.ts:139:13 (i32.const 8) ) ) - ;;@ builtins.ts:140:0 (set_global $builtins/u - ;;@ builtins.ts:140:4 (i32.load16_u - ;;@ builtins.ts:140:14 (i32.const 8) ) ) - ;;@ builtins.ts:141:0 (set_global $builtins/u - ;;@ builtins.ts:141:4 (i32.load - ;;@ builtins.ts:141:14 (i32.const 8) ) ) - ;;@ builtins.ts:143:0 (set_global $builtins/u - ;;@ builtins.ts:143:4 (i32.load8_s - ;;@ builtins.ts:143:13 (i32.const 8) ) ) - ;;@ builtins.ts:144:0 (set_global $builtins/u - ;;@ builtins.ts:144:4 (i32.load16_s - ;;@ builtins.ts:144:14 (i32.const 8) ) ) - ;;@ builtins.ts:145:0 (set_global $builtins/u - ;;@ builtins.ts:145:4 (i32.load - ;;@ builtins.ts:145:14 (i32.const 8) ) ) - ;;@ builtins.ts:147:0 (set_global $builtins/I - ;;@ builtins.ts:147:4 (i64.load8_s - ;;@ builtins.ts:147:13 (i32.const 8) ) ) - ;;@ builtins.ts:148:0 (set_global $builtins/I - ;;@ builtins.ts:148:4 (i64.load16_s - ;;@ builtins.ts:148:14 (i32.const 8) ) ) - ;;@ builtins.ts:149:0 (set_global $builtins/I - ;;@ builtins.ts:149:4 (i64.load32_s - ;;@ builtins.ts:149:14 (i32.const 8) ) ) - ;;@ builtins.ts:150:0 (set_global $builtins/I - ;;@ builtins.ts:150:4 (i64.load - ;;@ builtins.ts:150:14 (i32.const 8) ) ) - ;;@ builtins.ts:153:0 (set_global $builtins/U - ;;@ builtins.ts:153:4 (i64.load8_u - ;;@ builtins.ts:153:13 (i32.const 8) ) ) - ;;@ builtins.ts:154:0 (set_global $builtins/U - ;;@ builtins.ts:154:4 (i64.load16_u - ;;@ builtins.ts:154:14 (i32.const 8) ) ) - ;;@ builtins.ts:155:0 (set_global $builtins/U - ;;@ builtins.ts:155:4 (i64.load32_u - ;;@ builtins.ts:155:14 (i32.const 8) ) ) - ;;@ builtins.ts:156:0 (set_global $builtins/U - ;;@ builtins.ts:156:4 (i64.load - ;;@ builtins.ts:156:14 (i32.const 8) ) ) - ;;@ builtins.ts:158:0 (i32.store8 - ;;@ builtins.ts:158:10 (i32.const 8) - ;;@ builtins.ts:158:13 (i32.const 1) ) - ;;@ builtins.ts:159:0 (i32.store16 - ;;@ builtins.ts:159:11 (i32.const 8) - ;;@ builtins.ts:159:14 (i32.const 1) ) - ;;@ builtins.ts:160:0 (i32.store - ;;@ builtins.ts:160:11 (i32.const 8) - ;;@ builtins.ts:160:14 (i32.const 1) ) - ;;@ builtins.ts:162:0 (i64.store8 - ;;@ builtins.ts:162:10 (i32.const 8) - ;;@ builtins.ts:162:13 (i64.const 1) ) - ;;@ builtins.ts:163:0 (i64.store16 - ;;@ builtins.ts:163:11 (i32.const 8) - ;;@ builtins.ts:163:14 (i64.const 1) ) - ;;@ builtins.ts:164:0 (i64.store32 - ;;@ builtins.ts:164:11 (i32.const 8) - ;;@ builtins.ts:164:14 (i64.const 1) ) - ;;@ builtins.ts:165:0 (i64.store - ;;@ builtins.ts:165:11 (i32.const 8) - ;;@ builtins.ts:165:14 (i64.const 1) ) - ;;@ builtins.ts:167:0 (i64.store - ;;@ builtins.ts:167:11 (i32.const 8) (i64.extend_s/i32 - ;;@ builtins.ts:167:14 (i32.const 1) ) ) - ;;@ builtins.ts:171:0 (drop (i32.reinterpret/f32 - ;;@ builtins.ts:171:17 (f32.const 1.25) ) ) - ;;@ builtins.ts:172:0 (drop (f32.reinterpret/i32 - ;;@ builtins.ts:172:17 (i32.const 25) ) ) - ;;@ builtins.ts:173:0 (drop (i64.reinterpret/f64 - ;;@ builtins.ts:173:17 (f64.const 1.25) ) ) - ;;@ builtins.ts:174:0 (drop (f64.reinterpret/i64 - ;;@ builtins.ts:174:17 (i64.const 25) ) ) - ;;@ builtins.ts:176:0 (set_global $builtins/i - ;;@ builtins.ts:176:4 (i32.reinterpret/f32 - ;;@ builtins.ts:176:21 (f32.const 1.25) ) ) - ;;@ builtins.ts:177:0 (set_global $builtins/f - ;;@ builtins.ts:177:4 (f32.reinterpret/i32 - ;;@ builtins.ts:177:21 (i32.const 25) ) ) - ;;@ builtins.ts:178:0 (set_global $builtins/I - ;;@ builtins.ts:178:4 (i64.reinterpret/f64 - ;;@ builtins.ts:178:21 (f64.const 1.25) ) ) - ;;@ builtins.ts:179:0 (set_global $builtins/F - ;;@ builtins.ts:179:4 (f64.reinterpret/i64 - ;;@ builtins.ts:179:21 (i64.const 25) ) ) - ;;@ builtins.ts:185:0 (drop (current_memory) ) - ;;@ builtins.ts:186:0 (drop (grow_memory - ;;@ builtins.ts:186:12 (i32.const 1) ) ) - ;;@ builtins.ts:188:0 (set_global $builtins/s - ;;@ builtins.ts:188:4 (current_memory) ) - ;;@ builtins.ts:189:0 (set_global $builtins/s - ;;@ builtins.ts:189:4 (grow_memory - ;;@ builtins.ts:189:16 (i32.const 1) ) ) - ;;@ builtins.ts:193:0 (drop (select - ;;@ builtins.ts:193:12 (i32.const 10) - ;;@ builtins.ts:193:16 (i32.const 20) - ;;@ builtins.ts:193:20 (i32.const 1) ) ) - ;;@ builtins.ts:194:0 (drop (select - ;;@ builtins.ts:194:12 (i64.const 100) - ;;@ builtins.ts:194:17 (i64.const 200) - ;;@ builtins.ts:194:22 (i32.const 0) ) ) - ;;@ builtins.ts:195:0 (drop (select - ;;@ builtins.ts:195:12 (f32.const 1.25) - ;;@ builtins.ts:195:18 (f32.const 2.5) - ;;@ builtins.ts:195:23 (i32.const 1) ) ) - ;;@ builtins.ts:196:0 (drop (select - ;;@ builtins.ts:196:12 (f64.const 12.5) - ;;@ builtins.ts:196:18 (f64.const 25) - ;;@ builtins.ts:196:24 (i32.const 0) ) ) - ;;@ builtins.ts:198:0 (set_global $builtins/i - ;;@ builtins.ts:198:4 (select - ;;@ builtins.ts:198:16 (i32.const 10) - ;;@ builtins.ts:198:20 (i32.const 20) - ;;@ builtins.ts:198:24 (i32.const 1) ) ) - ;;@ builtins.ts:199:0 (set_global $builtins/I - ;;@ builtins.ts:199:4 (select - ;;@ builtins.ts:199:16 (i64.const 100) - ;;@ builtins.ts:199:21 (i64.const 200) - ;;@ builtins.ts:199:26 (i32.const 0) ) ) - ;;@ builtins.ts:200:0 (set_global $builtins/f - ;;@ builtins.ts:200:4 (select - ;;@ builtins.ts:200:16 (f32.const 1.25) - ;;@ builtins.ts:200:22 (f32.const 2.5) - ;;@ builtins.ts:200:27 (i32.const 1) ) ) - ;;@ builtins.ts:201:0 (set_global $builtins/F - ;;@ builtins.ts:201:4 (select - ;;@ builtins.ts:201:16 (f64.const 12.5) - ;;@ builtins.ts:201:22 (f64.const 25) - ;;@ builtins.ts:201:28 (i32.const 0) ) ) - ;;@ builtins.ts:203:0 (if - ;;@ builtins.ts:203:4 (i32.const 0) - ;;@ builtins.ts:203:7 (unreachable) ) - ;;@ builtins.ts:207:0 (drop (i32.const 1) ) - ;;@ builtins.ts:208:0 (drop (i32.const 2) ) - ;;@ builtins.ts:209:0 (drop (i32.const 4) ) - ;;@ builtins.ts:210:0 (drop (i32.const 8) ) - ;;@ builtins.ts:211:0 (drop (i32.const 4) ) - ;;@ builtins.ts:212:0 (drop (i32.const 1) ) - ;;@ builtins.ts:213:0 (drop (i32.const 1) ) - ;;@ builtins.ts:214:0 (drop (i32.const 2) ) - ;;@ builtins.ts:215:0 (drop (i32.const 4) ) - ;;@ builtins.ts:216:0 (drop (i32.const 8) ) - ;;@ builtins.ts:217:0 (drop (i32.const 4) ) - ;;@ builtins.ts:218:0 (drop (i32.const 4) ) - ;;@ builtins.ts:219:0 (drop (i32.const 8) ) - ;;@ builtins.ts:221:0 (if (i32.eqz - ;;@ builtins.ts:221:7 (f64.ne (f64.const nan:0x8000000000000) - ;;@ builtins.ts:221:14 (f64.const nan:0x8000000000000) ) ) @@ -1624,13 +1129,10 @@ (unreachable) ) ) - ;;@ builtins.ts:222:0 (if (i32.eqz - ;;@ builtins.ts:222:7 (f32.ne (tee_local $4 - ;;@ builtins.ts:222:18 (f32.const nan:0x400000) ) (get_local $4) @@ -1646,13 +1148,10 @@ (unreachable) ) ) - ;;@ builtins.ts:223:0 (if (i32.eqz - ;;@ builtins.ts:223:7 (f64.ne (tee_local $5 - ;;@ builtins.ts:223:18 (f64.const nan:0x8000000000000) ) (get_local $5) @@ -1668,17 +1167,13 @@ (unreachable) ) ) - ;;@ builtins.ts:224:0 (if (i32.eqz - ;;@ builtins.ts:224:7 (i32.eqz - ;;@ builtins.ts:224:8 (select (f32.ne (f32.abs (tee_local $4 - ;;@ builtins.ts:224:22 (f32.const nan:0x400000) ) ) @@ -1702,17 +1197,13 @@ (unreachable) ) ) - ;;@ builtins.ts:225:0 (if (i32.eqz - ;;@ builtins.ts:225:7 (i32.eqz - ;;@ builtins.ts:225:8 (select (f32.ne (f32.abs (tee_local $4 - ;;@ builtins.ts:225:22 (f32.const inf) ) ) @@ -1736,17 +1227,13 @@ (unreachable) ) ) - ;;@ builtins.ts:226:0 (if (i32.eqz - ;;@ builtins.ts:226:7 (i32.eqz - ;;@ builtins.ts:226:8 (select (f64.ne (f64.abs (tee_local $5 - ;;@ builtins.ts:226:22 (f64.const nan:0x8000000000000) ) ) @@ -1770,17 +1257,13 @@ (unreachable) ) ) - ;;@ builtins.ts:227:0 (if (i32.eqz - ;;@ builtins.ts:227:7 (i32.eqz - ;;@ builtins.ts:227:8 (select (f64.ne (f64.abs (tee_local $5 - ;;@ builtins.ts:227:22 (f64.const inf) ) ) @@ -1804,15 +1287,12 @@ (unreachable) ) ) - ;;@ builtins.ts:228:0 (if (i32.eqz - ;;@ builtins.ts:228:7 (select (f32.ne (f32.abs (tee_local $4 - ;;@ builtins.ts:228:21 (f32.const 0) ) ) @@ -1835,15 +1315,12 @@ (unreachable) ) ) - ;;@ builtins.ts:229:0 (if (i32.eqz - ;;@ builtins.ts:229:7 (select (f64.ne (f64.abs (tee_local $5 - ;;@ builtins.ts:229:21 (f64.const 0) ) ) @@ -1866,13 +1343,10 @@ (unreachable) ) ) - ;;@ builtins.ts:242:0 (if (i32.eqz - ;;@ builtins.ts:242:7 (i32.eq (i32.const -128) - ;;@ builtins.ts:242:23 (i32.shr_s (i32.shl (i32.const 128) @@ -1892,13 +1366,10 @@ (unreachable) ) ) - ;;@ builtins.ts:243:0 (if (i32.eqz - ;;@ builtins.ts:243:7 (i32.eq (i32.const 127) - ;;@ builtins.ts:243:23 (i32.const 127) ) ) @@ -1912,13 +1383,10 @@ (unreachable) ) ) - ;;@ builtins.ts:244:0 (if (i32.eqz - ;;@ builtins.ts:244:7 (i32.eq (i32.const -32768) - ;;@ builtins.ts:244:24 (i32.shr_s (i32.shl (i32.const 32768) @@ -1938,13 +1406,10 @@ (unreachable) ) ) - ;;@ builtins.ts:245:0 (if (i32.eqz - ;;@ builtins.ts:245:7 (i32.eq (i32.const 32767) - ;;@ builtins.ts:245:24 (i32.const 32767) ) ) @@ -1958,13 +1423,10 @@ (unreachable) ) ) - ;;@ builtins.ts:246:0 (if (i32.eqz - ;;@ builtins.ts:246:7 (i32.eq (i32.const -2147483648) - ;;@ builtins.ts:246:24 (i32.wrap/i64 (i64.const 2147483648) ) @@ -1980,13 +1442,10 @@ (unreachable) ) ) - ;;@ builtins.ts:247:0 (if (i32.eqz - ;;@ builtins.ts:247:7 (i32.eq (i32.const 2147483647) - ;;@ builtins.ts:247:24 (i32.const 2147483647) ) ) @@ -2000,13 +1459,10 @@ (unreachable) ) ) - ;;@ builtins.ts:248:0 (if (i32.eqz - ;;@ builtins.ts:248:7 (i64.eq (i64.const -9223372036854775808) - ;;@ builtins.ts:248:24 (i64.const -9223372036854775808) ) ) @@ -2020,13 +1476,10 @@ (unreachable) ) ) - ;;@ builtins.ts:249:0 (if (i32.eqz - ;;@ builtins.ts:249:7 (i64.eq (i64.const 9223372036854775807) - ;;@ builtins.ts:249:24 (i64.const 9223372036854775807) ) ) @@ -2040,13 +1493,10 @@ (unreachable) ) ) - ;;@ builtins.ts:251:0 (if (i32.eqz - ;;@ builtins.ts:251:7 (i32.eq (i32.const 0) - ;;@ builtins.ts:251:23 (i32.const 0) ) ) @@ -2060,13 +1510,10 @@ (unreachable) ) ) - ;;@ builtins.ts:252:0 (if (i32.eqz - ;;@ builtins.ts:252:7 (i32.eq (i32.const 255) - ;;@ builtins.ts:252:23 (i32.const 255) ) ) @@ -2080,13 +1527,10 @@ (unreachable) ) ) - ;;@ builtins.ts:253:0 (if (i32.eqz - ;;@ builtins.ts:253:7 (i32.eq (i32.const 0) - ;;@ builtins.ts:253:24 (i32.const 0) ) ) @@ -2100,13 +1544,10 @@ (unreachable) ) ) - ;;@ builtins.ts:254:0 (if (i32.eqz - ;;@ builtins.ts:254:7 (i32.eq (i32.const 65535) - ;;@ builtins.ts:254:24 (i32.const 65535) ) ) @@ -2120,13 +1561,10 @@ (unreachable) ) ) - ;;@ builtins.ts:255:0 (if (i32.eqz - ;;@ builtins.ts:255:7 (i32.eq (i32.const 0) - ;;@ builtins.ts:255:24 (i32.const 0) ) ) @@ -2140,13 +1578,10 @@ (unreachable) ) ) - ;;@ builtins.ts:256:0 (if (i32.eqz - ;;@ builtins.ts:256:7 (i32.eq (i32.const -1) - ;;@ builtins.ts:256:24 (i32.const -1) ) ) @@ -2160,13 +1595,10 @@ (unreachable) ) ) - ;;@ builtins.ts:257:0 (if (i32.eqz - ;;@ builtins.ts:257:7 (i64.eq (i64.const 0) - ;;@ builtins.ts:257:24 (i64.const 0) ) ) @@ -2180,13 +1612,10 @@ (unreachable) ) ) - ;;@ builtins.ts:258:0 (if (i32.eqz - ;;@ builtins.ts:258:7 (i64.eq (i64.const -1) - ;;@ builtins.ts:258:24 (i64.const -1) ) ) @@ -2200,13 +1629,10 @@ (unreachable) ) ) - ;;@ builtins.ts:259:0 (if (i32.eqz - ;;@ builtins.ts:259:7 (i32.eq (i32.const 0) - ;;@ builtins.ts:259:25 (i32.const 0) ) ) @@ -2220,13 +1646,10 @@ (unreachable) ) ) - ;;@ builtins.ts:259:29 (if (i32.eqz - ;;@ builtins.ts:259:36 (i32.eq (i32.const 0) - ;;@ builtins.ts:259:54 (i32.const 0) ) ) @@ -2240,13 +1663,10 @@ (unreachable) ) ) - ;;@ builtins.ts:260:0 (if (i32.eqz - ;;@ builtins.ts:260:7 (i32.eq (i32.const 1) - ;;@ builtins.ts:260:25 (i32.const 1) ) ) @@ -2260,13 +1680,10 @@ (unreachable) ) ) - ;;@ builtins.ts:260:29 (if (i32.eqz - ;;@ builtins.ts:260:36 (i32.eq (i32.const 1) - ;;@ builtins.ts:260:54 (i32.const 1) ) ) @@ -2280,13 +1697,10 @@ (unreachable) ) ) - ;;@ builtins.ts:262:0 (if (i32.eqz - ;;@ builtins.ts:262:7 (f32.eq (f32.const -3402823466385288598117041e14) - ;;@ builtins.ts:262:24 (f32.const -3402823466385288598117041e14) ) ) @@ -2300,13 +1714,10 @@ (unreachable) ) ) - ;;@ builtins.ts:263:0 (if (i32.eqz - ;;@ builtins.ts:263:7 (f32.eq (f32.const 3402823466385288598117041e14) - ;;@ builtins.ts:263:24 (f32.const 3402823466385288598117041e14) ) ) @@ -2320,13 +1731,10 @@ (unreachable) ) ) - ;;@ builtins.ts:264:0 (if (i32.eqz - ;;@ builtins.ts:264:7 (f32.eq (f32.const -16777215) - ;;@ builtins.ts:264:31 (f32.const -16777215) ) ) @@ -2340,13 +1748,10 @@ (unreachable) ) ) - ;;@ builtins.ts:265:0 (if (i32.eqz - ;;@ builtins.ts:265:7 (f32.eq (f32.const 16777215) - ;;@ builtins.ts:265:31 (f32.const 16777215) ) ) @@ -2360,13 +1765,10 @@ (unreachable) ) ) - ;;@ builtins.ts:266:0 (if (i32.eqz - ;;@ builtins.ts:266:7 (f32.eq (f32.const 1.1920928955078125e-07) - ;;@ builtins.ts:266:22 (f32.const 1.1920928955078125e-07) ) ) @@ -2380,13 +1782,10 @@ (unreachable) ) ) - ;;@ builtins.ts:267:0 (if (i32.eqz - ;;@ builtins.ts:267:7 (f64.eq (f64.const -1797693134862315708145274e284) - ;;@ builtins.ts:267:24 (f64.const -1797693134862315708145274e284) ) ) @@ -2400,13 +1799,10 @@ (unreachable) ) ) - ;;@ builtins.ts:268:0 (if (i32.eqz - ;;@ builtins.ts:268:7 (f64.eq (f64.const 1797693134862315708145274e284) - ;;@ builtins.ts:268:24 (f64.const 1797693134862315708145274e284) ) ) @@ -2420,13 +1816,10 @@ (unreachable) ) ) - ;;@ builtins.ts:269:0 (if (i32.eqz - ;;@ builtins.ts:269:7 (f64.eq (f64.const -9007199254740991) - ;;@ builtins.ts:269:31 (f64.const -9007199254740991) ) ) @@ -2440,13 +1833,10 @@ (unreachable) ) ) - ;;@ builtins.ts:270:0 (if (i32.eqz - ;;@ builtins.ts:270:7 (f64.eq (f64.const 9007199254740991) - ;;@ builtins.ts:270:31 (f64.const 9007199254740991) ) ) @@ -2460,13 +1850,10 @@ (unreachable) ) ) - ;;@ builtins.ts:271:0 (if (i32.eqz - ;;@ builtins.ts:271:7 (f64.eq (f64.const 2.220446049250313e-16) - ;;@ builtins.ts:271:22 (f64.const 2.220446049250313e-16) ) ) diff --git a/tests/compiler/class-extends.wat b/tests/compiler/class-extends.untouched.wat similarity index 73% rename from tests/compiler/class-extends.wat rename to tests/compiler/class-extends.untouched.wat index 36d78e7e..c9d8faec 100644 --- a/tests/compiler/class-extends.wat +++ b/tests/compiler/class-extends.untouched.wat @@ -5,28 +5,22 @@ (export "test" (func $class-extends/test)) (export "memory" (memory $0)) (func $class-extends/test (; 0 ;) (type $iv) (param $0 i32) - ;;@ class-extends.ts:10:2 (drop (i32.load (get_local $0) ) ) - ;;@ class-extends.ts:11:2 (drop (i32.load16_s offset=4 (get_local $0) ) ) - ;;@ class-extends.ts:12:2 (i32.store (get_local $0) - ;;@ class-extends.ts:12:8 (i32.const 2) ) - ;;@ class-extends.ts:13:2 (i32.store16 offset=4 (get_local $0) - ;;@ class-extends.ts:13:8 (i32.const 3) ) ) diff --git a/tests/compiler/class.wat b/tests/compiler/class.untouched.wat similarity index 73% rename from tests/compiler/class.wat rename to tests/compiler/class.untouched.wat index e3a842f9..8836f918 100644 --- a/tests/compiler/class.wat +++ b/tests/compiler/class.untouched.wat @@ -15,31 +15,23 @@ (export "memory" (memory $0)) (start $start) (func $class/Animal.add (; 1 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32) - ;;@ class.ts:3:58 (return - ;;@ class.ts:3:43 (i32.add (i32.add (get_local $0) - ;;@ class.ts:3:47 (get_local $1) ) - ;;@ class.ts:3:51 (get_global $class/Animal.ONE) ) ) ) (func $class/Animal.sub (; 2 ;) (type $fff) (param $0 f32) (param $1 f32) (result f32) - ;;@ class.ts:4:58 (return - ;;@ class.ts:4:40 (f32.add (f32.sub (get_local $0) - ;;@ class.ts:4:44 (get_local $1) ) - ;;@ class.ts:4:48 (f32.convert_s/i32 (get_global $class/Animal.ONE) ) @@ -47,31 +39,23 @@ ) ) (func $class/Animal#instanceAdd (; 3 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32) - ;;@ class.ts:9:59 (return - ;;@ class.ts:9:44 (i32.add (i32.add (get_local $1) - ;;@ class.ts:9:48 (get_local $2) ) - ;;@ class.ts:9:52 (get_global $class/Animal.ONE) ) ) ) (func $class/Animal#instanceSub (; 4 ;) (type $ifff) (param $0 i32) (param $1 f32) (param $2 f32) (result f32) - ;;@ class.ts:10:59 (return - ;;@ class.ts:10:41 (f32.add (f32.sub (get_local $1) - ;;@ class.ts:10:45 (get_local $2) ) - ;;@ class.ts:10:49 (f32.convert_s/i32 (get_global $class/Animal.ONE) ) @@ -81,65 +65,48 @@ (func $class/test (; 5 ;) (type $ii) (param $0 i32) (result i32) (local $1 i32) (local $2 i32) - ;;@ class.ts:20:9 (drop (call $class/Animal#instanceAdd - ;;@ class.ts:20:2 (get_local $0) - ;;@ class.ts:20:21 (i32.const 1) - ;;@ class.ts:20:24 (i32.const 2) ) ) - ;;@ class.ts:21:9 (drop (call $class/Animal#instanceSub - ;;@ class.ts:21:2 (get_local $0) - ;;@ class.ts:21:26 (f32.const 1) - ;;@ class.ts:21:29 (f32.const 2) ) ) - ;;@ class.ts:23:2 (drop (i32.load (get_local $0) ) ) - ;;@ class.ts:24:2 (drop (i32.load16_s offset=4 (get_local $0) ) ) - ;;@ class.ts:25:2 (drop (i32.load8_s offset=6 (get_local $0) ) ) - ;;@ class.ts:27:2 (i32.store (get_local $0) - ;;@ class.ts:27:15 (i32.add (i32.const 0) - ;;@ class.ts:27:19 (i32.const 1) ) ) - ;;@ class.ts:28:2 (i32.store16 offset=4 (get_local $0) - ;;@ class.ts:28:15 (i32.shr_s (i32.shl (i32.add (i32.const 1) - ;;@ class.ts:28:19 (i32.const 1) ) (i32.const 16) @@ -147,19 +114,15 @@ (i32.const 16) ) ) - ;;@ class.ts:29:2 (i32.store8 offset=6 (get_local $0) - ;;@ class.ts:29:17 (i32.shr_s (i32.shl (i32.add (i32.add (i32.const 1) - ;;@ class.ts:29:21 (i32.const 1) ) - ;;@ class.ts:29:25 (i32.const 1) ) (i32.const 24) @@ -167,29 +130,21 @@ (i32.const 24) ) ) - ;;@ class.ts:31:2 (set_local $1 - ;;@ class.ts:31:12 (get_local $0) ) - ;;@ class.ts:32:2 (set_local $2 - ;;@ class.ts:32:12 (get_local $1) ) - ;;@ class.ts:33:9 (return (get_local $2) ) ) (func $start (; 6 ;) (type $v) - ;;@ class.ts:13:0 (if (i32.eqz - ;;@ class.ts:13:7 (i32.eq (i32.const 4) - ;;@ class.ts:13:32 (i32.const 4) ) ) @@ -203,25 +158,18 @@ (unreachable) ) ) - ;;@ class.ts:15:0 (drop (get_global $class/Animal.ONE) ) - ;;@ class.ts:16:7 (drop (call $class/Animal.add - ;;@ class.ts:16:11 (i32.const 1) - ;;@ class.ts:16:13 (i32.const 2) ) ) - ;;@ class.ts:17:7 (drop (call $class/Animal.sub - ;;@ class.ts:17:16 (f32.const 1) - ;;@ class.ts:17:19 (f32.const 2) ) ) diff --git a/tests/compiler/comma.wat b/tests/compiler/comma.untouched.wat similarity index 77% rename from tests/compiler/comma.wat rename to tests/compiler/comma.untouched.wat index 4b8e56df..af276b9d 100644 --- a/tests/compiler/comma.wat +++ b/tests/compiler/comma.untouched.wat @@ -12,10 +12,8 @@ (func $start (; 1 ;) (type $v) (local $0 i32) (local $1 i32) - ;;@ comma.ts:3:0 (block (set_global $comma/b - ;;@ comma.ts:3:4 (block (result i32) (set_local $0 (get_global $comma/a) @@ -29,18 +27,14 @@ (get_local $0) ) ) - ;;@ comma.ts:3:9 (drop (get_global $comma/a) ) ) - ;;@ comma.ts:4:0 (if (i32.eqz - ;;@ comma.ts:4:7 (i32.eq (get_global $comma/a) - ;;@ comma.ts:4:12 (i32.const 1) ) ) @@ -54,13 +48,10 @@ (unreachable) ) ) - ;;@ comma.ts:5:0 (if (i32.eqz - ;;@ comma.ts:5:7 (i32.eq (get_global $comma/b) - ;;@ comma.ts:5:12 (i32.const 0) ) ) @@ -74,7 +65,6 @@ (unreachable) ) ) - ;;@ comma.ts:7:0 (block (set_global $comma/a (i32.add @@ -82,19 +72,14 @@ (i32.const 1) ) ) - ;;@ comma.ts:7:5 (set_global $comma/b - ;;@ comma.ts:7:9 (get_global $comma/a) ) ) - ;;@ comma.ts:8:0 (if (i32.eqz - ;;@ comma.ts:8:7 (i32.eq (get_global $comma/a) - ;;@ comma.ts:8:12 (i32.const 2) ) ) @@ -108,13 +93,10 @@ (unreachable) ) ) - ;;@ comma.ts:9:0 (if (i32.eqz - ;;@ comma.ts:9:7 (i32.eq (get_global $comma/b) - ;;@ comma.ts:9:12 (i32.const 2) ) ) @@ -128,39 +110,29 @@ (unreachable) ) ) - ;;@ comma.ts:11:0 (set_global $comma/a - ;;@ comma.ts:11:4 (block (result i32) (set_global $comma/b - ;;@ comma.ts:11:8 (i32.const 0) ) (get_global $comma/b) ) ) - ;;@ comma.ts:13:0 (set_global $comma/b - ;;@ comma.ts:13:4 (block (result i32) - ;;@ comma.ts:13:5 (set_global $comma/a (i32.add (get_global $comma/a) (i32.const 1) ) ) - ;;@ comma.ts:13:10 (get_global $comma/a) ) ) - ;;@ comma.ts:14:0 (if (i32.eqz - ;;@ comma.ts:14:7 (i32.eq (get_global $comma/a) - ;;@ comma.ts:14:12 (i32.const 1) ) ) @@ -174,13 +146,10 @@ (unreachable) ) ) - ;;@ comma.ts:15:0 (if (i32.eqz - ;;@ comma.ts:15:7 (i32.eq (get_global $comma/b) - ;;@ comma.ts:15:12 (i32.const 1) ) ) @@ -194,34 +163,26 @@ (unreachable) ) ) - ;;@ comma.ts:17:0 (set_global $comma/a - ;;@ comma.ts:17:4 (block (result i32) - ;;@ comma.ts:17:5 (set_global $comma/a (i32.add (get_global $comma/a) (i32.const 1) ) ) - ;;@ comma.ts:17:10 (block (result i32) (set_global $comma/b - ;;@ comma.ts:17:14 (get_global $comma/a) ) (get_global $comma/b) ) ) ) - ;;@ comma.ts:18:0 (if (i32.eqz - ;;@ comma.ts:18:7 (i32.eq (get_global $comma/a) - ;;@ comma.ts:18:12 (i32.const 2) ) ) @@ -235,13 +196,10 @@ (unreachable) ) ) - ;;@ comma.ts:19:0 (if (i32.eqz - ;;@ comma.ts:19:7 (i32.eq (get_global $comma/b) - ;;@ comma.ts:19:12 (i32.const 2) ) ) @@ -255,25 +213,18 @@ (unreachable) ) ) - ;;@ comma.ts:21:0 (block $break|0 - ;;@ comma.ts:21:5 (set_local $1 - ;;@ comma.ts:21:13 (i32.const 0) ) (loop $continue|0 (if - ;;@ comma.ts:21:16 (i32.lt_s (get_local $1) - ;;@ comma.ts:21:20 (get_global $comma/a) ) (block - ;;@ comma.ts:21:32 (nop) - ;;@ comma.ts:21:23 (block (set_global $comma/a (i32.sub @@ -281,7 +232,6 @@ (i32.const 1) ) ) - ;;@ comma.ts:21:28 (set_local $1 (i32.add (get_local $1) @@ -294,13 +244,10 @@ ) ) ) - ;;@ comma.ts:22:0 (if (i32.eqz - ;;@ comma.ts:22:7 (i32.eq (get_local $1) - ;;@ comma.ts:22:12 (i32.const 1) ) ) @@ -314,16 +261,13 @@ (unreachable) ) ) - ;;@ comma.ts:24:0 (block (drop (i32.const 1) ) - ;;@ comma.ts:24:3 (drop (i32.const 2) ) - ;;@ comma.ts:24:6 (drop (i32.const 3) ) diff --git a/tests/compiler/declare.wat b/tests/compiler/declare.untouched.wat similarity index 86% rename from tests/compiler/declare.wat rename to tests/compiler/declare.untouched.wat index 81c53f6c..f59ad313 100644 --- a/tests/compiler/declare.wat +++ b/tests/compiler/declare.untouched.wat @@ -12,15 +12,11 @@ (export "memory" (memory $0)) (start $start) (func $start (; 3 ;) (type $v) - ;;@ declare.ts:4:0 (call $declare/externalFunction) - ;;@ declare.ts:5:0 (if (i32.eqz - ;;@ declare.ts:5:7 (i32.eq (get_global $declare/externalConstant) - ;;@ declare.ts:5:27 (i32.const 1) ) ) @@ -34,15 +30,11 @@ (unreachable) ) ) - ;;@ declare.ts:12:3 (call $declare/my.externalFunction) - ;;@ declare.ts:13:0 (if (i32.eqz - ;;@ declare.ts:13:7 (i32.eq (get_global $declare/my.externalConstant) - ;;@ declare.ts:13:30 (i32.const 2) ) ) diff --git a/tests/compiler/do.wat b/tests/compiler/do.untouched.wat similarity index 80% rename from tests/compiler/do.wat rename to tests/compiler/do.untouched.wat index 1e0a97c8..2358b4fd 100644 --- a/tests/compiler/do.wat +++ b/tests/compiler/do.untouched.wat @@ -12,19 +12,15 @@ (start $start) (func $start (; 1 ;) (type $v) (local $0 i32) - ;;@ do.ts:3:0 (block $break|0 (loop $continue|0 - ;;@ do.ts:3:3 (block - ;;@ do.ts:4:2 (set_global $do/n (i32.sub (get_global $do/n) (i32.const 1) ) ) - ;;@ do.ts:5:2 (set_global $do/m (i32.add (get_global $do/m) @@ -33,18 +29,14 @@ ) ) (br_if $continue|0 - ;;@ do.ts:6:9 (get_global $do/n) ) ) ) - ;;@ do.ts:7:0 (if (i32.eqz - ;;@ do.ts:7:7 (i32.eq (get_global $do/n) - ;;@ do.ts:7:12 (i32.const 0) ) ) @@ -58,13 +50,10 @@ (unreachable) ) ) - ;;@ do.ts:8:0 (if (i32.eqz - ;;@ do.ts:8:7 (i32.eq (get_global $do/m) - ;;@ do.ts:8:12 (i32.const 10) ) ) @@ -78,18 +67,13 @@ (unreachable) ) ) - ;;@ do.ts:10:0 (set_global $do/n - ;;@ do.ts:10:4 (i32.const 10) ) - ;;@ do.ts:11:0 (block $break|1 (loop $continue|1 - ;;@ do.ts:11:2 (nop) (br_if $continue|1 - ;;@ do.ts:11:10 (block (result i32) (set_local $0 (get_global $do/n) @@ -105,13 +89,10 @@ ) ) ) - ;;@ do.ts:12:0 (if (i32.eqz - ;;@ do.ts:12:7 (i32.eq (get_global $do/n) - ;;@ do.ts:12:12 (i32.const -1) ) ) @@ -125,48 +106,36 @@ (unreachable) ) ) - ;;@ do.ts:14:0 (set_global $do/n - ;;@ do.ts:14:4 (i32.const 10) ) - ;;@ do.ts:15:0 (set_global $do/m - ;;@ do.ts:15:4 (i32.const 0) ) - ;;@ do.ts:17:0 (block $break|2 (loop $continue|2 - ;;@ do.ts:17:3 (block - ;;@ do.ts:18:2 (set_global $do/n (i32.sub (get_global $do/n) (i32.const 1) ) ) - ;;@ do.ts:19:2 (set_global $do/m (i32.add (get_global $do/m) (i32.const 1) ) ) - ;;@ do.ts:20:2 (block $break|3 (loop $continue|3 - ;;@ do.ts:20:5 (block - ;;@ do.ts:21:4 (set_global $do/n (i32.sub (get_global $do/n) (i32.const 1) ) ) - ;;@ do.ts:22:4 (set_global $do/o (i32.add (get_global $do/o) @@ -175,18 +144,14 @@ ) ) (br_if $continue|3 - ;;@ do.ts:23:11 (get_global $do/n) ) ) ) - ;;@ do.ts:24:2 (if (i32.eqz - ;;@ do.ts:24:9 (i32.eq (get_global $do/n) - ;;@ do.ts:24:14 (i32.const 0) ) ) @@ -200,13 +165,10 @@ (unreachable) ) ) - ;;@ do.ts:25:2 (if (i32.eqz - ;;@ do.ts:25:9 (i32.eq (get_global $do/o) - ;;@ do.ts:25:14 (i32.const 9) ) ) @@ -222,18 +184,14 @@ ) ) (br_if $continue|2 - ;;@ do.ts:26:9 (get_global $do/n) ) ) ) - ;;@ do.ts:27:0 (if (i32.eqz - ;;@ do.ts:27:7 (i32.eq (get_global $do/n) - ;;@ do.ts:27:12 (i32.const 0) ) ) @@ -247,13 +205,10 @@ (unreachable) ) ) - ;;@ do.ts:28:0 (if (i32.eqz - ;;@ do.ts:28:7 (i32.eq (get_global $do/m) - ;;@ do.ts:28:12 (i32.const 1) ) ) @@ -267,13 +222,10 @@ (unreachable) ) ) - ;;@ do.ts:29:0 (if (i32.eqz - ;;@ do.ts:29:7 (i32.eq (get_global $do/o) - ;;@ do.ts:29:12 (i32.const 9) ) ) diff --git a/tests/compiler/empty.wat b/tests/compiler/empty.untouched.wat similarity index 100% rename from tests/compiler/empty.wat rename to tests/compiler/empty.untouched.wat diff --git a/tests/compiler/enum.wat b/tests/compiler/enum.untouched.wat similarity index 98% rename from tests/compiler/enum.wat rename to tests/compiler/enum.untouched.wat index 3fdc92b4..c45df8e3 100644 --- a/tests/compiler/enum.wat +++ b/tests/compiler/enum.untouched.wat @@ -36,14 +36,12 @@ (export "memory" (memory $0)) (start $start) (func $enum/getZero (; 0 ;) (type $i) (result i32) - ;;@ enum.ts:23:9 (return (i32.const 0) ) ) (func $start (; 1 ;) (type $v) (set_global $enum/NonConstant.ZERO - ;;@ enum.ts:27:9 (call $enum/getZero) ) (set_global $enum/NonConstant.ONE diff --git a/tests/compiler/export.wat b/tests/compiler/export.untouched.wat similarity index 83% rename from tests/compiler/export.wat rename to tests/compiler/export.untouched.wat index fbfdd55c..8297ef70 100644 --- a/tests/compiler/export.wat +++ b/tests/compiler/export.untouched.wat @@ -15,34 +15,25 @@ (export "two" (func $export/ns.two)) (export "memory" (memory $0)) (func $export/add (; 0 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32) - ;;@ export.ts:2:13 (return - ;;@ export.ts:2:9 (i32.add (get_local $0) - ;;@ export.ts:2:13 (get_local $1) ) ) ) (func $export/sub (; 1 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32) - ;;@ export.ts:6:13 (return - ;;@ export.ts:6:9 (i32.sub (get_local $0) - ;;@ export.ts:6:13 (get_local $1) ) ) ) (func $export/mul (; 2 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32) - ;;@ export.ts:12:13 (return - ;;@ export.ts:12:9 (i32.mul (get_local $0) - ;;@ export.ts:12:13 (get_local $1) ) ) diff --git a/tests/compiler/fmod.wat b/tests/compiler/fmod.untouched.wat similarity index 64% rename from tests/compiler/fmod.wat rename to tests/compiler/fmod.untouched.wat index 78e46f33..053aa281 100644 --- a/tests/compiler/fmod.wat +++ b/tests/compiler/fmod.untouched.wat @@ -20,69 +20,47 @@ (local $7 f64) (local $8 i32) (local $9 i64) - ;;@ fmod.ts:3:2 (set_local $2 - ;;@ fmod.ts:3:11 (i64.reinterpret/f64 - ;;@ fmod.ts:3:28 (get_local $0) ) ) - ;;@ fmod.ts:4:2 (set_local $3 - ;;@ fmod.ts:4:11 (i64.reinterpret/f64 - ;;@ fmod.ts:4:28 (get_local $1) ) ) - ;;@ fmod.ts:5:2 (set_local $4 - ;;@ fmod.ts:5:11 (i32.wrap/i64 - ;;@ fmod.ts:5:17 (i64.and (i64.shr_u (get_local $2) - ;;@ fmod.ts:5:23 (i64.const 52) ) - ;;@ fmod.ts:5:28 (i64.const 2047) ) ) ) - ;;@ fmod.ts:6:2 (set_local $5 - ;;@ fmod.ts:6:11 (i32.wrap/i64 - ;;@ fmod.ts:6:17 (i64.and (i64.shr_u (get_local $3) - ;;@ fmod.ts:6:23 (i64.const 52) ) - ;;@ fmod.ts:6:28 (i64.const 2047) ) ) ) - ;;@ fmod.ts:7:2 (set_local $6 - ;;@ fmod.ts:7:11 (i32.wrap/i64 - ;;@ fmod.ts:7:17 (i64.shr_u (get_local $2) - ;;@ fmod.ts:7:23 (i64.const 63) ) ) ) - ;;@ fmod.ts:9:2 (if - ;;@ fmod.ts:9:6 (i32.and (if (result i32) (i32.ne @@ -94,20 +72,16 @@ (i64.eq (i64.shl (get_local $3) - ;;@ fmod.ts:9:12 (i64.const 1) ) - ;;@ fmod.ts:9:17 (i64.const 0) ) ) (i32.const 0) ) (get_local $8) - ;;@ fmod.ts:9:22 (f64.ne (tee_local $7 - ;;@ fmod.ts:9:33 (get_local $1) ) (get_local $7) @@ -119,130 +93,91 @@ (i32.const 0) ) (get_local $8) - ;;@ fmod.ts:9:39 (i32.eq (get_local $4) - ;;@ fmod.ts:9:45 (i32.const 2047) ) ) (i32.const 1) ) - ;;@ fmod.ts:10:27 (return - ;;@ fmod.ts:10:11 (f64.div (f64.mul - ;;@ fmod.ts:10:12 (get_local $0) - ;;@ fmod.ts:10:16 (get_local $1) ) - ;;@ fmod.ts:10:21 (f64.mul - ;;@ fmod.ts:10:22 (get_local $0) - ;;@ fmod.ts:10:26 (get_local $1) ) ) ) ) - ;;@ fmod.ts:11:2 (if - ;;@ fmod.ts:11:6 (i64.le_u (i64.shl (get_local $2) - ;;@ fmod.ts:11:12 (i64.const 1) ) - ;;@ fmod.ts:11:17 (i64.shl (get_local $3) - ;;@ fmod.ts:11:23 (i64.const 1) ) ) - ;;@ fmod.ts:11:26 (block - ;;@ fmod.ts:12:4 (if - ;;@ fmod.ts:12:8 (i64.eq (i64.shl (get_local $2) - ;;@ fmod.ts:12:14 (i64.const 1) ) - ;;@ fmod.ts:12:19 (i64.shl (get_local $3) - ;;@ fmod.ts:12:25 (i64.const 1) ) ) - ;;@ fmod.ts:13:17 (return - ;;@ fmod.ts:13:13 (f64.mul (f64.const 0) - ;;@ fmod.ts:13:17 (get_local $0) ) ) ) - ;;@ fmod.ts:14:11 (return (get_local $0) ) ) ) - ;;@ fmod.ts:18:2 (if - ;;@ fmod.ts:18:6 (i32.eqz - ;;@ fmod.ts:18:7 (get_local $4) ) - ;;@ fmod.ts:18:11 (block (block $break|0 - ;;@ fmod.ts:19:9 (set_local $9 - ;;@ fmod.ts:19:17 (i64.shl (get_local $2) - ;;@ fmod.ts:19:23 (i64.const 12) ) ) (loop $continue|0 (if - ;;@ fmod.ts:19:27 (i64.eqz - ;;@ fmod.ts:19:28 (i64.shr_u - ;;@ fmod.ts:19:29 (get_local $9) - ;;@ fmod.ts:19:34 (i64.const 63) ) ) (block - ;;@ fmod.ts:20:6 (set_local $4 (i32.sub - ;;@ fmod.ts:20:8 (get_local $4) (i32.const 1) ) ) - ;;@ fmod.ts:19:39 (set_local $9 (i64.shl (get_local $9) - ;;@ fmod.ts:19:45 (i64.const 1) ) ) @@ -251,98 +186,72 @@ ) ) ) - ;;@ fmod.ts:21:4 (set_local $2 (i64.shl (get_local $2) - ;;@ fmod.ts:21:11 (i64.extend_u/i32 (i32.add (i32.sub (i32.const 0) - ;;@ fmod.ts:21:12 (get_local $4) ) - ;;@ fmod.ts:21:17 (i32.const 1) ) ) ) ) ) - ;;@ fmod.ts:22:9 (block - ;;@ fmod.ts:23:4 (set_local $2 (i64.and (get_local $2) - ;;@ fmod.ts:23:10 (i64.shr_u (i64.const -1) - ;;@ fmod.ts:23:21 (i64.const 12) ) ) ) - ;;@ fmod.ts:24:4 (set_local $2 (i64.or (get_local $2) - ;;@ fmod.ts:24:10 (i64.shl (i64.const 1) - ;;@ fmod.ts:24:15 (i64.const 52) ) ) ) ) ) - ;;@ fmod.ts:26:2 (if - ;;@ fmod.ts:26:6 (i32.eqz - ;;@ fmod.ts:26:7 (get_local $5) ) - ;;@ fmod.ts:26:11 (block (block $break|1 - ;;@ fmod.ts:27:9 (set_local $9 - ;;@ fmod.ts:27:13 (i64.shl (get_local $3) - ;;@ fmod.ts:27:19 (i64.const 12) ) ) (loop $continue|1 (if - ;;@ fmod.ts:27:23 (i64.eqz - ;;@ fmod.ts:27:24 (i64.shr_u - ;;@ fmod.ts:27:25 (get_local $9) - ;;@ fmod.ts:27:30 (i64.const 63) ) ) (block - ;;@ fmod.ts:28:6 (set_local $5 (i32.sub - ;;@ fmod.ts:28:8 (get_local $5) (i32.const 1) ) ) - ;;@ fmod.ts:27:35 (set_local $9 (i64.shl (get_local $9) - ;;@ fmod.ts:27:41 (i64.const 1) ) ) @@ -351,123 +260,89 @@ ) ) ) - ;;@ fmod.ts:29:4 (set_local $3 (i64.shl (get_local $3) - ;;@ fmod.ts:29:11 (i64.extend_u/i32 (i32.add (i32.sub (i32.const 0) - ;;@ fmod.ts:29:12 (get_local $5) ) - ;;@ fmod.ts:29:17 (i32.const 1) ) ) ) ) ) - ;;@ fmod.ts:30:9 (block - ;;@ fmod.ts:31:4 (set_local $3 (i64.and (get_local $3) - ;;@ fmod.ts:31:10 (i64.shr_u (i64.const -1) - ;;@ fmod.ts:31:21 (i64.const 12) ) ) ) - ;;@ fmod.ts:32:4 (set_local $3 (i64.or (get_local $3) - ;;@ fmod.ts:32:10 (i64.shl (i64.const 1) - ;;@ fmod.ts:32:15 (i64.const 52) ) ) ) ) ) - ;;@ fmod.ts:36:2 (block $break|2 (nop) (loop $continue|2 (if - ;;@ fmod.ts:36:9 (i32.gt_s (get_local $4) - ;;@ fmod.ts:36:14 (get_local $5) ) (block (block - ;;@ fmod.ts:37:4 (set_local $9 - ;;@ fmod.ts:37:8 (i64.sub (get_local $2) - ;;@ fmod.ts:37:13 (get_local $3) ) ) - ;;@ fmod.ts:38:4 (if - ;;@ fmod.ts:38:8 (i64.eqz - ;;@ fmod.ts:38:9 (i64.shr_u - ;;@ fmod.ts:38:10 (get_local $9) - ;;@ fmod.ts:38:15 (i64.const 63) ) ) - ;;@ fmod.ts:38:20 (block - ;;@ fmod.ts:39:6 (if - ;;@ fmod.ts:39:10 (i64.eqz - ;;@ fmod.ts:39:11 (get_local $9) ) - ;;@ fmod.ts:40:19 (return - ;;@ fmod.ts:40:15 (f64.mul (f64.const 0) - ;;@ fmod.ts:40:19 (get_local $0) ) ) ) - ;;@ fmod.ts:41:6 (set_local $2 - ;;@ fmod.ts:41:11 (get_local $9) ) ) ) - ;;@ fmod.ts:43:4 (set_local $2 (i64.shl (get_local $2) - ;;@ fmod.ts:43:11 (i64.const 1) ) ) ) - ;;@ fmod.ts:36:18 (set_local $4 (i32.sub (get_local $4) @@ -479,82 +354,56 @@ ) ) ) - ;;@ fmod.ts:45:2 (set_local $9 - ;;@ fmod.ts:45:6 (i64.sub (get_local $2) - ;;@ fmod.ts:45:11 (get_local $3) ) ) - ;;@ fmod.ts:46:2 (if - ;;@ fmod.ts:46:6 (i64.eqz - ;;@ fmod.ts:46:7 (i64.shr_u - ;;@ fmod.ts:46:8 (get_local $9) - ;;@ fmod.ts:46:13 (i64.const 63) ) ) - ;;@ fmod.ts:46:18 (block - ;;@ fmod.ts:47:4 (if - ;;@ fmod.ts:47:8 (i64.eqz - ;;@ fmod.ts:47:9 (get_local $9) ) - ;;@ fmod.ts:48:17 (return - ;;@ fmod.ts:48:13 (f64.mul (f64.const 0) - ;;@ fmod.ts:48:17 (get_local $0) ) ) ) - ;;@ fmod.ts:49:4 (set_local $2 - ;;@ fmod.ts:49:9 (get_local $9) ) ) ) - ;;@ fmod.ts:51:2 (block $break|3 (nop) (loop $continue|3 (if - ;;@ fmod.ts:51:9 (i64.eqz - ;;@ fmod.ts:51:10 (i64.shr_u - ;;@ fmod.ts:51:11 (get_local $2) - ;;@ fmod.ts:51:17 (i64.const 52) ) ) (block - ;;@ fmod.ts:52:4 (set_local $4 (i32.sub - ;;@ fmod.ts:52:6 (get_local $4) (i32.const 1) ) ) - ;;@ fmod.ts:51:22 (set_local $2 (i64.shl (get_local $2) - ;;@ fmod.ts:51:29 (i64.const 1) ) ) @@ -563,81 +412,61 @@ ) ) ) - ;;@ fmod.ts:55:2 (if - ;;@ fmod.ts:55:6 (i32.gt_s (get_local $4) - ;;@ fmod.ts:55:11 (i32.const 0) ) - ;;@ fmod.ts:55:14 (block - ;;@ fmod.ts:56:4 (set_local $2 (i64.sub (get_local $2) - ;;@ fmod.ts:56:10 (i64.shl (i64.const 1) - ;;@ fmod.ts:56:15 (i64.const 52) ) ) ) - ;;@ fmod.ts:57:4 (set_local $2 (i64.or (get_local $2) - ;;@ fmod.ts:57:10 (i64.shl (i64.extend_u/i32 (get_local $4) ) - ;;@ fmod.ts:57:21 (i64.const 52) ) ) ) ) - ;;@ fmod.ts:59:4 (set_local $2 (i64.shr_u (get_local $2) - ;;@ fmod.ts:59:11 (i64.extend_u/i32 (i32.add (i32.sub (i32.const 0) - ;;@ fmod.ts:59:12 (get_local $4) ) - ;;@ fmod.ts:59:17 (i32.const 1) ) ) ) ) ) - ;;@ fmod.ts:61:2 (set_local $2 (i64.or (get_local $2) - ;;@ fmod.ts:61:8 (i64.shl (i64.extend_u/i32 (get_local $6) ) - ;;@ fmod.ts:61:19 (i64.const 63) ) ) ) - ;;@ fmod.ts:62:28 (return - ;;@ fmod.ts:62:9 (f64.reinterpret/i64 - ;;@ fmod.ts:62:26 (get_local $2) ) ) @@ -651,62 +480,41 @@ (local $7 f32) (local $8 i32) (local $9 i32) - ;;@ fmod.ts:72:2 (set_local $2 - ;;@ fmod.ts:72:11 (i32.reinterpret/f32 - ;;@ fmod.ts:72:28 (get_local $0) ) ) - ;;@ fmod.ts:73:2 (set_local $3 - ;;@ fmod.ts:73:11 (i32.reinterpret/f32 - ;;@ fmod.ts:73:28 (get_local $1) ) ) - ;;@ fmod.ts:74:2 (set_local $4 - ;;@ fmod.ts:74:11 (i32.and - ;;@ fmod.ts:74:17 (i32.shr_u (get_local $2) - ;;@ fmod.ts:74:23 (i32.const 23) ) - ;;@ fmod.ts:74:28 (i32.const 255) ) ) - ;;@ fmod.ts:75:2 (set_local $5 - ;;@ fmod.ts:75:11 (i32.and - ;;@ fmod.ts:75:17 (i32.shr_u (get_local $3) - ;;@ fmod.ts:75:23 (i32.const 23) ) - ;;@ fmod.ts:75:28 (i32.const 255) ) ) - ;;@ fmod.ts:76:2 (set_local $6 - ;;@ fmod.ts:76:11 (i32.and (get_local $2) - ;;@ fmod.ts:76:16 (i32.const -2147483648) ) ) - ;;@ fmod.ts:78:2 (if - ;;@ fmod.ts:78:6 (i32.and (if (result i32) (i32.ne @@ -718,20 +526,16 @@ (i32.eq (i32.shl (get_local $3) - ;;@ fmod.ts:78:12 (i32.const 1) ) - ;;@ fmod.ts:78:17 (i32.const 0) ) ) (i32.const 0) ) (get_local $8) - ;;@ fmod.ts:78:22 (f32.ne (tee_local $7 - ;;@ fmod.ts:78:33 (get_local $1) ) (get_local $7) @@ -743,130 +547,91 @@ (i32.const 0) ) (get_local $8) - ;;@ fmod.ts:78:39 (i32.eq (get_local $4) - ;;@ fmod.ts:78:45 (i32.const 255) ) ) (i32.const 1) ) - ;;@ fmod.ts:79:27 (return - ;;@ fmod.ts:79:11 (f32.div (f32.mul - ;;@ fmod.ts:79:12 (get_local $0) - ;;@ fmod.ts:79:16 (get_local $1) ) - ;;@ fmod.ts:79:21 (f32.mul - ;;@ fmod.ts:79:22 (get_local $0) - ;;@ fmod.ts:79:26 (get_local $1) ) ) ) ) - ;;@ fmod.ts:80:2 (if - ;;@ fmod.ts:80:6 (i32.le_u (i32.shl (get_local $2) - ;;@ fmod.ts:80:12 (i32.const 1) ) - ;;@ fmod.ts:80:17 (i32.shl (get_local $3) - ;;@ fmod.ts:80:23 (i32.const 1) ) ) - ;;@ fmod.ts:80:26 (block - ;;@ fmod.ts:81:4 (if - ;;@ fmod.ts:81:8 (i32.eq (i32.shl (get_local $2) - ;;@ fmod.ts:81:14 (i32.const 1) ) - ;;@ fmod.ts:81:19 (i32.shl (get_local $3) - ;;@ fmod.ts:81:25 (i32.const 1) ) ) - ;;@ fmod.ts:82:17 (return - ;;@ fmod.ts:82:13 (f32.mul (f32.const 0) - ;;@ fmod.ts:82:17 (get_local $0) ) ) ) - ;;@ fmod.ts:83:11 (return (get_local $0) ) ) ) - ;;@ fmod.ts:87:2 (if - ;;@ fmod.ts:87:6 (i32.eqz - ;;@ fmod.ts:87:7 (get_local $4) ) - ;;@ fmod.ts:87:11 (block (block $break|0 - ;;@ fmod.ts:88:9 (set_local $9 - ;;@ fmod.ts:88:17 (i32.shl (get_local $2) - ;;@ fmod.ts:88:23 (i32.const 9) ) ) (loop $continue|0 (if - ;;@ fmod.ts:88:26 (i32.eqz - ;;@ fmod.ts:88:27 (i32.shr_u - ;;@ fmod.ts:88:28 (get_local $9) - ;;@ fmod.ts:88:33 (i32.const 31) ) ) (block - ;;@ fmod.ts:89:6 (set_local $4 (i32.sub - ;;@ fmod.ts:89:8 (get_local $4) (i32.const 1) ) ) - ;;@ fmod.ts:88:38 (set_local $9 (i32.shl (get_local $9) - ;;@ fmod.ts:88:44 (i32.const 1) ) ) @@ -875,96 +640,70 @@ ) ) ) - ;;@ fmod.ts:90:4 (set_local $2 (i32.shl (get_local $2) - ;;@ fmod.ts:90:11 (i32.add (i32.sub (i32.const 0) - ;;@ fmod.ts:90:12 (get_local $4) ) - ;;@ fmod.ts:90:17 (i32.const 1) ) ) ) ) - ;;@ fmod.ts:91:9 (block - ;;@ fmod.ts:92:4 (set_local $2 (i32.and (get_local $2) - ;;@ fmod.ts:92:10 (i32.shr_u (i32.const -1) - ;;@ fmod.ts:92:21 (i32.const 9) ) ) ) - ;;@ fmod.ts:93:4 (set_local $2 (i32.or (get_local $2) - ;;@ fmod.ts:93:10 (i32.shl (i32.const 1) - ;;@ fmod.ts:93:15 (i32.const 23) ) ) ) ) ) - ;;@ fmod.ts:95:2 (if - ;;@ fmod.ts:95:6 (i32.eqz - ;;@ fmod.ts:95:7 (get_local $5) ) - ;;@ fmod.ts:95:11 (block (block $break|1 - ;;@ fmod.ts:96:9 (set_local $9 - ;;@ fmod.ts:96:13 (i32.shl (get_local $3) - ;;@ fmod.ts:96:19 (i32.const 9) ) ) (loop $continue|1 (if - ;;@ fmod.ts:96:22 (i32.eqz - ;;@ fmod.ts:96:23 (i32.shr_u - ;;@ fmod.ts:96:24 (get_local $9) - ;;@ fmod.ts:96:29 (i32.const 31) ) ) (block - ;;@ fmod.ts:97:6 (set_local $5 (i32.sub - ;;@ fmod.ts:97:8 (get_local $5) (i32.const 1) ) ) - ;;@ fmod.ts:96:34 (set_local $9 (i32.shl (get_local $9) - ;;@ fmod.ts:96:40 (i32.const 1) ) ) @@ -973,124 +712,89 @@ ) ) ) - ;;@ fmod.ts:98:4 (set_local $3 (i32.shl (get_local $3) - ;;@ fmod.ts:98:11 (i32.add (i32.sub (i32.const 0) - ;;@ fmod.ts:98:12 (get_local $5) ) - ;;@ fmod.ts:98:17 (i32.const 1) ) ) ) ) - ;;@ fmod.ts:99:9 (block - ;;@ fmod.ts:100:4 (set_local $3 (i32.and (get_local $3) - ;;@ fmod.ts:100:10 (i32.shr_u (i32.const -1) - ;;@ fmod.ts:100:21 (i32.const 9) ) ) ) - ;;@ fmod.ts:101:4 (set_local $3 (i32.or (get_local $3) - ;;@ fmod.ts:101:10 (i32.shl (i32.const 1) - ;;@ fmod.ts:101:15 (i32.const 23) ) ) ) ) ) - ;;@ fmod.ts:105:2 (block $break|2 (nop) (loop $continue|2 (if - ;;@ fmod.ts:105:9 (i32.gt_s (get_local $4) - ;;@ fmod.ts:105:14 (get_local $5) ) (block (block - ;;@ fmod.ts:106:4 (set_local $9 - ;;@ fmod.ts:106:8 (i32.sub (get_local $2) - ;;@ fmod.ts:106:13 (get_local $3) ) ) - ;;@ fmod.ts:107:4 (if - ;;@ fmod.ts:107:8 (i32.eqz - ;;@ fmod.ts:107:9 (i32.shr_u - ;;@ fmod.ts:107:10 (get_local $9) - ;;@ fmod.ts:107:15 (i32.const 31) ) ) - ;;@ fmod.ts:107:20 (block - ;;@ fmod.ts:108:6 (if - ;;@ fmod.ts:108:10 (i32.eqz - ;;@ fmod.ts:108:11 (get_local $9) ) - ;;@ fmod.ts:109:19 (return - ;;@ fmod.ts:109:15 (f32.mul (f32.const 0) - ;;@ fmod.ts:109:19 (get_local $0) ) ) ) - ;;@ fmod.ts:110:6 (set_local $2 - ;;@ fmod.ts:110:11 (get_local $9) ) ) ) - ;;@ fmod.ts:112:4 (set_local $2 (i32.shl (get_local $2) - ;;@ fmod.ts:112:11 (i32.const 1) ) ) ) - ;;@ fmod.ts:105:18 (set_local $4 (i32.sub - ;;@ fmod.ts:105:20 (get_local $4) (i32.const 1) ) @@ -1100,82 +804,56 @@ ) ) ) - ;;@ fmod.ts:114:2 (set_local $9 - ;;@ fmod.ts:114:6 (i32.sub (get_local $2) - ;;@ fmod.ts:114:11 (get_local $3) ) ) - ;;@ fmod.ts:115:2 (if - ;;@ fmod.ts:115:6 (i32.eqz - ;;@ fmod.ts:115:7 (i32.shr_u - ;;@ fmod.ts:115:8 (get_local $9) - ;;@ fmod.ts:115:13 (i32.const 31) ) ) - ;;@ fmod.ts:115:18 (block - ;;@ fmod.ts:116:4 (if - ;;@ fmod.ts:116:8 (i32.eqz - ;;@ fmod.ts:116:9 (get_local $9) ) - ;;@ fmod.ts:117:17 (return - ;;@ fmod.ts:117:13 (f32.mul (f32.const 0) - ;;@ fmod.ts:117:17 (get_local $0) ) ) ) - ;;@ fmod.ts:118:4 (set_local $2 - ;;@ fmod.ts:118:9 (get_local $9) ) ) ) - ;;@ fmod.ts:120:2 (block $break|3 (nop) (loop $continue|3 (if - ;;@ fmod.ts:120:9 (i32.eqz - ;;@ fmod.ts:120:10 (i32.shr_u - ;;@ fmod.ts:120:11 (get_local $2) - ;;@ fmod.ts:120:17 (i32.const 23) ) ) (block - ;;@ fmod.ts:121:4 (set_local $4 (i32.sub - ;;@ fmod.ts:121:6 (get_local $4) (i32.const 1) ) ) - ;;@ fmod.ts:120:22 (set_local $2 (i32.shl (get_local $2) - ;;@ fmod.ts:120:29 (i32.const 1) ) ) @@ -1184,71 +862,52 @@ ) ) ) - ;;@ fmod.ts:124:2 (if - ;;@ fmod.ts:124:6 (i32.gt_s (get_local $4) - ;;@ fmod.ts:124:11 (i32.const 0) ) - ;;@ fmod.ts:124:14 (block - ;;@ fmod.ts:125:4 (set_local $2 (i32.sub (get_local $2) - ;;@ fmod.ts:125:10 (i32.shl (i32.const 1) - ;;@ fmod.ts:125:15 (i32.const 23) ) ) ) - ;;@ fmod.ts:126:4 (set_local $2 (i32.or (get_local $2) - ;;@ fmod.ts:126:10 (i32.shl (get_local $4) - ;;@ fmod.ts:126:21 (i32.const 23) ) ) ) ) - ;;@ fmod.ts:128:4 (set_local $2 (i32.shr_u (get_local $2) - ;;@ fmod.ts:128:11 (i32.add (i32.sub (i32.const 0) - ;;@ fmod.ts:128:12 (get_local $4) ) - ;;@ fmod.ts:128:17 (i32.const 1) ) ) ) ) - ;;@ fmod.ts:130:2 (set_local $2 (i32.or (get_local $2) - ;;@ fmod.ts:130:8 (get_local $6) ) ) - ;;@ fmod.ts:131:28 (return - ;;@ fmod.ts:131:9 (f32.reinterpret/i32 - ;;@ fmod.ts:131:26 (get_local $2) ) ) @@ -1256,17 +915,12 @@ (func $start (; 3 ;) (type $v) (local $0 f64) (local $1 f32) - ;;@ fmod.ts:65:0 (if (i32.eqz - ;;@ fmod.ts:65:7 (f64.ne (tee_local $0 - ;;@ fmod.ts:65:18 (call $fmod/fmod - ;;@ fmod.ts:65:23 (f64.const 1) - ;;@ fmod.ts:65:26 (f64.const nan:0x8000000000000) ) ) @@ -1283,18 +937,13 @@ (unreachable) ) ) - ;;@ fmod.ts:66:0 (if (i32.eqz - ;;@ fmod.ts:66:7 (f64.eq (call $fmod/fmod - ;;@ fmod.ts:66:12 (f64.const 1.5) - ;;@ fmod.ts:66:17 (f64.const 1) ) - ;;@ fmod.ts:66:25 (f64.const 0.5) ) ) @@ -1308,22 +957,16 @@ (unreachable) ) ) - ;;@ fmod.ts:67:0 (if (i32.eqz - ;;@ fmod.ts:67:7 (f64.lt (f64.sub (call $fmod/fmod - ;;@ fmod.ts:67:12 (f64.const 9.2) - ;;@ fmod.ts:67:17 (f64.const 2) ) - ;;@ fmod.ts:67:24 (f64.const 1.2) ) - ;;@ fmod.ts:67:30 (f64.const 2.220446049250313e-16) ) ) @@ -1337,22 +980,16 @@ (unreachable) ) ) - ;;@ fmod.ts:68:0 (if (i32.eqz - ;;@ fmod.ts:68:7 (f64.lt (f64.sub (call $fmod/fmod - ;;@ fmod.ts:68:12 (f64.const 9.2) - ;;@ fmod.ts:68:17 (f64.const 3.7) ) - ;;@ fmod.ts:68:24 (f64.const 1.8) ) - ;;@ fmod.ts:68:30 (f64.const 2.220446049250313e-16) ) ) @@ -1366,17 +1003,12 @@ (unreachable) ) ) - ;;@ fmod.ts:134:0 (if (i32.eqz - ;;@ fmod.ts:134:7 (f32.ne (tee_local $1 - ;;@ fmod.ts:134:18 (call $fmod/fmodf - ;;@ fmod.ts:134:24 (f32.const 1) - ;;@ fmod.ts:134:27 (f32.const nan:0x400000) ) ) @@ -1393,18 +1025,13 @@ (unreachable) ) ) - ;;@ fmod.ts:135:0 (if (i32.eqz - ;;@ fmod.ts:135:7 (f32.eq (call $fmod/fmodf - ;;@ fmod.ts:135:13 (f32.const 1.5) - ;;@ fmod.ts:135:18 (f32.const 1) ) - ;;@ fmod.ts:135:26 (f32.const 0.5) ) ) @@ -1418,22 +1045,16 @@ (unreachable) ) ) - ;;@ fmod.ts:136:0 (if (i32.eqz - ;;@ fmod.ts:136:7 (f32.lt (f32.sub (call $fmod/fmodf - ;;@ fmod.ts:136:13 (f32.const 9.199999809265137) - ;;@ fmod.ts:136:18 (f32.const 2) ) - ;;@ fmod.ts:136:25 (f32.const 1.2000000476837158) ) - ;;@ fmod.ts:136:31 (f32.const 1.1920928955078125e-07) ) ) @@ -1447,22 +1068,16 @@ (unreachable) ) ) - ;;@ fmod.ts:137:0 (if (i32.eqz - ;;@ fmod.ts:137:7 (f32.lt (f32.sub (call $fmod/fmodf - ;;@ fmod.ts:137:13 (f32.const 9.199999809265137) - ;;@ fmod.ts:137:18 (f32.const 3.700000047683716) ) - ;;@ fmod.ts:137:25 (f32.const 1.7999999523162842) ) - ;;@ fmod.ts:137:31 (f32.const 1.1920928955078125e-07) ) ) diff --git a/tests/compiler/for.wat b/tests/compiler/for.untouched.wat similarity index 74% rename from tests/compiler/for.wat rename to tests/compiler/for.untouched.wat index 8129833e..0863e93f 100644 --- a/tests/compiler/for.wat +++ b/tests/compiler/for.untouched.wat @@ -10,30 +10,22 @@ (start $start) (func $start (; 1 ;) (type $v) (local $0 i32) - ;;@ for.ts:2:0 (block $break|0 - ;;@ for.ts:2:5 (set_global $for/i - ;;@ for.ts:2:9 (i32.const 0) ) (loop $continue|0 (if - ;;@ for.ts:2:12 (i32.lt_s (get_global $for/i) - ;;@ for.ts:2:16 (i32.const 10) ) (block (block - ;;@ for.ts:3:2 (nop) ) - ;;@ for.ts:2:20 (set_global $for/i (i32.add - ;;@ for.ts:2:22 (get_global $for/i) (i32.const 1) ) @@ -43,13 +35,10 @@ ) ) ) - ;;@ for.ts:5:0 (if (i32.eqz - ;;@ for.ts:5:7 (i32.eq (get_global $for/i) - ;;@ for.ts:5:12 (i32.const 10) ) ) @@ -63,30 +52,22 @@ (unreachable) ) ) - ;;@ for.ts:7:0 (block $break|1 - ;;@ for.ts:7:5 (set_local $0 - ;;@ for.ts:7:18 (i32.const 0) ) (loop $continue|1 (if - ;;@ for.ts:7:21 (i32.lt_s (get_local $0) - ;;@ for.ts:7:25 (i32.const 10) ) (block (block - ;;@ for.ts:8:2 (nop) ) - ;;@ for.ts:7:29 (set_local $0 (i32.add - ;;@ for.ts:7:31 (get_local $0) (i32.const 1) ) @@ -96,24 +77,18 @@ ) ) ) - ;;@ for.ts:11:0 (block $break|2 (nop) (loop $continue|2 (if - ;;@ for.ts:11:7 (i32.gt_s (get_global $for/i) - ;;@ for.ts:11:11 (i32.const 0) ) (block - ;;@ for.ts:11:18 (nop) - ;;@ for.ts:11:14 (set_global $for/i (i32.sub - ;;@ for.ts:11:16 (get_global $for/i) (i32.const 1) ) @@ -123,13 +98,10 @@ ) ) ) - ;;@ for.ts:12:0 (if (i32.eqz - ;;@ for.ts:12:7 (i32.eq (get_global $for/i) - ;;@ for.ts:12:12 (i32.const 0) ) ) @@ -143,28 +115,21 @@ (unreachable) ) ) - ;;@ for.ts:14:0 (block $break|3 (nop) (loop $continue|3 (if (i32.const 1) (block - ;;@ for.ts:15:2 (if - ;;@ for.ts:15:6 (i32.eq (get_global $for/i) - ;;@ for.ts:15:11 (i32.const 10) ) - ;;@ for.ts:16:4 (br $break|3) ) - ;;@ for.ts:14:8 (set_global $for/i (i32.add - ;;@ for.ts:14:10 (get_global $for/i) (i32.const 1) ) @@ -174,31 +139,25 @@ ) ) ) - ;;@ for.ts:18:0 (block $break|4 (nop) (loop $continue|4 (if (i32.const 1) (block - ;;@ for.ts:19:2 (if - ;;@ for.ts:19:6 (i32.eq (block (result i32) (set_global $for/i (i32.sub - ;;@ for.ts:19:8 (get_global $for/i) (i32.const 1) ) ) (get_global $for/i) ) - ;;@ for.ts:19:13 (i32.const 0) ) - ;;@ for.ts:20:4 (br $break|4) ) (nop) diff --git a/tests/compiler/function.wat b/tests/compiler/function.untouched.wat similarity index 72% rename from tests/compiler/function.wat rename to tests/compiler/function.untouched.wat index 542a0481..d7b105d8 100644 --- a/tests/compiler/function.wat +++ b/tests/compiler/function.untouched.wat @@ -21,25 +21,21 @@ (func $function/v (; 0 ;) (type $v) ) (func $function/i (; 1 ;) (type $i) (result i32) - ;;@ function.ts:2:27 (return (i32.const 0) ) ) (func $function/I (; 2 ;) (type $I) (result i64) - ;;@ function.ts:3:27 (return (i64.const 0) ) ) (func $function/f (; 3 ;) (type $f) (result f32) - ;;@ function.ts:4:27 (return (f32.const 0) ) ) (func $function/F (; 4 ;) (type $F) (result f64) - ;;@ function.ts:5:27 (return (f64.const 0) ) @@ -47,25 +43,21 @@ (func $function/iv (; 5 ;) (type $iv) (param $0 i32) ) (func $function/ii (; 6 ;) (type $ii) (param $0 i32) (result i32) - ;;@ function.ts:14:34 (return (get_local $0) ) ) (func $function/II (; 7 ;) (type $II) (param $0 i64) (result i64) - ;;@ function.ts:15:34 (return (get_local $0) ) ) (func $function/ff (; 8 ;) (type $ff) (param $0 f32) (result f32) - ;;@ function.ts:16:34 (return (get_local $0) ) ) (func $function/FF (; 9 ;) (type $FF) (param $0 f64) (result f64) - ;;@ function.ts:17:34 (return (get_local $0) ) @@ -73,23 +65,17 @@ (func $function/iiv (; 10 ;) (type $iiv) (param $0 i32) (param $1 i32) ) (func $function/iii (; 11 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32) - ;;@ function.ts:26:47 (return - ;;@ function.ts:26:43 (i32.add (get_local $0) - ;;@ function.ts:26:47 (get_local $1) ) ) ) (func $function/III (; 12 ;) (type $IiI) (param $0 i64) (param $1 i32) (result i64) - ;;@ function.ts:27:47 (return - ;;@ function.ts:27:43 (i64.add (get_local $0) - ;;@ function.ts:27:47 (i64.extend_s/i32 (get_local $1) ) @@ -97,119 +83,83 @@ ) ) (func $function/fff (; 13 ;) (type $fff) (param $0 f32) (param $1 f32) (result f32) - ;;@ function.ts:28:47 (return - ;;@ function.ts:28:43 (f32.add (get_local $0) - ;;@ function.ts:28:47 (get_local $1) ) ) ) (func $function/FFF (; 14 ;) (type $FFF) (param $0 f64) (param $1 f64) (result f64) - ;;@ function.ts:29:47 (return - ;;@ function.ts:29:43 (f64.add (get_local $0) - ;;@ function.ts:29:47 (get_local $1) ) ) ) (func $start (; 15 ;) (type $v) - ;;@ function.ts:7:0 (call $function/v) - ;;@ function.ts:8:0 (drop (call $function/i) ) - ;;@ function.ts:9:0 (drop (call $function/I) ) - ;;@ function.ts:10:0 (drop (call $function/f) ) - ;;@ function.ts:11:0 (drop (call $function/F) ) - ;;@ function.ts:19:0 (call $function/iv - ;;@ function.ts:19:3 (i32.const 0) ) - ;;@ function.ts:20:0 (drop (call $function/ii - ;;@ function.ts:20:3 (i32.const 0) ) ) - ;;@ function.ts:21:0 (drop (call $function/II - ;;@ function.ts:21:3 (i64.const 0) ) ) - ;;@ function.ts:22:0 (drop (call $function/ff - ;;@ function.ts:22:3 (f32.const 0) ) ) - ;;@ function.ts:23:0 (drop (call $function/FF - ;;@ function.ts:23:3 (f64.const 0) ) ) - ;;@ function.ts:31:0 (call $function/iiv - ;;@ function.ts:31:4 (i32.const 1) - ;;@ function.ts:31:7 (i32.const 2) ) - ;;@ function.ts:32:0 (drop (call $function/iii - ;;@ function.ts:32:4 (i32.const 1) - ;;@ function.ts:32:7 (i32.const 2) ) ) - ;;@ function.ts:33:0 (drop (call $function/III - ;;@ function.ts:33:4 (i64.const 1) - ;;@ function.ts:33:7 (i32.const 2) ) ) - ;;@ function.ts:34:0 (drop (call $function/fff - ;;@ function.ts:34:4 (f32.const 1) - ;;@ function.ts:34:7 (f32.const 2) ) ) - ;;@ function.ts:35:0 (drop (call $function/FFF - ;;@ function.ts:35:4 (f64.const 1) - ;;@ function.ts:35:7 (f64.const 2) ) ) diff --git a/tests/compiler/game-of-life.untouched.wat b/tests/compiler/game-of-life.untouched.wat new file mode 100644 index 00000000..610ca46a --- /dev/null +++ b/tests/compiler/game-of-life.untouched.wat @@ -0,0 +1,308 @@ +(module + (type $iiv (func (param i32 i32))) + (type $v (func)) + (global $../../examples/game-of-life/assembly/game-of-life/w (mut i32) (i32.const 0)) + (global $../../examples/game-of-life/assembly/game-of-life/h (mut i32) (i32.const 0)) + (global $../../examples/game-of-life/assembly/game-of-life/s (mut i32) (i32.const 0)) + (global $HEAP_BASE i32 (i32.const 4)) + (memory $0 1) + (export "init" (func $../../examples/game-of-life/assembly/game-of-life/init)) + (export "step" (func $../../examples/game-of-life/assembly/game-of-life/step)) + (export "memory" (memory $0)) + (func $../../examples/game-of-life/assembly/game-of-life/init (; 0 ;) (type $iiv) (param $0 i32) (param $1 i32) + (set_global $../../examples/game-of-life/assembly/game-of-life/w + (get_local $0) + ) + (set_global $../../examples/game-of-life/assembly/game-of-life/h + (get_local $1) + ) + (set_global $../../examples/game-of-life/assembly/game-of-life/s + (i32.mul + (get_global $../../examples/game-of-life/assembly/game-of-life/w) + (get_global $../../examples/game-of-life/assembly/game-of-life/h) + ) + ) + ) + (func $../../examples/game-of-life/assembly/game-of-life/step (; 1 ;) (type $v) + (local $0 i32) + (local $1 i32) + (local $2 i32) + (local $3 i32) + (local $4 i32) + (local $5 i32) + (local $6 i32) + (local $7 i32) + (local $8 i32) + (local $9 i32) + (block + (set_local $0 + (i32.sub + (get_global $../../examples/game-of-life/assembly/game-of-life/h) + (i32.const 1) + ) + ) + (set_local $1 + (i32.sub + (get_global $../../examples/game-of-life/assembly/game-of-life/w) + (i32.const 1) + ) + ) + ) + (block $break|0 + (set_local $2 + (i32.const 0) + ) + (loop $continue|0 + (if + (i32.lt_u + (get_local $2) + (get_global $../../examples/game-of-life/assembly/game-of-life/h) + ) + (block + (block + (block + (set_local $3 + (select + (get_local $0) + (i32.sub + (get_local $2) + (i32.const 1) + ) + (i32.eq + (get_local $2) + (i32.const 0) + ) + ) + ) + (set_local $4 + (select + (i32.const 0) + (i32.add + (get_local $2) + (i32.const 1) + ) + (i32.eq + (get_local $2) + (get_local $0) + ) + ) + ) + ) + (block $break|1 + (set_local $5 + (i32.const 0) + ) + (loop $continue|1 + (if + (i32.lt_u + (get_local $5) + (get_global $../../examples/game-of-life/assembly/game-of-life/w) + ) + (block + (block + (block + (set_local $6 + (select + (get_local $1) + (i32.sub + (get_local $5) + (i32.const 1) + ) + (i32.eq + (get_local $5) + (i32.const 0) + ) + ) + ) + (set_local $7 + (select + (i32.const 0) + (i32.add + (get_local $5) + (i32.const 1) + ) + (i32.eq + (get_local $5) + (get_local $1) + ) + ) + ) + ) + (set_local $8 + (i32.add + (i32.add + (i32.add + (i32.add + (i32.add + (i32.add + (i32.add + (i32.load8_u + (i32.add + (i32.mul + (get_local $3) + (get_global $../../examples/game-of-life/assembly/game-of-life/w) + ) + (get_local $6) + ) + ) + (i32.load8_u + (i32.add + (i32.mul + (get_local $3) + (get_global $../../examples/game-of-life/assembly/game-of-life/w) + ) + (get_local $5) + ) + ) + ) + (i32.load8_u + (i32.add + (i32.mul + (get_local $3) + (get_global $../../examples/game-of-life/assembly/game-of-life/w) + ) + (get_local $7) + ) + ) + ) + (i32.load8_u + (i32.add + (i32.mul + (get_local $2) + (get_global $../../examples/game-of-life/assembly/game-of-life/w) + ) + (get_local $6) + ) + ) + ) + (i32.load8_u + (i32.add + (i32.mul + (get_local $2) + (get_global $../../examples/game-of-life/assembly/game-of-life/w) + ) + (get_local $7) + ) + ) + ) + (i32.load8_u + (i32.add + (i32.mul + (get_local $4) + (get_global $../../examples/game-of-life/assembly/game-of-life/w) + ) + (get_local $6) + ) + ) + ) + (i32.load8_u + (i32.add + (i32.mul + (get_local $4) + (get_global $../../examples/game-of-life/assembly/game-of-life/w) + ) + (get_local $5) + ) + ) + ) + (i32.load8_u + (i32.add + (i32.mul + (get_local $4) + (get_global $../../examples/game-of-life/assembly/game-of-life/w) + ) + (get_local $7) + ) + ) + ) + ) + (if + (i32.load8_u + (i32.add + (i32.mul + (get_local $2) + (get_global $../../examples/game-of-life/assembly/game-of-life/w) + ) + (get_local $5) + ) + ) + (if + (i32.and + (if (result i32) + (i32.ne + (tee_local $9 + (i32.lt_s + (get_local $8) + (i32.const 2) + ) + ) + (i32.const 0) + ) + (get_local $9) + (i32.gt_s + (get_local $8) + (i32.const 3) + ) + ) + (i32.const 1) + ) + (i32.store8 + (i32.add + (i32.add + (get_global $../../examples/game-of-life/assembly/game-of-life/s) + (i32.mul + (get_local $2) + (get_global $../../examples/game-of-life/assembly/game-of-life/w) + ) + ) + (get_local $5) + ) + (i32.const 0) + ) + ) + (if + (i32.eq + (get_local $8) + (i32.const 3) + ) + (i32.store8 + (i32.add + (i32.add + (get_global $../../examples/game-of-life/assembly/game-of-life/s) + (i32.mul + (get_local $2) + (get_global $../../examples/game-of-life/assembly/game-of-life/w) + ) + ) + (get_local $5) + ) + (i32.const 1) + ) + ) + ) + ) + (set_local $5 + (i32.add + (get_local $5) + (i32.const 1) + ) + ) + (br $continue|1) + ) + ) + ) + ) + ) + (set_local $2 + (i32.add + (get_local $2) + (i32.const 1) + ) + ) + (br $continue|0) + ) + ) + ) + ) + ) +) diff --git a/tests/compiler/game-of-life.wat b/tests/compiler/game-of-life.wat deleted file mode 100644 index 4f5da4f8..00000000 --- a/tests/compiler/game-of-life.wat +++ /dev/null @@ -1,417 +0,0 @@ -(module - (type $iiv (func (param i32 i32))) - (type $v (func)) - (global $../../examples/game-of-life/assembly/game-of-life/w (mut i32) (i32.const 0)) - (global $../../examples/game-of-life/assembly/game-of-life/h (mut i32) (i32.const 0)) - (global $../../examples/game-of-life/assembly/game-of-life/s (mut i32) (i32.const 0)) - (global $HEAP_BASE i32 (i32.const 4)) - (memory $0 1) - (export "init" (func $../../examples/game-of-life/assembly/game-of-life/init)) - (export "step" (func $../../examples/game-of-life/assembly/game-of-life/step)) - (export "memory" (memory $0)) - (func $../../examples/game-of-life/assembly/game-of-life/init (; 0 ;) (type $iiv) (param $0 i32) (param $1 i32) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:9:2 - (set_global $../../examples/game-of-life/assembly/game-of-life/w - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:9:6 - (get_local $0) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:10:2 - (set_global $../../examples/game-of-life/assembly/game-of-life/h - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:10:6 - (get_local $1) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:11:2 - (set_global $../../examples/game-of-life/assembly/game-of-life/s - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:11:6 - (i32.mul - (get_global $../../examples/game-of-life/assembly/game-of-life/w) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:11:10 - (get_global $../../examples/game-of-life/assembly/game-of-life/h) - ) - ) - ) - (func $../../examples/game-of-life/assembly/game-of-life/step (; 1 ;) (type $v) - (local $0 i32) - (local $1 i32) - (local $2 i32) - (local $3 i32) - (local $4 i32) - (local $5 i32) - (local $6 i32) - (local $7 i32) - (local $8 i32) - (local $9 i32) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:16:2 - (block - (set_local $0 - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:16:12 - (i32.sub - (get_global $../../examples/game-of-life/assembly/game-of-life/h) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:16:16 - (i32.const 1) - ) - ) - (set_local $1 - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:17:12 - (i32.sub - (get_global $../../examples/game-of-life/assembly/game-of-life/w) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:17:16 - (i32.const 1) - ) - ) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:18:2 - (block $break|0 - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:18:7 - (set_local $2 - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:18:20 - (i32.const 0) - ) - (loop $continue|0 - (if - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:18:23 - (i32.lt_u - (get_local $2) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:18:27 - (get_global $../../examples/game-of-life/assembly/game-of-life/h) - ) - (block - (block - (block - (set_local $3 - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:19:14 - (select - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:19:26 - (get_local $0) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:19:31 - (i32.sub - (get_local $2) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:19:35 - (i32.const 1) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:19:38 - (i32.eq - (get_local $2) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:19:43 - (i32.const 0) - ) - ) - ) - (set_local $4 - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:20:14 - (select - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:20:26 - (i32.const 0) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:20:29 - (i32.add - (get_local $2) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:20:33 - (i32.const 1) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:20:36 - (i32.eq - (get_local $2) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:20:41 - (get_local $0) - ) - ) - ) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:21:4 - (block $break|1 - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:21:9 - (set_local $5 - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:21:22 - (i32.const 0) - ) - (loop $continue|1 - (if - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:21:25 - (i32.lt_u - (get_local $5) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:21:29 - (get_global $../../examples/game-of-life/assembly/game-of-life/w) - ) - (block - (block - (block - (set_local $6 - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:22:16 - (select - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:22:28 - (get_local $1) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:22:33 - (i32.sub - (get_local $5) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:22:37 - (i32.const 1) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:22:40 - (i32.eq - (get_local $5) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:22:45 - (i32.const 0) - ) - ) - ) - (set_local $7 - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:23:16 - (select - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:23:28 - (i32.const 0) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:23:31 - (i32.add - (get_local $5) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:23:35 - (i32.const 1) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:23:38 - (i32.eq - (get_local $5) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:23:43 - (get_local $1) - ) - ) - ) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:24:6 - (set_local $8 - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:24:14 - (i32.add - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:25:8 - (i32.add - (i32.add - (i32.add - (i32.add - (i32.add - (i32.add - (i32.load8_u - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:25:17 - (i32.add - (i32.mul - (get_local $3) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:25:23 - (get_global $../../examples/game-of-life/assembly/game-of-life/w) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:25:27 - (get_local $6) - ) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:25:34 - (i32.load8_u - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:25:43 - (i32.add - (i32.mul - (get_local $3) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:25:49 - (get_global $../../examples/game-of-life/assembly/game-of-life/w) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:25:53 - (get_local $5) - ) - ) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:25:58 - (i32.load8_u - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:25:67 - (i32.add - (i32.mul - (get_local $3) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:25:73 - (get_global $../../examples/game-of-life/assembly/game-of-life/w) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:25:77 - (get_local $7) - ) - ) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:26:8 - (i32.load8_u - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:26:17 - (i32.add - (i32.mul - (get_local $2) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:26:23 - (get_global $../../examples/game-of-life/assembly/game-of-life/w) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:26:27 - (get_local $6) - ) - ) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:26:58 - (i32.load8_u - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:26:67 - (i32.add - (i32.mul - (get_local $2) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:26:73 - (get_global $../../examples/game-of-life/assembly/game-of-life/w) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:26:77 - (get_local $7) - ) - ) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:27:8 - (i32.load8_u - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:27:17 - (i32.add - (i32.mul - (get_local $4) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:27:23 - (get_global $../../examples/game-of-life/assembly/game-of-life/w) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:27:27 - (get_local $6) - ) - ) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:27:34 - (i32.load8_u - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:27:43 - (i32.add - (i32.mul - (get_local $4) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:27:49 - (get_global $../../examples/game-of-life/assembly/game-of-life/w) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:27:53 - (get_local $5) - ) - ) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:27:58 - (i32.load8_u - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:27:67 - (i32.add - (i32.mul - (get_local $4) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:27:73 - (get_global $../../examples/game-of-life/assembly/game-of-life/w) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:27:77 - (get_local $7) - ) - ) - ) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:29:6 - (if - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:29:10 - (i32.load8_u - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:29:19 - (i32.add - (i32.mul - (get_local $2) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:29:23 - (get_global $../../examples/game-of-life/assembly/game-of-life/w) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:29:27 - (get_local $5) - ) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:30:8 - (if - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:30:12 - (i32.and - (if (result i32) - (i32.ne - (tee_local $9 - (i32.lt_s - (get_local $8) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:30:16 - (i32.const 2) - ) - ) - (i32.const 0) - ) - (get_local $9) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:30:21 - (i32.gt_s - (get_local $8) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:30:25 - (i32.const 3) - ) - ) - (i32.const 1) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:31:10 - (i32.store8 - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:31:20 - (i32.add - (i32.add - (get_global $../../examples/game-of-life/assembly/game-of-life/s) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:31:24 - (i32.mul - (get_local $2) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:31:28 - (get_global $../../examples/game-of-life/assembly/game-of-life/w) - ) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:31:32 - (get_local $5) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:31:35 - (i32.const 0) - ) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:32:13 - (if - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:32:17 - (i32.eq - (get_local $8) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:32:22 - (i32.const 3) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:33:8 - (i32.store8 - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:33:18 - (i32.add - (i32.add - (get_global $../../examples/game-of-life/assembly/game-of-life/s) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:33:22 - (i32.mul - (get_local $2) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:33:26 - (get_global $../../examples/game-of-life/assembly/game-of-life/w) - ) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:33:30 - (get_local $5) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:33:33 - (i32.const 1) - ) - ) - ) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:21:32 - (set_local $5 - (i32.add - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:21:34 - (get_local $5) - (i32.const 1) - ) - ) - (br $continue|1) - ) - ) - ) - ) - ) - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:18:30 - (set_local $2 - (i32.add - ;;@ ../../examples/game-of-life/assembly/game-of-life.ts:18:32 - (get_local $2) - (i32.const 1) - ) - ) - (br $continue|0) - ) - ) - ) - ) - ) -) diff --git a/tests/compiler/getter-setter.wat b/tests/compiler/getter-setter.untouched.wat similarity index 77% rename from tests/compiler/getter-setter.wat rename to tests/compiler/getter-setter.untouched.wat index 1c40ded8..4778a397 100644 --- a/tests/compiler/getter-setter.wat +++ b/tests/compiler/getter-setter.untouched.wat @@ -11,27 +11,20 @@ (export "memory" (memory $0)) (start $start) (func $getter-setter/Foo.get:bar (; 1 ;) (type $i) (result i32) - ;;@ getter-setter.ts:5:15 (return - ;;@ getter-setter.ts:5:11 (get_global $getter-setter/Foo._bar) ) ) (func $getter-setter/Foo.set:bar (; 2 ;) (type $iv) (param $0 i32) - ;;@ getter-setter.ts:9:4 (set_global $getter-setter/Foo._bar - ;;@ getter-setter.ts:9:15 (get_local $0) ) ) (func $start (; 3 ;) (type $v) - ;;@ getter-setter.ts:13:0 (if (i32.eqz - ;;@ getter-setter.ts:13:7 (i32.eq (call $getter-setter/Foo.get:bar) - ;;@ getter-setter.ts:13:18 (i32.const 0) ) ) @@ -45,18 +38,13 @@ (unreachable) ) ) - ;;@ getter-setter.ts:14:0 (call $getter-setter/Foo.set:bar - ;;@ getter-setter.ts:14:10 (i32.const 1) ) - ;;@ getter-setter.ts:15:0 (if (i32.eqz - ;;@ getter-setter.ts:15:7 (i32.eq (call $getter-setter/Foo.get:bar) - ;;@ getter-setter.ts:15:18 (i32.const 1) ) ) @@ -70,19 +58,15 @@ (unreachable) ) ) - ;;@ getter-setter.ts:16:0 (if (i32.eqz - ;;@ getter-setter.ts:16:7 (i32.eq (block (result i32) (call $getter-setter/Foo.set:bar - ;;@ getter-setter.ts:16:18 (i32.const 2) ) (call $getter-setter/Foo.get:bar) ) - ;;@ getter-setter.ts:16:24 (i32.const 2) ) ) diff --git a/tests/compiler/i64-polyfill.wat b/tests/compiler/i64-polyfill.untouched.wat similarity index 50% rename from tests/compiler/i64-polyfill.wat rename to tests/compiler/i64-polyfill.untouched.wat index 92508b23..a4c73e7e 100644 --- a/tests/compiler/i64-polyfill.wat +++ b/tests/compiler/i64-polyfill.untouched.wat @@ -39,208 +39,154 @@ (export "ge_u" (func $../../examples/i64-polyfill/assembly/i64/ge_u)) (export "memory" (memory $0)) (func $../../examples/i64-polyfill/assembly/i64/getHi (; 0 ;) (type $i) (result i32) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:9:9 (return (get_global $../../examples/i64-polyfill/assembly/i64/hi) ) ) (func $../../examples/i64-polyfill/assembly/i64/getLo (; 1 ;) (type $i) (result i32) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:5:9 (return (get_global $../../examples/i64-polyfill/assembly/i64/lo) ) ) (func $../../examples/i64-polyfill/assembly/i64/clz_ (; 2 ;) (type $iiv) (param $0 i32) (param $1 i32) (local $2 i64) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:13:2 (set_local $2 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:13:12 (i64.clz - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:13:21 (i64.or (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:13:35 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:13:50 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:14:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:14:7 (i32.wrap/i64 (get_local $2) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:15:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:15:7 (i32.const 0) ) ) (func $../../examples/i64-polyfill/assembly/i64/ctz_ (; 3 ;) (type $iiv) (param $0 i32) (param $1 i32) (local $2 i64) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:20:2 (set_local $2 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:20:12 (i64.ctz - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:20:21 (i64.or (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:20:35 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:20:50 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:21:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:21:7 (i32.wrap/i64 (get_local $2) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:22:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:22:7 (i32.const 0) ) ) (func $../../examples/i64-polyfill/assembly/i64/popcnt_ (; 4 ;) (type $iiv) (param $0 i32) (param $1 i32) (local $2 i64) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:27:2 (set_local $2 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:27:12 (i64.popcnt - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:27:24 (i64.or (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:27:38 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:27:53 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:28:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:28:7 (i32.wrap/i64 (get_local $2) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:29:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:29:7 (i32.const 0) ) ) (func $../../examples/i64-polyfill/assembly/i64/eqz (; 5 ;) (type $iiv) (param $0 i32) (param $1 i32) (local $2 i32) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:34:2 (set_local $2 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:34:18 (i64.eqz - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:34:19 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:34:20 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:34:34 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:34:49 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:35:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:35:7 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:36:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:36:7 (i32.const 0) ) ) (func $../../examples/i64-polyfill/assembly/i64/add (; 6 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i64) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:40:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:40:12 (i64.add (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:40:13 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:40:27 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:40:42 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:40:48 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:40:49 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:40:64 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:40:80 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:41:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:41:7 (i32.wrap/i64 (get_local $4) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:42:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:42:7 (i32.wrap/i64 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:42:13 (i64.shr_u (get_local $4) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:42:20 (i64.const 32) ) ) @@ -248,56 +194,41 @@ ) (func $../../examples/i64-polyfill/assembly/i64/sub (; 7 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i64) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:46:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:46:12 (i64.sub (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:46:13 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:46:27 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:46:42 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:46:48 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:46:49 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:46:64 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:46:80 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:47:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:47:7 (i32.wrap/i64 (get_local $4) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:48:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:48:7 (i32.wrap/i64 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:48:13 (i64.shr_u (get_local $4) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:48:20 (i64.const 32) ) ) @@ -305,56 +236,41 @@ ) (func $../../examples/i64-polyfill/assembly/i64/mul (; 8 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i64) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:52:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:52:12 (i64.mul (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:52:13 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:52:27 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:52:42 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:52:48 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:52:49 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:52:64 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:52:80 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:53:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:53:7 (i32.wrap/i64 (get_local $4) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:54:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:54:7 (i32.wrap/i64 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:54:13 (i64.shr_u (get_local $4) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:54:20 (i64.const 32) ) ) @@ -362,57 +278,41 @@ ) (func $../../examples/i64-polyfill/assembly/i64/div_s (; 9 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i64) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:58:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:58:12 (i64.div_s - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:58:18 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:58:24 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:58:38 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:58:53 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:58:59 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:58:65 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:58:80 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:58:96 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:59:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:59:7 (i32.wrap/i64 (get_local $4) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:60:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:60:7 (i32.wrap/i64 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:60:13 (i64.shr_u (get_local $4) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:60:20 (i64.const 32) ) ) @@ -420,56 +320,41 @@ ) (func $../../examples/i64-polyfill/assembly/i64/div_u (; 10 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i64) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:64:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:64:12 (i64.div_u (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:64:13 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:64:27 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:64:42 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:64:48 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:64:49 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:64:64 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:64:80 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:65:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:65:7 (i32.wrap/i64 (get_local $4) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:66:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:66:7 (i32.wrap/i64 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:66:13 (i64.shr_u (get_local $4) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:66:20 (i64.const 32) ) ) @@ -477,57 +362,41 @@ ) (func $../../examples/i64-polyfill/assembly/i64/rem_s (; 11 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i64) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:70:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:70:12 (i64.rem_s - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:70:18 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:70:24 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:70:38 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:70:53 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:70:59 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:70:65 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:70:80 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:70:96 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:71:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:71:7 (i32.wrap/i64 (get_local $4) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:72:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:72:7 (i32.wrap/i64 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:72:13 (i64.shr_u (get_local $4) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:72:20 (i64.const 32) ) ) @@ -535,56 +404,41 @@ ) (func $../../examples/i64-polyfill/assembly/i64/rem_u (; 12 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i64) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:76:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:76:12 (i64.rem_u (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:76:13 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:76:27 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:76:42 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:76:48 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:76:49 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:76:64 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:76:80 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:77:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:77:7 (i32.wrap/i64 (get_local $4) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:78:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:78:7 (i32.wrap/i64 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:78:13 (i64.shr_u (get_local $4) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:78:21 (i64.const 32) ) ) @@ -592,56 +446,41 @@ ) (func $../../examples/i64-polyfill/assembly/i64/and (; 13 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i64) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:82:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:82:12 (i64.and (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:82:13 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:82:27 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:82:42 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:82:48 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:82:49 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:82:64 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:82:80 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:83:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:83:7 (i32.wrap/i64 (get_local $4) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:84:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:84:7 (i32.wrap/i64 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:84:13 (i64.shr_u (get_local $4) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:84:21 (i64.const 32) ) ) @@ -649,56 +488,41 @@ ) (func $../../examples/i64-polyfill/assembly/i64/or (; 14 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i64) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:88:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:88:12 (i64.or (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:88:13 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:88:27 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:88:42 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:88:48 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:88:49 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:88:64 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:88:80 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:89:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:89:7 (i32.wrap/i64 (get_local $4) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:90:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:90:7 (i32.wrap/i64 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:90:13 (i64.shr_u (get_local $4) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:90:21 (i64.const 32) ) ) @@ -706,56 +530,41 @@ ) (func $../../examples/i64-polyfill/assembly/i64/xor (; 15 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i64) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:94:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:94:12 (i64.xor (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:94:13 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:94:27 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:94:42 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:94:48 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:94:49 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:94:64 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:94:80 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:95:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:95:7 (i32.wrap/i64 (get_local $4) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:96:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:96:7 (i32.wrap/i64 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:96:13 (i64.shr_u (get_local $4) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:96:21 (i64.const 32) ) ) @@ -763,56 +572,41 @@ ) (func $../../examples/i64-polyfill/assembly/i64/shl (; 16 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i64) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:100:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:100:12 (i64.shl (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:100:13 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:100:27 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:100:42 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:100:49 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:100:50 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:100:65 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:100:81 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:101:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:101:7 (i32.wrap/i64 (get_local $4) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:102:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:102:7 (i32.wrap/i64 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:102:13 (i64.shr_u (get_local $4) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:102:21 (i64.const 32) ) ) @@ -820,57 +614,41 @@ ) (func $../../examples/i64-polyfill/assembly/i64/shr_s (; 17 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i64) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:106:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:106:12 (i64.shr_s - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:106:18 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:106:24 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:106:38 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:106:53 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:106:60 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:106:66 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:106:81 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:106:97 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:107:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:107:7 (i32.wrap/i64 (get_local $4) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:108:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:108:7 (i32.wrap/i64 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:108:13 (i64.shr_u (get_local $4) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:108:21 (i64.const 32) ) ) @@ -878,56 +656,41 @@ ) (func $../../examples/i64-polyfill/assembly/i64/shr_u (; 18 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i64) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:112:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:112:12 (i64.shr_u (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:112:13 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:112:27 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:112:42 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:112:49 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:112:50 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:112:65 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:112:81 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:113:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:113:7 (i32.wrap/i64 (get_local $4) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:114:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:114:7 (i32.wrap/i64 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:114:13 (i64.shr_u (get_local $4) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:114:21 (i64.const 32) ) ) @@ -935,55 +698,41 @@ ) (func $../../examples/i64-polyfill/assembly/i64/rotl_ (; 19 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i64) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:118:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:118:12 (i64.rotl - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:118:22 (i64.or (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:118:36 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:118:51 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:118:55 (i64.or (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:118:70 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:118:86 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:119:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:119:7 (i32.wrap/i64 (get_local $4) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:120:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:120:7 (i32.wrap/i64 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:120:13 (i64.shr_u (get_local $4) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:120:21 (i64.const 32) ) ) @@ -991,55 +740,41 @@ ) (func $../../examples/i64-polyfill/assembly/i64/rotr_ (; 20 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i64) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:125:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:125:12 (i64.rotr - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:125:22 (i64.or (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:125:36 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:125:51 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:125:55 (i64.or (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:125:70 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:125:86 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:126:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:126:7 (i32.wrap/i64 (get_local $4) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:127:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:127:7 (i32.wrap/i64 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:127:13 (i64.shr_u (get_local $4) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:127:21 (i64.const 32) ) ) @@ -1047,481 +782,351 @@ ) (func $../../examples/i64-polyfill/assembly/i64/eq (; 21 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i32) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:132:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:132:18 (i64.eq (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:132:19 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:132:33 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:132:48 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:132:55 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:132:56 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:132:71 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:132:87 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:133:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:133:7 (get_local $4) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:134:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:134:7 (i32.const 0) ) ) (func $../../examples/i64-polyfill/assembly/i64/ne (; 22 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i32) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:138:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:138:18 (i64.ne (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:138:19 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:138:33 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:138:48 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:138:55 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:138:56 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:138:71 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:138:87 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:139:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:139:7 (get_local $4) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:140:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:140:7 (i32.const 0) ) ) (func $../../examples/i64-polyfill/assembly/i64/lt_s (; 23 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i32) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:144:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:144:18 (i64.lt_s (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:144:24 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:144:38 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:144:53 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:144:59 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:144:65 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:144:80 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:144:96 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:145:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:145:7 (get_local $4) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:146:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:146:7 (i32.const 0) ) ) (func $../../examples/i64-polyfill/assembly/i64/lt_u (; 24 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i32) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:150:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:150:18 (i64.lt_u (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:150:19 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:150:33 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:150:48 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:150:54 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:150:55 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:150:70 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:150:86 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:151:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:151:7 (get_local $4) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:152:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:152:7 (i32.const 0) ) ) (func $../../examples/i64-polyfill/assembly/i64/le_s (; 25 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i32) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:156:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:156:18 (i64.le_s (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:156:24 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:156:38 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:156:53 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:156:60 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:156:66 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:156:81 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:156:97 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:157:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:157:7 (get_local $4) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:158:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:158:7 (i32.const 0) ) ) (func $../../examples/i64-polyfill/assembly/i64/le_u (; 26 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i32) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:162:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:162:18 (i64.le_u (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:162:19 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:162:33 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:162:48 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:162:55 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:162:56 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:162:71 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:162:87 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:163:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:163:7 (get_local $4) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:164:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:164:7 (i32.const 0) ) ) (func $../../examples/i64-polyfill/assembly/i64/gt_s (; 27 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i32) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:168:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:168:18 (i64.gt_s (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:168:24 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:168:38 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:168:53 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:168:59 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:168:65 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:168:80 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:168:96 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:169:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:169:7 (get_local $4) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:170:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:170:7 (i32.const 0) ) ) (func $../../examples/i64-polyfill/assembly/i64/gt_u (; 28 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i32) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:174:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:174:18 (i64.gt_u (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:174:19 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:174:33 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:174:48 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:174:54 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:174:55 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:174:70 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:174:86 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:175:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:175:7 (get_local $4) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:176:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:176:7 (i32.const 0) ) ) (func $../../examples/i64-polyfill/assembly/i64/ge_s (; 29 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i32) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:180:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:180:18 (i64.ge_s (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:180:24 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:180:38 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:180:53 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:180:60 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:180:66 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:180:81 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:180:97 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:181:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:181:7 (get_local $4) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:182:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:182:7 (i32.const 0) ) ) (func $../../examples/i64-polyfill/assembly/i64/ge_u (; 30 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (local $4 i32) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:186:2 (set_local $4 - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:186:18 (i64.ge_u (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:186:19 (i64.extend_u/i32 (get_local $0) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:186:33 (i64.shl (i64.extend_u/i32 (get_local $1) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:186:48 (i64.const 32) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:186:55 (i64.or - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:186:56 (i64.extend_u/i32 (get_local $2) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:186:71 (i64.shl (i64.extend_u/i32 (get_local $3) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:186:87 (i64.const 32) ) ) ) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:187:2 (set_global $../../examples/i64-polyfill/assembly/i64/lo - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:187:7 (get_local $4) ) - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:188:2 (set_global $../../examples/i64-polyfill/assembly/i64/hi - ;;@ ../../examples/i64-polyfill/assembly/i64.ts:188:7 (i32.const 0) ) ) diff --git a/tests/compiler/if.wat b/tests/compiler/if.untouched.wat similarity index 77% rename from tests/compiler/if.wat rename to tests/compiler/if.untouched.wat index d8581226..2ed5859e 100644 --- a/tests/compiler/if.wat +++ b/tests/compiler/if.untouched.wat @@ -13,54 +13,38 @@ (export "memory" (memory $0)) (start $start) (func $if/ifThenElse (; 1 ;) (type $ii) (param $0 i32) (result i32) - ;;@ if.ts:2:2 (if - ;;@ if.ts:2:6 (get_local $0) - ;;@ if.ts:3:11 (return (i32.const 1) ) - ;;@ if.ts:5:11 (return (i32.const 0) ) ) ) (func $if/ifThen (; 2 ;) (type $ii) (param $0 i32) (result i32) - ;;@ if.ts:12:2 (if - ;;@ if.ts:12:6 (get_local $0) - ;;@ if.ts:13:11 (return (i32.const 1) ) ) - ;;@ if.ts:14:9 (return (i32.const 0) ) ) (func $if/ifThenElseBlock (; 3 ;) (type $ii) (param $0 i32) (result i32) - ;;@ if.ts:21:2 (if - ;;@ if.ts:21:6 (get_local $0) - ;;@ if.ts:21:9 (block - ;;@ if.ts:22:4 (nop) - ;;@ if.ts:23:11 (return (i32.const 1) ) ) - ;;@ if.ts:24:9 (block - ;;@ if.ts:25:4 (nop) - ;;@ if.ts:26:11 (return (i32.const 0) ) @@ -68,29 +52,21 @@ ) ) (func $if/ifAlwaysReturns (; 4 ;) (type $ii) (param $0 i32) (result i32) - ;;@ if.ts:34:2 (if - ;;@ if.ts:34:6 (get_local $0) - ;;@ if.ts:35:11 (return (i32.const 1) ) - ;;@ if.ts:37:4 (unreachable) ) ) (func $start (; 5 ;) (type $v) - ;;@ if.ts:8:0 (if (i32.eqz - ;;@ if.ts:8:7 (i32.eq (call $if/ifThenElse - ;;@ if.ts:8:18 (i32.const 0) ) - ;;@ if.ts:8:24 (i32.const 0) ) ) @@ -104,16 +80,12 @@ (unreachable) ) ) - ;;@ if.ts:9:0 (if (i32.eqz - ;;@ if.ts:9:7 (i32.eq (call $if/ifThenElse - ;;@ if.ts:9:18 (i32.const 1) ) - ;;@ if.ts:9:24 (i32.const 1) ) ) @@ -127,16 +99,12 @@ (unreachable) ) ) - ;;@ if.ts:17:0 (if (i32.eqz - ;;@ if.ts:17:7 (i32.eq (call $if/ifThen - ;;@ if.ts:17:14 (i32.const 0) ) - ;;@ if.ts:17:20 (i32.const 0) ) ) @@ -150,16 +118,12 @@ (unreachable) ) ) - ;;@ if.ts:18:0 (if (i32.eqz - ;;@ if.ts:18:7 (i32.eq (call $if/ifThen - ;;@ if.ts:18:14 (i32.const 1) ) - ;;@ if.ts:18:20 (i32.const 1) ) ) @@ -173,16 +137,12 @@ (unreachable) ) ) - ;;@ if.ts:30:0 (if (i32.eqz - ;;@ if.ts:30:7 (i32.eq (call $if/ifThenElseBlock - ;;@ if.ts:30:23 (i32.const 0) ) - ;;@ if.ts:30:29 (i32.const 0) ) ) @@ -196,16 +156,12 @@ (unreachable) ) ) - ;;@ if.ts:31:0 (if (i32.eqz - ;;@ if.ts:31:7 (i32.eq (call $if/ifThenElseBlock - ;;@ if.ts:31:23 (i32.const 1) ) - ;;@ if.ts:31:29 (i32.const 1) ) ) diff --git a/tests/compiler/import.wat b/tests/compiler/import.untouched.wat similarity index 71% rename from tests/compiler/import.wat rename to tests/compiler/import.untouched.wat index acb1b194..d228ae17 100644 --- a/tests/compiler/import.wat +++ b/tests/compiler/import.untouched.wat @@ -9,34 +9,25 @@ (export "memory" (memory $0)) (start $start) (func $export/add (; 0 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32) - ;;@ export.ts:2:13 (return - ;;@ export.ts:2:9 (i32.add (get_local $0) - ;;@ export.ts:2:13 (get_local $1) ) ) ) (func $export/sub (; 1 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32) - ;;@ export.ts:6:13 (return - ;;@ export.ts:6:9 (i32.sub (get_local $0) - ;;@ export.ts:6:13 (get_local $1) ) ) ) (func $export/mul (; 2 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32) - ;;@ export.ts:12:13 (return - ;;@ export.ts:12:9 (i32.mul (get_local $0) - ;;@ export.ts:12:13 (get_local $1) ) ) @@ -44,34 +35,24 @@ (func $export/ns.two (; 3 ;) (type $v) ) (func $start (; 4 ;) (type $v) - ;;@ import.ts:11:0 (drop (i32.add (i32.add (call $export/add - ;;@ import.ts:11:4 (i32.const 1) - ;;@ import.ts:11:7 (i32.const 2) ) - ;;@ import.ts:11:12 (call $export/sub - ;;@ import.ts:11:16 (i32.const 2) - ;;@ import.ts:11:19 (i32.const 3) ) ) - ;;@ import.ts:11:24 (call $export/mul - ;;@ import.ts:11:28 (i32.const 3) - ;;@ import.ts:11:31 (i32.const 1) ) ) ) - ;;@ import.ts:13:11 (call $export/ns.two) ) ) diff --git a/tests/compiler/infer-type.wat b/tests/compiler/infer-type.untouched.wat similarity index 71% rename from tests/compiler/infer-type.wat rename to tests/compiler/infer-type.untouched.wat index 047c0a2e..d47fa51e 100644 --- a/tests/compiler/infer-type.wat +++ b/tests/compiler/infer-type.untouched.wat @@ -22,57 +22,41 @@ (local $3 i32) (local $4 i64) (local $5 f64) - ;;@ infer-type.ts:11:2 (set_local $0 - ;;@ infer-type.ts:11:11 (i32.const 10) ) - ;;@ infer-type.ts:12:2 (set_local $1 - ;;@ infer-type.ts:12:11 (i64.const 4294967296) ) - ;;@ infer-type.ts:13:2 (set_local $2 - ;;@ infer-type.ts:13:11 (f64.const 1.5) ) - ;;@ infer-type.ts:14:2 (set_local $3 - ;;@ infer-type.ts:14:11 (i32.const 10) ) - ;;@ infer-type.ts:15:2 (set_local $4 - ;;@ infer-type.ts:15:11 (i64.const 4294967296) ) - ;;@ infer-type.ts:16:2 (set_local $5 - ;;@ infer-type.ts:16:11 (f64.const 1.5) ) ) (func $infer-type/reti (; 1 ;) (type $i) (result i32) - ;;@ infer-type.ts:21:9 (return (i32.const 0) ) ) (func $infer-type/retI (; 2 ;) (type $I) (result i64) - ;;@ infer-type.ts:27:9 (return (i64.const 0) ) ) (func $infer-type/retf (; 3 ;) (type $f) (result f32) - ;;@ infer-type.ts:33:9 (return (f32.const 0) ) ) (func $infer-type/refF (; 4 ;) (type $F) (result f64) - ;;@ infer-type.ts:39:9 (return (f64.const 0) ) @@ -80,81 +64,61 @@ (func $start (; 5 ;) (type $v) (local $0 i32) (local $1 i32) - ;;@ infer-type.ts:2:0 (drop (i32.const 10) ) - ;;@ infer-type.ts:5:0 (drop (i64.const 4294967296) ) - ;;@ infer-type.ts:8:0 (drop (f64.const 1.5) ) - ;;@ infer-type.ts:18:0 (call $infer-type/locals) (set_global $infer-type/ri - ;;@ infer-type.ts:23:9 (call $infer-type/reti) ) - ;;@ infer-type.ts:24:0 (drop (get_global $infer-type/ri) ) (set_global $infer-type/rI - ;;@ infer-type.ts:29:9 (call $infer-type/retI) ) - ;;@ infer-type.ts:30:0 (drop (get_global $infer-type/rI) ) (set_global $infer-type/rf - ;;@ infer-type.ts:35:9 (call $infer-type/retf) ) - ;;@ infer-type.ts:36:0 (drop (get_global $infer-type/rf) ) (set_global $infer-type/rF - ;;@ infer-type.ts:41:9 (call $infer-type/refF) ) - ;;@ infer-type.ts:42:0 (drop (get_global $infer-type/rF) ) - ;;@ infer-type.ts:44:0 (block $break|0 (block (set_local $0 - ;;@ infer-type.ts:44:13 (i32.const 0) ) (set_local $1 - ;;@ infer-type.ts:44:20 (i32.const 10) ) ) (loop $continue|0 (if - ;;@ infer-type.ts:44:24 (i32.lt_s (get_local $0) - ;;@ infer-type.ts:44:28 (get_local $1) ) (block (block - ;;@ infer-type.ts:45:2 (nop) ) - ;;@ infer-type.ts:44:31 (set_local $0 (i32.add - ;;@ infer-type.ts:44:33 (get_local $0) (i32.const 1) ) diff --git a/tests/compiler/inlining.wat b/tests/compiler/inlining.untouched.wat similarity index 83% rename from tests/compiler/inlining.wat rename to tests/compiler/inlining.untouched.wat index 8cbd3eea..0e24a6e8 100644 --- a/tests/compiler/inlining.wat +++ b/tests/compiler/inlining.untouched.wat @@ -11,26 +11,19 @@ (export "memory" (memory $0)) (start $start) (func $inlining/test (; 1 ;) (type $i) (result i32) - ;;@ inlining.ts:4:2 (nop) - ;;@ inlining.ts:5:26 (return - ;;@ inlining.ts:5:9 (i32.add (i32.const 1) - ;;@ inlining.ts:5:26 (i32.const 2) ) ) ) (func $start (; 2 ;) (type $v) - ;;@ inlining.ts:8:0 (if (i32.eqz - ;;@ inlining.ts:8:7 (i32.eq (call $inlining/test) - ;;@ inlining.ts:8:17 (i32.const 3) ) ) diff --git a/tests/compiler/limits.wat b/tests/compiler/limits.untouched.wat similarity index 67% rename from tests/compiler/limits.wat rename to tests/compiler/limits.untouched.wat index 6483fc6f..8b81c59d 100644 --- a/tests/compiler/limits.wat +++ b/tests/compiler/limits.untouched.wat @@ -6,107 +6,81 @@ (export "memory" (memory $0)) (start $start) (func $start (; 0 ;) (type $v) - ;;@ limits.ts:1:0 (drop (i32.const -128) ) - ;;@ limits.ts:2:0 (drop (i32.const 127) ) - ;;@ limits.ts:3:0 (drop (i32.const -32768) ) - ;;@ limits.ts:4:0 (drop (i32.const 32767) ) - ;;@ limits.ts:5:0 (drop (i32.const -2147483648) ) - ;;@ limits.ts:6:0 (drop (i32.const 2147483647) ) - ;;@ limits.ts:7:0 (drop (i64.const -9223372036854775808) ) - ;;@ limits.ts:8:0 (drop (i64.const 9223372036854775807) ) - ;;@ limits.ts:9:0 (drop (i32.const -2147483648) ) - ;;@ limits.ts:10:0 (drop (i32.const 2147483647) ) - ;;@ limits.ts:11:0 (drop (i32.const 0) ) - ;;@ limits.ts:12:0 (drop (i32.const 255) ) - ;;@ limits.ts:13:0 (drop (i32.const 0) ) - ;;@ limits.ts:14:0 (drop (i32.const 65535) ) - ;;@ limits.ts:15:0 (drop (i32.const 0) ) - ;;@ limits.ts:16:0 (drop (i32.const -1) ) - ;;@ limits.ts:17:0 (drop (i64.const 0) ) - ;;@ limits.ts:18:0 (drop (i64.const -1) ) - ;;@ limits.ts:19:0 (drop (i32.const 0) ) - ;;@ limits.ts:20:0 (drop (i32.const -1) ) - ;;@ limits.ts:21:0 (drop (i32.const 0) ) - ;;@ limits.ts:22:0 (drop (i32.const 1) ) - ;;@ limits.ts:23:0 (drop (f32.const -16777215) ) - ;;@ limits.ts:24:0 (drop (f32.const 16777215) ) - ;;@ limits.ts:25:0 (drop (f64.const -9007199254740991) ) - ;;@ limits.ts:26:0 (drop (f64.const 9007199254740991) ) diff --git a/tests/compiler/literals.wat b/tests/compiler/literals.untouched.wat similarity index 59% rename from tests/compiler/literals.wat rename to tests/compiler/literals.untouched.wat index 223c7013..56a535d0 100644 --- a/tests/compiler/literals.wat +++ b/tests/compiler/literals.untouched.wat @@ -5,179 +5,135 @@ (export "memory" (memory $0)) (start $start) (func $start (; 0 ;) (type $v) - ;;@ literals.ts:1:0 (drop (i32.const 0) ) - ;;@ literals.ts:2:0 (drop (i32.const 1) ) - ;;@ literals.ts:3:0 (drop (i32.const 2) ) - ;;@ literals.ts:4:0 (drop (i32.const 3) ) - ;;@ literals.ts:5:0 (drop (i32.const 4) ) - ;;@ literals.ts:6:0 (drop (i32.const 5) ) - ;;@ literals.ts:7:0 (drop (i32.const 6) ) - ;;@ literals.ts:8:0 (drop (i32.const 7) ) - ;;@ literals.ts:9:0 (drop (i32.const 8) ) - ;;@ literals.ts:10:0 (drop (i32.const 9) ) - ;;@ literals.ts:11:0 (drop (i32.const 0) ) - ;;@ literals.ts:12:0 (drop (i32.const 1) ) - ;;@ literals.ts:13:0 (drop (i32.const 2) ) - ;;@ literals.ts:14:0 (drop (i32.const 3) ) - ;;@ literals.ts:15:0 (drop (i32.const 4) ) - ;;@ literals.ts:16:0 (drop (i32.const 5) ) - ;;@ literals.ts:17:0 (drop (i32.const 6) ) - ;;@ literals.ts:18:0 (drop (i32.const 7) ) - ;;@ literals.ts:19:0 (drop (i32.const 8) ) - ;;@ literals.ts:20:0 (drop (i32.const 9) ) - ;;@ literals.ts:21:0 (drop (i32.const 10) ) - ;;@ literals.ts:22:0 (drop (i32.const 11) ) - ;;@ literals.ts:23:0 (drop (i32.const 12) ) - ;;@ literals.ts:24:0 (drop (i32.const 13) ) - ;;@ literals.ts:25:0 (drop (i32.const 14) ) - ;;@ literals.ts:26:0 (drop (i32.const 15) ) - ;;@ literals.ts:27:0 (drop (i32.const 10) ) - ;;@ literals.ts:28:0 (drop (i32.const 11) ) - ;;@ literals.ts:29:0 (drop (i32.const 12) ) - ;;@ literals.ts:30:0 (drop (i32.const 13) ) - ;;@ literals.ts:31:0 (drop (i32.const 14) ) - ;;@ literals.ts:32:0 (drop (i32.const 15) ) - ;;@ literals.ts:33:0 (drop (i32.const 0) ) - ;;@ literals.ts:34:0 (drop (i32.const 1) ) - ;;@ literals.ts:35:0 (drop (i32.const 2) ) - ;;@ literals.ts:36:0 (drop (i32.const 3) ) - ;;@ literals.ts:37:0 (drop (i32.const 4) ) - ;;@ literals.ts:38:0 (drop (i32.const 5) ) - ;;@ literals.ts:39:0 (drop (i32.const 6) ) - ;;@ literals.ts:40:0 (drop (i32.const 7) ) - ;;@ literals.ts:41:0 (drop (i32.const 0) ) - ;;@ literals.ts:42:0 (drop (i32.const 1) ) - ;;@ literals.ts:43:0 (drop (i32.const 1) ) - ;;@ literals.ts:44:0 (drop (i32.const 0) ) diff --git a/tests/compiler/logical.wat b/tests/compiler/logical.untouched.wat similarity index 76% rename from tests/compiler/logical.wat rename to tests/compiler/logical.untouched.wat index 168f0fb7..17f5e5ea 100644 --- a/tests/compiler/logical.wat +++ b/tests/compiler/logical.untouched.wat @@ -14,31 +14,26 @@ (func $start (; 1 ;) (type $v) (local $0 i32) (local $1 f64) - ;;@ logical.ts:1:0 (drop (if (result i32) (i32.ne (i32.const 0) (i32.const 0) ) - ;;@ logical.ts:1:5 (unreachable) (i32.const 0) ) ) - ;;@ logical.ts:2:0 (drop (if (result f64) (f64.ne (f64.const 0) (f64.const 0) ) - ;;@ logical.ts:2:7 (unreachable) (f64.const 0) ) ) - ;;@ logical.ts:3:0 (drop (if (result i32) (i32.ne @@ -46,11 +41,9 @@ (i32.const 0) ) (i32.const 1) - ;;@ logical.ts:3:5 (unreachable) ) ) - ;;@ logical.ts:4:0 (drop (if (result f64) (f64.ne @@ -58,11 +51,9 @@ (f64.const 0) ) (f64.const 1) - ;;@ logical.ts:4:7 (unreachable) ) ) - ;;@ logical.ts:6:0 (drop (if (result i32) (i32.ne @@ -72,7 +63,6 @@ (i32.const 1) (i32.const 0) ) - ;;@ logical.ts:6:5 (i32.const 2) (i32.const 1) ) @@ -80,11 +70,9 @@ (i32.const 0) ) (get_local $0) - ;;@ logical.ts:6:10 (unreachable) ) ) - ;;@ logical.ts:7:0 (drop (if (result f64) (f64.ne @@ -94,7 +82,6 @@ (f64.const 1) (f64.const 0) ) - ;;@ logical.ts:7:7 (f64.const 2) (f64.const 1) ) @@ -102,30 +89,23 @@ (f64.const 0) ) (get_local $1) - ;;@ logical.ts:7:14 (unreachable) ) ) - ;;@ logical.ts:11:0 (set_global $logical/i - ;;@ logical.ts:11:4 (if (result i32) (i32.ne (i32.const 1) (i32.const 0) ) - ;;@ logical.ts:11:9 (i32.const 2) (i32.const 1) ) ) - ;;@ logical.ts:12:0 (if (i32.eqz - ;;@ logical.ts:12:7 (i32.eq (get_global $logical/i) - ;;@ logical.ts:12:12 (i32.const 2) ) ) @@ -139,26 +119,20 @@ (unreachable) ) ) - ;;@ logical.ts:14:0 (set_global $logical/i - ;;@ logical.ts:14:4 (if (result i32) (i32.ne (i32.const 0) (i32.const 0) ) (i32.const 0) - ;;@ logical.ts:14:9 (i32.const 1) ) ) - ;;@ logical.ts:15:0 (if (i32.eqz - ;;@ logical.ts:15:7 (i32.eq (get_global $logical/i) - ;;@ logical.ts:15:12 (i32.const 1) ) ) @@ -172,26 +146,20 @@ (unreachable) ) ) - ;;@ logical.ts:19:0 (set_global $logical/I - ;;@ logical.ts:19:4 (if (result i64) (i64.ne (i64.const 1) (i64.const 0) ) - ;;@ logical.ts:19:9 (i64.const 2) (i64.const 1) ) ) - ;;@ logical.ts:20:0 (if (i32.eqz - ;;@ logical.ts:20:7 (i64.eq (get_global $logical/I) - ;;@ logical.ts:20:12 (i64.const 2) ) ) @@ -205,26 +173,20 @@ (unreachable) ) ) - ;;@ logical.ts:22:0 (set_global $logical/I - ;;@ logical.ts:22:4 (if (result i64) (i64.ne (i64.const 0) (i64.const 0) ) (i64.const 0) - ;;@ logical.ts:22:9 (i64.const 1) ) ) - ;;@ logical.ts:23:0 (if (i32.eqz - ;;@ logical.ts:23:7 (i64.eq (get_global $logical/I) - ;;@ logical.ts:23:12 (i64.const 1) ) ) @@ -238,26 +200,20 @@ (unreachable) ) ) - ;;@ logical.ts:27:0 (set_global $logical/f - ;;@ logical.ts:27:4 (if (result f32) (f32.ne (f32.const 1) (f32.const 0) ) - ;;@ logical.ts:27:11 (f32.const 2) (f32.const 1) ) ) - ;;@ logical.ts:28:0 (if (i32.eqz - ;;@ logical.ts:28:7 (f32.eq (get_global $logical/f) - ;;@ logical.ts:28:12 (f32.const 2) ) ) @@ -271,26 +227,20 @@ (unreachable) ) ) - ;;@ logical.ts:30:0 (set_global $logical/f - ;;@ logical.ts:30:4 (if (result f32) (f32.ne (f32.const 0) (f32.const 0) ) (f32.const 0) - ;;@ logical.ts:30:11 (f32.const 1) ) ) - ;;@ logical.ts:31:0 (if (i32.eqz - ;;@ logical.ts:31:7 (f32.eq (get_global $logical/f) - ;;@ logical.ts:31:12 (f32.const 1) ) ) @@ -304,26 +254,20 @@ (unreachable) ) ) - ;;@ logical.ts:35:0 (set_global $logical/F - ;;@ logical.ts:35:4 (if (result f64) (f64.ne (f64.const 1) (f64.const 0) ) - ;;@ logical.ts:35:11 (f64.const 2) (f64.const 1) ) ) - ;;@ logical.ts:36:0 (if (i32.eqz - ;;@ logical.ts:36:7 (f64.eq (get_global $logical/F) - ;;@ logical.ts:36:12 (f64.const 2) ) ) @@ -337,26 +281,20 @@ (unreachable) ) ) - ;;@ logical.ts:38:0 (set_global $logical/F - ;;@ logical.ts:38:4 (if (result f64) (f64.ne (f64.const 0) (f64.const 0) ) (f64.const 0) - ;;@ logical.ts:38:11 (f64.const 1) ) ) - ;;@ logical.ts:39:0 (if (i32.eqz - ;;@ logical.ts:39:7 (f64.eq (get_global $logical/F) - ;;@ logical.ts:39:12 (f64.const 1) ) ) diff --git a/tests/compiler/memcpy.wat b/tests/compiler/memcpy.untouched.wat similarity index 70% rename from tests/compiler/memcpy.wat rename to tests/compiler/memcpy.untouched.wat index 5cbfe093..8936fdd6 100644 --- a/tests/compiler/memcpy.wat +++ b/tests/compiler/memcpy.untouched.wat @@ -16,36 +16,27 @@ (local $4 i32) (local $5 i32) (local $6 i32) - ;;@ memcpy.ts:2:2 (set_local $3 - ;;@ memcpy.ts:2:12 (get_local $0) ) - ;;@ memcpy.ts:3:2 (nop) - ;;@ memcpy.ts:6:2 (block $break|0 (loop $continue|0 (if - ;;@ memcpy.ts:6:9 (if (result i32) (i32.ne (get_local $2) (i32.const 0) ) - ;;@ memcpy.ts:6:14 (i32.rem_u (get_local $1) - ;;@ memcpy.ts:6:20 (i32.const 4) ) (get_local $2) ) (block (block - ;;@ memcpy.ts:7:4 (i32.store8 - ;;@ memcpy.ts:7:14 (block (result i32) (set_local $6 (get_local $0) @@ -58,9 +49,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:7:22 (i32.load8_u - ;;@ memcpy.ts:7:31 (block (result i32) (set_local $6 (get_local $1) @@ -75,7 +64,6 @@ ) ) ) - ;;@ memcpy.ts:8:4 (set_local $2 (i32.sub (get_local $2) @@ -88,116 +76,81 @@ ) ) ) - ;;@ memcpy.ts:12:2 (if - ;;@ memcpy.ts:12:6 (i32.eq (i32.rem_u (get_local $0) - ;;@ memcpy.ts:12:13 (i32.const 4) ) - ;;@ memcpy.ts:12:18 (i32.const 0) ) - ;;@ memcpy.ts:12:21 (block (block $break|1 (loop $continue|1 (if - ;;@ memcpy.ts:13:11 (i32.ge_u (get_local $2) - ;;@ memcpy.ts:13:16 (i32.const 16) ) (block (block - ;;@ memcpy.ts:14:6 (i32.store - ;;@ memcpy.ts:14:17 (get_local $0) - ;;@ memcpy.ts:14:28 (i32.load - ;;@ memcpy.ts:14:38 (get_local $1) ) ) - ;;@ memcpy.ts:15:6 (i32.store - ;;@ memcpy.ts:15:17 (i32.add (get_local $0) - ;;@ memcpy.ts:15:25 (i32.const 4) ) - ;;@ memcpy.ts:15:28 (i32.load - ;;@ memcpy.ts:15:38 (i32.add (get_local $1) - ;;@ memcpy.ts:15:45 (i32.const 4) ) ) ) - ;;@ memcpy.ts:16:6 (i32.store - ;;@ memcpy.ts:16:17 (i32.add (get_local $0) - ;;@ memcpy.ts:16:25 (i32.const 8) ) - ;;@ memcpy.ts:16:28 (i32.load - ;;@ memcpy.ts:16:38 (i32.add (get_local $1) - ;;@ memcpy.ts:16:45 (i32.const 8) ) ) ) - ;;@ memcpy.ts:17:6 (i32.store - ;;@ memcpy.ts:17:17 (i32.add (get_local $0) - ;;@ memcpy.ts:17:24 (i32.const 12) ) - ;;@ memcpy.ts:17:28 (i32.load - ;;@ memcpy.ts:17:38 (i32.add (get_local $1) - ;;@ memcpy.ts:17:44 (i32.const 12) ) ) ) - ;;@ memcpy.ts:18:6 (set_local $1 (i32.add (get_local $1) - ;;@ memcpy.ts:18:13 (i32.const 16) ) ) - ;;@ memcpy.ts:18:17 (set_local $0 (i32.add (get_local $0) - ;;@ memcpy.ts:18:25 (i32.const 16) ) ) - ;;@ memcpy.ts:18:29 (set_local $2 (i32.sub (get_local $2) - ;;@ memcpy.ts:18:34 (i32.const 16) ) ) @@ -207,149 +160,102 @@ ) ) ) - ;;@ memcpy.ts:20:4 (if - ;;@ memcpy.ts:20:8 (i32.and (get_local $2) - ;;@ memcpy.ts:20:12 (i32.const 8) ) - ;;@ memcpy.ts:20:15 (block - ;;@ memcpy.ts:21:6 (i32.store - ;;@ memcpy.ts:21:17 (get_local $0) - ;;@ memcpy.ts:21:27 (i32.load - ;;@ memcpy.ts:21:37 (get_local $1) ) ) - ;;@ memcpy.ts:22:6 (i32.store - ;;@ memcpy.ts:22:17 (i32.add (get_local $0) - ;;@ memcpy.ts:22:24 (i32.const 4) ) - ;;@ memcpy.ts:22:27 (i32.load - ;;@ memcpy.ts:22:37 (i32.add (get_local $1) - ;;@ memcpy.ts:22:43 (i32.const 4) ) ) ) - ;;@ memcpy.ts:23:6 (set_local $0 (i32.add (get_local $0) - ;;@ memcpy.ts:23:14 (i32.const 8) ) ) - ;;@ memcpy.ts:23:17 (set_local $1 (i32.add (get_local $1) - ;;@ memcpy.ts:23:24 (i32.const 8) ) ) ) ) - ;;@ memcpy.ts:25:4 (if - ;;@ memcpy.ts:25:8 (i32.and (get_local $2) - ;;@ memcpy.ts:25:12 (i32.const 4) ) - ;;@ memcpy.ts:25:15 (block - ;;@ memcpy.ts:26:6 (i32.store - ;;@ memcpy.ts:26:17 (get_local $0) - ;;@ memcpy.ts:26:23 (i32.load - ;;@ memcpy.ts:26:33 (get_local $1) ) ) - ;;@ memcpy.ts:27:6 (set_local $0 (i32.add (get_local $0) - ;;@ memcpy.ts:27:14 (i32.const 4) ) ) - ;;@ memcpy.ts:27:17 (set_local $1 (i32.add (get_local $1) - ;;@ memcpy.ts:27:24 (i32.const 4) ) ) ) ) - ;;@ memcpy.ts:29:4 (if - ;;@ memcpy.ts:29:8 (i32.and (get_local $2) - ;;@ memcpy.ts:29:12 (i32.const 2) ) - ;;@ memcpy.ts:29:15 (block - ;;@ memcpy.ts:30:6 (i32.store16 - ;;@ memcpy.ts:30:17 (get_local $0) - ;;@ memcpy.ts:30:23 (i32.load16_u - ;;@ memcpy.ts:30:33 (get_local $1) ) ) - ;;@ memcpy.ts:31:6 (set_local $0 (i32.add (get_local $0) - ;;@ memcpy.ts:31:14 (i32.const 2) ) ) - ;;@ memcpy.ts:31:17 (set_local $1 (i32.add (get_local $1) - ;;@ memcpy.ts:31:24 (i32.const 2) ) ) ) ) - ;;@ memcpy.ts:33:4 (if - ;;@ memcpy.ts:33:8 (i32.and (get_local $2) - ;;@ memcpy.ts:33:12 (i32.const 1) ) - ;;@ memcpy.ts:34:6 (i32.store8 - ;;@ memcpy.ts:34:16 (block (result i32) (set_local $6 (get_local $0) @@ -362,9 +268,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:34:24 (i32.load8_u - ;;@ memcpy.ts:34:33 (block (result i32) (set_local $6 (get_local $1) @@ -380,67 +284,52 @@ ) ) ) - ;;@ memcpy.ts:36:11 (return (get_local $3) ) ) ) - ;;@ memcpy.ts:41:2 (if - ;;@ memcpy.ts:41:6 (i32.ge_u (get_local $2) - ;;@ memcpy.ts:41:11 (i32.const 32) ) - ;;@ memcpy.ts:42:4 (block $break|2 (block $case2|2 (block $case1|2 (block $case0|2 (set_local $6 - ;;@ memcpy.ts:42:12 (i32.rem_u (get_local $0) - ;;@ memcpy.ts:42:19 (i32.const 4) ) ) (br_if $case0|2 (i32.eq (get_local $6) - ;;@ memcpy.ts:44:11 (i32.const 1) ) ) (br_if $case1|2 (i32.eq (get_local $6) - ;;@ memcpy.ts:62:11 (i32.const 2) ) ) (br_if $case2|2 (i32.eq (get_local $6) - ;;@ memcpy.ts:79:11 (i32.const 3) ) ) (br $break|2) ) - ;;@ memcpy.ts:45:8 (set_local $4 - ;;@ memcpy.ts:45:12 (i32.load - ;;@ memcpy.ts:45:22 (get_local $1) ) ) - ;;@ memcpy.ts:46:8 (i32.store8 - ;;@ memcpy.ts:46:18 (block (result i32) (set_local $6 (get_local $0) @@ -453,9 +342,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:46:26 (i32.load8_u - ;;@ memcpy.ts:46:35 (block (result i32) (set_local $6 (get_local $1) @@ -470,9 +357,7 @@ ) ) ) - ;;@ memcpy.ts:47:8 (i32.store8 - ;;@ memcpy.ts:47:18 (block (result i32) (set_local $6 (get_local $0) @@ -485,9 +370,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:47:26 (i32.load8_u - ;;@ memcpy.ts:47:35 (block (result i32) (set_local $6 (get_local $1) @@ -502,9 +385,7 @@ ) ) ) - ;;@ memcpy.ts:48:8 (i32.store8 - ;;@ memcpy.ts:48:18 (block (result i32) (set_local $6 (get_local $0) @@ -517,9 +398,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:48:26 (i32.load8_u - ;;@ memcpy.ts:48:35 (block (result i32) (set_local $6 (get_local $1) @@ -534,183 +413,129 @@ ) ) ) - ;;@ memcpy.ts:49:8 (set_local $2 (i32.sub (get_local $2) - ;;@ memcpy.ts:49:13 (i32.const 3) ) ) - ;;@ memcpy.ts:50:8 (block $break|3 (loop $continue|3 (if - ;;@ memcpy.ts:50:15 (i32.ge_u (get_local $2) - ;;@ memcpy.ts:50:20 (i32.const 17) ) (block (block - ;;@ memcpy.ts:51:10 (set_local $5 - ;;@ memcpy.ts:51:14 (i32.load - ;;@ memcpy.ts:51:24 (i32.add (get_local $1) - ;;@ memcpy.ts:51:30 (i32.const 1) ) ) ) - ;;@ memcpy.ts:52:10 (i32.store - ;;@ memcpy.ts:52:21 (get_local $0) - ;;@ memcpy.ts:52:27 (i32.or (i32.shr_u (get_local $4) - ;;@ memcpy.ts:52:32 (i32.const 24) ) - ;;@ memcpy.ts:52:37 (i32.shl (get_local $5) - ;;@ memcpy.ts:52:42 (i32.const 8) ) ) ) - ;;@ memcpy.ts:53:10 (set_local $4 - ;;@ memcpy.ts:53:14 (i32.load - ;;@ memcpy.ts:53:24 (i32.add (get_local $1) - ;;@ memcpy.ts:53:30 (i32.const 5) ) ) ) - ;;@ memcpy.ts:54:10 (i32.store - ;;@ memcpy.ts:54:21 (i32.add (get_local $0) - ;;@ memcpy.ts:54:28 (i32.const 4) ) - ;;@ memcpy.ts:54:31 (i32.or (i32.shr_u (get_local $5) - ;;@ memcpy.ts:54:36 (i32.const 24) ) - ;;@ memcpy.ts:54:41 (i32.shl (get_local $4) - ;;@ memcpy.ts:54:46 (i32.const 8) ) ) ) - ;;@ memcpy.ts:55:10 (set_local $5 - ;;@ memcpy.ts:55:14 (i32.load - ;;@ memcpy.ts:55:24 (i32.add (get_local $1) - ;;@ memcpy.ts:55:30 (i32.const 9) ) ) ) - ;;@ memcpy.ts:56:10 (i32.store - ;;@ memcpy.ts:56:21 (i32.add (get_local $0) - ;;@ memcpy.ts:56:28 (i32.const 8) ) - ;;@ memcpy.ts:56:31 (i32.or (i32.shr_u (get_local $4) - ;;@ memcpy.ts:56:36 (i32.const 24) ) - ;;@ memcpy.ts:56:41 (i32.shl (get_local $5) - ;;@ memcpy.ts:56:46 (i32.const 8) ) ) ) - ;;@ memcpy.ts:57:10 (set_local $4 - ;;@ memcpy.ts:57:14 (i32.load - ;;@ memcpy.ts:57:24 (i32.add (get_local $1) - ;;@ memcpy.ts:57:30 (i32.const 13) ) ) ) - ;;@ memcpy.ts:58:10 (i32.store - ;;@ memcpy.ts:58:21 (i32.add (get_local $0) - ;;@ memcpy.ts:58:28 (i32.const 12) ) - ;;@ memcpy.ts:58:32 (i32.or (i32.shr_u (get_local $5) - ;;@ memcpy.ts:58:37 (i32.const 24) ) - ;;@ memcpy.ts:58:42 (i32.shl (get_local $4) - ;;@ memcpy.ts:58:47 (i32.const 8) ) ) ) - ;;@ memcpy.ts:59:10 (set_local $1 (i32.add (get_local $1) - ;;@ memcpy.ts:59:17 (i32.const 16) ) ) - ;;@ memcpy.ts:59:21 (set_local $0 (i32.add (get_local $0) - ;;@ memcpy.ts:59:29 (i32.const 16) ) ) - ;;@ memcpy.ts:59:33 (set_local $2 (i32.sub (get_local $2) - ;;@ memcpy.ts:59:38 (i32.const 16) ) ) @@ -720,20 +545,14 @@ ) ) ) - ;;@ memcpy.ts:61:8 (br $break|2) ) - ;;@ memcpy.ts:63:8 (set_local $4 - ;;@ memcpy.ts:63:12 (i32.load - ;;@ memcpy.ts:63:22 (get_local $1) ) ) - ;;@ memcpy.ts:64:8 (i32.store8 - ;;@ memcpy.ts:64:18 (block (result i32) (set_local $6 (get_local $0) @@ -746,9 +565,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:64:26 (i32.load8_u - ;;@ memcpy.ts:64:35 (block (result i32) (set_local $6 (get_local $1) @@ -763,9 +580,7 @@ ) ) ) - ;;@ memcpy.ts:65:8 (i32.store8 - ;;@ memcpy.ts:65:18 (block (result i32) (set_local $6 (get_local $0) @@ -778,9 +593,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:65:26 (i32.load8_u - ;;@ memcpy.ts:65:35 (block (result i32) (set_local $6 (get_local $1) @@ -795,183 +608,129 @@ ) ) ) - ;;@ memcpy.ts:66:8 (set_local $2 (i32.sub (get_local $2) - ;;@ memcpy.ts:66:13 (i32.const 2) ) ) - ;;@ memcpy.ts:67:8 (block $break|4 (loop $continue|4 (if - ;;@ memcpy.ts:67:15 (i32.ge_u (get_local $2) - ;;@ memcpy.ts:67:20 (i32.const 18) ) (block (block - ;;@ memcpy.ts:68:10 (set_local $5 - ;;@ memcpy.ts:68:14 (i32.load - ;;@ memcpy.ts:68:24 (i32.add (get_local $1) - ;;@ memcpy.ts:68:30 (i32.const 2) ) ) ) - ;;@ memcpy.ts:69:10 (i32.store - ;;@ memcpy.ts:69:21 (get_local $0) - ;;@ memcpy.ts:69:27 (i32.or (i32.shr_u (get_local $4) - ;;@ memcpy.ts:69:32 (i32.const 16) ) - ;;@ memcpy.ts:69:37 (i32.shl (get_local $5) - ;;@ memcpy.ts:69:42 (i32.const 16) ) ) ) - ;;@ memcpy.ts:70:10 (set_local $4 - ;;@ memcpy.ts:70:14 (i32.load - ;;@ memcpy.ts:70:24 (i32.add (get_local $1) - ;;@ memcpy.ts:70:30 (i32.const 6) ) ) ) - ;;@ memcpy.ts:71:10 (i32.store - ;;@ memcpy.ts:71:21 (i32.add (get_local $0) - ;;@ memcpy.ts:71:28 (i32.const 4) ) - ;;@ memcpy.ts:71:31 (i32.or (i32.shr_u (get_local $5) - ;;@ memcpy.ts:71:36 (i32.const 16) ) - ;;@ memcpy.ts:71:41 (i32.shl (get_local $4) - ;;@ memcpy.ts:71:46 (i32.const 16) ) ) ) - ;;@ memcpy.ts:72:10 (set_local $5 - ;;@ memcpy.ts:72:14 (i32.load - ;;@ memcpy.ts:72:24 (i32.add (get_local $1) - ;;@ memcpy.ts:72:30 (i32.const 10) ) ) ) - ;;@ memcpy.ts:73:10 (i32.store - ;;@ memcpy.ts:73:21 (i32.add (get_local $0) - ;;@ memcpy.ts:73:28 (i32.const 8) ) - ;;@ memcpy.ts:73:31 (i32.or (i32.shr_u (get_local $4) - ;;@ memcpy.ts:73:36 (i32.const 16) ) - ;;@ memcpy.ts:73:41 (i32.shl (get_local $5) - ;;@ memcpy.ts:73:46 (i32.const 16) ) ) ) - ;;@ memcpy.ts:74:10 (set_local $4 - ;;@ memcpy.ts:74:14 (i32.load - ;;@ memcpy.ts:74:24 (i32.add (get_local $1) - ;;@ memcpy.ts:74:30 (i32.const 14) ) ) ) - ;;@ memcpy.ts:75:10 (i32.store - ;;@ memcpy.ts:75:21 (i32.add (get_local $0) - ;;@ memcpy.ts:75:28 (i32.const 12) ) - ;;@ memcpy.ts:75:32 (i32.or (i32.shr_u (get_local $5) - ;;@ memcpy.ts:75:37 (i32.const 16) ) - ;;@ memcpy.ts:75:42 (i32.shl (get_local $4) - ;;@ memcpy.ts:75:47 (i32.const 16) ) ) ) - ;;@ memcpy.ts:76:10 (set_local $1 (i32.add (get_local $1) - ;;@ memcpy.ts:76:17 (i32.const 16) ) ) - ;;@ memcpy.ts:76:21 (set_local $0 (i32.add (get_local $0) - ;;@ memcpy.ts:76:29 (i32.const 16) ) ) - ;;@ memcpy.ts:76:33 (set_local $2 (i32.sub (get_local $2) - ;;@ memcpy.ts:76:38 (i32.const 16) ) ) @@ -981,20 +740,14 @@ ) ) ) - ;;@ memcpy.ts:78:8 (br $break|2) ) - ;;@ memcpy.ts:80:8 (set_local $4 - ;;@ memcpy.ts:80:12 (i32.load - ;;@ memcpy.ts:80:22 (get_local $1) ) ) - ;;@ memcpy.ts:81:8 (i32.store8 - ;;@ memcpy.ts:81:18 (block (result i32) (set_local $6 (get_local $0) @@ -1007,9 +760,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:81:26 (i32.load8_u - ;;@ memcpy.ts:81:35 (block (result i32) (set_local $6 (get_local $1) @@ -1024,183 +775,129 @@ ) ) ) - ;;@ memcpy.ts:82:8 (set_local $2 (i32.sub (get_local $2) - ;;@ memcpy.ts:82:13 (i32.const 1) ) ) - ;;@ memcpy.ts:83:8 (block $break|5 (loop $continue|5 (if - ;;@ memcpy.ts:83:15 (i32.ge_u (get_local $2) - ;;@ memcpy.ts:83:20 (i32.const 19) ) (block (block - ;;@ memcpy.ts:84:10 (set_local $5 - ;;@ memcpy.ts:84:14 (i32.load - ;;@ memcpy.ts:84:24 (i32.add (get_local $1) - ;;@ memcpy.ts:84:30 (i32.const 3) ) ) ) - ;;@ memcpy.ts:85:10 (i32.store - ;;@ memcpy.ts:85:21 (get_local $0) - ;;@ memcpy.ts:85:27 (i32.or (i32.shr_u (get_local $4) - ;;@ memcpy.ts:85:32 (i32.const 8) ) - ;;@ memcpy.ts:85:36 (i32.shl (get_local $5) - ;;@ memcpy.ts:85:41 (i32.const 24) ) ) ) - ;;@ memcpy.ts:86:10 (set_local $4 - ;;@ memcpy.ts:86:14 (i32.load - ;;@ memcpy.ts:86:24 (i32.add (get_local $1) - ;;@ memcpy.ts:86:30 (i32.const 7) ) ) ) - ;;@ memcpy.ts:87:10 (i32.store - ;;@ memcpy.ts:87:21 (i32.add (get_local $0) - ;;@ memcpy.ts:87:28 (i32.const 4) ) - ;;@ memcpy.ts:87:31 (i32.or (i32.shr_u (get_local $5) - ;;@ memcpy.ts:87:36 (i32.const 8) ) - ;;@ memcpy.ts:87:40 (i32.shl (get_local $4) - ;;@ memcpy.ts:87:45 (i32.const 24) ) ) ) - ;;@ memcpy.ts:88:10 (set_local $5 - ;;@ memcpy.ts:88:14 (i32.load - ;;@ memcpy.ts:88:24 (i32.add (get_local $1) - ;;@ memcpy.ts:88:30 (i32.const 11) ) ) ) - ;;@ memcpy.ts:89:10 (i32.store - ;;@ memcpy.ts:89:21 (i32.add (get_local $0) - ;;@ memcpy.ts:89:28 (i32.const 8) ) - ;;@ memcpy.ts:89:31 (i32.or (i32.shr_u (get_local $4) - ;;@ memcpy.ts:89:36 (i32.const 8) ) - ;;@ memcpy.ts:89:40 (i32.shl (get_local $5) - ;;@ memcpy.ts:89:45 (i32.const 24) ) ) ) - ;;@ memcpy.ts:90:10 (set_local $4 - ;;@ memcpy.ts:90:14 (i32.load - ;;@ memcpy.ts:90:24 (i32.add (get_local $1) - ;;@ memcpy.ts:90:30 (i32.const 15) ) ) ) - ;;@ memcpy.ts:91:10 (i32.store - ;;@ memcpy.ts:91:21 (i32.add (get_local $0) - ;;@ memcpy.ts:91:28 (i32.const 12) ) - ;;@ memcpy.ts:91:32 (i32.or (i32.shr_u (get_local $5) - ;;@ memcpy.ts:91:37 (i32.const 8) ) - ;;@ memcpy.ts:91:41 (i32.shl (get_local $4) - ;;@ memcpy.ts:91:46 (i32.const 24) ) ) ) - ;;@ memcpy.ts:92:10 (set_local $1 (i32.add (get_local $1) - ;;@ memcpy.ts:92:17 (i32.const 16) ) ) - ;;@ memcpy.ts:92:21 (set_local $0 (i32.add (get_local $0) - ;;@ memcpy.ts:92:29 (i32.const 16) ) ) - ;;@ memcpy.ts:92:33 (set_local $2 (i32.sub (get_local $2) - ;;@ memcpy.ts:92:38 (i32.const 16) ) ) @@ -1210,23 +907,16 @@ ) ) ) - ;;@ memcpy.ts:94:8 (br $break|2) ) ) - ;;@ memcpy.ts:99:2 (if - ;;@ memcpy.ts:99:6 (i32.and (get_local $2) - ;;@ memcpy.ts:99:10 (i32.const 16) ) - ;;@ memcpy.ts:99:14 (block - ;;@ memcpy.ts:100:4 (i32.store8 - ;;@ memcpy.ts:100:14 (block (result i32) (set_local $6 (get_local $0) @@ -1239,9 +929,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:100:22 (i32.load8_u - ;;@ memcpy.ts:100:31 (block (result i32) (set_local $6 (get_local $1) @@ -1256,9 +944,7 @@ ) ) ) - ;;@ memcpy.ts:101:4 (i32.store8 - ;;@ memcpy.ts:101:14 (block (result i32) (set_local $6 (get_local $0) @@ -1271,9 +957,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:101:22 (i32.load8_u - ;;@ memcpy.ts:101:31 (block (result i32) (set_local $6 (get_local $1) @@ -1288,9 +972,7 @@ ) ) ) - ;;@ memcpy.ts:102:4 (i32.store8 - ;;@ memcpy.ts:102:14 (block (result i32) (set_local $6 (get_local $0) @@ -1303,9 +985,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:102:22 (i32.load8_u - ;;@ memcpy.ts:102:31 (block (result i32) (set_local $6 (get_local $1) @@ -1320,9 +1000,7 @@ ) ) ) - ;;@ memcpy.ts:103:4 (i32.store8 - ;;@ memcpy.ts:103:14 (block (result i32) (set_local $6 (get_local $0) @@ -1335,9 +1013,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:103:22 (i32.load8_u - ;;@ memcpy.ts:103:31 (block (result i32) (set_local $6 (get_local $1) @@ -1352,9 +1028,7 @@ ) ) ) - ;;@ memcpy.ts:104:4 (i32.store8 - ;;@ memcpy.ts:104:14 (block (result i32) (set_local $6 (get_local $0) @@ -1367,9 +1041,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:104:22 (i32.load8_u - ;;@ memcpy.ts:104:31 (block (result i32) (set_local $6 (get_local $1) @@ -1384,9 +1056,7 @@ ) ) ) - ;;@ memcpy.ts:105:4 (i32.store8 - ;;@ memcpy.ts:105:14 (block (result i32) (set_local $6 (get_local $0) @@ -1399,9 +1069,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:105:22 (i32.load8_u - ;;@ memcpy.ts:105:31 (block (result i32) (set_local $6 (get_local $1) @@ -1416,9 +1084,7 @@ ) ) ) - ;;@ memcpy.ts:106:4 (i32.store8 - ;;@ memcpy.ts:106:14 (block (result i32) (set_local $6 (get_local $0) @@ -1431,9 +1097,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:106:22 (i32.load8_u - ;;@ memcpy.ts:106:31 (block (result i32) (set_local $6 (get_local $1) @@ -1448,9 +1112,7 @@ ) ) ) - ;;@ memcpy.ts:107:4 (i32.store8 - ;;@ memcpy.ts:107:14 (block (result i32) (set_local $6 (get_local $0) @@ -1463,9 +1125,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:107:22 (i32.load8_u - ;;@ memcpy.ts:107:31 (block (result i32) (set_local $6 (get_local $1) @@ -1480,9 +1140,7 @@ ) ) ) - ;;@ memcpy.ts:108:4 (i32.store8 - ;;@ memcpy.ts:108:14 (block (result i32) (set_local $6 (get_local $0) @@ -1495,9 +1153,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:108:22 (i32.load8_u - ;;@ memcpy.ts:108:31 (block (result i32) (set_local $6 (get_local $1) @@ -1512,9 +1168,7 @@ ) ) ) - ;;@ memcpy.ts:109:4 (i32.store8 - ;;@ memcpy.ts:109:14 (block (result i32) (set_local $6 (get_local $0) @@ -1527,9 +1181,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:109:22 (i32.load8_u - ;;@ memcpy.ts:109:31 (block (result i32) (set_local $6 (get_local $1) @@ -1544,9 +1196,7 @@ ) ) ) - ;;@ memcpy.ts:110:4 (i32.store8 - ;;@ memcpy.ts:110:14 (block (result i32) (set_local $6 (get_local $0) @@ -1559,9 +1209,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:110:22 (i32.load8_u - ;;@ memcpy.ts:110:31 (block (result i32) (set_local $6 (get_local $1) @@ -1576,9 +1224,7 @@ ) ) ) - ;;@ memcpy.ts:111:4 (i32.store8 - ;;@ memcpy.ts:111:14 (block (result i32) (set_local $6 (get_local $0) @@ -1591,9 +1237,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:111:22 (i32.load8_u - ;;@ memcpy.ts:111:31 (block (result i32) (set_local $6 (get_local $1) @@ -1608,9 +1252,7 @@ ) ) ) - ;;@ memcpy.ts:112:4 (i32.store8 - ;;@ memcpy.ts:112:14 (block (result i32) (set_local $6 (get_local $0) @@ -1623,9 +1265,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:112:22 (i32.load8_u - ;;@ memcpy.ts:112:31 (block (result i32) (set_local $6 (get_local $1) @@ -1640,9 +1280,7 @@ ) ) ) - ;;@ memcpy.ts:113:4 (i32.store8 - ;;@ memcpy.ts:113:14 (block (result i32) (set_local $6 (get_local $0) @@ -1655,9 +1293,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:113:22 (i32.load8_u - ;;@ memcpy.ts:113:31 (block (result i32) (set_local $6 (get_local $1) @@ -1672,9 +1308,7 @@ ) ) ) - ;;@ memcpy.ts:114:4 (i32.store8 - ;;@ memcpy.ts:114:14 (block (result i32) (set_local $6 (get_local $0) @@ -1687,9 +1321,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:114:22 (i32.load8_u - ;;@ memcpy.ts:114:31 (block (result i32) (set_local $6 (get_local $1) @@ -1704,9 +1336,7 @@ ) ) ) - ;;@ memcpy.ts:115:4 (i32.store8 - ;;@ memcpy.ts:115:14 (block (result i32) (set_local $6 (get_local $0) @@ -1719,9 +1349,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:115:22 (i32.load8_u - ;;@ memcpy.ts:115:31 (block (result i32) (set_local $6 (get_local $1) @@ -1738,19 +1366,13 @@ ) ) ) - ;;@ memcpy.ts:117:2 (if - ;;@ memcpy.ts:117:6 (i32.and (get_local $2) - ;;@ memcpy.ts:117:10 (i32.const 8) ) - ;;@ memcpy.ts:117:13 (block - ;;@ memcpy.ts:118:4 (i32.store8 - ;;@ memcpy.ts:118:14 (block (result i32) (set_local $6 (get_local $0) @@ -1763,9 +1385,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:118:22 (i32.load8_u - ;;@ memcpy.ts:118:31 (block (result i32) (set_local $6 (get_local $1) @@ -1780,9 +1400,7 @@ ) ) ) - ;;@ memcpy.ts:119:4 (i32.store8 - ;;@ memcpy.ts:119:14 (block (result i32) (set_local $6 (get_local $0) @@ -1795,9 +1413,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:119:22 (i32.load8_u - ;;@ memcpy.ts:119:31 (block (result i32) (set_local $6 (get_local $1) @@ -1812,9 +1428,7 @@ ) ) ) - ;;@ memcpy.ts:120:4 (i32.store8 - ;;@ memcpy.ts:120:14 (block (result i32) (set_local $6 (get_local $0) @@ -1827,9 +1441,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:120:22 (i32.load8_u - ;;@ memcpy.ts:120:31 (block (result i32) (set_local $6 (get_local $1) @@ -1844,9 +1456,7 @@ ) ) ) - ;;@ memcpy.ts:121:4 (i32.store8 - ;;@ memcpy.ts:121:14 (block (result i32) (set_local $6 (get_local $0) @@ -1859,9 +1469,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:121:22 (i32.load8_u - ;;@ memcpy.ts:121:31 (block (result i32) (set_local $6 (get_local $1) @@ -1876,9 +1484,7 @@ ) ) ) - ;;@ memcpy.ts:122:4 (i32.store8 - ;;@ memcpy.ts:122:14 (block (result i32) (set_local $6 (get_local $0) @@ -1891,9 +1497,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:122:22 (i32.load8_u - ;;@ memcpy.ts:122:31 (block (result i32) (set_local $6 (get_local $1) @@ -1908,9 +1512,7 @@ ) ) ) - ;;@ memcpy.ts:123:4 (i32.store8 - ;;@ memcpy.ts:123:14 (block (result i32) (set_local $6 (get_local $0) @@ -1923,9 +1525,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:123:22 (i32.load8_u - ;;@ memcpy.ts:123:31 (block (result i32) (set_local $6 (get_local $1) @@ -1940,9 +1540,7 @@ ) ) ) - ;;@ memcpy.ts:124:4 (i32.store8 - ;;@ memcpy.ts:124:14 (block (result i32) (set_local $6 (get_local $0) @@ -1955,9 +1553,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:124:22 (i32.load8_u - ;;@ memcpy.ts:124:31 (block (result i32) (set_local $6 (get_local $1) @@ -1972,9 +1568,7 @@ ) ) ) - ;;@ memcpy.ts:125:4 (i32.store8 - ;;@ memcpy.ts:125:14 (block (result i32) (set_local $6 (get_local $0) @@ -1987,9 +1581,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:125:22 (i32.load8_u - ;;@ memcpy.ts:125:31 (block (result i32) (set_local $6 (get_local $1) @@ -2006,19 +1598,13 @@ ) ) ) - ;;@ memcpy.ts:127:2 (if - ;;@ memcpy.ts:127:6 (i32.and (get_local $2) - ;;@ memcpy.ts:127:10 (i32.const 4) ) - ;;@ memcpy.ts:127:13 (block - ;;@ memcpy.ts:128:4 (i32.store8 - ;;@ memcpy.ts:128:14 (block (result i32) (set_local $6 (get_local $0) @@ -2031,9 +1617,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:128:22 (i32.load8_u - ;;@ memcpy.ts:128:31 (block (result i32) (set_local $6 (get_local $1) @@ -2048,9 +1632,7 @@ ) ) ) - ;;@ memcpy.ts:129:4 (i32.store8 - ;;@ memcpy.ts:129:14 (block (result i32) (set_local $6 (get_local $0) @@ -2063,9 +1645,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:129:22 (i32.load8_u - ;;@ memcpy.ts:129:31 (block (result i32) (set_local $6 (get_local $1) @@ -2080,9 +1660,7 @@ ) ) ) - ;;@ memcpy.ts:130:4 (i32.store8 - ;;@ memcpy.ts:130:14 (block (result i32) (set_local $6 (get_local $0) @@ -2095,9 +1673,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:130:22 (i32.load8_u - ;;@ memcpy.ts:130:31 (block (result i32) (set_local $6 (get_local $1) @@ -2112,9 +1688,7 @@ ) ) ) - ;;@ memcpy.ts:131:4 (i32.store8 - ;;@ memcpy.ts:131:14 (block (result i32) (set_local $6 (get_local $0) @@ -2127,9 +1701,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:131:22 (i32.load8_u - ;;@ memcpy.ts:131:31 (block (result i32) (set_local $6 (get_local $1) @@ -2146,19 +1718,13 @@ ) ) ) - ;;@ memcpy.ts:133:2 (if - ;;@ memcpy.ts:133:6 (i32.and (get_local $2) - ;;@ memcpy.ts:133:10 (i32.const 2) ) - ;;@ memcpy.ts:133:13 (block - ;;@ memcpy.ts:134:4 (i32.store8 - ;;@ memcpy.ts:134:14 (block (result i32) (set_local $6 (get_local $0) @@ -2171,9 +1737,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:134:22 (i32.load8_u - ;;@ memcpy.ts:134:31 (block (result i32) (set_local $6 (get_local $1) @@ -2188,9 +1752,7 @@ ) ) ) - ;;@ memcpy.ts:135:4 (i32.store8 - ;;@ memcpy.ts:135:14 (block (result i32) (set_local $6 (get_local $0) @@ -2203,9 +1765,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:135:22 (i32.load8_u - ;;@ memcpy.ts:135:31 (block (result i32) (set_local $6 (get_local $1) @@ -2222,17 +1782,12 @@ ) ) ) - ;;@ memcpy.ts:137:2 (if - ;;@ memcpy.ts:137:6 (i32.and (get_local $2) - ;;@ memcpy.ts:137:10 (i32.const 1) ) - ;;@ memcpy.ts:138:4 (i32.store8 - ;;@ memcpy.ts:138:14 (block (result i32) (set_local $6 (get_local $0) @@ -2245,9 +1800,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:138:22 (i32.load8_u - ;;@ memcpy.ts:138:31 (block (result i32) (set_local $6 (get_local $1) @@ -2263,82 +1816,55 @@ ) ) ) - ;;@ memcpy.ts:140:9 (return (get_local $3) ) ) (func $start (; 2 ;) (type $v) - ;;@ memcpy.ts:144:0 (i64.store - ;;@ memcpy.ts:144:11 (i32.const 8) - ;;@ memcpy.ts:144:22 (i64.const 1229782938247303441) ) - ;;@ memcpy.ts:145:0 (i64.store - ;;@ memcpy.ts:145:11 (i32.add (i32.const 8) - ;;@ memcpy.ts:145:18 (i32.const 8) ) - ;;@ memcpy.ts:145:22 (i64.const 2459565876494606882) ) - ;;@ memcpy.ts:146:0 (i64.store - ;;@ memcpy.ts:146:11 (i32.add (i32.const 8) - ;;@ memcpy.ts:146:18 (i32.const 16) ) - ;;@ memcpy.ts:146:22 (i64.const 3689348814741910323) ) - ;;@ memcpy.ts:147:0 (i64.store - ;;@ memcpy.ts:147:11 (i32.add (i32.const 8) - ;;@ memcpy.ts:147:18 (i32.const 24) ) - ;;@ memcpy.ts:147:22 (i64.const 4919131752989213764) ) - ;;@ memcpy.ts:150:0 (set_global $memcpy/dest - ;;@ memcpy.ts:150:7 (call $memcpy/memcpy - ;;@ memcpy.ts:150:14 (i32.add (i32.const 8) - ;;@ memcpy.ts:150:21 (i32.const 1) ) - ;;@ memcpy.ts:150:24 (i32.add (i32.const 8) - ;;@ memcpy.ts:150:31 (i32.const 16) ) - ;;@ memcpy.ts:150:35 (i32.const 4) ) ) - ;;@ memcpy.ts:151:0 (if (i32.eqz - ;;@ memcpy.ts:151:7 (i32.eq (get_global $memcpy/dest) - ;;@ memcpy.ts:151:15 (i32.add (i32.const 8) - ;;@ memcpy.ts:151:22 (i32.const 1) ) ) @@ -2353,16 +1879,12 @@ (unreachable) ) ) - ;;@ memcpy.ts:152:0 (if (i32.eqz - ;;@ memcpy.ts:152:7 (i64.eq (i64.load - ;;@ memcpy.ts:152:17 (i32.const 8) ) - ;;@ memcpy.ts:152:26 (i64.const 1229783084848853777) ) ) @@ -2376,25 +1898,17 @@ (unreachable) ) ) - ;;@ memcpy.ts:154:0 (set_global $memcpy/dest - ;;@ memcpy.ts:154:7 (call $memcpy/memcpy - ;;@ memcpy.ts:154:14 (i32.const 8) - ;;@ memcpy.ts:154:20 (i32.const 8) - ;;@ memcpy.ts:154:26 (i32.const 32) ) ) - ;;@ memcpy.ts:155:0 (if (i32.eqz - ;;@ memcpy.ts:155:7 (i32.eq (get_global $memcpy/dest) - ;;@ memcpy.ts:155:15 (i32.const 8) ) ) @@ -2408,16 +1922,12 @@ (unreachable) ) ) - ;;@ memcpy.ts:156:0 (if (i32.eqz - ;;@ memcpy.ts:156:7 (i64.eq (i64.load - ;;@ memcpy.ts:156:17 (i32.const 8) ) - ;;@ memcpy.ts:156:26 (i64.const 1229783084848853777) ) ) @@ -2431,20 +1941,15 @@ (unreachable) ) ) - ;;@ memcpy.ts:157:0 (if (i32.eqz - ;;@ memcpy.ts:157:7 (i64.eq (i64.load - ;;@ memcpy.ts:157:17 (i32.add (i32.const 8) - ;;@ memcpy.ts:157:24 (i32.const 8) ) ) - ;;@ memcpy.ts:157:30 (i64.const 2459565876494606882) ) ) @@ -2458,20 +1963,15 @@ (unreachable) ) ) - ;;@ memcpy.ts:158:0 (if (i32.eqz - ;;@ memcpy.ts:158:7 (i64.eq (i64.load - ;;@ memcpy.ts:158:17 (i32.add (i32.const 8) - ;;@ memcpy.ts:158:24 (i32.const 16) ) ) - ;;@ memcpy.ts:158:31 (i64.const 3689348814741910323) ) ) @@ -2485,20 +1985,15 @@ (unreachable) ) ) - ;;@ memcpy.ts:159:0 (if (i32.eqz - ;;@ memcpy.ts:159:7 (i64.eq (i64.load - ;;@ memcpy.ts:159:17 (i32.add (i32.const 8) - ;;@ memcpy.ts:159:24 (i32.const 24) ) ) - ;;@ memcpy.ts:159:31 (i64.const 4919131752989213764) ) ) @@ -2512,36 +2007,25 @@ (unreachable) ) ) - ;;@ memcpy.ts:161:0 (set_global $memcpy/dest - ;;@ memcpy.ts:161:7 (call $memcpy/memcpy - ;;@ memcpy.ts:161:14 (i32.add (i32.const 8) - ;;@ memcpy.ts:161:21 (i32.const 5) ) - ;;@ memcpy.ts:161:24 (i32.add (i32.const 8) - ;;@ memcpy.ts:161:31 (i32.const 28) ) - ;;@ memcpy.ts:161:35 (i32.const 3) ) ) - ;;@ memcpy.ts:162:0 (if (i32.eqz - ;;@ memcpy.ts:162:7 (i64.eq (i64.load - ;;@ memcpy.ts:162:17 (i32.const 8) ) - ;;@ memcpy.ts:162:26 (i64.const 4919131679688438545) ) ) @@ -2555,36 +2039,25 @@ (unreachable) ) ) - ;;@ memcpy.ts:164:0 (set_global $memcpy/dest - ;;@ memcpy.ts:164:7 (call $memcpy/memcpy - ;;@ memcpy.ts:164:14 (i32.add (i32.const 8) - ;;@ memcpy.ts:164:21 (i32.const 8) ) - ;;@ memcpy.ts:164:24 (i32.add (i32.const 8) - ;;@ memcpy.ts:164:31 (i32.const 16) ) - ;;@ memcpy.ts:164:35 (i32.const 15) ) ) - ;;@ memcpy.ts:165:0 (if (i32.eqz - ;;@ memcpy.ts:165:7 (i64.eq (i64.load - ;;@ memcpy.ts:165:17 (i32.const 8) ) - ;;@ memcpy.ts:165:26 (i64.const 4919131679688438545) ) ) @@ -2598,20 +2071,15 @@ (unreachable) ) ) - ;;@ memcpy.ts:166:0 (if (i32.eqz - ;;@ memcpy.ts:166:7 (i64.eq (i64.load - ;;@ memcpy.ts:166:17 (i32.add (i32.const 8) - ;;@ memcpy.ts:166:24 (i32.const 8) ) ) - ;;@ memcpy.ts:166:30 (i64.const 3689348814741910323) ) ) @@ -2625,20 +2093,15 @@ (unreachable) ) ) - ;;@ memcpy.ts:167:0 (if (i32.eqz - ;;@ memcpy.ts:167:7 (i64.eq (i64.load - ;;@ memcpy.ts:167:17 (i32.add (i32.const 8) - ;;@ memcpy.ts:167:24 (i32.const 16) ) ) - ;;@ memcpy.ts:167:31 (i64.const 3694152654344438852) ) ) @@ -2652,20 +2115,15 @@ (unreachable) ) ) - ;;@ memcpy.ts:168:0 (if (i32.eqz - ;;@ memcpy.ts:168:7 (i64.eq (i64.load - ;;@ memcpy.ts:168:17 (i32.add (i32.const 8) - ;;@ memcpy.ts:168:24 (i32.const 24) ) ) - ;;@ memcpy.ts:168:31 (i64.const 4919131752989213764) ) ) diff --git a/tests/compiler/memmove.wat b/tests/compiler/memmove.untouched.wat similarity index 67% rename from tests/compiler/memmove.wat rename to tests/compiler/memmove.untouched.wat index fa6f1a6d..c6592788 100644 --- a/tests/compiler/memmove.wat +++ b/tests/compiler/memmove.untouched.wat @@ -13,86 +13,60 @@ (func $memmove/memmove (; 1 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32) (local $3 i32) (local $4 i32) - ;;@ memmove.ts:2:2 (set_local $3 - ;;@ memmove.ts:2:12 (get_local $0) ) - ;;@ memmove.ts:3:2 (if - ;;@ memmove.ts:3:6 (i32.eq (get_local $0) - ;;@ memmove.ts:3:14 (get_local $1) ) - ;;@ memmove.ts:4:11 (return (get_local $3) ) ) - ;;@ memmove.ts:9:2 (if - ;;@ memmove.ts:9:6 (i32.lt_u (get_local $0) - ;;@ memmove.ts:9:13 (get_local $1) ) - ;;@ memmove.ts:9:18 (block - ;;@ memmove.ts:10:4 (if - ;;@ memmove.ts:10:8 (i32.eq (i32.rem_u (get_local $1) - ;;@ memmove.ts:10:14 (i32.const 8) ) - ;;@ memmove.ts:10:19 (i32.rem_u (get_local $0) - ;;@ memmove.ts:10:26 (i32.const 8) ) ) - ;;@ memmove.ts:10:29 (block (block $break|0 (loop $continue|0 (if - ;;@ memmove.ts:11:13 (i32.rem_u (get_local $0) - ;;@ memmove.ts:11:20 (i32.const 8) ) (block (block - ;;@ memmove.ts:12:8 (if - ;;@ memmove.ts:12:12 (i32.eqz - ;;@ memmove.ts:12:13 (get_local $2) ) - ;;@ memmove.ts:13:17 (return (get_local $3) ) ) - ;;@ memmove.ts:14:8 (set_local $2 (i32.sub - ;;@ memmove.ts:14:10 (get_local $2) (i32.const 1) ) ) - ;;@ memmove.ts:15:8 (i32.store8 - ;;@ memmove.ts:15:18 (block (result i32) (set_local $4 (get_local $0) @@ -105,9 +79,7 @@ ) (get_local $4) ) - ;;@ memmove.ts:15:26 (i32.load8_u - ;;@ memmove.ts:15:35 (block (result i32) (set_local $4 (get_local $1) @@ -128,49 +100,36 @@ ) ) ) - ;;@ memmove.ts:17:6 (block $break|1 (loop $continue|1 (if - ;;@ memmove.ts:17:13 (i32.ge_u (get_local $2) - ;;@ memmove.ts:17:18 (i32.const 8) ) (block (block - ;;@ memmove.ts:18:8 (i64.store - ;;@ memmove.ts:18:19 (get_local $0) - ;;@ memmove.ts:18:25 (i64.load - ;;@ memmove.ts:18:35 (get_local $1) ) ) - ;;@ memmove.ts:19:8 (set_local $2 (i32.sub (get_local $2) - ;;@ memmove.ts:19:13 (i32.const 8) ) ) - ;;@ memmove.ts:20:8 (set_local $0 (i32.add (get_local $0) - ;;@ memmove.ts:20:16 (i32.const 8) ) ) - ;;@ memmove.ts:21:8 (set_local $1 (i32.add (get_local $1) - ;;@ memmove.ts:21:15 (i32.const 8) ) ) @@ -182,17 +141,13 @@ ) ) ) - ;;@ memmove.ts:24:4 (block $break|2 (loop $continue|2 (if - ;;@ memmove.ts:24:11 (get_local $2) (block (block - ;;@ memmove.ts:25:6 (i32.store8 - ;;@ memmove.ts:25:16 (block (result i32) (set_local $4 (get_local $0) @@ -205,9 +160,7 @@ ) (get_local $4) ) - ;;@ memmove.ts:25:24 (i32.load8_u - ;;@ memmove.ts:25:33 (block (result i32) (set_local $4 (get_local $1) @@ -222,10 +175,8 @@ ) ) ) - ;;@ memmove.ts:26:6 (set_local $2 (i32.sub - ;;@ memmove.ts:26:8 (get_local $2) (i32.const 1) ) @@ -237,74 +188,52 @@ ) ) ) - ;;@ memmove.ts:28:9 (block - ;;@ memmove.ts:29:4 (if - ;;@ memmove.ts:29:8 (i32.eq (i32.rem_u (get_local $1) - ;;@ memmove.ts:29:14 (i32.const 8) ) - ;;@ memmove.ts:29:19 (i32.rem_u (get_local $0) - ;;@ memmove.ts:29:26 (i32.const 8) ) ) - ;;@ memmove.ts:29:29 (block (block $break|3 (loop $continue|3 (if - ;;@ memmove.ts:30:13 (i32.rem_u (i32.add - ;;@ memmove.ts:30:14 (get_local $0) - ;;@ memmove.ts:30:21 (get_local $2) ) - ;;@ memmove.ts:30:26 (i32.const 8) ) (block (block - ;;@ memmove.ts:31:8 (if - ;;@ memmove.ts:31:12 (i32.eqz - ;;@ memmove.ts:31:13 (get_local $2) ) - ;;@ memmove.ts:32:17 (return (get_local $3) ) ) - ;;@ memmove.ts:33:8 (i32.store8 - ;;@ memmove.ts:33:18 (i32.add (get_local $0) - ;;@ memmove.ts:33:25 (tee_local $2 (i32.sub - ;;@ memmove.ts:33:27 (get_local $2) (i32.const 1) ) ) ) - ;;@ memmove.ts:33:30 (i32.load8_u - ;;@ memmove.ts:33:39 (i32.add (get_local $1) - ;;@ memmove.ts:33:45 (get_local $2) ) ) @@ -315,40 +244,29 @@ ) ) ) - ;;@ memmove.ts:35:6 (block $break|4 (loop $continue|4 (if - ;;@ memmove.ts:35:13 (i32.ge_u (get_local $2) - ;;@ memmove.ts:35:18 (i32.const 8) ) (block (block - ;;@ memmove.ts:36:8 (set_local $2 (i32.sub (get_local $2) - ;;@ memmove.ts:36:13 (i32.const 8) ) ) - ;;@ memmove.ts:37:8 (i64.store - ;;@ memmove.ts:37:19 (i32.add (get_local $0) - ;;@ memmove.ts:37:26 (get_local $2) ) - ;;@ memmove.ts:37:29 (i64.load - ;;@ memmove.ts:37:39 (i32.add (get_local $1) - ;;@ memmove.ts:37:45 (get_local $2) ) ) @@ -361,34 +279,25 @@ ) ) ) - ;;@ memmove.ts:40:4 (block $break|5 (loop $continue|5 (if - ;;@ memmove.ts:40:11 (get_local $2) (block (block - ;;@ memmove.ts:41:6 (i32.store8 - ;;@ memmove.ts:41:16 (i32.add (get_local $0) - ;;@ memmove.ts:41:23 (tee_local $2 (i32.sub - ;;@ memmove.ts:41:25 (get_local $2) (i32.const 1) ) ) ) - ;;@ memmove.ts:41:28 (i32.load8_u - ;;@ memmove.ts:41:37 (i32.add (get_local $1) - ;;@ memmove.ts:41:43 (get_local $2) ) ) @@ -401,82 +310,55 @@ ) ) ) - ;;@ memmove.ts:44:9 (return (get_local $3) ) ) (func $start (; 2 ;) (type $v) - ;;@ memmove.ts:48:0 (i64.store - ;;@ memmove.ts:48:11 (i32.const 8) - ;;@ memmove.ts:48:22 (i64.const 1229782938247303441) ) - ;;@ memmove.ts:49:0 (i64.store - ;;@ memmove.ts:49:11 (i32.add (i32.const 8) - ;;@ memmove.ts:49:18 (i32.const 8) ) - ;;@ memmove.ts:49:22 (i64.const 2459565876494606882) ) - ;;@ memmove.ts:50:0 (i64.store - ;;@ memmove.ts:50:11 (i32.add (i32.const 8) - ;;@ memmove.ts:50:18 (i32.const 16) ) - ;;@ memmove.ts:50:22 (i64.const 3689348814741910323) ) - ;;@ memmove.ts:51:0 (i64.store - ;;@ memmove.ts:51:11 (i32.add (i32.const 8) - ;;@ memmove.ts:51:18 (i32.const 24) ) - ;;@ memmove.ts:51:22 (i64.const 4919131752989213764) ) - ;;@ memmove.ts:54:0 (set_global $memmove/dest - ;;@ memmove.ts:54:7 (call $memmove/memmove - ;;@ memmove.ts:54:15 (i32.add (i32.const 8) - ;;@ memmove.ts:54:22 (i32.const 1) ) - ;;@ memmove.ts:54:25 (i32.add (i32.const 8) - ;;@ memmove.ts:54:32 (i32.const 16) ) - ;;@ memmove.ts:54:36 (i32.const 4) ) ) - ;;@ memmove.ts:55:0 (if (i32.eqz - ;;@ memmove.ts:55:7 (i32.eq (get_global $memmove/dest) - ;;@ memmove.ts:55:15 (i32.add (i32.const 8) - ;;@ memmove.ts:55:22 (i32.const 1) ) ) @@ -491,16 +373,12 @@ (unreachable) ) ) - ;;@ memmove.ts:56:0 (if (i32.eqz - ;;@ memmove.ts:56:7 (i64.eq (i64.load - ;;@ memmove.ts:56:17 (i32.const 8) ) - ;;@ memmove.ts:56:26 (i64.const 1229783084848853777) ) ) @@ -514,25 +392,17 @@ (unreachable) ) ) - ;;@ memmove.ts:58:0 (set_global $memmove/dest - ;;@ memmove.ts:58:7 (call $memmove/memmove - ;;@ memmove.ts:58:15 (i32.const 8) - ;;@ memmove.ts:58:21 (i32.const 8) - ;;@ memmove.ts:58:27 (i32.const 32) ) ) - ;;@ memmove.ts:59:0 (if (i32.eqz - ;;@ memmove.ts:59:7 (i32.eq (get_global $memmove/dest) - ;;@ memmove.ts:59:15 (i32.const 8) ) ) @@ -546,16 +416,12 @@ (unreachable) ) ) - ;;@ memmove.ts:60:0 (if (i32.eqz - ;;@ memmove.ts:60:7 (i64.eq (i64.load - ;;@ memmove.ts:60:17 (i32.const 8) ) - ;;@ memmove.ts:60:26 (i64.const 1229783084848853777) ) ) @@ -569,20 +435,15 @@ (unreachable) ) ) - ;;@ memmove.ts:61:0 (if (i32.eqz - ;;@ memmove.ts:61:7 (i64.eq (i64.load - ;;@ memmove.ts:61:17 (i32.add (i32.const 8) - ;;@ memmove.ts:61:24 (i32.const 8) ) ) - ;;@ memmove.ts:61:30 (i64.const 2459565876494606882) ) ) @@ -596,20 +457,15 @@ (unreachable) ) ) - ;;@ memmove.ts:62:0 (if (i32.eqz - ;;@ memmove.ts:62:7 (i64.eq (i64.load - ;;@ memmove.ts:62:17 (i32.add (i32.const 8) - ;;@ memmove.ts:62:24 (i32.const 16) ) ) - ;;@ memmove.ts:62:31 (i64.const 3689348814741910323) ) ) @@ -623,20 +479,15 @@ (unreachable) ) ) - ;;@ memmove.ts:63:0 (if (i32.eqz - ;;@ memmove.ts:63:7 (i64.eq (i64.load - ;;@ memmove.ts:63:17 (i32.add (i32.const 8) - ;;@ memmove.ts:63:24 (i32.const 24) ) ) - ;;@ memmove.ts:63:31 (i64.const 4919131752989213764) ) ) @@ -650,36 +501,25 @@ (unreachable) ) ) - ;;@ memmove.ts:65:0 (set_global $memmove/dest - ;;@ memmove.ts:65:7 (call $memmove/memmove - ;;@ memmove.ts:65:15 (i32.add (i32.const 8) - ;;@ memmove.ts:65:22 (i32.const 5) ) - ;;@ memmove.ts:65:25 (i32.add (i32.const 8) - ;;@ memmove.ts:65:32 (i32.const 28) ) - ;;@ memmove.ts:65:36 (i32.const 3) ) ) - ;;@ memmove.ts:66:0 (if (i32.eqz - ;;@ memmove.ts:66:7 (i64.eq (i64.load - ;;@ memmove.ts:66:17 (i32.const 8) ) - ;;@ memmove.ts:66:26 (i64.const 4919131679688438545) ) ) @@ -693,36 +533,25 @@ (unreachable) ) ) - ;;@ memmove.ts:68:0 (set_global $memmove/dest - ;;@ memmove.ts:68:7 (call $memmove/memmove - ;;@ memmove.ts:68:15 (i32.add (i32.const 8) - ;;@ memmove.ts:68:22 (i32.const 8) ) - ;;@ memmove.ts:68:25 (i32.add (i32.const 8) - ;;@ memmove.ts:68:32 (i32.const 16) ) - ;;@ memmove.ts:68:36 (i32.const 15) ) ) - ;;@ memmove.ts:69:0 (if (i32.eqz - ;;@ memmove.ts:69:7 (i64.eq (i64.load - ;;@ memmove.ts:69:17 (i32.const 8) ) - ;;@ memmove.ts:69:26 (i64.const 4919131679688438545) ) ) @@ -736,20 +565,15 @@ (unreachable) ) ) - ;;@ memmove.ts:70:0 (if (i32.eqz - ;;@ memmove.ts:70:7 (i64.eq (i64.load - ;;@ memmove.ts:70:17 (i32.add (i32.const 8) - ;;@ memmove.ts:70:24 (i32.const 8) ) ) - ;;@ memmove.ts:70:30 (i64.const 3689348814741910323) ) ) @@ -763,20 +587,15 @@ (unreachable) ) ) - ;;@ memmove.ts:71:0 (if (i32.eqz - ;;@ memmove.ts:71:7 (i64.eq (i64.load - ;;@ memmove.ts:71:17 (i32.add (i32.const 8) - ;;@ memmove.ts:71:24 (i32.const 16) ) ) - ;;@ memmove.ts:71:31 (i64.const 3694152654344438852) ) ) @@ -790,20 +609,15 @@ (unreachable) ) ) - ;;@ memmove.ts:72:0 (if (i32.eqz - ;;@ memmove.ts:72:7 (i64.eq (i64.load - ;;@ memmove.ts:72:17 (i32.add (i32.const 8) - ;;@ memmove.ts:72:24 (i32.const 24) ) ) - ;;@ memmove.ts:72:31 (i64.const 4919131752989213764) ) ) diff --git a/tests/compiler/memset.wat b/tests/compiler/memset.untouched.wat similarity index 59% rename from tests/compiler/memset.wat rename to tests/compiler/memset.untouched.wat index 38f3fa73..95761c8f 100644 --- a/tests/compiler/memset.wat +++ b/tests/compiler/memset.untouched.wat @@ -14,529 +14,356 @@ (local $4 i32) (local $5 i32) (local $6 i64) - ;;@ memset.ts:2:2 (set_local $3 - ;;@ memset.ts:2:12 (get_local $0) ) - ;;@ memset.ts:5:2 (if - ;;@ memset.ts:5:6 (i32.eqz - ;;@ memset.ts:5:7 (get_local $2) ) - ;;@ memset.ts:6:11 (return (get_local $3) ) ) - ;;@ memset.ts:7:2 (i32.store8 - ;;@ memset.ts:7:12 (get_local $0) - ;;@ memset.ts:7:18 (get_local $1) ) - ;;@ memset.ts:8:2 (i32.store8 - ;;@ memset.ts:8:12 (i32.sub (i32.add (get_local $0) - ;;@ memset.ts:8:19 (get_local $2) ) - ;;@ memset.ts:8:23 (i32.const 1) ) - ;;@ memset.ts:8:26 (get_local $1) ) - ;;@ memset.ts:9:2 (if - ;;@ memset.ts:9:6 (i32.le_u (get_local $2) - ;;@ memset.ts:9:11 (i32.const 2) ) - ;;@ memset.ts:10:11 (return (get_local $3) ) ) - ;;@ memset.ts:12:2 (i32.store8 - ;;@ memset.ts:12:12 (i32.add (get_local $0) - ;;@ memset.ts:12:19 (i32.const 1) ) - ;;@ memset.ts:12:22 (get_local $1) ) - ;;@ memset.ts:13:2 (i32.store8 - ;;@ memset.ts:13:12 (i32.add (get_local $0) - ;;@ memset.ts:13:19 (i32.const 2) ) - ;;@ memset.ts:13:22 (get_local $1) ) - ;;@ memset.ts:14:2 (i32.store8 - ;;@ memset.ts:14:12 (i32.sub (i32.add (get_local $0) - ;;@ memset.ts:14:19 (get_local $2) ) - ;;@ memset.ts:14:23 (i32.const 2) ) - ;;@ memset.ts:14:26 (get_local $1) ) - ;;@ memset.ts:15:2 (i32.store8 - ;;@ memset.ts:15:12 (i32.sub (i32.add (get_local $0) - ;;@ memset.ts:15:19 (get_local $2) ) - ;;@ memset.ts:15:23 (i32.const 3) ) - ;;@ memset.ts:15:26 (get_local $1) ) - ;;@ memset.ts:16:2 (if - ;;@ memset.ts:16:6 (i32.le_u (get_local $2) - ;;@ memset.ts:16:11 (i32.const 6) ) - ;;@ memset.ts:17:11 (return (get_local $3) ) ) - ;;@ memset.ts:18:2 (i32.store8 - ;;@ memset.ts:18:12 (i32.add (get_local $0) - ;;@ memset.ts:18:19 (i32.const 3) ) - ;;@ memset.ts:18:22 (get_local $1) ) - ;;@ memset.ts:19:2 (i32.store8 - ;;@ memset.ts:19:12 (i32.sub (i32.add (get_local $0) - ;;@ memset.ts:19:19 (get_local $2) ) - ;;@ memset.ts:19:23 (i32.const 4) ) - ;;@ memset.ts:19:26 (get_local $1) ) - ;;@ memset.ts:20:2 (if - ;;@ memset.ts:20:6 (i32.le_u (get_local $2) - ;;@ memset.ts:20:11 (i32.const 8) ) - ;;@ memset.ts:21:11 (return (get_local $3) ) ) - ;;@ memset.ts:24:2 (set_local $4 - ;;@ memset.ts:24:17 (i32.and (i32.sub (i32.const 0) - ;;@ memset.ts:24:18 (get_local $0) ) - ;;@ memset.ts:24:25 (i32.const 3) ) ) - ;;@ memset.ts:25:2 (set_local $0 (i32.add (get_local $0) - ;;@ memset.ts:25:10 (get_local $4) ) ) - ;;@ memset.ts:26:2 (set_local $2 (i32.sub (get_local $2) - ;;@ memset.ts:26:7 (get_local $4) ) ) - ;;@ memset.ts:27:2 (set_local $2 (i32.and (get_local $2) - ;;@ memset.ts:27:7 (i32.const -4) ) ) - ;;@ memset.ts:29:2 (set_local $5 - ;;@ memset.ts:29:17 (i32.mul (i32.div_u (i32.const -1) - ;;@ memset.ts:29:27 (i32.const 255) ) - ;;@ memset.ts:29:33 (get_local $1) ) ) - ;;@ memset.ts:32:2 (i32.store - ;;@ memset.ts:32:13 (get_local $0) - ;;@ memset.ts:32:19 (get_local $5) ) - ;;@ memset.ts:33:2 (i32.store - ;;@ memset.ts:33:13 (i32.sub (i32.add (get_local $0) - ;;@ memset.ts:33:20 (get_local $2) ) - ;;@ memset.ts:33:24 (i32.const 4) ) - ;;@ memset.ts:33:27 (get_local $5) ) - ;;@ memset.ts:34:2 (if - ;;@ memset.ts:34:6 (i32.le_u (get_local $2) - ;;@ memset.ts:34:11 (i32.const 8) ) - ;;@ memset.ts:35:11 (return (get_local $3) ) ) - ;;@ memset.ts:36:2 (i32.store - ;;@ memset.ts:36:13 (i32.add (get_local $0) - ;;@ memset.ts:36:20 (i32.const 4) ) - ;;@ memset.ts:36:23 (get_local $5) ) - ;;@ memset.ts:37:2 (i32.store - ;;@ memset.ts:37:13 (i32.add (get_local $0) - ;;@ memset.ts:37:20 (i32.const 8) ) - ;;@ memset.ts:37:23 (get_local $5) ) - ;;@ memset.ts:38:2 (i32.store - ;;@ memset.ts:38:13 (i32.sub (i32.add (get_local $0) - ;;@ memset.ts:38:20 (get_local $2) ) - ;;@ memset.ts:38:24 (i32.const 12) ) - ;;@ memset.ts:38:28 (get_local $5) ) - ;;@ memset.ts:39:2 (i32.store - ;;@ memset.ts:39:13 (i32.sub (i32.add (get_local $0) - ;;@ memset.ts:39:20 (get_local $2) ) - ;;@ memset.ts:39:24 (i32.const 8) ) - ;;@ memset.ts:39:27 (get_local $5) ) - ;;@ memset.ts:40:2 (if - ;;@ memset.ts:40:6 (i32.le_u (get_local $2) - ;;@ memset.ts:40:11 (i32.const 24) ) - ;;@ memset.ts:41:11 (return (get_local $3) ) ) - ;;@ memset.ts:42:2 (i32.store - ;;@ memset.ts:42:13 (i32.add (get_local $0) - ;;@ memset.ts:42:20 (i32.const 12) ) - ;;@ memset.ts:42:24 (get_local $5) ) - ;;@ memset.ts:43:2 (i32.store - ;;@ memset.ts:43:13 (i32.add (get_local $0) - ;;@ memset.ts:43:20 (i32.const 16) ) - ;;@ memset.ts:43:24 (get_local $5) ) - ;;@ memset.ts:44:2 (i32.store - ;;@ memset.ts:44:13 (i32.add (get_local $0) - ;;@ memset.ts:44:20 (i32.const 20) ) - ;;@ memset.ts:44:24 (get_local $5) ) - ;;@ memset.ts:45:2 (i32.store - ;;@ memset.ts:45:13 (i32.add (get_local $0) - ;;@ memset.ts:45:20 (i32.const 24) ) - ;;@ memset.ts:45:24 (get_local $5) ) - ;;@ memset.ts:46:2 (i32.store - ;;@ memset.ts:46:13 (i32.sub (i32.add (get_local $0) - ;;@ memset.ts:46:20 (get_local $2) ) - ;;@ memset.ts:46:24 (i32.const 28) ) - ;;@ memset.ts:46:28 (get_local $5) ) - ;;@ memset.ts:47:2 (i32.store - ;;@ memset.ts:47:13 (i32.sub (i32.add (get_local $0) - ;;@ memset.ts:47:20 (get_local $2) ) - ;;@ memset.ts:47:24 (i32.const 24) ) - ;;@ memset.ts:47:28 (get_local $5) ) - ;;@ memset.ts:48:2 (i32.store - ;;@ memset.ts:48:13 (i32.sub (i32.add (get_local $0) - ;;@ memset.ts:48:20 (get_local $2) ) - ;;@ memset.ts:48:24 (i32.const 20) ) - ;;@ memset.ts:48:28 (get_local $5) ) - ;;@ memset.ts:49:2 (i32.store - ;;@ memset.ts:49:13 (i32.sub (i32.add (get_local $0) - ;;@ memset.ts:49:20 (get_local $2) ) - ;;@ memset.ts:49:24 (i32.const 16) ) - ;;@ memset.ts:49:28 (get_local $5) ) - ;;@ memset.ts:52:2 (set_local $4 - ;;@ memset.ts:52:6 (i32.add (i32.const 24) - ;;@ memset.ts:52:11 (i32.and - ;;@ memset.ts:52:12 (get_local $0) - ;;@ memset.ts:52:19 (i32.const 4) ) ) ) - ;;@ memset.ts:53:2 (set_local $0 (i32.add (get_local $0) - ;;@ memset.ts:53:10 (get_local $4) ) ) - ;;@ memset.ts:54:2 (set_local $2 (i32.sub (get_local $2) - ;;@ memset.ts:54:7 (get_local $4) ) ) - ;;@ memset.ts:57:2 (set_local $6 - ;;@ memset.ts:57:17 (i64.or (i64.extend_u/i32 (get_local $5) ) - ;;@ memset.ts:57:28 (i64.shl - ;;@ memset.ts:57:29 (i64.extend_u/i32 (get_local $5) ) - ;;@ memset.ts:57:41 (i64.const 32) ) ) ) - ;;@ memset.ts:58:2 (block $break|0 (loop $continue|0 (if - ;;@ memset.ts:58:9 (i32.ge_u (get_local $2) - ;;@ memset.ts:58:14 (i32.const 32) ) (block (block - ;;@ memset.ts:59:4 (i64.store - ;;@ memset.ts:59:15 (get_local $0) - ;;@ memset.ts:59:21 (get_local $6) ) - ;;@ memset.ts:60:4 (i64.store - ;;@ memset.ts:60:15 (i32.add (get_local $0) - ;;@ memset.ts:60:22 (i32.const 8) ) - ;;@ memset.ts:60:25 (get_local $6) ) - ;;@ memset.ts:61:4 (i64.store - ;;@ memset.ts:61:15 (i32.add (get_local $0) - ;;@ memset.ts:61:22 (i32.const 16) ) - ;;@ memset.ts:61:26 (get_local $6) ) - ;;@ memset.ts:62:4 (i64.store - ;;@ memset.ts:62:15 (i32.add (get_local $0) - ;;@ memset.ts:62:22 (i32.const 24) ) - ;;@ memset.ts:62:26 (get_local $6) ) - ;;@ memset.ts:63:4 (set_local $2 (i32.sub (get_local $2) - ;;@ memset.ts:63:9 (i32.const 32) ) ) - ;;@ memset.ts:64:4 (set_local $0 (i32.add (get_local $0) - ;;@ memset.ts:64:12 (i32.const 32) ) ) @@ -546,37 +373,27 @@ ) ) ) - ;;@ memset.ts:66:9 (return (get_local $3) ) ) (func $start (; 2 ;) (type $v) (set_global $memset/dest - ;;@ memset.ts:69:11 (get_global $HEAP_BASE) ) - ;;@ memset.ts:70:0 (drop (call $memset/memset - ;;@ memset.ts:70:7 (get_global $memset/dest) - ;;@ memset.ts:70:13 (i32.const 1) - ;;@ memset.ts:70:16 (i32.const 16) ) ) - ;;@ memset.ts:72:0 (if (i32.eqz - ;;@ memset.ts:72:7 (i32.eq (i32.load8_u - ;;@ memset.ts:72:16 (get_global $memset/dest) ) - ;;@ memset.ts:72:25 (i32.const 1) ) ) @@ -590,20 +407,15 @@ (unreachable) ) ) - ;;@ memset.ts:73:0 (if (i32.eqz - ;;@ memset.ts:73:7 (i32.eq (i32.load8_u - ;;@ memset.ts:73:16 (i32.add (get_global $memset/dest) - ;;@ memset.ts:73:23 (i32.const 15) ) ) - ;;@ memset.ts:73:30 (i32.const 1) ) ) @@ -617,31 +429,22 @@ (unreachable) ) ) - ;;@ memset.ts:75:0 (drop (call $memset/memset - ;;@ memset.ts:75:7 (i32.add (get_global $memset/dest) - ;;@ memset.ts:75:14 (i32.const 1) ) - ;;@ memset.ts:75:17 (i32.const 2) - ;;@ memset.ts:75:20 (i32.const 14) ) ) - ;;@ memset.ts:77:0 (if (i32.eqz - ;;@ memset.ts:77:7 (i32.eq (i32.load8_u - ;;@ memset.ts:77:16 (get_global $memset/dest) ) - ;;@ memset.ts:77:25 (i32.const 1) ) ) @@ -655,20 +458,15 @@ (unreachable) ) ) - ;;@ memset.ts:78:0 (if (i32.eqz - ;;@ memset.ts:78:7 (i32.eq (i32.load8_u - ;;@ memset.ts:78:16 (i32.add (get_global $memset/dest) - ;;@ memset.ts:78:23 (i32.const 1) ) ) - ;;@ memset.ts:78:29 (i32.const 2) ) ) @@ -682,20 +480,15 @@ (unreachable) ) ) - ;;@ memset.ts:79:0 (if (i32.eqz - ;;@ memset.ts:79:7 (i32.eq (i32.load8_u - ;;@ memset.ts:79:16 (i32.add (get_global $memset/dest) - ;;@ memset.ts:79:23 (i32.const 14) ) ) - ;;@ memset.ts:79:30 (i32.const 2) ) ) @@ -709,20 +502,15 @@ (unreachable) ) ) - ;;@ memset.ts:80:0 (if (i32.eqz - ;;@ memset.ts:80:7 (i32.eq (i32.load8_u - ;;@ memset.ts:80:16 (i32.add (get_global $memset/dest) - ;;@ memset.ts:80:23 (i32.const 15) ) ) - ;;@ memset.ts:80:30 (i32.const 1) ) ) diff --git a/tests/compiler/namespace.wat b/tests/compiler/namespace.untouched.wat similarity index 83% rename from tests/compiler/namespace.wat rename to tests/compiler/namespace.untouched.wat index 26a35e0a..c9aaf860 100644 --- a/tests/compiler/namespace.wat +++ b/tests/compiler/namespace.untouched.wat @@ -10,32 +10,25 @@ (export "memory" (memory $0)) (start $start) (func $namespace/Outer.Inner.aFunc (; 0 ;) (type $i) (result i32) - ;;@ namespace.ts:4:42 (return (get_global $namespace/Outer.Inner.aVar) ) ) (func $namespace/Joined.anotherFunc (; 1 ;) (type $i) (result i32) - ;;@ namespace.ts:17:53 (return - ;;@ namespace.ts:17:46 (i32.const 3) ) ) (func $start (; 2 ;) (type $v) - ;;@ namespace.ts:9:0 (drop (get_global $namespace/Outer.Inner.aVar) ) - ;;@ namespace.ts:10:12 (drop (call $namespace/Outer.Inner.aFunc) ) - ;;@ namespace.ts:11:0 (drop (i32.const 1) ) - ;;@ namespace.ts:20:7 (drop (call $namespace/Joined.anotherFunc) ) diff --git a/tests/compiler/overflow.wat b/tests/compiler/overflow.untouched.wat similarity index 76% rename from tests/compiler/overflow.wat rename to tests/compiler/overflow.untouched.wat index 25144094..7e4067e9 100644 --- a/tests/compiler/overflow.wat +++ b/tests/compiler/overflow.untouched.wat @@ -11,16 +11,11 @@ (local $0 i32) (local $1 i32) (local $2 i32) - ;;@ overflow.ts:5:0 (block - ;;@ overflow.ts:6:2 (set_local $0 - ;;@ overflow.ts:6:16 (i32.const 127) ) - ;;@ overflow.ts:7:2 (nop) - ;;@ overflow.ts:9:2 (set_local $0 (i32.shr_s (i32.shl @@ -33,13 +28,10 @@ (i32.const 24) ) ) - ;;@ overflow.ts:10:2 (if (i32.eqz - ;;@ overflow.ts:10:9 (i32.eq (get_local $0) - ;;@ overflow.ts:10:16 (i32.const -128) ) ) @@ -53,7 +45,6 @@ (unreachable) ) ) - ;;@ overflow.ts:12:2 (set_local $0 (i32.shr_s (i32.shl @@ -66,13 +57,10 @@ (i32.const 24) ) ) - ;;@ overflow.ts:13:2 (if (i32.eqz - ;;@ overflow.ts:13:9 (i32.eq (get_local $0) - ;;@ overflow.ts:13:16 (i32.const 127) ) ) @@ -86,9 +74,7 @@ (unreachable) ) ) - ;;@ overflow.ts:15:2 (set_local $1 - ;;@ overflow.ts:15:8 (block (result i32) (set_local $2 (get_local $0) @@ -108,13 +94,10 @@ (get_local $2) ) ) - ;;@ overflow.ts:16:2 (if (i32.eqz - ;;@ overflow.ts:16:9 (i32.eq (get_local $0) - ;;@ overflow.ts:16:16 (i32.const -128) ) ) @@ -128,9 +111,7 @@ (unreachable) ) ) - ;;@ overflow.ts:18:2 (set_local $1 - ;;@ overflow.ts:18:8 (block (result i32) (set_local $2 (get_local $0) @@ -150,13 +131,10 @@ (get_local $2) ) ) - ;;@ overflow.ts:19:2 (if (i32.eqz - ;;@ overflow.ts:19:9 (i32.eq (get_local $0) - ;;@ overflow.ts:19:16 (i32.const 127) ) ) @@ -170,12 +148,10 @@ (unreachable) ) ) - ;;@ overflow.ts:21:2 (set_local $0 (i32.shr_s (i32.shl (i32.add - ;;@ overflow.ts:21:4 (get_local $0) (i32.const 1) ) @@ -184,13 +160,10 @@ (i32.const 24) ) ) - ;;@ overflow.ts:22:2 (if (i32.eqz - ;;@ overflow.ts:22:9 (i32.eq (get_local $0) - ;;@ overflow.ts:22:16 (i32.const -128) ) ) @@ -204,12 +177,10 @@ (unreachable) ) ) - ;;@ overflow.ts:24:2 (set_local $0 (i32.shr_s (i32.shl (i32.sub - ;;@ overflow.ts:24:4 (get_local $0) (i32.const 1) ) @@ -218,13 +189,10 @@ (i32.const 24) ) ) - ;;@ overflow.ts:25:2 (if (i32.eqz - ;;@ overflow.ts:25:9 (i32.eq (get_local $0) - ;;@ overflow.ts:25:16 (i32.const 127) ) ) @@ -238,14 +206,11 @@ (unreachable) ) ) - ;;@ overflow.ts:27:2 (set_local $1 - ;;@ overflow.ts:27:8 (tee_local $0 (i32.shr_s (i32.shl (i32.add - ;;@ overflow.ts:27:10 (get_local $0) (i32.const 1) ) @@ -255,13 +220,10 @@ ) ) ) - ;;@ overflow.ts:28:2 (if (i32.eqz - ;;@ overflow.ts:28:9 (i32.eq (get_local $0) - ;;@ overflow.ts:28:16 (i32.const -128) ) ) @@ -275,14 +237,11 @@ (unreachable) ) ) - ;;@ overflow.ts:30:2 (set_local $1 - ;;@ overflow.ts:30:8 (tee_local $0 (i32.shr_s (i32.shl (i32.sub - ;;@ overflow.ts:30:10 (get_local $0) (i32.const 1) ) @@ -292,13 +251,10 @@ ) ) ) - ;;@ overflow.ts:31:2 (if (i32.eqz - ;;@ overflow.ts:31:9 (i32.eq (get_local $0) - ;;@ overflow.ts:31:16 (i32.const 127) ) ) @@ -312,23 +268,19 @@ (unreachable) ) ) - ;;@ overflow.ts:33:2 (if (i32.eqz - ;;@ overflow.ts:33:9 (i32.eq (i32.shr_s (i32.shl (i32.add (get_local $0) - ;;@ overflow.ts:33:15 (i32.const 1) ) (i32.const 24) ) (i32.const 24) ) - ;;@ overflow.ts:33:20 (i32.const -128) ) ) @@ -343,16 +295,11 @@ ) ) ) - ;;@ overflow.ts:37:0 (block - ;;@ overflow.ts:38:2 (set_local $1 - ;;@ overflow.ts:38:17 (i32.const 32767) ) - ;;@ overflow.ts:39:2 (nop) - ;;@ overflow.ts:41:2 (set_local $1 (i32.shr_s (i32.shl @@ -365,13 +312,10 @@ (i32.const 16) ) ) - ;;@ overflow.ts:42:2 (if (i32.eqz - ;;@ overflow.ts:42:9 (i32.eq (get_local $1) - ;;@ overflow.ts:42:16 (i32.const -32768) ) ) @@ -385,7 +329,6 @@ (unreachable) ) ) - ;;@ overflow.ts:44:2 (set_local $1 (i32.shr_s (i32.shl @@ -398,13 +341,10 @@ (i32.const 16) ) ) - ;;@ overflow.ts:45:2 (if (i32.eqz - ;;@ overflow.ts:45:9 (i32.eq (get_local $1) - ;;@ overflow.ts:45:16 (i32.const 32767) ) ) @@ -418,9 +358,7 @@ (unreachable) ) ) - ;;@ overflow.ts:47:2 (set_local $0 - ;;@ overflow.ts:47:8 (block (result i32) (set_local $2 (get_local $1) @@ -440,13 +378,10 @@ (get_local $2) ) ) - ;;@ overflow.ts:48:2 (if (i32.eqz - ;;@ overflow.ts:48:9 (i32.eq (get_local $1) - ;;@ overflow.ts:48:16 (i32.const -32768) ) ) @@ -460,9 +395,7 @@ (unreachable) ) ) - ;;@ overflow.ts:50:2 (set_local $0 - ;;@ overflow.ts:50:8 (block (result i32) (set_local $2 (get_local $1) @@ -482,13 +415,10 @@ (get_local $2) ) ) - ;;@ overflow.ts:51:2 (if (i32.eqz - ;;@ overflow.ts:51:9 (i32.eq (get_local $1) - ;;@ overflow.ts:51:16 (i32.const 32767) ) ) @@ -502,12 +432,10 @@ (unreachable) ) ) - ;;@ overflow.ts:53:2 (set_local $1 (i32.shr_s (i32.shl (i32.add - ;;@ overflow.ts:53:4 (get_local $1) (i32.const 1) ) @@ -516,13 +444,10 @@ (i32.const 16) ) ) - ;;@ overflow.ts:54:2 (if (i32.eqz - ;;@ overflow.ts:54:9 (i32.eq (get_local $1) - ;;@ overflow.ts:54:16 (i32.const -32768) ) ) @@ -536,12 +461,10 @@ (unreachable) ) ) - ;;@ overflow.ts:56:2 (set_local $1 (i32.shr_s (i32.shl (i32.sub - ;;@ overflow.ts:56:4 (get_local $1) (i32.const 1) ) @@ -550,13 +473,10 @@ (i32.const 16) ) ) - ;;@ overflow.ts:57:2 (if (i32.eqz - ;;@ overflow.ts:57:9 (i32.eq (get_local $1) - ;;@ overflow.ts:57:16 (i32.const 32767) ) ) @@ -570,14 +490,11 @@ (unreachable) ) ) - ;;@ overflow.ts:59:2 (set_local $0 - ;;@ overflow.ts:59:8 (tee_local $1 (i32.shr_s (i32.shl (i32.add - ;;@ overflow.ts:59:10 (get_local $1) (i32.const 1) ) @@ -587,13 +504,10 @@ ) ) ) - ;;@ overflow.ts:60:2 (if (i32.eqz - ;;@ overflow.ts:60:9 (i32.eq (get_local $1) - ;;@ overflow.ts:60:16 (i32.const -32768) ) ) @@ -607,14 +521,11 @@ (unreachable) ) ) - ;;@ overflow.ts:62:2 (set_local $0 - ;;@ overflow.ts:62:8 (tee_local $1 (i32.shr_s (i32.shl (i32.sub - ;;@ overflow.ts:62:10 (get_local $1) (i32.const 1) ) @@ -624,13 +535,10 @@ ) ) ) - ;;@ overflow.ts:63:2 (if (i32.eqz - ;;@ overflow.ts:63:9 (i32.eq (get_local $1) - ;;@ overflow.ts:63:16 (i32.const 32767) ) ) @@ -644,23 +552,19 @@ (unreachable) ) ) - ;;@ overflow.ts:65:2 (if (i32.eqz - ;;@ overflow.ts:65:9 (i32.eq (i32.shr_s (i32.shl (i32.add (get_local $1) - ;;@ overflow.ts:65:15 (i32.const 1) ) (i32.const 16) ) (i32.const 16) ) - ;;@ overflow.ts:65:20 (i32.const -32768) ) ) @@ -675,16 +579,11 @@ ) ) ) - ;;@ overflow.ts:69:0 (block - ;;@ overflow.ts:70:2 (set_local $0 - ;;@ overflow.ts:70:16 (i32.const 0) ) - ;;@ overflow.ts:71:2 (nop) - ;;@ overflow.ts:73:2 (set_local $0 (i32.and (i32.sub @@ -694,13 +593,10 @@ (i32.const 255) ) ) - ;;@ overflow.ts:74:2 (if (i32.eqz - ;;@ overflow.ts:74:9 (i32.eq (get_local $0) - ;;@ overflow.ts:74:16 (i32.const 255) ) ) @@ -714,7 +610,6 @@ (unreachable) ) ) - ;;@ overflow.ts:76:2 (set_local $0 (i32.and (i32.add @@ -724,13 +619,10 @@ (i32.const 255) ) ) - ;;@ overflow.ts:77:2 (if (i32.eqz - ;;@ overflow.ts:77:9 (i32.eq (get_local $0) - ;;@ overflow.ts:77:16 (i32.const 0) ) ) @@ -744,9 +636,7 @@ (unreachable) ) ) - ;;@ overflow.ts:79:2 (set_local $1 - ;;@ overflow.ts:79:8 (block (result i32) (set_local $2 (get_local $0) @@ -763,13 +653,10 @@ (get_local $2) ) ) - ;;@ overflow.ts:80:2 (if (i32.eqz - ;;@ overflow.ts:80:9 (i32.eq (get_local $0) - ;;@ overflow.ts:80:16 (i32.const 255) ) ) @@ -783,9 +670,7 @@ (unreachable) ) ) - ;;@ overflow.ts:82:2 (set_local $1 - ;;@ overflow.ts:82:8 (block (result i32) (set_local $2 (get_local $0) @@ -802,13 +687,10 @@ (get_local $2) ) ) - ;;@ overflow.ts:83:2 (if (i32.eqz - ;;@ overflow.ts:83:9 (i32.eq (get_local $0) - ;;@ overflow.ts:83:16 (i32.const 0) ) ) @@ -822,24 +704,19 @@ (unreachable) ) ) - ;;@ overflow.ts:85:2 (set_local $0 (i32.and (i32.sub - ;;@ overflow.ts:85:4 (get_local $0) (i32.const 1) ) (i32.const 255) ) ) - ;;@ overflow.ts:86:2 (if (i32.eqz - ;;@ overflow.ts:86:9 (i32.eq (get_local $0) - ;;@ overflow.ts:86:16 (i32.const 255) ) ) @@ -853,24 +730,19 @@ (unreachable) ) ) - ;;@ overflow.ts:88:2 (set_local $0 (i32.and (i32.add - ;;@ overflow.ts:88:4 (get_local $0) (i32.const 1) ) (i32.const 255) ) ) - ;;@ overflow.ts:89:2 (if (i32.eqz - ;;@ overflow.ts:89:9 (i32.eq (get_local $0) - ;;@ overflow.ts:89:16 (i32.const 0) ) ) @@ -884,13 +756,10 @@ (unreachable) ) ) - ;;@ overflow.ts:91:2 (set_local $1 - ;;@ overflow.ts:91:8 (tee_local $0 (i32.and (i32.sub - ;;@ overflow.ts:91:10 (get_local $0) (i32.const 1) ) @@ -898,13 +767,10 @@ ) ) ) - ;;@ overflow.ts:92:2 (if (i32.eqz - ;;@ overflow.ts:92:9 (i32.eq (get_local $0) - ;;@ overflow.ts:92:16 (i32.const 255) ) ) @@ -918,13 +784,10 @@ (unreachable) ) ) - ;;@ overflow.ts:94:2 (set_local $1 - ;;@ overflow.ts:94:8 (tee_local $0 (i32.and (i32.add - ;;@ overflow.ts:94:10 (get_local $0) (i32.const 1) ) @@ -932,13 +795,10 @@ ) ) ) - ;;@ overflow.ts:95:2 (if (i32.eqz - ;;@ overflow.ts:95:9 (i32.eq (get_local $0) - ;;@ overflow.ts:95:16 (i32.const 0) ) ) @@ -952,20 +812,16 @@ (unreachable) ) ) - ;;@ overflow.ts:97:2 (if (i32.eqz - ;;@ overflow.ts:97:9 (i32.eq (i32.and (i32.sub (get_local $0) - ;;@ overflow.ts:97:15 (i32.const 1) ) (i32.const 255) ) - ;;@ overflow.ts:97:20 (i32.const 255) ) ) @@ -980,16 +836,11 @@ ) ) ) - ;;@ overflow.ts:101:0 (block - ;;@ overflow.ts:102:2 (set_local $1 - ;;@ overflow.ts:102:17 (i32.const 0) ) - ;;@ overflow.ts:103:2 (nop) - ;;@ overflow.ts:105:2 (set_local $1 (i32.and (i32.sub @@ -999,13 +850,10 @@ (i32.const 65535) ) ) - ;;@ overflow.ts:106:2 (if (i32.eqz - ;;@ overflow.ts:106:9 (i32.eq (get_local $1) - ;;@ overflow.ts:106:16 (i32.const 65535) ) ) @@ -1019,7 +867,6 @@ (unreachable) ) ) - ;;@ overflow.ts:108:2 (set_local $1 (i32.and (i32.add @@ -1029,13 +876,10 @@ (i32.const 65535) ) ) - ;;@ overflow.ts:109:2 (if (i32.eqz - ;;@ overflow.ts:109:9 (i32.eq (get_local $1) - ;;@ overflow.ts:109:16 (i32.const 0) ) ) @@ -1049,9 +893,7 @@ (unreachable) ) ) - ;;@ overflow.ts:111:2 (set_local $0 - ;;@ overflow.ts:111:8 (block (result i32) (set_local $2 (get_local $1) @@ -1068,13 +910,10 @@ (get_local $2) ) ) - ;;@ overflow.ts:112:2 (if (i32.eqz - ;;@ overflow.ts:112:9 (i32.eq (get_local $1) - ;;@ overflow.ts:112:16 (i32.const 65535) ) ) @@ -1088,9 +927,7 @@ (unreachable) ) ) - ;;@ overflow.ts:114:2 (set_local $0 - ;;@ overflow.ts:114:8 (block (result i32) (set_local $2 (get_local $1) @@ -1107,13 +944,10 @@ (get_local $2) ) ) - ;;@ overflow.ts:115:2 (if (i32.eqz - ;;@ overflow.ts:115:9 (i32.eq (get_local $1) - ;;@ overflow.ts:115:16 (i32.const 0) ) ) @@ -1127,24 +961,19 @@ (unreachable) ) ) - ;;@ overflow.ts:117:2 (set_local $1 (i32.and (i32.sub - ;;@ overflow.ts:117:4 (get_local $1) (i32.const 1) ) (i32.const 65535) ) ) - ;;@ overflow.ts:118:2 (if (i32.eqz - ;;@ overflow.ts:118:9 (i32.eq (get_local $1) - ;;@ overflow.ts:118:16 (i32.const 65535) ) ) @@ -1158,24 +987,19 @@ (unreachable) ) ) - ;;@ overflow.ts:120:2 (set_local $1 (i32.and (i32.add - ;;@ overflow.ts:120:4 (get_local $1) (i32.const 1) ) (i32.const 65535) ) ) - ;;@ overflow.ts:121:2 (if (i32.eqz - ;;@ overflow.ts:121:9 (i32.eq (get_local $1) - ;;@ overflow.ts:121:16 (i32.const 0) ) ) @@ -1189,13 +1013,10 @@ (unreachable) ) ) - ;;@ overflow.ts:123:2 (set_local $0 - ;;@ overflow.ts:123:8 (tee_local $1 (i32.and (i32.sub - ;;@ overflow.ts:123:10 (get_local $1) (i32.const 1) ) @@ -1203,13 +1024,10 @@ ) ) ) - ;;@ overflow.ts:124:2 (if (i32.eqz - ;;@ overflow.ts:124:9 (i32.eq (get_local $1) - ;;@ overflow.ts:124:16 (i32.const 65535) ) ) @@ -1223,13 +1041,10 @@ (unreachable) ) ) - ;;@ overflow.ts:126:2 (set_local $0 - ;;@ overflow.ts:126:8 (tee_local $1 (i32.and (i32.add - ;;@ overflow.ts:126:10 (get_local $1) (i32.const 1) ) @@ -1237,13 +1052,10 @@ ) ) ) - ;;@ overflow.ts:127:2 (if (i32.eqz - ;;@ overflow.ts:127:9 (i32.eq (get_local $1) - ;;@ overflow.ts:127:16 (i32.const 0) ) ) @@ -1257,20 +1069,16 @@ (unreachable) ) ) - ;;@ overflow.ts:129:2 (if (i32.eqz - ;;@ overflow.ts:129:9 (i32.eq (i32.and (i32.sub (get_local $1) - ;;@ overflow.ts:129:15 (i32.const 1) ) (i32.const 65535) ) - ;;@ overflow.ts:129:20 (i32.const 65535) ) ) diff --git a/tests/compiler/portable-conversions.wat b/tests/compiler/portable-conversions.untouched.wat similarity index 58% rename from tests/compiler/portable-conversions.wat rename to tests/compiler/portable-conversions.untouched.wat index 064675c3..2dac0ce4 100644 --- a/tests/compiler/portable-conversions.wat +++ b/tests/compiler/portable-conversions.untouched.wat @@ -9,9 +9,7 @@ (export "memory" (memory $0)) (start $start) (func $start (; 0 ;) (type $v) - ;;@ portable-conversions.ts:6:0 (drop - ;;@ portable-conversions.ts:6:3 (i32.shr_s (i32.shl (get_global $portable-conversions/i) @@ -20,9 +18,7 @@ (i32.const 24) ) ) - ;;@ portable-conversions.ts:7:0 (drop - ;;@ portable-conversions.ts:7:3 (i32.shr_s (i32.shl (i32.wrap/i64 @@ -33,9 +29,7 @@ (i32.const 24) ) ) - ;;@ portable-conversions.ts:8:0 (drop - ;;@ portable-conversions.ts:8:3 (i32.shr_s (i32.shl (i32.trunc_s/f32 @@ -46,9 +40,7 @@ (i32.const 24) ) ) - ;;@ portable-conversions.ts:9:0 (drop - ;;@ portable-conversions.ts:9:3 (i32.shr_s (i32.shl (i32.trunc_s/f64 @@ -59,9 +51,7 @@ (i32.const 24) ) ) - ;;@ portable-conversions.ts:11:0 (drop - ;;@ portable-conversions.ts:11:4 (i32.shr_s (i32.shl (get_global $portable-conversions/i) @@ -70,9 +60,7 @@ (i32.const 16) ) ) - ;;@ portable-conversions.ts:12:0 (drop - ;;@ portable-conversions.ts:12:4 (i32.shr_s (i32.shl (i32.wrap/i64 @@ -83,9 +71,7 @@ (i32.const 16) ) ) - ;;@ portable-conversions.ts:13:0 (drop - ;;@ portable-conversions.ts:13:4 (i32.shr_s (i32.shl (i32.trunc_s/f32 @@ -96,9 +82,7 @@ (i32.const 16) ) ) - ;;@ portable-conversions.ts:14:0 (drop - ;;@ portable-conversions.ts:14:4 (i32.shr_s (i32.shl (i32.trunc_s/f64 @@ -109,95 +93,67 @@ (i32.const 16) ) ) - ;;@ portable-conversions.ts:16:0 (drop - ;;@ portable-conversions.ts:16:4 (get_global $portable-conversions/i) ) - ;;@ portable-conversions.ts:17:0 (drop - ;;@ portable-conversions.ts:17:4 (i32.wrap/i64 (get_global $portable-conversions/I) ) ) - ;;@ portable-conversions.ts:18:0 (drop - ;;@ portable-conversions.ts:18:4 (i32.trunc_s/f32 (get_global $portable-conversions/f) ) ) - ;;@ portable-conversions.ts:19:0 (drop - ;;@ portable-conversions.ts:19:4 (i32.trunc_s/f64 (get_global $portable-conversions/F) ) ) - ;;@ portable-conversions.ts:21:0 (drop - ;;@ portable-conversions.ts:21:4 (i64.extend_s/i32 (get_global $portable-conversions/i) ) ) - ;;@ portable-conversions.ts:22:0 (drop - ;;@ portable-conversions.ts:22:4 (get_global $portable-conversions/I) ) - ;;@ portable-conversions.ts:23:0 (drop - ;;@ portable-conversions.ts:23:4 (i64.trunc_s/f32 (get_global $portable-conversions/f) ) ) - ;;@ portable-conversions.ts:24:0 (drop - ;;@ portable-conversions.ts:24:4 (i64.trunc_s/f64 (get_global $portable-conversions/F) ) ) - ;;@ portable-conversions.ts:26:0 (drop - ;;@ portable-conversions.ts:26:6 (get_global $portable-conversions/i) ) - ;;@ portable-conversions.ts:27:0 (drop - ;;@ portable-conversions.ts:27:6 (i32.wrap/i64 (get_global $portable-conversions/I) ) ) - ;;@ portable-conversions.ts:28:0 (drop - ;;@ portable-conversions.ts:28:6 (i32.trunc_s/f32 (get_global $portable-conversions/f) ) ) - ;;@ portable-conversions.ts:29:0 (drop - ;;@ portable-conversions.ts:29:6 (i32.trunc_s/f64 (get_global $portable-conversions/F) ) ) - ;;@ portable-conversions.ts:31:0 (drop - ;;@ portable-conversions.ts:31:3 (i32.and (get_global $portable-conversions/i) (i32.const 255) ) ) - ;;@ portable-conversions.ts:32:0 (drop - ;;@ portable-conversions.ts:32:3 (i32.and (i32.wrap/i64 (get_global $portable-conversions/I) @@ -205,9 +161,7 @@ (i32.const 255) ) ) - ;;@ portable-conversions.ts:33:0 (drop - ;;@ portable-conversions.ts:33:3 (i32.and (i32.trunc_u/f32 (get_global $portable-conversions/f) @@ -215,9 +169,7 @@ (i32.const 255) ) ) - ;;@ portable-conversions.ts:34:0 (drop - ;;@ portable-conversions.ts:34:3 (i32.and (i32.trunc_u/f64 (get_global $portable-conversions/F) @@ -225,17 +177,13 @@ (i32.const 255) ) ) - ;;@ portable-conversions.ts:36:0 (drop - ;;@ portable-conversions.ts:36:4 (i32.and (get_global $portable-conversions/i) (i32.const 65535) ) ) - ;;@ portable-conversions.ts:37:0 (drop - ;;@ portable-conversions.ts:37:4 (i32.and (i32.wrap/i64 (get_global $portable-conversions/I) @@ -243,9 +191,7 @@ (i32.const 65535) ) ) - ;;@ portable-conversions.ts:38:0 (drop - ;;@ portable-conversions.ts:38:4 (i32.and (i32.trunc_u/f32 (get_global $portable-conversions/f) @@ -253,9 +199,7 @@ (i32.const 65535) ) ) - ;;@ portable-conversions.ts:39:0 (drop - ;;@ portable-conversions.ts:39:4 (i32.and (i32.trunc_u/f64 (get_global $portable-conversions/F) @@ -263,95 +207,67 @@ (i32.const 65535) ) ) - ;;@ portable-conversions.ts:41:0 (drop - ;;@ portable-conversions.ts:41:4 (get_global $portable-conversions/i) ) - ;;@ portable-conversions.ts:42:0 (drop - ;;@ portable-conversions.ts:42:4 (i32.wrap/i64 (get_global $portable-conversions/I) ) ) - ;;@ portable-conversions.ts:43:0 (drop - ;;@ portable-conversions.ts:43:4 (i32.trunc_u/f32 (get_global $portable-conversions/f) ) ) - ;;@ portable-conversions.ts:44:0 (drop - ;;@ portable-conversions.ts:44:4 (i32.trunc_u/f64 (get_global $portable-conversions/F) ) ) - ;;@ portable-conversions.ts:46:0 (drop - ;;@ portable-conversions.ts:46:4 (i64.extend_u/i32 (get_global $portable-conversions/i) ) ) - ;;@ portable-conversions.ts:47:0 (drop - ;;@ portable-conversions.ts:47:4 (get_global $portable-conversions/I) ) - ;;@ portable-conversions.ts:48:0 (drop - ;;@ portable-conversions.ts:48:4 (i64.trunc_u/f32 (get_global $portable-conversions/f) ) ) - ;;@ portable-conversions.ts:49:0 (drop - ;;@ portable-conversions.ts:49:4 (i64.trunc_u/f64 (get_global $portable-conversions/F) ) ) - ;;@ portable-conversions.ts:51:0 (drop - ;;@ portable-conversions.ts:51:6 (get_global $portable-conversions/i) ) - ;;@ portable-conversions.ts:52:0 (drop - ;;@ portable-conversions.ts:52:6 (i32.wrap/i64 (get_global $portable-conversions/I) ) ) - ;;@ portable-conversions.ts:53:0 (drop - ;;@ portable-conversions.ts:53:6 (i32.trunc_u/f32 (get_global $portable-conversions/f) ) ) - ;;@ portable-conversions.ts:54:0 (drop - ;;@ portable-conversions.ts:54:6 (i32.trunc_u/f64 (get_global $portable-conversions/F) ) ) - ;;@ portable-conversions.ts:56:0 (drop - ;;@ portable-conversions.ts:56:5 (i32.and (get_global $portable-conversions/i) (i32.const 1) ) ) - ;;@ portable-conversions.ts:57:0 (drop - ;;@ portable-conversions.ts:57:5 (i32.and (i32.wrap/i64 (get_global $portable-conversions/I) @@ -359,9 +275,7 @@ (i32.const 1) ) ) - ;;@ portable-conversions.ts:58:0 (drop - ;;@ portable-conversions.ts:58:5 (i32.and (i32.trunc_u/f32 (get_global $portable-conversions/f) @@ -369,9 +283,7 @@ (i32.const 1) ) ) - ;;@ portable-conversions.ts:59:0 (drop - ;;@ portable-conversions.ts:59:5 (i32.and (i32.trunc_u/f64 (get_global $portable-conversions/F) @@ -379,56 +291,40 @@ (i32.const 1) ) ) - ;;@ portable-conversions.ts:61:0 (drop - ;;@ portable-conversions.ts:61:4 (f32.convert_s/i32 (get_global $portable-conversions/i) ) ) - ;;@ portable-conversions.ts:62:0 (drop - ;;@ portable-conversions.ts:62:4 (f32.convert_s/i64 (get_global $portable-conversions/I) ) ) - ;;@ portable-conversions.ts:63:0 (drop - ;;@ portable-conversions.ts:63:4 (get_global $portable-conversions/f) ) - ;;@ portable-conversions.ts:64:0 (drop - ;;@ portable-conversions.ts:64:4 (f32.demote/f64 (get_global $portable-conversions/F) ) ) - ;;@ portable-conversions.ts:66:0 (drop - ;;@ portable-conversions.ts:66:4 (f64.convert_s/i32 (get_global $portable-conversions/i) ) ) - ;;@ portable-conversions.ts:67:0 (drop - ;;@ portable-conversions.ts:67:4 (f64.convert_s/i64 (get_global $portable-conversions/I) ) ) - ;;@ portable-conversions.ts:68:0 (drop - ;;@ portable-conversions.ts:68:4 (f64.promote/f32 (get_global $portable-conversions/f) ) ) - ;;@ portable-conversions.ts:69:0 (drop - ;;@ portable-conversions.ts:69:4 (get_global $portable-conversions/F) ) ) diff --git a/tests/compiler/recursive.wat b/tests/compiler/recursive.untouched.wat similarity index 66% rename from tests/compiler/recursive.wat rename to tests/compiler/recursive.untouched.wat index f2fede86..0e60f3b3 100644 --- a/tests/compiler/recursive.wat +++ b/tests/compiler/recursive.untouched.wat @@ -5,37 +5,26 @@ (export "fib" (func $recursive/fib)) (export "memory" (memory $0)) (func $recursive/fib (; 0 ;) (type $ii) (param $0 i32) (result i32) - ;;@ recursive.ts:2:2 (if - ;;@ recursive.ts:2:6 (i32.le_s (get_local $0) - ;;@ recursive.ts:2:11 (i32.const 1) ) - ;;@ recursive.ts:2:21 (return (i32.const 1) ) ) - ;;@ recursive.ts:3:31 (return - ;;@ recursive.ts:3:9 (i32.add (call $recursive/fib - ;;@ recursive.ts:3:13 (i32.sub (get_local $0) - ;;@ recursive.ts:3:17 (i32.const 1) ) ) - ;;@ recursive.ts:3:22 (call $recursive/fib - ;;@ recursive.ts:3:26 (i32.sub (get_local $0) - ;;@ recursive.ts:3:30 (i32.const 2) ) ) diff --git a/tests/compiler/reexport.wat b/tests/compiler/reexport.untouched.wat similarity index 79% rename from tests/compiler/reexport.wat rename to tests/compiler/reexport.untouched.wat index b73ebddf..4ae6307d 100644 --- a/tests/compiler/reexport.wat +++ b/tests/compiler/reexport.untouched.wat @@ -19,34 +19,25 @@ (export "memory" (memory $0)) (start $start) (func $export/add (; 0 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32) - ;;@ export.ts:2:13 (return - ;;@ export.ts:2:9 (i32.add (get_local $0) - ;;@ export.ts:2:13 (get_local $1) ) ) ) (func $export/sub (; 1 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32) - ;;@ export.ts:6:13 (return - ;;@ export.ts:6:9 (i32.sub (get_local $0) - ;;@ export.ts:6:13 (get_local $1) ) ) ) (func $export/mul (; 2 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32) - ;;@ export.ts:12:13 (return - ;;@ export.ts:12:9 (i32.mul (get_local $0) - ;;@ export.ts:12:13 (get_local $1) ) ) @@ -54,20 +45,14 @@ (func $export/ns.two (; 3 ;) (type $v) ) (func $start (; 4 ;) (type $v) - ;;@ reexport.ts:24:0 (drop (i32.add (call $export/add - ;;@ reexport.ts:24:13 (i32.const 1) - ;;@ reexport.ts:24:16 (i32.const 2) ) - ;;@ reexport.ts:24:21 (call $export/mul - ;;@ reexport.ts:24:34 (i32.const 3) - ;;@ reexport.ts:24:37 (i32.const 4) ) ) diff --git a/tests/compiler/retain-i32.wat b/tests/compiler/retain-i32.untouched.wat similarity index 67% rename from tests/compiler/retain-i32.wat rename to tests/compiler/retain-i32.untouched.wat index 352ecdc8..ff6e8883 100644 --- a/tests/compiler/retain-i32.wat +++ b/tests/compiler/retain-i32.untouched.wat @@ -11,28 +11,22 @@ (export "memory" (memory $0)) (start $start) (func $retain-i32/test (; 1 ;) (type $iiv) (param $0 i32) (param $1 i32) - ;;@ retain-i32.ts:4:2 (if (i32.eqz - ;;@ retain-i32.ts:4:9 (i32.eq (i32.shr_s (i32.shl - ;;@ retain-i32.ts:4:14 (i32.add (get_local $0) - ;;@ retain-i32.ts:4:18 (get_local $1) ) (i32.const 24) ) (i32.const 24) ) - ;;@ retain-i32.ts:4:24 (i32.shr_s (i32.shl (i32.add - ;;@ retain-i32.ts:4:29 (i32.shr_s (i32.shl (get_local $0) @@ -40,7 +34,6 @@ ) (i32.const 24) ) - ;;@ retain-i32.ts:4:37 (i32.shr_s (i32.shl (get_local $1) @@ -65,28 +58,22 @@ (unreachable) ) ) - ;;@ retain-i32.ts:5:2 (if (i32.eqz - ;;@ retain-i32.ts:5:9 (i32.eq (i32.shr_s (i32.shl - ;;@ retain-i32.ts:5:14 (i32.sub (get_local $0) - ;;@ retain-i32.ts:5:18 (get_local $1) ) (i32.const 24) ) (i32.const 24) ) - ;;@ retain-i32.ts:5:24 (i32.shr_s (i32.shl (i32.sub - ;;@ retain-i32.ts:5:29 (i32.shr_s (i32.shl (get_local $0) @@ -94,7 +81,6 @@ ) (i32.const 24) ) - ;;@ retain-i32.ts:5:37 (i32.shr_s (i32.shl (get_local $1) @@ -119,28 +105,22 @@ (unreachable) ) ) - ;;@ retain-i32.ts:6:2 (if (i32.eqz - ;;@ retain-i32.ts:6:9 (i32.eq (i32.shr_s (i32.shl - ;;@ retain-i32.ts:6:14 (i32.mul (get_local $0) - ;;@ retain-i32.ts:6:18 (get_local $1) ) (i32.const 24) ) (i32.const 24) ) - ;;@ retain-i32.ts:6:24 (i32.shr_s (i32.shl (i32.mul - ;;@ retain-i32.ts:6:29 (i32.shr_s (i32.shl (get_local $0) @@ -148,7 +128,6 @@ ) (i32.const 24) ) - ;;@ retain-i32.ts:6:37 (i32.shr_s (i32.shl (get_local $1) @@ -173,28 +152,22 @@ (unreachable) ) ) - ;;@ retain-i32.ts:7:2 (if (i32.eqz - ;;@ retain-i32.ts:7:9 (i32.eq (i32.shr_s (i32.shl - ;;@ retain-i32.ts:7:14 (i32.and (get_local $0) - ;;@ retain-i32.ts:7:18 (get_local $1) ) (i32.const 24) ) (i32.const 24) ) - ;;@ retain-i32.ts:7:24 (i32.shr_s (i32.shl (i32.and - ;;@ retain-i32.ts:7:29 (i32.shr_s (i32.shl (get_local $0) @@ -202,7 +175,6 @@ ) (i32.const 24) ) - ;;@ retain-i32.ts:7:37 (i32.shr_s (i32.shl (get_local $1) @@ -227,28 +199,22 @@ (unreachable) ) ) - ;;@ retain-i32.ts:8:2 (if (i32.eqz - ;;@ retain-i32.ts:8:9 (i32.eq (i32.shr_s (i32.shl - ;;@ retain-i32.ts:8:14 (i32.or (get_local $0) - ;;@ retain-i32.ts:8:18 (get_local $1) ) (i32.const 24) ) (i32.const 24) ) - ;;@ retain-i32.ts:8:24 (i32.shr_s (i32.shl (i32.or - ;;@ retain-i32.ts:8:29 (i32.shr_s (i32.shl (get_local $0) @@ -256,7 +222,6 @@ ) (i32.const 24) ) - ;;@ retain-i32.ts:8:37 (i32.shr_s (i32.shl (get_local $1) @@ -281,28 +246,22 @@ (unreachable) ) ) - ;;@ retain-i32.ts:9:2 (if (i32.eqz - ;;@ retain-i32.ts:9:9 (i32.eq (i32.shr_s (i32.shl - ;;@ retain-i32.ts:9:14 (i32.xor (get_local $0) - ;;@ retain-i32.ts:9:18 (get_local $1) ) (i32.const 24) ) (i32.const 24) ) - ;;@ retain-i32.ts:9:24 (i32.shr_s (i32.shl (i32.xor - ;;@ retain-i32.ts:9:29 (i32.shr_s (i32.shl (get_local $0) @@ -310,7 +269,6 @@ ) (i32.const 24) ) - ;;@ retain-i32.ts:9:37 (i32.shr_s (i32.shl (get_local $1) @@ -335,28 +293,22 @@ (unreachable) ) ) - ;;@ retain-i32.ts:10:2 (if (i32.eqz - ;;@ retain-i32.ts:10:9 (i32.eq (i32.shr_s (i32.shl - ;;@ retain-i32.ts:10:14 (i32.shl (get_local $0) - ;;@ retain-i32.ts:10:19 (get_local $1) ) (i32.const 24) ) (i32.const 24) ) - ;;@ retain-i32.ts:10:25 (i32.shr_s (i32.shl (i32.shl - ;;@ retain-i32.ts:10:30 (i32.shr_s (i32.shl (get_local $0) @@ -364,7 +316,6 @@ ) (i32.const 24) ) - ;;@ retain-i32.ts:10:39 (i32.shr_s (i32.shl (get_local $1) @@ -389,29 +340,22 @@ (unreachable) ) ) - ;;@ retain-i32.ts:13:2 (if (i32.eqz - ;;@ retain-i32.ts:13:9 (i32.eq (i32.and - ;;@ retain-i32.ts:13:14 (i32.add (get_local $0) - ;;@ retain-i32.ts:13:18 (get_local $1) ) (i32.const 255) ) - ;;@ retain-i32.ts:13:24 (i32.and (i32.add - ;;@ retain-i32.ts:13:29 (i32.and (get_local $0) (i32.const 255) ) - ;;@ retain-i32.ts:13:37 (i32.and (get_local $1) (i32.const 255) @@ -431,29 +375,22 @@ (unreachable) ) ) - ;;@ retain-i32.ts:14:2 (if (i32.eqz - ;;@ retain-i32.ts:14:9 (i32.eq (i32.and - ;;@ retain-i32.ts:14:14 (i32.sub (get_local $0) - ;;@ retain-i32.ts:14:18 (get_local $1) ) (i32.const 255) ) - ;;@ retain-i32.ts:14:24 (i32.and (i32.sub - ;;@ retain-i32.ts:14:29 (i32.and (get_local $0) (i32.const 255) ) - ;;@ retain-i32.ts:14:37 (i32.and (get_local $1) (i32.const 255) @@ -473,29 +410,22 @@ (unreachable) ) ) - ;;@ retain-i32.ts:15:2 (if (i32.eqz - ;;@ retain-i32.ts:15:9 (i32.eq (i32.and - ;;@ retain-i32.ts:15:14 (i32.mul (get_local $0) - ;;@ retain-i32.ts:15:18 (get_local $1) ) (i32.const 255) ) - ;;@ retain-i32.ts:15:24 (i32.and (i32.mul - ;;@ retain-i32.ts:15:29 (i32.and (get_local $0) (i32.const 255) ) - ;;@ retain-i32.ts:15:37 (i32.and (get_local $1) (i32.const 255) @@ -515,29 +445,22 @@ (unreachable) ) ) - ;;@ retain-i32.ts:16:2 (if (i32.eqz - ;;@ retain-i32.ts:16:9 (i32.eq (i32.and - ;;@ retain-i32.ts:16:14 (i32.and (get_local $0) - ;;@ retain-i32.ts:16:18 (get_local $1) ) (i32.const 255) ) - ;;@ retain-i32.ts:16:24 (i32.and (i32.and - ;;@ retain-i32.ts:16:29 (i32.and (get_local $0) (i32.const 255) ) - ;;@ retain-i32.ts:16:37 (i32.and (get_local $1) (i32.const 255) @@ -557,29 +480,22 @@ (unreachable) ) ) - ;;@ retain-i32.ts:17:2 (if (i32.eqz - ;;@ retain-i32.ts:17:9 (i32.eq (i32.and - ;;@ retain-i32.ts:17:14 (i32.or (get_local $0) - ;;@ retain-i32.ts:17:18 (get_local $1) ) (i32.const 255) ) - ;;@ retain-i32.ts:17:24 (i32.and (i32.or - ;;@ retain-i32.ts:17:29 (i32.and (get_local $0) (i32.const 255) ) - ;;@ retain-i32.ts:17:37 (i32.and (get_local $1) (i32.const 255) @@ -599,29 +515,22 @@ (unreachable) ) ) - ;;@ retain-i32.ts:18:2 (if (i32.eqz - ;;@ retain-i32.ts:18:9 (i32.eq (i32.and - ;;@ retain-i32.ts:18:14 (i32.xor (get_local $0) - ;;@ retain-i32.ts:18:18 (get_local $1) ) (i32.const 255) ) - ;;@ retain-i32.ts:18:24 (i32.and (i32.xor - ;;@ retain-i32.ts:18:29 (i32.and (get_local $0) (i32.const 255) ) - ;;@ retain-i32.ts:18:37 (i32.and (get_local $1) (i32.const 255) @@ -641,29 +550,22 @@ (unreachable) ) ) - ;;@ retain-i32.ts:19:2 (if (i32.eqz - ;;@ retain-i32.ts:19:9 (i32.eq (i32.and - ;;@ retain-i32.ts:19:14 (i32.shl (get_local $0) - ;;@ retain-i32.ts:19:19 (get_local $1) ) (i32.const 255) ) - ;;@ retain-i32.ts:19:25 (i32.and (i32.shl - ;;@ retain-i32.ts:19:30 (i32.and (get_local $0) (i32.const 255) ) - ;;@ retain-i32.ts:19:39 (i32.and (get_local $1) (i32.const 255) @@ -686,273 +588,161 @@ ) (func $start (; 2 ;) (type $v) (local $0 i32) - ;;@ retain-i32.ts:23:0 (call $retain-i32/test - ;;@ retain-i32.ts:23:5 (i32.const 0) - ;;@ retain-i32.ts:23:8 (i32.const 127) ) - ;;@ retain-i32.ts:24:0 (call $retain-i32/test - ;;@ retain-i32.ts:24:5 (i32.const 127) - ;;@ retain-i32.ts:24:19 (i32.const 0) ) - ;;@ retain-i32.ts:26:0 (call $retain-i32/test - ;;@ retain-i32.ts:26:5 (i32.const 1) - ;;@ retain-i32.ts:26:8 (i32.const 127) ) - ;;@ retain-i32.ts:27:0 (call $retain-i32/test - ;;@ retain-i32.ts:27:5 (i32.const 127) - ;;@ retain-i32.ts:27:19 (i32.const 1) ) - ;;@ retain-i32.ts:29:0 (call $retain-i32/test - ;;@ retain-i32.ts:29:5 (i32.const -1) - ;;@ retain-i32.ts:29:9 (i32.const 127) ) - ;;@ retain-i32.ts:30:0 (call $retain-i32/test - ;;@ retain-i32.ts:30:5 (i32.const 127) - ;;@ retain-i32.ts:30:19 (i32.const -1) ) - ;;@ retain-i32.ts:32:0 (call $retain-i32/test - ;;@ retain-i32.ts:32:5 (i32.const 0) - ;;@ retain-i32.ts:32:8 (i32.const -128) ) - ;;@ retain-i32.ts:33:0 (call $retain-i32/test - ;;@ retain-i32.ts:33:5 (i32.const -128) - ;;@ retain-i32.ts:33:19 (i32.const 0) ) - ;;@ retain-i32.ts:35:0 (call $retain-i32/test - ;;@ retain-i32.ts:35:5 (i32.const 1) - ;;@ retain-i32.ts:35:8 (i32.const -128) ) - ;;@ retain-i32.ts:36:0 (call $retain-i32/test - ;;@ retain-i32.ts:36:5 (i32.const -128) - ;;@ retain-i32.ts:36:19 (i32.const 1) ) - ;;@ retain-i32.ts:38:0 (call $retain-i32/test - ;;@ retain-i32.ts:38:5 (i32.const -1) - ;;@ retain-i32.ts:38:9 (i32.const -128) ) - ;;@ retain-i32.ts:39:0 (call $retain-i32/test - ;;@ retain-i32.ts:39:5 (i32.const -128) - ;;@ retain-i32.ts:39:19 (i32.const -1) ) - ;;@ retain-i32.ts:41:0 (call $retain-i32/test - ;;@ retain-i32.ts:41:5 (i32.const 127) - ;;@ retain-i32.ts:41:19 (i32.const 127) ) - ;;@ retain-i32.ts:42:0 (call $retain-i32/test - ;;@ retain-i32.ts:42:5 (i32.const -128) - ;;@ retain-i32.ts:42:19 (i32.const -128) ) - ;;@ retain-i32.ts:43:0 (call $retain-i32/test - ;;@ retain-i32.ts:43:5 (i32.const 127) - ;;@ retain-i32.ts:43:19 (i32.const -128) ) - ;;@ retain-i32.ts:44:0 (call $retain-i32/test - ;;@ retain-i32.ts:44:5 (i32.const -128) - ;;@ retain-i32.ts:44:19 (i32.const 127) ) - ;;@ retain-i32.ts:47:0 (call $retain-i32/test - ;;@ retain-i32.ts:47:5 (i32.const 0) - ;;@ retain-i32.ts:47:8 (i32.const 255) ) - ;;@ retain-i32.ts:48:0 (call $retain-i32/test - ;;@ retain-i32.ts:48:5 (i32.const 255) - ;;@ retain-i32.ts:48:19 (i32.const 0) ) - ;;@ retain-i32.ts:50:0 (call $retain-i32/test - ;;@ retain-i32.ts:50:5 (i32.const 1) - ;;@ retain-i32.ts:50:8 (i32.const 255) ) - ;;@ retain-i32.ts:51:0 (call $retain-i32/test - ;;@ retain-i32.ts:51:5 (i32.const 255) - ;;@ retain-i32.ts:51:19 (i32.const 1) ) - ;;@ retain-i32.ts:53:0 (call $retain-i32/test - ;;@ retain-i32.ts:53:5 (i32.const -1) - ;;@ retain-i32.ts:53:9 (i32.const 255) ) - ;;@ retain-i32.ts:54:0 (call $retain-i32/test - ;;@ retain-i32.ts:54:5 (i32.const 255) - ;;@ retain-i32.ts:54:19 (i32.const -1) ) - ;;@ retain-i32.ts:56:0 (call $retain-i32/test - ;;@ retain-i32.ts:56:5 (i32.const 255) - ;;@ retain-i32.ts:56:19 (i32.const 255) ) - ;;@ retain-i32.ts:59:0 (block $break|0 - ;;@ retain-i32.ts:59:5 (set_local $0 - ;;@ retain-i32.ts:59:18 (i32.const -128) ) (loop $continue|0 (if - ;;@ retain-i32.ts:59:32 (i32.le_s (get_local $0) - ;;@ retain-i32.ts:59:37 (i32.const 255) ) (block (block - ;;@ retain-i32.ts:60:2 (call $retain-i32/test - ;;@ retain-i32.ts:60:7 (i32.const 0) - ;;@ retain-i32.ts:60:10 (get_local $0) ) - ;;@ retain-i32.ts:61:2 (call $retain-i32/test - ;;@ retain-i32.ts:61:7 (i32.const 1) - ;;@ retain-i32.ts:61:10 (get_local $0) ) - ;;@ retain-i32.ts:62:2 (call $retain-i32/test - ;;@ retain-i32.ts:62:7 (i32.const -1) - ;;@ retain-i32.ts:62:11 (get_local $0) ) - ;;@ retain-i32.ts:63:2 (call $retain-i32/test - ;;@ retain-i32.ts:63:7 (i32.const -128) - ;;@ retain-i32.ts:63:21 (get_local $0) ) - ;;@ retain-i32.ts:64:2 (call $retain-i32/test - ;;@ retain-i32.ts:64:7 (i32.const 127) - ;;@ retain-i32.ts:64:21 (get_local $0) ) - ;;@ retain-i32.ts:65:2 (call $retain-i32/test - ;;@ retain-i32.ts:65:7 (i32.const 255) - ;;@ retain-i32.ts:65:21 (get_local $0) ) - ;;@ retain-i32.ts:66:2 (call $retain-i32/test - ;;@ retain-i32.ts:66:7 (i32.const -32768) - ;;@ retain-i32.ts:66:22 (get_local $0) ) - ;;@ retain-i32.ts:67:2 (call $retain-i32/test - ;;@ retain-i32.ts:67:7 (i32.const 32767) - ;;@ retain-i32.ts:67:22 (get_local $0) ) - ;;@ retain-i32.ts:68:2 (call $retain-i32/test - ;;@ retain-i32.ts:68:7 (i32.const 65535) - ;;@ retain-i32.ts:68:22 (get_local $0) ) - ;;@ retain-i32.ts:69:2 (call $retain-i32/test - ;;@ retain-i32.ts:69:7 (i32.const 2147483647) - ;;@ retain-i32.ts:69:22 (get_local $0) ) - ;;@ retain-i32.ts:70:2 (call $retain-i32/test - ;;@ retain-i32.ts:70:7 (i32.const -2147483648) - ;;@ retain-i32.ts:70:22 (get_local $0) ) - ;;@ retain-i32.ts:71:2 (call $retain-i32/test - ;;@ retain-i32.ts:71:7 (i32.const -1) - ;;@ retain-i32.ts:71:22 (get_local $0) ) ) - ;;@ retain-i32.ts:59:51 (set_local $0 (i32.add - ;;@ retain-i32.ts:59:53 (get_local $0) (i32.const 1) ) @@ -962,18 +752,14 @@ ) ) ) - ;;@ retain-i32.ts:77:0 (set_global $retain-i32/si - ;;@ retain-i32.ts:77:5 (i32.shr_s (i32.shl (i32.add (i32.add (i32.const 127) - ;;@ retain-i32.ts:77:11 (i32.const 127) ) - ;;@ retain-i32.ts:77:17 (i32.const 1) ) (i32.const 24) @@ -981,13 +767,10 @@ (i32.const 24) ) ) - ;;@ retain-i32.ts:78:0 (if (i32.eqz - ;;@ retain-i32.ts:78:7 (i32.eq (get_global $retain-i32/si) - ;;@ retain-i32.ts:78:13 (i32.const -1) ) ) @@ -1001,18 +784,14 @@ (unreachable) ) ) - ;;@ retain-i32.ts:80:0 (set_global $retain-i32/si - ;;@ retain-i32.ts:80:5 (i32.shr_s (i32.shl (i32.sub (i32.sub (i32.const 127) - ;;@ retain-i32.ts:80:11 (i32.const 1) ) - ;;@ retain-i32.ts:80:15 (i32.const 127) ) (i32.const 24) @@ -1020,13 +799,10 @@ (i32.const 24) ) ) - ;;@ retain-i32.ts:81:0 (if (i32.eqz - ;;@ retain-i32.ts:81:7 (i32.eq (get_global $retain-i32/si) - ;;@ retain-i32.ts:81:13 (i32.const -1) ) ) @@ -1040,14 +816,11 @@ (unreachable) ) ) - ;;@ retain-i32.ts:83:0 (set_global $retain-i32/si - ;;@ retain-i32.ts:83:5 (i32.shr_s (i32.shl (i32.mul (i32.const 127) - ;;@ retain-i32.ts:83:11 (i32.const 2) ) (i32.const 24) @@ -1055,13 +828,10 @@ (i32.const 24) ) ) - ;;@ retain-i32.ts:84:0 (if (i32.eqz - ;;@ retain-i32.ts:84:7 (i32.eq (get_global $retain-i32/si) - ;;@ retain-i32.ts:84:13 (i32.const -2) ) ) @@ -1075,14 +845,11 @@ (unreachable) ) ) - ;;@ retain-i32.ts:86:0 (set_global $retain-i32/si - ;;@ retain-i32.ts:86:5 (i32.shr_s (i32.shl (i32.sub (i32.const 0) - ;;@ retain-i32.ts:86:6 (i32.const -128) ) (i32.const 24) @@ -1090,13 +857,10 @@ (i32.const 24) ) ) - ;;@ retain-i32.ts:87:0 (if (i32.eqz - ;;@ retain-i32.ts:87:7 (i32.eq (get_global $retain-i32/si) - ;;@ retain-i32.ts:87:13 (i32.const -128) ) ) @@ -1110,14 +874,11 @@ (unreachable) ) ) - ;;@ retain-i32.ts:89:0 (set_global $retain-i32/si - ;;@ retain-i32.ts:89:5 (i32.shr_s (i32.shl (i32.mul (i32.const -128) - ;;@ retain-i32.ts:89:12 (i32.const -1) ) (i32.const 24) @@ -1125,13 +886,10 @@ (i32.const 24) ) ) - ;;@ retain-i32.ts:90:0 (if (i32.eqz - ;;@ retain-i32.ts:90:7 (i32.eq (get_global $retain-i32/si) - ;;@ retain-i32.ts:90:13 (i32.const -128) ) ) @@ -1145,14 +903,11 @@ (unreachable) ) ) - ;;@ retain-i32.ts:92:0 (set_global $retain-i32/si - ;;@ retain-i32.ts:92:5 (i32.shr_s (i32.shl (i32.div_s (i32.const 127) - ;;@ retain-i32.ts:92:11 (i32.const -1) ) (i32.const 24) @@ -1160,13 +915,10 @@ (i32.const 24) ) ) - ;;@ retain-i32.ts:93:0 (if (i32.eqz - ;;@ retain-i32.ts:93:7 (i32.eq (get_global $retain-i32/si) - ;;@ retain-i32.ts:93:13 (i32.const -127) ) ) @@ -1180,14 +932,11 @@ (unreachable) ) ) - ;;@ retain-i32.ts:95:0 (set_global $retain-i32/si - ;;@ retain-i32.ts:95:5 (i32.shr_s (i32.shl (i32.div_s (i32.const -128) - ;;@ retain-i32.ts:95:12 (i32.const -1) ) (i32.const 24) @@ -1195,13 +944,10 @@ (i32.const 24) ) ) - ;;@ retain-i32.ts:96:0 (if (i32.eqz - ;;@ retain-i32.ts:96:7 (i32.eq (get_global $retain-i32/si) - ;;@ retain-i32.ts:96:13 (i32.const -128) ) ) @@ -1215,22 +961,16 @@ (unreachable) ) ) - ;;@ retain-i32.ts:98:0 (set_global $retain-i32/si - ;;@ retain-i32.ts:98:5 (i32.rem_s (i32.const 127) - ;;@ retain-i32.ts:98:11 (i32.const 2) ) ) - ;;@ retain-i32.ts:99:0 (if (i32.eqz - ;;@ retain-i32.ts:99:7 (i32.eq (get_global $retain-i32/si) - ;;@ retain-i32.ts:99:13 (i32.const 1) ) ) @@ -1244,22 +984,16 @@ (unreachable) ) ) - ;;@ retain-i32.ts:101:0 (set_global $retain-i32/si - ;;@ retain-i32.ts:101:5 (i32.rem_s (i32.const 1) - ;;@ retain-i32.ts:101:9 (i32.const 127) ) ) - ;;@ retain-i32.ts:102:0 (if (i32.eqz - ;;@ retain-i32.ts:102:7 (i32.eq (get_global $retain-i32/si) - ;;@ retain-i32.ts:102:13 (i32.const 1) ) ) @@ -1273,22 +1007,16 @@ (unreachable) ) ) - ;;@ retain-i32.ts:104:0 (set_global $retain-i32/si - ;;@ retain-i32.ts:104:5 (i32.rem_s (i32.const -128) - ;;@ retain-i32.ts:104:12 (i32.const 2) ) ) - ;;@ retain-i32.ts:105:0 (if (i32.eqz - ;;@ retain-i32.ts:105:7 (i32.eq (get_global $retain-i32/si) - ;;@ retain-i32.ts:105:13 (i32.const 0) ) ) @@ -1302,22 +1030,16 @@ (unreachable) ) ) - ;;@ retain-i32.ts:107:0 (set_global $retain-i32/si - ;;@ retain-i32.ts:107:5 (i32.rem_s (i32.const 1) - ;;@ retain-i32.ts:107:9 (i32.const -128) ) ) - ;;@ retain-i32.ts:108:0 (if (i32.eqz - ;;@ retain-i32.ts:108:7 (i32.eq (get_global $retain-i32/si) - ;;@ retain-i32.ts:108:13 (i32.const 1) ) ) @@ -1331,29 +1053,22 @@ (unreachable) ) ) - ;;@ retain-i32.ts:112:0 (set_global $retain-i32/ui - ;;@ retain-i32.ts:112:5 (i32.and (i32.add (i32.add (i32.const 255) - ;;@ retain-i32.ts:112:11 (i32.const 255) ) - ;;@ retain-i32.ts:112:17 (i32.const 1) ) (i32.const 255) ) ) - ;;@ retain-i32.ts:113:0 (if (i32.eqz - ;;@ retain-i32.ts:113:7 (i32.eq (get_global $retain-i32/ui) - ;;@ retain-i32.ts:113:13 (i32.const 255) ) ) @@ -1367,29 +1082,22 @@ (unreachable) ) ) - ;;@ retain-i32.ts:115:0 (set_global $retain-i32/ui - ;;@ retain-i32.ts:115:5 (i32.and (i32.sub (i32.sub (i32.const 255) - ;;@ retain-i32.ts:115:11 (i32.const 1) ) - ;;@ retain-i32.ts:115:15 (i32.const 255) ) (i32.const 255) ) ) - ;;@ retain-i32.ts:116:0 (if (i32.eqz - ;;@ retain-i32.ts:116:7 (i32.eq (get_global $retain-i32/ui) - ;;@ retain-i32.ts:116:13 (i32.const 255) ) ) @@ -1403,25 +1111,19 @@ (unreachable) ) ) - ;;@ retain-i32.ts:118:0 (set_global $retain-i32/ui - ;;@ retain-i32.ts:118:5 (i32.and (i32.mul (i32.const 255) - ;;@ retain-i32.ts:118:11 (i32.const 2) ) (i32.const 255) ) ) - ;;@ retain-i32.ts:119:0 (if (i32.eqz - ;;@ retain-i32.ts:119:7 (i32.eq (get_global $retain-i32/ui) - ;;@ retain-i32.ts:119:13 (i32.const 254) ) ) @@ -1435,25 +1137,19 @@ (unreachable) ) ) - ;;@ retain-i32.ts:121:0 (set_global $retain-i32/ui - ;;@ retain-i32.ts:121:5 (i32.and (i32.mul (i32.const 255) - ;;@ retain-i32.ts:121:11 (i32.const 255) ) (i32.const 255) ) ) - ;;@ retain-i32.ts:122:0 (if (i32.eqz - ;;@ retain-i32.ts:122:7 (i32.eq (get_global $retain-i32/ui) - ;;@ retain-i32.ts:122:13 (i32.const 1) ) ) @@ -1467,25 +1163,19 @@ (unreachable) ) ) - ;;@ retain-i32.ts:124:0 (set_global $retain-i32/ui - ;;@ retain-i32.ts:124:5 (i32.and (i32.div_u (i32.const 255) - ;;@ retain-i32.ts:124:11 (i32.const 255) ) (i32.const 255) ) ) - ;;@ retain-i32.ts:125:0 (if (i32.eqz - ;;@ retain-i32.ts:125:7 (i32.eq (get_global $retain-i32/ui) - ;;@ retain-i32.ts:125:13 (i32.const 1) ) ) @@ -1499,22 +1189,16 @@ (unreachable) ) ) - ;;@ retain-i32.ts:127:0 (set_global $retain-i32/ui - ;;@ retain-i32.ts:127:5 (i32.rem_u (i32.const 255) - ;;@ retain-i32.ts:127:11 (i32.const 2) ) ) - ;;@ retain-i32.ts:128:0 (if (i32.eqz - ;;@ retain-i32.ts:128:7 (i32.eq (get_global $retain-i32/ui) - ;;@ retain-i32.ts:128:13 (i32.const 1) ) ) @@ -1528,22 +1212,16 @@ (unreachable) ) ) - ;;@ retain-i32.ts:130:0 (set_global $retain-i32/ui - ;;@ retain-i32.ts:130:5 (i32.rem_u (i32.const 255) - ;;@ retain-i32.ts:130:11 (i32.const 255) ) ) - ;;@ retain-i32.ts:131:0 (if (i32.eqz - ;;@ retain-i32.ts:131:7 (i32.eq (get_global $retain-i32/ui) - ;;@ retain-i32.ts:131:13 (i32.const 0) ) ) diff --git a/tests/compiler/scoped.wat b/tests/compiler/scoped.untouched.wat similarity index 66% rename from tests/compiler/scoped.wat rename to tests/compiler/scoped.untouched.wat index 64ec31c8..6169f75a 100644 --- a/tests/compiler/scoped.wat +++ b/tests/compiler/scoped.untouched.wat @@ -10,21 +10,14 @@ (start $start) (func $scoped/fn (; 0 ;) (type $iv) (param $0 i32) (local $1 i32) - ;;@ scoped.ts:18:2 (block - ;;@ scoped.ts:19:4 (set_local $1 - ;;@ scoped.ts:19:18 (i32.const 0) ) ) - ;;@ scoped.ts:21:2 (block - ;;@ scoped.ts:22:4 (nop) - ;;@ scoped.ts:23:4 (set_local $1 - ;;@ scoped.ts:23:8 (get_local $0) ) ) @@ -34,28 +27,20 @@ (local $1 i32) (local $2 i64) (local $3 f32) - ;;@ scoped.ts:5:0 (block $break|0 - ;;@ scoped.ts:5:5 (set_local $0 - ;;@ scoped.ts:5:42 (i32.const 0) ) (loop $continue|0 (if - ;;@ scoped.ts:5:45 (i32.lt_s (get_local $0) - ;;@ scoped.ts:5:73 (i32.const 1) ) (block - ;;@ scoped.ts:5:104 (nop) - ;;@ scoped.ts:5:76 (set_local $0 (i32.add - ;;@ scoped.ts:5:78 (get_local $0) (i32.const 1) ) @@ -65,30 +50,22 @@ ) ) ) - ;;@ scoped.ts:6:0 (block $break|1 - ;;@ scoped.ts:6:5 (set_local $1 - ;;@ scoped.ts:6:43 (i32.const 0) ) (loop $continue|1 (if - ;;@ scoped.ts:6:46 (i32.lt_s (get_local $1) - ;;@ scoped.ts:6:56 (i32.const 1) ) (block - ;;@ scoped.ts:7:2 (drop (get_local $1) ) - ;;@ scoped.ts:6:59 (set_local $1 (i32.add - ;;@ scoped.ts:6:61 (get_local $1) (i32.const 1) ) @@ -98,25 +75,17 @@ ) ) ) - ;;@ scoped.ts:9:0 (block - ;;@ scoped.ts:10:2 (set_local $2 - ;;@ scoped.ts:10:42 (i64.const 5) ) - ;;@ scoped.ts:11:2 (block - ;;@ scoped.ts:12:4 (set_local $3 - ;;@ scoped.ts:12:41 (f32.const 10) ) ) ) - ;;@ scoped.ts:26:0 (call $scoped/fn - ;;@ scoped.ts:26:3 (i32.const 42) ) ) diff --git a/tests/compiler/showcase.wat b/tests/compiler/showcase.untouched.wat similarity index 66% rename from tests/compiler/showcase.wat rename to tests/compiler/showcase.untouched.wat index c7d4885f..dfcc3fbd 100644 --- a/tests/compiler/showcase.wat +++ b/tests/compiler/showcase.untouched.wat @@ -68,40 +68,30 @@ (export "memory" (memory $0)) (start $start) (func $showcase/ANamespace.aNamespacedFunction (; 1 ;) (type $ii) (param $0 i32) (result i32) - ;;@ showcase.ts:38:60 (return (get_local $0) ) ) (func $showcase/addGeneric (; 2 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32) - ;;@ showcase.ts:64:16 (return - ;;@ showcase.ts:64:9 (i32.add (get_local $0) - ;;@ showcase.ts:64:16 (get_local $1) ) ) ) (func $showcase/addGeneric (; 3 ;) (type $fff) (param $0 f32) (param $1 f32) (result f32) - ;;@ showcase.ts:64:16 (return - ;;@ showcase.ts:64:9 (f32.add (get_local $0) - ;;@ showcase.ts:64:16 (get_local $1) ) ) ) (func $showcase/addGeneric (; 4 ;) (type $FFF) (param $0 f64) (param $1 f64) (result f64) - ;;@ showcase.ts:64:16 (return - ;;@ showcase.ts:64:9 (f64.add (get_local $0) - ;;@ showcase.ts:64:16 (get_local $1) ) ) @@ -113,36 +103,27 @@ (local $4 i32) (local $5 i32) (local $6 i32) - ;;@ memcpy.ts:2:2 (set_local $3 - ;;@ memcpy.ts:2:12 (get_local $0) ) - ;;@ memcpy.ts:3:2 (nop) - ;;@ memcpy.ts:6:2 (block $break|0 (loop $continue|0 (if - ;;@ memcpy.ts:6:9 (if (result i32) (i32.ne (get_local $2) (i32.const 0) ) - ;;@ memcpy.ts:6:14 (i32.rem_u (get_local $1) - ;;@ memcpy.ts:6:20 (i32.const 4) ) (get_local $2) ) (block (block - ;;@ memcpy.ts:7:4 (i32.store8 - ;;@ memcpy.ts:7:14 (block (result i32) (set_local $6 (get_local $0) @@ -155,9 +136,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:7:22 (i32.load8_u - ;;@ memcpy.ts:7:31 (block (result i32) (set_local $6 (get_local $1) @@ -172,7 +151,6 @@ ) ) ) - ;;@ memcpy.ts:8:4 (set_local $2 (i32.sub (get_local $2) @@ -185,116 +163,81 @@ ) ) ) - ;;@ memcpy.ts:12:2 (if - ;;@ memcpy.ts:12:6 (i32.eq (i32.rem_u (get_local $0) - ;;@ memcpy.ts:12:13 (i32.const 4) ) - ;;@ memcpy.ts:12:18 (i32.const 0) ) - ;;@ memcpy.ts:12:21 (block (block $break|1 (loop $continue|1 (if - ;;@ memcpy.ts:13:11 (i32.ge_u (get_local $2) - ;;@ memcpy.ts:13:16 (i32.const 16) ) (block (block - ;;@ memcpy.ts:14:6 (i32.store - ;;@ memcpy.ts:14:17 (get_local $0) - ;;@ memcpy.ts:14:28 (i32.load - ;;@ memcpy.ts:14:38 (get_local $1) ) ) - ;;@ memcpy.ts:15:6 (i32.store - ;;@ memcpy.ts:15:17 (i32.add (get_local $0) - ;;@ memcpy.ts:15:25 (i32.const 4) ) - ;;@ memcpy.ts:15:28 (i32.load - ;;@ memcpy.ts:15:38 (i32.add (get_local $1) - ;;@ memcpy.ts:15:45 (i32.const 4) ) ) ) - ;;@ memcpy.ts:16:6 (i32.store - ;;@ memcpy.ts:16:17 (i32.add (get_local $0) - ;;@ memcpy.ts:16:25 (i32.const 8) ) - ;;@ memcpy.ts:16:28 (i32.load - ;;@ memcpy.ts:16:38 (i32.add (get_local $1) - ;;@ memcpy.ts:16:45 (i32.const 8) ) ) ) - ;;@ memcpy.ts:17:6 (i32.store - ;;@ memcpy.ts:17:17 (i32.add (get_local $0) - ;;@ memcpy.ts:17:24 (i32.const 12) ) - ;;@ memcpy.ts:17:28 (i32.load - ;;@ memcpy.ts:17:38 (i32.add (get_local $1) - ;;@ memcpy.ts:17:44 (i32.const 12) ) ) ) - ;;@ memcpy.ts:18:6 (set_local $1 (i32.add (get_local $1) - ;;@ memcpy.ts:18:13 (i32.const 16) ) ) - ;;@ memcpy.ts:18:17 (set_local $0 (i32.add (get_local $0) - ;;@ memcpy.ts:18:25 (i32.const 16) ) ) - ;;@ memcpy.ts:18:29 (set_local $2 (i32.sub (get_local $2) - ;;@ memcpy.ts:18:34 (i32.const 16) ) ) @@ -304,149 +247,102 @@ ) ) ) - ;;@ memcpy.ts:20:4 (if - ;;@ memcpy.ts:20:8 (i32.and (get_local $2) - ;;@ memcpy.ts:20:12 (i32.const 8) ) - ;;@ memcpy.ts:20:15 (block - ;;@ memcpy.ts:21:6 (i32.store - ;;@ memcpy.ts:21:17 (get_local $0) - ;;@ memcpy.ts:21:27 (i32.load - ;;@ memcpy.ts:21:37 (get_local $1) ) ) - ;;@ memcpy.ts:22:6 (i32.store - ;;@ memcpy.ts:22:17 (i32.add (get_local $0) - ;;@ memcpy.ts:22:24 (i32.const 4) ) - ;;@ memcpy.ts:22:27 (i32.load - ;;@ memcpy.ts:22:37 (i32.add (get_local $1) - ;;@ memcpy.ts:22:43 (i32.const 4) ) ) ) - ;;@ memcpy.ts:23:6 (set_local $0 (i32.add (get_local $0) - ;;@ memcpy.ts:23:14 (i32.const 8) ) ) - ;;@ memcpy.ts:23:17 (set_local $1 (i32.add (get_local $1) - ;;@ memcpy.ts:23:24 (i32.const 8) ) ) ) ) - ;;@ memcpy.ts:25:4 (if - ;;@ memcpy.ts:25:8 (i32.and (get_local $2) - ;;@ memcpy.ts:25:12 (i32.const 4) ) - ;;@ memcpy.ts:25:15 (block - ;;@ memcpy.ts:26:6 (i32.store - ;;@ memcpy.ts:26:17 (get_local $0) - ;;@ memcpy.ts:26:23 (i32.load - ;;@ memcpy.ts:26:33 (get_local $1) ) ) - ;;@ memcpy.ts:27:6 (set_local $0 (i32.add (get_local $0) - ;;@ memcpy.ts:27:14 (i32.const 4) ) ) - ;;@ memcpy.ts:27:17 (set_local $1 (i32.add (get_local $1) - ;;@ memcpy.ts:27:24 (i32.const 4) ) ) ) ) - ;;@ memcpy.ts:29:4 (if - ;;@ memcpy.ts:29:8 (i32.and (get_local $2) - ;;@ memcpy.ts:29:12 (i32.const 2) ) - ;;@ memcpy.ts:29:15 (block - ;;@ memcpy.ts:30:6 (i32.store16 - ;;@ memcpy.ts:30:17 (get_local $0) - ;;@ memcpy.ts:30:23 (i32.load16_u - ;;@ memcpy.ts:30:33 (get_local $1) ) ) - ;;@ memcpy.ts:31:6 (set_local $0 (i32.add (get_local $0) - ;;@ memcpy.ts:31:14 (i32.const 2) ) ) - ;;@ memcpy.ts:31:17 (set_local $1 (i32.add (get_local $1) - ;;@ memcpy.ts:31:24 (i32.const 2) ) ) ) ) - ;;@ memcpy.ts:33:4 (if - ;;@ memcpy.ts:33:8 (i32.and (get_local $2) - ;;@ memcpy.ts:33:12 (i32.const 1) ) - ;;@ memcpy.ts:34:6 (i32.store8 - ;;@ memcpy.ts:34:16 (block (result i32) (set_local $6 (get_local $0) @@ -459,9 +355,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:34:24 (i32.load8_u - ;;@ memcpy.ts:34:33 (block (result i32) (set_local $6 (get_local $1) @@ -477,67 +371,52 @@ ) ) ) - ;;@ memcpy.ts:36:11 (return (get_local $3) ) ) ) - ;;@ memcpy.ts:41:2 (if - ;;@ memcpy.ts:41:6 (i32.ge_u (get_local $2) - ;;@ memcpy.ts:41:11 (i32.const 32) ) - ;;@ memcpy.ts:42:4 (block $break|2 (block $case2|2 (block $case1|2 (block $case0|2 (set_local $6 - ;;@ memcpy.ts:42:12 (i32.rem_u (get_local $0) - ;;@ memcpy.ts:42:19 (i32.const 4) ) ) (br_if $case0|2 (i32.eq (get_local $6) - ;;@ memcpy.ts:44:11 (i32.const 1) ) ) (br_if $case1|2 (i32.eq (get_local $6) - ;;@ memcpy.ts:62:11 (i32.const 2) ) ) (br_if $case2|2 (i32.eq (get_local $6) - ;;@ memcpy.ts:79:11 (i32.const 3) ) ) (br $break|2) ) - ;;@ memcpy.ts:45:8 (set_local $4 - ;;@ memcpy.ts:45:12 (i32.load - ;;@ memcpy.ts:45:22 (get_local $1) ) ) - ;;@ memcpy.ts:46:8 (i32.store8 - ;;@ memcpy.ts:46:18 (block (result i32) (set_local $6 (get_local $0) @@ -550,9 +429,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:46:26 (i32.load8_u - ;;@ memcpy.ts:46:35 (block (result i32) (set_local $6 (get_local $1) @@ -567,9 +444,7 @@ ) ) ) - ;;@ memcpy.ts:47:8 (i32.store8 - ;;@ memcpy.ts:47:18 (block (result i32) (set_local $6 (get_local $0) @@ -582,9 +457,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:47:26 (i32.load8_u - ;;@ memcpy.ts:47:35 (block (result i32) (set_local $6 (get_local $1) @@ -599,9 +472,7 @@ ) ) ) - ;;@ memcpy.ts:48:8 (i32.store8 - ;;@ memcpy.ts:48:18 (block (result i32) (set_local $6 (get_local $0) @@ -614,9 +485,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:48:26 (i32.load8_u - ;;@ memcpy.ts:48:35 (block (result i32) (set_local $6 (get_local $1) @@ -631,183 +500,129 @@ ) ) ) - ;;@ memcpy.ts:49:8 (set_local $2 (i32.sub (get_local $2) - ;;@ memcpy.ts:49:13 (i32.const 3) ) ) - ;;@ memcpy.ts:50:8 (block $break|3 (loop $continue|3 (if - ;;@ memcpy.ts:50:15 (i32.ge_u (get_local $2) - ;;@ memcpy.ts:50:20 (i32.const 17) ) (block (block - ;;@ memcpy.ts:51:10 (set_local $5 - ;;@ memcpy.ts:51:14 (i32.load - ;;@ memcpy.ts:51:24 (i32.add (get_local $1) - ;;@ memcpy.ts:51:30 (i32.const 1) ) ) ) - ;;@ memcpy.ts:52:10 (i32.store - ;;@ memcpy.ts:52:21 (get_local $0) - ;;@ memcpy.ts:52:27 (i32.or (i32.shr_u (get_local $4) - ;;@ memcpy.ts:52:32 (i32.const 24) ) - ;;@ memcpy.ts:52:37 (i32.shl (get_local $5) - ;;@ memcpy.ts:52:42 (i32.const 8) ) ) ) - ;;@ memcpy.ts:53:10 (set_local $4 - ;;@ memcpy.ts:53:14 (i32.load - ;;@ memcpy.ts:53:24 (i32.add (get_local $1) - ;;@ memcpy.ts:53:30 (i32.const 5) ) ) ) - ;;@ memcpy.ts:54:10 (i32.store - ;;@ memcpy.ts:54:21 (i32.add (get_local $0) - ;;@ memcpy.ts:54:28 (i32.const 4) ) - ;;@ memcpy.ts:54:31 (i32.or (i32.shr_u (get_local $5) - ;;@ memcpy.ts:54:36 (i32.const 24) ) - ;;@ memcpy.ts:54:41 (i32.shl (get_local $4) - ;;@ memcpy.ts:54:46 (i32.const 8) ) ) ) - ;;@ memcpy.ts:55:10 (set_local $5 - ;;@ memcpy.ts:55:14 (i32.load - ;;@ memcpy.ts:55:24 (i32.add (get_local $1) - ;;@ memcpy.ts:55:30 (i32.const 9) ) ) ) - ;;@ memcpy.ts:56:10 (i32.store - ;;@ memcpy.ts:56:21 (i32.add (get_local $0) - ;;@ memcpy.ts:56:28 (i32.const 8) ) - ;;@ memcpy.ts:56:31 (i32.or (i32.shr_u (get_local $4) - ;;@ memcpy.ts:56:36 (i32.const 24) ) - ;;@ memcpy.ts:56:41 (i32.shl (get_local $5) - ;;@ memcpy.ts:56:46 (i32.const 8) ) ) ) - ;;@ memcpy.ts:57:10 (set_local $4 - ;;@ memcpy.ts:57:14 (i32.load - ;;@ memcpy.ts:57:24 (i32.add (get_local $1) - ;;@ memcpy.ts:57:30 (i32.const 13) ) ) ) - ;;@ memcpy.ts:58:10 (i32.store - ;;@ memcpy.ts:58:21 (i32.add (get_local $0) - ;;@ memcpy.ts:58:28 (i32.const 12) ) - ;;@ memcpy.ts:58:32 (i32.or (i32.shr_u (get_local $5) - ;;@ memcpy.ts:58:37 (i32.const 24) ) - ;;@ memcpy.ts:58:42 (i32.shl (get_local $4) - ;;@ memcpy.ts:58:47 (i32.const 8) ) ) ) - ;;@ memcpy.ts:59:10 (set_local $1 (i32.add (get_local $1) - ;;@ memcpy.ts:59:17 (i32.const 16) ) ) - ;;@ memcpy.ts:59:21 (set_local $0 (i32.add (get_local $0) - ;;@ memcpy.ts:59:29 (i32.const 16) ) ) - ;;@ memcpy.ts:59:33 (set_local $2 (i32.sub (get_local $2) - ;;@ memcpy.ts:59:38 (i32.const 16) ) ) @@ -817,20 +632,14 @@ ) ) ) - ;;@ memcpy.ts:61:8 (br $break|2) ) - ;;@ memcpy.ts:63:8 (set_local $4 - ;;@ memcpy.ts:63:12 (i32.load - ;;@ memcpy.ts:63:22 (get_local $1) ) ) - ;;@ memcpy.ts:64:8 (i32.store8 - ;;@ memcpy.ts:64:18 (block (result i32) (set_local $6 (get_local $0) @@ -843,9 +652,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:64:26 (i32.load8_u - ;;@ memcpy.ts:64:35 (block (result i32) (set_local $6 (get_local $1) @@ -860,9 +667,7 @@ ) ) ) - ;;@ memcpy.ts:65:8 (i32.store8 - ;;@ memcpy.ts:65:18 (block (result i32) (set_local $6 (get_local $0) @@ -875,9 +680,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:65:26 (i32.load8_u - ;;@ memcpy.ts:65:35 (block (result i32) (set_local $6 (get_local $1) @@ -892,183 +695,129 @@ ) ) ) - ;;@ memcpy.ts:66:8 (set_local $2 (i32.sub (get_local $2) - ;;@ memcpy.ts:66:13 (i32.const 2) ) ) - ;;@ memcpy.ts:67:8 (block $break|4 (loop $continue|4 (if - ;;@ memcpy.ts:67:15 (i32.ge_u (get_local $2) - ;;@ memcpy.ts:67:20 (i32.const 18) ) (block (block - ;;@ memcpy.ts:68:10 (set_local $5 - ;;@ memcpy.ts:68:14 (i32.load - ;;@ memcpy.ts:68:24 (i32.add (get_local $1) - ;;@ memcpy.ts:68:30 (i32.const 2) ) ) ) - ;;@ memcpy.ts:69:10 (i32.store - ;;@ memcpy.ts:69:21 (get_local $0) - ;;@ memcpy.ts:69:27 (i32.or (i32.shr_u (get_local $4) - ;;@ memcpy.ts:69:32 (i32.const 16) ) - ;;@ memcpy.ts:69:37 (i32.shl (get_local $5) - ;;@ memcpy.ts:69:42 (i32.const 16) ) ) ) - ;;@ memcpy.ts:70:10 (set_local $4 - ;;@ memcpy.ts:70:14 (i32.load - ;;@ memcpy.ts:70:24 (i32.add (get_local $1) - ;;@ memcpy.ts:70:30 (i32.const 6) ) ) ) - ;;@ memcpy.ts:71:10 (i32.store - ;;@ memcpy.ts:71:21 (i32.add (get_local $0) - ;;@ memcpy.ts:71:28 (i32.const 4) ) - ;;@ memcpy.ts:71:31 (i32.or (i32.shr_u (get_local $5) - ;;@ memcpy.ts:71:36 (i32.const 16) ) - ;;@ memcpy.ts:71:41 (i32.shl (get_local $4) - ;;@ memcpy.ts:71:46 (i32.const 16) ) ) ) - ;;@ memcpy.ts:72:10 (set_local $5 - ;;@ memcpy.ts:72:14 (i32.load - ;;@ memcpy.ts:72:24 (i32.add (get_local $1) - ;;@ memcpy.ts:72:30 (i32.const 10) ) ) ) - ;;@ memcpy.ts:73:10 (i32.store - ;;@ memcpy.ts:73:21 (i32.add (get_local $0) - ;;@ memcpy.ts:73:28 (i32.const 8) ) - ;;@ memcpy.ts:73:31 (i32.or (i32.shr_u (get_local $4) - ;;@ memcpy.ts:73:36 (i32.const 16) ) - ;;@ memcpy.ts:73:41 (i32.shl (get_local $5) - ;;@ memcpy.ts:73:46 (i32.const 16) ) ) ) - ;;@ memcpy.ts:74:10 (set_local $4 - ;;@ memcpy.ts:74:14 (i32.load - ;;@ memcpy.ts:74:24 (i32.add (get_local $1) - ;;@ memcpy.ts:74:30 (i32.const 14) ) ) ) - ;;@ memcpy.ts:75:10 (i32.store - ;;@ memcpy.ts:75:21 (i32.add (get_local $0) - ;;@ memcpy.ts:75:28 (i32.const 12) ) - ;;@ memcpy.ts:75:32 (i32.or (i32.shr_u (get_local $5) - ;;@ memcpy.ts:75:37 (i32.const 16) ) - ;;@ memcpy.ts:75:42 (i32.shl (get_local $4) - ;;@ memcpy.ts:75:47 (i32.const 16) ) ) ) - ;;@ memcpy.ts:76:10 (set_local $1 (i32.add (get_local $1) - ;;@ memcpy.ts:76:17 (i32.const 16) ) ) - ;;@ memcpy.ts:76:21 (set_local $0 (i32.add (get_local $0) - ;;@ memcpy.ts:76:29 (i32.const 16) ) ) - ;;@ memcpy.ts:76:33 (set_local $2 (i32.sub (get_local $2) - ;;@ memcpy.ts:76:38 (i32.const 16) ) ) @@ -1078,20 +827,14 @@ ) ) ) - ;;@ memcpy.ts:78:8 (br $break|2) ) - ;;@ memcpy.ts:80:8 (set_local $4 - ;;@ memcpy.ts:80:12 (i32.load - ;;@ memcpy.ts:80:22 (get_local $1) ) ) - ;;@ memcpy.ts:81:8 (i32.store8 - ;;@ memcpy.ts:81:18 (block (result i32) (set_local $6 (get_local $0) @@ -1104,9 +847,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:81:26 (i32.load8_u - ;;@ memcpy.ts:81:35 (block (result i32) (set_local $6 (get_local $1) @@ -1121,183 +862,129 @@ ) ) ) - ;;@ memcpy.ts:82:8 (set_local $2 (i32.sub (get_local $2) - ;;@ memcpy.ts:82:13 (i32.const 1) ) ) - ;;@ memcpy.ts:83:8 (block $break|5 (loop $continue|5 (if - ;;@ memcpy.ts:83:15 (i32.ge_u (get_local $2) - ;;@ memcpy.ts:83:20 (i32.const 19) ) (block (block - ;;@ memcpy.ts:84:10 (set_local $5 - ;;@ memcpy.ts:84:14 (i32.load - ;;@ memcpy.ts:84:24 (i32.add (get_local $1) - ;;@ memcpy.ts:84:30 (i32.const 3) ) ) ) - ;;@ memcpy.ts:85:10 (i32.store - ;;@ memcpy.ts:85:21 (get_local $0) - ;;@ memcpy.ts:85:27 (i32.or (i32.shr_u (get_local $4) - ;;@ memcpy.ts:85:32 (i32.const 8) ) - ;;@ memcpy.ts:85:36 (i32.shl (get_local $5) - ;;@ memcpy.ts:85:41 (i32.const 24) ) ) ) - ;;@ memcpy.ts:86:10 (set_local $4 - ;;@ memcpy.ts:86:14 (i32.load - ;;@ memcpy.ts:86:24 (i32.add (get_local $1) - ;;@ memcpy.ts:86:30 (i32.const 7) ) ) ) - ;;@ memcpy.ts:87:10 (i32.store - ;;@ memcpy.ts:87:21 (i32.add (get_local $0) - ;;@ memcpy.ts:87:28 (i32.const 4) ) - ;;@ memcpy.ts:87:31 (i32.or (i32.shr_u (get_local $5) - ;;@ memcpy.ts:87:36 (i32.const 8) ) - ;;@ memcpy.ts:87:40 (i32.shl (get_local $4) - ;;@ memcpy.ts:87:45 (i32.const 24) ) ) ) - ;;@ memcpy.ts:88:10 (set_local $5 - ;;@ memcpy.ts:88:14 (i32.load - ;;@ memcpy.ts:88:24 (i32.add (get_local $1) - ;;@ memcpy.ts:88:30 (i32.const 11) ) ) ) - ;;@ memcpy.ts:89:10 (i32.store - ;;@ memcpy.ts:89:21 (i32.add (get_local $0) - ;;@ memcpy.ts:89:28 (i32.const 8) ) - ;;@ memcpy.ts:89:31 (i32.or (i32.shr_u (get_local $4) - ;;@ memcpy.ts:89:36 (i32.const 8) ) - ;;@ memcpy.ts:89:40 (i32.shl (get_local $5) - ;;@ memcpy.ts:89:45 (i32.const 24) ) ) ) - ;;@ memcpy.ts:90:10 (set_local $4 - ;;@ memcpy.ts:90:14 (i32.load - ;;@ memcpy.ts:90:24 (i32.add (get_local $1) - ;;@ memcpy.ts:90:30 (i32.const 15) ) ) ) - ;;@ memcpy.ts:91:10 (i32.store - ;;@ memcpy.ts:91:21 (i32.add (get_local $0) - ;;@ memcpy.ts:91:28 (i32.const 12) ) - ;;@ memcpy.ts:91:32 (i32.or (i32.shr_u (get_local $5) - ;;@ memcpy.ts:91:37 (i32.const 8) ) - ;;@ memcpy.ts:91:41 (i32.shl (get_local $4) - ;;@ memcpy.ts:91:46 (i32.const 24) ) ) ) - ;;@ memcpy.ts:92:10 (set_local $1 (i32.add (get_local $1) - ;;@ memcpy.ts:92:17 (i32.const 16) ) ) - ;;@ memcpy.ts:92:21 (set_local $0 (i32.add (get_local $0) - ;;@ memcpy.ts:92:29 (i32.const 16) ) ) - ;;@ memcpy.ts:92:33 (set_local $2 (i32.sub (get_local $2) - ;;@ memcpy.ts:92:38 (i32.const 16) ) ) @@ -1307,23 +994,16 @@ ) ) ) - ;;@ memcpy.ts:94:8 (br $break|2) ) ) - ;;@ memcpy.ts:99:2 (if - ;;@ memcpy.ts:99:6 (i32.and (get_local $2) - ;;@ memcpy.ts:99:10 (i32.const 16) ) - ;;@ memcpy.ts:99:14 (block - ;;@ memcpy.ts:100:4 (i32.store8 - ;;@ memcpy.ts:100:14 (block (result i32) (set_local $6 (get_local $0) @@ -1336,9 +1016,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:100:22 (i32.load8_u - ;;@ memcpy.ts:100:31 (block (result i32) (set_local $6 (get_local $1) @@ -1353,9 +1031,7 @@ ) ) ) - ;;@ memcpy.ts:101:4 (i32.store8 - ;;@ memcpy.ts:101:14 (block (result i32) (set_local $6 (get_local $0) @@ -1368,9 +1044,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:101:22 (i32.load8_u - ;;@ memcpy.ts:101:31 (block (result i32) (set_local $6 (get_local $1) @@ -1385,9 +1059,7 @@ ) ) ) - ;;@ memcpy.ts:102:4 (i32.store8 - ;;@ memcpy.ts:102:14 (block (result i32) (set_local $6 (get_local $0) @@ -1400,9 +1072,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:102:22 (i32.load8_u - ;;@ memcpy.ts:102:31 (block (result i32) (set_local $6 (get_local $1) @@ -1417,9 +1087,7 @@ ) ) ) - ;;@ memcpy.ts:103:4 (i32.store8 - ;;@ memcpy.ts:103:14 (block (result i32) (set_local $6 (get_local $0) @@ -1432,9 +1100,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:103:22 (i32.load8_u - ;;@ memcpy.ts:103:31 (block (result i32) (set_local $6 (get_local $1) @@ -1449,9 +1115,7 @@ ) ) ) - ;;@ memcpy.ts:104:4 (i32.store8 - ;;@ memcpy.ts:104:14 (block (result i32) (set_local $6 (get_local $0) @@ -1464,9 +1128,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:104:22 (i32.load8_u - ;;@ memcpy.ts:104:31 (block (result i32) (set_local $6 (get_local $1) @@ -1481,9 +1143,7 @@ ) ) ) - ;;@ memcpy.ts:105:4 (i32.store8 - ;;@ memcpy.ts:105:14 (block (result i32) (set_local $6 (get_local $0) @@ -1496,9 +1156,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:105:22 (i32.load8_u - ;;@ memcpy.ts:105:31 (block (result i32) (set_local $6 (get_local $1) @@ -1513,9 +1171,7 @@ ) ) ) - ;;@ memcpy.ts:106:4 (i32.store8 - ;;@ memcpy.ts:106:14 (block (result i32) (set_local $6 (get_local $0) @@ -1528,9 +1184,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:106:22 (i32.load8_u - ;;@ memcpy.ts:106:31 (block (result i32) (set_local $6 (get_local $1) @@ -1545,9 +1199,7 @@ ) ) ) - ;;@ memcpy.ts:107:4 (i32.store8 - ;;@ memcpy.ts:107:14 (block (result i32) (set_local $6 (get_local $0) @@ -1560,9 +1212,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:107:22 (i32.load8_u - ;;@ memcpy.ts:107:31 (block (result i32) (set_local $6 (get_local $1) @@ -1577,9 +1227,7 @@ ) ) ) - ;;@ memcpy.ts:108:4 (i32.store8 - ;;@ memcpy.ts:108:14 (block (result i32) (set_local $6 (get_local $0) @@ -1592,9 +1240,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:108:22 (i32.load8_u - ;;@ memcpy.ts:108:31 (block (result i32) (set_local $6 (get_local $1) @@ -1609,9 +1255,7 @@ ) ) ) - ;;@ memcpy.ts:109:4 (i32.store8 - ;;@ memcpy.ts:109:14 (block (result i32) (set_local $6 (get_local $0) @@ -1624,9 +1268,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:109:22 (i32.load8_u - ;;@ memcpy.ts:109:31 (block (result i32) (set_local $6 (get_local $1) @@ -1641,9 +1283,7 @@ ) ) ) - ;;@ memcpy.ts:110:4 (i32.store8 - ;;@ memcpy.ts:110:14 (block (result i32) (set_local $6 (get_local $0) @@ -1656,9 +1296,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:110:22 (i32.load8_u - ;;@ memcpy.ts:110:31 (block (result i32) (set_local $6 (get_local $1) @@ -1673,9 +1311,7 @@ ) ) ) - ;;@ memcpy.ts:111:4 (i32.store8 - ;;@ memcpy.ts:111:14 (block (result i32) (set_local $6 (get_local $0) @@ -1688,9 +1324,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:111:22 (i32.load8_u - ;;@ memcpy.ts:111:31 (block (result i32) (set_local $6 (get_local $1) @@ -1705,9 +1339,7 @@ ) ) ) - ;;@ memcpy.ts:112:4 (i32.store8 - ;;@ memcpy.ts:112:14 (block (result i32) (set_local $6 (get_local $0) @@ -1720,9 +1352,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:112:22 (i32.load8_u - ;;@ memcpy.ts:112:31 (block (result i32) (set_local $6 (get_local $1) @@ -1737,9 +1367,7 @@ ) ) ) - ;;@ memcpy.ts:113:4 (i32.store8 - ;;@ memcpy.ts:113:14 (block (result i32) (set_local $6 (get_local $0) @@ -1752,9 +1380,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:113:22 (i32.load8_u - ;;@ memcpy.ts:113:31 (block (result i32) (set_local $6 (get_local $1) @@ -1769,9 +1395,7 @@ ) ) ) - ;;@ memcpy.ts:114:4 (i32.store8 - ;;@ memcpy.ts:114:14 (block (result i32) (set_local $6 (get_local $0) @@ -1784,9 +1408,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:114:22 (i32.load8_u - ;;@ memcpy.ts:114:31 (block (result i32) (set_local $6 (get_local $1) @@ -1801,9 +1423,7 @@ ) ) ) - ;;@ memcpy.ts:115:4 (i32.store8 - ;;@ memcpy.ts:115:14 (block (result i32) (set_local $6 (get_local $0) @@ -1816,9 +1436,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:115:22 (i32.load8_u - ;;@ memcpy.ts:115:31 (block (result i32) (set_local $6 (get_local $1) @@ -1835,19 +1453,13 @@ ) ) ) - ;;@ memcpy.ts:117:2 (if - ;;@ memcpy.ts:117:6 (i32.and (get_local $2) - ;;@ memcpy.ts:117:10 (i32.const 8) ) - ;;@ memcpy.ts:117:13 (block - ;;@ memcpy.ts:118:4 (i32.store8 - ;;@ memcpy.ts:118:14 (block (result i32) (set_local $6 (get_local $0) @@ -1860,9 +1472,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:118:22 (i32.load8_u - ;;@ memcpy.ts:118:31 (block (result i32) (set_local $6 (get_local $1) @@ -1877,9 +1487,7 @@ ) ) ) - ;;@ memcpy.ts:119:4 (i32.store8 - ;;@ memcpy.ts:119:14 (block (result i32) (set_local $6 (get_local $0) @@ -1892,9 +1500,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:119:22 (i32.load8_u - ;;@ memcpy.ts:119:31 (block (result i32) (set_local $6 (get_local $1) @@ -1909,9 +1515,7 @@ ) ) ) - ;;@ memcpy.ts:120:4 (i32.store8 - ;;@ memcpy.ts:120:14 (block (result i32) (set_local $6 (get_local $0) @@ -1924,9 +1528,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:120:22 (i32.load8_u - ;;@ memcpy.ts:120:31 (block (result i32) (set_local $6 (get_local $1) @@ -1941,9 +1543,7 @@ ) ) ) - ;;@ memcpy.ts:121:4 (i32.store8 - ;;@ memcpy.ts:121:14 (block (result i32) (set_local $6 (get_local $0) @@ -1956,9 +1556,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:121:22 (i32.load8_u - ;;@ memcpy.ts:121:31 (block (result i32) (set_local $6 (get_local $1) @@ -1973,9 +1571,7 @@ ) ) ) - ;;@ memcpy.ts:122:4 (i32.store8 - ;;@ memcpy.ts:122:14 (block (result i32) (set_local $6 (get_local $0) @@ -1988,9 +1584,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:122:22 (i32.load8_u - ;;@ memcpy.ts:122:31 (block (result i32) (set_local $6 (get_local $1) @@ -2005,9 +1599,7 @@ ) ) ) - ;;@ memcpy.ts:123:4 (i32.store8 - ;;@ memcpy.ts:123:14 (block (result i32) (set_local $6 (get_local $0) @@ -2020,9 +1612,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:123:22 (i32.load8_u - ;;@ memcpy.ts:123:31 (block (result i32) (set_local $6 (get_local $1) @@ -2037,9 +1627,7 @@ ) ) ) - ;;@ memcpy.ts:124:4 (i32.store8 - ;;@ memcpy.ts:124:14 (block (result i32) (set_local $6 (get_local $0) @@ -2052,9 +1640,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:124:22 (i32.load8_u - ;;@ memcpy.ts:124:31 (block (result i32) (set_local $6 (get_local $1) @@ -2069,9 +1655,7 @@ ) ) ) - ;;@ memcpy.ts:125:4 (i32.store8 - ;;@ memcpy.ts:125:14 (block (result i32) (set_local $6 (get_local $0) @@ -2084,9 +1668,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:125:22 (i32.load8_u - ;;@ memcpy.ts:125:31 (block (result i32) (set_local $6 (get_local $1) @@ -2103,19 +1685,13 @@ ) ) ) - ;;@ memcpy.ts:127:2 (if - ;;@ memcpy.ts:127:6 (i32.and (get_local $2) - ;;@ memcpy.ts:127:10 (i32.const 4) ) - ;;@ memcpy.ts:127:13 (block - ;;@ memcpy.ts:128:4 (i32.store8 - ;;@ memcpy.ts:128:14 (block (result i32) (set_local $6 (get_local $0) @@ -2128,9 +1704,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:128:22 (i32.load8_u - ;;@ memcpy.ts:128:31 (block (result i32) (set_local $6 (get_local $1) @@ -2145,9 +1719,7 @@ ) ) ) - ;;@ memcpy.ts:129:4 (i32.store8 - ;;@ memcpy.ts:129:14 (block (result i32) (set_local $6 (get_local $0) @@ -2160,9 +1732,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:129:22 (i32.load8_u - ;;@ memcpy.ts:129:31 (block (result i32) (set_local $6 (get_local $1) @@ -2177,9 +1747,7 @@ ) ) ) - ;;@ memcpy.ts:130:4 (i32.store8 - ;;@ memcpy.ts:130:14 (block (result i32) (set_local $6 (get_local $0) @@ -2192,9 +1760,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:130:22 (i32.load8_u - ;;@ memcpy.ts:130:31 (block (result i32) (set_local $6 (get_local $1) @@ -2209,9 +1775,7 @@ ) ) ) - ;;@ memcpy.ts:131:4 (i32.store8 - ;;@ memcpy.ts:131:14 (block (result i32) (set_local $6 (get_local $0) @@ -2224,9 +1788,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:131:22 (i32.load8_u - ;;@ memcpy.ts:131:31 (block (result i32) (set_local $6 (get_local $1) @@ -2243,19 +1805,13 @@ ) ) ) - ;;@ memcpy.ts:133:2 (if - ;;@ memcpy.ts:133:6 (i32.and (get_local $2) - ;;@ memcpy.ts:133:10 (i32.const 2) ) - ;;@ memcpy.ts:133:13 (block - ;;@ memcpy.ts:134:4 (i32.store8 - ;;@ memcpy.ts:134:14 (block (result i32) (set_local $6 (get_local $0) @@ -2268,9 +1824,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:134:22 (i32.load8_u - ;;@ memcpy.ts:134:31 (block (result i32) (set_local $6 (get_local $1) @@ -2285,9 +1839,7 @@ ) ) ) - ;;@ memcpy.ts:135:4 (i32.store8 - ;;@ memcpy.ts:135:14 (block (result i32) (set_local $6 (get_local $0) @@ -2300,9 +1852,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:135:22 (i32.load8_u - ;;@ memcpy.ts:135:31 (block (result i32) (set_local $6 (get_local $1) @@ -2319,17 +1869,12 @@ ) ) ) - ;;@ memcpy.ts:137:2 (if - ;;@ memcpy.ts:137:6 (i32.and (get_local $2) - ;;@ memcpy.ts:137:10 (i32.const 1) ) - ;;@ memcpy.ts:138:4 (i32.store8 - ;;@ memcpy.ts:138:14 (block (result i32) (set_local $6 (get_local $0) @@ -2342,9 +1887,7 @@ ) (get_local $6) ) - ;;@ memcpy.ts:138:22 (i32.load8_u - ;;@ memcpy.ts:138:31 (block (result i32) (set_local $6 (get_local $1) @@ -2360,7 +1903,6 @@ ) ) ) - ;;@ memcpy.ts:140:9 (return (get_local $3) ) @@ -2374,69 +1916,47 @@ (local $7 f64) (local $8 i32) (local $9 i64) - ;;@ fmod.ts:3:2 (set_local $2 - ;;@ fmod.ts:3:11 (i64.reinterpret/f64 - ;;@ fmod.ts:3:28 (get_local $0) ) ) - ;;@ fmod.ts:4:2 (set_local $3 - ;;@ fmod.ts:4:11 (i64.reinterpret/f64 - ;;@ fmod.ts:4:28 (get_local $1) ) ) - ;;@ fmod.ts:5:2 (set_local $4 - ;;@ fmod.ts:5:11 (i32.wrap/i64 - ;;@ fmod.ts:5:17 (i64.and (i64.shr_u (get_local $2) - ;;@ fmod.ts:5:23 (i64.const 52) ) - ;;@ fmod.ts:5:28 (i64.const 2047) ) ) ) - ;;@ fmod.ts:6:2 (set_local $5 - ;;@ fmod.ts:6:11 (i32.wrap/i64 - ;;@ fmod.ts:6:17 (i64.and (i64.shr_u (get_local $3) - ;;@ fmod.ts:6:23 (i64.const 52) ) - ;;@ fmod.ts:6:28 (i64.const 2047) ) ) ) - ;;@ fmod.ts:7:2 (set_local $6 - ;;@ fmod.ts:7:11 (i32.wrap/i64 - ;;@ fmod.ts:7:17 (i64.shr_u (get_local $2) - ;;@ fmod.ts:7:23 (i64.const 63) ) ) ) - ;;@ fmod.ts:9:2 (if - ;;@ fmod.ts:9:6 (i32.and (if (result i32) (i32.ne @@ -2448,20 +1968,16 @@ (i64.eq (i64.shl (get_local $3) - ;;@ fmod.ts:9:12 (i64.const 1) ) - ;;@ fmod.ts:9:17 (i64.const 0) ) ) (i32.const 0) ) (get_local $8) - ;;@ fmod.ts:9:22 (f64.ne (tee_local $7 - ;;@ fmod.ts:9:33 (get_local $1) ) (get_local $7) @@ -2473,130 +1989,91 @@ (i32.const 0) ) (get_local $8) - ;;@ fmod.ts:9:39 (i32.eq (get_local $4) - ;;@ fmod.ts:9:45 (i32.const 2047) ) ) (i32.const 1) ) - ;;@ fmod.ts:10:27 (return - ;;@ fmod.ts:10:11 (f64.div (f64.mul - ;;@ fmod.ts:10:12 (get_local $0) - ;;@ fmod.ts:10:16 (get_local $1) ) - ;;@ fmod.ts:10:21 (f64.mul - ;;@ fmod.ts:10:22 (get_local $0) - ;;@ fmod.ts:10:26 (get_local $1) ) ) ) ) - ;;@ fmod.ts:11:2 (if - ;;@ fmod.ts:11:6 (i64.le_u (i64.shl (get_local $2) - ;;@ fmod.ts:11:12 (i64.const 1) ) - ;;@ fmod.ts:11:17 (i64.shl (get_local $3) - ;;@ fmod.ts:11:23 (i64.const 1) ) ) - ;;@ fmod.ts:11:26 (block - ;;@ fmod.ts:12:4 (if - ;;@ fmod.ts:12:8 (i64.eq (i64.shl (get_local $2) - ;;@ fmod.ts:12:14 (i64.const 1) ) - ;;@ fmod.ts:12:19 (i64.shl (get_local $3) - ;;@ fmod.ts:12:25 (i64.const 1) ) ) - ;;@ fmod.ts:13:17 (return - ;;@ fmod.ts:13:13 (f64.mul (f64.const 0) - ;;@ fmod.ts:13:17 (get_local $0) ) ) ) - ;;@ fmod.ts:14:11 (return (get_local $0) ) ) ) - ;;@ fmod.ts:18:2 (if - ;;@ fmod.ts:18:6 (i32.eqz - ;;@ fmod.ts:18:7 (get_local $4) ) - ;;@ fmod.ts:18:11 (block (block $break|0 - ;;@ fmod.ts:19:9 (set_local $9 - ;;@ fmod.ts:19:17 (i64.shl (get_local $2) - ;;@ fmod.ts:19:23 (i64.const 12) ) ) (loop $continue|0 (if - ;;@ fmod.ts:19:27 (i64.eqz - ;;@ fmod.ts:19:28 (i64.shr_u - ;;@ fmod.ts:19:29 (get_local $9) - ;;@ fmod.ts:19:34 (i64.const 63) ) ) (block - ;;@ fmod.ts:20:6 (set_local $4 (i32.sub - ;;@ fmod.ts:20:8 (get_local $4) (i32.const 1) ) ) - ;;@ fmod.ts:19:39 (set_local $9 (i64.shl (get_local $9) - ;;@ fmod.ts:19:45 (i64.const 1) ) ) @@ -2605,98 +2082,72 @@ ) ) ) - ;;@ fmod.ts:21:4 (set_local $2 (i64.shl (get_local $2) - ;;@ fmod.ts:21:11 (i64.extend_u/i32 (i32.add (i32.sub (i32.const 0) - ;;@ fmod.ts:21:12 (get_local $4) ) - ;;@ fmod.ts:21:17 (i32.const 1) ) ) ) ) ) - ;;@ fmod.ts:22:9 (block - ;;@ fmod.ts:23:4 (set_local $2 (i64.and (get_local $2) - ;;@ fmod.ts:23:10 (i64.shr_u (i64.const -1) - ;;@ fmod.ts:23:21 (i64.const 12) ) ) ) - ;;@ fmod.ts:24:4 (set_local $2 (i64.or (get_local $2) - ;;@ fmod.ts:24:10 (i64.shl (i64.const 1) - ;;@ fmod.ts:24:15 (i64.const 52) ) ) ) ) ) - ;;@ fmod.ts:26:2 (if - ;;@ fmod.ts:26:6 (i32.eqz - ;;@ fmod.ts:26:7 (get_local $5) ) - ;;@ fmod.ts:26:11 (block (block $break|1 - ;;@ fmod.ts:27:9 (set_local $9 - ;;@ fmod.ts:27:13 (i64.shl (get_local $3) - ;;@ fmod.ts:27:19 (i64.const 12) ) ) (loop $continue|1 (if - ;;@ fmod.ts:27:23 (i64.eqz - ;;@ fmod.ts:27:24 (i64.shr_u - ;;@ fmod.ts:27:25 (get_local $9) - ;;@ fmod.ts:27:30 (i64.const 63) ) ) (block - ;;@ fmod.ts:28:6 (set_local $5 (i32.sub - ;;@ fmod.ts:28:8 (get_local $5) (i32.const 1) ) ) - ;;@ fmod.ts:27:35 (set_local $9 (i64.shl (get_local $9) - ;;@ fmod.ts:27:41 (i64.const 1) ) ) @@ -2705,123 +2156,89 @@ ) ) ) - ;;@ fmod.ts:29:4 (set_local $3 (i64.shl (get_local $3) - ;;@ fmod.ts:29:11 (i64.extend_u/i32 (i32.add (i32.sub (i32.const 0) - ;;@ fmod.ts:29:12 (get_local $5) ) - ;;@ fmod.ts:29:17 (i32.const 1) ) ) ) ) ) - ;;@ fmod.ts:30:9 (block - ;;@ fmod.ts:31:4 (set_local $3 (i64.and (get_local $3) - ;;@ fmod.ts:31:10 (i64.shr_u (i64.const -1) - ;;@ fmod.ts:31:21 (i64.const 12) ) ) ) - ;;@ fmod.ts:32:4 (set_local $3 (i64.or (get_local $3) - ;;@ fmod.ts:32:10 (i64.shl (i64.const 1) - ;;@ fmod.ts:32:15 (i64.const 52) ) ) ) ) ) - ;;@ fmod.ts:36:2 (block $break|2 (nop) (loop $continue|2 (if - ;;@ fmod.ts:36:9 (i32.gt_s (get_local $4) - ;;@ fmod.ts:36:14 (get_local $5) ) (block (block - ;;@ fmod.ts:37:4 (set_local $9 - ;;@ fmod.ts:37:8 (i64.sub (get_local $2) - ;;@ fmod.ts:37:13 (get_local $3) ) ) - ;;@ fmod.ts:38:4 (if - ;;@ fmod.ts:38:8 (i64.eqz - ;;@ fmod.ts:38:9 (i64.shr_u - ;;@ fmod.ts:38:10 (get_local $9) - ;;@ fmod.ts:38:15 (i64.const 63) ) ) - ;;@ fmod.ts:38:20 (block - ;;@ fmod.ts:39:6 (if - ;;@ fmod.ts:39:10 (i64.eqz - ;;@ fmod.ts:39:11 (get_local $9) ) - ;;@ fmod.ts:40:19 (return - ;;@ fmod.ts:40:15 (f64.mul (f64.const 0) - ;;@ fmod.ts:40:19 (get_local $0) ) ) ) - ;;@ fmod.ts:41:6 (set_local $2 - ;;@ fmod.ts:41:11 (get_local $9) ) ) ) - ;;@ fmod.ts:43:4 (set_local $2 (i64.shl (get_local $2) - ;;@ fmod.ts:43:11 (i64.const 1) ) ) ) - ;;@ fmod.ts:36:18 (set_local $4 (i32.sub (get_local $4) @@ -2833,82 +2250,56 @@ ) ) ) - ;;@ fmod.ts:45:2 (set_local $9 - ;;@ fmod.ts:45:6 (i64.sub (get_local $2) - ;;@ fmod.ts:45:11 (get_local $3) ) ) - ;;@ fmod.ts:46:2 (if - ;;@ fmod.ts:46:6 (i64.eqz - ;;@ fmod.ts:46:7 (i64.shr_u - ;;@ fmod.ts:46:8 (get_local $9) - ;;@ fmod.ts:46:13 (i64.const 63) ) ) - ;;@ fmod.ts:46:18 (block - ;;@ fmod.ts:47:4 (if - ;;@ fmod.ts:47:8 (i64.eqz - ;;@ fmod.ts:47:9 (get_local $9) ) - ;;@ fmod.ts:48:17 (return - ;;@ fmod.ts:48:13 (f64.mul (f64.const 0) - ;;@ fmod.ts:48:17 (get_local $0) ) ) ) - ;;@ fmod.ts:49:4 (set_local $2 - ;;@ fmod.ts:49:9 (get_local $9) ) ) ) - ;;@ fmod.ts:51:2 (block $break|3 (nop) (loop $continue|3 (if - ;;@ fmod.ts:51:9 (i64.eqz - ;;@ fmod.ts:51:10 (i64.shr_u - ;;@ fmod.ts:51:11 (get_local $2) - ;;@ fmod.ts:51:17 (i64.const 52) ) ) (block - ;;@ fmod.ts:52:4 (set_local $4 (i32.sub - ;;@ fmod.ts:52:6 (get_local $4) (i32.const 1) ) ) - ;;@ fmod.ts:51:22 (set_local $2 (i64.shl (get_local $2) - ;;@ fmod.ts:51:29 (i64.const 1) ) ) @@ -2917,81 +2308,61 @@ ) ) ) - ;;@ fmod.ts:55:2 (if - ;;@ fmod.ts:55:6 (i32.gt_s (get_local $4) - ;;@ fmod.ts:55:11 (i32.const 0) ) - ;;@ fmod.ts:55:14 (block - ;;@ fmod.ts:56:4 (set_local $2 (i64.sub (get_local $2) - ;;@ fmod.ts:56:10 (i64.shl (i64.const 1) - ;;@ fmod.ts:56:15 (i64.const 52) ) ) ) - ;;@ fmod.ts:57:4 (set_local $2 (i64.or (get_local $2) - ;;@ fmod.ts:57:10 (i64.shl (i64.extend_u/i32 (get_local $4) ) - ;;@ fmod.ts:57:21 (i64.const 52) ) ) ) ) - ;;@ fmod.ts:59:4 (set_local $2 (i64.shr_u (get_local $2) - ;;@ fmod.ts:59:11 (i64.extend_u/i32 (i32.add (i32.sub (i32.const 0) - ;;@ fmod.ts:59:12 (get_local $4) ) - ;;@ fmod.ts:59:17 (i32.const 1) ) ) ) ) ) - ;;@ fmod.ts:61:2 (set_local $2 (i64.or (get_local $2) - ;;@ fmod.ts:61:8 (i64.shl (i64.extend_u/i32 (get_local $6) ) - ;;@ fmod.ts:61:19 (i64.const 63) ) ) ) - ;;@ fmod.ts:62:28 (return - ;;@ fmod.ts:62:9 (f64.reinterpret/i64 - ;;@ fmod.ts:62:26 (get_local $2) ) ) @@ -3005,62 +2376,41 @@ (local $7 f32) (local $8 i32) (local $9 i32) - ;;@ fmod.ts:72:2 (set_local $2 - ;;@ fmod.ts:72:11 (i32.reinterpret/f32 - ;;@ fmod.ts:72:28 (get_local $0) ) ) - ;;@ fmod.ts:73:2 (set_local $3 - ;;@ fmod.ts:73:11 (i32.reinterpret/f32 - ;;@ fmod.ts:73:28 (get_local $1) ) ) - ;;@ fmod.ts:74:2 (set_local $4 - ;;@ fmod.ts:74:11 (i32.and - ;;@ fmod.ts:74:17 (i32.shr_u (get_local $2) - ;;@ fmod.ts:74:23 (i32.const 23) ) - ;;@ fmod.ts:74:28 (i32.const 255) ) ) - ;;@ fmod.ts:75:2 (set_local $5 - ;;@ fmod.ts:75:11 (i32.and - ;;@ fmod.ts:75:17 (i32.shr_u (get_local $3) - ;;@ fmod.ts:75:23 (i32.const 23) ) - ;;@ fmod.ts:75:28 (i32.const 255) ) ) - ;;@ fmod.ts:76:2 (set_local $6 - ;;@ fmod.ts:76:11 (i32.and (get_local $2) - ;;@ fmod.ts:76:16 (i32.const -2147483648) ) ) - ;;@ fmod.ts:78:2 (if - ;;@ fmod.ts:78:6 (i32.and (if (result i32) (i32.ne @@ -3072,20 +2422,16 @@ (i32.eq (i32.shl (get_local $3) - ;;@ fmod.ts:78:12 (i32.const 1) ) - ;;@ fmod.ts:78:17 (i32.const 0) ) ) (i32.const 0) ) (get_local $8) - ;;@ fmod.ts:78:22 (f32.ne (tee_local $7 - ;;@ fmod.ts:78:33 (get_local $1) ) (get_local $7) @@ -3097,130 +2443,91 @@ (i32.const 0) ) (get_local $8) - ;;@ fmod.ts:78:39 (i32.eq (get_local $4) - ;;@ fmod.ts:78:45 (i32.const 255) ) ) (i32.const 1) ) - ;;@ fmod.ts:79:27 (return - ;;@ fmod.ts:79:11 (f32.div (f32.mul - ;;@ fmod.ts:79:12 (get_local $0) - ;;@ fmod.ts:79:16 (get_local $1) ) - ;;@ fmod.ts:79:21 (f32.mul - ;;@ fmod.ts:79:22 (get_local $0) - ;;@ fmod.ts:79:26 (get_local $1) ) ) ) ) - ;;@ fmod.ts:80:2 (if - ;;@ fmod.ts:80:6 (i32.le_u (i32.shl (get_local $2) - ;;@ fmod.ts:80:12 (i32.const 1) ) - ;;@ fmod.ts:80:17 (i32.shl (get_local $3) - ;;@ fmod.ts:80:23 (i32.const 1) ) ) - ;;@ fmod.ts:80:26 (block - ;;@ fmod.ts:81:4 (if - ;;@ fmod.ts:81:8 (i32.eq (i32.shl (get_local $2) - ;;@ fmod.ts:81:14 (i32.const 1) ) - ;;@ fmod.ts:81:19 (i32.shl (get_local $3) - ;;@ fmod.ts:81:25 (i32.const 1) ) ) - ;;@ fmod.ts:82:17 (return - ;;@ fmod.ts:82:13 (f32.mul (f32.const 0) - ;;@ fmod.ts:82:17 (get_local $0) ) ) ) - ;;@ fmod.ts:83:11 (return (get_local $0) ) ) ) - ;;@ fmod.ts:87:2 (if - ;;@ fmod.ts:87:6 (i32.eqz - ;;@ fmod.ts:87:7 (get_local $4) ) - ;;@ fmod.ts:87:11 (block (block $break|0 - ;;@ fmod.ts:88:9 (set_local $9 - ;;@ fmod.ts:88:17 (i32.shl (get_local $2) - ;;@ fmod.ts:88:23 (i32.const 9) ) ) (loop $continue|0 (if - ;;@ fmod.ts:88:26 (i32.eqz - ;;@ fmod.ts:88:27 (i32.shr_u - ;;@ fmod.ts:88:28 (get_local $9) - ;;@ fmod.ts:88:33 (i32.const 31) ) ) (block - ;;@ fmod.ts:89:6 (set_local $4 (i32.sub - ;;@ fmod.ts:89:8 (get_local $4) (i32.const 1) ) ) - ;;@ fmod.ts:88:38 (set_local $9 (i32.shl (get_local $9) - ;;@ fmod.ts:88:44 (i32.const 1) ) ) @@ -3229,96 +2536,70 @@ ) ) ) - ;;@ fmod.ts:90:4 (set_local $2 (i32.shl (get_local $2) - ;;@ fmod.ts:90:11 (i32.add (i32.sub (i32.const 0) - ;;@ fmod.ts:90:12 (get_local $4) ) - ;;@ fmod.ts:90:17 (i32.const 1) ) ) ) ) - ;;@ fmod.ts:91:9 (block - ;;@ fmod.ts:92:4 (set_local $2 (i32.and (get_local $2) - ;;@ fmod.ts:92:10 (i32.shr_u (i32.const -1) - ;;@ fmod.ts:92:21 (i32.const 9) ) ) ) - ;;@ fmod.ts:93:4 (set_local $2 (i32.or (get_local $2) - ;;@ fmod.ts:93:10 (i32.shl (i32.const 1) - ;;@ fmod.ts:93:15 (i32.const 23) ) ) ) ) ) - ;;@ fmod.ts:95:2 (if - ;;@ fmod.ts:95:6 (i32.eqz - ;;@ fmod.ts:95:7 (get_local $5) ) - ;;@ fmod.ts:95:11 (block (block $break|1 - ;;@ fmod.ts:96:9 (set_local $9 - ;;@ fmod.ts:96:13 (i32.shl (get_local $3) - ;;@ fmod.ts:96:19 (i32.const 9) ) ) (loop $continue|1 (if - ;;@ fmod.ts:96:22 (i32.eqz - ;;@ fmod.ts:96:23 (i32.shr_u - ;;@ fmod.ts:96:24 (get_local $9) - ;;@ fmod.ts:96:29 (i32.const 31) ) ) (block - ;;@ fmod.ts:97:6 (set_local $5 (i32.sub - ;;@ fmod.ts:97:8 (get_local $5) (i32.const 1) ) ) - ;;@ fmod.ts:96:34 (set_local $9 (i32.shl (get_local $9) - ;;@ fmod.ts:96:40 (i32.const 1) ) ) @@ -3327,124 +2608,89 @@ ) ) ) - ;;@ fmod.ts:98:4 (set_local $3 (i32.shl (get_local $3) - ;;@ fmod.ts:98:11 (i32.add (i32.sub (i32.const 0) - ;;@ fmod.ts:98:12 (get_local $5) ) - ;;@ fmod.ts:98:17 (i32.const 1) ) ) ) ) - ;;@ fmod.ts:99:9 (block - ;;@ fmod.ts:100:4 (set_local $3 (i32.and (get_local $3) - ;;@ fmod.ts:100:10 (i32.shr_u (i32.const -1) - ;;@ fmod.ts:100:21 (i32.const 9) ) ) ) - ;;@ fmod.ts:101:4 (set_local $3 (i32.or (get_local $3) - ;;@ fmod.ts:101:10 (i32.shl (i32.const 1) - ;;@ fmod.ts:101:15 (i32.const 23) ) ) ) ) ) - ;;@ fmod.ts:105:2 (block $break|2 (nop) (loop $continue|2 (if - ;;@ fmod.ts:105:9 (i32.gt_s (get_local $4) - ;;@ fmod.ts:105:14 (get_local $5) ) (block (block - ;;@ fmod.ts:106:4 (set_local $9 - ;;@ fmod.ts:106:8 (i32.sub (get_local $2) - ;;@ fmod.ts:106:13 (get_local $3) ) ) - ;;@ fmod.ts:107:4 (if - ;;@ fmod.ts:107:8 (i32.eqz - ;;@ fmod.ts:107:9 (i32.shr_u - ;;@ fmod.ts:107:10 (get_local $9) - ;;@ fmod.ts:107:15 (i32.const 31) ) ) - ;;@ fmod.ts:107:20 (block - ;;@ fmod.ts:108:6 (if - ;;@ fmod.ts:108:10 (i32.eqz - ;;@ fmod.ts:108:11 (get_local $9) ) - ;;@ fmod.ts:109:19 (return - ;;@ fmod.ts:109:15 (f32.mul (f32.const 0) - ;;@ fmod.ts:109:19 (get_local $0) ) ) ) - ;;@ fmod.ts:110:6 (set_local $2 - ;;@ fmod.ts:110:11 (get_local $9) ) ) ) - ;;@ fmod.ts:112:4 (set_local $2 (i32.shl (get_local $2) - ;;@ fmod.ts:112:11 (i32.const 1) ) ) ) - ;;@ fmod.ts:105:18 (set_local $4 (i32.sub - ;;@ fmod.ts:105:20 (get_local $4) (i32.const 1) ) @@ -3454,82 +2700,56 @@ ) ) ) - ;;@ fmod.ts:114:2 (set_local $9 - ;;@ fmod.ts:114:6 (i32.sub (get_local $2) - ;;@ fmod.ts:114:11 (get_local $3) ) ) - ;;@ fmod.ts:115:2 (if - ;;@ fmod.ts:115:6 (i32.eqz - ;;@ fmod.ts:115:7 (i32.shr_u - ;;@ fmod.ts:115:8 (get_local $9) - ;;@ fmod.ts:115:13 (i32.const 31) ) ) - ;;@ fmod.ts:115:18 (block - ;;@ fmod.ts:116:4 (if - ;;@ fmod.ts:116:8 (i32.eqz - ;;@ fmod.ts:116:9 (get_local $9) ) - ;;@ fmod.ts:117:17 (return - ;;@ fmod.ts:117:13 (f32.mul (f32.const 0) - ;;@ fmod.ts:117:17 (get_local $0) ) ) ) - ;;@ fmod.ts:118:4 (set_local $2 - ;;@ fmod.ts:118:9 (get_local $9) ) ) ) - ;;@ fmod.ts:120:2 (block $break|3 (nop) (loop $continue|3 (if - ;;@ fmod.ts:120:9 (i32.eqz - ;;@ fmod.ts:120:10 (i32.shr_u - ;;@ fmod.ts:120:11 (get_local $2) - ;;@ fmod.ts:120:17 (i32.const 23) ) ) (block - ;;@ fmod.ts:121:4 (set_local $4 (i32.sub - ;;@ fmod.ts:121:6 (get_local $4) (i32.const 1) ) ) - ;;@ fmod.ts:120:22 (set_local $2 (i32.shl (get_local $2) - ;;@ fmod.ts:120:29 (i32.const 1) ) ) @@ -3538,87 +2758,64 @@ ) ) ) - ;;@ fmod.ts:124:2 (if - ;;@ fmod.ts:124:6 (i32.gt_s (get_local $4) - ;;@ fmod.ts:124:11 (i32.const 0) ) - ;;@ fmod.ts:124:14 (block - ;;@ fmod.ts:125:4 (set_local $2 (i32.sub (get_local $2) - ;;@ fmod.ts:125:10 (i32.shl (i32.const 1) - ;;@ fmod.ts:125:15 (i32.const 23) ) ) ) - ;;@ fmod.ts:126:4 (set_local $2 (i32.or (get_local $2) - ;;@ fmod.ts:126:10 (i32.shl (get_local $4) - ;;@ fmod.ts:126:21 (i32.const 23) ) ) ) ) - ;;@ fmod.ts:128:4 (set_local $2 (i32.shr_u (get_local $2) - ;;@ fmod.ts:128:11 (i32.add (i32.sub (i32.const 0) - ;;@ fmod.ts:128:12 (get_local $4) ) - ;;@ fmod.ts:128:17 (i32.const 1) ) ) ) ) - ;;@ fmod.ts:130:2 (set_local $2 (i32.or (get_local $2) - ;;@ fmod.ts:130:8 (get_local $6) ) ) - ;;@ fmod.ts:131:28 (return - ;;@ fmod.ts:131:9 (f32.reinterpret/i32 - ;;@ fmod.ts:131:26 (get_local $2) ) ) ) (func $showcase/ADerivedClass#set:aWildAccessorAppears (; 9 ;) (type $ifv) (param $0 i32) (param $1 f32) - ;;@ showcase.ts:99:39 (f32.store offset=4 (get_local $0) - ;;@ showcase.ts:99:59 (get_local $1) ) ) (func $showcase/ADerivedClass#get:aWildAccessorAppears (; 10 ;) (type $if) (param $0 i32) (result f32) - ;;@ showcase.ts:98:48 (return - ;;@ showcase.ts:98:43 (f32.load offset=4 (get_local $0) ) @@ -3631,170 +2828,120 @@ (local $3 f64) (local $4 i32) (local $5 i64) - ;;@ unary.ts:1:0 (drop - ;;@ unary.ts:1:1 (i32.const 1) ) - ;;@ unary.ts:2:0 (drop (i32.const -1) ) - ;;@ unary.ts:3:0 (drop (i32.eqz - ;;@ unary.ts:3:1 (i32.const 1) ) ) - ;;@ unary.ts:4:0 (drop (i32.xor - ;;@ unary.ts:4:1 (i32.const 1) (i32.const -1) ) ) - ;;@ unary.ts:5:0 (drop - ;;@ unary.ts:5:1 (f64.const 1.25) ) - ;;@ unary.ts:6:0 (drop (f64.const -1.25) ) - ;;@ unary.ts:7:0 (drop (f64.eq - ;;@ unary.ts:7:1 (f64.const 1.25) (f64.const 0) ) ) - ;;@ unary.ts:11:0 (drop - ;;@ unary.ts:11:1 (get_global $unary/i) ) - ;;@ unary.ts:12:0 (drop (i32.sub (i32.const 0) - ;;@ unary.ts:12:1 (get_global $unary/i) ) ) - ;;@ unary.ts:13:0 (drop (i32.eqz - ;;@ unary.ts:13:1 (get_global $unary/i) ) ) - ;;@ unary.ts:14:0 (drop (i32.xor - ;;@ unary.ts:14:1 (get_global $unary/i) (i32.const -1) ) ) - ;;@ unary.ts:15:0 - (set_global $unary/i - (i32.add - ;;@ unary.ts:15:2 - (get_global $unary/i) - (i32.const 1) - ) - ) - ;;@ unary.ts:16:0 - (set_global $unary/i - (i32.sub - ;;@ unary.ts:16:2 - (get_global $unary/i) - (i32.const 1) - ) - ) - ;;@ unary.ts:17:0 (set_global $unary/i (i32.add (get_global $unary/i) (i32.const 1) ) ) - ;;@ unary.ts:18:0 (set_global $unary/i (i32.sub (get_global $unary/i) (i32.const 1) ) ) - ;;@ unary.ts:20:0 (set_global $unary/i - ;;@ unary.ts:20:4 + (i32.add + (get_global $unary/i) + (i32.const 1) + ) + ) + (set_global $unary/i + (i32.sub + (get_global $unary/i) + (i32.const 1) + ) + ) + (set_global $unary/i (i32.const 1) ) - ;;@ unary.ts:21:0 (set_global $unary/i - ;;@ unary.ts:21:4 (i32.const -1) ) - ;;@ unary.ts:22:0 (set_global $unary/i - ;;@ unary.ts:22:4 (i32.eqz - ;;@ unary.ts:22:5 (i32.const 1) ) ) - ;;@ unary.ts:23:0 (set_global $unary/i - ;;@ unary.ts:23:4 (i32.xor - ;;@ unary.ts:23:5 (i32.const 1) (i32.const -1) ) ) - ;;@ unary.ts:24:0 (set_global $unary/i - ;;@ unary.ts:24:4 (get_global $unary/i) ) - ;;@ unary.ts:25:0 (set_global $unary/i - ;;@ unary.ts:25:4 (i32.sub (i32.const 0) - ;;@ unary.ts:25:5 (get_global $unary/i) ) ) - ;;@ unary.ts:26:0 (set_global $unary/i - ;;@ unary.ts:26:4 (i32.eqz - ;;@ unary.ts:26:5 (get_global $unary/i) ) ) - ;;@ unary.ts:27:0 (set_global $unary/i - ;;@ unary.ts:27:4 (i32.xor - ;;@ unary.ts:27:5 (get_global $unary/i) (i32.const -1) ) ) - ;;@ unary.ts:28:0 (set_global $unary/i - ;;@ unary.ts:28:4 (block (result i32) (set_global $unary/i (i32.add - ;;@ unary.ts:28:6 (get_global $unary/i) (i32.const 1) ) @@ -3802,13 +2949,10 @@ (get_global $unary/i) ) ) - ;;@ unary.ts:29:0 (set_global $unary/i - ;;@ unary.ts:29:4 (block (result i32) (set_global $unary/i (i32.sub - ;;@ unary.ts:29:6 (get_global $unary/i) (i32.const 1) ) @@ -3816,9 +2960,7 @@ (get_global $unary/i) ) ) - ;;@ unary.ts:30:0 (set_global $unary/i - ;;@ unary.ts:30:4 (block (result i32) (set_local $0 (get_global $unary/i) @@ -3832,9 +2974,7 @@ (get_local $0) ) ) - ;;@ unary.ts:31:0 (set_global $unary/i - ;;@ unary.ts:31:4 (block (result i32) (set_local $0 (get_global $unary/i) @@ -3848,133 +2988,95 @@ (get_local $0) ) ) - ;;@ unary.ts:35:0 (drop - ;;@ unary.ts:35:1 (get_global $unary/I) ) - ;;@ unary.ts:36:0 (drop (i64.sub (i64.const 0) - ;;@ unary.ts:36:1 (get_global $unary/I) ) ) - ;;@ unary.ts:37:0 (drop (i64.eqz - ;;@ unary.ts:37:1 (get_global $unary/I) ) ) - ;;@ unary.ts:38:0 (drop (i64.xor - ;;@ unary.ts:38:1 (get_global $unary/I) (i64.const -1) ) ) - ;;@ unary.ts:39:0 - (set_global $unary/I - (i64.add - ;;@ unary.ts:39:2 - (get_global $unary/I) - (i64.const 1) - ) - ) - ;;@ unary.ts:40:0 - (set_global $unary/I - (i64.sub - ;;@ unary.ts:40:2 - (get_global $unary/I) - (i64.const 1) - ) - ) - ;;@ unary.ts:41:0 (set_global $unary/I (i64.add (get_global $unary/I) (i64.const 1) ) ) - ;;@ unary.ts:42:0 (set_global $unary/I (i64.sub (get_global $unary/I) (i64.const 1) ) ) - ;;@ unary.ts:44:0 (set_global $unary/I - ;;@ unary.ts:44:4 + (i64.add + (get_global $unary/I) + (i64.const 1) + ) + ) + (set_global $unary/I + (i64.sub + (get_global $unary/I) + (i64.const 1) + ) + ) + (set_global $unary/I (i64.const 1) ) - ;;@ unary.ts:45:0 (set_global $unary/I - ;;@ unary.ts:45:4 (i64.const -1) ) - ;;@ unary.ts:46:0 (set_global $unary/I - ;;@ unary.ts:46:4 (i64.extend_s/i32 (i64.eqz - ;;@ unary.ts:46:5 (i64.const 1) ) ) ) - ;;@ unary.ts:47:0 (set_global $unary/I - ;;@ unary.ts:47:4 (i64.xor - ;;@ unary.ts:47:5 (i64.const 1) (i64.const -1) ) ) - ;;@ unary.ts:48:0 (set_global $unary/I - ;;@ unary.ts:48:4 (get_global $unary/I) ) - ;;@ unary.ts:49:0 (set_global $unary/I - ;;@ unary.ts:49:4 (i64.sub (i64.const 0) - ;;@ unary.ts:49:5 (get_global $unary/I) ) ) - ;;@ unary.ts:50:0 (set_global $unary/I - ;;@ unary.ts:50:4 (i64.extend_s/i32 (i64.eqz - ;;@ unary.ts:50:5 (get_global $unary/I) ) ) ) - ;;@ unary.ts:51:0 (set_global $unary/I - ;;@ unary.ts:51:4 (i64.xor - ;;@ unary.ts:51:5 (get_global $unary/I) (i64.const -1) ) ) - ;;@ unary.ts:52:0 (set_global $unary/I - ;;@ unary.ts:52:4 (block (result i64) (set_global $unary/I (i64.add - ;;@ unary.ts:52:6 (get_global $unary/I) (i64.const 1) ) @@ -3982,13 +3084,10 @@ (get_global $unary/I) ) ) - ;;@ unary.ts:53:0 (set_global $unary/I - ;;@ unary.ts:53:4 (block (result i64) (set_global $unary/I (i64.sub - ;;@ unary.ts:53:6 (get_global $unary/I) (i64.const 1) ) @@ -3996,9 +3095,7 @@ (get_global $unary/I) ) ) - ;;@ unary.ts:54:0 (set_global $unary/I - ;;@ unary.ts:54:4 (block (result i64) (set_local $1 (get_global $unary/I) @@ -4012,9 +3109,7 @@ (get_local $1) ) ) - ;;@ unary.ts:55:0 (set_global $unary/I - ;;@ unary.ts:55:4 (block (result i64) (set_local $1 (get_global $unary/I) @@ -4028,104 +3123,74 @@ (get_local $1) ) ) - ;;@ unary.ts:59:0 (drop - ;;@ unary.ts:59:1 (get_global $unary/f) ) - ;;@ unary.ts:60:0 (drop (f32.neg - ;;@ unary.ts:60:1 (get_global $unary/f) ) ) - ;;@ unary.ts:61:0 (drop (f32.eq - ;;@ unary.ts:61:1 (get_global $unary/f) (f32.const 0) ) ) - ;;@ unary.ts:62:0 - (set_global $unary/f - (f32.add - ;;@ unary.ts:62:2 - (get_global $unary/f) - (f32.const 1) - ) - ) - ;;@ unary.ts:63:0 - (set_global $unary/f - (f32.sub - ;;@ unary.ts:63:2 - (get_global $unary/f) - (f32.const 1) - ) - ) - ;;@ unary.ts:64:0 (set_global $unary/f (f32.add (get_global $unary/f) (f32.const 1) ) ) - ;;@ unary.ts:65:0 (set_global $unary/f (f32.sub (get_global $unary/f) (f32.const 1) ) ) - ;;@ unary.ts:67:0 (set_global $unary/f - ;;@ unary.ts:67:4 + (f32.add + (get_global $unary/f) + (f32.const 1) + ) + ) + (set_global $unary/f + (f32.sub + (get_global $unary/f) + (f32.const 1) + ) + ) + (set_global $unary/f (f32.const 1.25) ) - ;;@ unary.ts:68:0 (set_global $unary/f - ;;@ unary.ts:68:4 (f32.const -1.25) ) - ;;@ unary.ts:69:0 (set_global $unary/i - ;;@ unary.ts:69:4 (f64.eq - ;;@ unary.ts:69:5 (f64.const 1.25) (f64.const 0) ) ) - ;;@ unary.ts:70:0 (set_global $unary/f - ;;@ unary.ts:70:4 (get_global $unary/f) ) - ;;@ unary.ts:71:0 (set_global $unary/f - ;;@ unary.ts:71:4 (f32.neg - ;;@ unary.ts:71:5 (get_global $unary/f) ) ) - ;;@ unary.ts:72:0 (set_global $unary/i - ;;@ unary.ts:72:4 (f32.eq - ;;@ unary.ts:72:5 (get_global $unary/f) (f32.const 0) ) ) - ;;@ unary.ts:73:0 (set_global $unary/f - ;;@ unary.ts:73:4 (block (result f32) (set_global $unary/f (f32.add - ;;@ unary.ts:73:6 (get_global $unary/f) (f32.const 1) ) @@ -4133,13 +3198,10 @@ (get_global $unary/f) ) ) - ;;@ unary.ts:74:0 (set_global $unary/f - ;;@ unary.ts:74:4 (block (result f32) (set_global $unary/f (f32.sub - ;;@ unary.ts:74:6 (get_global $unary/f) (f32.const 1) ) @@ -4147,9 +3209,7 @@ (get_global $unary/f) ) ) - ;;@ unary.ts:75:0 (set_global $unary/f - ;;@ unary.ts:75:4 (block (result f32) (set_local $2 (get_global $unary/f) @@ -4163,9 +3223,7 @@ (get_local $2) ) ) - ;;@ unary.ts:76:0 (set_global $unary/f - ;;@ unary.ts:76:4 (block (result f32) (set_local $2 (get_global $unary/f) @@ -4179,108 +3237,78 @@ (get_local $2) ) ) - ;;@ unary.ts:80:0 (drop - ;;@ unary.ts:80:1 (get_global $unary/F) ) - ;;@ unary.ts:81:0 (drop (f64.neg - ;;@ unary.ts:81:1 (get_global $unary/F) ) ) - ;;@ unary.ts:82:0 (drop (f64.eq - ;;@ unary.ts:82:1 (get_global $unary/F) (f64.const 0) ) ) - ;;@ unary.ts:83:0 - (set_global $unary/F - (f64.add - ;;@ unary.ts:83:2 - (get_global $unary/F) - (f64.const 1) - ) - ) - ;;@ unary.ts:84:0 - (set_global $unary/F - (f64.sub - ;;@ unary.ts:84:2 - (get_global $unary/F) - (f64.const 1) - ) - ) - ;;@ unary.ts:85:0 (set_global $unary/F (f64.add (get_global $unary/F) (f64.const 1) ) ) - ;;@ unary.ts:86:0 (set_global $unary/F (f64.sub (get_global $unary/F) (f64.const 1) ) ) - ;;@ unary.ts:88:0 (set_global $unary/F - ;;@ unary.ts:88:4 + (f64.add + (get_global $unary/F) + (f64.const 1) + ) + ) + (set_global $unary/F + (f64.sub + (get_global $unary/F) + (f64.const 1) + ) + ) + (set_global $unary/F (f64.const 1.25) ) - ;;@ unary.ts:89:0 (set_global $unary/F - ;;@ unary.ts:89:4 (f64.const -1.25) ) - ;;@ unary.ts:90:0 (set_global $unary/I - ;;@ unary.ts:90:4 (i64.extend_s/i32 (f64.eq - ;;@ unary.ts:90:5 (f64.const 1.25) (f64.const 0) ) ) ) - ;;@ unary.ts:91:0 (set_global $unary/F - ;;@ unary.ts:91:4 (get_global $unary/F) ) - ;;@ unary.ts:92:0 (set_global $unary/F - ;;@ unary.ts:92:4 (f64.neg - ;;@ unary.ts:92:5 (get_global $unary/F) ) ) - ;;@ unary.ts:93:0 (set_global $unary/I - ;;@ unary.ts:93:4 (i64.extend_s/i32 (f64.eq - ;;@ unary.ts:93:5 (get_global $unary/F) (f64.const 0) ) ) ) - ;;@ unary.ts:94:0 (set_global $unary/F - ;;@ unary.ts:94:4 (block (result f64) (set_global $unary/F (f64.add - ;;@ unary.ts:94:6 (get_global $unary/F) (f64.const 1) ) @@ -4288,13 +3316,10 @@ (get_global $unary/F) ) ) - ;;@ unary.ts:95:0 (set_global $unary/F - ;;@ unary.ts:95:4 (block (result f64) (set_global $unary/F (f64.sub - ;;@ unary.ts:95:6 (get_global $unary/F) (f64.const 1) ) @@ -4302,9 +3327,7 @@ (get_global $unary/F) ) ) - ;;@ unary.ts:96:0 (set_global $unary/F - ;;@ unary.ts:96:4 (block (result f64) (set_local $3 (get_global $unary/F) @@ -4318,9 +3341,7 @@ (get_local $3) ) ) - ;;@ unary.ts:97:0 (set_global $unary/F - ;;@ unary.ts:97:4 (block (result f64) (set_local $3 (get_global $unary/F) @@ -4334,1157 +3355,830 @@ (get_local $3) ) ) - ;;@ binary.ts:5:0 (drop (i32.lt_s (get_global $binary/i) - ;;@ binary.ts:5:4 (i32.const 1) ) ) - ;;@ binary.ts:6:0 (drop (i32.gt_s (get_global $binary/i) - ;;@ binary.ts:6:4 (i32.const 1) ) ) - ;;@ binary.ts:7:0 (drop (i32.le_s (get_global $binary/i) - ;;@ binary.ts:7:5 (i32.const 1) ) ) - ;;@ binary.ts:8:0 (drop (i32.ge_s (get_global $binary/i) - ;;@ binary.ts:8:5 (i32.const 1) ) ) - ;;@ binary.ts:9:0 (drop (i32.eq (get_global $binary/i) - ;;@ binary.ts:9:5 (i32.const 1) ) ) - ;;@ binary.ts:10:0 (drop (i32.eq (get_global $binary/i) - ;;@ binary.ts:10:6 (i32.const 1) ) ) - ;;@ binary.ts:11:0 (drop (i32.add (get_global $binary/i) - ;;@ binary.ts:11:4 (i32.const 1) ) ) - ;;@ binary.ts:12:0 (drop (i32.sub (get_global $binary/i) - ;;@ binary.ts:12:4 (i32.const 1) ) ) - ;;@ binary.ts:13:0 (drop (i32.mul (get_global $binary/i) - ;;@ binary.ts:13:4 (i32.const 1) ) ) - ;;@ binary.ts:14:0 (drop (i32.div_s (get_global $binary/i) - ;;@ binary.ts:14:4 (i32.const 1) ) ) - ;;@ binary.ts:15:0 (drop (i32.rem_s (get_global $binary/i) - ;;@ binary.ts:15:4 (i32.const 1) ) ) - ;;@ binary.ts:16:0 (drop (i32.shl (get_global $binary/i) - ;;@ binary.ts:16:5 (i32.const 1) ) ) - ;;@ binary.ts:17:0 (drop (i32.shr_s (get_global $binary/i) - ;;@ binary.ts:17:5 (i32.const 1) ) ) - ;;@ binary.ts:18:0 (drop (i32.shr_u (get_global $binary/i) - ;;@ binary.ts:18:6 (i32.const 1) ) ) - ;;@ binary.ts:19:0 (drop (i32.and (get_global $binary/i) - ;;@ binary.ts:19:4 (i32.const 1) ) ) - ;;@ binary.ts:20:0 (drop (i32.or (get_global $binary/i) - ;;@ binary.ts:20:4 (i32.const 1) ) ) - ;;@ binary.ts:21:0 (drop (i32.xor (get_global $binary/i) - ;;@ binary.ts:21:4 (i32.const 1) ) ) - ;;@ binary.ts:23:0 (set_global $binary/b - ;;@ binary.ts:23:4 (i32.lt_s (get_global $binary/i) - ;;@ binary.ts:23:8 (i32.const 1) ) ) - ;;@ binary.ts:24:0 (set_global $binary/b - ;;@ binary.ts:24:4 (i32.gt_s (get_global $binary/i) - ;;@ binary.ts:24:8 (i32.const 1) ) ) - ;;@ binary.ts:25:0 (set_global $binary/b - ;;@ binary.ts:25:4 (i32.le_s (get_global $binary/i) - ;;@ binary.ts:25:9 (i32.const 1) ) ) - ;;@ binary.ts:26:0 (set_global $binary/b - ;;@ binary.ts:26:4 (i32.ge_s (get_global $binary/i) - ;;@ binary.ts:26:9 (i32.const 1) ) ) - ;;@ binary.ts:27:0 (set_global $binary/b - ;;@ binary.ts:27:4 (i32.eq (get_global $binary/i) - ;;@ binary.ts:27:9 (i32.const 1) ) ) - ;;@ binary.ts:28:0 (set_global $binary/b - ;;@ binary.ts:28:4 (i32.eq (get_global $binary/i) - ;;@ binary.ts:28:10 (i32.const 1) ) ) - ;;@ binary.ts:29:0 (set_global $binary/i - ;;@ binary.ts:29:4 (i32.add (get_global $binary/i) - ;;@ binary.ts:29:8 (i32.const 1) ) ) - ;;@ binary.ts:30:0 (set_global $binary/i - ;;@ binary.ts:30:4 (i32.sub (get_global $binary/i) - ;;@ binary.ts:30:8 (i32.const 1) ) ) - ;;@ binary.ts:31:0 (set_global $binary/i - ;;@ binary.ts:31:4 (i32.mul (get_global $binary/i) - ;;@ binary.ts:31:8 (i32.const 1) ) ) - ;;@ binary.ts:32:0 (set_global $binary/i - ;;@ binary.ts:32:4 (i32.div_s (get_global $binary/i) - ;;@ binary.ts:32:8 (i32.const 1) ) ) - ;;@ binary.ts:33:0 (set_global $binary/i - ;;@ binary.ts:33:4 (i32.rem_s (get_global $binary/i) - ;;@ binary.ts:33:8 (i32.const 1) ) ) - ;;@ binary.ts:34:0 (set_global $binary/i - ;;@ binary.ts:34:4 (i32.shl (get_global $binary/i) - ;;@ binary.ts:34:9 (i32.const 1) ) ) - ;;@ binary.ts:35:0 (set_global $binary/i - ;;@ binary.ts:35:4 (i32.shr_s (get_global $binary/i) - ;;@ binary.ts:35:9 (i32.const 1) ) ) - ;;@ binary.ts:36:0 (set_global $binary/i - ;;@ binary.ts:36:4 (i32.shr_u (get_global $binary/i) - ;;@ binary.ts:36:10 (i32.const 1) ) ) - ;;@ binary.ts:37:0 (set_global $binary/i - ;;@ binary.ts:37:4 (i32.and (get_global $binary/i) - ;;@ binary.ts:37:8 (i32.const 1) ) ) - ;;@ binary.ts:38:0 (set_global $binary/i - ;;@ binary.ts:38:4 (i32.or (get_global $binary/i) - ;;@ binary.ts:38:8 (i32.const 1) ) ) - ;;@ binary.ts:39:0 (set_global $binary/i - ;;@ binary.ts:39:4 (i32.xor (get_global $binary/i) - ;;@ binary.ts:39:8 (i32.const 1) ) ) - ;;@ binary.ts:41:0 (set_global $binary/i (i32.add (get_global $binary/i) - ;;@ binary.ts:41:5 (i32.const 1) ) ) - ;;@ binary.ts:42:0 (set_global $binary/i (i32.sub (get_global $binary/i) - ;;@ binary.ts:42:5 (i32.const 1) ) ) - ;;@ binary.ts:43:0 (set_global $binary/i (i32.mul (get_global $binary/i) - ;;@ binary.ts:43:5 (i32.const 1) ) ) - ;;@ binary.ts:44:0 (set_global $binary/i (i32.rem_s (get_global $binary/i) - ;;@ binary.ts:44:5 (i32.const 1) ) ) - ;;@ binary.ts:45:0 (set_global $binary/i (i32.shl (get_global $binary/i) - ;;@ binary.ts:45:6 (i32.const 1) ) ) - ;;@ binary.ts:46:0 (set_global $binary/i (i32.shr_s (get_global $binary/i) - ;;@ binary.ts:46:6 (i32.const 1) ) ) - ;;@ binary.ts:47:0 (set_global $binary/i (i32.shr_u (get_global $binary/i) - ;;@ binary.ts:47:7 (i32.const 1) ) ) - ;;@ binary.ts:48:0 (set_global $binary/i (i32.and (get_global $binary/i) - ;;@ binary.ts:48:5 (i32.const 1) ) ) - ;;@ binary.ts:49:0 (set_global $binary/i (i32.or (get_global $binary/i) - ;;@ binary.ts:49:5 (i32.const 1) ) ) - ;;@ binary.ts:50:0 (set_global $binary/i (i32.xor (get_global $binary/i) - ;;@ binary.ts:50:5 (i32.const 1) ) ) - ;;@ binary.ts:54:0 (drop (i64.lt_s (get_global $binary/I) - ;;@ binary.ts:54:4 (i64.const 1) ) ) - ;;@ binary.ts:55:0 (drop (i64.gt_s (get_global $binary/I) - ;;@ binary.ts:55:4 (i64.const 1) ) ) - ;;@ binary.ts:56:0 (drop (i64.le_s (get_global $binary/I) - ;;@ binary.ts:56:5 (i64.const 1) ) ) - ;;@ binary.ts:57:0 (drop (i64.ge_s (get_global $binary/I) - ;;@ binary.ts:57:5 (i64.const 1) ) ) - ;;@ binary.ts:58:0 (drop (i64.eq (get_global $binary/I) - ;;@ binary.ts:58:5 (i64.const 1) ) ) - ;;@ binary.ts:59:0 (drop (i64.eq (get_global $binary/I) - ;;@ binary.ts:59:6 (i64.const 1) ) ) - ;;@ binary.ts:60:0 (drop (i64.add (get_global $binary/I) - ;;@ binary.ts:60:4 (i64.const 1) ) ) - ;;@ binary.ts:61:0 (drop (i64.sub (get_global $binary/I) - ;;@ binary.ts:61:4 (i64.const 1) ) ) - ;;@ binary.ts:62:0 (drop (i64.mul (get_global $binary/I) - ;;@ binary.ts:62:4 (i64.const 1) ) ) - ;;@ binary.ts:63:0 (drop (i64.div_s (get_global $binary/I) - ;;@ binary.ts:63:4 (i64.const 1) ) ) - ;;@ binary.ts:64:0 (drop (i64.rem_s (get_global $binary/I) - ;;@ binary.ts:64:4 (i64.const 1) ) ) - ;;@ binary.ts:65:0 (drop (i64.shl (get_global $binary/I) - ;;@ binary.ts:65:5 (i64.const 1) ) ) - ;;@ binary.ts:66:0 (drop (i64.shr_s (get_global $binary/I) - ;;@ binary.ts:66:5 (i64.const 1) ) ) - ;;@ binary.ts:67:0 (drop (i64.shr_u (get_global $binary/I) - ;;@ binary.ts:67:6 (i64.const 1) ) ) - ;;@ binary.ts:68:0 (drop (i64.and (get_global $binary/I) - ;;@ binary.ts:68:4 (i64.const 1) ) ) - ;;@ binary.ts:69:0 (drop (i64.or (get_global $binary/I) - ;;@ binary.ts:69:4 (i64.const 1) ) ) - ;;@ binary.ts:70:0 (drop (i64.xor (get_global $binary/I) - ;;@ binary.ts:70:4 (i64.const 1) ) ) - ;;@ binary.ts:72:0 (set_global $binary/b - ;;@ binary.ts:72:4 (i64.lt_s (get_global $binary/I) - ;;@ binary.ts:72:8 (i64.const 1) ) ) - ;;@ binary.ts:73:0 (set_global $binary/b - ;;@ binary.ts:73:4 (i64.gt_s (get_global $binary/I) - ;;@ binary.ts:73:8 (i64.const 1) ) ) - ;;@ binary.ts:74:0 (set_global $binary/b - ;;@ binary.ts:74:4 (i64.le_s (get_global $binary/I) - ;;@ binary.ts:74:9 (i64.const 1) ) ) - ;;@ binary.ts:75:0 (set_global $binary/b - ;;@ binary.ts:75:4 (i64.ge_s (get_global $binary/I) - ;;@ binary.ts:75:9 (i64.const 1) ) ) - ;;@ binary.ts:76:0 (set_global $binary/b - ;;@ binary.ts:76:4 (i64.eq (get_global $binary/I) - ;;@ binary.ts:76:9 (i64.const 1) ) ) - ;;@ binary.ts:77:0 (set_global $binary/b - ;;@ binary.ts:77:4 (i64.eq (get_global $binary/I) - ;;@ binary.ts:77:10 (i64.const 1) ) ) - ;;@ binary.ts:78:0 (set_global $binary/I - ;;@ binary.ts:78:4 (i64.add (get_global $binary/I) - ;;@ binary.ts:78:8 (i64.const 1) ) ) - ;;@ binary.ts:79:0 (set_global $binary/I - ;;@ binary.ts:79:4 (i64.sub (get_global $binary/I) - ;;@ binary.ts:79:8 (i64.const 1) ) ) - ;;@ binary.ts:80:0 (set_global $binary/I - ;;@ binary.ts:80:4 (i64.mul (get_global $binary/I) - ;;@ binary.ts:80:8 (i64.const 1) ) ) - ;;@ binary.ts:81:0 (set_global $binary/I - ;;@ binary.ts:81:4 (i64.div_s (get_global $binary/I) - ;;@ binary.ts:81:8 (i64.const 1) ) ) - ;;@ binary.ts:82:0 (set_global $binary/I - ;;@ binary.ts:82:4 (i64.rem_s (get_global $binary/I) - ;;@ binary.ts:82:8 (i64.const 1) ) ) - ;;@ binary.ts:83:0 (set_global $binary/I - ;;@ binary.ts:83:4 (i64.shl (get_global $binary/I) - ;;@ binary.ts:83:9 (i64.const 1) ) ) - ;;@ binary.ts:84:0 (set_global $binary/I - ;;@ binary.ts:84:4 (i64.shr_s (get_global $binary/I) - ;;@ binary.ts:84:9 (i64.const 1) ) ) - ;;@ binary.ts:85:0 (set_global $binary/I - ;;@ binary.ts:85:4 (i64.shr_u (get_global $binary/I) - ;;@ binary.ts:85:10 (i64.const 1) ) ) - ;;@ binary.ts:86:0 (set_global $binary/I - ;;@ binary.ts:86:4 (i64.and (get_global $binary/I) - ;;@ binary.ts:86:8 (i64.const 1) ) ) - ;;@ binary.ts:87:0 (set_global $binary/I - ;;@ binary.ts:87:4 (i64.or (get_global $binary/I) - ;;@ binary.ts:87:8 (i64.const 1) ) ) - ;;@ binary.ts:88:0 (set_global $binary/I - ;;@ binary.ts:88:4 (i64.xor (get_global $binary/I) - ;;@ binary.ts:88:8 (i64.const 1) ) ) - ;;@ binary.ts:90:0 (set_global $binary/I (i64.add (get_global $binary/I) - ;;@ binary.ts:90:5 (i64.const 1) ) ) - ;;@ binary.ts:91:0 (set_global $binary/I (i64.sub (get_global $binary/I) - ;;@ binary.ts:91:5 (i64.const 1) ) ) - ;;@ binary.ts:92:0 (set_global $binary/I (i64.mul (get_global $binary/I) - ;;@ binary.ts:92:5 (i64.const 1) ) ) - ;;@ binary.ts:93:0 (set_global $binary/I (i64.rem_s (get_global $binary/I) - ;;@ binary.ts:93:5 (i64.const 1) ) ) - ;;@ binary.ts:94:0 (set_global $binary/I (i64.shl (get_global $binary/I) - ;;@ binary.ts:94:6 (i64.const 1) ) ) - ;;@ binary.ts:95:0 (set_global $binary/I (i64.shr_s (get_global $binary/I) - ;;@ binary.ts:95:6 (i64.const 1) ) ) - ;;@ binary.ts:96:0 (set_global $binary/I (i64.shr_u (get_global $binary/I) - ;;@ binary.ts:96:7 (i64.const 1) ) ) - ;;@ binary.ts:97:0 (set_global $binary/I (i64.and (get_global $binary/I) - ;;@ binary.ts:97:5 (i64.const 1) ) ) - ;;@ binary.ts:98:0 (set_global $binary/I (i64.or (get_global $binary/I) - ;;@ binary.ts:98:5 (i64.const 1) ) ) - ;;@ binary.ts:99:0 (set_global $binary/I (i64.xor (get_global $binary/I) - ;;@ binary.ts:99:5 (i64.const 1) ) ) - ;;@ binary.ts:103:0 (drop (f32.lt (get_global $binary/f) - ;;@ binary.ts:103:4 (f32.const 1) ) ) - ;;@ binary.ts:104:0 (drop (f32.gt (get_global $binary/f) - ;;@ binary.ts:104:4 (f32.const 1) ) ) - ;;@ binary.ts:105:0 (drop (f32.le (get_global $binary/f) - ;;@ binary.ts:105:5 (f32.const 1) ) ) - ;;@ binary.ts:106:0 (drop (f32.ge (get_global $binary/f) - ;;@ binary.ts:106:5 (f32.const 1) ) ) - ;;@ binary.ts:107:0 (drop (f32.eq (get_global $binary/f) - ;;@ binary.ts:107:5 (f32.const 1) ) ) - ;;@ binary.ts:108:0 (drop (f32.eq (get_global $binary/f) - ;;@ binary.ts:108:6 (f32.const 1) ) ) - ;;@ binary.ts:109:0 (drop (f32.add (get_global $binary/f) - ;;@ binary.ts:109:4 (f32.const 1) ) ) - ;;@ binary.ts:110:0 (drop (f32.sub (get_global $binary/f) - ;;@ binary.ts:110:4 (f32.const 1) ) ) - ;;@ binary.ts:111:0 (drop (f32.mul (get_global $binary/f) - ;;@ binary.ts:111:4 (f32.const 1) ) ) - ;;@ binary.ts:112:0 (drop (f32.div (get_global $binary/f) - ;;@ binary.ts:112:4 (f32.const 1) ) ) - ;;@ binary.ts:115:0 (set_global $binary/b - ;;@ binary.ts:115:4 (f32.lt (get_global $binary/f) - ;;@ binary.ts:115:8 (f32.const 1) ) ) - ;;@ binary.ts:116:0 (set_global $binary/b - ;;@ binary.ts:116:4 (f32.gt (get_global $binary/f) - ;;@ binary.ts:116:8 (f32.const 1) ) ) - ;;@ binary.ts:117:0 (set_global $binary/b - ;;@ binary.ts:117:4 (f32.le (get_global $binary/f) - ;;@ binary.ts:117:9 (f32.const 1) ) ) - ;;@ binary.ts:118:0 (set_global $binary/b - ;;@ binary.ts:118:4 (f32.ge (get_global $binary/f) - ;;@ binary.ts:118:9 (f32.const 1) ) ) - ;;@ binary.ts:119:0 (set_global $binary/b - ;;@ binary.ts:119:4 (f32.eq (get_global $binary/f) - ;;@ binary.ts:119:9 (f32.const 1) ) ) - ;;@ binary.ts:120:0 (set_global $binary/b - ;;@ binary.ts:120:4 (f32.eq (get_global $binary/f) - ;;@ binary.ts:120:10 (f32.const 1) ) ) - ;;@ binary.ts:121:0 (set_global $binary/f - ;;@ binary.ts:121:4 (f32.add (get_global $binary/f) - ;;@ binary.ts:121:8 (f32.const 1) ) ) - ;;@ binary.ts:122:0 (set_global $binary/f - ;;@ binary.ts:122:4 (f32.sub (get_global $binary/f) - ;;@ binary.ts:122:8 (f32.const 1) ) ) - ;;@ binary.ts:123:0 (set_global $binary/f - ;;@ binary.ts:123:4 (f32.mul (get_global $binary/f) - ;;@ binary.ts:123:8 (f32.const 1) ) ) - ;;@ binary.ts:124:0 (set_global $binary/f - ;;@ binary.ts:124:4 (f32.div (get_global $binary/f) - ;;@ binary.ts:124:8 (f32.const 1) ) ) - ;;@ binary.ts:127:0 (set_global $binary/f (f32.add (get_global $binary/f) - ;;@ binary.ts:127:5 (f32.const 1) ) ) - ;;@ binary.ts:128:0 (set_global $binary/f (f32.sub (get_global $binary/f) - ;;@ binary.ts:128:5 (f32.const 1) ) ) - ;;@ binary.ts:129:0 (set_global $binary/f (f32.mul (get_global $binary/f) - ;;@ binary.ts:129:5 (f32.const 1) ) ) - ;;@ binary.ts:134:0 (drop (f64.lt (get_global $binary/F) - ;;@ binary.ts:134:4 (f64.const 1) ) ) - ;;@ binary.ts:135:0 (drop (f64.gt (get_global $binary/F) - ;;@ binary.ts:135:4 (f64.const 1) ) ) - ;;@ binary.ts:136:0 (drop (f64.le (get_global $binary/F) - ;;@ binary.ts:136:5 (f64.const 1) ) ) - ;;@ binary.ts:137:0 (drop (f64.ge (get_global $binary/F) - ;;@ binary.ts:137:5 (f64.const 1) ) ) - ;;@ binary.ts:138:0 (drop (f64.eq (get_global $binary/F) - ;;@ binary.ts:138:5 (f64.const 1) ) ) - ;;@ binary.ts:139:0 (drop (f64.eq (get_global $binary/F) - ;;@ binary.ts:139:6 (f64.const 1) ) ) - ;;@ binary.ts:140:0 (drop (f64.add (get_global $binary/F) - ;;@ binary.ts:140:4 (f64.const 1) ) ) - ;;@ binary.ts:141:0 (drop (f64.sub (get_global $binary/F) - ;;@ binary.ts:141:4 (f64.const 1) ) ) - ;;@ binary.ts:142:0 (drop (f64.mul (get_global $binary/F) - ;;@ binary.ts:142:4 (f64.const 1) ) ) - ;;@ binary.ts:143:0 (drop (f64.div (get_global $binary/F) - ;;@ binary.ts:143:4 (f64.const 1) ) ) - ;;@ binary.ts:146:0 (set_global $binary/b - ;;@ binary.ts:146:4 (f64.lt (get_global $binary/F) - ;;@ binary.ts:146:8 (f64.const 1) ) ) - ;;@ binary.ts:147:0 (set_global $binary/b - ;;@ binary.ts:147:4 (f64.gt (get_global $binary/F) - ;;@ binary.ts:147:8 (f64.const 1) ) ) - ;;@ binary.ts:148:0 (set_global $binary/b - ;;@ binary.ts:148:4 (f64.le (get_global $binary/F) - ;;@ binary.ts:148:9 (f64.const 1) ) ) - ;;@ binary.ts:149:0 (set_global $binary/b - ;;@ binary.ts:149:4 (f64.ge (get_global $binary/F) - ;;@ binary.ts:149:9 (f64.const 1) ) ) - ;;@ binary.ts:150:0 (set_global $binary/b - ;;@ binary.ts:150:4 (f64.eq (get_global $binary/F) - ;;@ binary.ts:150:9 (f64.const 1) ) ) - ;;@ binary.ts:151:0 (set_global $binary/b - ;;@ binary.ts:151:4 (f64.eq (get_global $binary/F) - ;;@ binary.ts:151:10 (f64.const 1) ) ) - ;;@ binary.ts:152:0 (set_global $binary/F - ;;@ binary.ts:152:4 (f64.add (get_global $binary/F) - ;;@ binary.ts:152:8 (f64.const 1) ) ) - ;;@ binary.ts:153:0 (set_global $binary/F - ;;@ binary.ts:153:4 (f64.sub (get_global $binary/F) - ;;@ binary.ts:153:8 (f64.const 1) ) ) - ;;@ binary.ts:154:0 (set_global $binary/F - ;;@ binary.ts:154:4 (f64.mul (get_global $binary/F) - ;;@ binary.ts:154:8 (f64.const 1) ) ) - ;;@ binary.ts:155:0 (set_global $binary/F - ;;@ binary.ts:155:4 (f64.div (get_global $binary/F) - ;;@ binary.ts:155:8 (f64.const 1) ) ) - ;;@ binary.ts:158:0 (set_global $binary/F (f64.add (get_global $binary/F) - ;;@ binary.ts:158:5 (f64.const 1) ) ) - ;;@ binary.ts:159:0 (set_global $binary/F (f64.sub (get_global $binary/F) - ;;@ binary.ts:159:5 (f64.const 1) ) ) - ;;@ binary.ts:160:0 (set_global $binary/F (f64.mul (get_global $binary/F) - ;;@ binary.ts:160:5 (f64.const 1) ) ) - ;;@ logical.ts:1:0 (drop (if (result i32) (i32.ne (i32.const 0) (i32.const 0) ) - ;;@ logical.ts:1:5 (unreachable) (i32.const 0) ) ) - ;;@ logical.ts:2:0 (drop (if (result f64) (f64.ne (f64.const 0) (f64.const 0) ) - ;;@ logical.ts:2:7 (unreachable) (f64.const 0) ) ) - ;;@ logical.ts:3:0 (drop (if (result i32) (i32.ne @@ -5492,11 +4186,9 @@ (i32.const 0) ) (i32.const 1) - ;;@ logical.ts:3:5 (unreachable) ) ) - ;;@ logical.ts:4:0 (drop (if (result f64) (f64.ne @@ -5504,11 +4196,9 @@ (f64.const 0) ) (f64.const 1) - ;;@ logical.ts:4:7 (unreachable) ) ) - ;;@ logical.ts:6:0 (drop (if (result i32) (i32.ne @@ -5518,7 +4208,6 @@ (i32.const 1) (i32.const 0) ) - ;;@ logical.ts:6:5 (i32.const 2) (i32.const 1) ) @@ -5526,11 +4215,9 @@ (i32.const 0) ) (get_local $0) - ;;@ logical.ts:6:10 (unreachable) ) ) - ;;@ logical.ts:7:0 (drop (if (result f64) (f64.ne @@ -5540,7 +4227,6 @@ (f64.const 1) (f64.const 0) ) - ;;@ logical.ts:7:7 (f64.const 2) (f64.const 1) ) @@ -5548,30 +4234,23 @@ (f64.const 0) ) (get_local $3) - ;;@ logical.ts:7:14 (unreachable) ) ) - ;;@ logical.ts:11:0 (set_global $logical/i - ;;@ logical.ts:11:4 (if (result i32) (i32.ne (i32.const 1) (i32.const 0) ) - ;;@ logical.ts:11:9 (i32.const 2) (i32.const 1) ) ) - ;;@ logical.ts:12:0 (if (i32.eqz - ;;@ logical.ts:12:7 (i32.eq (get_global $logical/i) - ;;@ logical.ts:12:12 (i32.const 2) ) ) @@ -5585,26 +4264,20 @@ (unreachable) ) ) - ;;@ logical.ts:14:0 (set_global $logical/i - ;;@ logical.ts:14:4 (if (result i32) (i32.ne (i32.const 0) (i32.const 0) ) (i32.const 0) - ;;@ logical.ts:14:9 (i32.const 1) ) ) - ;;@ logical.ts:15:0 (if (i32.eqz - ;;@ logical.ts:15:7 (i32.eq (get_global $logical/i) - ;;@ logical.ts:15:12 (i32.const 1) ) ) @@ -5618,26 +4291,20 @@ (unreachable) ) ) - ;;@ logical.ts:19:0 (set_global $logical/I - ;;@ logical.ts:19:4 (if (result i64) (i64.ne (i64.const 1) (i64.const 0) ) - ;;@ logical.ts:19:9 (i64.const 2) (i64.const 1) ) ) - ;;@ logical.ts:20:0 (if (i32.eqz - ;;@ logical.ts:20:7 (i64.eq (get_global $logical/I) - ;;@ logical.ts:20:12 (i64.const 2) ) ) @@ -5651,26 +4318,20 @@ (unreachable) ) ) - ;;@ logical.ts:22:0 (set_global $logical/I - ;;@ logical.ts:22:4 (if (result i64) (i64.ne (i64.const 0) (i64.const 0) ) (i64.const 0) - ;;@ logical.ts:22:9 (i64.const 1) ) ) - ;;@ logical.ts:23:0 (if (i32.eqz - ;;@ logical.ts:23:7 (i64.eq (get_global $logical/I) - ;;@ logical.ts:23:12 (i64.const 1) ) ) @@ -5684,26 +4345,20 @@ (unreachable) ) ) - ;;@ logical.ts:27:0 (set_global $logical/f - ;;@ logical.ts:27:4 (if (result f32) (f32.ne (f32.const 1) (f32.const 0) ) - ;;@ logical.ts:27:11 (f32.const 2) (f32.const 1) ) ) - ;;@ logical.ts:28:0 (if (i32.eqz - ;;@ logical.ts:28:7 (f32.eq (get_global $logical/f) - ;;@ logical.ts:28:12 (f32.const 2) ) ) @@ -5717,26 +4372,20 @@ (unreachable) ) ) - ;;@ logical.ts:30:0 (set_global $logical/f - ;;@ logical.ts:30:4 (if (result f32) (f32.ne (f32.const 0) (f32.const 0) ) (f32.const 0) - ;;@ logical.ts:30:11 (f32.const 1) ) ) - ;;@ logical.ts:31:0 (if (i32.eqz - ;;@ logical.ts:31:7 (f32.eq (get_global $logical/f) - ;;@ logical.ts:31:12 (f32.const 1) ) ) @@ -5750,26 +4399,20 @@ (unreachable) ) ) - ;;@ logical.ts:35:0 (set_global $logical/F - ;;@ logical.ts:35:4 (if (result f64) (f64.ne (f64.const 1) (f64.const 0) ) - ;;@ logical.ts:35:11 (f64.const 2) (f64.const 1) ) ) - ;;@ logical.ts:36:0 (if (i32.eqz - ;;@ logical.ts:36:7 (f64.eq (get_global $logical/F) - ;;@ logical.ts:36:12 (f64.const 2) ) ) @@ -5783,26 +4426,20 @@ (unreachable) ) ) - ;;@ logical.ts:38:0 (set_global $logical/F - ;;@ logical.ts:38:4 (if (result f64) (f64.ne (f64.const 0) (f64.const 0) ) (f64.const 0) - ;;@ logical.ts:38:11 (f64.const 1) ) ) - ;;@ logical.ts:39:0 (if (i32.eqz - ;;@ logical.ts:39:7 (f64.eq (get_global $logical/F) - ;;@ logical.ts:39:12 (f64.const 1) ) ) @@ -5816,50 +4453,36 @@ (unreachable) ) ) - ;;@ builtins.ts:7:0 (drop (i32.clz - ;;@ builtins.ts:7:9 (i32.const 1) ) ) - ;;@ builtins.ts:8:0 (drop (i32.ctz - ;;@ builtins.ts:8:9 (i32.const 1) ) ) - ;;@ builtins.ts:9:0 (drop (i32.popcnt - ;;@ builtins.ts:9:12 (i32.const 1) ) ) - ;;@ builtins.ts:10:0 (drop (i32.rotl - ;;@ builtins.ts:10:10 (i32.const 1) - ;;@ builtins.ts:10:13 (i32.const 1) ) ) - ;;@ builtins.ts:11:0 (drop (i32.rotr - ;;@ builtins.ts:11:10 (i32.const 1) - ;;@ builtins.ts:11:13 (i32.const 1) ) ) - ;;@ builtins.ts:12:0 (drop (select (tee_local $0 - ;;@ builtins.ts:12:9 (i32.const -42) ) (i32.sub @@ -5872,15 +4495,12 @@ ) ) ) - ;;@ builtins.ts:13:0 (drop (select (tee_local $0 - ;;@ builtins.ts:13:9 (i32.const 1) ) (tee_local $4 - ;;@ builtins.ts:13:12 (i32.const 2) ) (i32.gt_s @@ -5889,15 +4509,12 @@ ) ) ) - ;;@ builtins.ts:14:0 (drop (select (tee_local $0 - ;;@ builtins.ts:14:9 (i32.const 1) ) (tee_local $4 - ;;@ builtins.ts:14:12 (i32.const 2) ) (i32.lt_s @@ -5906,56 +4523,36 @@ ) ) ) - ;;@ builtins.ts:16:0 (set_global $builtins/i - ;;@ builtins.ts:16:4 (i32.clz - ;;@ builtins.ts:16:13 (i32.const 1) ) ) - ;;@ builtins.ts:17:0 (set_global $builtins/i - ;;@ builtins.ts:17:4 (i32.ctz - ;;@ builtins.ts:17:13 (i32.const 1) ) ) - ;;@ builtins.ts:18:0 (set_global $builtins/i - ;;@ builtins.ts:18:4 (i32.popcnt - ;;@ builtins.ts:18:16 (i32.const 1) ) ) - ;;@ builtins.ts:19:0 (set_global $builtins/i - ;;@ builtins.ts:19:4 (i32.rotl - ;;@ builtins.ts:19:14 (i32.const 1) - ;;@ builtins.ts:19:17 (i32.const 1) ) ) - ;;@ builtins.ts:20:0 (set_global $builtins/i - ;;@ builtins.ts:20:4 (i32.rotr - ;;@ builtins.ts:20:14 (i32.const 1) - ;;@ builtins.ts:20:17 (i32.const 1) ) ) - ;;@ builtins.ts:21:0 (set_global $builtins/i - ;;@ builtins.ts:21:4 (select (tee_local $0 - ;;@ builtins.ts:21:13 (i32.const -42) ) (i32.sub @@ -5968,13 +4565,10 @@ ) ) ) - ;;@ builtins.ts:21:19 (if (i32.eqz - ;;@ builtins.ts:21:26 (i32.eq (get_global $builtins/i) - ;;@ builtins.ts:21:31 (i32.const 42) ) ) @@ -5988,16 +4582,12 @@ (unreachable) ) ) - ;;@ builtins.ts:22:0 (set_global $builtins/i - ;;@ builtins.ts:22:4 (select (tee_local $0 - ;;@ builtins.ts:22:13 (i32.const 1) ) (tee_local $4 - ;;@ builtins.ts:22:16 (i32.const 2) ) (i32.gt_s @@ -6006,13 +4596,10 @@ ) ) ) - ;;@ builtins.ts:22:20 (if (i32.eqz - ;;@ builtins.ts:22:27 (i32.eq (get_global $builtins/i) - ;;@ builtins.ts:22:32 (i32.const 2) ) ) @@ -6026,16 +4613,12 @@ (unreachable) ) ) - ;;@ builtins.ts:23:0 (set_global $builtins/i - ;;@ builtins.ts:23:4 (select (tee_local $0 - ;;@ builtins.ts:23:13 (i32.const 1) ) (tee_local $4 - ;;@ builtins.ts:23:16 (i32.const 2) ) (i32.lt_s @@ -6044,13 +4627,10 @@ ) ) ) - ;;@ builtins.ts:23:20 (if (i32.eqz - ;;@ builtins.ts:23:27 (i32.eq (get_global $builtins/i) - ;;@ builtins.ts:23:32 (i32.const 1) ) ) @@ -6064,50 +4644,36 @@ (unreachable) ) ) - ;;@ builtins.ts:27:0 (drop (i64.clz - ;;@ builtins.ts:27:9 (i64.const 1) ) ) - ;;@ builtins.ts:28:0 (drop (i64.ctz - ;;@ builtins.ts:28:9 (i64.const 1) ) ) - ;;@ builtins.ts:29:0 (drop (i64.popcnt - ;;@ builtins.ts:29:12 (i64.const 1) ) ) - ;;@ builtins.ts:30:0 (drop (i64.rotl - ;;@ builtins.ts:30:10 (i64.const 1) - ;;@ builtins.ts:30:13 (i64.const 1) ) ) - ;;@ builtins.ts:31:0 (drop (i64.rotr - ;;@ builtins.ts:31:10 (i64.const 1) - ;;@ builtins.ts:31:13 (i64.const 1) ) ) - ;;@ builtins.ts:32:0 (drop (select (tee_local $1 - ;;@ builtins.ts:32:9 (i64.const -42) ) (i64.sub @@ -6120,56 +4686,36 @@ ) ) ) - ;;@ builtins.ts:34:0 (set_global $builtins/I - ;;@ builtins.ts:34:4 (i64.clz - ;;@ builtins.ts:34:13 (i64.const 1) ) ) - ;;@ builtins.ts:35:0 (set_global $builtins/I - ;;@ builtins.ts:35:4 (i64.ctz - ;;@ builtins.ts:35:13 (i64.const 1) ) ) - ;;@ builtins.ts:36:0 (set_global $builtins/I - ;;@ builtins.ts:36:4 (i64.popcnt - ;;@ builtins.ts:36:16 (i64.const 1) ) ) - ;;@ builtins.ts:37:0 (set_global $builtins/I - ;;@ builtins.ts:37:4 (i64.rotl - ;;@ builtins.ts:37:14 (i64.const 1) - ;;@ builtins.ts:37:17 (i64.const 1) ) ) - ;;@ builtins.ts:38:0 (set_global $builtins/I - ;;@ builtins.ts:38:4 (i64.rotr - ;;@ builtins.ts:38:14 (i64.const 1) - ;;@ builtins.ts:38:17 (i64.const 1) ) ) - ;;@ builtins.ts:39:0 (set_global $builtins/I - ;;@ builtins.ts:39:4 (select (tee_local $1 - ;;@ builtins.ts:39:13 (i64.const -42) ) (i64.sub @@ -6182,13 +4728,10 @@ ) ) ) - ;;@ builtins.ts:39:19 (if (i32.eqz - ;;@ builtins.ts:39:26 (i64.eq (get_global $builtins/I) - ;;@ builtins.ts:39:31 (i64.const 42) ) ) @@ -6202,16 +4745,12 @@ (unreachable) ) ) - ;;@ builtins.ts:40:0 (set_global $builtins/I - ;;@ builtins.ts:40:4 (select (tee_local $1 - ;;@ builtins.ts:40:13 (i64.const 1) ) (tee_local $5 - ;;@ builtins.ts:40:16 (i64.const 2) ) (i64.gt_s @@ -6220,13 +4759,10 @@ ) ) ) - ;;@ builtins.ts:40:20 (if (i32.eqz - ;;@ builtins.ts:40:27 (i64.eq (get_global $builtins/I) - ;;@ builtins.ts:40:32 (i64.const 2) ) ) @@ -6240,16 +4776,12 @@ (unreachable) ) ) - ;;@ builtins.ts:41:0 (set_global $builtins/I - ;;@ builtins.ts:41:4 (select (tee_local $1 - ;;@ builtins.ts:41:13 (i64.const 1) ) (tee_local $5 - ;;@ builtins.ts:41:16 (i64.const 2) ) (i64.lt_s @@ -6258,13 +4790,10 @@ ) ) ) - ;;@ builtins.ts:41:20 (if (i32.eqz - ;;@ builtins.ts:41:27 (i32.eq (get_global $builtins/i) - ;;@ builtins.ts:41:32 (i32.const 1) ) ) @@ -6278,102 +4807,73 @@ (unreachable) ) ) - ;;@ builtins.ts:47:0 (drop - ;;@ builtins.ts:47:5 (f32.const nan:0x400000) ) - ;;@ builtins.ts:48:0 (drop - ;;@ builtins.ts:48:5 (f32.const inf) ) - ;;@ builtins.ts:49:0 (drop (f32.abs - ;;@ builtins.ts:49:9 (f32.const 1.25) ) ) - ;;@ builtins.ts:50:0 (drop (f32.ceil - ;;@ builtins.ts:50:10 (f32.const 1.25) ) ) - ;;@ builtins.ts:51:0 (drop (f32.copysign - ;;@ builtins.ts:51:14 (f32.const 1.25) - ;;@ builtins.ts:51:20 (f32.const 2.5) ) ) - ;;@ builtins.ts:52:0 (drop (f32.floor - ;;@ builtins.ts:52:11 (f32.const 1.25) ) ) - ;;@ builtins.ts:53:0 (drop (f32.max - ;;@ builtins.ts:53:9 (f32.const 1.25) - ;;@ builtins.ts:53:15 (f32.const 2.5) ) ) - ;;@ builtins.ts:54:0 (drop (f32.min - ;;@ builtins.ts:54:9 (f32.const 1.25) - ;;@ builtins.ts:54:15 (f32.const 2.5) ) ) - ;;@ builtins.ts:55:0 (drop (f32.nearest - ;;@ builtins.ts:55:13 (f32.const 1.25) ) ) - ;;@ builtins.ts:56:0 (drop (f32.sqrt - ;;@ builtins.ts:56:10 (f32.const 1.25) ) ) - ;;@ builtins.ts:57:0 (drop (f32.trunc - ;;@ builtins.ts:57:11 (f32.const 1.25) ) ) - ;;@ builtins.ts:58:0 (drop (f32.ne (tee_local $2 - ;;@ builtins.ts:58:11 (f32.const 1.25) ) (get_local $2) ) ) - ;;@ builtins.ts:59:0 (drop (select (f32.ne (f32.abs (tee_local $2 - ;;@ builtins.ts:59:14 (f32.const 1.25) ) ) @@ -6386,113 +4886,73 @@ ) ) ) - ;;@ builtins.ts:61:0 (set_global $builtins/f - ;;@ builtins.ts:61:4 (f32.const nan:0x400000) ) - ;;@ builtins.ts:62:0 (set_global $builtins/f - ;;@ builtins.ts:62:4 (f32.const inf) ) - ;;@ builtins.ts:63:0 (set_global $builtins/f - ;;@ builtins.ts:63:4 (f32.abs - ;;@ builtins.ts:63:13 (f32.const 1.25) ) ) - ;;@ builtins.ts:64:0 (set_global $builtins/f - ;;@ builtins.ts:64:4 (f32.ceil - ;;@ builtins.ts:64:14 (f32.const 1.25) ) ) - ;;@ builtins.ts:65:0 (set_global $builtins/f - ;;@ builtins.ts:65:4 (f32.copysign - ;;@ builtins.ts:65:18 (f32.const 1.25) - ;;@ builtins.ts:65:24 (f32.const 2.5) ) ) - ;;@ builtins.ts:66:0 (set_global $builtins/f - ;;@ builtins.ts:66:4 (f32.floor - ;;@ builtins.ts:66:15 (f32.const 1.25) ) ) - ;;@ builtins.ts:67:0 (set_global $builtins/f - ;;@ builtins.ts:67:4 (f32.max - ;;@ builtins.ts:67:13 (f32.const 1.25) - ;;@ builtins.ts:67:19 (f32.const 2.5) ) ) - ;;@ builtins.ts:68:0 (set_global $builtins/f - ;;@ builtins.ts:68:4 (f32.min - ;;@ builtins.ts:68:13 (f32.const 1.25) - ;;@ builtins.ts:68:19 (f32.const 2.5) ) ) - ;;@ builtins.ts:69:0 (set_global $builtins/f - ;;@ builtins.ts:69:4 (f32.nearest - ;;@ builtins.ts:69:17 (f32.const 1.25) ) ) - ;;@ builtins.ts:70:0 (set_global $builtins/f - ;;@ builtins.ts:70:4 (f32.sqrt - ;;@ builtins.ts:70:14 (f32.const 1.25) ) ) - ;;@ builtins.ts:71:0 (set_global $builtins/f - ;;@ builtins.ts:71:4 (f32.trunc - ;;@ builtins.ts:71:15 (f32.const 1.25) ) ) - ;;@ builtins.ts:72:0 (set_global $builtins/b - ;;@ builtins.ts:72:4 (f32.ne (tee_local $2 - ;;@ builtins.ts:72:15 (f32.const 1.25) ) (get_local $2) ) ) - ;;@ builtins.ts:73:0 (set_global $builtins/b - ;;@ builtins.ts:73:4 (select (f32.ne (f32.abs (tee_local $2 - ;;@ builtins.ts:73:18 (f32.const 1.25) ) ) @@ -6505,110 +4965,79 @@ ) ) ) - ;;@ builtins.ts:77:0 - (drop - ;;@ builtins.ts:77:5 - (f64.const nan:0x8000000000000) - ) - ;;@ builtins.ts:78:0 - (drop - ;;@ builtins.ts:78:5 - (f64.const inf) - ) - ;;@ builtins.ts:79:0 (drop (f64.const nan:0x8000000000000) ) - ;;@ builtins.ts:80:0 (drop (f64.const inf) ) - ;;@ builtins.ts:81:0 + (drop + (f64.const nan:0x8000000000000) + ) + (drop + (f64.const inf) + ) (drop (f64.abs - ;;@ builtins.ts:81:9 (f64.const 1.25) ) ) - ;;@ builtins.ts:82:0 (drop (f64.ceil - ;;@ builtins.ts:82:10 (f64.const 1.25) ) ) - ;;@ builtins.ts:83:0 (drop (f64.copysign - ;;@ builtins.ts:83:14 (f64.const 1.25) - ;;@ builtins.ts:83:20 (f64.const 2.5) ) ) - ;;@ builtins.ts:84:0 (drop (f64.floor - ;;@ builtins.ts:84:11 (f64.const 1.25) ) ) - ;;@ builtins.ts:85:0 (drop (f64.max - ;;@ builtins.ts:85:9 (f64.const 1.25) - ;;@ builtins.ts:85:15 (f64.const 2.5) ) ) - ;;@ builtins.ts:86:0 (drop (f64.min - ;;@ builtins.ts:86:9 (f64.const 1.25) - ;;@ builtins.ts:86:15 (f64.const 2.5) ) ) - ;;@ builtins.ts:87:0 (drop (f64.nearest - ;;@ builtins.ts:87:13 (f64.const 1.25) ) ) - ;;@ builtins.ts:88:0 (drop (f64.sqrt - ;;@ builtins.ts:88:10 (f64.const 1.25) ) ) - ;;@ builtins.ts:89:0 (drop (f64.trunc - ;;@ builtins.ts:89:11 (f64.const 1.25) ) ) - ;;@ builtins.ts:90:0 (drop (f64.ne (tee_local $3 - ;;@ builtins.ts:90:11 (f64.const 1.25) ) (get_local $3) ) ) - ;;@ builtins.ts:91:0 (drop (select (f64.ne (f64.abs (tee_local $3 - ;;@ builtins.ts:91:14 (f64.const 1.25) ) ) @@ -6621,113 +5050,73 @@ ) ) ) - ;;@ builtins.ts:93:0 (set_global $builtins/F - ;;@ builtins.ts:93:4 (f64.const nan:0x8000000000000) ) - ;;@ builtins.ts:94:0 (set_global $builtins/F - ;;@ builtins.ts:94:4 (f64.const inf) ) - ;;@ builtins.ts:95:0 (set_global $builtins/F - ;;@ builtins.ts:95:4 (f64.abs - ;;@ builtins.ts:95:13 (f64.const 1.25) ) ) - ;;@ builtins.ts:96:0 (set_global $builtins/F - ;;@ builtins.ts:96:4 (f64.ceil - ;;@ builtins.ts:96:14 (f64.const 1.25) ) ) - ;;@ builtins.ts:97:0 (set_global $builtins/F - ;;@ builtins.ts:97:4 (f64.copysign - ;;@ builtins.ts:97:18 (f64.const 1.25) - ;;@ builtins.ts:97:24 (f64.const 2.5) ) ) - ;;@ builtins.ts:98:0 (set_global $builtins/F - ;;@ builtins.ts:98:4 (f64.floor - ;;@ builtins.ts:98:15 (f64.const 1.25) ) ) - ;;@ builtins.ts:99:0 (set_global $builtins/F - ;;@ builtins.ts:99:4 (f64.max - ;;@ builtins.ts:99:13 (f64.const 1.25) - ;;@ builtins.ts:99:19 (f64.const 2.5) ) ) - ;;@ builtins.ts:100:0 (set_global $builtins/F - ;;@ builtins.ts:100:4 (f64.min - ;;@ builtins.ts:100:13 (f64.const 1.25) - ;;@ builtins.ts:100:19 (f64.const 2.5) ) ) - ;;@ builtins.ts:101:0 (set_global $builtins/F - ;;@ builtins.ts:101:4 (f64.nearest - ;;@ builtins.ts:101:17 (f64.const 1.25) ) ) - ;;@ builtins.ts:102:0 (set_global $builtins/F - ;;@ builtins.ts:102:4 (f64.sqrt - ;;@ builtins.ts:102:14 (f64.const 1.25) ) ) - ;;@ builtins.ts:103:0 (set_global $builtins/F - ;;@ builtins.ts:103:4 (f64.trunc - ;;@ builtins.ts:103:15 (f64.const 1.25) ) ) - ;;@ builtins.ts:104:0 (set_global $builtins/b - ;;@ builtins.ts:104:4 (f64.ne (tee_local $3 - ;;@ builtins.ts:104:15 (f64.const 1.25) ) (get_local $3) ) ) - ;;@ builtins.ts:105:0 (set_global $builtins/b - ;;@ builtins.ts:105:4 (select (f64.ne (f64.abs (tee_local $3 - ;;@ builtins.ts:105:18 (f64.const 1.25) ) ) @@ -6740,666 +5129,419 @@ ) ) ) - ;;@ builtins.ts:109:0 (set_global $builtins/i - ;;@ builtins.ts:109:4 (i32.load - ;;@ builtins.ts:109:14 (i32.const 8) ) ) - ;;@ builtins.ts:109:18 (i32.store - ;;@ builtins.ts:109:29 (i32.const 8) - ;;@ builtins.ts:109:32 (get_global $builtins/i) ) - ;;@ builtins.ts:110:0 (i32.store - ;;@ builtins.ts:110:11 (i32.const 8) - ;;@ builtins.ts:110:14 (i32.load - ;;@ builtins.ts:110:24 (i32.const 8) ) ) - ;;@ builtins.ts:111:0 (set_global $builtins/I - ;;@ builtins.ts:111:4 (i64.load - ;;@ builtins.ts:111:14 (i32.const 8) ) ) - ;;@ builtins.ts:111:18 (i64.store - ;;@ builtins.ts:111:29 (i32.const 8) - ;;@ builtins.ts:111:32 (get_global $builtins/I) ) - ;;@ builtins.ts:112:0 (i64.store - ;;@ builtins.ts:112:11 (i32.const 8) - ;;@ builtins.ts:112:14 (i64.load - ;;@ builtins.ts:112:24 (i32.const 8) ) ) - ;;@ builtins.ts:113:0 (set_global $builtins/f - ;;@ builtins.ts:113:4 (f32.load - ;;@ builtins.ts:113:14 (i32.const 8) ) ) - ;;@ builtins.ts:113:18 (f32.store - ;;@ builtins.ts:113:29 (i32.const 8) - ;;@ builtins.ts:113:32 (get_global $builtins/f) ) - ;;@ builtins.ts:114:0 (f32.store - ;;@ builtins.ts:114:11 (i32.const 8) - ;;@ builtins.ts:114:14 (f32.load - ;;@ builtins.ts:114:24 (i32.const 8) ) ) - ;;@ builtins.ts:115:0 (set_global $builtins/F - ;;@ builtins.ts:115:4 (f64.load - ;;@ builtins.ts:115:14 (i32.const 8) ) ) - ;;@ builtins.ts:115:18 (f64.store - ;;@ builtins.ts:115:29 (i32.const 8) - ;;@ builtins.ts:115:32 (get_global $builtins/F) ) - ;;@ builtins.ts:116:0 (f64.store - ;;@ builtins.ts:116:11 (i32.const 8) - ;;@ builtins.ts:116:14 (f64.load - ;;@ builtins.ts:116:24 (i32.const 8) ) ) - ;;@ builtins.ts:119:0 (set_global $builtins/i - ;;@ builtins.ts:119:4 (i32.load offset=8 - ;;@ builtins.ts:119:14 (i32.const 0) ) ) - ;;@ builtins.ts:119:34 (i32.store offset=8 - ;;@ builtins.ts:119:45 (i32.const 0) - ;;@ builtins.ts:119:48 (get_global $builtins/i) ) - ;;@ builtins.ts:120:0 (i32.store offset=8 - ;;@ builtins.ts:120:11 (i32.const 0) - ;;@ builtins.ts:120:14 (i32.load offset=8 - ;;@ builtins.ts:120:24 (i32.const 0) ) ) - ;;@ builtins.ts:121:0 (set_global $builtins/I - ;;@ builtins.ts:121:4 (i64.load offset=8 - ;;@ builtins.ts:121:14 (i32.const 0) ) ) - ;;@ builtins.ts:121:34 (i64.store offset=8 - ;;@ builtins.ts:121:45 (i32.const 0) - ;;@ builtins.ts:121:48 (get_global $builtins/I) ) - ;;@ builtins.ts:122:0 (i64.store offset=8 - ;;@ builtins.ts:122:11 (i32.const 0) - ;;@ builtins.ts:122:14 (i64.load offset=8 - ;;@ builtins.ts:122:24 (i32.const 0) ) ) - ;;@ builtins.ts:123:0 (set_global $builtins/f - ;;@ builtins.ts:123:4 (f32.load offset=8 - ;;@ builtins.ts:123:14 (i32.const 0) ) ) - ;;@ builtins.ts:123:34 (f32.store offset=8 - ;;@ builtins.ts:123:45 (i32.const 0) - ;;@ builtins.ts:123:48 (get_global $builtins/f) ) - ;;@ builtins.ts:124:0 (f32.store offset=8 - ;;@ builtins.ts:124:11 (i32.const 0) - ;;@ builtins.ts:124:14 (f32.load offset=8 - ;;@ builtins.ts:124:24 (i32.const 0) ) ) - ;;@ builtins.ts:125:0 (set_global $builtins/F - ;;@ builtins.ts:125:4 (f64.load offset=8 - ;;@ builtins.ts:125:14 (i32.const 0) ) ) - ;;@ builtins.ts:125:34 (f64.store offset=8 - ;;@ builtins.ts:125:45 (i32.const 0) - ;;@ builtins.ts:125:48 (get_global $builtins/F) ) - ;;@ builtins.ts:126:0 (f64.store offset=8 - ;;@ builtins.ts:126:11 (i32.const 0) - ;;@ builtins.ts:126:14 (f64.load offset=8 - ;;@ builtins.ts:126:24 (i32.const 0) ) ) - ;;@ builtins.ts:130:0 (set_global $builtins/i - ;;@ builtins.ts:130:4 (i32.load8_s - ;;@ builtins.ts:130:13 (i32.const 8) ) ) - ;;@ builtins.ts:131:0 (set_global $builtins/i - ;;@ builtins.ts:131:4 (i32.load16_s - ;;@ builtins.ts:131:14 (i32.const 8) ) ) - ;;@ builtins.ts:132:0 (set_global $builtins/i - ;;@ builtins.ts:132:4 (i32.load - ;;@ builtins.ts:132:14 (i32.const 8) ) ) - ;;@ builtins.ts:134:0 (set_global $builtins/i - ;;@ builtins.ts:134:4 (i32.load8_u - ;;@ builtins.ts:134:13 (i32.const 8) ) ) - ;;@ builtins.ts:135:0 (set_global $builtins/i - ;;@ builtins.ts:135:4 (i32.load16_u - ;;@ builtins.ts:135:14 (i32.const 8) ) ) - ;;@ builtins.ts:136:0 (set_global $builtins/i - ;;@ builtins.ts:136:4 (i32.load - ;;@ builtins.ts:136:14 (i32.const 8) ) ) - ;;@ builtins.ts:139:0 (set_global $builtins/u - ;;@ builtins.ts:139:4 (i32.load8_u - ;;@ builtins.ts:139:13 (i32.const 8) ) ) - ;;@ builtins.ts:140:0 (set_global $builtins/u - ;;@ builtins.ts:140:4 (i32.load16_u - ;;@ builtins.ts:140:14 (i32.const 8) ) ) - ;;@ builtins.ts:141:0 (set_global $builtins/u - ;;@ builtins.ts:141:4 (i32.load - ;;@ builtins.ts:141:14 (i32.const 8) ) ) - ;;@ builtins.ts:143:0 (set_global $builtins/u - ;;@ builtins.ts:143:4 (i32.load8_s - ;;@ builtins.ts:143:13 (i32.const 8) ) ) - ;;@ builtins.ts:144:0 (set_global $builtins/u - ;;@ builtins.ts:144:4 (i32.load16_s - ;;@ builtins.ts:144:14 (i32.const 8) ) ) - ;;@ builtins.ts:145:0 (set_global $builtins/u - ;;@ builtins.ts:145:4 (i32.load - ;;@ builtins.ts:145:14 (i32.const 8) ) ) - ;;@ builtins.ts:147:0 (set_global $builtins/I - ;;@ builtins.ts:147:4 (i64.load8_s - ;;@ builtins.ts:147:13 (i32.const 8) ) ) - ;;@ builtins.ts:148:0 (set_global $builtins/I - ;;@ builtins.ts:148:4 (i64.load16_s - ;;@ builtins.ts:148:14 (i32.const 8) ) ) - ;;@ builtins.ts:149:0 (set_global $builtins/I - ;;@ builtins.ts:149:4 (i64.load32_s - ;;@ builtins.ts:149:14 (i32.const 8) ) ) - ;;@ builtins.ts:150:0 (set_global $builtins/I - ;;@ builtins.ts:150:4 (i64.load - ;;@ builtins.ts:150:14 (i32.const 8) ) ) - ;;@ builtins.ts:153:0 (set_global $builtins/U - ;;@ builtins.ts:153:4 (i64.load8_u - ;;@ builtins.ts:153:13 (i32.const 8) ) ) - ;;@ builtins.ts:154:0 (set_global $builtins/U - ;;@ builtins.ts:154:4 (i64.load16_u - ;;@ builtins.ts:154:14 (i32.const 8) ) ) - ;;@ builtins.ts:155:0 (set_global $builtins/U - ;;@ builtins.ts:155:4 (i64.load32_u - ;;@ builtins.ts:155:14 (i32.const 8) ) ) - ;;@ builtins.ts:156:0 (set_global $builtins/U - ;;@ builtins.ts:156:4 (i64.load - ;;@ builtins.ts:156:14 (i32.const 8) ) ) - ;;@ builtins.ts:158:0 (i32.store8 - ;;@ builtins.ts:158:10 (i32.const 8) - ;;@ builtins.ts:158:13 (i32.const 1) ) - ;;@ builtins.ts:159:0 (i32.store16 - ;;@ builtins.ts:159:11 (i32.const 8) - ;;@ builtins.ts:159:14 (i32.const 1) ) - ;;@ builtins.ts:160:0 (i32.store - ;;@ builtins.ts:160:11 (i32.const 8) - ;;@ builtins.ts:160:14 (i32.const 1) ) - ;;@ builtins.ts:162:0 (i64.store8 - ;;@ builtins.ts:162:10 (i32.const 8) - ;;@ builtins.ts:162:13 (i64.const 1) ) - ;;@ builtins.ts:163:0 (i64.store16 - ;;@ builtins.ts:163:11 (i32.const 8) - ;;@ builtins.ts:163:14 (i64.const 1) ) - ;;@ builtins.ts:164:0 (i64.store32 - ;;@ builtins.ts:164:11 (i32.const 8) - ;;@ builtins.ts:164:14 (i64.const 1) ) - ;;@ builtins.ts:165:0 (i64.store - ;;@ builtins.ts:165:11 (i32.const 8) - ;;@ builtins.ts:165:14 (i64.const 1) ) - ;;@ builtins.ts:167:0 (i64.store - ;;@ builtins.ts:167:11 (i32.const 8) (i64.extend_s/i32 - ;;@ builtins.ts:167:14 (i32.const 1) ) ) - ;;@ builtins.ts:171:0 (drop (i32.reinterpret/f32 - ;;@ builtins.ts:171:17 (f32.const 1.25) ) ) - ;;@ builtins.ts:172:0 (drop (f32.reinterpret/i32 - ;;@ builtins.ts:172:17 (i32.const 25) ) ) - ;;@ builtins.ts:173:0 (drop (i64.reinterpret/f64 - ;;@ builtins.ts:173:17 (f64.const 1.25) ) ) - ;;@ builtins.ts:174:0 (drop (f64.reinterpret/i64 - ;;@ builtins.ts:174:17 (i64.const 25) ) ) - ;;@ builtins.ts:176:0 (set_global $builtins/i - ;;@ builtins.ts:176:4 (i32.reinterpret/f32 - ;;@ builtins.ts:176:21 (f32.const 1.25) ) ) - ;;@ builtins.ts:177:0 (set_global $builtins/f - ;;@ builtins.ts:177:4 (f32.reinterpret/i32 - ;;@ builtins.ts:177:21 (i32.const 25) ) ) - ;;@ builtins.ts:178:0 (set_global $builtins/I - ;;@ builtins.ts:178:4 (i64.reinterpret/f64 - ;;@ builtins.ts:178:21 (f64.const 1.25) ) ) - ;;@ builtins.ts:179:0 (set_global $builtins/F - ;;@ builtins.ts:179:4 (f64.reinterpret/i64 - ;;@ builtins.ts:179:21 (i64.const 25) ) ) - ;;@ builtins.ts:185:0 (drop (current_memory) ) - ;;@ builtins.ts:186:0 (drop (grow_memory - ;;@ builtins.ts:186:12 (i32.const 1) ) ) - ;;@ builtins.ts:188:0 (set_global $builtins/s - ;;@ builtins.ts:188:4 (current_memory) ) - ;;@ builtins.ts:189:0 (set_global $builtins/s - ;;@ builtins.ts:189:4 (grow_memory - ;;@ builtins.ts:189:16 (i32.const 1) ) ) - ;;@ builtins.ts:193:0 (drop (select - ;;@ builtins.ts:193:12 (i32.const 10) - ;;@ builtins.ts:193:16 (i32.const 20) - ;;@ builtins.ts:193:20 (i32.const 1) ) ) - ;;@ builtins.ts:194:0 (drop (select - ;;@ builtins.ts:194:12 (i64.const 100) - ;;@ builtins.ts:194:17 (i64.const 200) - ;;@ builtins.ts:194:22 (i32.const 0) ) ) - ;;@ builtins.ts:195:0 (drop (select - ;;@ builtins.ts:195:12 (f32.const 1.25) - ;;@ builtins.ts:195:18 (f32.const 2.5) - ;;@ builtins.ts:195:23 (i32.const 1) ) ) - ;;@ builtins.ts:196:0 (drop (select - ;;@ builtins.ts:196:12 (f64.const 12.5) - ;;@ builtins.ts:196:18 (f64.const 25) - ;;@ builtins.ts:196:24 (i32.const 0) ) ) - ;;@ builtins.ts:198:0 (set_global $builtins/i - ;;@ builtins.ts:198:4 (select - ;;@ builtins.ts:198:16 (i32.const 10) - ;;@ builtins.ts:198:20 (i32.const 20) - ;;@ builtins.ts:198:24 (i32.const 1) ) ) - ;;@ builtins.ts:199:0 (set_global $builtins/I - ;;@ builtins.ts:199:4 (select - ;;@ builtins.ts:199:16 (i64.const 100) - ;;@ builtins.ts:199:21 (i64.const 200) - ;;@ builtins.ts:199:26 (i32.const 0) ) ) - ;;@ builtins.ts:200:0 (set_global $builtins/f - ;;@ builtins.ts:200:4 (select - ;;@ builtins.ts:200:16 (f32.const 1.25) - ;;@ builtins.ts:200:22 (f32.const 2.5) - ;;@ builtins.ts:200:27 (i32.const 1) ) ) - ;;@ builtins.ts:201:0 (set_global $builtins/F - ;;@ builtins.ts:201:4 (select - ;;@ builtins.ts:201:16 (f64.const 12.5) - ;;@ builtins.ts:201:22 (f64.const 25) - ;;@ builtins.ts:201:28 (i32.const 0) ) ) - ;;@ builtins.ts:203:0 (if - ;;@ builtins.ts:203:4 (i32.const 0) - ;;@ builtins.ts:203:7 (unreachable) ) - ;;@ builtins.ts:207:0 (drop (i32.const 1) ) - ;;@ builtins.ts:208:0 (drop (i32.const 2) ) - ;;@ builtins.ts:209:0 (drop (i32.const 4) ) - ;;@ builtins.ts:210:0 (drop (i32.const 8) ) - ;;@ builtins.ts:211:0 (drop (i32.const 4) ) - ;;@ builtins.ts:212:0 (drop (i32.const 1) ) - ;;@ builtins.ts:213:0 (drop (i32.const 1) ) - ;;@ builtins.ts:214:0 (drop (i32.const 2) ) - ;;@ builtins.ts:215:0 (drop (i32.const 4) ) - ;;@ builtins.ts:216:0 (drop (i32.const 8) ) - ;;@ builtins.ts:217:0 (drop (i32.const 4) ) - ;;@ builtins.ts:218:0 (drop (i32.const 4) ) - ;;@ builtins.ts:219:0 (drop (i32.const 8) ) - ;;@ builtins.ts:221:0 (if (i32.eqz - ;;@ builtins.ts:221:7 (f64.ne (f64.const nan:0x8000000000000) - ;;@ builtins.ts:221:14 (f64.const nan:0x8000000000000) ) ) @@ -7413,13 +5555,10 @@ (unreachable) ) ) - ;;@ builtins.ts:222:0 (if (i32.eqz - ;;@ builtins.ts:222:7 (f32.ne (tee_local $2 - ;;@ builtins.ts:222:18 (f32.const nan:0x400000) ) (get_local $2) @@ -7435,13 +5574,10 @@ (unreachable) ) ) - ;;@ builtins.ts:223:0 (if (i32.eqz - ;;@ builtins.ts:223:7 (f64.ne (tee_local $3 - ;;@ builtins.ts:223:18 (f64.const nan:0x8000000000000) ) (get_local $3) @@ -7457,17 +5593,13 @@ (unreachable) ) ) - ;;@ builtins.ts:224:0 (if (i32.eqz - ;;@ builtins.ts:224:7 (i32.eqz - ;;@ builtins.ts:224:8 (select (f32.ne (f32.abs (tee_local $2 - ;;@ builtins.ts:224:22 (f32.const nan:0x400000) ) ) @@ -7491,17 +5623,13 @@ (unreachable) ) ) - ;;@ builtins.ts:225:0 (if (i32.eqz - ;;@ builtins.ts:225:7 (i32.eqz - ;;@ builtins.ts:225:8 (select (f32.ne (f32.abs (tee_local $2 - ;;@ builtins.ts:225:22 (f32.const inf) ) ) @@ -7525,17 +5653,13 @@ (unreachable) ) ) - ;;@ builtins.ts:226:0 (if (i32.eqz - ;;@ builtins.ts:226:7 (i32.eqz - ;;@ builtins.ts:226:8 (select (f64.ne (f64.abs (tee_local $3 - ;;@ builtins.ts:226:22 (f64.const nan:0x8000000000000) ) ) @@ -7559,17 +5683,13 @@ (unreachable) ) ) - ;;@ builtins.ts:227:0 (if (i32.eqz - ;;@ builtins.ts:227:7 (i32.eqz - ;;@ builtins.ts:227:8 (select (f64.ne (f64.abs (tee_local $3 - ;;@ builtins.ts:227:22 (f64.const inf) ) ) @@ -7593,15 +5713,12 @@ (unreachable) ) ) - ;;@ builtins.ts:228:0 (if (i32.eqz - ;;@ builtins.ts:228:7 (select (f32.ne (f32.abs (tee_local $2 - ;;@ builtins.ts:228:21 (f32.const 0) ) ) @@ -7624,15 +5741,12 @@ (unreachable) ) ) - ;;@ builtins.ts:229:0 (if (i32.eqz - ;;@ builtins.ts:229:7 (select (f64.ne (f64.abs (tee_local $3 - ;;@ builtins.ts:229:21 (f64.const 0) ) ) @@ -7655,13 +5769,10 @@ (unreachable) ) ) - ;;@ builtins.ts:242:0 (if (i32.eqz - ;;@ builtins.ts:242:7 (i32.eq (i32.const -128) - ;;@ builtins.ts:242:23 (i32.shr_s (i32.shl (i32.const 128) @@ -7681,13 +5792,10 @@ (unreachable) ) ) - ;;@ builtins.ts:243:0 (if (i32.eqz - ;;@ builtins.ts:243:7 (i32.eq (i32.const 127) - ;;@ builtins.ts:243:23 (i32.const 127) ) ) @@ -7701,13 +5809,10 @@ (unreachable) ) ) - ;;@ builtins.ts:244:0 (if (i32.eqz - ;;@ builtins.ts:244:7 (i32.eq (i32.const -32768) - ;;@ builtins.ts:244:24 (i32.shr_s (i32.shl (i32.const 32768) @@ -7727,13 +5832,10 @@ (unreachable) ) ) - ;;@ builtins.ts:245:0 (if (i32.eqz - ;;@ builtins.ts:245:7 (i32.eq (i32.const 32767) - ;;@ builtins.ts:245:24 (i32.const 32767) ) ) @@ -7747,13 +5849,10 @@ (unreachable) ) ) - ;;@ builtins.ts:246:0 (if (i32.eqz - ;;@ builtins.ts:246:7 (i32.eq (i32.const -2147483648) - ;;@ builtins.ts:246:24 (i32.wrap/i64 (i64.const 2147483648) ) @@ -7769,13 +5868,10 @@ (unreachable) ) ) - ;;@ builtins.ts:247:0 (if (i32.eqz - ;;@ builtins.ts:247:7 (i32.eq (i32.const 2147483647) - ;;@ builtins.ts:247:24 (i32.const 2147483647) ) ) @@ -7789,13 +5885,10 @@ (unreachable) ) ) - ;;@ builtins.ts:248:0 (if (i32.eqz - ;;@ builtins.ts:248:7 (i64.eq (i64.const -9223372036854775808) - ;;@ builtins.ts:248:24 (i64.const -9223372036854775808) ) ) @@ -7809,13 +5902,10 @@ (unreachable) ) ) - ;;@ builtins.ts:249:0 (if (i32.eqz - ;;@ builtins.ts:249:7 (i64.eq (i64.const 9223372036854775807) - ;;@ builtins.ts:249:24 (i64.const 9223372036854775807) ) ) @@ -7829,13 +5919,10 @@ (unreachable) ) ) - ;;@ builtins.ts:251:0 (if (i32.eqz - ;;@ builtins.ts:251:7 (i32.eq (i32.const 0) - ;;@ builtins.ts:251:23 (i32.const 0) ) ) @@ -7849,13 +5936,10 @@ (unreachable) ) ) - ;;@ builtins.ts:252:0 (if (i32.eqz - ;;@ builtins.ts:252:7 (i32.eq (i32.const 255) - ;;@ builtins.ts:252:23 (i32.const 255) ) ) @@ -7869,13 +5953,10 @@ (unreachable) ) ) - ;;@ builtins.ts:253:0 (if (i32.eqz - ;;@ builtins.ts:253:7 (i32.eq (i32.const 0) - ;;@ builtins.ts:253:24 (i32.const 0) ) ) @@ -7889,13 +5970,10 @@ (unreachable) ) ) - ;;@ builtins.ts:254:0 (if (i32.eqz - ;;@ builtins.ts:254:7 (i32.eq (i32.const 65535) - ;;@ builtins.ts:254:24 (i32.const 65535) ) ) @@ -7909,13 +5987,10 @@ (unreachable) ) ) - ;;@ builtins.ts:255:0 (if (i32.eqz - ;;@ builtins.ts:255:7 (i32.eq (i32.const 0) - ;;@ builtins.ts:255:24 (i32.const 0) ) ) @@ -7929,13 +6004,10 @@ (unreachable) ) ) - ;;@ builtins.ts:256:0 (if (i32.eqz - ;;@ builtins.ts:256:7 (i32.eq (i32.const -1) - ;;@ builtins.ts:256:24 (i32.const -1) ) ) @@ -7949,13 +6021,10 @@ (unreachable) ) ) - ;;@ builtins.ts:257:0 (if (i32.eqz - ;;@ builtins.ts:257:7 (i64.eq (i64.const 0) - ;;@ builtins.ts:257:24 (i64.const 0) ) ) @@ -7969,13 +6038,10 @@ (unreachable) ) ) - ;;@ builtins.ts:258:0 (if (i32.eqz - ;;@ builtins.ts:258:7 (i64.eq (i64.const -1) - ;;@ builtins.ts:258:24 (i64.const -1) ) ) @@ -7989,13 +6055,10 @@ (unreachable) ) ) - ;;@ builtins.ts:259:0 (if (i32.eqz - ;;@ builtins.ts:259:7 (i32.eq (i32.const 0) - ;;@ builtins.ts:259:25 (i32.const 0) ) ) @@ -8009,13 +6072,10 @@ (unreachable) ) ) - ;;@ builtins.ts:259:29 (if (i32.eqz - ;;@ builtins.ts:259:36 (i32.eq (i32.const 0) - ;;@ builtins.ts:259:54 (i32.const 0) ) ) @@ -8029,13 +6089,10 @@ (unreachable) ) ) - ;;@ builtins.ts:260:0 (if (i32.eqz - ;;@ builtins.ts:260:7 (i32.eq (i32.const 1) - ;;@ builtins.ts:260:25 (i32.const 1) ) ) @@ -8049,13 +6106,10 @@ (unreachable) ) ) - ;;@ builtins.ts:260:29 (if (i32.eqz - ;;@ builtins.ts:260:36 (i32.eq (i32.const 1) - ;;@ builtins.ts:260:54 (i32.const 1) ) ) @@ -8069,13 +6123,10 @@ (unreachable) ) ) - ;;@ builtins.ts:262:0 (if (i32.eqz - ;;@ builtins.ts:262:7 (f32.eq (f32.const -3402823466385288598117041e14) - ;;@ builtins.ts:262:24 (f32.const -3402823466385288598117041e14) ) ) @@ -8089,13 +6140,10 @@ (unreachable) ) ) - ;;@ builtins.ts:263:0 (if (i32.eqz - ;;@ builtins.ts:263:7 (f32.eq (f32.const 3402823466385288598117041e14) - ;;@ builtins.ts:263:24 (f32.const 3402823466385288598117041e14) ) ) @@ -8109,13 +6157,10 @@ (unreachable) ) ) - ;;@ builtins.ts:264:0 (if (i32.eqz - ;;@ builtins.ts:264:7 (f32.eq (f32.const -16777215) - ;;@ builtins.ts:264:31 (f32.const -16777215) ) ) @@ -8129,13 +6174,10 @@ (unreachable) ) ) - ;;@ builtins.ts:265:0 (if (i32.eqz - ;;@ builtins.ts:265:7 (f32.eq (f32.const 16777215) - ;;@ builtins.ts:265:31 (f32.const 16777215) ) ) @@ -8149,13 +6191,10 @@ (unreachable) ) ) - ;;@ builtins.ts:266:0 (if (i32.eqz - ;;@ builtins.ts:266:7 (f32.eq (f32.const 1.1920928955078125e-07) - ;;@ builtins.ts:266:22 (f32.const 1.1920928955078125e-07) ) ) @@ -8169,13 +6208,10 @@ (unreachable) ) ) - ;;@ builtins.ts:267:0 (if (i32.eqz - ;;@ builtins.ts:267:7 (f64.eq (f64.const -1797693134862315708145274e284) - ;;@ builtins.ts:267:24 (f64.const -1797693134862315708145274e284) ) ) @@ -8189,13 +6225,10 @@ (unreachable) ) ) - ;;@ builtins.ts:268:0 (if (i32.eqz - ;;@ builtins.ts:268:7 (f64.eq (f64.const 1797693134862315708145274e284) - ;;@ builtins.ts:268:24 (f64.const 1797693134862315708145274e284) ) ) @@ -8209,13 +6242,10 @@ (unreachable) ) ) - ;;@ builtins.ts:269:0 (if (i32.eqz - ;;@ builtins.ts:269:7 (f64.eq (f64.const -9007199254740991) - ;;@ builtins.ts:269:31 (f64.const -9007199254740991) ) ) @@ -8229,13 +6259,10 @@ (unreachable) ) ) - ;;@ builtins.ts:270:0 (if (i32.eqz - ;;@ builtins.ts:270:7 (f64.eq (f64.const 9007199254740991) - ;;@ builtins.ts:270:31 (f64.const 9007199254740991) ) ) @@ -8249,13 +6276,10 @@ (unreachable) ) ) - ;;@ builtins.ts:271:0 (if (i32.eqz - ;;@ builtins.ts:271:7 (f64.eq (f64.const 2.220446049250313e-16) - ;;@ builtins.ts:271:22 (f64.const 2.220446049250313e-16) ) ) @@ -8269,17 +6293,12 @@ (unreachable) ) ) - ;;@ showcase.ts:42:0 (if (i32.eqz - ;;@ showcase.ts:42:7 (i32.eq - ;;@ showcase.ts:42:18 (call $showcase/ANamespace.aNamespacedFunction - ;;@ showcase.ts:42:38 (get_global $showcase/ANamespace.aNamespacedGlobal) ) - ;;@ showcase.ts:42:71 (i32.const 42) ) ) @@ -8294,7 +6313,6 @@ ) ) (set_global $showcase/AnEnum.FORTYTWO - ;;@ showcase.ts:51:13 (get_global $showcase/aMutableGlobal) ) (set_global $showcase/AnEnum.FORTYTHREE @@ -8303,13 +6321,10 @@ (i32.const 1) ) ) - ;;@ showcase.ts:54:0 (if (i32.eqz - ;;@ showcase.ts:54:7 (i32.eq (i32.const 1) - ;;@ showcase.ts:54:21 (i32.const 1) ) ) @@ -8323,13 +6338,10 @@ (unreachable) ) ) - ;;@ showcase.ts:55:0 (if (i32.eqz - ;;@ showcase.ts:55:7 (i32.eq (i32.const 2) - ;;@ showcase.ts:55:21 (i32.const 2) ) ) @@ -8343,13 +6355,10 @@ (unreachable) ) ) - ;;@ showcase.ts:56:0 (if (i32.eqz - ;;@ showcase.ts:56:7 (i32.eq (i32.const 4) - ;;@ showcase.ts:56:22 (i32.const 4) ) ) @@ -8363,13 +6372,10 @@ (unreachable) ) ) - ;;@ showcase.ts:57:0 (if (i32.eqz - ;;@ showcase.ts:57:7 (i32.eq (i32.const 5) - ;;@ showcase.ts:57:22 (i32.const 5) ) ) @@ -8383,13 +6389,10 @@ (unreachable) ) ) - ;;@ showcase.ts:58:0 (if (i32.eqz - ;;@ showcase.ts:58:7 (i32.eq (get_global $showcase/AnEnum.FORTYTWO) - ;;@ showcase.ts:58:26 (i32.const 42) ) ) @@ -8403,13 +6406,10 @@ (unreachable) ) ) - ;;@ showcase.ts:59:0 (if (i32.eqz - ;;@ showcase.ts:59:7 (i32.eq (get_global $showcase/AnEnum.FORTYTHREE) - ;;@ showcase.ts:59:28 (i32.const 43) ) ) @@ -8423,125 +6423,85 @@ (unreachable) ) ) - ;;@ showcase.ts:62:0 (block (drop (i32.const 1) ) - ;;@ showcase.ts:62:3 (drop (i32.const 2) ) - ;;@ showcase.ts:62:6 (drop (i32.const 3) ) ) - ;;@ showcase.ts:68:0 (drop (call $showcase/addGeneric - ;;@ showcase.ts:68:16 (i32.const 1) - ;;@ showcase.ts:68:19 (i32.const 2) ) ) - ;;@ showcase.ts:69:0 (drop (call $showcase/addGeneric - ;;@ showcase.ts:69:16 (f32.const 1) - ;;@ showcase.ts:69:19 (f32.const 2) ) ) - ;;@ showcase.ts:70:0 (drop (i64.clz - ;;@ showcase.ts:70:9 (i64.const 32768) ) ) (nop) - ;;@ showcase.ts:74:0 (drop (call $showcase/addGeneric - ;;@ showcase.ts:74:19 (f64.const 1) - ;;@ showcase.ts:74:22 (f64.const 2) ) ) - ;;@ memcpy.ts:144:0 (i64.store - ;;@ memcpy.ts:144:11 (i32.const 8) - ;;@ memcpy.ts:144:22 (i64.const 1229782938247303441) ) - ;;@ memcpy.ts:145:0 (i64.store - ;;@ memcpy.ts:145:11 (i32.add (i32.const 8) - ;;@ memcpy.ts:145:18 (i32.const 8) ) - ;;@ memcpy.ts:145:22 (i64.const 2459565876494606882) ) - ;;@ memcpy.ts:146:0 (i64.store - ;;@ memcpy.ts:146:11 (i32.add (i32.const 8) - ;;@ memcpy.ts:146:18 (i32.const 16) ) - ;;@ memcpy.ts:146:22 (i64.const 3689348814741910323) ) - ;;@ memcpy.ts:147:0 (i64.store - ;;@ memcpy.ts:147:11 (i32.add (i32.const 8) - ;;@ memcpy.ts:147:18 (i32.const 24) ) - ;;@ memcpy.ts:147:22 (i64.const 4919131752989213764) ) - ;;@ memcpy.ts:150:0 (set_global $memcpy/dest - ;;@ memcpy.ts:150:7 (call $memcpy/memcpy - ;;@ memcpy.ts:150:14 (i32.add (i32.const 8) - ;;@ memcpy.ts:150:21 (i32.const 1) ) - ;;@ memcpy.ts:150:24 (i32.add (i32.const 8) - ;;@ memcpy.ts:150:31 (i32.const 16) ) - ;;@ memcpy.ts:150:35 (i32.const 4) ) ) - ;;@ memcpy.ts:151:0 (if (i32.eqz - ;;@ memcpy.ts:151:7 (i32.eq (get_global $memcpy/dest) - ;;@ memcpy.ts:151:15 (i32.add (i32.const 8) - ;;@ memcpy.ts:151:22 (i32.const 1) ) ) @@ -8556,16 +6516,12 @@ (unreachable) ) ) - ;;@ memcpy.ts:152:0 (if (i32.eqz - ;;@ memcpy.ts:152:7 (i64.eq (i64.load - ;;@ memcpy.ts:152:17 (i32.const 8) ) - ;;@ memcpy.ts:152:26 (i64.const 1229783084848853777) ) ) @@ -8579,25 +6535,17 @@ (unreachable) ) ) - ;;@ memcpy.ts:154:0 (set_global $memcpy/dest - ;;@ memcpy.ts:154:7 (call $memcpy/memcpy - ;;@ memcpy.ts:154:14 (i32.const 8) - ;;@ memcpy.ts:154:20 (i32.const 8) - ;;@ memcpy.ts:154:26 (i32.const 32) ) ) - ;;@ memcpy.ts:155:0 (if (i32.eqz - ;;@ memcpy.ts:155:7 (i32.eq (get_global $memcpy/dest) - ;;@ memcpy.ts:155:15 (i32.const 8) ) ) @@ -8611,16 +6559,12 @@ (unreachable) ) ) - ;;@ memcpy.ts:156:0 (if (i32.eqz - ;;@ memcpy.ts:156:7 (i64.eq (i64.load - ;;@ memcpy.ts:156:17 (i32.const 8) ) - ;;@ memcpy.ts:156:26 (i64.const 1229783084848853777) ) ) @@ -8634,20 +6578,15 @@ (unreachable) ) ) - ;;@ memcpy.ts:157:0 (if (i32.eqz - ;;@ memcpy.ts:157:7 (i64.eq (i64.load - ;;@ memcpy.ts:157:17 (i32.add (i32.const 8) - ;;@ memcpy.ts:157:24 (i32.const 8) ) ) - ;;@ memcpy.ts:157:30 (i64.const 2459565876494606882) ) ) @@ -8661,20 +6600,15 @@ (unreachable) ) ) - ;;@ memcpy.ts:158:0 (if (i32.eqz - ;;@ memcpy.ts:158:7 (i64.eq (i64.load - ;;@ memcpy.ts:158:17 (i32.add (i32.const 8) - ;;@ memcpy.ts:158:24 (i32.const 16) ) ) - ;;@ memcpy.ts:158:31 (i64.const 3689348814741910323) ) ) @@ -8688,20 +6622,15 @@ (unreachable) ) ) - ;;@ memcpy.ts:159:0 (if (i32.eqz - ;;@ memcpy.ts:159:7 (i64.eq (i64.load - ;;@ memcpy.ts:159:17 (i32.add (i32.const 8) - ;;@ memcpy.ts:159:24 (i32.const 24) ) ) - ;;@ memcpy.ts:159:31 (i64.const 4919131752989213764) ) ) @@ -8715,36 +6644,25 @@ (unreachable) ) ) - ;;@ memcpy.ts:161:0 (set_global $memcpy/dest - ;;@ memcpy.ts:161:7 (call $memcpy/memcpy - ;;@ memcpy.ts:161:14 (i32.add (i32.const 8) - ;;@ memcpy.ts:161:21 (i32.const 5) ) - ;;@ memcpy.ts:161:24 (i32.add (i32.const 8) - ;;@ memcpy.ts:161:31 (i32.const 28) ) - ;;@ memcpy.ts:161:35 (i32.const 3) ) ) - ;;@ memcpy.ts:162:0 (if (i32.eqz - ;;@ memcpy.ts:162:7 (i64.eq (i64.load - ;;@ memcpy.ts:162:17 (i32.const 8) ) - ;;@ memcpy.ts:162:26 (i64.const 4919131679688438545) ) ) @@ -8758,36 +6676,25 @@ (unreachable) ) ) - ;;@ memcpy.ts:164:0 (set_global $memcpy/dest - ;;@ memcpy.ts:164:7 (call $memcpy/memcpy - ;;@ memcpy.ts:164:14 (i32.add (i32.const 8) - ;;@ memcpy.ts:164:21 (i32.const 8) ) - ;;@ memcpy.ts:164:24 (i32.add (i32.const 8) - ;;@ memcpy.ts:164:31 (i32.const 16) ) - ;;@ memcpy.ts:164:35 (i32.const 15) ) ) - ;;@ memcpy.ts:165:0 (if (i32.eqz - ;;@ memcpy.ts:165:7 (i64.eq (i64.load - ;;@ memcpy.ts:165:17 (i32.const 8) ) - ;;@ memcpy.ts:165:26 (i64.const 4919131679688438545) ) ) @@ -8801,20 +6708,15 @@ (unreachable) ) ) - ;;@ memcpy.ts:166:0 (if (i32.eqz - ;;@ memcpy.ts:166:7 (i64.eq (i64.load - ;;@ memcpy.ts:166:17 (i32.add (i32.const 8) - ;;@ memcpy.ts:166:24 (i32.const 8) ) ) - ;;@ memcpy.ts:166:30 (i64.const 3689348814741910323) ) ) @@ -8828,20 +6730,15 @@ (unreachable) ) ) - ;;@ memcpy.ts:167:0 (if (i32.eqz - ;;@ memcpy.ts:167:7 (i64.eq (i64.load - ;;@ memcpy.ts:167:17 (i32.add (i32.const 8) - ;;@ memcpy.ts:167:24 (i32.const 16) ) ) - ;;@ memcpy.ts:167:31 (i64.const 3694152654344438852) ) ) @@ -8855,20 +6752,15 @@ (unreachable) ) ) - ;;@ memcpy.ts:168:0 (if (i32.eqz - ;;@ memcpy.ts:168:7 (i64.eq (i64.load - ;;@ memcpy.ts:168:17 (i32.add (i32.const 8) - ;;@ memcpy.ts:168:24 (i32.const 24) ) ) - ;;@ memcpy.ts:168:31 (i64.const 4919131752989213764) ) ) @@ -8882,17 +6774,12 @@ (unreachable) ) ) - ;;@ fmod.ts:65:0 (if (i32.eqz - ;;@ fmod.ts:65:7 (f64.ne (tee_local $3 - ;;@ fmod.ts:65:18 (call $fmod/fmod - ;;@ fmod.ts:65:23 (f64.const 1) - ;;@ fmod.ts:65:26 (f64.const nan:0x8000000000000) ) ) @@ -8909,18 +6796,13 @@ (unreachable) ) ) - ;;@ fmod.ts:66:0 (if (i32.eqz - ;;@ fmod.ts:66:7 (f64.eq (call $fmod/fmod - ;;@ fmod.ts:66:12 (f64.const 1.5) - ;;@ fmod.ts:66:17 (f64.const 1) ) - ;;@ fmod.ts:66:25 (f64.const 0.5) ) ) @@ -8934,22 +6816,16 @@ (unreachable) ) ) - ;;@ fmod.ts:67:0 (if (i32.eqz - ;;@ fmod.ts:67:7 (f64.lt (f64.sub (call $fmod/fmod - ;;@ fmod.ts:67:12 (f64.const 9.2) - ;;@ fmod.ts:67:17 (f64.const 2) ) - ;;@ fmod.ts:67:24 (f64.const 1.2) ) - ;;@ fmod.ts:67:30 (f64.const 2.220446049250313e-16) ) ) @@ -8963,22 +6839,16 @@ (unreachable) ) ) - ;;@ fmod.ts:68:0 (if (i32.eqz - ;;@ fmod.ts:68:7 (f64.lt (f64.sub (call $fmod/fmod - ;;@ fmod.ts:68:12 (f64.const 9.2) - ;;@ fmod.ts:68:17 (f64.const 3.7) ) - ;;@ fmod.ts:68:24 (f64.const 1.8) ) - ;;@ fmod.ts:68:30 (f64.const 2.220446049250313e-16) ) ) @@ -8992,17 +6862,12 @@ (unreachable) ) ) - ;;@ fmod.ts:134:0 (if (i32.eqz - ;;@ fmod.ts:134:7 (f32.ne (tee_local $2 - ;;@ fmod.ts:134:18 (call $fmod/fmodf - ;;@ fmod.ts:134:24 (f32.const 1) - ;;@ fmod.ts:134:27 (f32.const nan:0x400000) ) ) @@ -9019,18 +6884,13 @@ (unreachable) ) ) - ;;@ fmod.ts:135:0 (if (i32.eqz - ;;@ fmod.ts:135:7 (f32.eq (call $fmod/fmodf - ;;@ fmod.ts:135:13 (f32.const 1.5) - ;;@ fmod.ts:135:18 (f32.const 1) ) - ;;@ fmod.ts:135:26 (f32.const 0.5) ) ) @@ -9044,22 +6904,16 @@ (unreachable) ) ) - ;;@ fmod.ts:136:0 (if (i32.eqz - ;;@ fmod.ts:136:7 (f32.lt (f32.sub (call $fmod/fmodf - ;;@ fmod.ts:136:13 (f32.const 9.199999809265137) - ;;@ fmod.ts:136:18 (f32.const 2) ) - ;;@ fmod.ts:136:25 (f32.const 1.2000000476837158) ) - ;;@ fmod.ts:136:31 (f32.const 1.1920928955078125e-07) ) ) @@ -9073,22 +6927,16 @@ (unreachable) ) ) - ;;@ fmod.ts:137:0 (if (i32.eqz - ;;@ fmod.ts:137:7 (f32.lt (f32.sub (call $fmod/fmodf - ;;@ fmod.ts:137:13 (f32.const 9.199999809265137) - ;;@ fmod.ts:137:18 (f32.const 3.700000047683716) ) - ;;@ fmod.ts:137:25 (f32.const 1.7999999523162842) ) - ;;@ fmod.ts:137:31 (f32.const 1.1920928955078125e-07) ) ) @@ -9102,28 +6950,20 @@ (unreachable) ) ) - ;;@ showcase.ts:102:0 (i32.store (get_global $showcase/aClassInstance) - ;;@ showcase.ts:102:24 (i32.const 42) ) - ;;@ showcase.ts:103:0 (f32.store offset=4 (get_global $showcase/aClassInstance) - ;;@ showcase.ts:103:30 (f32.const 9e3) ) - ;;@ showcase.ts:104:0 (if (i32.eqz - ;;@ showcase.ts:104:7 (i32.eq (i32.load - ;;@ showcase.ts:104:17 (i32.const 8) ) - ;;@ showcase.ts:104:23 (i32.const 42) ) ) @@ -9137,16 +6977,12 @@ (unreachable) ) ) - ;;@ showcase.ts:105:0 (if (i32.eqz - ;;@ showcase.ts:105:7 (f32.eq (f32.load - ;;@ showcase.ts:105:17 (i32.const 12) ) - ;;@ showcase.ts:105:24 (f32.const 9e3) ) ) @@ -9160,21 +6996,16 @@ (unreachable) ) ) - ;;@ showcase.ts:107:0 (call $showcase/ADerivedClass#set:aWildAccessorAppears (get_global $showcase/aClassInstance) - ;;@ showcase.ts:107:38 (f32.const 123) ) - ;;@ showcase.ts:108:0 (if (i32.eqz - ;;@ showcase.ts:108:7 (f32.eq (call $showcase/ADerivedClass#get:aWildAccessorAppears (get_global $showcase/aClassInstance) ) - ;;@ showcase.ts:108:46 (f32.const 123) ) ) @@ -9188,18 +7019,13 @@ (unreachable) ) ) - ;;@ showcase.ts:110:0 (set_global $showcase/AClass.aStaticField - ;;@ showcase.ts:110:22 (get_global $showcase/aClassInstance) ) - ;;@ showcase.ts:111:0 (if (i32.eqz - ;;@ showcase.ts:111:7 (i32.eq (get_global $showcase/AClass.aStaticField) - ;;@ showcase.ts:111:37 (get_global $showcase/aClassInstance) ) ) diff --git a/tests/compiler/std/allocator_arena.wat b/tests/compiler/std/allocator_arena.untouched.wat similarity index 63% rename from tests/compiler/std/allocator_arena.wat rename to tests/compiler/std/allocator_arena.untouched.wat index db2d9112..c26c93bd 100644 --- a/tests/compiler/std/allocator_arena.wat +++ b/tests/compiler/std/allocator_arena.untouched.wat @@ -26,106 +26,74 @@ (local $3 i32) (local $4 i32) (local $5 i32) - ;;@ (lib)/allocator/arena.ts:15:2 (if - ;;@ (lib)/allocator/arena.ts:15:6 (i32.eqz - ;;@ (lib)/allocator/arena.ts:15:7 (get_local $0) ) - ;;@ (lib)/allocator/arena.ts:15:20 (return (i32.const 0) ) ) - ;;@ (lib)/allocator/arena.ts:16:2 (set_local $1 - ;;@ (lib)/allocator/arena.ts:16:12 (get_global "$(lib)/allocator/arena/HEAP_OFFSET") ) - ;;@ (lib)/allocator/arena.ts:17:2 (set_local $2 - ;;@ (lib)/allocator/arena.ts:17:12 (i32.and (i32.add - ;;@ (lib)/allocator/arena.ts:17:13 (i32.add (get_local $1) - ;;@ (lib)/allocator/arena.ts:17:19 (get_local $0) ) - ;;@ (lib)/allocator/arena.ts:17:26 (i32.const 7) ) - ;;@ (lib)/allocator/arena.ts:17:40 (i32.xor - ;;@ (lib)/allocator/arena.ts:17:41 (i32.const 7) (i32.const -1) ) ) ) - ;;@ (lib)/allocator/arena.ts:18:2 (set_local $3 - ;;@ (lib)/allocator/arena.ts:18:14 (i32.shl (current_memory) - ;;@ (lib)/allocator/arena.ts:18:41 (i32.const 16) ) ) - ;;@ (lib)/allocator/arena.ts:19:2 (if - ;;@ (lib)/allocator/arena.ts:19:6 (i32.and (if (result i32) (i32.ne (tee_local $4 (i32.gt_u (get_local $2) - ;;@ (lib)/allocator/arena.ts:19:12 (get_local $3) ) ) (i32.const 0) ) - ;;@ (lib)/allocator/arena.ts:19:21 (i32.lt_s (grow_memory - ;;@ (lib)/allocator/arena.ts:20:4 (select (tee_local $4 - ;;@ (lib)/allocator/arena.ts:21:6 (i32.shr_u (i32.sub - ;;@ (lib)/allocator/arena.ts:21:7 (i32.and - ;;@ (lib)/allocator/arena.ts:21:8 (i32.add - ;;@ (lib)/allocator/arena.ts:21:9 (get_local $2) - ;;@ (lib)/allocator/arena.ts:21:15 (i32.const 65535) ) - ;;@ (lib)/allocator/arena.ts:21:25 (i32.xor - ;;@ (lib)/allocator/arena.ts:21:26 (i32.const 65535) (i32.const -1) ) ) - ;;@ (lib)/allocator/arena.ts:21:36 (get_local $3) ) - ;;@ (lib)/allocator/arena.ts:21:46 (i32.const 16) ) ) (tee_local $5 - ;;@ (lib)/allocator/arena.ts:22:6 (i32.shr_u (get_local $3) - ;;@ (lib)/allocator/arena.ts:22:46 (i32.const 16) ) ) @@ -135,22 +103,17 @@ ) ) ) - ;;@ (lib)/allocator/arena.ts:24:6 (i32.const 0) ) (get_local $4) ) (i32.const 1) ) - ;;@ (lib)/allocator/arena.ts:24:9 (unreachable) ) - ;;@ (lib)/allocator/arena.ts:25:2 (set_global "$(lib)/allocator/arena/HEAP_OFFSET" - ;;@ (lib)/allocator/arena.ts:25:16 (get_local $2) ) - ;;@ (lib)/allocator/arena.ts:26:9 (return (get_local $1) ) @@ -159,512 +122,341 @@ (local $3 i32) (local $4 i32) (local $5 i64) - ;;@ (lib)/memory.ts:196:2 (if - ;;@ (lib)/memory.ts:196:6 (i32.eqz - ;;@ (lib)/memory.ts:196:7 (get_local $2) ) - ;;@ (lib)/memory.ts:197:4 (return) ) - ;;@ (lib)/memory.ts:198:2 (i32.store8 - ;;@ (lib)/memory.ts:198:12 (get_local $0) - ;;@ (lib)/memory.ts:198:18 (get_local $1) ) - ;;@ (lib)/memory.ts:199:2 (i32.store8 - ;;@ (lib)/memory.ts:199:12 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:199:19 (get_local $2) ) - ;;@ (lib)/memory.ts:199:23 (i32.const 1) ) - ;;@ (lib)/memory.ts:199:26 (get_local $1) ) - ;;@ (lib)/memory.ts:200:2 (if - ;;@ (lib)/memory.ts:200:6 (i32.le_u (get_local $2) - ;;@ (lib)/memory.ts:200:11 (i32.const 2) ) - ;;@ (lib)/memory.ts:201:4 (return) ) - ;;@ (lib)/memory.ts:203:2 (i32.store8 - ;;@ (lib)/memory.ts:203:12 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:203:19 (i32.const 1) ) - ;;@ (lib)/memory.ts:203:22 (get_local $1) ) - ;;@ (lib)/memory.ts:204:2 (i32.store8 - ;;@ (lib)/memory.ts:204:12 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:204:19 (i32.const 2) ) - ;;@ (lib)/memory.ts:204:22 (get_local $1) ) - ;;@ (lib)/memory.ts:205:2 (i32.store8 - ;;@ (lib)/memory.ts:205:12 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:205:19 (get_local $2) ) - ;;@ (lib)/memory.ts:205:23 (i32.const 2) ) - ;;@ (lib)/memory.ts:205:26 (get_local $1) ) - ;;@ (lib)/memory.ts:206:2 (i32.store8 - ;;@ (lib)/memory.ts:206:12 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:206:19 (get_local $2) ) - ;;@ (lib)/memory.ts:206:23 (i32.const 3) ) - ;;@ (lib)/memory.ts:206:26 (get_local $1) ) - ;;@ (lib)/memory.ts:207:2 (if - ;;@ (lib)/memory.ts:207:6 (i32.le_u (get_local $2) - ;;@ (lib)/memory.ts:207:11 (i32.const 6) ) - ;;@ (lib)/memory.ts:208:4 (return) ) - ;;@ (lib)/memory.ts:209:2 (i32.store8 - ;;@ (lib)/memory.ts:209:12 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:209:19 (i32.const 3) ) - ;;@ (lib)/memory.ts:209:22 (get_local $1) ) - ;;@ (lib)/memory.ts:210:2 (i32.store8 - ;;@ (lib)/memory.ts:210:12 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:210:19 (get_local $2) ) - ;;@ (lib)/memory.ts:210:23 (i32.const 4) ) - ;;@ (lib)/memory.ts:210:26 (get_local $1) ) - ;;@ (lib)/memory.ts:211:2 (if - ;;@ (lib)/memory.ts:211:6 (i32.le_u (get_local $2) - ;;@ (lib)/memory.ts:211:11 (i32.const 8) ) - ;;@ (lib)/memory.ts:212:4 (return) ) - ;;@ (lib)/memory.ts:215:2 (set_local $3 - ;;@ (lib)/memory.ts:215:17 (i32.and (i32.sub (i32.const 0) - ;;@ (lib)/memory.ts:215:18 (get_local $0) ) - ;;@ (lib)/memory.ts:215:25 (i32.const 3) ) ) - ;;@ (lib)/memory.ts:216:2 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:216:10 (get_local $3) ) ) - ;;@ (lib)/memory.ts:217:2 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:217:7 (get_local $3) ) ) - ;;@ (lib)/memory.ts:218:2 (set_local $2 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:218:7 (i32.const -4) ) ) - ;;@ (lib)/memory.ts:220:2 (set_local $4 - ;;@ (lib)/memory.ts:220:17 (i32.mul (i32.div_u (i32.const -1) - ;;@ (lib)/memory.ts:220:27 (i32.const 255) ) - ;;@ (lib)/memory.ts:220:33 (get_local $1) ) ) - ;;@ (lib)/memory.ts:223:2 (i32.store - ;;@ (lib)/memory.ts:223:13 (get_local $0) - ;;@ (lib)/memory.ts:223:19 (get_local $4) ) - ;;@ (lib)/memory.ts:224:2 (i32.store - ;;@ (lib)/memory.ts:224:13 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:224:20 (get_local $2) ) - ;;@ (lib)/memory.ts:224:24 (i32.const 4) ) - ;;@ (lib)/memory.ts:224:27 (get_local $4) ) - ;;@ (lib)/memory.ts:225:2 (if - ;;@ (lib)/memory.ts:225:6 (i32.le_u (get_local $2) - ;;@ (lib)/memory.ts:225:11 (i32.const 8) ) - ;;@ (lib)/memory.ts:226:4 (return) ) - ;;@ (lib)/memory.ts:227:2 (i32.store - ;;@ (lib)/memory.ts:227:13 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:227:20 (i32.const 4) ) - ;;@ (lib)/memory.ts:227:23 (get_local $4) ) - ;;@ (lib)/memory.ts:228:2 (i32.store - ;;@ (lib)/memory.ts:228:13 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:228:20 (i32.const 8) ) - ;;@ (lib)/memory.ts:228:23 (get_local $4) ) - ;;@ (lib)/memory.ts:229:2 (i32.store - ;;@ (lib)/memory.ts:229:13 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:229:20 (get_local $2) ) - ;;@ (lib)/memory.ts:229:24 (i32.const 12) ) - ;;@ (lib)/memory.ts:229:28 (get_local $4) ) - ;;@ (lib)/memory.ts:230:2 (i32.store - ;;@ (lib)/memory.ts:230:13 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:230:20 (get_local $2) ) - ;;@ (lib)/memory.ts:230:24 (i32.const 8) ) - ;;@ (lib)/memory.ts:230:27 (get_local $4) ) - ;;@ (lib)/memory.ts:231:2 (if - ;;@ (lib)/memory.ts:231:6 (i32.le_u (get_local $2) - ;;@ (lib)/memory.ts:231:11 (i32.const 24) ) - ;;@ (lib)/memory.ts:232:4 (return) ) - ;;@ (lib)/memory.ts:233:2 (i32.store - ;;@ (lib)/memory.ts:233:13 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:233:20 (i32.const 12) ) - ;;@ (lib)/memory.ts:233:24 (get_local $4) ) - ;;@ (lib)/memory.ts:234:2 (i32.store - ;;@ (lib)/memory.ts:234:13 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:234:20 (i32.const 16) ) - ;;@ (lib)/memory.ts:234:24 (get_local $4) ) - ;;@ (lib)/memory.ts:235:2 (i32.store - ;;@ (lib)/memory.ts:235:13 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:235:20 (i32.const 20) ) - ;;@ (lib)/memory.ts:235:24 (get_local $4) ) - ;;@ (lib)/memory.ts:236:2 (i32.store - ;;@ (lib)/memory.ts:236:13 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:236:20 (i32.const 24) ) - ;;@ (lib)/memory.ts:236:24 (get_local $4) ) - ;;@ (lib)/memory.ts:237:2 (i32.store - ;;@ (lib)/memory.ts:237:13 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:237:20 (get_local $2) ) - ;;@ (lib)/memory.ts:237:24 (i32.const 28) ) - ;;@ (lib)/memory.ts:237:28 (get_local $4) ) - ;;@ (lib)/memory.ts:238:2 (i32.store - ;;@ (lib)/memory.ts:238:13 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:238:20 (get_local $2) ) - ;;@ (lib)/memory.ts:238:24 (i32.const 24) ) - ;;@ (lib)/memory.ts:238:28 (get_local $4) ) - ;;@ (lib)/memory.ts:239:2 (i32.store - ;;@ (lib)/memory.ts:239:13 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:239:20 (get_local $2) ) - ;;@ (lib)/memory.ts:239:24 (i32.const 20) ) - ;;@ (lib)/memory.ts:239:28 (get_local $4) ) - ;;@ (lib)/memory.ts:240:2 (i32.store - ;;@ (lib)/memory.ts:240:13 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:240:20 (get_local $2) ) - ;;@ (lib)/memory.ts:240:24 (i32.const 16) ) - ;;@ (lib)/memory.ts:240:28 (get_local $4) ) - ;;@ (lib)/memory.ts:243:2 (set_local $3 - ;;@ (lib)/memory.ts:243:6 (i32.add (i32.const 24) - ;;@ (lib)/memory.ts:243:11 (i32.and - ;;@ (lib)/memory.ts:243:12 (get_local $0) - ;;@ (lib)/memory.ts:243:19 (i32.const 4) ) ) ) - ;;@ (lib)/memory.ts:244:2 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:244:10 (get_local $3) ) ) - ;;@ (lib)/memory.ts:245:2 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:245:7 (get_local $3) ) ) - ;;@ (lib)/memory.ts:248:2 (set_local $5 - ;;@ (lib)/memory.ts:248:17 (i64.or (i64.extend_u/i32 (get_local $4) ) - ;;@ (lib)/memory.ts:248:28 (i64.shl - ;;@ (lib)/memory.ts:248:29 (i64.extend_u/i32 (get_local $4) ) - ;;@ (lib)/memory.ts:248:41 (i64.const 32) ) ) ) - ;;@ (lib)/memory.ts:249:2 (block $break|0 (loop $continue|0 (if - ;;@ (lib)/memory.ts:249:9 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:249:14 (i32.const 32) ) (block (block - ;;@ (lib)/memory.ts:250:4 (i64.store - ;;@ (lib)/memory.ts:250:15 (get_local $0) - ;;@ (lib)/memory.ts:250:21 (get_local $5) ) - ;;@ (lib)/memory.ts:251:4 (i64.store - ;;@ (lib)/memory.ts:251:15 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:251:22 (i32.const 8) ) - ;;@ (lib)/memory.ts:251:25 (get_local $5) ) - ;;@ (lib)/memory.ts:252:4 (i64.store - ;;@ (lib)/memory.ts:252:15 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:252:22 (i32.const 16) ) - ;;@ (lib)/memory.ts:252:26 (get_local $5) ) - ;;@ (lib)/memory.ts:253:4 (i64.store - ;;@ (lib)/memory.ts:253:15 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:253:22 (i32.const 24) ) - ;;@ (lib)/memory.ts:253:26 (get_local $5) ) - ;;@ (lib)/memory.ts:254:4 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:254:9 (i32.const 32) ) ) - ;;@ (lib)/memory.ts:255:4 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:255:12 (i32.const 32) ) ) @@ -679,32 +471,24 @@ (local $3 i32) (local $4 i32) (local $5 i32) - ;;@ (lib)/memory.ts:5:2 (nop) - ;;@ (lib)/memory.ts:8:2 (block $break|0 (loop $continue|0 (if - ;;@ (lib)/memory.ts:8:9 (if (result i32) (i32.ne (get_local $2) (i32.const 0) ) - ;;@ (lib)/memory.ts:8:14 (i32.and - ;;@ (lib)/memory.ts:8:15 (get_local $1) - ;;@ (lib)/memory.ts:8:21 (i32.const 3) ) (get_local $2) ) (block (block - ;;@ (lib)/memory.ts:9:4 (i32.store8 - ;;@ (lib)/memory.ts:9:14 (block (result i32) (set_local $5 (get_local $0) @@ -717,9 +501,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:9:22 (i32.load8_u - ;;@ (lib)/memory.ts:9:31 (block (result i32) (set_local $5 (get_local $1) @@ -734,7 +516,6 @@ ) ) ) - ;;@ (lib)/memory.ts:10:4 (set_local $2 (i32.sub (get_local $2) @@ -747,117 +528,81 @@ ) ) ) - ;;@ (lib)/memory.ts:14:2 (if - ;;@ (lib)/memory.ts:14:6 (i32.eq (i32.and - ;;@ (lib)/memory.ts:14:7 (get_local $0) - ;;@ (lib)/memory.ts:14:14 (i32.const 3) ) - ;;@ (lib)/memory.ts:14:20 (i32.const 0) ) - ;;@ (lib)/memory.ts:14:23 (block (block $break|1 (loop $continue|1 (if - ;;@ (lib)/memory.ts:15:11 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:15:16 (i32.const 16) ) (block (block - ;;@ (lib)/memory.ts:16:6 (i32.store - ;;@ (lib)/memory.ts:16:17 (get_local $0) - ;;@ (lib)/memory.ts:16:28 (i32.load - ;;@ (lib)/memory.ts:16:38 (get_local $1) ) ) - ;;@ (lib)/memory.ts:17:6 (i32.store - ;;@ (lib)/memory.ts:17:17 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:17:25 (i32.const 4) ) - ;;@ (lib)/memory.ts:17:28 (i32.load - ;;@ (lib)/memory.ts:17:38 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:17:45 (i32.const 4) ) ) ) - ;;@ (lib)/memory.ts:18:6 (i32.store - ;;@ (lib)/memory.ts:18:17 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:18:25 (i32.const 8) ) - ;;@ (lib)/memory.ts:18:28 (i32.load - ;;@ (lib)/memory.ts:18:38 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:18:45 (i32.const 8) ) ) ) - ;;@ (lib)/memory.ts:19:6 (i32.store - ;;@ (lib)/memory.ts:19:17 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:19:24 (i32.const 12) ) - ;;@ (lib)/memory.ts:19:28 (i32.load - ;;@ (lib)/memory.ts:19:38 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:19:44 (i32.const 12) ) ) ) - ;;@ (lib)/memory.ts:20:6 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:20:13 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:20:17 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:20:25 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:20:29 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:20:34 (i32.const 16) ) ) @@ -867,149 +612,102 @@ ) ) ) - ;;@ (lib)/memory.ts:22:4 (if - ;;@ (lib)/memory.ts:22:8 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:22:12 (i32.const 8) ) - ;;@ (lib)/memory.ts:22:15 (block - ;;@ (lib)/memory.ts:23:6 (i32.store - ;;@ (lib)/memory.ts:23:17 (get_local $0) - ;;@ (lib)/memory.ts:23:27 (i32.load - ;;@ (lib)/memory.ts:23:37 (get_local $1) ) ) - ;;@ (lib)/memory.ts:24:6 (i32.store - ;;@ (lib)/memory.ts:24:17 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:24:24 (i32.const 4) ) - ;;@ (lib)/memory.ts:24:27 (i32.load - ;;@ (lib)/memory.ts:24:37 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:24:43 (i32.const 4) ) ) ) - ;;@ (lib)/memory.ts:25:6 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:25:14 (i32.const 8) ) ) - ;;@ (lib)/memory.ts:25:17 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:25:24 (i32.const 8) ) ) ) ) - ;;@ (lib)/memory.ts:27:4 (if - ;;@ (lib)/memory.ts:27:8 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:27:12 (i32.const 4) ) - ;;@ (lib)/memory.ts:27:15 (block - ;;@ (lib)/memory.ts:28:6 (i32.store - ;;@ (lib)/memory.ts:28:17 (get_local $0) - ;;@ (lib)/memory.ts:28:23 (i32.load - ;;@ (lib)/memory.ts:28:33 (get_local $1) ) ) - ;;@ (lib)/memory.ts:29:6 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:29:14 (i32.const 4) ) ) - ;;@ (lib)/memory.ts:29:17 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:29:24 (i32.const 4) ) ) ) ) - ;;@ (lib)/memory.ts:31:4 (if - ;;@ (lib)/memory.ts:31:8 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:31:12 (i32.const 2) ) - ;;@ (lib)/memory.ts:31:15 (block - ;;@ (lib)/memory.ts:32:6 (i32.store16 - ;;@ (lib)/memory.ts:32:17 (get_local $0) - ;;@ (lib)/memory.ts:32:23 (i32.load16_u - ;;@ (lib)/memory.ts:32:33 (get_local $1) ) ) - ;;@ (lib)/memory.ts:33:6 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:33:14 (i32.const 2) ) ) - ;;@ (lib)/memory.ts:33:17 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:33:24 (i32.const 2) ) ) ) ) - ;;@ (lib)/memory.ts:35:4 (if - ;;@ (lib)/memory.ts:35:8 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:35:12 (i32.const 1) ) - ;;@ (lib)/memory.ts:36:6 (i32.store8 - ;;@ (lib)/memory.ts:36:16 (block (result i32) (set_local $5 (get_local $0) @@ -1022,9 +720,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:36:24 (i32.load8_u - ;;@ (lib)/memory.ts:36:33 (block (result i32) (set_local $5 (get_local $1) @@ -1040,65 +736,50 @@ ) ) ) - ;;@ (lib)/memory.ts:38:4 (return) ) ) - ;;@ (lib)/memory.ts:43:2 (if - ;;@ (lib)/memory.ts:43:6 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:43:11 (i32.const 32) ) - ;;@ (lib)/memory.ts:44:4 (block $break|2 (block $case2|2 (block $case1|2 (block $case0|2 (set_local $5 - ;;@ (lib)/memory.ts:44:12 (i32.and (get_local $0) - ;;@ (lib)/memory.ts:44:19 (i32.const 3) ) ) (br_if $case0|2 (i32.eq (get_local $5) - ;;@ (lib)/memory.ts:46:11 (i32.const 1) ) ) (br_if $case1|2 (i32.eq (get_local $5) - ;;@ (lib)/memory.ts:64:11 (i32.const 2) ) ) (br_if $case2|2 (i32.eq (get_local $5) - ;;@ (lib)/memory.ts:81:11 (i32.const 3) ) ) (br $break|2) ) - ;;@ (lib)/memory.ts:47:8 (set_local $3 - ;;@ (lib)/memory.ts:47:12 (i32.load - ;;@ (lib)/memory.ts:47:22 (get_local $1) ) ) - ;;@ (lib)/memory.ts:48:8 (i32.store8 - ;;@ (lib)/memory.ts:48:18 (block (result i32) (set_local $5 (get_local $0) @@ -1111,9 +792,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:48:26 (i32.load8_u - ;;@ (lib)/memory.ts:48:35 (block (result i32) (set_local $5 (get_local $1) @@ -1128,9 +807,7 @@ ) ) ) - ;;@ (lib)/memory.ts:49:8 (i32.store8 - ;;@ (lib)/memory.ts:49:18 (block (result i32) (set_local $5 (get_local $0) @@ -1143,9 +820,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:49:26 (i32.load8_u - ;;@ (lib)/memory.ts:49:35 (block (result i32) (set_local $5 (get_local $1) @@ -1160,9 +835,7 @@ ) ) ) - ;;@ (lib)/memory.ts:50:8 (i32.store8 - ;;@ (lib)/memory.ts:50:18 (block (result i32) (set_local $5 (get_local $0) @@ -1175,9 +848,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:50:26 (i32.load8_u - ;;@ (lib)/memory.ts:50:35 (block (result i32) (set_local $5 (get_local $1) @@ -1192,183 +863,129 @@ ) ) ) - ;;@ (lib)/memory.ts:51:8 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:51:13 (i32.const 3) ) ) - ;;@ (lib)/memory.ts:52:8 (block $break|3 (loop $continue|3 (if - ;;@ (lib)/memory.ts:52:15 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:52:20 (i32.const 17) ) (block (block - ;;@ (lib)/memory.ts:53:10 (set_local $4 - ;;@ (lib)/memory.ts:53:14 (i32.load - ;;@ (lib)/memory.ts:53:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:53:30 (i32.const 1) ) ) ) - ;;@ (lib)/memory.ts:54:10 (i32.store - ;;@ (lib)/memory.ts:54:21 (get_local $0) - ;;@ (lib)/memory.ts:54:27 (i32.or (i32.shr_u (get_local $3) - ;;@ (lib)/memory.ts:54:32 (i32.const 24) ) - ;;@ (lib)/memory.ts:54:37 (i32.shl (get_local $4) - ;;@ (lib)/memory.ts:54:42 (i32.const 8) ) ) ) - ;;@ (lib)/memory.ts:55:10 (set_local $3 - ;;@ (lib)/memory.ts:55:14 (i32.load - ;;@ (lib)/memory.ts:55:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:55:30 (i32.const 5) ) ) ) - ;;@ (lib)/memory.ts:56:10 (i32.store - ;;@ (lib)/memory.ts:56:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:56:28 (i32.const 4) ) - ;;@ (lib)/memory.ts:56:31 (i32.or (i32.shr_u (get_local $4) - ;;@ (lib)/memory.ts:56:36 (i32.const 24) ) - ;;@ (lib)/memory.ts:56:41 (i32.shl (get_local $3) - ;;@ (lib)/memory.ts:56:46 (i32.const 8) ) ) ) - ;;@ (lib)/memory.ts:57:10 (set_local $4 - ;;@ (lib)/memory.ts:57:14 (i32.load - ;;@ (lib)/memory.ts:57:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:57:30 (i32.const 9) ) ) ) - ;;@ (lib)/memory.ts:58:10 (i32.store - ;;@ (lib)/memory.ts:58:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:58:28 (i32.const 8) ) - ;;@ (lib)/memory.ts:58:31 (i32.or (i32.shr_u (get_local $3) - ;;@ (lib)/memory.ts:58:36 (i32.const 24) ) - ;;@ (lib)/memory.ts:58:41 (i32.shl (get_local $4) - ;;@ (lib)/memory.ts:58:46 (i32.const 8) ) ) ) - ;;@ (lib)/memory.ts:59:10 (set_local $3 - ;;@ (lib)/memory.ts:59:14 (i32.load - ;;@ (lib)/memory.ts:59:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:59:30 (i32.const 13) ) ) ) - ;;@ (lib)/memory.ts:60:10 (i32.store - ;;@ (lib)/memory.ts:60:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:60:28 (i32.const 12) ) - ;;@ (lib)/memory.ts:60:32 (i32.or (i32.shr_u (get_local $4) - ;;@ (lib)/memory.ts:60:37 (i32.const 24) ) - ;;@ (lib)/memory.ts:60:42 (i32.shl (get_local $3) - ;;@ (lib)/memory.ts:60:47 (i32.const 8) ) ) ) - ;;@ (lib)/memory.ts:61:10 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:61:17 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:61:21 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:61:29 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:61:33 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:61:38 (i32.const 16) ) ) @@ -1378,20 +995,14 @@ ) ) ) - ;;@ (lib)/memory.ts:63:8 (br $break|2) ) - ;;@ (lib)/memory.ts:65:8 (set_local $3 - ;;@ (lib)/memory.ts:65:12 (i32.load - ;;@ (lib)/memory.ts:65:22 (get_local $1) ) ) - ;;@ (lib)/memory.ts:66:8 (i32.store8 - ;;@ (lib)/memory.ts:66:18 (block (result i32) (set_local $5 (get_local $0) @@ -1404,9 +1015,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:66:26 (i32.load8_u - ;;@ (lib)/memory.ts:66:35 (block (result i32) (set_local $5 (get_local $1) @@ -1421,9 +1030,7 @@ ) ) ) - ;;@ (lib)/memory.ts:67:8 (i32.store8 - ;;@ (lib)/memory.ts:67:18 (block (result i32) (set_local $5 (get_local $0) @@ -1436,9 +1043,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:67:26 (i32.load8_u - ;;@ (lib)/memory.ts:67:35 (block (result i32) (set_local $5 (get_local $1) @@ -1453,183 +1058,129 @@ ) ) ) - ;;@ (lib)/memory.ts:68:8 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:68:13 (i32.const 2) ) ) - ;;@ (lib)/memory.ts:69:8 (block $break|4 (loop $continue|4 (if - ;;@ (lib)/memory.ts:69:15 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:69:20 (i32.const 18) ) (block (block - ;;@ (lib)/memory.ts:70:10 (set_local $4 - ;;@ (lib)/memory.ts:70:14 (i32.load - ;;@ (lib)/memory.ts:70:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:70:30 (i32.const 2) ) ) ) - ;;@ (lib)/memory.ts:71:10 (i32.store - ;;@ (lib)/memory.ts:71:21 (get_local $0) - ;;@ (lib)/memory.ts:71:27 (i32.or (i32.shr_u (get_local $3) - ;;@ (lib)/memory.ts:71:32 (i32.const 16) ) - ;;@ (lib)/memory.ts:71:37 (i32.shl (get_local $4) - ;;@ (lib)/memory.ts:71:42 (i32.const 16) ) ) ) - ;;@ (lib)/memory.ts:72:10 (set_local $3 - ;;@ (lib)/memory.ts:72:14 (i32.load - ;;@ (lib)/memory.ts:72:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:72:30 (i32.const 6) ) ) ) - ;;@ (lib)/memory.ts:73:10 (i32.store - ;;@ (lib)/memory.ts:73:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:73:28 (i32.const 4) ) - ;;@ (lib)/memory.ts:73:31 (i32.or (i32.shr_u (get_local $4) - ;;@ (lib)/memory.ts:73:36 (i32.const 16) ) - ;;@ (lib)/memory.ts:73:41 (i32.shl (get_local $3) - ;;@ (lib)/memory.ts:73:46 (i32.const 16) ) ) ) - ;;@ (lib)/memory.ts:74:10 (set_local $4 - ;;@ (lib)/memory.ts:74:14 (i32.load - ;;@ (lib)/memory.ts:74:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:74:30 (i32.const 10) ) ) ) - ;;@ (lib)/memory.ts:75:10 (i32.store - ;;@ (lib)/memory.ts:75:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:75:28 (i32.const 8) ) - ;;@ (lib)/memory.ts:75:31 (i32.or (i32.shr_u (get_local $3) - ;;@ (lib)/memory.ts:75:36 (i32.const 16) ) - ;;@ (lib)/memory.ts:75:41 (i32.shl (get_local $4) - ;;@ (lib)/memory.ts:75:46 (i32.const 16) ) ) ) - ;;@ (lib)/memory.ts:76:10 (set_local $3 - ;;@ (lib)/memory.ts:76:14 (i32.load - ;;@ (lib)/memory.ts:76:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:76:30 (i32.const 14) ) ) ) - ;;@ (lib)/memory.ts:77:10 (i32.store - ;;@ (lib)/memory.ts:77:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:77:28 (i32.const 12) ) - ;;@ (lib)/memory.ts:77:32 (i32.or (i32.shr_u (get_local $4) - ;;@ (lib)/memory.ts:77:37 (i32.const 16) ) - ;;@ (lib)/memory.ts:77:42 (i32.shl (get_local $3) - ;;@ (lib)/memory.ts:77:47 (i32.const 16) ) ) ) - ;;@ (lib)/memory.ts:78:10 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:78:17 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:78:21 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:78:29 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:78:33 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:78:38 (i32.const 16) ) ) @@ -1639,20 +1190,14 @@ ) ) ) - ;;@ (lib)/memory.ts:80:8 (br $break|2) ) - ;;@ (lib)/memory.ts:82:8 (set_local $3 - ;;@ (lib)/memory.ts:82:12 (i32.load - ;;@ (lib)/memory.ts:82:22 (get_local $1) ) ) - ;;@ (lib)/memory.ts:83:8 (i32.store8 - ;;@ (lib)/memory.ts:83:18 (block (result i32) (set_local $5 (get_local $0) @@ -1665,9 +1210,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:83:26 (i32.load8_u - ;;@ (lib)/memory.ts:83:35 (block (result i32) (set_local $5 (get_local $1) @@ -1682,183 +1225,129 @@ ) ) ) - ;;@ (lib)/memory.ts:84:8 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:84:13 (i32.const 1) ) ) - ;;@ (lib)/memory.ts:85:8 (block $break|5 (loop $continue|5 (if - ;;@ (lib)/memory.ts:85:15 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:85:20 (i32.const 19) ) (block (block - ;;@ (lib)/memory.ts:86:10 (set_local $4 - ;;@ (lib)/memory.ts:86:14 (i32.load - ;;@ (lib)/memory.ts:86:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:86:30 (i32.const 3) ) ) ) - ;;@ (lib)/memory.ts:87:10 (i32.store - ;;@ (lib)/memory.ts:87:21 (get_local $0) - ;;@ (lib)/memory.ts:87:27 (i32.or (i32.shr_u (get_local $3) - ;;@ (lib)/memory.ts:87:32 (i32.const 8) ) - ;;@ (lib)/memory.ts:87:36 (i32.shl (get_local $4) - ;;@ (lib)/memory.ts:87:41 (i32.const 24) ) ) ) - ;;@ (lib)/memory.ts:88:10 (set_local $3 - ;;@ (lib)/memory.ts:88:14 (i32.load - ;;@ (lib)/memory.ts:88:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:88:30 (i32.const 7) ) ) ) - ;;@ (lib)/memory.ts:89:10 (i32.store - ;;@ (lib)/memory.ts:89:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:89:28 (i32.const 4) ) - ;;@ (lib)/memory.ts:89:31 (i32.or (i32.shr_u (get_local $4) - ;;@ (lib)/memory.ts:89:36 (i32.const 8) ) - ;;@ (lib)/memory.ts:89:40 (i32.shl (get_local $3) - ;;@ (lib)/memory.ts:89:45 (i32.const 24) ) ) ) - ;;@ (lib)/memory.ts:90:10 (set_local $4 - ;;@ (lib)/memory.ts:90:14 (i32.load - ;;@ (lib)/memory.ts:90:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:90:30 (i32.const 11) ) ) ) - ;;@ (lib)/memory.ts:91:10 (i32.store - ;;@ (lib)/memory.ts:91:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:91:28 (i32.const 8) ) - ;;@ (lib)/memory.ts:91:31 (i32.or (i32.shr_u (get_local $3) - ;;@ (lib)/memory.ts:91:36 (i32.const 8) ) - ;;@ (lib)/memory.ts:91:40 (i32.shl (get_local $4) - ;;@ (lib)/memory.ts:91:45 (i32.const 24) ) ) ) - ;;@ (lib)/memory.ts:92:10 (set_local $3 - ;;@ (lib)/memory.ts:92:14 (i32.load - ;;@ (lib)/memory.ts:92:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:92:30 (i32.const 15) ) ) ) - ;;@ (lib)/memory.ts:93:10 (i32.store - ;;@ (lib)/memory.ts:93:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:93:28 (i32.const 12) ) - ;;@ (lib)/memory.ts:93:32 (i32.or (i32.shr_u (get_local $4) - ;;@ (lib)/memory.ts:93:37 (i32.const 8) ) - ;;@ (lib)/memory.ts:93:41 (i32.shl (get_local $3) - ;;@ (lib)/memory.ts:93:46 (i32.const 24) ) ) ) - ;;@ (lib)/memory.ts:94:10 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:94:17 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:94:21 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:94:29 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:94:33 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:94:38 (i32.const 16) ) ) @@ -1868,23 +1357,16 @@ ) ) ) - ;;@ (lib)/memory.ts:96:8 (br $break|2) ) ) - ;;@ (lib)/memory.ts:101:2 (if - ;;@ (lib)/memory.ts:101:6 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:101:10 (i32.const 16) ) - ;;@ (lib)/memory.ts:101:14 (block - ;;@ (lib)/memory.ts:102:4 (i32.store8 - ;;@ (lib)/memory.ts:102:14 (block (result i32) (set_local $5 (get_local $0) @@ -1897,9 +1379,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:102:22 (i32.load8_u - ;;@ (lib)/memory.ts:102:31 (block (result i32) (set_local $5 (get_local $1) @@ -1914,9 +1394,7 @@ ) ) ) - ;;@ (lib)/memory.ts:103:4 (i32.store8 - ;;@ (lib)/memory.ts:103:14 (block (result i32) (set_local $5 (get_local $0) @@ -1929,9 +1407,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:103:22 (i32.load8_u - ;;@ (lib)/memory.ts:103:31 (block (result i32) (set_local $5 (get_local $1) @@ -1946,9 +1422,7 @@ ) ) ) - ;;@ (lib)/memory.ts:104:4 (i32.store8 - ;;@ (lib)/memory.ts:104:14 (block (result i32) (set_local $5 (get_local $0) @@ -1961,9 +1435,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:104:22 (i32.load8_u - ;;@ (lib)/memory.ts:104:31 (block (result i32) (set_local $5 (get_local $1) @@ -1978,9 +1450,7 @@ ) ) ) - ;;@ (lib)/memory.ts:105:4 (i32.store8 - ;;@ (lib)/memory.ts:105:14 (block (result i32) (set_local $5 (get_local $0) @@ -1993,9 +1463,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:105:22 (i32.load8_u - ;;@ (lib)/memory.ts:105:31 (block (result i32) (set_local $5 (get_local $1) @@ -2010,9 +1478,7 @@ ) ) ) - ;;@ (lib)/memory.ts:106:4 (i32.store8 - ;;@ (lib)/memory.ts:106:14 (block (result i32) (set_local $5 (get_local $0) @@ -2025,9 +1491,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:106:22 (i32.load8_u - ;;@ (lib)/memory.ts:106:31 (block (result i32) (set_local $5 (get_local $1) @@ -2042,9 +1506,7 @@ ) ) ) - ;;@ (lib)/memory.ts:107:4 (i32.store8 - ;;@ (lib)/memory.ts:107:14 (block (result i32) (set_local $5 (get_local $0) @@ -2057,9 +1519,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:107:22 (i32.load8_u - ;;@ (lib)/memory.ts:107:31 (block (result i32) (set_local $5 (get_local $1) @@ -2074,9 +1534,7 @@ ) ) ) - ;;@ (lib)/memory.ts:108:4 (i32.store8 - ;;@ (lib)/memory.ts:108:14 (block (result i32) (set_local $5 (get_local $0) @@ -2089,9 +1547,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:108:22 (i32.load8_u - ;;@ (lib)/memory.ts:108:31 (block (result i32) (set_local $5 (get_local $1) @@ -2106,9 +1562,7 @@ ) ) ) - ;;@ (lib)/memory.ts:109:4 (i32.store8 - ;;@ (lib)/memory.ts:109:14 (block (result i32) (set_local $5 (get_local $0) @@ -2121,9 +1575,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:109:22 (i32.load8_u - ;;@ (lib)/memory.ts:109:31 (block (result i32) (set_local $5 (get_local $1) @@ -2138,9 +1590,7 @@ ) ) ) - ;;@ (lib)/memory.ts:110:4 (i32.store8 - ;;@ (lib)/memory.ts:110:14 (block (result i32) (set_local $5 (get_local $0) @@ -2153,9 +1603,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:110:22 (i32.load8_u - ;;@ (lib)/memory.ts:110:31 (block (result i32) (set_local $5 (get_local $1) @@ -2170,9 +1618,7 @@ ) ) ) - ;;@ (lib)/memory.ts:111:4 (i32.store8 - ;;@ (lib)/memory.ts:111:14 (block (result i32) (set_local $5 (get_local $0) @@ -2185,9 +1631,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:111:22 (i32.load8_u - ;;@ (lib)/memory.ts:111:31 (block (result i32) (set_local $5 (get_local $1) @@ -2202,9 +1646,7 @@ ) ) ) - ;;@ (lib)/memory.ts:112:4 (i32.store8 - ;;@ (lib)/memory.ts:112:14 (block (result i32) (set_local $5 (get_local $0) @@ -2217,9 +1659,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:112:22 (i32.load8_u - ;;@ (lib)/memory.ts:112:31 (block (result i32) (set_local $5 (get_local $1) @@ -2234,9 +1674,7 @@ ) ) ) - ;;@ (lib)/memory.ts:113:4 (i32.store8 - ;;@ (lib)/memory.ts:113:14 (block (result i32) (set_local $5 (get_local $0) @@ -2249,9 +1687,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:113:22 (i32.load8_u - ;;@ (lib)/memory.ts:113:31 (block (result i32) (set_local $5 (get_local $1) @@ -2266,9 +1702,7 @@ ) ) ) - ;;@ (lib)/memory.ts:114:4 (i32.store8 - ;;@ (lib)/memory.ts:114:14 (block (result i32) (set_local $5 (get_local $0) @@ -2281,9 +1715,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:114:22 (i32.load8_u - ;;@ (lib)/memory.ts:114:31 (block (result i32) (set_local $5 (get_local $1) @@ -2298,9 +1730,7 @@ ) ) ) - ;;@ (lib)/memory.ts:115:4 (i32.store8 - ;;@ (lib)/memory.ts:115:14 (block (result i32) (set_local $5 (get_local $0) @@ -2313,9 +1743,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:115:22 (i32.load8_u - ;;@ (lib)/memory.ts:115:31 (block (result i32) (set_local $5 (get_local $1) @@ -2330,9 +1758,7 @@ ) ) ) - ;;@ (lib)/memory.ts:116:4 (i32.store8 - ;;@ (lib)/memory.ts:116:14 (block (result i32) (set_local $5 (get_local $0) @@ -2345,9 +1771,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:116:22 (i32.load8_u - ;;@ (lib)/memory.ts:116:31 (block (result i32) (set_local $5 (get_local $1) @@ -2362,9 +1786,7 @@ ) ) ) - ;;@ (lib)/memory.ts:117:4 (i32.store8 - ;;@ (lib)/memory.ts:117:14 (block (result i32) (set_local $5 (get_local $0) @@ -2377,9 +1799,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:117:22 (i32.load8_u - ;;@ (lib)/memory.ts:117:31 (block (result i32) (set_local $5 (get_local $1) @@ -2396,19 +1816,13 @@ ) ) ) - ;;@ (lib)/memory.ts:119:2 (if - ;;@ (lib)/memory.ts:119:6 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:119:10 (i32.const 8) ) - ;;@ (lib)/memory.ts:119:13 (block - ;;@ (lib)/memory.ts:120:4 (i32.store8 - ;;@ (lib)/memory.ts:120:14 (block (result i32) (set_local $5 (get_local $0) @@ -2421,9 +1835,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:120:22 (i32.load8_u - ;;@ (lib)/memory.ts:120:31 (block (result i32) (set_local $5 (get_local $1) @@ -2438,9 +1850,7 @@ ) ) ) - ;;@ (lib)/memory.ts:121:4 (i32.store8 - ;;@ (lib)/memory.ts:121:14 (block (result i32) (set_local $5 (get_local $0) @@ -2453,9 +1863,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:121:22 (i32.load8_u - ;;@ (lib)/memory.ts:121:31 (block (result i32) (set_local $5 (get_local $1) @@ -2470,9 +1878,7 @@ ) ) ) - ;;@ (lib)/memory.ts:122:4 (i32.store8 - ;;@ (lib)/memory.ts:122:14 (block (result i32) (set_local $5 (get_local $0) @@ -2485,9 +1891,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:122:22 (i32.load8_u - ;;@ (lib)/memory.ts:122:31 (block (result i32) (set_local $5 (get_local $1) @@ -2502,9 +1906,7 @@ ) ) ) - ;;@ (lib)/memory.ts:123:4 (i32.store8 - ;;@ (lib)/memory.ts:123:14 (block (result i32) (set_local $5 (get_local $0) @@ -2517,9 +1919,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:123:22 (i32.load8_u - ;;@ (lib)/memory.ts:123:31 (block (result i32) (set_local $5 (get_local $1) @@ -2534,9 +1934,7 @@ ) ) ) - ;;@ (lib)/memory.ts:124:4 (i32.store8 - ;;@ (lib)/memory.ts:124:14 (block (result i32) (set_local $5 (get_local $0) @@ -2549,9 +1947,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:124:22 (i32.load8_u - ;;@ (lib)/memory.ts:124:31 (block (result i32) (set_local $5 (get_local $1) @@ -2566,9 +1962,7 @@ ) ) ) - ;;@ (lib)/memory.ts:125:4 (i32.store8 - ;;@ (lib)/memory.ts:125:14 (block (result i32) (set_local $5 (get_local $0) @@ -2581,9 +1975,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:125:22 (i32.load8_u - ;;@ (lib)/memory.ts:125:31 (block (result i32) (set_local $5 (get_local $1) @@ -2598,9 +1990,7 @@ ) ) ) - ;;@ (lib)/memory.ts:126:4 (i32.store8 - ;;@ (lib)/memory.ts:126:14 (block (result i32) (set_local $5 (get_local $0) @@ -2613,9 +2003,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:126:22 (i32.load8_u - ;;@ (lib)/memory.ts:126:31 (block (result i32) (set_local $5 (get_local $1) @@ -2630,9 +2018,7 @@ ) ) ) - ;;@ (lib)/memory.ts:127:4 (i32.store8 - ;;@ (lib)/memory.ts:127:14 (block (result i32) (set_local $5 (get_local $0) @@ -2645,9 +2031,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:127:22 (i32.load8_u - ;;@ (lib)/memory.ts:127:31 (block (result i32) (set_local $5 (get_local $1) @@ -2664,19 +2048,13 @@ ) ) ) - ;;@ (lib)/memory.ts:129:2 (if - ;;@ (lib)/memory.ts:129:6 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:129:10 (i32.const 4) ) - ;;@ (lib)/memory.ts:129:13 (block - ;;@ (lib)/memory.ts:130:4 (i32.store8 - ;;@ (lib)/memory.ts:130:14 (block (result i32) (set_local $5 (get_local $0) @@ -2689,9 +2067,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:130:22 (i32.load8_u - ;;@ (lib)/memory.ts:130:31 (block (result i32) (set_local $5 (get_local $1) @@ -2706,9 +2082,7 @@ ) ) ) - ;;@ (lib)/memory.ts:131:4 (i32.store8 - ;;@ (lib)/memory.ts:131:14 (block (result i32) (set_local $5 (get_local $0) @@ -2721,9 +2095,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:131:22 (i32.load8_u - ;;@ (lib)/memory.ts:131:31 (block (result i32) (set_local $5 (get_local $1) @@ -2738,9 +2110,7 @@ ) ) ) - ;;@ (lib)/memory.ts:132:4 (i32.store8 - ;;@ (lib)/memory.ts:132:14 (block (result i32) (set_local $5 (get_local $0) @@ -2753,9 +2123,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:132:22 (i32.load8_u - ;;@ (lib)/memory.ts:132:31 (block (result i32) (set_local $5 (get_local $1) @@ -2770,9 +2138,7 @@ ) ) ) - ;;@ (lib)/memory.ts:133:4 (i32.store8 - ;;@ (lib)/memory.ts:133:14 (block (result i32) (set_local $5 (get_local $0) @@ -2785,9 +2151,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:133:22 (i32.load8_u - ;;@ (lib)/memory.ts:133:31 (block (result i32) (set_local $5 (get_local $1) @@ -2804,19 +2168,13 @@ ) ) ) - ;;@ (lib)/memory.ts:135:2 (if - ;;@ (lib)/memory.ts:135:6 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:135:10 (i32.const 2) ) - ;;@ (lib)/memory.ts:135:13 (block - ;;@ (lib)/memory.ts:136:4 (i32.store8 - ;;@ (lib)/memory.ts:136:14 (block (result i32) (set_local $5 (get_local $0) @@ -2829,9 +2187,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:136:22 (i32.load8_u - ;;@ (lib)/memory.ts:136:31 (block (result i32) (set_local $5 (get_local $1) @@ -2846,9 +2202,7 @@ ) ) ) - ;;@ (lib)/memory.ts:137:4 (i32.store8 - ;;@ (lib)/memory.ts:137:14 (block (result i32) (set_local $5 (get_local $0) @@ -2861,9 +2215,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:137:22 (i32.load8_u - ;;@ (lib)/memory.ts:137:31 (block (result i32) (set_local $5 (get_local $1) @@ -2880,17 +2232,12 @@ ) ) ) - ;;@ (lib)/memory.ts:139:2 (if - ;;@ (lib)/memory.ts:139:6 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:139:10 (i32.const 1) ) - ;;@ (lib)/memory.ts:140:4 (i32.store8 - ;;@ (lib)/memory.ts:140:14 (block (result i32) (set_local $5 (get_local $0) @@ -2903,9 +2250,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:140:22 (i32.load8_u - ;;@ (lib)/memory.ts:140:31 (block (result i32) (set_local $5 (get_local $1) @@ -2924,20 +2269,14 @@ ) (func "$(lib)/memory/move_memory" (; 4 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32) (local $3 i32) - ;;@ (lib)/memory.ts:148:2 (if - ;;@ (lib)/memory.ts:148:6 (i32.eq (get_local $0) - ;;@ (lib)/memory.ts:148:14 (get_local $1) ) - ;;@ (lib)/memory.ts:149:4 (return) ) - ;;@ (lib)/memory.ts:150:2 (if - ;;@ (lib)/memory.ts:150:6 (i32.and (if (result i32) (i32.ne @@ -2945,106 +2284,73 @@ (i32.le_u (i32.add (get_local $1) - ;;@ (lib)/memory.ts:150:12 (get_local $2) ) - ;;@ (lib)/memory.ts:150:17 (get_local $0) ) ) (i32.const 0) ) (get_local $3) - ;;@ (lib)/memory.ts:150:25 (i32.le_u (i32.add (get_local $0) - ;;@ (lib)/memory.ts:150:32 (get_local $2) ) - ;;@ (lib)/memory.ts:150:37 (get_local $1) ) ) (i32.const 1) ) - ;;@ (lib)/memory.ts:150:42 (block - ;;@ (lib)/memory.ts:151:4 (call "$(lib)/memory/copy_memory" - ;;@ (lib)/memory.ts:151:16 (get_local $0) - ;;@ (lib)/memory.ts:151:22 (get_local $1) - ;;@ (lib)/memory.ts:151:27 (get_local $2) ) - ;;@ (lib)/memory.ts:152:4 (return) ) ) - ;;@ (lib)/memory.ts:154:2 (if - ;;@ (lib)/memory.ts:154:6 (i32.lt_u (get_local $0) - ;;@ (lib)/memory.ts:154:13 (get_local $1) ) - ;;@ (lib)/memory.ts:154:18 (block - ;;@ (lib)/memory.ts:155:4 (if - ;;@ (lib)/memory.ts:155:8 (i32.eq (i32.and - ;;@ (lib)/memory.ts:155:9 (get_local $1) - ;;@ (lib)/memory.ts:155:15 (i32.const 7) ) - ;;@ (lib)/memory.ts:155:21 (i32.and - ;;@ (lib)/memory.ts:155:22 (get_local $0) - ;;@ (lib)/memory.ts:155:29 (i32.const 7) ) ) - ;;@ (lib)/memory.ts:155:33 (block (block $break|0 (loop $continue|0 (if - ;;@ (lib)/memory.ts:156:13 (i32.and (get_local $0) - ;;@ (lib)/memory.ts:156:20 (i32.const 7) ) (block (block - ;;@ (lib)/memory.ts:157:8 (if - ;;@ (lib)/memory.ts:157:12 (i32.eqz - ;;@ (lib)/memory.ts:157:13 (get_local $2) ) - ;;@ (lib)/memory.ts:158:10 (return) ) - ;;@ (lib)/memory.ts:159:8 (set_local $2 (i32.sub - ;;@ (lib)/memory.ts:159:10 (get_local $2) (i32.const 1) ) ) - ;;@ (lib)/memory.ts:160:8 (i32.store8 - ;;@ (lib)/memory.ts:160:18 (block (result i32) (set_local $3 (get_local $0) @@ -3057,9 +2363,7 @@ ) (get_local $3) ) - ;;@ (lib)/memory.ts:160:26 (i32.load8_u - ;;@ (lib)/memory.ts:160:35 (block (result i32) (set_local $3 (get_local $1) @@ -3080,49 +2384,36 @@ ) ) ) - ;;@ (lib)/memory.ts:162:6 (block $break|1 (loop $continue|1 (if - ;;@ (lib)/memory.ts:162:13 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:162:18 (i32.const 8) ) (block (block - ;;@ (lib)/memory.ts:163:8 (i64.store - ;;@ (lib)/memory.ts:163:19 (get_local $0) - ;;@ (lib)/memory.ts:163:25 (i64.load - ;;@ (lib)/memory.ts:163:35 (get_local $1) ) ) - ;;@ (lib)/memory.ts:164:8 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:164:16 (i32.const 8) ) ) - ;;@ (lib)/memory.ts:165:8 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:165:16 (i32.const 8) ) ) - ;;@ (lib)/memory.ts:166:8 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:166:16 (i32.const 8) ) ) @@ -3134,17 +2425,13 @@ ) ) ) - ;;@ (lib)/memory.ts:169:4 (block $break|2 (loop $continue|2 (if - ;;@ (lib)/memory.ts:169:11 (get_local $2) (block (block - ;;@ (lib)/memory.ts:170:6 (i32.store8 - ;;@ (lib)/memory.ts:170:16 (block (result i32) (set_local $3 (get_local $0) @@ -3157,9 +2444,7 @@ ) (get_local $3) ) - ;;@ (lib)/memory.ts:170:24 (i32.load8_u - ;;@ (lib)/memory.ts:170:33 (block (result i32) (set_local $3 (get_local $1) @@ -3174,10 +2459,8 @@ ) ) ) - ;;@ (lib)/memory.ts:171:6 (set_local $2 (i32.sub - ;;@ (lib)/memory.ts:171:8 (get_local $2) (i32.const 1) ) @@ -3189,74 +2472,50 @@ ) ) ) - ;;@ (lib)/memory.ts:173:9 (block - ;;@ (lib)/memory.ts:174:4 (if - ;;@ (lib)/memory.ts:174:8 (i32.eq (i32.and - ;;@ (lib)/memory.ts:174:9 (get_local $1) - ;;@ (lib)/memory.ts:174:15 (i32.const 7) ) - ;;@ (lib)/memory.ts:174:21 (i32.and - ;;@ (lib)/memory.ts:174:22 (get_local $0) - ;;@ (lib)/memory.ts:174:29 (i32.const 7) ) ) - ;;@ (lib)/memory.ts:174:33 (block (block $break|3 (loop $continue|3 (if - ;;@ (lib)/memory.ts:175:13 (i32.and (i32.add - ;;@ (lib)/memory.ts:175:14 (get_local $0) - ;;@ (lib)/memory.ts:175:21 (get_local $2) ) - ;;@ (lib)/memory.ts:175:26 (i32.const 7) ) (block (block - ;;@ (lib)/memory.ts:176:8 (if - ;;@ (lib)/memory.ts:176:12 (i32.eqz - ;;@ (lib)/memory.ts:176:13 (get_local $2) ) - ;;@ (lib)/memory.ts:177:10 (return) ) - ;;@ (lib)/memory.ts:178:8 (i32.store8 - ;;@ (lib)/memory.ts:178:18 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:178:25 (tee_local $2 (i32.sub - ;;@ (lib)/memory.ts:178:27 (get_local $2) (i32.const 1) ) ) ) - ;;@ (lib)/memory.ts:178:30 (i32.load8_u - ;;@ (lib)/memory.ts:178:39 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:178:45 (get_local $2) ) ) @@ -3267,40 +2526,29 @@ ) ) ) - ;;@ (lib)/memory.ts:180:6 (block $break|4 (loop $continue|4 (if - ;;@ (lib)/memory.ts:180:13 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:180:18 (i32.const 8) ) (block (block - ;;@ (lib)/memory.ts:181:8 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:181:13 (i32.const 8) ) ) - ;;@ (lib)/memory.ts:182:8 (i64.store - ;;@ (lib)/memory.ts:182:19 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:182:26 (get_local $2) ) - ;;@ (lib)/memory.ts:182:29 (i64.load - ;;@ (lib)/memory.ts:182:39 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:182:45 (get_local $2) ) ) @@ -3313,34 +2561,25 @@ ) ) ) - ;;@ (lib)/memory.ts:185:4 (block $break|5 (loop $continue|5 (if - ;;@ (lib)/memory.ts:185:11 (get_local $2) (block (block - ;;@ (lib)/memory.ts:186:6 (i32.store8 - ;;@ (lib)/memory.ts:186:16 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:186:23 (tee_local $2 (i32.sub - ;;@ (lib)/memory.ts:186:25 (get_local $2) (i32.const 1) ) ) ) - ;;@ (lib)/memory.ts:186:28 (i32.load8_u - ;;@ (lib)/memory.ts:186:37 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:186:43 (get_local $2) ) ) @@ -3355,38 +2594,28 @@ ) ) (func "$(lib)/memory/compare_memory" (; 5 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32) - ;;@ (lib)/memory.ts:262:2 (if - ;;@ (lib)/memory.ts:262:6 (i32.eq (get_local $0) - ;;@ (lib)/memory.ts:262:12 (get_local $1) ) - ;;@ (lib)/memory.ts:263:11 (return (i32.const 0) ) ) - ;;@ (lib)/memory.ts:264:2 (block $break|0 (loop $continue|0 (if - ;;@ (lib)/memory.ts:264:9 (if (result i32) (i32.ne (get_local $2) (i32.const 0) ) - ;;@ (lib)/memory.ts:264:14 (i32.eq (i32.load8_u - ;;@ (lib)/memory.ts:264:23 (get_local $0) ) - ;;@ (lib)/memory.ts:264:30 (i32.load8_u - ;;@ (lib)/memory.ts:264:39 (get_local $1) ) ) @@ -3394,21 +2623,18 @@ ) (block (block - ;;@ (lib)/memory.ts:265:4 (set_local $2 (i32.sub (get_local $2) (i32.const 1) ) ) - ;;@ (lib)/memory.ts:266:4 (set_local $0 (i32.add (get_local $0) (i32.const 1) ) ) - ;;@ (lib)/memory.ts:267:4 (set_local $1 (i32.add (get_local $1) @@ -3421,24 +2647,17 @@ ) ) ) - ;;@ (lib)/memory.ts:269:53 (return - ;;@ (lib)/memory.ts:269:9 (if (result i32) (get_local $2) - ;;@ (lib)/memory.ts:269:13 (i32.sub (i32.load8_u - ;;@ (lib)/memory.ts:269:27 (get_local $0) ) - ;;@ (lib)/memory.ts:269:33 (i32.load8_u - ;;@ (lib)/memory.ts:269:47 (get_local $1) ) ) - ;;@ (lib)/memory.ts:269:53 (i32.const 0) ) ) @@ -3446,38 +2665,28 @@ (func "$(lib)/allocator/arena/free_memory" (; 6 ;) (type $iv) (param $0 i32) ) (func "$(lib)/allocator/arena/reset_memory" (; 7 ;) (type $v) - ;;@ (lib)/allocator/arena.ts:36:2 (set_global "$(lib)/allocator/arena/HEAP_OFFSET" - ;;@ (lib)/allocator/arena.ts:36:16 (get_global $HEAP_BASE) ) ) (func $start (; 8 ;) (type $v) (set_global "$(lib)/allocator/arena/HEAP_OFFSET" - ;;@ (lib)/allocator/arena.ts:11:25 (get_global $HEAP_BASE) ) (set_global $std/allocator_arena/ptr1 - ;;@ std/allocator_arena.ts:4:18 (call "$(lib)/allocator/arena/allocate_memory" - ;;@ std/allocator_arena.ts:4:34 (i32.const 42) ) ) (set_global $std/allocator_arena/ptr2 - ;;@ std/allocator_arena.ts:5:18 (call "$(lib)/allocator/arena/allocate_memory" - ;;@ std/allocator_arena.ts:5:34 (i32.const 42) ) ) - ;;@ std/allocator_arena.ts:7:0 (if (i32.eqz - ;;@ std/allocator_arena.ts:7:7 (i32.ne (get_global $std/allocator_arena/ptr1) - ;;@ std/allocator_arena.ts:7:15 (get_global $std/allocator_arena/ptr2) ) ) @@ -3491,45 +2700,31 @@ (unreachable) ) ) - ;;@ std/allocator_arena.ts:9:0 (call "$(lib)/memory/set_memory" - ;;@ std/allocator_arena.ts:9:11 (get_global $std/allocator_arena/ptr1) - ;;@ std/allocator_arena.ts:9:17 (i32.const 18) - ;;@ std/allocator_arena.ts:9:23 (i32.const 42) ) - ;;@ std/allocator_arena.ts:12:0 (block $break|0 - ;;@ std/allocator_arena.ts:12:5 (set_global $std/allocator_arena/i - ;;@ std/allocator_arena.ts:12:9 (i32.const 0) ) (loop $continue|0 (if - ;;@ std/allocator_arena.ts:12:12 (i32.lt_u (get_global $std/allocator_arena/i) - ;;@ std/allocator_arena.ts:12:16 (i32.const 42) ) (block - ;;@ std/allocator_arena.ts:13:2 (if (i32.eqz - ;;@ std/allocator_arena.ts:13:9 (i32.eq (i32.load8_u - ;;@ std/allocator_arena.ts:13:18 (i32.add (get_global $std/allocator_arena/ptr1) - ;;@ std/allocator_arena.ts:13:25 (get_global $std/allocator_arena/i) ) ) - ;;@ std/allocator_arena.ts:13:31 (i32.const 18) ) ) @@ -3543,10 +2738,8 @@ (unreachable) ) ) - ;;@ std/allocator_arena.ts:12:22 (set_global $std/allocator_arena/i (i32.add - ;;@ std/allocator_arena.ts:12:24 (get_global $std/allocator_arena/i) (i32.const 1) ) @@ -3556,45 +2749,31 @@ ) ) ) - ;;@ std/allocator_arena.ts:15:0 (call "$(lib)/memory/move_memory" - ;;@ std/allocator_arena.ts:15:12 (get_global $std/allocator_arena/ptr2) - ;;@ std/allocator_arena.ts:15:18 (get_global $std/allocator_arena/ptr1) - ;;@ std/allocator_arena.ts:15:24 (i32.const 42) ) - ;;@ std/allocator_arena.ts:17:0 (block $break|1 - ;;@ std/allocator_arena.ts:17:5 (set_global $std/allocator_arena/i - ;;@ std/allocator_arena.ts:17:9 (i32.const 0) ) (loop $continue|1 (if - ;;@ std/allocator_arena.ts:17:12 (i32.lt_u (get_global $std/allocator_arena/i) - ;;@ std/allocator_arena.ts:17:16 (i32.const 42) ) (block - ;;@ std/allocator_arena.ts:18:2 (if (i32.eqz - ;;@ std/allocator_arena.ts:18:9 (i32.eq (i32.load8_u - ;;@ std/allocator_arena.ts:18:18 (i32.add (get_global $std/allocator_arena/ptr2) - ;;@ std/allocator_arena.ts:18:25 (get_global $std/allocator_arena/i) ) ) - ;;@ std/allocator_arena.ts:18:31 (i32.const 18) ) ) @@ -3608,10 +2787,8 @@ (unreachable) ) ) - ;;@ std/allocator_arena.ts:17:22 (set_global $std/allocator_arena/i (i32.add - ;;@ std/allocator_arena.ts:17:24 (get_global $std/allocator_arena/i) (i32.const 1) ) @@ -3621,20 +2798,14 @@ ) ) ) - ;;@ std/allocator_arena.ts:20:0 (if (i32.eqz - ;;@ std/allocator_arena.ts:20:7 (i32.eq (call "$(lib)/memory/compare_memory" - ;;@ std/allocator_arena.ts:20:22 (get_global $std/allocator_arena/ptr1) - ;;@ std/allocator_arena.ts:20:28 (get_global $std/allocator_arena/ptr2) - ;;@ std/allocator_arena.ts:20:34 (i32.const 42) ) - ;;@ std/allocator_arena.ts:20:43 (i32.const 0) ) ) @@ -3648,33 +2819,22 @@ (unreachable) ) ) - ;;@ std/allocator_arena.ts:22:0 (call "$(lib)/allocator/arena/free_memory" - ;;@ std/allocator_arena.ts:22:12 (get_global $std/allocator_arena/ptr1) ) - ;;@ std/allocator_arena.ts:23:0 (call "$(lib)/allocator/arena/free_memory" - ;;@ std/allocator_arena.ts:23:12 (get_global $std/allocator_arena/ptr2) ) - ;;@ std/allocator_arena.ts:25:0 (call "$(lib)/allocator/arena/reset_memory") - ;;@ std/allocator_arena.ts:26:0 (set_global $std/allocator_arena/ptr1 - ;;@ std/allocator_arena.ts:26:7 (call "$(lib)/allocator/arena/allocate_memory" - ;;@ std/allocator_arena.ts:26:23 (i32.const 42) ) ) - ;;@ std/allocator_arena.ts:27:0 (if (i32.eqz - ;;@ std/allocator_arena.ts:27:7 (i32.eq (get_global $std/allocator_arena/ptr1) - ;;@ std/allocator_arena.ts:27:15 (get_global $HEAP_BASE) ) ) diff --git a/tests/compiler/std/array.wat b/tests/compiler/std/array.untouched.wat similarity index 65% rename from tests/compiler/std/array.wat rename to tests/compiler/std/array.untouched.wat index a6ef18cd..d3854a8a 100644 --- a/tests/compiler/std/array.wat +++ b/tests/compiler/std/array.untouched.wat @@ -27,106 +27,74 @@ (local $3 i32) (local $4 i32) (local $5 i32) - ;;@ (lib)/allocator/arena.ts:15:2 (if - ;;@ (lib)/allocator/arena.ts:15:6 (i32.eqz - ;;@ (lib)/allocator/arena.ts:15:7 (get_local $0) ) - ;;@ (lib)/allocator/arena.ts:15:20 (return (i32.const 0) ) ) - ;;@ (lib)/allocator/arena.ts:16:2 (set_local $1 - ;;@ (lib)/allocator/arena.ts:16:12 (get_global "$(lib)/allocator/arena/HEAP_OFFSET") ) - ;;@ (lib)/allocator/arena.ts:17:2 (set_local $2 - ;;@ (lib)/allocator/arena.ts:17:12 (i32.and (i32.add - ;;@ (lib)/allocator/arena.ts:17:13 (i32.add (get_local $1) - ;;@ (lib)/allocator/arena.ts:17:19 (get_local $0) ) - ;;@ (lib)/allocator/arena.ts:17:26 (i32.const 7) ) - ;;@ (lib)/allocator/arena.ts:17:40 (i32.xor - ;;@ (lib)/allocator/arena.ts:17:41 (i32.const 7) (i32.const -1) ) ) ) - ;;@ (lib)/allocator/arena.ts:18:2 (set_local $3 - ;;@ (lib)/allocator/arena.ts:18:14 (i32.shl (current_memory) - ;;@ (lib)/allocator/arena.ts:18:41 (i32.const 16) ) ) - ;;@ (lib)/allocator/arena.ts:19:2 (if - ;;@ (lib)/allocator/arena.ts:19:6 (i32.and (if (result i32) (i32.ne (tee_local $4 (i32.gt_u (get_local $2) - ;;@ (lib)/allocator/arena.ts:19:12 (get_local $3) ) ) (i32.const 0) ) - ;;@ (lib)/allocator/arena.ts:19:21 (i32.lt_s (grow_memory - ;;@ (lib)/allocator/arena.ts:20:4 (select (tee_local $4 - ;;@ (lib)/allocator/arena.ts:21:6 (i32.shr_u (i32.sub - ;;@ (lib)/allocator/arena.ts:21:7 (i32.and - ;;@ (lib)/allocator/arena.ts:21:8 (i32.add - ;;@ (lib)/allocator/arena.ts:21:9 (get_local $2) - ;;@ (lib)/allocator/arena.ts:21:15 (i32.const 65535) ) - ;;@ (lib)/allocator/arena.ts:21:25 (i32.xor - ;;@ (lib)/allocator/arena.ts:21:26 (i32.const 65535) (i32.const -1) ) ) - ;;@ (lib)/allocator/arena.ts:21:36 (get_local $3) ) - ;;@ (lib)/allocator/arena.ts:21:46 (i32.const 16) ) ) (tee_local $5 - ;;@ (lib)/allocator/arena.ts:22:6 (i32.shr_u (get_local $3) - ;;@ (lib)/allocator/arena.ts:22:46 (i32.const 16) ) ) @@ -136,30 +104,23 @@ ) ) ) - ;;@ (lib)/allocator/arena.ts:24:6 (i32.const 0) ) (get_local $4) ) (i32.const 1) ) - ;;@ (lib)/allocator/arena.ts:24:9 (unreachable) ) - ;;@ (lib)/allocator/arena.ts:25:2 (set_global "$(lib)/allocator/arena/HEAP_OFFSET" - ;;@ (lib)/allocator/arena.ts:25:16 (get_local $2) ) - ;;@ (lib)/allocator/arena.ts:26:9 (return (get_local $1) ) ) (func "$(lib)/array/Array#get:length" (; 2 ;) (type $ii) (param $0 i32) (result i32) - ;;@ (lib)/array.ts:26:16 (return - ;;@ (lib)/array.ts:26:11 (i32.load offset=8 (get_local $0) ) @@ -169,32 +130,24 @@ (local $3 i32) (local $4 i32) (local $5 i32) - ;;@ (lib)/memory.ts:5:2 (nop) - ;;@ (lib)/memory.ts:8:2 (block $break|0 (loop $continue|0 (if - ;;@ (lib)/memory.ts:8:9 (if (result i32) (i32.ne (get_local $2) (i32.const 0) ) - ;;@ (lib)/memory.ts:8:14 (i32.and - ;;@ (lib)/memory.ts:8:15 (get_local $1) - ;;@ (lib)/memory.ts:8:21 (i32.const 3) ) (get_local $2) ) (block (block - ;;@ (lib)/memory.ts:9:4 (i32.store8 - ;;@ (lib)/memory.ts:9:14 (block (result i32) (set_local $5 (get_local $0) @@ -207,9 +160,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:9:22 (i32.load8_u - ;;@ (lib)/memory.ts:9:31 (block (result i32) (set_local $5 (get_local $1) @@ -224,7 +175,6 @@ ) ) ) - ;;@ (lib)/memory.ts:10:4 (set_local $2 (i32.sub (get_local $2) @@ -237,117 +187,81 @@ ) ) ) - ;;@ (lib)/memory.ts:14:2 (if - ;;@ (lib)/memory.ts:14:6 (i32.eq (i32.and - ;;@ (lib)/memory.ts:14:7 (get_local $0) - ;;@ (lib)/memory.ts:14:14 (i32.const 3) ) - ;;@ (lib)/memory.ts:14:20 (i32.const 0) ) - ;;@ (lib)/memory.ts:14:23 (block (block $break|1 (loop $continue|1 (if - ;;@ (lib)/memory.ts:15:11 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:15:16 (i32.const 16) ) (block (block - ;;@ (lib)/memory.ts:16:6 (i32.store - ;;@ (lib)/memory.ts:16:17 (get_local $0) - ;;@ (lib)/memory.ts:16:28 (i32.load - ;;@ (lib)/memory.ts:16:38 (get_local $1) ) ) - ;;@ (lib)/memory.ts:17:6 (i32.store - ;;@ (lib)/memory.ts:17:17 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:17:25 (i32.const 4) ) - ;;@ (lib)/memory.ts:17:28 (i32.load - ;;@ (lib)/memory.ts:17:38 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:17:45 (i32.const 4) ) ) ) - ;;@ (lib)/memory.ts:18:6 (i32.store - ;;@ (lib)/memory.ts:18:17 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:18:25 (i32.const 8) ) - ;;@ (lib)/memory.ts:18:28 (i32.load - ;;@ (lib)/memory.ts:18:38 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:18:45 (i32.const 8) ) ) ) - ;;@ (lib)/memory.ts:19:6 (i32.store - ;;@ (lib)/memory.ts:19:17 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:19:24 (i32.const 12) ) - ;;@ (lib)/memory.ts:19:28 (i32.load - ;;@ (lib)/memory.ts:19:38 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:19:44 (i32.const 12) ) ) ) - ;;@ (lib)/memory.ts:20:6 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:20:13 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:20:17 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:20:25 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:20:29 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:20:34 (i32.const 16) ) ) @@ -357,149 +271,102 @@ ) ) ) - ;;@ (lib)/memory.ts:22:4 (if - ;;@ (lib)/memory.ts:22:8 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:22:12 (i32.const 8) ) - ;;@ (lib)/memory.ts:22:15 (block - ;;@ (lib)/memory.ts:23:6 (i32.store - ;;@ (lib)/memory.ts:23:17 (get_local $0) - ;;@ (lib)/memory.ts:23:27 (i32.load - ;;@ (lib)/memory.ts:23:37 (get_local $1) ) ) - ;;@ (lib)/memory.ts:24:6 (i32.store - ;;@ (lib)/memory.ts:24:17 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:24:24 (i32.const 4) ) - ;;@ (lib)/memory.ts:24:27 (i32.load - ;;@ (lib)/memory.ts:24:37 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:24:43 (i32.const 4) ) ) ) - ;;@ (lib)/memory.ts:25:6 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:25:14 (i32.const 8) ) ) - ;;@ (lib)/memory.ts:25:17 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:25:24 (i32.const 8) ) ) ) ) - ;;@ (lib)/memory.ts:27:4 (if - ;;@ (lib)/memory.ts:27:8 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:27:12 (i32.const 4) ) - ;;@ (lib)/memory.ts:27:15 (block - ;;@ (lib)/memory.ts:28:6 (i32.store - ;;@ (lib)/memory.ts:28:17 (get_local $0) - ;;@ (lib)/memory.ts:28:23 (i32.load - ;;@ (lib)/memory.ts:28:33 (get_local $1) ) ) - ;;@ (lib)/memory.ts:29:6 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:29:14 (i32.const 4) ) ) - ;;@ (lib)/memory.ts:29:17 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:29:24 (i32.const 4) ) ) ) ) - ;;@ (lib)/memory.ts:31:4 (if - ;;@ (lib)/memory.ts:31:8 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:31:12 (i32.const 2) ) - ;;@ (lib)/memory.ts:31:15 (block - ;;@ (lib)/memory.ts:32:6 (i32.store16 - ;;@ (lib)/memory.ts:32:17 (get_local $0) - ;;@ (lib)/memory.ts:32:23 (i32.load16_u - ;;@ (lib)/memory.ts:32:33 (get_local $1) ) ) - ;;@ (lib)/memory.ts:33:6 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:33:14 (i32.const 2) ) ) - ;;@ (lib)/memory.ts:33:17 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:33:24 (i32.const 2) ) ) ) ) - ;;@ (lib)/memory.ts:35:4 (if - ;;@ (lib)/memory.ts:35:8 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:35:12 (i32.const 1) ) - ;;@ (lib)/memory.ts:36:6 (i32.store8 - ;;@ (lib)/memory.ts:36:16 (block (result i32) (set_local $5 (get_local $0) @@ -512,9 +379,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:36:24 (i32.load8_u - ;;@ (lib)/memory.ts:36:33 (block (result i32) (set_local $5 (get_local $1) @@ -530,65 +395,50 @@ ) ) ) - ;;@ (lib)/memory.ts:38:4 (return) ) ) - ;;@ (lib)/memory.ts:43:2 (if - ;;@ (lib)/memory.ts:43:6 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:43:11 (i32.const 32) ) - ;;@ (lib)/memory.ts:44:4 (block $break|2 (block $case2|2 (block $case1|2 (block $case0|2 (set_local $5 - ;;@ (lib)/memory.ts:44:12 (i32.and (get_local $0) - ;;@ (lib)/memory.ts:44:19 (i32.const 3) ) ) (br_if $case0|2 (i32.eq (get_local $5) - ;;@ (lib)/memory.ts:46:11 (i32.const 1) ) ) (br_if $case1|2 (i32.eq (get_local $5) - ;;@ (lib)/memory.ts:64:11 (i32.const 2) ) ) (br_if $case2|2 (i32.eq (get_local $5) - ;;@ (lib)/memory.ts:81:11 (i32.const 3) ) ) (br $break|2) ) - ;;@ (lib)/memory.ts:47:8 (set_local $3 - ;;@ (lib)/memory.ts:47:12 (i32.load - ;;@ (lib)/memory.ts:47:22 (get_local $1) ) ) - ;;@ (lib)/memory.ts:48:8 (i32.store8 - ;;@ (lib)/memory.ts:48:18 (block (result i32) (set_local $5 (get_local $0) @@ -601,9 +451,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:48:26 (i32.load8_u - ;;@ (lib)/memory.ts:48:35 (block (result i32) (set_local $5 (get_local $1) @@ -618,9 +466,7 @@ ) ) ) - ;;@ (lib)/memory.ts:49:8 (i32.store8 - ;;@ (lib)/memory.ts:49:18 (block (result i32) (set_local $5 (get_local $0) @@ -633,9 +479,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:49:26 (i32.load8_u - ;;@ (lib)/memory.ts:49:35 (block (result i32) (set_local $5 (get_local $1) @@ -650,9 +494,7 @@ ) ) ) - ;;@ (lib)/memory.ts:50:8 (i32.store8 - ;;@ (lib)/memory.ts:50:18 (block (result i32) (set_local $5 (get_local $0) @@ -665,9 +507,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:50:26 (i32.load8_u - ;;@ (lib)/memory.ts:50:35 (block (result i32) (set_local $5 (get_local $1) @@ -682,183 +522,129 @@ ) ) ) - ;;@ (lib)/memory.ts:51:8 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:51:13 (i32.const 3) ) ) - ;;@ (lib)/memory.ts:52:8 (block $break|3 (loop $continue|3 (if - ;;@ (lib)/memory.ts:52:15 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:52:20 (i32.const 17) ) (block (block - ;;@ (lib)/memory.ts:53:10 (set_local $4 - ;;@ (lib)/memory.ts:53:14 (i32.load - ;;@ (lib)/memory.ts:53:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:53:30 (i32.const 1) ) ) ) - ;;@ (lib)/memory.ts:54:10 (i32.store - ;;@ (lib)/memory.ts:54:21 (get_local $0) - ;;@ (lib)/memory.ts:54:27 (i32.or (i32.shr_u (get_local $3) - ;;@ (lib)/memory.ts:54:32 (i32.const 24) ) - ;;@ (lib)/memory.ts:54:37 (i32.shl (get_local $4) - ;;@ (lib)/memory.ts:54:42 (i32.const 8) ) ) ) - ;;@ (lib)/memory.ts:55:10 (set_local $3 - ;;@ (lib)/memory.ts:55:14 (i32.load - ;;@ (lib)/memory.ts:55:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:55:30 (i32.const 5) ) ) ) - ;;@ (lib)/memory.ts:56:10 (i32.store - ;;@ (lib)/memory.ts:56:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:56:28 (i32.const 4) ) - ;;@ (lib)/memory.ts:56:31 (i32.or (i32.shr_u (get_local $4) - ;;@ (lib)/memory.ts:56:36 (i32.const 24) ) - ;;@ (lib)/memory.ts:56:41 (i32.shl (get_local $3) - ;;@ (lib)/memory.ts:56:46 (i32.const 8) ) ) ) - ;;@ (lib)/memory.ts:57:10 (set_local $4 - ;;@ (lib)/memory.ts:57:14 (i32.load - ;;@ (lib)/memory.ts:57:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:57:30 (i32.const 9) ) ) ) - ;;@ (lib)/memory.ts:58:10 (i32.store - ;;@ (lib)/memory.ts:58:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:58:28 (i32.const 8) ) - ;;@ (lib)/memory.ts:58:31 (i32.or (i32.shr_u (get_local $3) - ;;@ (lib)/memory.ts:58:36 (i32.const 24) ) - ;;@ (lib)/memory.ts:58:41 (i32.shl (get_local $4) - ;;@ (lib)/memory.ts:58:46 (i32.const 8) ) ) ) - ;;@ (lib)/memory.ts:59:10 (set_local $3 - ;;@ (lib)/memory.ts:59:14 (i32.load - ;;@ (lib)/memory.ts:59:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:59:30 (i32.const 13) ) ) ) - ;;@ (lib)/memory.ts:60:10 (i32.store - ;;@ (lib)/memory.ts:60:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:60:28 (i32.const 12) ) - ;;@ (lib)/memory.ts:60:32 (i32.or (i32.shr_u (get_local $4) - ;;@ (lib)/memory.ts:60:37 (i32.const 24) ) - ;;@ (lib)/memory.ts:60:42 (i32.shl (get_local $3) - ;;@ (lib)/memory.ts:60:47 (i32.const 8) ) ) ) - ;;@ (lib)/memory.ts:61:10 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:61:17 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:61:21 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:61:29 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:61:33 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:61:38 (i32.const 16) ) ) @@ -868,20 +654,14 @@ ) ) ) - ;;@ (lib)/memory.ts:63:8 (br $break|2) ) - ;;@ (lib)/memory.ts:65:8 (set_local $3 - ;;@ (lib)/memory.ts:65:12 (i32.load - ;;@ (lib)/memory.ts:65:22 (get_local $1) ) ) - ;;@ (lib)/memory.ts:66:8 (i32.store8 - ;;@ (lib)/memory.ts:66:18 (block (result i32) (set_local $5 (get_local $0) @@ -894,9 +674,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:66:26 (i32.load8_u - ;;@ (lib)/memory.ts:66:35 (block (result i32) (set_local $5 (get_local $1) @@ -911,9 +689,7 @@ ) ) ) - ;;@ (lib)/memory.ts:67:8 (i32.store8 - ;;@ (lib)/memory.ts:67:18 (block (result i32) (set_local $5 (get_local $0) @@ -926,9 +702,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:67:26 (i32.load8_u - ;;@ (lib)/memory.ts:67:35 (block (result i32) (set_local $5 (get_local $1) @@ -943,183 +717,129 @@ ) ) ) - ;;@ (lib)/memory.ts:68:8 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:68:13 (i32.const 2) ) ) - ;;@ (lib)/memory.ts:69:8 (block $break|4 (loop $continue|4 (if - ;;@ (lib)/memory.ts:69:15 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:69:20 (i32.const 18) ) (block (block - ;;@ (lib)/memory.ts:70:10 (set_local $4 - ;;@ (lib)/memory.ts:70:14 (i32.load - ;;@ (lib)/memory.ts:70:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:70:30 (i32.const 2) ) ) ) - ;;@ (lib)/memory.ts:71:10 (i32.store - ;;@ (lib)/memory.ts:71:21 (get_local $0) - ;;@ (lib)/memory.ts:71:27 (i32.or (i32.shr_u (get_local $3) - ;;@ (lib)/memory.ts:71:32 (i32.const 16) ) - ;;@ (lib)/memory.ts:71:37 (i32.shl (get_local $4) - ;;@ (lib)/memory.ts:71:42 (i32.const 16) ) ) ) - ;;@ (lib)/memory.ts:72:10 (set_local $3 - ;;@ (lib)/memory.ts:72:14 (i32.load - ;;@ (lib)/memory.ts:72:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:72:30 (i32.const 6) ) ) ) - ;;@ (lib)/memory.ts:73:10 (i32.store - ;;@ (lib)/memory.ts:73:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:73:28 (i32.const 4) ) - ;;@ (lib)/memory.ts:73:31 (i32.or (i32.shr_u (get_local $4) - ;;@ (lib)/memory.ts:73:36 (i32.const 16) ) - ;;@ (lib)/memory.ts:73:41 (i32.shl (get_local $3) - ;;@ (lib)/memory.ts:73:46 (i32.const 16) ) ) ) - ;;@ (lib)/memory.ts:74:10 (set_local $4 - ;;@ (lib)/memory.ts:74:14 (i32.load - ;;@ (lib)/memory.ts:74:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:74:30 (i32.const 10) ) ) ) - ;;@ (lib)/memory.ts:75:10 (i32.store - ;;@ (lib)/memory.ts:75:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:75:28 (i32.const 8) ) - ;;@ (lib)/memory.ts:75:31 (i32.or (i32.shr_u (get_local $3) - ;;@ (lib)/memory.ts:75:36 (i32.const 16) ) - ;;@ (lib)/memory.ts:75:41 (i32.shl (get_local $4) - ;;@ (lib)/memory.ts:75:46 (i32.const 16) ) ) ) - ;;@ (lib)/memory.ts:76:10 (set_local $3 - ;;@ (lib)/memory.ts:76:14 (i32.load - ;;@ (lib)/memory.ts:76:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:76:30 (i32.const 14) ) ) ) - ;;@ (lib)/memory.ts:77:10 (i32.store - ;;@ (lib)/memory.ts:77:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:77:28 (i32.const 12) ) - ;;@ (lib)/memory.ts:77:32 (i32.or (i32.shr_u (get_local $4) - ;;@ (lib)/memory.ts:77:37 (i32.const 16) ) - ;;@ (lib)/memory.ts:77:42 (i32.shl (get_local $3) - ;;@ (lib)/memory.ts:77:47 (i32.const 16) ) ) ) - ;;@ (lib)/memory.ts:78:10 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:78:17 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:78:21 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:78:29 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:78:33 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:78:38 (i32.const 16) ) ) @@ -1129,20 +849,14 @@ ) ) ) - ;;@ (lib)/memory.ts:80:8 (br $break|2) ) - ;;@ (lib)/memory.ts:82:8 (set_local $3 - ;;@ (lib)/memory.ts:82:12 (i32.load - ;;@ (lib)/memory.ts:82:22 (get_local $1) ) ) - ;;@ (lib)/memory.ts:83:8 (i32.store8 - ;;@ (lib)/memory.ts:83:18 (block (result i32) (set_local $5 (get_local $0) @@ -1155,9 +869,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:83:26 (i32.load8_u - ;;@ (lib)/memory.ts:83:35 (block (result i32) (set_local $5 (get_local $1) @@ -1172,183 +884,129 @@ ) ) ) - ;;@ (lib)/memory.ts:84:8 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:84:13 (i32.const 1) ) ) - ;;@ (lib)/memory.ts:85:8 (block $break|5 (loop $continue|5 (if - ;;@ (lib)/memory.ts:85:15 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:85:20 (i32.const 19) ) (block (block - ;;@ (lib)/memory.ts:86:10 (set_local $4 - ;;@ (lib)/memory.ts:86:14 (i32.load - ;;@ (lib)/memory.ts:86:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:86:30 (i32.const 3) ) ) ) - ;;@ (lib)/memory.ts:87:10 (i32.store - ;;@ (lib)/memory.ts:87:21 (get_local $0) - ;;@ (lib)/memory.ts:87:27 (i32.or (i32.shr_u (get_local $3) - ;;@ (lib)/memory.ts:87:32 (i32.const 8) ) - ;;@ (lib)/memory.ts:87:36 (i32.shl (get_local $4) - ;;@ (lib)/memory.ts:87:41 (i32.const 24) ) ) ) - ;;@ (lib)/memory.ts:88:10 (set_local $3 - ;;@ (lib)/memory.ts:88:14 (i32.load - ;;@ (lib)/memory.ts:88:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:88:30 (i32.const 7) ) ) ) - ;;@ (lib)/memory.ts:89:10 (i32.store - ;;@ (lib)/memory.ts:89:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:89:28 (i32.const 4) ) - ;;@ (lib)/memory.ts:89:31 (i32.or (i32.shr_u (get_local $4) - ;;@ (lib)/memory.ts:89:36 (i32.const 8) ) - ;;@ (lib)/memory.ts:89:40 (i32.shl (get_local $3) - ;;@ (lib)/memory.ts:89:45 (i32.const 24) ) ) ) - ;;@ (lib)/memory.ts:90:10 (set_local $4 - ;;@ (lib)/memory.ts:90:14 (i32.load - ;;@ (lib)/memory.ts:90:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:90:30 (i32.const 11) ) ) ) - ;;@ (lib)/memory.ts:91:10 (i32.store - ;;@ (lib)/memory.ts:91:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:91:28 (i32.const 8) ) - ;;@ (lib)/memory.ts:91:31 (i32.or (i32.shr_u (get_local $3) - ;;@ (lib)/memory.ts:91:36 (i32.const 8) ) - ;;@ (lib)/memory.ts:91:40 (i32.shl (get_local $4) - ;;@ (lib)/memory.ts:91:45 (i32.const 24) ) ) ) - ;;@ (lib)/memory.ts:92:10 (set_local $3 - ;;@ (lib)/memory.ts:92:14 (i32.load - ;;@ (lib)/memory.ts:92:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:92:30 (i32.const 15) ) ) ) - ;;@ (lib)/memory.ts:93:10 (i32.store - ;;@ (lib)/memory.ts:93:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:93:28 (i32.const 12) ) - ;;@ (lib)/memory.ts:93:32 (i32.or (i32.shr_u (get_local $4) - ;;@ (lib)/memory.ts:93:37 (i32.const 8) ) - ;;@ (lib)/memory.ts:93:41 (i32.shl (get_local $3) - ;;@ (lib)/memory.ts:93:46 (i32.const 24) ) ) ) - ;;@ (lib)/memory.ts:94:10 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:94:17 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:94:21 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:94:29 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:94:33 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:94:38 (i32.const 16) ) ) @@ -1358,23 +1016,16 @@ ) ) ) - ;;@ (lib)/memory.ts:96:8 (br $break|2) ) ) - ;;@ (lib)/memory.ts:101:2 (if - ;;@ (lib)/memory.ts:101:6 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:101:10 (i32.const 16) ) - ;;@ (lib)/memory.ts:101:14 (block - ;;@ (lib)/memory.ts:102:4 (i32.store8 - ;;@ (lib)/memory.ts:102:14 (block (result i32) (set_local $5 (get_local $0) @@ -1387,9 +1038,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:102:22 (i32.load8_u - ;;@ (lib)/memory.ts:102:31 (block (result i32) (set_local $5 (get_local $1) @@ -1404,9 +1053,7 @@ ) ) ) - ;;@ (lib)/memory.ts:103:4 (i32.store8 - ;;@ (lib)/memory.ts:103:14 (block (result i32) (set_local $5 (get_local $0) @@ -1419,9 +1066,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:103:22 (i32.load8_u - ;;@ (lib)/memory.ts:103:31 (block (result i32) (set_local $5 (get_local $1) @@ -1436,9 +1081,7 @@ ) ) ) - ;;@ (lib)/memory.ts:104:4 (i32.store8 - ;;@ (lib)/memory.ts:104:14 (block (result i32) (set_local $5 (get_local $0) @@ -1451,9 +1094,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:104:22 (i32.load8_u - ;;@ (lib)/memory.ts:104:31 (block (result i32) (set_local $5 (get_local $1) @@ -1468,9 +1109,7 @@ ) ) ) - ;;@ (lib)/memory.ts:105:4 (i32.store8 - ;;@ (lib)/memory.ts:105:14 (block (result i32) (set_local $5 (get_local $0) @@ -1483,9 +1122,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:105:22 (i32.load8_u - ;;@ (lib)/memory.ts:105:31 (block (result i32) (set_local $5 (get_local $1) @@ -1500,9 +1137,7 @@ ) ) ) - ;;@ (lib)/memory.ts:106:4 (i32.store8 - ;;@ (lib)/memory.ts:106:14 (block (result i32) (set_local $5 (get_local $0) @@ -1515,9 +1150,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:106:22 (i32.load8_u - ;;@ (lib)/memory.ts:106:31 (block (result i32) (set_local $5 (get_local $1) @@ -1532,9 +1165,7 @@ ) ) ) - ;;@ (lib)/memory.ts:107:4 (i32.store8 - ;;@ (lib)/memory.ts:107:14 (block (result i32) (set_local $5 (get_local $0) @@ -1547,9 +1178,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:107:22 (i32.load8_u - ;;@ (lib)/memory.ts:107:31 (block (result i32) (set_local $5 (get_local $1) @@ -1564,9 +1193,7 @@ ) ) ) - ;;@ (lib)/memory.ts:108:4 (i32.store8 - ;;@ (lib)/memory.ts:108:14 (block (result i32) (set_local $5 (get_local $0) @@ -1579,9 +1206,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:108:22 (i32.load8_u - ;;@ (lib)/memory.ts:108:31 (block (result i32) (set_local $5 (get_local $1) @@ -1596,9 +1221,7 @@ ) ) ) - ;;@ (lib)/memory.ts:109:4 (i32.store8 - ;;@ (lib)/memory.ts:109:14 (block (result i32) (set_local $5 (get_local $0) @@ -1611,9 +1234,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:109:22 (i32.load8_u - ;;@ (lib)/memory.ts:109:31 (block (result i32) (set_local $5 (get_local $1) @@ -1628,9 +1249,7 @@ ) ) ) - ;;@ (lib)/memory.ts:110:4 (i32.store8 - ;;@ (lib)/memory.ts:110:14 (block (result i32) (set_local $5 (get_local $0) @@ -1643,9 +1262,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:110:22 (i32.load8_u - ;;@ (lib)/memory.ts:110:31 (block (result i32) (set_local $5 (get_local $1) @@ -1660,9 +1277,7 @@ ) ) ) - ;;@ (lib)/memory.ts:111:4 (i32.store8 - ;;@ (lib)/memory.ts:111:14 (block (result i32) (set_local $5 (get_local $0) @@ -1675,9 +1290,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:111:22 (i32.load8_u - ;;@ (lib)/memory.ts:111:31 (block (result i32) (set_local $5 (get_local $1) @@ -1692,9 +1305,7 @@ ) ) ) - ;;@ (lib)/memory.ts:112:4 (i32.store8 - ;;@ (lib)/memory.ts:112:14 (block (result i32) (set_local $5 (get_local $0) @@ -1707,9 +1318,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:112:22 (i32.load8_u - ;;@ (lib)/memory.ts:112:31 (block (result i32) (set_local $5 (get_local $1) @@ -1724,9 +1333,7 @@ ) ) ) - ;;@ (lib)/memory.ts:113:4 (i32.store8 - ;;@ (lib)/memory.ts:113:14 (block (result i32) (set_local $5 (get_local $0) @@ -1739,9 +1346,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:113:22 (i32.load8_u - ;;@ (lib)/memory.ts:113:31 (block (result i32) (set_local $5 (get_local $1) @@ -1756,9 +1361,7 @@ ) ) ) - ;;@ (lib)/memory.ts:114:4 (i32.store8 - ;;@ (lib)/memory.ts:114:14 (block (result i32) (set_local $5 (get_local $0) @@ -1771,9 +1374,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:114:22 (i32.load8_u - ;;@ (lib)/memory.ts:114:31 (block (result i32) (set_local $5 (get_local $1) @@ -1788,9 +1389,7 @@ ) ) ) - ;;@ (lib)/memory.ts:115:4 (i32.store8 - ;;@ (lib)/memory.ts:115:14 (block (result i32) (set_local $5 (get_local $0) @@ -1803,9 +1402,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:115:22 (i32.load8_u - ;;@ (lib)/memory.ts:115:31 (block (result i32) (set_local $5 (get_local $1) @@ -1820,9 +1417,7 @@ ) ) ) - ;;@ (lib)/memory.ts:116:4 (i32.store8 - ;;@ (lib)/memory.ts:116:14 (block (result i32) (set_local $5 (get_local $0) @@ -1835,9 +1430,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:116:22 (i32.load8_u - ;;@ (lib)/memory.ts:116:31 (block (result i32) (set_local $5 (get_local $1) @@ -1852,9 +1445,7 @@ ) ) ) - ;;@ (lib)/memory.ts:117:4 (i32.store8 - ;;@ (lib)/memory.ts:117:14 (block (result i32) (set_local $5 (get_local $0) @@ -1867,9 +1458,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:117:22 (i32.load8_u - ;;@ (lib)/memory.ts:117:31 (block (result i32) (set_local $5 (get_local $1) @@ -1886,19 +1475,13 @@ ) ) ) - ;;@ (lib)/memory.ts:119:2 (if - ;;@ (lib)/memory.ts:119:6 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:119:10 (i32.const 8) ) - ;;@ (lib)/memory.ts:119:13 (block - ;;@ (lib)/memory.ts:120:4 (i32.store8 - ;;@ (lib)/memory.ts:120:14 (block (result i32) (set_local $5 (get_local $0) @@ -1911,9 +1494,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:120:22 (i32.load8_u - ;;@ (lib)/memory.ts:120:31 (block (result i32) (set_local $5 (get_local $1) @@ -1928,9 +1509,7 @@ ) ) ) - ;;@ (lib)/memory.ts:121:4 (i32.store8 - ;;@ (lib)/memory.ts:121:14 (block (result i32) (set_local $5 (get_local $0) @@ -1943,9 +1522,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:121:22 (i32.load8_u - ;;@ (lib)/memory.ts:121:31 (block (result i32) (set_local $5 (get_local $1) @@ -1960,9 +1537,7 @@ ) ) ) - ;;@ (lib)/memory.ts:122:4 (i32.store8 - ;;@ (lib)/memory.ts:122:14 (block (result i32) (set_local $5 (get_local $0) @@ -1975,9 +1550,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:122:22 (i32.load8_u - ;;@ (lib)/memory.ts:122:31 (block (result i32) (set_local $5 (get_local $1) @@ -1992,9 +1565,7 @@ ) ) ) - ;;@ (lib)/memory.ts:123:4 (i32.store8 - ;;@ (lib)/memory.ts:123:14 (block (result i32) (set_local $5 (get_local $0) @@ -2007,9 +1578,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:123:22 (i32.load8_u - ;;@ (lib)/memory.ts:123:31 (block (result i32) (set_local $5 (get_local $1) @@ -2024,9 +1593,7 @@ ) ) ) - ;;@ (lib)/memory.ts:124:4 (i32.store8 - ;;@ (lib)/memory.ts:124:14 (block (result i32) (set_local $5 (get_local $0) @@ -2039,9 +1606,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:124:22 (i32.load8_u - ;;@ (lib)/memory.ts:124:31 (block (result i32) (set_local $5 (get_local $1) @@ -2056,9 +1621,7 @@ ) ) ) - ;;@ (lib)/memory.ts:125:4 (i32.store8 - ;;@ (lib)/memory.ts:125:14 (block (result i32) (set_local $5 (get_local $0) @@ -2071,9 +1634,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:125:22 (i32.load8_u - ;;@ (lib)/memory.ts:125:31 (block (result i32) (set_local $5 (get_local $1) @@ -2088,9 +1649,7 @@ ) ) ) - ;;@ (lib)/memory.ts:126:4 (i32.store8 - ;;@ (lib)/memory.ts:126:14 (block (result i32) (set_local $5 (get_local $0) @@ -2103,9 +1662,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:126:22 (i32.load8_u - ;;@ (lib)/memory.ts:126:31 (block (result i32) (set_local $5 (get_local $1) @@ -2120,9 +1677,7 @@ ) ) ) - ;;@ (lib)/memory.ts:127:4 (i32.store8 - ;;@ (lib)/memory.ts:127:14 (block (result i32) (set_local $5 (get_local $0) @@ -2135,9 +1690,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:127:22 (i32.load8_u - ;;@ (lib)/memory.ts:127:31 (block (result i32) (set_local $5 (get_local $1) @@ -2154,19 +1707,13 @@ ) ) ) - ;;@ (lib)/memory.ts:129:2 (if - ;;@ (lib)/memory.ts:129:6 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:129:10 (i32.const 4) ) - ;;@ (lib)/memory.ts:129:13 (block - ;;@ (lib)/memory.ts:130:4 (i32.store8 - ;;@ (lib)/memory.ts:130:14 (block (result i32) (set_local $5 (get_local $0) @@ -2179,9 +1726,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:130:22 (i32.load8_u - ;;@ (lib)/memory.ts:130:31 (block (result i32) (set_local $5 (get_local $1) @@ -2196,9 +1741,7 @@ ) ) ) - ;;@ (lib)/memory.ts:131:4 (i32.store8 - ;;@ (lib)/memory.ts:131:14 (block (result i32) (set_local $5 (get_local $0) @@ -2211,9 +1754,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:131:22 (i32.load8_u - ;;@ (lib)/memory.ts:131:31 (block (result i32) (set_local $5 (get_local $1) @@ -2228,9 +1769,7 @@ ) ) ) - ;;@ (lib)/memory.ts:132:4 (i32.store8 - ;;@ (lib)/memory.ts:132:14 (block (result i32) (set_local $5 (get_local $0) @@ -2243,9 +1782,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:132:22 (i32.load8_u - ;;@ (lib)/memory.ts:132:31 (block (result i32) (set_local $5 (get_local $1) @@ -2260,9 +1797,7 @@ ) ) ) - ;;@ (lib)/memory.ts:133:4 (i32.store8 - ;;@ (lib)/memory.ts:133:14 (block (result i32) (set_local $5 (get_local $0) @@ -2275,9 +1810,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:133:22 (i32.load8_u - ;;@ (lib)/memory.ts:133:31 (block (result i32) (set_local $5 (get_local $1) @@ -2294,19 +1827,13 @@ ) ) ) - ;;@ (lib)/memory.ts:135:2 (if - ;;@ (lib)/memory.ts:135:6 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:135:10 (i32.const 2) ) - ;;@ (lib)/memory.ts:135:13 (block - ;;@ (lib)/memory.ts:136:4 (i32.store8 - ;;@ (lib)/memory.ts:136:14 (block (result i32) (set_local $5 (get_local $0) @@ -2319,9 +1846,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:136:22 (i32.load8_u - ;;@ (lib)/memory.ts:136:31 (block (result i32) (set_local $5 (get_local $1) @@ -2336,9 +1861,7 @@ ) ) ) - ;;@ (lib)/memory.ts:137:4 (i32.store8 - ;;@ (lib)/memory.ts:137:14 (block (result i32) (set_local $5 (get_local $0) @@ -2351,9 +1874,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:137:22 (i32.load8_u - ;;@ (lib)/memory.ts:137:31 (block (result i32) (set_local $5 (get_local $1) @@ -2370,17 +1891,12 @@ ) ) ) - ;;@ (lib)/memory.ts:139:2 (if - ;;@ (lib)/memory.ts:139:6 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:139:10 (i32.const 1) ) - ;;@ (lib)/memory.ts:140:4 (i32.store8 - ;;@ (lib)/memory.ts:140:14 (block (result i32) (set_local $5 (get_local $0) @@ -2393,9 +1909,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:140:22 (i32.load8_u - ;;@ (lib)/memory.ts:140:31 (block (result i32) (set_local $5 (get_local $1) @@ -2414,20 +1928,14 @@ ) (func "$(lib)/memory/move_memory" (; 4 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32) (local $3 i32) - ;;@ (lib)/memory.ts:148:2 (if - ;;@ (lib)/memory.ts:148:6 (i32.eq (get_local $0) - ;;@ (lib)/memory.ts:148:14 (get_local $1) ) - ;;@ (lib)/memory.ts:149:4 (return) ) - ;;@ (lib)/memory.ts:150:2 (if - ;;@ (lib)/memory.ts:150:6 (i32.and (if (result i32) (i32.ne @@ -2435,106 +1943,73 @@ (i32.le_u (i32.add (get_local $1) - ;;@ (lib)/memory.ts:150:12 (get_local $2) ) - ;;@ (lib)/memory.ts:150:17 (get_local $0) ) ) (i32.const 0) ) (get_local $3) - ;;@ (lib)/memory.ts:150:25 (i32.le_u (i32.add (get_local $0) - ;;@ (lib)/memory.ts:150:32 (get_local $2) ) - ;;@ (lib)/memory.ts:150:37 (get_local $1) ) ) (i32.const 1) ) - ;;@ (lib)/memory.ts:150:42 (block - ;;@ (lib)/memory.ts:151:4 (call "$(lib)/memory/copy_memory" - ;;@ (lib)/memory.ts:151:16 (get_local $0) - ;;@ (lib)/memory.ts:151:22 (get_local $1) - ;;@ (lib)/memory.ts:151:27 (get_local $2) ) - ;;@ (lib)/memory.ts:152:4 (return) ) ) - ;;@ (lib)/memory.ts:154:2 (if - ;;@ (lib)/memory.ts:154:6 (i32.lt_u (get_local $0) - ;;@ (lib)/memory.ts:154:13 (get_local $1) ) - ;;@ (lib)/memory.ts:154:18 (block - ;;@ (lib)/memory.ts:155:4 (if - ;;@ (lib)/memory.ts:155:8 (i32.eq (i32.and - ;;@ (lib)/memory.ts:155:9 (get_local $1) - ;;@ (lib)/memory.ts:155:15 (i32.const 7) ) - ;;@ (lib)/memory.ts:155:21 (i32.and - ;;@ (lib)/memory.ts:155:22 (get_local $0) - ;;@ (lib)/memory.ts:155:29 (i32.const 7) ) ) - ;;@ (lib)/memory.ts:155:33 (block (block $break|0 (loop $continue|0 (if - ;;@ (lib)/memory.ts:156:13 (i32.and (get_local $0) - ;;@ (lib)/memory.ts:156:20 (i32.const 7) ) (block (block - ;;@ (lib)/memory.ts:157:8 (if - ;;@ (lib)/memory.ts:157:12 (i32.eqz - ;;@ (lib)/memory.ts:157:13 (get_local $2) ) - ;;@ (lib)/memory.ts:158:10 (return) ) - ;;@ (lib)/memory.ts:159:8 (set_local $2 (i32.sub - ;;@ (lib)/memory.ts:159:10 (get_local $2) (i32.const 1) ) ) - ;;@ (lib)/memory.ts:160:8 (i32.store8 - ;;@ (lib)/memory.ts:160:18 (block (result i32) (set_local $3 (get_local $0) @@ -2547,9 +2022,7 @@ ) (get_local $3) ) - ;;@ (lib)/memory.ts:160:26 (i32.load8_u - ;;@ (lib)/memory.ts:160:35 (block (result i32) (set_local $3 (get_local $1) @@ -2570,49 +2043,36 @@ ) ) ) - ;;@ (lib)/memory.ts:162:6 (block $break|1 (loop $continue|1 (if - ;;@ (lib)/memory.ts:162:13 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:162:18 (i32.const 8) ) (block (block - ;;@ (lib)/memory.ts:163:8 (i64.store - ;;@ (lib)/memory.ts:163:19 (get_local $0) - ;;@ (lib)/memory.ts:163:25 (i64.load - ;;@ (lib)/memory.ts:163:35 (get_local $1) ) ) - ;;@ (lib)/memory.ts:164:8 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:164:16 (i32.const 8) ) ) - ;;@ (lib)/memory.ts:165:8 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:165:16 (i32.const 8) ) ) - ;;@ (lib)/memory.ts:166:8 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:166:16 (i32.const 8) ) ) @@ -2624,17 +2084,13 @@ ) ) ) - ;;@ (lib)/memory.ts:169:4 (block $break|2 (loop $continue|2 (if - ;;@ (lib)/memory.ts:169:11 (get_local $2) (block (block - ;;@ (lib)/memory.ts:170:6 (i32.store8 - ;;@ (lib)/memory.ts:170:16 (block (result i32) (set_local $3 (get_local $0) @@ -2647,9 +2103,7 @@ ) (get_local $3) ) - ;;@ (lib)/memory.ts:170:24 (i32.load8_u - ;;@ (lib)/memory.ts:170:33 (block (result i32) (set_local $3 (get_local $1) @@ -2664,10 +2118,8 @@ ) ) ) - ;;@ (lib)/memory.ts:171:6 (set_local $2 (i32.sub - ;;@ (lib)/memory.ts:171:8 (get_local $2) (i32.const 1) ) @@ -2679,74 +2131,50 @@ ) ) ) - ;;@ (lib)/memory.ts:173:9 (block - ;;@ (lib)/memory.ts:174:4 (if - ;;@ (lib)/memory.ts:174:8 (i32.eq (i32.and - ;;@ (lib)/memory.ts:174:9 (get_local $1) - ;;@ (lib)/memory.ts:174:15 (i32.const 7) ) - ;;@ (lib)/memory.ts:174:21 (i32.and - ;;@ (lib)/memory.ts:174:22 (get_local $0) - ;;@ (lib)/memory.ts:174:29 (i32.const 7) ) ) - ;;@ (lib)/memory.ts:174:33 (block (block $break|3 (loop $continue|3 (if - ;;@ (lib)/memory.ts:175:13 (i32.and (i32.add - ;;@ (lib)/memory.ts:175:14 (get_local $0) - ;;@ (lib)/memory.ts:175:21 (get_local $2) ) - ;;@ (lib)/memory.ts:175:26 (i32.const 7) ) (block (block - ;;@ (lib)/memory.ts:176:8 (if - ;;@ (lib)/memory.ts:176:12 (i32.eqz - ;;@ (lib)/memory.ts:176:13 (get_local $2) ) - ;;@ (lib)/memory.ts:177:10 (return) ) - ;;@ (lib)/memory.ts:178:8 (i32.store8 - ;;@ (lib)/memory.ts:178:18 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:178:25 (tee_local $2 (i32.sub - ;;@ (lib)/memory.ts:178:27 (get_local $2) (i32.const 1) ) ) ) - ;;@ (lib)/memory.ts:178:30 (i32.load8_u - ;;@ (lib)/memory.ts:178:39 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:178:45 (get_local $2) ) ) @@ -2757,40 +2185,29 @@ ) ) ) - ;;@ (lib)/memory.ts:180:6 (block $break|4 (loop $continue|4 (if - ;;@ (lib)/memory.ts:180:13 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:180:18 (i32.const 8) ) (block (block - ;;@ (lib)/memory.ts:181:8 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:181:13 (i32.const 8) ) ) - ;;@ (lib)/memory.ts:182:8 (i64.store - ;;@ (lib)/memory.ts:182:19 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:182:26 (get_local $2) ) - ;;@ (lib)/memory.ts:182:29 (i64.load - ;;@ (lib)/memory.ts:182:39 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:182:45 (get_local $2) ) ) @@ -2803,34 +2220,25 @@ ) ) ) - ;;@ (lib)/memory.ts:185:4 (block $break|5 (loop $continue|5 (if - ;;@ (lib)/memory.ts:185:11 (get_local $2) (block (block - ;;@ (lib)/memory.ts:186:6 (i32.store8 - ;;@ (lib)/memory.ts:186:16 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:186:23 (tee_local $2 (i32.sub - ;;@ (lib)/memory.ts:186:25 (get_local $2) (i32.const 1) ) ) ) - ;;@ (lib)/memory.ts:186:28 (i32.load8_u - ;;@ (lib)/memory.ts:186:37 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:186:43 (get_local $2) ) ) @@ -2848,13 +2256,10 @@ ) (func "$(lib)/array/Array#__grow" (; 6 ;) (type $iiv) (param $0 i32) (param $1 i32) (local $2 i32) - ;;@ (lib)/array.ts:8:4 (if (i32.eqz - ;;@ (lib)/array.ts:8:11 (i32.gt_s (get_local $1) - ;;@ (lib)/array.ts:8:25 (i32.load offset=4 (get_local $0) ) @@ -2870,127 +2275,92 @@ (unreachable) ) ) - ;;@ (lib)/array.ts:9:4 (set_local $2 - ;;@ (lib)/array.ts:9:20 (call "$(lib)/allocator/arena/allocate_memory" - ;;@ (lib)/array.ts:9:36 (i32.mul (get_local $1) - ;;@ (lib)/array.ts:9:57 (i32.const 4) ) ) ) - ;;@ (lib)/array.ts:10:4 (if - ;;@ (lib)/array.ts:10:8 (i32.load (get_local $0) ) - ;;@ (lib)/array.ts:10:23 (block - ;;@ (lib)/array.ts:11:6 (call "$(lib)/memory/move_memory" - ;;@ (lib)/array.ts:11:18 (get_local $2) - ;;@ (lib)/array.ts:11:29 (i32.load (get_local $0) ) - ;;@ (lib)/array.ts:11:44 (i32.mul (i32.load offset=4 (get_local $0) ) - ;;@ (lib)/array.ts:11:62 (i32.const 4) ) ) - ;;@ (lib)/array.ts:12:6 (call "$(lib)/allocator/arena/free_memory" - ;;@ (lib)/array.ts:12:18 (i32.load (get_local $0) ) ) ) ) - ;;@ (lib)/array.ts:14:4 (i32.store (get_local $0) - ;;@ (lib)/array.ts:14:20 (get_local $2) ) - ;;@ (lib)/array.ts:15:4 (i32.store offset=4 (get_local $0) - ;;@ (lib)/array.ts:15:22 (get_local $1) ) ) (func "$(lib)/array/Array#push" (; 7 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32) (local $2 i32) - ;;@ (lib)/array.ts:78:4 (if - ;;@ (lib)/array.ts:78:8 (i32.eq (i32.load offset=8 (get_local $0) ) - ;;@ (lib)/array.ts:78:25 (i32.load offset=4 (get_local $0) ) ) - ;;@ (lib)/array.ts:79:11 (call "$(lib)/array/Array#__grow" - ;;@ (lib)/array.ts:79:6 (get_local $0) - ;;@ (lib)/array.ts:79:18 (if (result i32) (i32.load offset=4 (get_local $0) ) - ;;@ (lib)/array.ts:79:36 (i32.shl (i32.load offset=4 (get_local $0) ) - ;;@ (lib)/array.ts:79:55 (i32.const 1) ) - ;;@ (lib)/array.ts:79:59 (i32.const 1) ) ) ) - ;;@ (lib)/array.ts:80:4 (i32.store - ;;@ (lib)/array.ts:80:13 (i32.add (i32.load (get_local $0) ) - ;;@ (lib)/array.ts:80:29 (i32.mul (i32.load offset=8 (get_local $0) ) - ;;@ (lib)/array.ts:80:45 (i32.const 4) ) ) - ;;@ (lib)/array.ts:80:58 (get_local $1) ) - ;;@ (lib)/array.ts:81:18 (return - ;;@ (lib)/array.ts:81:11 (block (result i32) (set_local $2 (i32.add - ;;@ (lib)/array.ts:81:13 (i32.load offset=8 (get_local $0) ) @@ -3006,32 +2376,23 @@ ) ) (func "$(lib)/array/Array#__get" (; 8 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32) - ;;@ (lib)/array.ts:39:4 (if - ;;@ (lib)/array.ts:39:8 (i32.ge_u (get_local $1) - ;;@ (lib)/array.ts:39:22 (i32.load offset=4 (get_local $0) ) ) - ;;@ (lib)/array.ts:40:6 (unreachable) ) - ;;@ (lib)/array.ts:41:61 (return - ;;@ (lib)/array.ts:41:11 (i32.load - ;;@ (lib)/array.ts:41:19 (i32.add (i32.load (get_local $0) ) - ;;@ (lib)/array.ts:41:35 (i32.mul (get_local $1) - ;;@ (lib)/array.ts:41:50 (i32.const 4) ) ) @@ -3040,34 +2401,25 @@ ) (func "$(lib)/array/Array#pop" (; 9 ;) (type $ii) (param $0 i32) (result i32) (local $1 i32) - ;;@ (lib)/array.ts:85:4 (if - ;;@ (lib)/array.ts:85:8 (i32.lt_s (i32.load offset=8 (get_local $0) ) - ;;@ (lib)/array.ts:85:24 (i32.const 1) ) - ;;@ (lib)/array.ts:86:6 (unreachable) ) - ;;@ (lib)/array.ts:87:64 (return - ;;@ (lib)/array.ts:87:11 (i32.load - ;;@ (lib)/array.ts:87:19 (i32.add (i32.load (get_local $0) ) - ;;@ (lib)/array.ts:87:35 (i32.mul (block (result i32) (set_local $1 (i32.sub - ;;@ (lib)/array.ts:87:37 (i32.load offset=8 (get_local $0) ) @@ -3080,7 +2432,6 @@ ) (get_local $1) ) - ;;@ (lib)/array.ts:87:53 (i32.const 4) ) ) @@ -3092,47 +2443,33 @@ (local $3 i32) (local $4 i32) (local $5 i32) - ;;@ (lib)/array.ts:101:4 (set_local $2 - ;;@ (lib)/array.ts:101:22 (i32.load offset=4 (get_local $0) ) ) - ;;@ (lib)/array.ts:102:4 (if - ;;@ (lib)/array.ts:102:8 (i32.eq (i32.load offset=8 (get_local $0) ) - ;;@ (lib)/array.ts:102:25 (get_local $2) ) - ;;@ (lib)/array.ts:102:38 (block - ;;@ (lib)/array.ts:104:6 (set_local $3 - ;;@ (lib)/array.ts:104:29 (if (result i32) (get_local $2) - ;;@ (lib)/array.ts:104:43 (i32.shl (get_local $2) - ;;@ (lib)/array.ts:104:58 (i32.const 1) ) - ;;@ (lib)/array.ts:104:62 (i32.const 1) ) ) - ;;@ (lib)/array.ts:105:6 (if (i32.eqz - ;;@ (lib)/array.ts:105:13 (i32.gt_s (get_local $3) - ;;@ (lib)/array.ts:105:27 (i32.load offset=4 (get_local $0) ) @@ -3148,105 +2485,74 @@ (unreachable) ) ) - ;;@ (lib)/array.ts:106:6 (set_local $4 - ;;@ (lib)/array.ts:106:22 (call "$(lib)/allocator/arena/allocate_memory" - ;;@ (lib)/array.ts:106:38 (i32.mul (get_local $3) - ;;@ (lib)/array.ts:106:59 (i32.const 4) ) ) ) - ;;@ (lib)/array.ts:107:6 (if - ;;@ (lib)/array.ts:107:10 (i32.load (get_local $0) ) - ;;@ (lib)/array.ts:107:25 (block - ;;@ (lib)/array.ts:108:8 (call "$(lib)/memory/move_memory" - ;;@ (lib)/array.ts:108:20 (i32.add (get_local $4) - ;;@ (lib)/array.ts:108:32 (i32.const 4) ) - ;;@ (lib)/array.ts:108:45 (i32.load (get_local $0) ) - ;;@ (lib)/array.ts:108:60 (i32.mul (get_local $2) - ;;@ (lib)/array.ts:108:74 (i32.const 4) ) ) - ;;@ (lib)/array.ts:109:8 (call "$(lib)/allocator/arena/free_memory" - ;;@ (lib)/array.ts:109:20 (i32.load (get_local $0) ) ) ) ) - ;;@ (lib)/array.ts:111:6 (i32.store (get_local $0) - ;;@ (lib)/array.ts:111:22 (get_local $4) ) - ;;@ (lib)/array.ts:112:6 (i32.store offset=4 (get_local $0) - ;;@ (lib)/array.ts:112:24 (get_local $3) ) ) - ;;@ (lib)/array.ts:114:6 (call "$(lib)/memory/move_memory" - ;;@ (lib)/array.ts:114:18 (i32.add (i32.load (get_local $0) ) - ;;@ (lib)/array.ts:114:34 (i32.const 4) ) - ;;@ (lib)/array.ts:114:47 (i32.load (get_local $0) ) - ;;@ (lib)/array.ts:114:62 (i32.mul (get_local $2) - ;;@ (lib)/array.ts:114:76 (i32.const 4) ) ) ) - ;;@ (lib)/array.ts:115:4 (i32.store - ;;@ (lib)/array.ts:115:13 (i32.load (get_local $0) ) - ;;@ (lib)/array.ts:115:28 (get_local $1) ) - ;;@ (lib)/array.ts:116:18 (return - ;;@ (lib)/array.ts:116:11 (block (result i32) (set_local $5 (i32.add - ;;@ (lib)/array.ts:116:13 (i32.load offset=8 (get_local $0) ) @@ -3265,512 +2571,341 @@ (local $3 i32) (local $4 i32) (local $5 i64) - ;;@ (lib)/memory.ts:196:2 (if - ;;@ (lib)/memory.ts:196:6 (i32.eqz - ;;@ (lib)/memory.ts:196:7 (get_local $2) ) - ;;@ (lib)/memory.ts:197:4 (return) ) - ;;@ (lib)/memory.ts:198:2 (i32.store8 - ;;@ (lib)/memory.ts:198:12 (get_local $0) - ;;@ (lib)/memory.ts:198:18 (get_local $1) ) - ;;@ (lib)/memory.ts:199:2 (i32.store8 - ;;@ (lib)/memory.ts:199:12 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:199:19 (get_local $2) ) - ;;@ (lib)/memory.ts:199:23 (i32.const 1) ) - ;;@ (lib)/memory.ts:199:26 (get_local $1) ) - ;;@ (lib)/memory.ts:200:2 (if - ;;@ (lib)/memory.ts:200:6 (i32.le_u (get_local $2) - ;;@ (lib)/memory.ts:200:11 (i32.const 2) ) - ;;@ (lib)/memory.ts:201:4 (return) ) - ;;@ (lib)/memory.ts:203:2 (i32.store8 - ;;@ (lib)/memory.ts:203:12 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:203:19 (i32.const 1) ) - ;;@ (lib)/memory.ts:203:22 (get_local $1) ) - ;;@ (lib)/memory.ts:204:2 (i32.store8 - ;;@ (lib)/memory.ts:204:12 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:204:19 (i32.const 2) ) - ;;@ (lib)/memory.ts:204:22 (get_local $1) ) - ;;@ (lib)/memory.ts:205:2 (i32.store8 - ;;@ (lib)/memory.ts:205:12 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:205:19 (get_local $2) ) - ;;@ (lib)/memory.ts:205:23 (i32.const 2) ) - ;;@ (lib)/memory.ts:205:26 (get_local $1) ) - ;;@ (lib)/memory.ts:206:2 (i32.store8 - ;;@ (lib)/memory.ts:206:12 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:206:19 (get_local $2) ) - ;;@ (lib)/memory.ts:206:23 (i32.const 3) ) - ;;@ (lib)/memory.ts:206:26 (get_local $1) ) - ;;@ (lib)/memory.ts:207:2 (if - ;;@ (lib)/memory.ts:207:6 (i32.le_u (get_local $2) - ;;@ (lib)/memory.ts:207:11 (i32.const 6) ) - ;;@ (lib)/memory.ts:208:4 (return) ) - ;;@ (lib)/memory.ts:209:2 (i32.store8 - ;;@ (lib)/memory.ts:209:12 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:209:19 (i32.const 3) ) - ;;@ (lib)/memory.ts:209:22 (get_local $1) ) - ;;@ (lib)/memory.ts:210:2 (i32.store8 - ;;@ (lib)/memory.ts:210:12 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:210:19 (get_local $2) ) - ;;@ (lib)/memory.ts:210:23 (i32.const 4) ) - ;;@ (lib)/memory.ts:210:26 (get_local $1) ) - ;;@ (lib)/memory.ts:211:2 (if - ;;@ (lib)/memory.ts:211:6 (i32.le_u (get_local $2) - ;;@ (lib)/memory.ts:211:11 (i32.const 8) ) - ;;@ (lib)/memory.ts:212:4 (return) ) - ;;@ (lib)/memory.ts:215:2 (set_local $3 - ;;@ (lib)/memory.ts:215:17 (i32.and (i32.sub (i32.const 0) - ;;@ (lib)/memory.ts:215:18 (get_local $0) ) - ;;@ (lib)/memory.ts:215:25 (i32.const 3) ) ) - ;;@ (lib)/memory.ts:216:2 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:216:10 (get_local $3) ) ) - ;;@ (lib)/memory.ts:217:2 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:217:7 (get_local $3) ) ) - ;;@ (lib)/memory.ts:218:2 (set_local $2 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:218:7 (i32.const -4) ) ) - ;;@ (lib)/memory.ts:220:2 (set_local $4 - ;;@ (lib)/memory.ts:220:17 (i32.mul (i32.div_u (i32.const -1) - ;;@ (lib)/memory.ts:220:27 (i32.const 255) ) - ;;@ (lib)/memory.ts:220:33 (get_local $1) ) ) - ;;@ (lib)/memory.ts:223:2 (i32.store - ;;@ (lib)/memory.ts:223:13 (get_local $0) - ;;@ (lib)/memory.ts:223:19 (get_local $4) ) - ;;@ (lib)/memory.ts:224:2 (i32.store - ;;@ (lib)/memory.ts:224:13 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:224:20 (get_local $2) ) - ;;@ (lib)/memory.ts:224:24 (i32.const 4) ) - ;;@ (lib)/memory.ts:224:27 (get_local $4) ) - ;;@ (lib)/memory.ts:225:2 (if - ;;@ (lib)/memory.ts:225:6 (i32.le_u (get_local $2) - ;;@ (lib)/memory.ts:225:11 (i32.const 8) ) - ;;@ (lib)/memory.ts:226:4 (return) ) - ;;@ (lib)/memory.ts:227:2 (i32.store - ;;@ (lib)/memory.ts:227:13 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:227:20 (i32.const 4) ) - ;;@ (lib)/memory.ts:227:23 (get_local $4) ) - ;;@ (lib)/memory.ts:228:2 (i32.store - ;;@ (lib)/memory.ts:228:13 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:228:20 (i32.const 8) ) - ;;@ (lib)/memory.ts:228:23 (get_local $4) ) - ;;@ (lib)/memory.ts:229:2 (i32.store - ;;@ (lib)/memory.ts:229:13 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:229:20 (get_local $2) ) - ;;@ (lib)/memory.ts:229:24 (i32.const 12) ) - ;;@ (lib)/memory.ts:229:28 (get_local $4) ) - ;;@ (lib)/memory.ts:230:2 (i32.store - ;;@ (lib)/memory.ts:230:13 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:230:20 (get_local $2) ) - ;;@ (lib)/memory.ts:230:24 (i32.const 8) ) - ;;@ (lib)/memory.ts:230:27 (get_local $4) ) - ;;@ (lib)/memory.ts:231:2 (if - ;;@ (lib)/memory.ts:231:6 (i32.le_u (get_local $2) - ;;@ (lib)/memory.ts:231:11 (i32.const 24) ) - ;;@ (lib)/memory.ts:232:4 (return) ) - ;;@ (lib)/memory.ts:233:2 (i32.store - ;;@ (lib)/memory.ts:233:13 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:233:20 (i32.const 12) ) - ;;@ (lib)/memory.ts:233:24 (get_local $4) ) - ;;@ (lib)/memory.ts:234:2 (i32.store - ;;@ (lib)/memory.ts:234:13 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:234:20 (i32.const 16) ) - ;;@ (lib)/memory.ts:234:24 (get_local $4) ) - ;;@ (lib)/memory.ts:235:2 (i32.store - ;;@ (lib)/memory.ts:235:13 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:235:20 (i32.const 20) ) - ;;@ (lib)/memory.ts:235:24 (get_local $4) ) - ;;@ (lib)/memory.ts:236:2 (i32.store - ;;@ (lib)/memory.ts:236:13 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:236:20 (i32.const 24) ) - ;;@ (lib)/memory.ts:236:24 (get_local $4) ) - ;;@ (lib)/memory.ts:237:2 (i32.store - ;;@ (lib)/memory.ts:237:13 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:237:20 (get_local $2) ) - ;;@ (lib)/memory.ts:237:24 (i32.const 28) ) - ;;@ (lib)/memory.ts:237:28 (get_local $4) ) - ;;@ (lib)/memory.ts:238:2 (i32.store - ;;@ (lib)/memory.ts:238:13 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:238:20 (get_local $2) ) - ;;@ (lib)/memory.ts:238:24 (i32.const 24) ) - ;;@ (lib)/memory.ts:238:28 (get_local $4) ) - ;;@ (lib)/memory.ts:239:2 (i32.store - ;;@ (lib)/memory.ts:239:13 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:239:20 (get_local $2) ) - ;;@ (lib)/memory.ts:239:24 (i32.const 20) ) - ;;@ (lib)/memory.ts:239:28 (get_local $4) ) - ;;@ (lib)/memory.ts:240:2 (i32.store - ;;@ (lib)/memory.ts:240:13 (i32.sub (i32.add (get_local $0) - ;;@ (lib)/memory.ts:240:20 (get_local $2) ) - ;;@ (lib)/memory.ts:240:24 (i32.const 16) ) - ;;@ (lib)/memory.ts:240:28 (get_local $4) ) - ;;@ (lib)/memory.ts:243:2 (set_local $3 - ;;@ (lib)/memory.ts:243:6 (i32.add (i32.const 24) - ;;@ (lib)/memory.ts:243:11 (i32.and - ;;@ (lib)/memory.ts:243:12 (get_local $0) - ;;@ (lib)/memory.ts:243:19 (i32.const 4) ) ) ) - ;;@ (lib)/memory.ts:244:2 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:244:10 (get_local $3) ) ) - ;;@ (lib)/memory.ts:245:2 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:245:7 (get_local $3) ) ) - ;;@ (lib)/memory.ts:248:2 (set_local $5 - ;;@ (lib)/memory.ts:248:17 (i64.or (i64.extend_u/i32 (get_local $4) ) - ;;@ (lib)/memory.ts:248:28 (i64.shl - ;;@ (lib)/memory.ts:248:29 (i64.extend_u/i32 (get_local $4) ) - ;;@ (lib)/memory.ts:248:41 (i64.const 32) ) ) ) - ;;@ (lib)/memory.ts:249:2 (block $break|0 (loop $continue|0 (if - ;;@ (lib)/memory.ts:249:9 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:249:14 (i32.const 32) ) (block (block - ;;@ (lib)/memory.ts:250:4 (i64.store - ;;@ (lib)/memory.ts:250:15 (get_local $0) - ;;@ (lib)/memory.ts:250:21 (get_local $5) ) - ;;@ (lib)/memory.ts:251:4 (i64.store - ;;@ (lib)/memory.ts:251:15 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:251:22 (i32.const 8) ) - ;;@ (lib)/memory.ts:251:25 (get_local $5) ) - ;;@ (lib)/memory.ts:252:4 (i64.store - ;;@ (lib)/memory.ts:252:15 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:252:22 (i32.const 16) ) - ;;@ (lib)/memory.ts:252:26 (get_local $5) ) - ;;@ (lib)/memory.ts:253:4 (i64.store - ;;@ (lib)/memory.ts:253:15 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:253:22 (i32.const 24) ) - ;;@ (lib)/memory.ts:253:26 (get_local $5) ) - ;;@ (lib)/memory.ts:254:4 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:254:9 (i32.const 32) ) ) - ;;@ (lib)/memory.ts:255:4 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:255:12 (i32.const 32) ) ) @@ -3783,86 +2918,61 @@ ) (func "$(lib)/array/Array#shift" (; 12 ;) (type $ii) (param $0 i32) (result i32) (local $1 i32) - ;;@ (lib)/array.ts:91:4 (if - ;;@ (lib)/array.ts:91:8 (i32.lt_s (i32.load offset=8 (get_local $0) ) - ;;@ (lib)/array.ts:91:24 (i32.const 1) ) - ;;@ (lib)/array.ts:92:6 (unreachable) ) - ;;@ (lib)/array.ts:93:4 (set_local $1 - ;;@ (lib)/array.ts:93:18 (i32.load - ;;@ (lib)/array.ts:93:26 (i32.load (get_local $0) ) ) ) - ;;@ (lib)/array.ts:94:4 (call "$(lib)/memory/move_memory" - ;;@ (lib)/array.ts:94:16 (i32.load (get_local $0) ) - ;;@ (lib)/array.ts:94:31 (i32.add (i32.load (get_local $0) ) - ;;@ (lib)/array.ts:94:47 (i32.const 4) ) - ;;@ (lib)/array.ts:94:60 (i32.mul (i32.sub - ;;@ (lib)/array.ts:94:61 (i32.load offset=4 (get_local $0) ) - ;;@ (lib)/array.ts:94:79 (i32.const 1) ) - ;;@ (lib)/array.ts:94:84 (i32.const 4) ) ) - ;;@ (lib)/array.ts:95:4 (call "$(lib)/memory/set_memory" - ;;@ (lib)/array.ts:95:15 (i32.add (i32.load (get_local $0) ) - ;;@ (lib)/array.ts:95:31 (i32.mul (i32.sub - ;;@ (lib)/array.ts:95:32 (i32.load offset=4 (get_local $0) ) - ;;@ (lib)/array.ts:95:50 (i32.const 1) ) - ;;@ (lib)/array.ts:95:55 (i32.const 4) ) ) - ;;@ (lib)/array.ts:95:68 (i32.const 0) - ;;@ (lib)/array.ts:95:71 (i32.const 4) ) - ;;@ (lib)/array.ts:96:4 (i32.store offset=8 - ;;@ (lib)/array.ts:96:6 (get_local $0) (i32.sub (i32.load offset=8 @@ -3871,7 +2981,6 @@ (i32.const 1) ) ) - ;;@ (lib)/array.ts:97:11 (return (get_local $1) ) @@ -3880,114 +2989,85 @@ (local $1 i32) (local $2 i32) (local $3 i32) - ;;@ (lib)/array.ts:157:4 (block $break|0 (block (set_local $1 - ;;@ (lib)/array.ts:157:28 (i32.const 0) ) (set_local $2 - ;;@ (lib)/array.ts:157:45 (i32.sub (i32.load offset=8 - ;;@ (lib)/array.ts:157:52 (get_local $0) ) - ;;@ (lib)/array.ts:157:68 (i32.const 1) ) ) ) (loop $continue|0 (if - ;;@ (lib)/array.ts:157:71 (i32.lt_u (get_local $1) - ;;@ (lib)/array.ts:157:79 (get_local $2) ) (block (block - ;;@ (lib)/array.ts:158:6 (set_local $3 - ;;@ (lib)/array.ts:158:17 (i32.load - ;;@ (lib)/array.ts:158:25 (i32.add (i32.load (get_local $0) ) - ;;@ (lib)/array.ts:158:41 (i32.mul (get_local $1) - ;;@ (lib)/array.ts:158:49 (i32.const 4) ) ) ) ) - ;;@ (lib)/array.ts:159:6 (i32.store - ;;@ (lib)/array.ts:159:15 (i32.add (i32.load (get_local $0) ) - ;;@ (lib)/array.ts:159:31 (i32.mul (get_local $1) - ;;@ (lib)/array.ts:159:39 (i32.const 4) ) ) - ;;@ (lib)/array.ts:159:52 (i32.load - ;;@ (lib)/array.ts:159:60 (i32.add (i32.load (get_local $0) ) - ;;@ (lib)/array.ts:159:76 (i32.mul (get_local $2) - ;;@ (lib)/array.ts:159:83 (i32.const 4) ) ) ) ) - ;;@ (lib)/array.ts:160:6 (i32.store - ;;@ (lib)/array.ts:160:15 (i32.add (i32.load (get_local $0) ) - ;;@ (lib)/array.ts:160:31 (i32.mul (get_local $2) - ;;@ (lib)/array.ts:160:38 (i32.const 4) ) ) - ;;@ (lib)/array.ts:160:51 (get_local $3) ) ) - ;;@ (lib)/array.ts:157:85 (block (set_local $1 (i32.add - ;;@ (lib)/array.ts:157:87 (get_local $1) (i32.const 1) ) ) - ;;@ (lib)/array.ts:157:94 (set_local $2 (i32.sub - ;;@ (lib)/array.ts:157:96 (get_local $2) (i32.const 1) ) @@ -3998,76 +3078,57 @@ ) ) ) - ;;@ (lib)/array.ts:162:11 (return (get_local $0) ) ) (func "$(lib)/array/Array#indexOf" (; 14 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32) - ;;@ (lib)/array.ts:54:4 (if - ;;@ (lib)/array.ts:54:8 (i32.lt_s (get_local $2) - ;;@ (lib)/array.ts:54:20 (i32.const 0) ) - ;;@ (lib)/array.ts:55:6 (set_local $2 - ;;@ (lib)/array.ts:55:18 (i32.add (i32.load offset=8 (get_local $0) ) - ;;@ (lib)/array.ts:55:34 (get_local $2) ) ) ) - ;;@ (lib)/array.ts:56:4 (block $break|0 (loop $continue|0 (if - ;;@ (lib)/array.ts:56:11 (i32.lt_u (get_local $2) - ;;@ (lib)/array.ts:56:28 (i32.load offset=8 (get_local $0) ) ) (block (block - ;;@ (lib)/array.ts:57:6 (if - ;;@ (lib)/array.ts:57:10 (i32.eq (i32.load - ;;@ (lib)/array.ts:57:18 (i32.add (i32.load (get_local $0) ) - ;;@ (lib)/array.ts:57:34 (i32.mul (get_local $2) - ;;@ (lib)/array.ts:57:46 (i32.const 4) ) ) ) - ;;@ (lib)/array.ts:57:62 (get_local $1) ) - ;;@ (lib)/array.ts:58:15 (return (get_local $2) ) ) - ;;@ (lib)/array.ts:59:6 (set_local $2 (i32.add - ;;@ (lib)/array.ts:59:8 (get_local $2) (i32.const 1) ) @@ -4078,104 +3139,73 @@ ) ) ) - ;;@ (lib)/array.ts:61:12 (return - ;;@ (lib)/array.ts:61:11 (i32.const -1) ) ) (func "$(lib)/array/Array#splice" (; 15 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32) (local $3 i32) (local $4 i32) - ;;@ (lib)/array.ts:141:4 (if - ;;@ (lib)/array.ts:141:8 (i32.lt_s (get_local $2) - ;;@ (lib)/array.ts:141:22 (i32.const 1) ) - ;;@ (lib)/array.ts:142:6 (return) ) - ;;@ (lib)/array.ts:143:4 (if - ;;@ (lib)/array.ts:143:8 (i32.lt_s (get_local $1) - ;;@ (lib)/array.ts:143:16 (i32.const 0) ) - ;;@ (lib)/array.ts:143:19 (block - ;;@ (lib)/array.ts:144:6 (set_local $1 - ;;@ (lib)/array.ts:144:14 (i32.add (i32.load offset=8 (get_local $0) ) - ;;@ (lib)/array.ts:144:30 (get_local $1) ) ) - ;;@ (lib)/array.ts:145:6 (if - ;;@ (lib)/array.ts:145:10 (i32.lt_s (get_local $1) - ;;@ (lib)/array.ts:145:18 (i32.const 0) ) - ;;@ (lib)/array.ts:146:8 (set_local $1 - ;;@ (lib)/array.ts:146:16 (i32.const 0) ) - ;;@ (lib)/array.ts:147:11 (if - ;;@ (lib)/array.ts:147:15 (i32.ge_s (get_local $1) - ;;@ (lib)/array.ts:147:24 (i32.load offset=8 (get_local $0) ) ) - ;;@ (lib)/array.ts:148:8 (return) ) ) ) - ;;@ (lib)/array.ts:149:11 (if - ;;@ (lib)/array.ts:149:15 (i32.ge_s (get_local $1) - ;;@ (lib)/array.ts:149:24 (i32.load offset=8 (get_local $0) ) ) - ;;@ (lib)/array.ts:150:6 (return) ) ) - ;;@ (lib)/array.ts:151:4 (set_local $2 - ;;@ (lib)/array.ts:151:18 (select (tee_local $3 - ;;@ (lib)/array.ts:151:22 (get_local $2) ) (tee_local $4 - ;;@ (lib)/array.ts:151:35 (i32.sub (i32.load offset=8 (get_local $0) ) - ;;@ (lib)/array.ts:151:51 (get_local $1) ) ) @@ -4185,85 +3215,64 @@ ) ) ) - ;;@ (lib)/array.ts:152:4 (call "$(lib)/memory/move_memory" - ;;@ (lib)/array.ts:152:16 (i32.add (i32.load (get_local $0) ) - ;;@ (lib)/array.ts:152:32 (i32.mul (get_local $1) - ;;@ (lib)/array.ts:152:47 (i32.const 4) ) ) - ;;@ (lib)/array.ts:152:60 (i32.add (i32.load (get_local $0) ) - ;;@ (lib)/array.ts:152:76 (i32.mul (i32.add - ;;@ (lib)/array.ts:152:84 (get_local $1) - ;;@ (lib)/array.ts:152:92 (get_local $2) ) - ;;@ (lib)/array.ts:152:107 (i32.const 4) ) ) - ;;@ (lib)/array.ts:152:120 (i32.mul (get_local $2) - ;;@ (lib)/array.ts:152:134 (i32.const 4) ) ) - ;;@ (lib)/array.ts:153:4 (i32.store offset=8 (get_local $0) (i32.sub (i32.load offset=8 (get_local $0) ) - ;;@ (lib)/array.ts:153:21 (get_local $2) ) ) ) (func $start (; 16 ;) (type $v) (set_global "$(lib)/allocator/arena/HEAP_OFFSET" - ;;@ (lib)/allocator/arena.ts:11:25 (get_global $HEAP_BASE) ) (set_global $std/array/arr - ;;@ std/array.ts:3:10 (call "$(lib)/allocator/arena/allocate_memory" - ;;@ std/array.ts:3:44 (i32.add (i32.const 4) - ;;@ std/array.ts:3:62 (i32.mul (i32.const 2) - ;;@ std/array.ts:3:66 (i32.const 4) ) ) ) ) - ;;@ std/array.ts:5:0 (if (i32.eqz - ;;@ std/array.ts:5:7 (i32.eq (call "$(lib)/array/Array#get:length" (get_global $std/array/arr) ) - ;;@ std/array.ts:5:21 (i32.const 0) ) ) @@ -4277,15 +3286,12 @@ (unreachable) ) ) - ;;@ std/array.ts:6:0 (if (i32.eqz - ;;@ std/array.ts:6:7 (i32.eq (i32.load offset=4 (get_global $std/array/arr) ) - ;;@ std/array.ts:6:25 (i32.const 0) ) ) @@ -4299,26 +3305,19 @@ (unreachable) ) ) - ;;@ std/array.ts:8:4 (drop (call "$(lib)/array/Array#push" - ;;@ std/array.ts:8:0 (get_global $std/array/arr) - ;;@ std/array.ts:8:9 (i32.const 42) ) ) - ;;@ std/array.ts:10:0 (if (i32.eqz - ;;@ std/array.ts:10:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:10:11 (i32.const 0) ) - ;;@ std/array.ts:10:17 (i32.const 42) ) ) @@ -4332,15 +3331,12 @@ (unreachable) ) ) - ;;@ std/array.ts:11:0 (if (i32.eqz - ;;@ std/array.ts:11:7 (i32.eq (call "$(lib)/array/Array#get:length" (get_global $std/array/arr) ) - ;;@ std/array.ts:11:21 (i32.const 1) ) ) @@ -4354,15 +3350,12 @@ (unreachable) ) ) - ;;@ std/array.ts:12:0 (if (i32.eqz - ;;@ std/array.ts:12:7 (i32.eq (i32.load offset=4 (get_global $std/array/arr) ) - ;;@ std/array.ts:12:25 (i32.const 1) ) ) @@ -4377,19 +3370,14 @@ ) ) (set_global $std/array/i - ;;@ std/array.ts:14:12 (call "$(lib)/array/Array#pop" - ;;@ std/array.ts:14:8 (get_global $std/array/arr) ) ) - ;;@ std/array.ts:16:0 (if (i32.eqz - ;;@ std/array.ts:16:7 (i32.eq (get_global $std/array/i) - ;;@ std/array.ts:16:12 (i32.const 42) ) ) @@ -4403,15 +3391,12 @@ (unreachable) ) ) - ;;@ std/array.ts:17:0 (if (i32.eqz - ;;@ std/array.ts:17:7 (i32.eq (call "$(lib)/array/Array#get:length" (get_global $std/array/arr) ) - ;;@ std/array.ts:17:21 (i32.const 0) ) ) @@ -4425,15 +3410,12 @@ (unreachable) ) ) - ;;@ std/array.ts:18:0 (if (i32.eqz - ;;@ std/array.ts:18:7 (i32.eq (i32.load offset=4 (get_global $std/array/arr) ) - ;;@ std/array.ts:18:25 (i32.const 1) ) ) @@ -4447,24 +3429,18 @@ (unreachable) ) ) - ;;@ std/array.ts:20:4 (drop (call "$(lib)/array/Array#push" - ;;@ std/array.ts:20:0 (get_global $std/array/arr) - ;;@ std/array.ts:20:9 (i32.const 43) ) ) - ;;@ std/array.ts:22:0 (if (i32.eqz - ;;@ std/array.ts:22:7 (i32.eq (call "$(lib)/array/Array#get:length" (get_global $std/array/arr) ) - ;;@ std/array.ts:22:21 (i32.const 1) ) ) @@ -4478,15 +3454,12 @@ (unreachable) ) ) - ;;@ std/array.ts:23:0 (if (i32.eqz - ;;@ std/array.ts:23:7 (i32.eq (i32.load offset=4 (get_global $std/array/arr) ) - ;;@ std/array.ts:23:25 (i32.const 1) ) ) @@ -4500,17 +3473,13 @@ (unreachable) ) ) - ;;@ std/array.ts:24:0 (if (i32.eqz - ;;@ std/array.ts:24:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:24:11 (i32.const 0) ) - ;;@ std/array.ts:24:17 (i32.const 43) ) ) @@ -4524,24 +3493,18 @@ (unreachable) ) ) - ;;@ std/array.ts:26:4 (drop (call "$(lib)/array/Array#push" - ;;@ std/array.ts:26:0 (get_global $std/array/arr) - ;;@ std/array.ts:26:9 (i32.const 44) ) ) - ;;@ std/array.ts:28:0 (if (i32.eqz - ;;@ std/array.ts:28:7 (i32.eq (call "$(lib)/array/Array#get:length" (get_global $std/array/arr) ) - ;;@ std/array.ts:28:21 (i32.const 2) ) ) @@ -4555,15 +3518,12 @@ (unreachable) ) ) - ;;@ std/array.ts:29:0 (if (i32.eqz - ;;@ std/array.ts:29:7 (i32.eq (i32.load offset=4 (get_global $std/array/arr) ) - ;;@ std/array.ts:29:25 (i32.const 2) ) ) @@ -4577,17 +3537,13 @@ (unreachable) ) ) - ;;@ std/array.ts:30:0 (if (i32.eqz - ;;@ std/array.ts:30:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:30:11 (i32.const 0) ) - ;;@ std/array.ts:30:17 (i32.const 43) ) ) @@ -4601,17 +3557,13 @@ (unreachable) ) ) - ;;@ std/array.ts:31:0 (if (i32.eqz - ;;@ std/array.ts:31:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:31:11 (i32.const 1) ) - ;;@ std/array.ts:31:17 (i32.const 44) ) ) @@ -4625,24 +3577,18 @@ (unreachable) ) ) - ;;@ std/array.ts:33:4 (drop (call "$(lib)/array/Array#push" - ;;@ std/array.ts:33:0 (get_global $std/array/arr) - ;;@ std/array.ts:33:9 (i32.const 45) ) ) - ;;@ std/array.ts:35:0 (if (i32.eqz - ;;@ std/array.ts:35:7 (i32.eq (call "$(lib)/array/Array#get:length" (get_global $std/array/arr) ) - ;;@ std/array.ts:35:21 (i32.const 3) ) ) @@ -4656,15 +3602,12 @@ (unreachable) ) ) - ;;@ std/array.ts:36:0 (if (i32.eqz - ;;@ std/array.ts:36:7 (i32.eq (i32.load offset=4 (get_global $std/array/arr) ) - ;;@ std/array.ts:36:25 (i32.const 4) ) ) @@ -4678,17 +3621,13 @@ (unreachable) ) ) - ;;@ std/array.ts:37:0 (if (i32.eqz - ;;@ std/array.ts:37:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:37:11 (i32.const 0) ) - ;;@ std/array.ts:37:17 (i32.const 43) ) ) @@ -4702,17 +3641,13 @@ (unreachable) ) ) - ;;@ std/array.ts:38:0 (if (i32.eqz - ;;@ std/array.ts:38:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:38:11 (i32.const 1) ) - ;;@ std/array.ts:38:17 (i32.const 44) ) ) @@ -4726,17 +3661,13 @@ (unreachable) ) ) - ;;@ std/array.ts:39:0 (if (i32.eqz - ;;@ std/array.ts:39:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:39:11 (i32.const 2) ) - ;;@ std/array.ts:39:17 (i32.const 45) ) ) @@ -4750,24 +3681,18 @@ (unreachable) ) ) - ;;@ std/array.ts:41:4 (drop (call "$(lib)/array/Array#unshift" - ;;@ std/array.ts:41:0 (get_global $std/array/arr) - ;;@ std/array.ts:41:12 (i32.const 42) ) ) - ;;@ std/array.ts:43:0 (if (i32.eqz - ;;@ std/array.ts:43:7 (i32.eq (call "$(lib)/array/Array#get:length" (get_global $std/array/arr) ) - ;;@ std/array.ts:43:21 (i32.const 4) ) ) @@ -4781,15 +3706,12 @@ (unreachable) ) ) - ;;@ std/array.ts:44:0 (if (i32.eqz - ;;@ std/array.ts:44:7 (i32.eq (i32.load offset=4 (get_global $std/array/arr) ) - ;;@ std/array.ts:44:25 (i32.const 4) ) ) @@ -4803,17 +3725,13 @@ (unreachable) ) ) - ;;@ std/array.ts:45:0 (if (i32.eqz - ;;@ std/array.ts:45:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:45:11 (i32.const 0) ) - ;;@ std/array.ts:45:17 (i32.const 42) ) ) @@ -4827,17 +3745,13 @@ (unreachable) ) ) - ;;@ std/array.ts:46:0 (if (i32.eqz - ;;@ std/array.ts:46:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:46:11 (i32.const 1) ) - ;;@ std/array.ts:46:17 (i32.const 43) ) ) @@ -4851,17 +3765,13 @@ (unreachable) ) ) - ;;@ std/array.ts:47:0 (if (i32.eqz - ;;@ std/array.ts:47:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:47:11 (i32.const 2) ) - ;;@ std/array.ts:47:17 (i32.const 44) ) ) @@ -4875,17 +3785,13 @@ (unreachable) ) ) - ;;@ std/array.ts:48:0 (if (i32.eqz - ;;@ std/array.ts:48:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:48:11 (i32.const 3) ) - ;;@ std/array.ts:48:17 (i32.const 45) ) ) @@ -4899,24 +3805,18 @@ (unreachable) ) ) - ;;@ std/array.ts:50:4 (drop (call "$(lib)/array/Array#unshift" - ;;@ std/array.ts:50:0 (get_global $std/array/arr) - ;;@ std/array.ts:50:12 (i32.const 41) ) ) - ;;@ std/array.ts:52:0 (if (i32.eqz - ;;@ std/array.ts:52:7 (i32.eq (call "$(lib)/array/Array#get:length" (get_global $std/array/arr) ) - ;;@ std/array.ts:52:21 (i32.const 5) ) ) @@ -4930,15 +3830,12 @@ (unreachable) ) ) - ;;@ std/array.ts:53:0 (if (i32.eqz - ;;@ std/array.ts:53:7 (i32.eq (i32.load offset=4 (get_global $std/array/arr) ) - ;;@ std/array.ts:53:25 (i32.const 8) ) ) @@ -4952,17 +3849,13 @@ (unreachable) ) ) - ;;@ std/array.ts:54:0 (if (i32.eqz - ;;@ std/array.ts:54:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:54:11 (i32.const 0) ) - ;;@ std/array.ts:54:17 (i32.const 41) ) ) @@ -4976,17 +3869,13 @@ (unreachable) ) ) - ;;@ std/array.ts:55:0 (if (i32.eqz - ;;@ std/array.ts:55:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:55:11 (i32.const 1) ) - ;;@ std/array.ts:55:17 (i32.const 42) ) ) @@ -5000,17 +3889,13 @@ (unreachable) ) ) - ;;@ std/array.ts:56:0 (if (i32.eqz - ;;@ std/array.ts:56:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:56:11 (i32.const 2) ) - ;;@ std/array.ts:56:17 (i32.const 43) ) ) @@ -5024,17 +3909,13 @@ (unreachable) ) ) - ;;@ std/array.ts:57:0 (if (i32.eqz - ;;@ std/array.ts:57:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:57:11 (i32.const 3) ) - ;;@ std/array.ts:57:17 (i32.const 44) ) ) @@ -5048,17 +3929,13 @@ (unreachable) ) ) - ;;@ std/array.ts:58:0 (if (i32.eqz - ;;@ std/array.ts:58:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:58:11 (i32.const 4) ) - ;;@ std/array.ts:58:17 (i32.const 45) ) ) @@ -5072,21 +3949,15 @@ (unreachable) ) ) - ;;@ std/array.ts:60:0 (set_global $std/array/i - ;;@ std/array.ts:60:8 (call "$(lib)/array/Array#shift" - ;;@ std/array.ts:60:4 (get_global $std/array/arr) ) ) - ;;@ std/array.ts:62:0 (if (i32.eqz - ;;@ std/array.ts:62:7 (i32.eq (get_global $std/array/i) - ;;@ std/array.ts:62:12 (i32.const 41) ) ) @@ -5100,15 +3971,12 @@ (unreachable) ) ) - ;;@ std/array.ts:63:0 (if (i32.eqz - ;;@ std/array.ts:63:7 (i32.eq (call "$(lib)/array/Array#get:length" (get_global $std/array/arr) ) - ;;@ std/array.ts:63:21 (i32.const 4) ) ) @@ -5122,15 +3990,12 @@ (unreachable) ) ) - ;;@ std/array.ts:64:0 (if (i32.eqz - ;;@ std/array.ts:64:7 (i32.eq (i32.load offset=4 (get_global $std/array/arr) ) - ;;@ std/array.ts:64:25 (i32.const 8) ) ) @@ -5144,17 +4009,13 @@ (unreachable) ) ) - ;;@ std/array.ts:65:0 (if (i32.eqz - ;;@ std/array.ts:65:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:65:11 (i32.const 0) ) - ;;@ std/array.ts:65:17 (i32.const 42) ) ) @@ -5168,17 +4029,13 @@ (unreachable) ) ) - ;;@ std/array.ts:66:0 (if (i32.eqz - ;;@ std/array.ts:66:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:66:11 (i32.const 1) ) - ;;@ std/array.ts:66:17 (i32.const 43) ) ) @@ -5192,17 +4049,13 @@ (unreachable) ) ) - ;;@ std/array.ts:67:0 (if (i32.eqz - ;;@ std/array.ts:67:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:67:11 (i32.const 2) ) - ;;@ std/array.ts:67:17 (i32.const 44) ) ) @@ -5216,17 +4069,13 @@ (unreachable) ) ) - ;;@ std/array.ts:68:0 (if (i32.eqz - ;;@ std/array.ts:68:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:68:11 (i32.const 3) ) - ;;@ std/array.ts:68:17 (i32.const 45) ) ) @@ -5240,21 +4089,15 @@ (unreachable) ) ) - ;;@ std/array.ts:70:0 (set_global $std/array/i - ;;@ std/array.ts:70:8 (call "$(lib)/array/Array#pop" - ;;@ std/array.ts:70:4 (get_global $std/array/arr) ) ) - ;;@ std/array.ts:72:0 (if (i32.eqz - ;;@ std/array.ts:72:7 (i32.eq (get_global $std/array/i) - ;;@ std/array.ts:72:12 (i32.const 45) ) ) @@ -5268,15 +4111,12 @@ (unreachable) ) ) - ;;@ std/array.ts:73:0 (if (i32.eqz - ;;@ std/array.ts:73:7 (i32.eq (call "$(lib)/array/Array#get:length" (get_global $std/array/arr) ) - ;;@ std/array.ts:73:21 (i32.const 3) ) ) @@ -5290,15 +4130,12 @@ (unreachable) ) ) - ;;@ std/array.ts:74:0 (if (i32.eqz - ;;@ std/array.ts:74:7 (i32.eq (i32.load offset=4 (get_global $std/array/arr) ) - ;;@ std/array.ts:74:25 (i32.const 8) ) ) @@ -5312,17 +4149,13 @@ (unreachable) ) ) - ;;@ std/array.ts:75:0 (if (i32.eqz - ;;@ std/array.ts:75:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:75:11 (i32.const 0) ) - ;;@ std/array.ts:75:17 (i32.const 42) ) ) @@ -5336,17 +4169,13 @@ (unreachable) ) ) - ;;@ std/array.ts:76:0 (if (i32.eqz - ;;@ std/array.ts:76:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:76:11 (i32.const 1) ) - ;;@ std/array.ts:76:17 (i32.const 43) ) ) @@ -5360,17 +4189,13 @@ (unreachable) ) ) - ;;@ std/array.ts:77:0 (if (i32.eqz - ;;@ std/array.ts:77:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:77:11 (i32.const 2) ) - ;;@ std/array.ts:77:17 (i32.const 44) ) ) @@ -5384,22 +4209,17 @@ (unreachable) ) ) - ;;@ std/array.ts:79:4 (drop (call "$(lib)/array/Array#reverse" - ;;@ std/array.ts:79:0 (get_global $std/array/arr) ) ) - ;;@ std/array.ts:81:0 (if (i32.eqz - ;;@ std/array.ts:81:7 (i32.eq (call "$(lib)/array/Array#get:length" (get_global $std/array/arr) ) - ;;@ std/array.ts:81:21 (i32.const 3) ) ) @@ -5413,15 +4233,12 @@ (unreachable) ) ) - ;;@ std/array.ts:82:0 (if (i32.eqz - ;;@ std/array.ts:82:7 (i32.eq (i32.load offset=4 (get_global $std/array/arr) ) - ;;@ std/array.ts:82:25 (i32.const 8) ) ) @@ -5435,17 +4252,13 @@ (unreachable) ) ) - ;;@ std/array.ts:83:0 (if (i32.eqz - ;;@ std/array.ts:83:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:83:11 (i32.const 0) ) - ;;@ std/array.ts:83:17 (i32.const 44) ) ) @@ -5459,17 +4272,13 @@ (unreachable) ) ) - ;;@ std/array.ts:84:0 (if (i32.eqz - ;;@ std/array.ts:84:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:84:11 (i32.const 1) ) - ;;@ std/array.ts:84:17 (i32.const 43) ) ) @@ -5483,17 +4292,13 @@ (unreachable) ) ) - ;;@ std/array.ts:85:0 (if (i32.eqz - ;;@ std/array.ts:85:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:85:11 (i32.const 2) ) - ;;@ std/array.ts:85:17 (i32.const 42) ) ) @@ -5507,24 +4312,17 @@ (unreachable) ) ) - ;;@ std/array.ts:87:0 (set_global $std/array/i - ;;@ std/array.ts:87:8 (call "$(lib)/array/Array#indexOf" - ;;@ std/array.ts:87:4 (get_global $std/array/arr) - ;;@ std/array.ts:87:16 (i32.const 44) (i32.const 0) ) ) - ;;@ std/array.ts:89:0 (if (i32.eqz - ;;@ std/array.ts:89:7 (i32.eq (get_global $std/array/i) - ;;@ std/array.ts:89:12 (i32.const 0) ) ) @@ -5538,24 +4336,17 @@ (unreachable) ) ) - ;;@ std/array.ts:91:0 (set_global $std/array/i - ;;@ std/array.ts:91:8 (call "$(lib)/array/Array#indexOf" - ;;@ std/array.ts:91:4 (get_global $std/array/arr) - ;;@ std/array.ts:91:16 (i32.const 42) (i32.const 0) ) ) - ;;@ std/array.ts:93:0 (if (i32.eqz - ;;@ std/array.ts:93:7 (i32.eq (get_global $std/array/i) - ;;@ std/array.ts:93:12 (i32.const 2) ) ) @@ -5569,25 +4360,17 @@ (unreachable) ) ) - ;;@ std/array.ts:95:0 (set_global $std/array/i - ;;@ std/array.ts:95:8 (call "$(lib)/array/Array#indexOf" - ;;@ std/array.ts:95:4 (get_global $std/array/arr) - ;;@ std/array.ts:95:16 (i32.const 45) - ;;@ (lib)/array.ts:53:45 (i32.const 0) ) ) - ;;@ std/array.ts:97:0 (if (i32.eqz - ;;@ std/array.ts:97:7 (i32.eq (get_global $std/array/i) - ;;@ std/array.ts:97:12 (i32.const -1) ) ) @@ -5601,24 +4384,17 @@ (unreachable) ) ) - ;;@ std/array.ts:99:4 (call "$(lib)/array/Array#splice" - ;;@ std/array.ts:99:0 (get_global $std/array/arr) - ;;@ std/array.ts:99:11 (i32.const 1) - ;;@ std/array.ts:99:14 (i32.const 1) ) - ;;@ std/array.ts:101:0 (if (i32.eqz - ;;@ std/array.ts:101:7 (i32.eq (call "$(lib)/array/Array#get:length" (get_global $std/array/arr) ) - ;;@ std/array.ts:101:21 (i32.const 2) ) ) @@ -5632,15 +4408,12 @@ (unreachable) ) ) - ;;@ std/array.ts:102:0 (if (i32.eqz - ;;@ std/array.ts:102:7 (i32.eq (i32.load offset=4 (get_global $std/array/arr) ) - ;;@ std/array.ts:102:25 (i32.const 8) ) ) @@ -5654,17 +4427,13 @@ (unreachable) ) ) - ;;@ std/array.ts:103:0 (if (i32.eqz - ;;@ std/array.ts:103:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:103:11 (i32.const 0) ) - ;;@ std/array.ts:103:17 (i32.const 44) ) ) @@ -5678,17 +4447,13 @@ (unreachable) ) ) - ;;@ std/array.ts:104:0 (if (i32.eqz - ;;@ std/array.ts:104:7 (i32.eq (call "$(lib)/array/Array#__get" (get_global $std/array/arr) - ;;@ std/array.ts:104:11 (i32.const 1) ) - ;;@ std/array.ts:104:17 (i32.const 42) ) ) diff --git a/tests/compiler/std/carray.wat b/tests/compiler/std/carray.untouched.wat similarity index 69% rename from tests/compiler/std/carray.wat rename to tests/compiler/std/carray.untouched.wat index 15393851..8c931a80 100644 --- a/tests/compiler/std/carray.wat +++ b/tests/compiler/std/carray.untouched.wat @@ -11,28 +11,19 @@ (export "memory" (memory $0)) (start $start) (func "$(lib)/array/CArray#__get" (; 1 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32) - ;;@ (lib)/array.ts:173:4 (if - ;;@ (lib)/array.ts:173:8 (i32.lt_s (get_local $1) - ;;@ (lib)/array.ts:173:16 (i32.const 0) ) - ;;@ (lib)/array.ts:174:6 (unreachable) ) - ;;@ (lib)/array.ts:175:71 (return - ;;@ (lib)/array.ts:175:11 (i32.load - ;;@ (lib)/array.ts:175:19 (i32.add (get_local $0) - ;;@ (lib)/array.ts:175:45 (i32.mul (get_local $1) - ;;@ (lib)/array.ts:175:60 (i32.const 4) ) ) @@ -40,49 +31,35 @@ ) ) (func "$(lib)/array/CArray#__set" (; 2 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32) - ;;@ (lib)/array.ts:180:4 (if - ;;@ (lib)/array.ts:180:8 (i32.lt_s (get_local $1) - ;;@ (lib)/array.ts:180:16 (i32.const 0) ) - ;;@ (lib)/array.ts:181:6 (unreachable) ) - ;;@ (lib)/array.ts:182:4 (i32.store - ;;@ (lib)/array.ts:182:13 (i32.add (get_local $0) - ;;@ (lib)/array.ts:182:39 (i32.mul (get_local $1) - ;;@ (lib)/array.ts:182:54 (i32.const 4) ) ) - ;;@ (lib)/array.ts:182:67 (get_local $2) ) ) (func $start (; 3 ;) (type $v) (local $0 i32) (set_global $std/carray/arr - ;;@ std/carray.ts:6:23 (get_global $HEAP_BASE) ) - ;;@ std/carray.ts:8:0 (if (i32.eqz - ;;@ std/carray.ts:8:7 (i32.eq (i32.load - ;;@ std/carray.ts:8:17 (get_global $HEAP_BASE) ) - ;;@ std/carray.ts:8:31 (i32.const 0) ) ) @@ -96,20 +73,15 @@ (unreachable) ) ) - ;;@ std/carray.ts:9:0 (if (i32.eqz - ;;@ std/carray.ts:9:7 (i32.eq (i32.load - ;;@ std/carray.ts:9:17 (i32.add (get_global $HEAP_BASE) - ;;@ std/carray.ts:9:29 (i32.const 4) ) ) - ;;@ std/carray.ts:9:35 (i32.const 0) ) ) @@ -123,17 +95,13 @@ (unreachable) ) ) - ;;@ std/carray.ts:11:0 (if (i32.eqz - ;;@ std/carray.ts:11:7 (i32.eq (call "$(lib)/array/CArray#__get" (get_global $std/carray/arr) - ;;@ std/carray.ts:11:11 (i32.const 0) ) - ;;@ std/carray.ts:11:17 (i32.const 0) ) ) @@ -147,17 +115,13 @@ (unreachable) ) ) - ;;@ std/carray.ts:12:0 (if (i32.eqz - ;;@ std/carray.ts:12:7 (i32.eq (call "$(lib)/array/CArray#__get" (get_global $std/carray/arr) - ;;@ std/carray.ts:12:11 (i32.const 1) ) - ;;@ std/carray.ts:12:17 (i32.const 0) ) ) @@ -171,32 +135,22 @@ (unreachable) ) ) - ;;@ std/carray.ts:14:0 (call "$(lib)/array/CArray#__set" (get_global $std/carray/arr) - ;;@ std/carray.ts:14:4 (i32.const 0) - ;;@ std/carray.ts:14:9 (i32.const 42) ) - ;;@ std/carray.ts:15:0 (call "$(lib)/array/CArray#__set" (get_global $std/carray/arr) - ;;@ std/carray.ts:15:4 (i32.const 1) - ;;@ std/carray.ts:15:9 (i32.const 24) ) - ;;@ std/carray.ts:17:0 (if (i32.eqz - ;;@ std/carray.ts:17:7 (i32.eq (i32.load - ;;@ std/carray.ts:17:17 (get_global $HEAP_BASE) ) - ;;@ std/carray.ts:17:31 (i32.const 42) ) ) @@ -210,20 +164,15 @@ (unreachable) ) ) - ;;@ std/carray.ts:18:0 (if (i32.eqz - ;;@ std/carray.ts:18:7 (i32.eq (i32.load - ;;@ std/carray.ts:18:17 (i32.add (get_global $HEAP_BASE) - ;;@ std/carray.ts:18:29 (i32.const 4) ) ) - ;;@ std/carray.ts:18:35 (i32.const 24) ) ) @@ -237,17 +186,13 @@ (unreachable) ) ) - ;;@ std/carray.ts:20:0 (if (i32.eqz - ;;@ std/carray.ts:20:7 (i32.eq (call "$(lib)/array/CArray#__get" (get_global $std/carray/arr) - ;;@ std/carray.ts:20:11 (i32.const 0) ) - ;;@ std/carray.ts:20:17 (i32.const 42) ) ) @@ -261,17 +206,13 @@ (unreachable) ) ) - ;;@ std/carray.ts:21:0 (if (i32.eqz - ;;@ std/carray.ts:21:7 (i32.eq (call "$(lib)/array/CArray#__get" (get_global $std/carray/arr) - ;;@ std/carray.ts:21:11 (i32.const 1) ) - ;;@ std/carray.ts:21:17 (i32.const 24) ) ) @@ -285,25 +226,19 @@ (unreachable) ) ) - ;;@ std/carray.ts:23:0 (if (i32.eqz - ;;@ std/carray.ts:23:7 (i32.eq (block (result i32) (call "$(lib)/array/CArray#__set" - ;;@ std/carray.ts:23:8 (get_global $std/carray/arr) - ;;@ std/carray.ts:23:12 (i32.const 3) (tee_local $0 - ;;@ std/carray.ts:23:17 (i32.const 9000) ) ) (get_local $0) ) - ;;@ std/carray.ts:23:26 (i32.const 9000) ) ) @@ -317,20 +252,15 @@ (unreachable) ) ) - ;;@ std/carray.ts:25:0 (if (i32.eqz - ;;@ std/carray.ts:25:7 (i32.eq (i32.load - ;;@ std/carray.ts:25:17 (i32.add (get_global $HEAP_BASE) - ;;@ std/carray.ts:25:29 (i32.const 12) ) ) - ;;@ std/carray.ts:25:36 (i32.const 9000) ) ) @@ -344,17 +274,13 @@ (unreachable) ) ) - ;;@ std/carray.ts:26:0 (if (i32.eqz - ;;@ std/carray.ts:26:7 (i32.eq (call "$(lib)/array/CArray#__get" (get_global $std/carray/arr) - ;;@ std/carray.ts:26:11 (i32.const 3) ) - ;;@ std/carray.ts:26:17 (i32.const 9000) ) ) diff --git a/tests/compiler/std/new.wat b/tests/compiler/std/new.untouched.wat similarity index 63% rename from tests/compiler/std/new.wat rename to tests/compiler/std/new.untouched.wat index 9eb1131c..f0e99766 100644 --- a/tests/compiler/std/new.wat +++ b/tests/compiler/std/new.untouched.wat @@ -18,106 +18,74 @@ (local $3 i32) (local $4 i32) (local $5 i32) - ;;@ (lib)/allocator/arena.ts:15:2 (if - ;;@ (lib)/allocator/arena.ts:15:6 (i32.eqz - ;;@ (lib)/allocator/arena.ts:15:7 (get_local $0) ) - ;;@ (lib)/allocator/arena.ts:15:20 (return (i32.const 0) ) ) - ;;@ (lib)/allocator/arena.ts:16:2 (set_local $1 - ;;@ (lib)/allocator/arena.ts:16:12 (get_global "$(lib)/allocator/arena/HEAP_OFFSET") ) - ;;@ (lib)/allocator/arena.ts:17:2 (set_local $2 - ;;@ (lib)/allocator/arena.ts:17:12 (i32.and (i32.add - ;;@ (lib)/allocator/arena.ts:17:13 (i32.add (get_local $1) - ;;@ (lib)/allocator/arena.ts:17:19 (get_local $0) ) - ;;@ (lib)/allocator/arena.ts:17:26 (i32.const 7) ) - ;;@ (lib)/allocator/arena.ts:17:40 (i32.xor - ;;@ (lib)/allocator/arena.ts:17:41 (i32.const 7) (i32.const -1) ) ) ) - ;;@ (lib)/allocator/arena.ts:18:2 (set_local $3 - ;;@ (lib)/allocator/arena.ts:18:14 (i32.shl (current_memory) - ;;@ (lib)/allocator/arena.ts:18:41 (i32.const 16) ) ) - ;;@ (lib)/allocator/arena.ts:19:2 (if - ;;@ (lib)/allocator/arena.ts:19:6 (i32.and (if (result i32) (i32.ne (tee_local $4 (i32.gt_u (get_local $2) - ;;@ (lib)/allocator/arena.ts:19:12 (get_local $3) ) ) (i32.const 0) ) - ;;@ (lib)/allocator/arena.ts:19:21 (i32.lt_s (grow_memory - ;;@ (lib)/allocator/arena.ts:20:4 (select (tee_local $4 - ;;@ (lib)/allocator/arena.ts:21:6 (i32.shr_u (i32.sub - ;;@ (lib)/allocator/arena.ts:21:7 (i32.and - ;;@ (lib)/allocator/arena.ts:21:8 (i32.add - ;;@ (lib)/allocator/arena.ts:21:9 (get_local $2) - ;;@ (lib)/allocator/arena.ts:21:15 (i32.const 65535) ) - ;;@ (lib)/allocator/arena.ts:21:25 (i32.xor - ;;@ (lib)/allocator/arena.ts:21:26 (i32.const 65535) (i32.const -1) ) ) - ;;@ (lib)/allocator/arena.ts:21:36 (get_local $3) ) - ;;@ (lib)/allocator/arena.ts:21:46 (i32.const 16) ) ) (tee_local $5 - ;;@ (lib)/allocator/arena.ts:22:6 (i32.shr_u (get_local $3) - ;;@ (lib)/allocator/arena.ts:22:46 (i32.const 16) ) ) @@ -127,53 +95,42 @@ ) ) ) - ;;@ (lib)/allocator/arena.ts:24:6 (i32.const 0) ) (get_local $4) ) (i32.const 1) ) - ;;@ (lib)/allocator/arena.ts:24:9 (unreachable) ) - ;;@ (lib)/allocator/arena.ts:25:2 (set_global "$(lib)/allocator/arena/HEAP_OFFSET" - ;;@ (lib)/allocator/arena.ts:25:16 (get_local $2) ) - ;;@ (lib)/allocator/arena.ts:26:9 (return (get_local $1) ) ) (func $std/new/AClass#constructor (; 1 ;) (type $ifv) (param $0 i32) (param $1 f32) - ;;@ std/new.ts:8:4 (i32.store (get_local $0) (i32.add (i32.load (get_local $0) ) - ;;@ std/new.ts:8:19 (i32.const 1) ) ) - ;;@ std/new.ts:9:4 (f32.store offset=4 (get_local $0) - ;;@ std/new.ts:9:24 (get_local $1) ) ) (func $start (; 2 ;) (type $v) (local $0 i32) (set_global "$(lib)/allocator/arena/HEAP_OFFSET" - ;;@ (lib)/allocator/arena.ts:11:25 (get_global $HEAP_BASE) ) (set_global $std/new/aClass - ;;@ std/new.ts:13:13 (block (result i32) (set_local $0 (call "$(lib)/allocator/arena/allocate_memory" @@ -182,17 +139,14 @@ ) (i32.store (get_local $0) - ;;@ std/new.ts:5:16 (i32.const 1) ) (f32.store offset=4 (get_local $0) - ;;@ std/new.ts:6:22 (f32.const 2) ) (call $std/new/AClass#constructor (get_local $0) - ;;@ std/new.ts:13:24 (f32.const 3) ) (get_local $0) diff --git a/tests/compiler/std/set.wat b/tests/compiler/std/set.untouched.wat similarity index 66% rename from tests/compiler/std/set.wat rename to tests/compiler/std/set.untouched.wat index f6d27354..67fbbcef 100644 --- a/tests/compiler/std/set.wat +++ b/tests/compiler/std/set.untouched.wat @@ -24,106 +24,74 @@ (local $3 i32) (local $4 i32) (local $5 i32) - ;;@ (lib)/allocator/arena.ts:15:2 (if - ;;@ (lib)/allocator/arena.ts:15:6 (i32.eqz - ;;@ (lib)/allocator/arena.ts:15:7 (get_local $0) ) - ;;@ (lib)/allocator/arena.ts:15:20 (return (i32.const 0) ) ) - ;;@ (lib)/allocator/arena.ts:16:2 (set_local $1 - ;;@ (lib)/allocator/arena.ts:16:12 (get_global "$(lib)/allocator/arena/HEAP_OFFSET") ) - ;;@ (lib)/allocator/arena.ts:17:2 (set_local $2 - ;;@ (lib)/allocator/arena.ts:17:12 (i32.and (i32.add - ;;@ (lib)/allocator/arena.ts:17:13 (i32.add (get_local $1) - ;;@ (lib)/allocator/arena.ts:17:19 (get_local $0) ) - ;;@ (lib)/allocator/arena.ts:17:26 (i32.const 7) ) - ;;@ (lib)/allocator/arena.ts:17:40 (i32.xor - ;;@ (lib)/allocator/arena.ts:17:41 (i32.const 7) (i32.const -1) ) ) ) - ;;@ (lib)/allocator/arena.ts:18:2 (set_local $3 - ;;@ (lib)/allocator/arena.ts:18:14 (i32.shl (current_memory) - ;;@ (lib)/allocator/arena.ts:18:41 (i32.const 16) ) ) - ;;@ (lib)/allocator/arena.ts:19:2 (if - ;;@ (lib)/allocator/arena.ts:19:6 (i32.and (if (result i32) (i32.ne (tee_local $4 (i32.gt_u (get_local $2) - ;;@ (lib)/allocator/arena.ts:19:12 (get_local $3) ) ) (i32.const 0) ) - ;;@ (lib)/allocator/arena.ts:19:21 (i32.lt_s (grow_memory - ;;@ (lib)/allocator/arena.ts:20:4 (select (tee_local $4 - ;;@ (lib)/allocator/arena.ts:21:6 (i32.shr_u (i32.sub - ;;@ (lib)/allocator/arena.ts:21:7 (i32.and - ;;@ (lib)/allocator/arena.ts:21:8 (i32.add - ;;@ (lib)/allocator/arena.ts:21:9 (get_local $2) - ;;@ (lib)/allocator/arena.ts:21:15 (i32.const 65535) ) - ;;@ (lib)/allocator/arena.ts:21:25 (i32.xor - ;;@ (lib)/allocator/arena.ts:21:26 (i32.const 65535) (i32.const -1) ) ) - ;;@ (lib)/allocator/arena.ts:21:36 (get_local $3) ) - ;;@ (lib)/allocator/arena.ts:21:46 (i32.const 16) ) ) (tee_local $5 - ;;@ (lib)/allocator/arena.ts:22:6 (i32.shr_u (get_local $3) - ;;@ (lib)/allocator/arena.ts:22:46 (i32.const 16) ) ) @@ -133,30 +101,23 @@ ) ) ) - ;;@ (lib)/allocator/arena.ts:24:6 (i32.const 0) ) (get_local $4) ) (i32.const 1) ) - ;;@ (lib)/allocator/arena.ts:24:9 (unreachable) ) - ;;@ (lib)/allocator/arena.ts:25:2 (set_global "$(lib)/allocator/arena/HEAP_OFFSET" - ;;@ (lib)/allocator/arena.ts:25:16 (get_local $2) ) - ;;@ (lib)/allocator/arena.ts:26:9 (return (get_local $1) ) ) (func "$(lib)/set/Set#get:size" (; 2 ;) (type $ii) (param $0 i32) (result i32) - ;;@ (lib)/set.ts:16:16 (return - ;;@ (lib)/set.ts:16:11 (i32.load offset=8 (get_local $0) ) @@ -166,32 +127,24 @@ (local $3 i32) (local $4 i32) (local $5 i32) - ;;@ (lib)/memory.ts:5:2 (nop) - ;;@ (lib)/memory.ts:8:2 (block $break|0 (loop $continue|0 (if - ;;@ (lib)/memory.ts:8:9 (if (result i32) (i32.ne (get_local $2) (i32.const 0) ) - ;;@ (lib)/memory.ts:8:14 (i32.and - ;;@ (lib)/memory.ts:8:15 (get_local $1) - ;;@ (lib)/memory.ts:8:21 (i32.const 3) ) (get_local $2) ) (block (block - ;;@ (lib)/memory.ts:9:4 (i32.store8 - ;;@ (lib)/memory.ts:9:14 (block (result i32) (set_local $5 (get_local $0) @@ -204,9 +157,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:9:22 (i32.load8_u - ;;@ (lib)/memory.ts:9:31 (block (result i32) (set_local $5 (get_local $1) @@ -221,7 +172,6 @@ ) ) ) - ;;@ (lib)/memory.ts:10:4 (set_local $2 (i32.sub (get_local $2) @@ -234,117 +184,81 @@ ) ) ) - ;;@ (lib)/memory.ts:14:2 (if - ;;@ (lib)/memory.ts:14:6 (i32.eq (i32.and - ;;@ (lib)/memory.ts:14:7 (get_local $0) - ;;@ (lib)/memory.ts:14:14 (i32.const 3) ) - ;;@ (lib)/memory.ts:14:20 (i32.const 0) ) - ;;@ (lib)/memory.ts:14:23 (block (block $break|1 (loop $continue|1 (if - ;;@ (lib)/memory.ts:15:11 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:15:16 (i32.const 16) ) (block (block - ;;@ (lib)/memory.ts:16:6 (i32.store - ;;@ (lib)/memory.ts:16:17 (get_local $0) - ;;@ (lib)/memory.ts:16:28 (i32.load - ;;@ (lib)/memory.ts:16:38 (get_local $1) ) ) - ;;@ (lib)/memory.ts:17:6 (i32.store - ;;@ (lib)/memory.ts:17:17 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:17:25 (i32.const 4) ) - ;;@ (lib)/memory.ts:17:28 (i32.load - ;;@ (lib)/memory.ts:17:38 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:17:45 (i32.const 4) ) ) ) - ;;@ (lib)/memory.ts:18:6 (i32.store - ;;@ (lib)/memory.ts:18:17 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:18:25 (i32.const 8) ) - ;;@ (lib)/memory.ts:18:28 (i32.load - ;;@ (lib)/memory.ts:18:38 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:18:45 (i32.const 8) ) ) ) - ;;@ (lib)/memory.ts:19:6 (i32.store - ;;@ (lib)/memory.ts:19:17 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:19:24 (i32.const 12) ) - ;;@ (lib)/memory.ts:19:28 (i32.load - ;;@ (lib)/memory.ts:19:38 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:19:44 (i32.const 12) ) ) ) - ;;@ (lib)/memory.ts:20:6 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:20:13 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:20:17 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:20:25 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:20:29 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:20:34 (i32.const 16) ) ) @@ -354,149 +268,102 @@ ) ) ) - ;;@ (lib)/memory.ts:22:4 (if - ;;@ (lib)/memory.ts:22:8 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:22:12 (i32.const 8) ) - ;;@ (lib)/memory.ts:22:15 (block - ;;@ (lib)/memory.ts:23:6 (i32.store - ;;@ (lib)/memory.ts:23:17 (get_local $0) - ;;@ (lib)/memory.ts:23:27 (i32.load - ;;@ (lib)/memory.ts:23:37 (get_local $1) ) ) - ;;@ (lib)/memory.ts:24:6 (i32.store - ;;@ (lib)/memory.ts:24:17 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:24:24 (i32.const 4) ) - ;;@ (lib)/memory.ts:24:27 (i32.load - ;;@ (lib)/memory.ts:24:37 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:24:43 (i32.const 4) ) ) ) - ;;@ (lib)/memory.ts:25:6 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:25:14 (i32.const 8) ) ) - ;;@ (lib)/memory.ts:25:17 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:25:24 (i32.const 8) ) ) ) ) - ;;@ (lib)/memory.ts:27:4 (if - ;;@ (lib)/memory.ts:27:8 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:27:12 (i32.const 4) ) - ;;@ (lib)/memory.ts:27:15 (block - ;;@ (lib)/memory.ts:28:6 (i32.store - ;;@ (lib)/memory.ts:28:17 (get_local $0) - ;;@ (lib)/memory.ts:28:23 (i32.load - ;;@ (lib)/memory.ts:28:33 (get_local $1) ) ) - ;;@ (lib)/memory.ts:29:6 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:29:14 (i32.const 4) ) ) - ;;@ (lib)/memory.ts:29:17 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:29:24 (i32.const 4) ) ) ) ) - ;;@ (lib)/memory.ts:31:4 (if - ;;@ (lib)/memory.ts:31:8 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:31:12 (i32.const 2) ) - ;;@ (lib)/memory.ts:31:15 (block - ;;@ (lib)/memory.ts:32:6 (i32.store16 - ;;@ (lib)/memory.ts:32:17 (get_local $0) - ;;@ (lib)/memory.ts:32:23 (i32.load16_u - ;;@ (lib)/memory.ts:32:33 (get_local $1) ) ) - ;;@ (lib)/memory.ts:33:6 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:33:14 (i32.const 2) ) ) - ;;@ (lib)/memory.ts:33:17 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:33:24 (i32.const 2) ) ) ) ) - ;;@ (lib)/memory.ts:35:4 (if - ;;@ (lib)/memory.ts:35:8 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:35:12 (i32.const 1) ) - ;;@ (lib)/memory.ts:36:6 (i32.store8 - ;;@ (lib)/memory.ts:36:16 (block (result i32) (set_local $5 (get_local $0) @@ -509,9 +376,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:36:24 (i32.load8_u - ;;@ (lib)/memory.ts:36:33 (block (result i32) (set_local $5 (get_local $1) @@ -527,65 +392,50 @@ ) ) ) - ;;@ (lib)/memory.ts:38:4 (return) ) ) - ;;@ (lib)/memory.ts:43:2 (if - ;;@ (lib)/memory.ts:43:6 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:43:11 (i32.const 32) ) - ;;@ (lib)/memory.ts:44:4 (block $break|2 (block $case2|2 (block $case1|2 (block $case0|2 (set_local $5 - ;;@ (lib)/memory.ts:44:12 (i32.and (get_local $0) - ;;@ (lib)/memory.ts:44:19 (i32.const 3) ) ) (br_if $case0|2 (i32.eq (get_local $5) - ;;@ (lib)/memory.ts:46:11 (i32.const 1) ) ) (br_if $case1|2 (i32.eq (get_local $5) - ;;@ (lib)/memory.ts:64:11 (i32.const 2) ) ) (br_if $case2|2 (i32.eq (get_local $5) - ;;@ (lib)/memory.ts:81:11 (i32.const 3) ) ) (br $break|2) ) - ;;@ (lib)/memory.ts:47:8 (set_local $3 - ;;@ (lib)/memory.ts:47:12 (i32.load - ;;@ (lib)/memory.ts:47:22 (get_local $1) ) ) - ;;@ (lib)/memory.ts:48:8 (i32.store8 - ;;@ (lib)/memory.ts:48:18 (block (result i32) (set_local $5 (get_local $0) @@ -598,9 +448,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:48:26 (i32.load8_u - ;;@ (lib)/memory.ts:48:35 (block (result i32) (set_local $5 (get_local $1) @@ -615,9 +463,7 @@ ) ) ) - ;;@ (lib)/memory.ts:49:8 (i32.store8 - ;;@ (lib)/memory.ts:49:18 (block (result i32) (set_local $5 (get_local $0) @@ -630,9 +476,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:49:26 (i32.load8_u - ;;@ (lib)/memory.ts:49:35 (block (result i32) (set_local $5 (get_local $1) @@ -647,9 +491,7 @@ ) ) ) - ;;@ (lib)/memory.ts:50:8 (i32.store8 - ;;@ (lib)/memory.ts:50:18 (block (result i32) (set_local $5 (get_local $0) @@ -662,9 +504,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:50:26 (i32.load8_u - ;;@ (lib)/memory.ts:50:35 (block (result i32) (set_local $5 (get_local $1) @@ -679,183 +519,129 @@ ) ) ) - ;;@ (lib)/memory.ts:51:8 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:51:13 (i32.const 3) ) ) - ;;@ (lib)/memory.ts:52:8 (block $break|3 (loop $continue|3 (if - ;;@ (lib)/memory.ts:52:15 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:52:20 (i32.const 17) ) (block (block - ;;@ (lib)/memory.ts:53:10 (set_local $4 - ;;@ (lib)/memory.ts:53:14 (i32.load - ;;@ (lib)/memory.ts:53:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:53:30 (i32.const 1) ) ) ) - ;;@ (lib)/memory.ts:54:10 (i32.store - ;;@ (lib)/memory.ts:54:21 (get_local $0) - ;;@ (lib)/memory.ts:54:27 (i32.or (i32.shr_u (get_local $3) - ;;@ (lib)/memory.ts:54:32 (i32.const 24) ) - ;;@ (lib)/memory.ts:54:37 (i32.shl (get_local $4) - ;;@ (lib)/memory.ts:54:42 (i32.const 8) ) ) ) - ;;@ (lib)/memory.ts:55:10 (set_local $3 - ;;@ (lib)/memory.ts:55:14 (i32.load - ;;@ (lib)/memory.ts:55:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:55:30 (i32.const 5) ) ) ) - ;;@ (lib)/memory.ts:56:10 (i32.store - ;;@ (lib)/memory.ts:56:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:56:28 (i32.const 4) ) - ;;@ (lib)/memory.ts:56:31 (i32.or (i32.shr_u (get_local $4) - ;;@ (lib)/memory.ts:56:36 (i32.const 24) ) - ;;@ (lib)/memory.ts:56:41 (i32.shl (get_local $3) - ;;@ (lib)/memory.ts:56:46 (i32.const 8) ) ) ) - ;;@ (lib)/memory.ts:57:10 (set_local $4 - ;;@ (lib)/memory.ts:57:14 (i32.load - ;;@ (lib)/memory.ts:57:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:57:30 (i32.const 9) ) ) ) - ;;@ (lib)/memory.ts:58:10 (i32.store - ;;@ (lib)/memory.ts:58:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:58:28 (i32.const 8) ) - ;;@ (lib)/memory.ts:58:31 (i32.or (i32.shr_u (get_local $3) - ;;@ (lib)/memory.ts:58:36 (i32.const 24) ) - ;;@ (lib)/memory.ts:58:41 (i32.shl (get_local $4) - ;;@ (lib)/memory.ts:58:46 (i32.const 8) ) ) ) - ;;@ (lib)/memory.ts:59:10 (set_local $3 - ;;@ (lib)/memory.ts:59:14 (i32.load - ;;@ (lib)/memory.ts:59:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:59:30 (i32.const 13) ) ) ) - ;;@ (lib)/memory.ts:60:10 (i32.store - ;;@ (lib)/memory.ts:60:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:60:28 (i32.const 12) ) - ;;@ (lib)/memory.ts:60:32 (i32.or (i32.shr_u (get_local $4) - ;;@ (lib)/memory.ts:60:37 (i32.const 24) ) - ;;@ (lib)/memory.ts:60:42 (i32.shl (get_local $3) - ;;@ (lib)/memory.ts:60:47 (i32.const 8) ) ) ) - ;;@ (lib)/memory.ts:61:10 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:61:17 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:61:21 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:61:29 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:61:33 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:61:38 (i32.const 16) ) ) @@ -865,20 +651,14 @@ ) ) ) - ;;@ (lib)/memory.ts:63:8 (br $break|2) ) - ;;@ (lib)/memory.ts:65:8 (set_local $3 - ;;@ (lib)/memory.ts:65:12 (i32.load - ;;@ (lib)/memory.ts:65:22 (get_local $1) ) ) - ;;@ (lib)/memory.ts:66:8 (i32.store8 - ;;@ (lib)/memory.ts:66:18 (block (result i32) (set_local $5 (get_local $0) @@ -891,9 +671,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:66:26 (i32.load8_u - ;;@ (lib)/memory.ts:66:35 (block (result i32) (set_local $5 (get_local $1) @@ -908,9 +686,7 @@ ) ) ) - ;;@ (lib)/memory.ts:67:8 (i32.store8 - ;;@ (lib)/memory.ts:67:18 (block (result i32) (set_local $5 (get_local $0) @@ -923,9 +699,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:67:26 (i32.load8_u - ;;@ (lib)/memory.ts:67:35 (block (result i32) (set_local $5 (get_local $1) @@ -940,183 +714,129 @@ ) ) ) - ;;@ (lib)/memory.ts:68:8 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:68:13 (i32.const 2) ) ) - ;;@ (lib)/memory.ts:69:8 (block $break|4 (loop $continue|4 (if - ;;@ (lib)/memory.ts:69:15 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:69:20 (i32.const 18) ) (block (block - ;;@ (lib)/memory.ts:70:10 (set_local $4 - ;;@ (lib)/memory.ts:70:14 (i32.load - ;;@ (lib)/memory.ts:70:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:70:30 (i32.const 2) ) ) ) - ;;@ (lib)/memory.ts:71:10 (i32.store - ;;@ (lib)/memory.ts:71:21 (get_local $0) - ;;@ (lib)/memory.ts:71:27 (i32.or (i32.shr_u (get_local $3) - ;;@ (lib)/memory.ts:71:32 (i32.const 16) ) - ;;@ (lib)/memory.ts:71:37 (i32.shl (get_local $4) - ;;@ (lib)/memory.ts:71:42 (i32.const 16) ) ) ) - ;;@ (lib)/memory.ts:72:10 (set_local $3 - ;;@ (lib)/memory.ts:72:14 (i32.load - ;;@ (lib)/memory.ts:72:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:72:30 (i32.const 6) ) ) ) - ;;@ (lib)/memory.ts:73:10 (i32.store - ;;@ (lib)/memory.ts:73:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:73:28 (i32.const 4) ) - ;;@ (lib)/memory.ts:73:31 (i32.or (i32.shr_u (get_local $4) - ;;@ (lib)/memory.ts:73:36 (i32.const 16) ) - ;;@ (lib)/memory.ts:73:41 (i32.shl (get_local $3) - ;;@ (lib)/memory.ts:73:46 (i32.const 16) ) ) ) - ;;@ (lib)/memory.ts:74:10 (set_local $4 - ;;@ (lib)/memory.ts:74:14 (i32.load - ;;@ (lib)/memory.ts:74:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:74:30 (i32.const 10) ) ) ) - ;;@ (lib)/memory.ts:75:10 (i32.store - ;;@ (lib)/memory.ts:75:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:75:28 (i32.const 8) ) - ;;@ (lib)/memory.ts:75:31 (i32.or (i32.shr_u (get_local $3) - ;;@ (lib)/memory.ts:75:36 (i32.const 16) ) - ;;@ (lib)/memory.ts:75:41 (i32.shl (get_local $4) - ;;@ (lib)/memory.ts:75:46 (i32.const 16) ) ) ) - ;;@ (lib)/memory.ts:76:10 (set_local $3 - ;;@ (lib)/memory.ts:76:14 (i32.load - ;;@ (lib)/memory.ts:76:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:76:30 (i32.const 14) ) ) ) - ;;@ (lib)/memory.ts:77:10 (i32.store - ;;@ (lib)/memory.ts:77:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:77:28 (i32.const 12) ) - ;;@ (lib)/memory.ts:77:32 (i32.or (i32.shr_u (get_local $4) - ;;@ (lib)/memory.ts:77:37 (i32.const 16) ) - ;;@ (lib)/memory.ts:77:42 (i32.shl (get_local $3) - ;;@ (lib)/memory.ts:77:47 (i32.const 16) ) ) ) - ;;@ (lib)/memory.ts:78:10 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:78:17 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:78:21 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:78:29 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:78:33 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:78:38 (i32.const 16) ) ) @@ -1126,20 +846,14 @@ ) ) ) - ;;@ (lib)/memory.ts:80:8 (br $break|2) ) - ;;@ (lib)/memory.ts:82:8 (set_local $3 - ;;@ (lib)/memory.ts:82:12 (i32.load - ;;@ (lib)/memory.ts:82:22 (get_local $1) ) ) - ;;@ (lib)/memory.ts:83:8 (i32.store8 - ;;@ (lib)/memory.ts:83:18 (block (result i32) (set_local $5 (get_local $0) @@ -1152,9 +866,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:83:26 (i32.load8_u - ;;@ (lib)/memory.ts:83:35 (block (result i32) (set_local $5 (get_local $1) @@ -1169,183 +881,129 @@ ) ) ) - ;;@ (lib)/memory.ts:84:8 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:84:13 (i32.const 1) ) ) - ;;@ (lib)/memory.ts:85:8 (block $break|5 (loop $continue|5 (if - ;;@ (lib)/memory.ts:85:15 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:85:20 (i32.const 19) ) (block (block - ;;@ (lib)/memory.ts:86:10 (set_local $4 - ;;@ (lib)/memory.ts:86:14 (i32.load - ;;@ (lib)/memory.ts:86:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:86:30 (i32.const 3) ) ) ) - ;;@ (lib)/memory.ts:87:10 (i32.store - ;;@ (lib)/memory.ts:87:21 (get_local $0) - ;;@ (lib)/memory.ts:87:27 (i32.or (i32.shr_u (get_local $3) - ;;@ (lib)/memory.ts:87:32 (i32.const 8) ) - ;;@ (lib)/memory.ts:87:36 (i32.shl (get_local $4) - ;;@ (lib)/memory.ts:87:41 (i32.const 24) ) ) ) - ;;@ (lib)/memory.ts:88:10 (set_local $3 - ;;@ (lib)/memory.ts:88:14 (i32.load - ;;@ (lib)/memory.ts:88:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:88:30 (i32.const 7) ) ) ) - ;;@ (lib)/memory.ts:89:10 (i32.store - ;;@ (lib)/memory.ts:89:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:89:28 (i32.const 4) ) - ;;@ (lib)/memory.ts:89:31 (i32.or (i32.shr_u (get_local $4) - ;;@ (lib)/memory.ts:89:36 (i32.const 8) ) - ;;@ (lib)/memory.ts:89:40 (i32.shl (get_local $3) - ;;@ (lib)/memory.ts:89:45 (i32.const 24) ) ) ) - ;;@ (lib)/memory.ts:90:10 (set_local $4 - ;;@ (lib)/memory.ts:90:14 (i32.load - ;;@ (lib)/memory.ts:90:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:90:30 (i32.const 11) ) ) ) - ;;@ (lib)/memory.ts:91:10 (i32.store - ;;@ (lib)/memory.ts:91:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:91:28 (i32.const 8) ) - ;;@ (lib)/memory.ts:91:31 (i32.or (i32.shr_u (get_local $3) - ;;@ (lib)/memory.ts:91:36 (i32.const 8) ) - ;;@ (lib)/memory.ts:91:40 (i32.shl (get_local $4) - ;;@ (lib)/memory.ts:91:45 (i32.const 24) ) ) ) - ;;@ (lib)/memory.ts:92:10 (set_local $3 - ;;@ (lib)/memory.ts:92:14 (i32.load - ;;@ (lib)/memory.ts:92:24 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:92:30 (i32.const 15) ) ) ) - ;;@ (lib)/memory.ts:93:10 (i32.store - ;;@ (lib)/memory.ts:93:21 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:93:28 (i32.const 12) ) - ;;@ (lib)/memory.ts:93:32 (i32.or (i32.shr_u (get_local $4) - ;;@ (lib)/memory.ts:93:37 (i32.const 8) ) - ;;@ (lib)/memory.ts:93:41 (i32.shl (get_local $3) - ;;@ (lib)/memory.ts:93:46 (i32.const 24) ) ) ) - ;;@ (lib)/memory.ts:94:10 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:94:17 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:94:21 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:94:29 (i32.const 16) ) ) - ;;@ (lib)/memory.ts:94:33 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:94:38 (i32.const 16) ) ) @@ -1355,23 +1013,16 @@ ) ) ) - ;;@ (lib)/memory.ts:96:8 (br $break|2) ) ) - ;;@ (lib)/memory.ts:101:2 (if - ;;@ (lib)/memory.ts:101:6 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:101:10 (i32.const 16) ) - ;;@ (lib)/memory.ts:101:14 (block - ;;@ (lib)/memory.ts:102:4 (i32.store8 - ;;@ (lib)/memory.ts:102:14 (block (result i32) (set_local $5 (get_local $0) @@ -1384,9 +1035,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:102:22 (i32.load8_u - ;;@ (lib)/memory.ts:102:31 (block (result i32) (set_local $5 (get_local $1) @@ -1401,9 +1050,7 @@ ) ) ) - ;;@ (lib)/memory.ts:103:4 (i32.store8 - ;;@ (lib)/memory.ts:103:14 (block (result i32) (set_local $5 (get_local $0) @@ -1416,9 +1063,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:103:22 (i32.load8_u - ;;@ (lib)/memory.ts:103:31 (block (result i32) (set_local $5 (get_local $1) @@ -1433,9 +1078,7 @@ ) ) ) - ;;@ (lib)/memory.ts:104:4 (i32.store8 - ;;@ (lib)/memory.ts:104:14 (block (result i32) (set_local $5 (get_local $0) @@ -1448,9 +1091,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:104:22 (i32.load8_u - ;;@ (lib)/memory.ts:104:31 (block (result i32) (set_local $5 (get_local $1) @@ -1465,9 +1106,7 @@ ) ) ) - ;;@ (lib)/memory.ts:105:4 (i32.store8 - ;;@ (lib)/memory.ts:105:14 (block (result i32) (set_local $5 (get_local $0) @@ -1480,9 +1119,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:105:22 (i32.load8_u - ;;@ (lib)/memory.ts:105:31 (block (result i32) (set_local $5 (get_local $1) @@ -1497,9 +1134,7 @@ ) ) ) - ;;@ (lib)/memory.ts:106:4 (i32.store8 - ;;@ (lib)/memory.ts:106:14 (block (result i32) (set_local $5 (get_local $0) @@ -1512,9 +1147,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:106:22 (i32.load8_u - ;;@ (lib)/memory.ts:106:31 (block (result i32) (set_local $5 (get_local $1) @@ -1529,9 +1162,7 @@ ) ) ) - ;;@ (lib)/memory.ts:107:4 (i32.store8 - ;;@ (lib)/memory.ts:107:14 (block (result i32) (set_local $5 (get_local $0) @@ -1544,9 +1175,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:107:22 (i32.load8_u - ;;@ (lib)/memory.ts:107:31 (block (result i32) (set_local $5 (get_local $1) @@ -1561,9 +1190,7 @@ ) ) ) - ;;@ (lib)/memory.ts:108:4 (i32.store8 - ;;@ (lib)/memory.ts:108:14 (block (result i32) (set_local $5 (get_local $0) @@ -1576,9 +1203,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:108:22 (i32.load8_u - ;;@ (lib)/memory.ts:108:31 (block (result i32) (set_local $5 (get_local $1) @@ -1593,9 +1218,7 @@ ) ) ) - ;;@ (lib)/memory.ts:109:4 (i32.store8 - ;;@ (lib)/memory.ts:109:14 (block (result i32) (set_local $5 (get_local $0) @@ -1608,9 +1231,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:109:22 (i32.load8_u - ;;@ (lib)/memory.ts:109:31 (block (result i32) (set_local $5 (get_local $1) @@ -1625,9 +1246,7 @@ ) ) ) - ;;@ (lib)/memory.ts:110:4 (i32.store8 - ;;@ (lib)/memory.ts:110:14 (block (result i32) (set_local $5 (get_local $0) @@ -1640,9 +1259,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:110:22 (i32.load8_u - ;;@ (lib)/memory.ts:110:31 (block (result i32) (set_local $5 (get_local $1) @@ -1657,9 +1274,7 @@ ) ) ) - ;;@ (lib)/memory.ts:111:4 (i32.store8 - ;;@ (lib)/memory.ts:111:14 (block (result i32) (set_local $5 (get_local $0) @@ -1672,9 +1287,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:111:22 (i32.load8_u - ;;@ (lib)/memory.ts:111:31 (block (result i32) (set_local $5 (get_local $1) @@ -1689,9 +1302,7 @@ ) ) ) - ;;@ (lib)/memory.ts:112:4 (i32.store8 - ;;@ (lib)/memory.ts:112:14 (block (result i32) (set_local $5 (get_local $0) @@ -1704,9 +1315,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:112:22 (i32.load8_u - ;;@ (lib)/memory.ts:112:31 (block (result i32) (set_local $5 (get_local $1) @@ -1721,9 +1330,7 @@ ) ) ) - ;;@ (lib)/memory.ts:113:4 (i32.store8 - ;;@ (lib)/memory.ts:113:14 (block (result i32) (set_local $5 (get_local $0) @@ -1736,9 +1343,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:113:22 (i32.load8_u - ;;@ (lib)/memory.ts:113:31 (block (result i32) (set_local $5 (get_local $1) @@ -1753,9 +1358,7 @@ ) ) ) - ;;@ (lib)/memory.ts:114:4 (i32.store8 - ;;@ (lib)/memory.ts:114:14 (block (result i32) (set_local $5 (get_local $0) @@ -1768,9 +1371,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:114:22 (i32.load8_u - ;;@ (lib)/memory.ts:114:31 (block (result i32) (set_local $5 (get_local $1) @@ -1785,9 +1386,7 @@ ) ) ) - ;;@ (lib)/memory.ts:115:4 (i32.store8 - ;;@ (lib)/memory.ts:115:14 (block (result i32) (set_local $5 (get_local $0) @@ -1800,9 +1399,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:115:22 (i32.load8_u - ;;@ (lib)/memory.ts:115:31 (block (result i32) (set_local $5 (get_local $1) @@ -1817,9 +1414,7 @@ ) ) ) - ;;@ (lib)/memory.ts:116:4 (i32.store8 - ;;@ (lib)/memory.ts:116:14 (block (result i32) (set_local $5 (get_local $0) @@ -1832,9 +1427,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:116:22 (i32.load8_u - ;;@ (lib)/memory.ts:116:31 (block (result i32) (set_local $5 (get_local $1) @@ -1849,9 +1442,7 @@ ) ) ) - ;;@ (lib)/memory.ts:117:4 (i32.store8 - ;;@ (lib)/memory.ts:117:14 (block (result i32) (set_local $5 (get_local $0) @@ -1864,9 +1455,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:117:22 (i32.load8_u - ;;@ (lib)/memory.ts:117:31 (block (result i32) (set_local $5 (get_local $1) @@ -1883,19 +1472,13 @@ ) ) ) - ;;@ (lib)/memory.ts:119:2 (if - ;;@ (lib)/memory.ts:119:6 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:119:10 (i32.const 8) ) - ;;@ (lib)/memory.ts:119:13 (block - ;;@ (lib)/memory.ts:120:4 (i32.store8 - ;;@ (lib)/memory.ts:120:14 (block (result i32) (set_local $5 (get_local $0) @@ -1908,9 +1491,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:120:22 (i32.load8_u - ;;@ (lib)/memory.ts:120:31 (block (result i32) (set_local $5 (get_local $1) @@ -1925,9 +1506,7 @@ ) ) ) - ;;@ (lib)/memory.ts:121:4 (i32.store8 - ;;@ (lib)/memory.ts:121:14 (block (result i32) (set_local $5 (get_local $0) @@ -1940,9 +1519,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:121:22 (i32.load8_u - ;;@ (lib)/memory.ts:121:31 (block (result i32) (set_local $5 (get_local $1) @@ -1957,9 +1534,7 @@ ) ) ) - ;;@ (lib)/memory.ts:122:4 (i32.store8 - ;;@ (lib)/memory.ts:122:14 (block (result i32) (set_local $5 (get_local $0) @@ -1972,9 +1547,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:122:22 (i32.load8_u - ;;@ (lib)/memory.ts:122:31 (block (result i32) (set_local $5 (get_local $1) @@ -1989,9 +1562,7 @@ ) ) ) - ;;@ (lib)/memory.ts:123:4 (i32.store8 - ;;@ (lib)/memory.ts:123:14 (block (result i32) (set_local $5 (get_local $0) @@ -2004,9 +1575,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:123:22 (i32.load8_u - ;;@ (lib)/memory.ts:123:31 (block (result i32) (set_local $5 (get_local $1) @@ -2021,9 +1590,7 @@ ) ) ) - ;;@ (lib)/memory.ts:124:4 (i32.store8 - ;;@ (lib)/memory.ts:124:14 (block (result i32) (set_local $5 (get_local $0) @@ -2036,9 +1603,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:124:22 (i32.load8_u - ;;@ (lib)/memory.ts:124:31 (block (result i32) (set_local $5 (get_local $1) @@ -2053,9 +1618,7 @@ ) ) ) - ;;@ (lib)/memory.ts:125:4 (i32.store8 - ;;@ (lib)/memory.ts:125:14 (block (result i32) (set_local $5 (get_local $0) @@ -2068,9 +1631,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:125:22 (i32.load8_u - ;;@ (lib)/memory.ts:125:31 (block (result i32) (set_local $5 (get_local $1) @@ -2085,9 +1646,7 @@ ) ) ) - ;;@ (lib)/memory.ts:126:4 (i32.store8 - ;;@ (lib)/memory.ts:126:14 (block (result i32) (set_local $5 (get_local $0) @@ -2100,9 +1659,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:126:22 (i32.load8_u - ;;@ (lib)/memory.ts:126:31 (block (result i32) (set_local $5 (get_local $1) @@ -2117,9 +1674,7 @@ ) ) ) - ;;@ (lib)/memory.ts:127:4 (i32.store8 - ;;@ (lib)/memory.ts:127:14 (block (result i32) (set_local $5 (get_local $0) @@ -2132,9 +1687,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:127:22 (i32.load8_u - ;;@ (lib)/memory.ts:127:31 (block (result i32) (set_local $5 (get_local $1) @@ -2151,19 +1704,13 @@ ) ) ) - ;;@ (lib)/memory.ts:129:2 (if - ;;@ (lib)/memory.ts:129:6 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:129:10 (i32.const 4) ) - ;;@ (lib)/memory.ts:129:13 (block - ;;@ (lib)/memory.ts:130:4 (i32.store8 - ;;@ (lib)/memory.ts:130:14 (block (result i32) (set_local $5 (get_local $0) @@ -2176,9 +1723,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:130:22 (i32.load8_u - ;;@ (lib)/memory.ts:130:31 (block (result i32) (set_local $5 (get_local $1) @@ -2193,9 +1738,7 @@ ) ) ) - ;;@ (lib)/memory.ts:131:4 (i32.store8 - ;;@ (lib)/memory.ts:131:14 (block (result i32) (set_local $5 (get_local $0) @@ -2208,9 +1751,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:131:22 (i32.load8_u - ;;@ (lib)/memory.ts:131:31 (block (result i32) (set_local $5 (get_local $1) @@ -2225,9 +1766,7 @@ ) ) ) - ;;@ (lib)/memory.ts:132:4 (i32.store8 - ;;@ (lib)/memory.ts:132:14 (block (result i32) (set_local $5 (get_local $0) @@ -2240,9 +1779,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:132:22 (i32.load8_u - ;;@ (lib)/memory.ts:132:31 (block (result i32) (set_local $5 (get_local $1) @@ -2257,9 +1794,7 @@ ) ) ) - ;;@ (lib)/memory.ts:133:4 (i32.store8 - ;;@ (lib)/memory.ts:133:14 (block (result i32) (set_local $5 (get_local $0) @@ -2272,9 +1807,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:133:22 (i32.load8_u - ;;@ (lib)/memory.ts:133:31 (block (result i32) (set_local $5 (get_local $1) @@ -2291,19 +1824,13 @@ ) ) ) - ;;@ (lib)/memory.ts:135:2 (if - ;;@ (lib)/memory.ts:135:6 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:135:10 (i32.const 2) ) - ;;@ (lib)/memory.ts:135:13 (block - ;;@ (lib)/memory.ts:136:4 (i32.store8 - ;;@ (lib)/memory.ts:136:14 (block (result i32) (set_local $5 (get_local $0) @@ -2316,9 +1843,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:136:22 (i32.load8_u - ;;@ (lib)/memory.ts:136:31 (block (result i32) (set_local $5 (get_local $1) @@ -2333,9 +1858,7 @@ ) ) ) - ;;@ (lib)/memory.ts:137:4 (i32.store8 - ;;@ (lib)/memory.ts:137:14 (block (result i32) (set_local $5 (get_local $0) @@ -2348,9 +1871,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:137:22 (i32.load8_u - ;;@ (lib)/memory.ts:137:31 (block (result i32) (set_local $5 (get_local $1) @@ -2367,17 +1888,12 @@ ) ) ) - ;;@ (lib)/memory.ts:139:2 (if - ;;@ (lib)/memory.ts:139:6 (i32.and (get_local $2) - ;;@ (lib)/memory.ts:139:10 (i32.const 1) ) - ;;@ (lib)/memory.ts:140:4 (i32.store8 - ;;@ (lib)/memory.ts:140:14 (block (result i32) (set_local $5 (get_local $0) @@ -2390,9 +1906,7 @@ ) (get_local $5) ) - ;;@ (lib)/memory.ts:140:22 (i32.load8_u - ;;@ (lib)/memory.ts:140:31 (block (result i32) (set_local $5 (get_local $1) @@ -2411,20 +1925,14 @@ ) (func "$(lib)/memory/move_memory" (; 4 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32) (local $3 i32) - ;;@ (lib)/memory.ts:148:2 (if - ;;@ (lib)/memory.ts:148:6 (i32.eq (get_local $0) - ;;@ (lib)/memory.ts:148:14 (get_local $1) ) - ;;@ (lib)/memory.ts:149:4 (return) ) - ;;@ (lib)/memory.ts:150:2 (if - ;;@ (lib)/memory.ts:150:6 (i32.and (if (result i32) (i32.ne @@ -2432,106 +1940,73 @@ (i32.le_u (i32.add (get_local $1) - ;;@ (lib)/memory.ts:150:12 (get_local $2) ) - ;;@ (lib)/memory.ts:150:17 (get_local $0) ) ) (i32.const 0) ) (get_local $3) - ;;@ (lib)/memory.ts:150:25 (i32.le_u (i32.add (get_local $0) - ;;@ (lib)/memory.ts:150:32 (get_local $2) ) - ;;@ (lib)/memory.ts:150:37 (get_local $1) ) ) (i32.const 1) ) - ;;@ (lib)/memory.ts:150:42 (block - ;;@ (lib)/memory.ts:151:4 (call "$(lib)/memory/copy_memory" - ;;@ (lib)/memory.ts:151:16 (get_local $0) - ;;@ (lib)/memory.ts:151:22 (get_local $1) - ;;@ (lib)/memory.ts:151:27 (get_local $2) ) - ;;@ (lib)/memory.ts:152:4 (return) ) ) - ;;@ (lib)/memory.ts:154:2 (if - ;;@ (lib)/memory.ts:154:6 (i32.lt_u (get_local $0) - ;;@ (lib)/memory.ts:154:13 (get_local $1) ) - ;;@ (lib)/memory.ts:154:18 (block - ;;@ (lib)/memory.ts:155:4 (if - ;;@ (lib)/memory.ts:155:8 (i32.eq (i32.and - ;;@ (lib)/memory.ts:155:9 (get_local $1) - ;;@ (lib)/memory.ts:155:15 (i32.const 7) ) - ;;@ (lib)/memory.ts:155:21 (i32.and - ;;@ (lib)/memory.ts:155:22 (get_local $0) - ;;@ (lib)/memory.ts:155:29 (i32.const 7) ) ) - ;;@ (lib)/memory.ts:155:33 (block (block $break|0 (loop $continue|0 (if - ;;@ (lib)/memory.ts:156:13 (i32.and (get_local $0) - ;;@ (lib)/memory.ts:156:20 (i32.const 7) ) (block (block - ;;@ (lib)/memory.ts:157:8 (if - ;;@ (lib)/memory.ts:157:12 (i32.eqz - ;;@ (lib)/memory.ts:157:13 (get_local $2) ) - ;;@ (lib)/memory.ts:158:10 (return) ) - ;;@ (lib)/memory.ts:159:8 (set_local $2 (i32.sub - ;;@ (lib)/memory.ts:159:10 (get_local $2) (i32.const 1) ) ) - ;;@ (lib)/memory.ts:160:8 (i32.store8 - ;;@ (lib)/memory.ts:160:18 (block (result i32) (set_local $3 (get_local $0) @@ -2544,9 +2019,7 @@ ) (get_local $3) ) - ;;@ (lib)/memory.ts:160:26 (i32.load8_u - ;;@ (lib)/memory.ts:160:35 (block (result i32) (set_local $3 (get_local $1) @@ -2567,49 +2040,36 @@ ) ) ) - ;;@ (lib)/memory.ts:162:6 (block $break|1 (loop $continue|1 (if - ;;@ (lib)/memory.ts:162:13 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:162:18 (i32.const 8) ) (block (block - ;;@ (lib)/memory.ts:163:8 (i64.store - ;;@ (lib)/memory.ts:163:19 (get_local $0) - ;;@ (lib)/memory.ts:163:25 (i64.load - ;;@ (lib)/memory.ts:163:35 (get_local $1) ) ) - ;;@ (lib)/memory.ts:164:8 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:164:16 (i32.const 8) ) ) - ;;@ (lib)/memory.ts:165:8 (set_local $0 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:165:16 (i32.const 8) ) ) - ;;@ (lib)/memory.ts:166:8 (set_local $1 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:166:16 (i32.const 8) ) ) @@ -2621,17 +2081,13 @@ ) ) ) - ;;@ (lib)/memory.ts:169:4 (block $break|2 (loop $continue|2 (if - ;;@ (lib)/memory.ts:169:11 (get_local $2) (block (block - ;;@ (lib)/memory.ts:170:6 (i32.store8 - ;;@ (lib)/memory.ts:170:16 (block (result i32) (set_local $3 (get_local $0) @@ -2644,9 +2100,7 @@ ) (get_local $3) ) - ;;@ (lib)/memory.ts:170:24 (i32.load8_u - ;;@ (lib)/memory.ts:170:33 (block (result i32) (set_local $3 (get_local $1) @@ -2661,10 +2115,8 @@ ) ) ) - ;;@ (lib)/memory.ts:171:6 (set_local $2 (i32.sub - ;;@ (lib)/memory.ts:171:8 (get_local $2) (i32.const 1) ) @@ -2676,74 +2128,50 @@ ) ) ) - ;;@ (lib)/memory.ts:173:9 (block - ;;@ (lib)/memory.ts:174:4 (if - ;;@ (lib)/memory.ts:174:8 (i32.eq (i32.and - ;;@ (lib)/memory.ts:174:9 (get_local $1) - ;;@ (lib)/memory.ts:174:15 (i32.const 7) ) - ;;@ (lib)/memory.ts:174:21 (i32.and - ;;@ (lib)/memory.ts:174:22 (get_local $0) - ;;@ (lib)/memory.ts:174:29 (i32.const 7) ) ) - ;;@ (lib)/memory.ts:174:33 (block (block $break|3 (loop $continue|3 (if - ;;@ (lib)/memory.ts:175:13 (i32.and (i32.add - ;;@ (lib)/memory.ts:175:14 (get_local $0) - ;;@ (lib)/memory.ts:175:21 (get_local $2) ) - ;;@ (lib)/memory.ts:175:26 (i32.const 7) ) (block (block - ;;@ (lib)/memory.ts:176:8 (if - ;;@ (lib)/memory.ts:176:12 (i32.eqz - ;;@ (lib)/memory.ts:176:13 (get_local $2) ) - ;;@ (lib)/memory.ts:177:10 (return) ) - ;;@ (lib)/memory.ts:178:8 (i32.store8 - ;;@ (lib)/memory.ts:178:18 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:178:25 (tee_local $2 (i32.sub - ;;@ (lib)/memory.ts:178:27 (get_local $2) (i32.const 1) ) ) ) - ;;@ (lib)/memory.ts:178:30 (i32.load8_u - ;;@ (lib)/memory.ts:178:39 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:178:45 (get_local $2) ) ) @@ -2754,40 +2182,29 @@ ) ) ) - ;;@ (lib)/memory.ts:180:6 (block $break|4 (loop $continue|4 (if - ;;@ (lib)/memory.ts:180:13 (i32.ge_u (get_local $2) - ;;@ (lib)/memory.ts:180:18 (i32.const 8) ) (block (block - ;;@ (lib)/memory.ts:181:8 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/memory.ts:181:13 (i32.const 8) ) ) - ;;@ (lib)/memory.ts:182:8 (i64.store - ;;@ (lib)/memory.ts:182:19 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:182:26 (get_local $2) ) - ;;@ (lib)/memory.ts:182:29 (i64.load - ;;@ (lib)/memory.ts:182:39 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:182:45 (get_local $2) ) ) @@ -2800,34 +2217,25 @@ ) ) ) - ;;@ (lib)/memory.ts:185:4 (block $break|5 (loop $continue|5 (if - ;;@ (lib)/memory.ts:185:11 (get_local $2) (block (block - ;;@ (lib)/memory.ts:186:6 (i32.store8 - ;;@ (lib)/memory.ts:186:16 (i32.add (get_local $0) - ;;@ (lib)/memory.ts:186:23 (tee_local $2 (i32.sub - ;;@ (lib)/memory.ts:186:25 (get_local $2) (i32.const 1) ) ) ) - ;;@ (lib)/memory.ts:186:28 (i32.load8_u - ;;@ (lib)/memory.ts:186:37 (i32.add (get_local $1) - ;;@ (lib)/memory.ts:186:43 (get_local $2) ) ) @@ -2848,13 +2256,10 @@ (local $3 i32) (local $4 i32) (local $5 i32) - ;;@ (lib)/set.ts:31:4 (if (i32.eqz - ;;@ (lib)/set.ts:31:11 (i32.ne (get_local $0) - ;;@ (lib)/set.ts:31:19 (i32.const 0) ) ) @@ -2868,36 +2273,27 @@ (unreachable) ) ) - ;;@ (lib)/set.ts:33:4 (if - ;;@ (lib)/set.ts:33:8 (i32.ge_u (i32.load offset=8 (get_local $0) ) - ;;@ (lib)/set.ts:33:23 (i32.load offset=4 (get_local $0) ) ) - ;;@ (lib)/set.ts:33:40 (block - ;;@ (lib)/set.ts:34:6 (set_local $4 - ;;@ (lib)/set.ts:34:24 (select (tee_local $2 - ;;@ (lib)/set.ts:34:28 (i32.shl (i32.load offset=4 (get_local $0) ) - ;;@ (lib)/set.ts:34:47 (i32.const 1) ) ) (tee_local $3 - ;;@ (lib)/set.ts:34:50 (i32.const 8) ) (i32.gt_u @@ -2906,90 +2302,63 @@ ) ) ) - ;;@ (lib)/set.ts:35:6 (set_local $5 - ;;@ (lib)/set.ts:35:22 (call "$(lib)/allocator/arena/allocate_memory" - ;;@ (lib)/set.ts:35:38 (i32.mul (get_local $4) - ;;@ (lib)/set.ts:35:59 (i32.const 4) ) ) ) - ;;@ (lib)/set.ts:36:6 (if - ;;@ (lib)/set.ts:36:10 (i32.load (get_local $0) ) - ;;@ (lib)/set.ts:36:25 (block - ;;@ (lib)/set.ts:37:8 (call "$(lib)/memory/move_memory" - ;;@ (lib)/set.ts:37:20 (get_local $5) - ;;@ (lib)/set.ts:37:31 (i32.load (get_local $0) ) - ;;@ (lib)/set.ts:37:46 (i32.mul (i32.load offset=4 - ;;@ (lib)/set.ts:37:53 (get_local $0) ) - ;;@ (lib)/set.ts:37:71 (i32.const 4) ) ) - ;;@ (lib)/set.ts:38:8 (call "$(lib)/allocator/arena/free_memory" - ;;@ (lib)/set.ts:38:20 (i32.load (get_local $0) ) ) ) ) - ;;@ (lib)/set.ts:40:6 (i32.store offset=4 (get_local $0) - ;;@ (lib)/set.ts:40:24 (get_local $4) ) - ;;@ (lib)/set.ts:41:6 (i32.store (get_local $0) - ;;@ (lib)/set.ts:41:22 (get_local $5) ) ) ) - ;;@ (lib)/set.ts:43:4 (i32.store - ;;@ (lib)/set.ts:43:13 (i32.add (i32.load (get_local $0) ) - ;;@ (lib)/set.ts:43:29 (i32.mul (i32.load offset=8 - ;;@ (lib)/set.ts:43:36 (get_local $0) ) - ;;@ (lib)/set.ts:43:50 (i32.const 4) ) ) - ;;@ (lib)/set.ts:43:63 (get_local $1) ) - ;;@ (lib)/set.ts:44:4 (i32.store offset=8 - ;;@ (lib)/set.ts:44:6 (get_local $0) (i32.add (i32.load offset=8 @@ -2998,7 +2367,6 @@ (i32.const 1) ) ) - ;;@ (lib)/set.ts:45:11 (return (get_local $0) ) @@ -3006,13 +2374,10 @@ (func "$(lib)/set/Set#has" (; 7 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) - ;;@ (lib)/set.ts:22:4 (if (i32.eqz - ;;@ (lib)/set.ts:22:11 (i32.ne (get_local $0) - ;;@ (lib)/set.ts:22:19 (i32.const 0) ) ) @@ -3026,15 +2391,12 @@ (unreachable) ) ) - ;;@ (lib)/set.ts:24:4 (block $break|0 (block (set_local $2 - ;;@ (lib)/set.ts:24:28 (i32.const 0) ) (set_local $3 - ;;@ (lib)/set.ts:24:46 (i32.load offset=8 (get_local $0) ) @@ -3042,43 +2404,32 @@ ) (loop $continue|0 (if - ;;@ (lib)/set.ts:24:59 (i32.lt_u (get_local $2) - ;;@ (lib)/set.ts:24:67 (get_local $3) ) (block - ;;@ (lib)/set.ts:25:6 (if - ;;@ (lib)/set.ts:25:10 (i32.eq (i32.load - ;;@ (lib)/set.ts:25:18 (i32.add (i32.load (get_local $0) ) - ;;@ (lib)/set.ts:25:34 (i32.mul (get_local $2) - ;;@ (lib)/set.ts:25:42 (i32.const 4) ) ) ) - ;;@ (lib)/set.ts:25:58 (get_local $1) ) - ;;@ (lib)/set.ts:26:15 (return (i32.const 1) ) ) - ;;@ (lib)/set.ts:24:74 (set_local $2 (i32.add - ;;@ (lib)/set.ts:24:76 (get_local $2) (i32.const 1) ) @@ -3088,7 +2439,6 @@ ) ) ) - ;;@ (lib)/set.ts:27:11 (return (i32.const 0) ) @@ -3096,13 +2446,10 @@ (func "$(lib)/set/Set#delete" (; 8 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) - ;;@ (lib)/set.ts:49:4 (if (i32.eqz - ;;@ (lib)/set.ts:49:11 (i32.ne (get_local $0) - ;;@ (lib)/set.ts:49:19 (i32.const 0) ) ) @@ -3116,15 +2463,12 @@ (unreachable) ) ) - ;;@ (lib)/set.ts:51:4 (block $break|0 (block (set_local $2 - ;;@ (lib)/set.ts:51:28 (i32.const 0) ) (set_local $3 - ;;@ (lib)/set.ts:51:46 (i32.load offset=8 (get_local $0) ) @@ -3132,98 +2476,71 @@ ) (loop $continue|0 (if - ;;@ (lib)/set.ts:51:59 (i32.lt_u (get_local $2) - ;;@ (lib)/set.ts:51:67 (get_local $3) ) (block - ;;@ (lib)/set.ts:52:6 (if - ;;@ (lib)/set.ts:52:10 (i32.eq (i32.load - ;;@ (lib)/set.ts:52:18 (i32.add (i32.load (get_local $0) ) - ;;@ (lib)/set.ts:52:34 (i32.mul (get_local $2) - ;;@ (lib)/set.ts:52:42 (i32.const 4) ) ) ) - ;;@ (lib)/set.ts:52:58 (get_local $1) ) - ;;@ (lib)/set.ts:52:65 (block - ;;@ (lib)/set.ts:53:8 (if - ;;@ (lib)/set.ts:53:12 (i32.lt_u (i32.add (get_local $2) - ;;@ (lib)/set.ts:53:20 (i32.const 1) ) - ;;@ (lib)/set.ts:53:24 (i32.load offset=8 (get_local $0) ) ) - ;;@ (lib)/set.ts:54:10 (call "$(lib)/memory/move_memory" - ;;@ (lib)/set.ts:54:22 (i32.add (i32.load (get_local $0) ) - ;;@ (lib)/set.ts:54:38 (i32.mul (get_local $2) - ;;@ (lib)/set.ts:54:46 (i32.const 4) ) ) - ;;@ (lib)/set.ts:54:59 (i32.add (i32.load (get_local $0) ) - ;;@ (lib)/set.ts:54:75 (i32.mul (i32.add - ;;@ (lib)/set.ts:54:76 (get_local $2) - ;;@ (lib)/set.ts:54:84 (i32.const 1) ) - ;;@ (lib)/set.ts:54:89 (i32.const 4) ) ) - ;;@ (lib)/set.ts:54:102 (i32.sub (i32.sub (i32.load offset=8 (get_local $0) ) - ;;@ (lib)/set.ts:54:116 (get_local $2) ) - ;;@ (lib)/set.ts:54:124 (i32.const 1) ) ) ) - ;;@ (lib)/set.ts:55:8 (i32.store offset=8 - ;;@ (lib)/set.ts:55:10 (get_local $0) (i32.sub (i32.load offset=8 @@ -3232,16 +2549,13 @@ (i32.const 1) ) ) - ;;@ (lib)/set.ts:56:15 (return (i32.const 1) ) ) ) - ;;@ (lib)/set.ts:51:74 (set_local $2 (i32.add - ;;@ (lib)/set.ts:51:76 (get_local $2) (i32.const 1) ) @@ -3251,19 +2565,15 @@ ) ) ) - ;;@ (lib)/set.ts:58:11 (return (i32.const 0) ) ) (func "$(lib)/set/Set#clear" (; 9 ;) (type $iv) (param $0 i32) - ;;@ (lib)/set.ts:62:4 (if (i32.eqz - ;;@ (lib)/set.ts:62:11 (i32.ne (get_local $0) - ;;@ (lib)/set.ts:62:19 (i32.const 0) ) ) @@ -3277,42 +2587,32 @@ (unreachable) ) ) - ;;@ (lib)/set.ts:64:4 (i32.store offset=8 (get_local $0) - ;;@ (lib)/set.ts:64:18 (i32.const 0) ) ) (func $start (; 10 ;) (type $v) (set_global "$(lib)/allocator/arena/HEAP_OFFSET" - ;;@ (lib)/allocator/arena.ts:11:25 (get_global $HEAP_BASE) ) (set_global $std/set/set - ;;@ std/set.ts:5:10 (call "$(lib)/allocator/arena/allocate_memory" - ;;@ std/set.ts:5:47 (i32.add (i32.const 4) - ;;@ std/set.ts:5:65 (i32.mul (i32.const 2) - ;;@ std/set.ts:5:69 (i32.const 4) ) ) ) ) - ;;@ std/set.ts:7:0 (if (i32.eqz - ;;@ std/set.ts:7:7 (i32.eq (call "$(lib)/set/Set#get:size" (get_global $std/set/set) ) - ;;@ std/set.ts:7:19 (i32.const 0) ) ) @@ -3326,42 +2626,30 @@ (unreachable) ) ) - ;;@ std/set.ts:9:4 (drop (call "$(lib)/set/Set#add" - ;;@ std/set.ts:9:0 (get_global $std/set/set) - ;;@ std/set.ts:9:8 (i32.const 1) ) ) - ;;@ std/set.ts:10:4 (drop (call "$(lib)/set/Set#add" - ;;@ std/set.ts:10:0 (get_global $std/set/set) - ;;@ std/set.ts:10:8 (i32.const 0) ) ) - ;;@ std/set.ts:11:4 (drop (call "$(lib)/set/Set#add" - ;;@ std/set.ts:11:0 (get_global $std/set/set) - ;;@ std/set.ts:11:8 (i32.const 2) ) ) - ;;@ std/set.ts:13:0 (if (i32.eqz - ;;@ std/set.ts:13:7 (i32.eq (call "$(lib)/set/Set#get:size" (get_global $std/set/set) ) - ;;@ std/set.ts:13:19 (i32.const 3) ) ) @@ -3375,14 +2663,10 @@ (unreachable) ) ) - ;;@ std/set.ts:15:0 (if (i32.eqz - ;;@ std/set.ts:15:11 (call "$(lib)/set/Set#has" - ;;@ std/set.ts:15:7 (get_global $std/set/set) - ;;@ std/set.ts:15:15 (i32.const 1) ) ) @@ -3396,14 +2680,10 @@ (unreachable) ) ) - ;;@ std/set.ts:16:0 (if (i32.eqz - ;;@ std/set.ts:16:11 (call "$(lib)/set/Set#has" - ;;@ std/set.ts:16:7 (get_global $std/set/set) - ;;@ std/set.ts:16:15 (i32.const 0) ) ) @@ -3417,14 +2697,10 @@ (unreachable) ) ) - ;;@ std/set.ts:17:0 (if (i32.eqz - ;;@ std/set.ts:17:11 (call "$(lib)/set/Set#has" - ;;@ std/set.ts:17:7 (get_global $std/set/set) - ;;@ std/set.ts:17:15 (i32.const 2) ) ) @@ -3438,16 +2714,11 @@ (unreachable) ) ) - ;;@ std/set.ts:18:0 (if (i32.eqz - ;;@ std/set.ts:18:7 (i32.eqz - ;;@ std/set.ts:18:12 (call "$(lib)/set/Set#has" - ;;@ std/set.ts:18:8 (get_global $std/set/set) - ;;@ std/set.ts:18:16 (i32.const 3) ) ) @@ -3462,24 +2733,18 @@ (unreachable) ) ) - ;;@ std/set.ts:20:4 (drop (call "$(lib)/set/Set#delete" - ;;@ std/set.ts:20:0 (get_global $std/set/set) - ;;@ std/set.ts:20:11 (i32.const 0) ) ) - ;;@ std/set.ts:22:0 (if (i32.eqz - ;;@ std/set.ts:22:7 (i32.eq (call "$(lib)/set/Set#get:size" (get_global $std/set/set) ) - ;;@ std/set.ts:22:19 (i32.const 2) ) ) @@ -3493,14 +2758,10 @@ (unreachable) ) ) - ;;@ std/set.ts:23:0 (if (i32.eqz - ;;@ std/set.ts:23:11 (call "$(lib)/set/Set#has" - ;;@ std/set.ts:23:7 (get_global $std/set/set) - ;;@ std/set.ts:23:15 (i32.const 1) ) ) @@ -3514,16 +2775,11 @@ (unreachable) ) ) - ;;@ std/set.ts:24:0 (if (i32.eqz - ;;@ std/set.ts:24:7 (i32.eqz - ;;@ std/set.ts:24:12 (call "$(lib)/set/Set#has" - ;;@ std/set.ts:24:8 (get_global $std/set/set) - ;;@ std/set.ts:24:16 (i32.const 0) ) ) @@ -3538,14 +2794,10 @@ (unreachable) ) ) - ;;@ std/set.ts:25:0 (if (i32.eqz - ;;@ std/set.ts:25:11 (call "$(lib)/set/Set#has" - ;;@ std/set.ts:25:7 (get_global $std/set/set) - ;;@ std/set.ts:25:15 (i32.const 2) ) ) @@ -3559,20 +2811,15 @@ (unreachable) ) ) - ;;@ std/set.ts:27:4 (call "$(lib)/set/Set#clear" - ;;@ std/set.ts:27:0 (get_global $std/set/set) ) - ;;@ std/set.ts:29:0 (if (i32.eqz - ;;@ std/set.ts:29:7 (i32.eq (call "$(lib)/set/Set#get:size" (get_global $std/set/set) ) - ;;@ std/set.ts:29:19 (i32.const 0) ) ) @@ -3586,16 +2833,11 @@ (unreachable) ) ) - ;;@ std/set.ts:30:0 (if (i32.eqz - ;;@ std/set.ts:30:7 (i32.eqz - ;;@ std/set.ts:30:12 (call "$(lib)/set/Set#has" - ;;@ std/set.ts:30:8 (get_global $std/set/set) - ;;@ std/set.ts:30:16 (i32.const 1) ) ) diff --git a/tests/compiler/std/string.wat b/tests/compiler/std/string.untouched.wat similarity index 64% rename from tests/compiler/std/string.wat rename to tests/compiler/std/string.untouched.wat index 72b626f8..91414efb 100644 --- a/tests/compiler/std/string.wat +++ b/tests/compiler/std/string.untouched.wat @@ -60,13 +60,10 @@ (export "memory" (memory $0)) (start $start) (func "$(lib)/string/String#charCodeAt" (; 1 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32) - ;;@ (lib)/string.ts:38:4 (if (i32.eqz - ;;@ (lib)/string.ts:38:11 (i32.ne (get_local $0) - ;;@ (lib)/string.ts:38:19 (i32.const 0) ) ) @@ -80,34 +77,23 @@ (unreachable) ) ) - ;;@ (lib)/string.ts:40:4 (if - ;;@ (lib)/string.ts:40:8 (i32.ge_u (get_local $1) - ;;@ (lib)/string.ts:40:20 (i32.load (get_local $0) ) ) - ;;@ (lib)/string.ts:41:14 (return - ;;@ (lib)/string.ts:41:13 (i32.const -1) ) ) - ;;@ (lib)/string.ts:46:4 (return - ;;@ (lib)/string.ts:43:11 (i32.load16_u offset=4 - ;;@ (lib)/string.ts:44:6 (i32.add (get_local $0) - ;;@ (lib)/string.ts:44:32 (i32.shl - ;;@ (lib)/string.ts:44:33 (get_local $1) - ;;@ (lib)/string.ts:44:47 (i32.const 1) ) ) @@ -115,38 +101,28 @@ ) ) (func "$(lib)/memory/compare_memory" (; 2 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32) - ;;@ (lib)/memory.ts:262:2 (if - ;;@ (lib)/memory.ts:262:6 (i32.eq (get_local $0) - ;;@ (lib)/memory.ts:262:12 (get_local $1) ) - ;;@ (lib)/memory.ts:263:11 (return (i32.const 0) ) ) - ;;@ (lib)/memory.ts:264:2 (block $break|0 (loop $continue|0 (if - ;;@ (lib)/memory.ts:264:9 (if (result i32) (i32.ne (get_local $2) (i32.const 0) ) - ;;@ (lib)/memory.ts:264:14 (i32.eq (i32.load8_u - ;;@ (lib)/memory.ts:264:23 (get_local $0) ) - ;;@ (lib)/memory.ts:264:30 (i32.load8_u - ;;@ (lib)/memory.ts:264:39 (get_local $1) ) ) @@ -154,21 +130,18 @@ ) (block (block - ;;@ (lib)/memory.ts:265:4 (set_local $2 (i32.sub (get_local $2) (i32.const 1) ) ) - ;;@ (lib)/memory.ts:266:4 (set_local $0 (i32.add (get_local $0) (i32.const 1) ) ) - ;;@ (lib)/memory.ts:267:4 (set_local $1 (i32.add (get_local $1) @@ -181,24 +154,17 @@ ) ) ) - ;;@ (lib)/memory.ts:269:53 (return - ;;@ (lib)/memory.ts:269:9 (if (result i32) (get_local $2) - ;;@ (lib)/memory.ts:269:13 (i32.sub (i32.load8_u - ;;@ (lib)/memory.ts:269:27 (get_local $0) ) - ;;@ (lib)/memory.ts:269:33 (i32.load8_u - ;;@ (lib)/memory.ts:269:47 (get_local $1) ) ) - ;;@ (lib)/memory.ts:269:53 (i32.const 0) ) ) @@ -210,13 +176,10 @@ (local $6 i32) (local $7 i32) (local $8 i32) - ;;@ (lib)/string.ts:166:4 (if (i32.eqz - ;;@ (lib)/string.ts:166:11 (i32.ne (get_local $0) - ;;@ (lib)/string.ts:166:19 (i32.const 0) ) ) @@ -230,45 +193,31 @@ (unreachable) ) ) - ;;@ (lib)/string.ts:168:4 (if - ;;@ (lib)/string.ts:168:8 (i32.eq (get_local $1) - ;;@ (lib)/string.ts:168:24 (i32.const 0) ) - ;;@ (lib)/string.ts:169:6 (set_local $1 - ;;@ (lib)/string.ts:169:21 (i32.const 116) ) ) - ;;@ (lib)/string.ts:171:4 (set_local $3 - ;;@ (lib)/string.ts:171:21 (get_local $2) ) - ;;@ (lib)/string.ts:172:4 (set_local $4 - ;;@ (lib)/string.ts:172:21 (i32.load (get_local $0) ) ) - ;;@ (lib)/string.ts:173:4 (set_local $7 - ;;@ (lib)/string.ts:173:23 (select (tee_local $5 - ;;@ (lib)/string.ts:173:34 (select (tee_local $5 - ;;@ (lib)/string.ts:173:45 (get_local $2) ) (tee_local $6 - ;;@ (lib)/string.ts:173:55 (i32.const 0) ) (i32.gt_s @@ -278,7 +227,6 @@ ) ) (tee_local $6 - ;;@ (lib)/string.ts:173:59 (get_local $4) ) (i32.lt_s @@ -287,62 +235,42 @@ ) ) ) - ;;@ (lib)/string.ts:174:4 (set_local $8 - ;;@ (lib)/string.ts:174:30 (i32.load - ;;@ (lib)/string.ts:174:37 (get_local $1) ) ) - ;;@ (lib)/string.ts:175:4 (if - ;;@ (lib)/string.ts:175:8 (i32.gt_s (i32.add (get_local $8) - ;;@ (lib)/string.ts:175:23 (get_local $7) ) - ;;@ (lib)/string.ts:175:31 (get_local $4) ) - ;;@ (lib)/string.ts:176:13 (return (i32.const 0) ) ) - ;;@ (lib)/string.ts:182:4 (return - ;;@ (lib)/string.ts:178:11 (i32.eqz - ;;@ (lib)/string.ts:178:12 (call "$(lib)/memory/compare_memory" - ;;@ (lib)/string.ts:179:6 (i32.add (i32.add (get_local $0) - ;;@ (lib)/string.ts:179:32 (i32.const 4) ) - ;;@ (lib)/string.ts:179:39 (i32.shl - ;;@ (lib)/string.ts:179:40 (get_local $7) - ;;@ (lib)/string.ts:179:49 (i32.const 1) ) ) - ;;@ (lib)/string.ts:180:6 (i32.add (get_local $1) - ;;@ (lib)/string.ts:180:40 (i32.const 4) ) - ;;@ (lib)/string.ts:181:6 (i32.shl (get_local $8) - ;;@ (lib)/string.ts:181:22 (i32.const 1) ) ) @@ -355,13 +283,10 @@ (local $5 i32) (local $6 i32) (local $7 i32) - ;;@ (lib)/string.ts:103:4 (if (i32.eqz - ;;@ (lib)/string.ts:103:11 (i32.ne (get_local $0) - ;;@ (lib)/string.ts:103:19 (i32.const 0) ) ) @@ -375,32 +300,23 @@ (unreachable) ) ) - ;;@ (lib)/string.ts:105:4 (if - ;;@ (lib)/string.ts:105:8 (i32.eq (get_local $1) - ;;@ (lib)/string.ts:105:24 (i32.const 0) ) - ;;@ (lib)/string.ts:106:13 (return (i32.const 0) ) ) - ;;@ (lib)/string.ts:108:4 (set_local $5 - ;;@ (lib)/string.ts:108:21 (select (tee_local $3 - ;;@ (lib)/string.ts:108:32 (select (tee_local $3 - ;;@ (lib)/string.ts:108:36 (get_local $2) ) (tee_local $4 - ;;@ (lib)/string.ts:108:49 (i32.const 0) ) (i32.gt_s @@ -410,7 +326,6 @@ ) ) (tee_local $4 - ;;@ (lib)/string.ts:108:53 (i32.load (get_local $0) ) @@ -421,66 +336,45 @@ ) ) ) - ;;@ (lib)/string.ts:109:4 (set_local $6 - ;;@ (lib)/string.ts:109:30 (i32.load (get_local $1) ) ) - ;;@ (lib)/string.ts:110:4 (set_local $7 - ;;@ (lib)/string.ts:110:23 (i32.sub (get_local $5) - ;;@ (lib)/string.ts:110:29 (get_local $6) ) ) - ;;@ (lib)/string.ts:111:4 (if - ;;@ (lib)/string.ts:111:8 (i32.lt_s (get_local $7) - ;;@ (lib)/string.ts:111:16 (i32.const 0) ) - ;;@ (lib)/string.ts:112:13 (return (i32.const 0) ) ) - ;;@ (lib)/string.ts:118:4 (return - ;;@ (lib)/string.ts:114:11 (i32.eqz - ;;@ (lib)/string.ts:114:12 (call "$(lib)/memory/compare_memory" - ;;@ (lib)/string.ts:115:6 (i32.add (i32.add (get_local $0) - ;;@ (lib)/string.ts:115:32 (i32.const 4) ) - ;;@ (lib)/string.ts:115:39 (i32.shl - ;;@ (lib)/string.ts:115:40 (get_local $7) - ;;@ (lib)/string.ts:115:49 (i32.const 1) ) ) - ;;@ (lib)/string.ts:116:6 (i32.add (get_local $1) - ;;@ (lib)/string.ts:116:40 (i32.const 4) ) - ;;@ (lib)/string.ts:117:6 (i32.shl (get_local $6) - ;;@ (lib)/string.ts:117:22 (i32.const 1) ) ) @@ -495,13 +389,10 @@ (local $7 i32) (local $8 i32) (local $9 i32) - ;;@ (lib)/string.ts:144:4 (if (i32.eqz - ;;@ (lib)/string.ts:144:11 (i32.ne (get_local $0) - ;;@ (lib)/string.ts:144:19 (i32.const 0) ) ) @@ -515,45 +406,31 @@ (unreachable) ) ) - ;;@ (lib)/string.ts:146:4 (if - ;;@ (lib)/string.ts:146:8 (i32.eq (get_local $1) - ;;@ (lib)/string.ts:146:24 (i32.const 0) ) - ;;@ (lib)/string.ts:147:6 (set_local $1 - ;;@ (lib)/string.ts:147:21 (i32.const 116) ) ) - ;;@ (lib)/string.ts:149:4 (set_local $3 - ;;@ (lib)/string.ts:149:21 (get_local $2) ) - ;;@ (lib)/string.ts:150:4 (set_local $4 - ;;@ (lib)/string.ts:150:21 (i32.load (get_local $0) ) ) - ;;@ (lib)/string.ts:151:4 (set_local $7 - ;;@ (lib)/string.ts:151:23 (select (tee_local $5 - ;;@ (lib)/string.ts:151:34 (select (tee_local $5 - ;;@ (lib)/string.ts:151:45 (get_local $3) ) (tee_local $6 - ;;@ (lib)/string.ts:151:50 (i32.const 0) ) (i32.gt_s @@ -563,7 +440,6 @@ ) ) (tee_local $6 - ;;@ (lib)/string.ts:151:54 (get_local $4) ) (i32.lt_s @@ -572,79 +448,54 @@ ) ) ) - ;;@ (lib)/string.ts:152:4 (set_local $8 - ;;@ (lib)/string.ts:152:27 (i32.load - ;;@ (lib)/string.ts:152:34 (get_local $1) ) ) - ;;@ (lib)/string.ts:155:4 (block $break|0 - ;;@ (lib)/string.ts:155:9 (set_local $9 - ;;@ (lib)/string.ts:155:24 (get_local $7) ) (loop $continue|0 (if - ;;@ (lib)/string.ts:155:31 (i32.le_s (i32.add (get_local $9) - ;;@ (lib)/string.ts:155:42 (get_local $8) ) - ;;@ (lib)/string.ts:155:55 (get_local $4) ) (block - ;;@ (lib)/string.ts:156:6 (if - ;;@ (lib)/string.ts:156:10 (i32.eqz - ;;@ (lib)/string.ts:156:11 (call "$(lib)/memory/compare_memory" - ;;@ (lib)/string.ts:157:8 (i32.add (i32.add (get_local $0) - ;;@ (lib)/string.ts:157:34 (i32.const 4) ) - ;;@ (lib)/string.ts:157:41 (i32.shl - ;;@ (lib)/string.ts:157:42 (get_local $9) - ;;@ (lib)/string.ts:157:47 (i32.const 1) ) ) - ;;@ (lib)/string.ts:158:8 (i32.add (get_local $1) - ;;@ (lib)/string.ts:158:42 (i32.const 4) ) - ;;@ (lib)/string.ts:159:8 (i32.shl (get_local $8) - ;;@ (lib)/string.ts:159:21 (i32.const 1) ) ) ) - ;;@ (lib)/string.ts:161:20 (return - ;;@ (lib)/string.ts:161:15 (get_local $9) ) ) - ;;@ (lib)/string.ts:155:60 (set_local $9 (i32.add - ;;@ (lib)/string.ts:155:62 (get_local $9) (i32.const 1) ) @@ -654,33 +505,23 @@ ) ) ) - ;;@ (lib)/string.ts:162:12 (return - ;;@ (lib)/string.ts:162:11 (i32.const -1) ) ) (func "$(lib)/string/String#includes" (; 6 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32) - ;;@ (lib)/string.ts:140:52 (return - ;;@ (lib)/string.ts:140:11 (i32.ne - ;;@ (lib)/string.ts:140:16 (call "$(lib)/string/String#indexOf" - ;;@ (lib)/string.ts:140:11 (get_local $0) - ;;@ (lib)/string.ts:140:24 (get_local $1) - ;;@ (lib)/string.ts:140:38 (get_local $2) ) - ;;@ (lib)/string.ts:140:51 (i32.const -1) ) ) ) (func $std/string/getString (; 7 ;) (type $i) (result i32) - ;;@ std/string.ts:17:9 (return (get_global $std/string/str) ) @@ -692,179 +533,123 @@ (local $5 f64) (local $6 i32) (local $7 f64) - ;;@ (lib)/string.ts:366:2 (set_local $2 - ;;@ (lib)/string.ts:366:17 (i32.load (get_local $0) ) ) - ;;@ (lib)/string.ts:367:2 (if - ;;@ (lib)/string.ts:367:6 (i32.eqz - ;;@ (lib)/string.ts:367:7 (get_local $2) ) - ;;@ (lib)/string.ts:368:14 (return - ;;@ (lib)/string.ts:368:11 (f64.const nan:0x8000000000000) ) ) - ;;@ (lib)/string.ts:369:2 (set_local $3 - ;;@ (lib)/string.ts:369:12 (get_local $0) ) - ;;@ (lib)/string.ts:370:2 (set_local $4 - ;;@ (lib)/string.ts:370:13 (i32.load16_u offset=4 - ;;@ (lib)/string.ts:370:28 (get_local $3) ) ) - ;;@ (lib)/string.ts:373:2 (nop) - ;;@ (lib)/string.ts:374:2 (if - ;;@ (lib)/string.ts:374:6 (i32.eq (get_local $4) - ;;@ (lib)/string.ts:374:14 (i32.const 45) ) - ;;@ (lib)/string.ts:374:30 (block - ;;@ (lib)/string.ts:375:4 (if - ;;@ (lib)/string.ts:375:8 (i32.eqz - ;;@ (lib)/string.ts:375:9 (tee_local $2 (i32.sub - ;;@ (lib)/string.ts:375:11 (get_local $2) (i32.const 1) ) ) ) - ;;@ (lib)/string.ts:376:16 (return - ;;@ (lib)/string.ts:376:13 (f64.const nan:0x8000000000000) ) ) - ;;@ (lib)/string.ts:377:4 (set_local $4 - ;;@ (lib)/string.ts:377:11 (i32.load16_u offset=4 - ;;@ (lib)/string.ts:377:26 (tee_local $3 (i32.add (get_local $3) - ;;@ (lib)/string.ts:377:33 (i32.const 2) ) ) ) ) - ;;@ (lib)/string.ts:378:4 (set_local $5 - ;;@ (lib)/string.ts:378:11 (f64.const -1) ) ) - ;;@ (lib)/string.ts:379:9 (if - ;;@ (lib)/string.ts:379:13 (i32.eq (get_local $4) - ;;@ (lib)/string.ts:379:21 (i32.const 43) ) - ;;@ (lib)/string.ts:379:36 (block - ;;@ (lib)/string.ts:380:4 (if - ;;@ (lib)/string.ts:380:8 (i32.eqz - ;;@ (lib)/string.ts:380:9 (tee_local $2 (i32.sub - ;;@ (lib)/string.ts:380:11 (get_local $2) (i32.const 1) ) ) ) - ;;@ (lib)/string.ts:381:16 (return - ;;@ (lib)/string.ts:381:13 (f64.const nan:0x8000000000000) ) ) - ;;@ (lib)/string.ts:382:4 (set_local $4 - ;;@ (lib)/string.ts:382:11 (i32.load16_u offset=4 - ;;@ (lib)/string.ts:382:26 (tee_local $3 (i32.add (get_local $3) - ;;@ (lib)/string.ts:382:33 (i32.const 2) ) ) ) ) - ;;@ (lib)/string.ts:383:4 (set_local $5 - ;;@ (lib)/string.ts:383:11 (f64.const 1) ) ) - ;;@ (lib)/string.ts:385:4 (set_local $5 - ;;@ (lib)/string.ts:385:11 (f64.const 1) ) ) ) - ;;@ (lib)/string.ts:388:2 (if - ;;@ (lib)/string.ts:388:6 (i32.eqz - ;;@ (lib)/string.ts:388:7 (get_local $1) ) - ;;@ (lib)/string.ts:389:4 (if - ;;@ (lib)/string.ts:389:8 (i32.and (if (result i32) (i32.ne (tee_local $6 (i32.eq (get_local $4) - ;;@ (lib)/string.ts:389:16 (i32.const 48) ) ) (i32.const 0) ) - ;;@ (lib)/string.ts:389:31 (i32.gt_s (get_local $2) - ;;@ (lib)/string.ts:389:37 (i32.const 2) ) (get_local $6) ) (i32.const 1) ) - ;;@ (lib)/string.ts:390:6 (block $break|0 (block $case6|0 (block $case5|0 @@ -874,12 +659,9 @@ (block $case1|0 (block $case0|0 (set_local $6 - ;;@ (lib)/string.ts:390:14 (i32.load16_u offset=4 - ;;@ (lib)/string.ts:390:29 (i32.add (get_local $3) - ;;@ (lib)/string.ts:390:35 (i32.const 2) ) ) @@ -887,176 +669,134 @@ (br_if $case0|0 (i32.eq (get_local $6) - ;;@ (lib)/string.ts:392:13 (i32.const 66) ) ) (br_if $case1|0 (i32.eq (get_local $6) - ;;@ (lib)/string.ts:393:13 (i32.const 98) ) ) (br_if $case2|0 (i32.eq (get_local $6) - ;;@ (lib)/string.ts:398:13 (i32.const 79) ) ) (br_if $case3|0 (i32.eq (get_local $6) - ;;@ (lib)/string.ts:399:13 (i32.const 111) ) ) (br_if $case4|0 (i32.eq (get_local $6) - ;;@ (lib)/string.ts:404:13 (i32.const 88) ) ) (br_if $case5|0 (i32.eq (get_local $6) - ;;@ (lib)/string.ts:405:13 (i32.const 120) ) ) (br $case6|0) ) ) - ;;@ (lib)/string.ts:394:10 (set_local $3 (i32.add (get_local $3) - ;;@ (lib)/string.ts:394:17 (i32.const 4) ) ) - ;;@ (lib)/string.ts:394:20 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/string.ts:394:27 (i32.const 2) ) ) - ;;@ (lib)/string.ts:395:10 (set_local $1 - ;;@ (lib)/string.ts:395:18 (i32.const 2) ) - ;;@ (lib)/string.ts:396:10 (br $break|0) ) ) - ;;@ (lib)/string.ts:400:10 (set_local $3 (i32.add (get_local $3) - ;;@ (lib)/string.ts:400:17 (i32.const 4) ) ) - ;;@ (lib)/string.ts:400:20 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/string.ts:400:27 (i32.const 2) ) ) - ;;@ (lib)/string.ts:401:10 (set_local $1 - ;;@ (lib)/string.ts:401:18 (i32.const 8) ) - ;;@ (lib)/string.ts:402:10 (br $break|0) ) ) - ;;@ (lib)/string.ts:406:10 (set_local $3 (i32.add (get_local $3) - ;;@ (lib)/string.ts:406:17 (i32.const 4) ) ) - ;;@ (lib)/string.ts:406:20 (set_local $2 (i32.sub (get_local $2) - ;;@ (lib)/string.ts:406:27 (i32.const 2) ) ) - ;;@ (lib)/string.ts:407:10 (set_local $1 - ;;@ (lib)/string.ts:407:18 (i32.const 16) ) - ;;@ (lib)/string.ts:408:10 (br $break|0) ) - ;;@ (lib)/string.ts:411:10 (set_local $1 - ;;@ (lib)/string.ts:411:18 (i32.const 10) ) ) - ;;@ (lib)/string.ts:413:11 (set_local $1 - ;;@ (lib)/string.ts:413:19 (i32.const 10) ) ) - ;;@ (lib)/string.ts:414:9 (if - ;;@ (lib)/string.ts:414:13 (i32.and (if (result i32) (i32.ne (tee_local $6 (i32.lt_s (get_local $1) - ;;@ (lib)/string.ts:414:21 (i32.const 2) ) ) (i32.const 0) ) (get_local $6) - ;;@ (lib)/string.ts:414:26 (i32.gt_s (get_local $1) - ;;@ (lib)/string.ts:414:34 (i32.const 36) ) ) (i32.const 1) ) - ;;@ (lib)/string.ts:415:14 (return - ;;@ (lib)/string.ts:415:11 (f64.const nan:0x8000000000000) ) ) ) - ;;@ (lib)/string.ts:418:2 (set_local $7 - ;;@ (lib)/string.ts:418:15 (f64.const 0) ) - ;;@ (lib)/string.ts:419:2 (block $break|1 (loop $continue|1 (if - ;;@ (lib)/string.ts:419:9 (block (result i32) (set_local $6 (get_local $2) @@ -1071,160 +811,122 @@ ) (block (block - ;;@ (lib)/string.ts:420:4 (set_local $4 - ;;@ (lib)/string.ts:420:11 (i32.load16_u offset=4 - ;;@ (lib)/string.ts:420:26 (get_local $3) ) ) - ;;@ (lib)/string.ts:421:4 (if - ;;@ (lib)/string.ts:421:8 (i32.and (if (result i32) (i32.ne (tee_local $6 (i32.ge_s (get_local $4) - ;;@ (lib)/string.ts:421:16 (i32.const 48) ) ) (i32.const 0) ) - ;;@ (lib)/string.ts:421:31 (i32.le_s (get_local $4) - ;;@ (lib)/string.ts:421:39 (i32.const 57) ) (get_local $6) ) (i32.const 1) ) - ;;@ (lib)/string.ts:422:6 (set_local $4 (i32.sub (get_local $4) - ;;@ (lib)/string.ts:422:14 (i32.const 48) ) ) - ;;@ (lib)/string.ts:423:9 (if - ;;@ (lib)/string.ts:423:13 (i32.and (if (result i32) (i32.ne (tee_local $6 (i32.ge_s (get_local $4) - ;;@ (lib)/string.ts:423:21 (i32.const 65) ) ) (i32.const 0) ) - ;;@ (lib)/string.ts:423:35 (i32.le_s (get_local $4) - ;;@ (lib)/string.ts:423:43 (i32.const 90) ) (get_local $6) ) (i32.const 1) ) - ;;@ (lib)/string.ts:424:6 (set_local $4 (i32.sub (get_local $4) - ;;@ (lib)/string.ts:424:14 (i32.sub (i32.const 65) - ;;@ (lib)/string.ts:424:27 (i32.const 10) ) ) ) - ;;@ (lib)/string.ts:425:9 (if - ;;@ (lib)/string.ts:425:13 (i32.and (if (result i32) (i32.ne (tee_local $6 (i32.ge_s (get_local $4) - ;;@ (lib)/string.ts:425:21 (i32.const 97) ) ) (i32.const 0) ) - ;;@ (lib)/string.ts:425:35 (i32.le_s (get_local $4) - ;;@ (lib)/string.ts:425:43 (i32.const 122) ) (get_local $6) ) (i32.const 1) ) - ;;@ (lib)/string.ts:426:6 (set_local $4 (i32.sub (get_local $4) - ;;@ (lib)/string.ts:426:14 (i32.sub (i32.const 97) - ;;@ (lib)/string.ts:426:27 (i32.const 10) ) ) ) - ;;@ (lib)/string.ts:428:6 (br $break|1) ) ) ) - ;;@ (lib)/string.ts:429:4 (if - ;;@ (lib)/string.ts:429:8 (i32.ge_s (get_local $4) - ;;@ (lib)/string.ts:429:16 (get_local $1) ) - ;;@ (lib)/string.ts:430:6 (br $break|1) ) - ;;@ (lib)/string.ts:431:4 (set_local $7 - ;;@ (lib)/string.ts:431:10 (f64.add (f64.mul - ;;@ (lib)/string.ts:431:11 (get_local $7) - ;;@ (lib)/string.ts:431:17 (f64.convert_s/i32 (get_local $1) ) ) - ;;@ (lib)/string.ts:431:26 (f64.convert_s/i32 (get_local $4) ) ) ) - ;;@ (lib)/string.ts:432:4 (set_local $3 (i32.add (get_local $3) - ;;@ (lib)/string.ts:432:11 (i32.const 2) ) ) @@ -1234,24 +936,17 @@ ) ) ) - ;;@ (lib)/string.ts:434:16 (return - ;;@ (lib)/string.ts:434:9 (f64.mul (get_local $5) - ;;@ (lib)/string.ts:434:16 (get_local $7) ) ) ) (func "$(lib)/string/parseInt" (; 9 ;) (type $iiF) (param $0 i32) (param $1 i32) (result f64) - ;;@ (lib)/string.ts:354:30 (return - ;;@ (lib)/string.ts:354:9 (call "$(lib)/string/parse" - ;;@ (lib)/string.ts:354:20 (get_local $0) - ;;@ (lib)/string.ts:354:25 (get_local $1) ) ) @@ -1264,153 +959,105 @@ (local $5 f64) (local $6 i32) (local $7 f64) - ;;@ (lib)/string.ts:438:2 (set_local $1 - ;;@ (lib)/string.ts:438:17 (i32.load (get_local $0) ) ) - ;;@ (lib)/string.ts:439:2 (if - ;;@ (lib)/string.ts:439:6 (i32.eqz - ;;@ (lib)/string.ts:439:7 (get_local $1) ) - ;;@ (lib)/string.ts:440:11 (return (f64.const nan:0x8000000000000) ) ) - ;;@ (lib)/string.ts:441:2 (set_local $2 - ;;@ (lib)/string.ts:441:12 (get_local $0) ) - ;;@ (lib)/string.ts:442:2 (set_local $3 - ;;@ (lib)/string.ts:442:13 (i32.load16_u offset=4 - ;;@ (lib)/string.ts:442:28 (get_local $2) ) ) - ;;@ (lib)/string.ts:445:2 (nop) - ;;@ (lib)/string.ts:446:2 (if - ;;@ (lib)/string.ts:446:6 (i32.eq (get_local $3) - ;;@ (lib)/string.ts:446:14 (i32.const 45) ) - ;;@ (lib)/string.ts:446:30 (block - ;;@ (lib)/string.ts:447:4 (if - ;;@ (lib)/string.ts:447:8 (i32.eqz - ;;@ (lib)/string.ts:447:9 (tee_local $1 (i32.sub - ;;@ (lib)/string.ts:447:11 (get_local $1) (i32.const 1) ) ) ) - ;;@ (lib)/string.ts:448:13 (return (f64.const nan:0x8000000000000) ) ) - ;;@ (lib)/string.ts:449:4 (set_local $3 - ;;@ (lib)/string.ts:449:11 (i32.load16_u offset=4 - ;;@ (lib)/string.ts:449:26 (tee_local $2 (i32.add (get_local $2) - ;;@ (lib)/string.ts:449:33 (i32.const 2) ) ) ) ) - ;;@ (lib)/string.ts:450:4 (set_local $4 - ;;@ (lib)/string.ts:450:11 (f64.const -1) ) ) - ;;@ (lib)/string.ts:451:9 (if - ;;@ (lib)/string.ts:451:13 (i32.eq (get_local $3) - ;;@ (lib)/string.ts:451:21 (i32.const 43) ) - ;;@ (lib)/string.ts:451:36 (block - ;;@ (lib)/string.ts:452:4 (if - ;;@ (lib)/string.ts:452:8 (i32.eqz - ;;@ (lib)/string.ts:452:9 (tee_local $1 (i32.sub - ;;@ (lib)/string.ts:452:11 (get_local $1) (i32.const 1) ) ) ) - ;;@ (lib)/string.ts:453:13 (return (f64.const nan:0x8000000000000) ) ) - ;;@ (lib)/string.ts:454:4 (set_local $3 - ;;@ (lib)/string.ts:454:11 (i32.load16_u offset=4 - ;;@ (lib)/string.ts:454:26 (tee_local $2 (i32.add (get_local $2) - ;;@ (lib)/string.ts:454:33 (i32.const 2) ) ) ) ) - ;;@ (lib)/string.ts:455:4 (set_local $4 - ;;@ (lib)/string.ts:455:11 (f64.const 1) ) ) - ;;@ (lib)/string.ts:457:4 (set_local $4 - ;;@ (lib)/string.ts:457:11 (f64.const 1) ) ) ) - ;;@ (lib)/string.ts:460:2 (set_local $5 - ;;@ (lib)/string.ts:460:17 (f64.const 0) ) - ;;@ (lib)/string.ts:461:2 (block $break|0 (loop $continue|0 (if - ;;@ (lib)/string.ts:461:9 (block (result i32) (set_local $6 (get_local $1) @@ -1425,42 +1072,29 @@ ) (block (block - ;;@ (lib)/string.ts:462:4 (set_local $3 - ;;@ (lib)/string.ts:462:11 (i32.load16_u offset=4 - ;;@ (lib)/string.ts:462:26 (get_local $2) ) ) - ;;@ (lib)/string.ts:463:4 (if - ;;@ (lib)/string.ts:463:8 (i32.eq (get_local $3) - ;;@ (lib)/string.ts:463:16 (i32.const 46) ) - ;;@ (lib)/string.ts:463:30 (block - ;;@ (lib)/string.ts:464:6 (set_local $2 (i32.add (get_local $2) - ;;@ (lib)/string.ts:464:13 (i32.const 2) ) ) - ;;@ (lib)/string.ts:465:6 (set_local $7 - ;;@ (lib)/string.ts:465:21 (f64.const 0.1) ) - ;;@ (lib)/string.ts:466:6 (block $break|1 (loop $continue|1 (if - ;;@ (lib)/string.ts:466:13 (block (result i32) (set_local $6 (get_local $1) @@ -1475,43 +1109,33 @@ ) (block (block - ;;@ (lib)/string.ts:467:8 (set_local $3 - ;;@ (lib)/string.ts:467:15 (i32.load16_u offset=4 - ;;@ (lib)/string.ts:467:30 (get_local $2) ) ) - ;;@ (lib)/string.ts:468:8 (if - ;;@ (lib)/string.ts:468:12 (i32.and (if (result i32) (i32.ne (tee_local $6 (i32.eq (get_local $3) - ;;@ (lib)/string.ts:468:20 (i32.const 69) ) ) (i32.const 0) ) (get_local $6) - ;;@ (lib)/string.ts:468:34 (i32.eq (get_local $3) - ;;@ (lib)/string.ts:468:42 (i32.const 101) ) ) (i32.const 1) ) - ;;@ (lib)/string.ts:469:10 (if (i32.eqz - ;;@ (lib)/string.ts:469:17 (i32.const 0) ) (block @@ -1525,52 +1149,39 @@ ) ) ) - ;;@ (lib)/string.ts:470:8 (set_local $3 (i32.sub (get_local $3) - ;;@ (lib)/string.ts:470:16 (i32.const 48) ) ) - ;;@ (lib)/string.ts:471:8 (if - ;;@ (lib)/string.ts:471:12 (i32.gt_u (get_local $3) - ;;@ (lib)/string.ts:471:24 (i32.const 9) ) - ;;@ (lib)/string.ts:472:10 (br $break|1) ) - ;;@ (lib)/string.ts:473:8 (set_local $5 (f64.add (get_local $5) - ;;@ (lib)/string.ts:473:15 (f64.mul (f64.convert_s/i32 (get_local $3) ) - ;;@ (lib)/string.ts:473:27 (get_local $7) ) ) ) - ;;@ (lib)/string.ts:474:8 (set_local $7 (f64.mul (get_local $7) - ;;@ (lib)/string.ts:474:15 (f64.const 0.1) ) ) - ;;@ (lib)/string.ts:475:8 (set_local $2 (i32.add (get_local $2) - ;;@ (lib)/string.ts:475:15 (i32.const 2) ) ) @@ -1580,50 +1191,36 @@ ) ) ) - ;;@ (lib)/string.ts:477:6 (br $break|0) ) ) - ;;@ (lib)/string.ts:479:4 (set_local $3 (i32.sub (get_local $3) - ;;@ (lib)/string.ts:479:12 (i32.const 48) ) ) - ;;@ (lib)/string.ts:480:4 (if - ;;@ (lib)/string.ts:480:8 (i32.ge_u (get_local $3) - ;;@ (lib)/string.ts:480:21 (i32.const 10) ) - ;;@ (lib)/string.ts:481:6 (br $break|0) ) - ;;@ (lib)/string.ts:482:4 (set_local $5 - ;;@ (lib)/string.ts:482:10 (f64.add (f64.mul - ;;@ (lib)/string.ts:482:11 (get_local $5) - ;;@ (lib)/string.ts:482:17 (f64.const 10) ) - ;;@ (lib)/string.ts:482:23 (f64.convert_s/i32 (get_local $3) ) ) ) - ;;@ (lib)/string.ts:483:4 (set_local $2 (i32.add (get_local $2) - ;;@ (lib)/string.ts:483:11 (i32.const 2) ) ) @@ -1633,24 +1230,18 @@ ) ) ) - ;;@ (lib)/string.ts:485:16 (return - ;;@ (lib)/string.ts:485:9 (f64.mul (get_local $4) - ;;@ (lib)/string.ts:485:16 (get_local $5) ) ) ) (func $start (; 11 ;) (type $v) - ;;@ std/string.ts:6:0 (if (i32.eqz - ;;@ std/string.ts:6:7 (i32.eq (get_global $std/string/str) - ;;@ std/string.ts:6:33 (i32.const 4) ) ) @@ -1664,15 +1255,12 @@ (unreachable) ) ) - ;;@ std/string.ts:8:0 (if (i32.eqz - ;;@ std/string.ts:8:7 (i32.eq (i32.load (get_global $std/string/str) ) - ;;@ std/string.ts:8:21 (i32.const 16) ) ) @@ -1686,19 +1274,13 @@ (unreachable) ) ) - ;;@ std/string.ts:9:0 (if (i32.eqz - ;;@ std/string.ts:9:7 (i32.eq - ;;@ std/string.ts:9:11 (call "$(lib)/string/String#charCodeAt" - ;;@ std/string.ts:9:7 (get_global $std/string/str) - ;;@ std/string.ts:9:22 (i32.const 0) ) - ;;@ std/string.ts:9:28 (i32.const 104) ) ) @@ -1712,16 +1294,11 @@ (unreachable) ) ) - ;;@ std/string.ts:10:0 (if (i32.eqz - ;;@ std/string.ts:10:11 (call "$(lib)/string/String#startsWith" - ;;@ std/string.ts:10:7 (get_global $std/string/str) - ;;@ std/string.ts:10:22 (i32.const 108) - ;;@ (lib)/string.ts:165:51 (i32.const 0) ) ) @@ -1735,16 +1312,11 @@ (unreachable) ) ) - ;;@ std/string.ts:11:0 (if (i32.eqz - ;;@ std/string.ts:11:11 (call "$(lib)/string/String#endsWith" - ;;@ std/string.ts:11:7 (get_global $std/string/str) - ;;@ std/string.ts:11:20 (i32.const 128) - ;;@ (lib)/string.ts:102:52 (i32.const 2147483647) ) ) @@ -1758,16 +1330,11 @@ (unreachable) ) ) - ;;@ std/string.ts:12:0 (if (i32.eqz - ;;@ std/string.ts:12:11 (call "$(lib)/string/String#includes" - ;;@ std/string.ts:12:7 (get_global $std/string/str) - ;;@ std/string.ts:12:20 (i32.const 144) - ;;@ (lib)/string.ts:139:49 (i32.const 0) ) ) @@ -1781,20 +1348,14 @@ (unreachable) ) ) - ;;@ std/string.ts:13:0 (if (i32.eqz - ;;@ std/string.ts:13:7 (i32.eq - ;;@ std/string.ts:13:11 (call "$(lib)/string/String#indexOf" - ;;@ std/string.ts:13:7 (get_global $std/string/str) - ;;@ std/string.ts:13:19 (i32.const 156) (i32.const 0) ) - ;;@ std/string.ts:13:27 (i32.const 2) ) ) @@ -1808,21 +1369,14 @@ (unreachable) ) ) - ;;@ std/string.ts:14:0 (if (i32.eqz - ;;@ std/string.ts:14:7 (i32.eq - ;;@ std/string.ts:14:11 (call "$(lib)/string/String#indexOf" - ;;@ std/string.ts:14:7 (get_global $std/string/str) - ;;@ std/string.ts:14:19 (i32.const 164) - ;;@ (lib)/string.ts:143:48 (i32.const 0) ) - ;;@ std/string.ts:14:27 (i32.const -1) ) ) @@ -1836,17 +1390,13 @@ (unreachable) ) ) - ;;@ std/string.ts:20:0 (if (i32.eqz - ;;@ std/string.ts:20:7 (f64.eq (call "$(lib)/string/parseInt" - ;;@ std/string.ts:20:16 (i32.const 172) (i32.const 0) ) - ;;@ std/string.ts:20:24 (f64.const 0) ) ) @@ -1860,17 +1410,13 @@ (unreachable) ) ) - ;;@ std/string.ts:21:0 (if (i32.eqz - ;;@ std/string.ts:21:7 (f64.eq (call "$(lib)/string/parseInt" - ;;@ std/string.ts:21:16 (i32.const 180) (i32.const 0) ) - ;;@ std/string.ts:21:24 (f64.const 1) ) ) @@ -1884,17 +1430,13 @@ (unreachable) ) ) - ;;@ std/string.ts:22:0 (if (i32.eqz - ;;@ std/string.ts:22:7 (f64.eq (call "$(lib)/string/parseInt" - ;;@ std/string.ts:22:16 (i32.const 188) (i32.const 0) ) - ;;@ std/string.ts:22:28 (f64.const 5) ) ) @@ -1908,17 +1450,13 @@ (unreachable) ) ) - ;;@ std/string.ts:23:0 (if (i32.eqz - ;;@ std/string.ts:23:7 (f64.eq (call "$(lib)/string/parseInt" - ;;@ std/string.ts:23:16 (i32.const 204) (i32.const 0) ) - ;;@ std/string.ts:23:28 (f64.const 455) ) ) @@ -1932,17 +1470,13 @@ (unreachable) ) ) - ;;@ std/string.ts:24:0 (if (i32.eqz - ;;@ std/string.ts:24:7 (f64.eq (call "$(lib)/string/parseInt" - ;;@ std/string.ts:24:16 (i32.const 220) (i32.const 0) ) - ;;@ std/string.ts:24:28 (f64.const 3855) ) ) @@ -1956,17 +1490,13 @@ (unreachable) ) ) - ;;@ std/string.ts:25:0 (if (i32.eqz - ;;@ std/string.ts:25:7 (f64.eq (call "$(lib)/string/parseInt" - ;;@ std/string.ts:25:16 (i32.const 236) (i32.const 0) ) - ;;@ std/string.ts:25:28 (f64.const 3855) ) ) @@ -1980,17 +1510,13 @@ (unreachable) ) ) - ;;@ std/string.ts:26:0 (if (i32.eqz - ;;@ std/string.ts:26:7 (f64.eq (call "$(lib)/string/parseInt" - ;;@ std/string.ts:26:16 (i32.const 252) (i32.const 0) ) - ;;@ std/string.ts:26:26 (f64.const 11) ) ) @@ -2004,18 +1530,13 @@ (unreachable) ) ) - ;;@ std/string.ts:27:0 (if (i32.eqz - ;;@ std/string.ts:27:7 (f64.eq (call "$(lib)/string/parseInt" - ;;@ std/string.ts:27:16 (i32.const 264) - ;;@ (lib)/string.ts:353:51 (i32.const 0) ) - ;;@ std/string.ts:27:27 (f64.const 1) ) ) @@ -2029,16 +1550,12 @@ (unreachable) ) ) - ;;@ std/string.ts:29:0 (if (i32.eqz - ;;@ std/string.ts:29:7 (f64.eq (call "$(lib)/string/parseFloat" - ;;@ std/string.ts:29:18 (i32.const 172) ) - ;;@ std/string.ts:29:26 (f64.const 0) ) ) @@ -2052,16 +1569,12 @@ (unreachable) ) ) - ;;@ std/string.ts:30:0 (if (i32.eqz - ;;@ std/string.ts:30:7 (f64.eq (call "$(lib)/string/parseFloat" - ;;@ std/string.ts:30:18 (i32.const 180) ) - ;;@ std/string.ts:30:26 (f64.const 1) ) ) @@ -2075,16 +1588,12 @@ (unreachable) ) ) - ;;@ std/string.ts:31:0 (if (i32.eqz - ;;@ std/string.ts:31:7 (f64.eq (call "$(lib)/string/parseFloat" - ;;@ std/string.ts:31:18 (i32.const 276) ) - ;;@ std/string.ts:31:28 (f64.const 0.1) ) ) @@ -2098,16 +1607,12 @@ (unreachable) ) ) - ;;@ std/string.ts:32:0 (if (i32.eqz - ;;@ std/string.ts:32:7 (f64.eq (call "$(lib)/string/parseFloat" - ;;@ std/string.ts:32:18 (i32.const 288) ) - ;;@ std/string.ts:32:28 (f64.const 0.25) ) ) @@ -2121,16 +1626,12 @@ (unreachable) ) ) - ;;@ std/string.ts:33:0 (if (i32.eqz - ;;@ std/string.ts:33:7 (f64.eq (call "$(lib)/string/parseFloat" - ;;@ std/string.ts:33:18 (i32.const 300) ) - ;;@ std/string.ts:33:33 (f64.const 0.1) ) ) diff --git a/tests/compiler/switch.wat b/tests/compiler/switch.untouched.wat similarity index 80% rename from tests/compiler/switch.wat rename to tests/compiler/switch.untouched.wat index e7f43f89..29b20b03 100644 --- a/tests/compiler/switch.wat +++ b/tests/compiler/switch.untouched.wat @@ -8,7 +8,6 @@ (export "memory" (memory $0)) (func $switch/doSwitch (; 0 ;) (type $ii) (param $0 i32) (result i32) (local $1 i32) - ;;@ switch.ts:2:2 (block $break|0 (block $case4|0 (block $case3|0 @@ -16,52 +15,44 @@ (block $case1|0 (block $case0|0 (set_local $1 - ;;@ switch.ts:2:10 (get_local $0) ) (br_if $case0|0 (i32.eq (get_local $1) - ;;@ switch.ts:3:9 (i32.const 1) ) ) (br_if $case1|0 (i32.eq (get_local $1) - ;;@ switch.ts:5:9 (i32.const 0) ) ) (br_if $case3|0 (i32.eq (get_local $1) - ;;@ switch.ts:8:9 (i32.const 2) ) ) (br_if $case4|0 (i32.eq (get_local $1) - ;;@ switch.ts:9:9 (i32.const 3) ) ) (br $case2|0) ) - ;;@ switch.ts:4:13 (return (i32.const 1) ) ) ) - ;;@ switch.ts:7:13 (return (i32.const 0) ) ) ) - ;;@ switch.ts:10:13 (return (i32.const 23) ) @@ -69,51 +60,43 @@ ) (func $switch/doSwitchDefaultFirst (; 1 ;) (type $ii) (param $0 i32) (result i32) (local $1 i32) - ;;@ switch.ts:15:2 (block $break|0 (block $case3|0 (block $case2|0 (block $case1|0 (block $case0|0 (set_local $1 - ;;@ switch.ts:15:10 (get_local $0) ) (br_if $case1|0 (i32.eq (get_local $1) - ;;@ switch.ts:18:9 (i32.const 1) ) ) (br_if $case2|0 (i32.eq (get_local $1) - ;;@ switch.ts:20:9 (i32.const 2) ) ) (br_if $case3|0 (i32.eq (get_local $1) - ;;@ switch.ts:21:9 (i32.const 3) ) ) (br $case0|0) ) - ;;@ switch.ts:17:13 (return (i32.const 0) ) ) - ;;@ switch.ts:19:13 (return (i32.const 1) ) ) ) - ;;@ switch.ts:22:13 (return (i32.const 23) ) @@ -121,50 +104,42 @@ ) (func $switch/doSwitchDefaultOmitted (; 2 ;) (type $ii) (param $0 i32) (result i32) (local $1 i32) - ;;@ switch.ts:27:2 (block $break|0 (block $case2|0 (block $case1|0 (block $case0|0 (set_local $1 - ;;@ switch.ts:27:10 (get_local $0) ) (br_if $case0|0 (i32.eq (get_local $1) - ;;@ switch.ts:28:9 (i32.const 1) ) ) (br_if $case1|0 (i32.eq (get_local $1) - ;;@ switch.ts:30:9 (i32.const 2) ) ) (br_if $case2|0 (i32.eq (get_local $1) - ;;@ switch.ts:31:9 (i32.const 3) ) ) (br $break|0) ) - ;;@ switch.ts:29:13 (return (i32.const 1) ) ) ) - ;;@ switch.ts:32:13 (return (i32.const 23) ) ) - ;;@ switch.ts:34:9 (return (i32.const 0) ) diff --git a/tests/compiler/ternary.wat b/tests/compiler/ternary.untouched.wat similarity index 59% rename from tests/compiler/ternary.wat rename to tests/compiler/ternary.untouched.wat index 4aed6d9c..e6df52cf 100644 --- a/tests/compiler/ternary.wat +++ b/tests/compiler/ternary.untouched.wat @@ -6,80 +6,53 @@ (export "memory" (memory $0)) (start $start) (func $start (; 0 ;) (type $v) - ;;@ ternary.ts:1:0 (if (i32.const 0) - ;;@ ternary.ts:1:4 (unreachable) - ;;@ ternary.ts:1:20 (drop (i32.const 1) ) ) - ;;@ ternary.ts:2:0 (if (i32.const 1) - ;;@ ternary.ts:2:4 (drop (i32.const 1) ) - ;;@ ternary.ts:2:8 (unreachable) ) - ;;@ ternary.ts:3:0 (if (if (result i32) - ;;@ ternary.ts:3:1 (i32.const 0) - ;;@ ternary.ts:3:5 (unreachable) - ;;@ ternary.ts:3:21 (i32.const 1) ) - ;;@ ternary.ts:3:26 (drop (i32.const 1) ) - ;;@ ternary.ts:3:30 (unreachable) ) - ;;@ ternary.ts:7:0 (set_global $ternary/a - ;;@ ternary.ts:7:4 (if (result i32) (i32.const 0) - ;;@ ternary.ts:7:8 (unreachable) - ;;@ ternary.ts:7:24 (i32.const 1) ) ) - ;;@ ternary.ts:8:0 (set_global $ternary/a - ;;@ ternary.ts:8:4 (if (result i32) (i32.const 1) - ;;@ ternary.ts:8:8 (i32.const 1) - ;;@ ternary.ts:8:12 (unreachable) ) ) - ;;@ ternary.ts:9:0 (set_global $ternary/a - ;;@ ternary.ts:9:4 (if (result i32) (if (result i32) - ;;@ ternary.ts:9:5 (i32.const 0) - ;;@ ternary.ts:9:9 (unreachable) - ;;@ ternary.ts:9:25 (i32.const 1) ) - ;;@ ternary.ts:9:30 (i32.const 1) - ;;@ ternary.ts:9:34 (unreachable) ) ) diff --git a/tests/compiler/tlsf.wat b/tests/compiler/tlsf.untouched.wat similarity index 74% rename from tests/compiler/tlsf.wat rename to tests/compiler/tlsf.untouched.wat index 91bae4af..2b4cec6c 100644 --- a/tests/compiler/tlsf.wat +++ b/tests/compiler/tlsf.untouched.wat @@ -37,22 +37,15 @@ (export "memory" (memory $0)) (start $start) (func $tlsf/fls (; 1 ;) (type $ii) (param $0 i32) (result i32) - ;;@ tlsf.ts:7:39 (return - ;;@ tlsf.ts:7:9 (if (result i32) (i32.eqz - ;;@ tlsf.ts:7:10 (get_local $0) ) - ;;@ tlsf.ts:7:17 (i32.const -1) - ;;@ tlsf.ts:7:21 (i32.sub (i32.const 31) - ;;@ tlsf.ts:7:26 (i32.clz - ;;@ tlsf.ts:7:35 (get_local $0) ) ) @@ -60,71 +53,50 @@ ) ) (func $tlsf/ffs (; 2 ;) (type $ii) (param $0 i32) (result i32) - ;;@ tlsf.ts:17:35 (return - ;;@ tlsf.ts:17:9 (if (result i32) (i32.eqz - ;;@ tlsf.ts:17:10 (get_local $0) ) - ;;@ tlsf.ts:17:17 (i32.const -1) - ;;@ tlsf.ts:17:22 (i32.ctz - ;;@ tlsf.ts:17:31 (get_local $0) ) ) ) ) (func $tlsf/block$set_next_free (; 3 ;) (type $iiv) (param $0 i32) (param $1 i32) - ;;@ tlsf.ts:89:2 (i32.store - ;;@ tlsf.ts:89:15 (i32.add (get_local $0) - ;;@ tlsf.ts:89:23 (i32.const 8) ) - ;;@ tlsf.ts:89:47 (get_local $1) ) ) (func $tlsf/block$set_prev_free (; 4 ;) (type $iiv) (param $0 i32) (param $1 i32) - ;;@ tlsf.ts:97:2 (i32.store - ;;@ tlsf.ts:97:15 (i32.add (get_local $0) - ;;@ tlsf.ts:97:23 (i32.const 12) ) - ;;@ tlsf.ts:97:47 (get_local $1) ) ) (func $tlsf/control$set_fl_bitmap (; 5 ;) (type $iiv) (param $0 i32) (param $1 i32) - ;;@ tlsf.ts:153:2 (i32.store - ;;@ tlsf.ts:153:13 (i32.add (get_local $0) - ;;@ tlsf.ts:153:19 (i32.const 16) ) - ;;@ tlsf.ts:153:45 (get_local $1) ) ) (func $tlsf/control$set_sl_bitmap (; 6 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32) - ;;@ tlsf.ts:162:2 (if (i32.eqz - ;;@ tlsf.ts:162:9 (i32.lt_u (get_local $1) - ;;@ tlsf.ts:162:19 (i32.const 23) ) ) @@ -138,34 +110,25 @@ (unreachable) ) ) - ;;@ tlsf.ts:163:2 (i32.store - ;;@ tlsf.ts:163:13 (i32.add (i32.add (get_local $0) - ;;@ tlsf.ts:163:19 (i32.const 20) ) - ;;@ tlsf.ts:163:46 (i32.mul (get_local $1) - ;;@ tlsf.ts:163:56 (i32.const 4) ) ) - ;;@ tlsf.ts:163:71 (get_local $2) ) ) (func $tlsf/control$set_block (; 7 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) - ;;@ tlsf.ts:173:2 (if (i32.eqz - ;;@ tlsf.ts:173:9 (i32.lt_u (get_local $1) - ;;@ tlsf.ts:173:19 (i32.const 23) ) ) @@ -179,13 +142,10 @@ (unreachable) ) ) - ;;@ tlsf.ts:174:2 (if (i32.eqz - ;;@ tlsf.ts:174:9 (i32.lt_u (get_local $2) - ;;@ tlsf.ts:174:19 (i32.const 32) ) ) @@ -199,116 +159,77 @@ (unreachable) ) ) - ;;@ tlsf.ts:175:2 (i32.store - ;;@ tlsf.ts:175:15 (i32.add (i32.add (get_local $0) - ;;@ tlsf.ts:175:21 (i32.const 112) ) - ;;@ tlsf.ts:175:45 (i32.mul (i32.add - ;;@ tlsf.ts:175:46 (i32.mul (get_local $1) - ;;@ tlsf.ts:175:56 (i32.const 32) ) - ;;@ tlsf.ts:175:73 (get_local $2) ) - ;;@ tlsf.ts:175:84 (i32.const 4) ) ) - ;;@ tlsf.ts:175:101 (get_local $3) ) ) (func $tlsf/control$construct (; 8 ;) (type $iv) (param $0 i32) (local $1 i32) (local $2 i32) - ;;@ tlsf.ts:180:2 (call $tlsf/block$set_next_free - ;;@ tlsf.ts:180:22 (get_local $0) - ;;@ tlsf.ts:180:27 (get_local $0) ) - ;;@ tlsf.ts:181:2 (call $tlsf/block$set_prev_free - ;;@ tlsf.ts:181:22 (get_local $0) - ;;@ tlsf.ts:181:27 (get_local $0) ) - ;;@ tlsf.ts:182:2 (call $tlsf/control$set_fl_bitmap - ;;@ tlsf.ts:182:24 (get_local $0) - ;;@ tlsf.ts:182:29 (i32.const 0) ) - ;;@ tlsf.ts:183:2 (block $break|0 - ;;@ tlsf.ts:183:7 (set_local $1 - ;;@ tlsf.ts:183:28 (i32.const 0) ) (loop $continue|0 (if - ;;@ tlsf.ts:183:31 (i32.lt_u (get_local $1) - ;;@ tlsf.ts:183:41 (i32.const 23) ) (block (block - ;;@ tlsf.ts:184:4 (call $tlsf/control$set_sl_bitmap - ;;@ tlsf.ts:184:26 (get_local $0) - ;;@ tlsf.ts:184:31 (get_local $1) - ;;@ tlsf.ts:184:40 (i32.const 0) ) - ;;@ tlsf.ts:185:4 (block $break|1 - ;;@ tlsf.ts:185:9 (set_local $2 - ;;@ tlsf.ts:185:30 (i32.const 0) ) (loop $continue|1 (if - ;;@ tlsf.ts:185:33 (i32.lt_u (get_local $2) - ;;@ tlsf.ts:185:43 (i32.const 32) ) (block - ;;@ tlsf.ts:186:6 (call $tlsf/control$set_block - ;;@ tlsf.ts:186:24 (get_local $0) - ;;@ tlsf.ts:186:29 (get_local $1) - ;;@ tlsf.ts:186:38 (get_local $2) - ;;@ tlsf.ts:186:47 (get_local $0) ) - ;;@ tlsf.ts:185:59 (set_local $2 (i32.add - ;;@ tlsf.ts:185:61 (get_local $2) (i32.const 1) ) @@ -319,10 +240,8 @@ ) ) ) - ;;@ tlsf.ts:183:57 (set_local $1 (i32.add - ;;@ tlsf.ts:183:59 (get_local $1) (i32.const 1) ) @@ -334,16 +253,12 @@ ) ) (func $start (; 9 ;) (type $v) - ;;@ tlsf.ts:10:0 (if (i32.eqz - ;;@ tlsf.ts:10:7 (i32.eq (call $tlsf/fls - ;;@ tlsf.ts:10:11 (i32.const 0) ) - ;;@ tlsf.ts:10:17 (i32.const -1) ) ) @@ -357,16 +272,12 @@ (unreachable) ) ) - ;;@ tlsf.ts:11:0 (if (i32.eqz - ;;@ tlsf.ts:11:7 (i32.eq (call $tlsf/fls - ;;@ tlsf.ts:11:11 (i32.const 1) ) - ;;@ tlsf.ts:11:17 (i32.const 0) ) ) @@ -380,16 +291,12 @@ (unreachable) ) ) - ;;@ tlsf.ts:12:0 (if (i32.eqz - ;;@ tlsf.ts:12:7 (i32.eq (call $tlsf/fls - ;;@ tlsf.ts:12:11 (i32.const -2147483640) ) - ;;@ tlsf.ts:12:26 (i32.const 31) ) ) @@ -403,16 +310,12 @@ (unreachable) ) ) - ;;@ tlsf.ts:13:0 (if (i32.eqz - ;;@ tlsf.ts:13:7 (i32.eq (call $tlsf/fls - ;;@ tlsf.ts:13:11 (i32.const 2147483647) ) - ;;@ tlsf.ts:13:26 (i32.const 30) ) ) @@ -426,16 +329,12 @@ (unreachable) ) ) - ;;@ tlsf.ts:20:0 (if (i32.eqz - ;;@ tlsf.ts:20:7 (i32.eq (call $tlsf/ffs - ;;@ tlsf.ts:20:11 (i32.const 0) ) - ;;@ tlsf.ts:20:17 (i32.const -1) ) ) @@ -449,16 +348,12 @@ (unreachable) ) ) - ;;@ tlsf.ts:21:0 (if (i32.eqz - ;;@ tlsf.ts:21:7 (i32.eq (call $tlsf/ffs - ;;@ tlsf.ts:21:11 (i32.const 1) ) - ;;@ tlsf.ts:21:17 (i32.const 0) ) ) @@ -472,16 +367,12 @@ (unreachable) ) ) - ;;@ tlsf.ts:22:0 (if (i32.eqz - ;;@ tlsf.ts:22:7 (i32.eq (call $tlsf/ffs - ;;@ tlsf.ts:22:11 (i32.const -2147483648) ) - ;;@ tlsf.ts:22:26 (i32.const 31) ) ) @@ -495,13 +386,10 @@ (unreachable) ) ) - ;;@ tlsf.ts:29:0 (if (i32.eqz - ;;@ tlsf.ts:29:7 (i32.eq (i32.const 8) - ;;@ tlsf.ts:29:21 (i32.const 8) ) ) @@ -515,11 +403,8 @@ (unreachable) ) ) - ;;@ tlsf.ts:190:0 (call $tlsf/control$construct - ;;@ tlsf.ts:190:18 (i32.load - ;;@ tlsf.ts:190:30 (i32.const 4) ) ) diff --git a/tests/compiler/typealias.wat b/tests/compiler/typealias.untouched.wat similarity index 94% rename from tests/compiler/typealias.wat rename to tests/compiler/typealias.untouched.wat index aa8c74d1..3c8aa61b 100644 --- a/tests/compiler/typealias.wat +++ b/tests/compiler/typealias.untouched.wat @@ -7,7 +7,6 @@ (export "memory" (memory $0)) (start $start) (func $typealias/alias (; 0 ;) (type $ii) (param $0 i32) (result i32) - ;;@ typealias.ts:4:9 (return (get_local $0) ) diff --git a/tests/compiler/unary.wat b/tests/compiler/unary.untouched.wat similarity index 68% rename from tests/compiler/unary.wat rename to tests/compiler/unary.untouched.wat index eee436dc..e62c1268 100644 --- a/tests/compiler/unary.wat +++ b/tests/compiler/unary.untouched.wat @@ -13,170 +13,120 @@ (local $1 i64) (local $2 f32) (local $3 f64) - ;;@ unary.ts:1:0 (drop - ;;@ unary.ts:1:1 (i32.const 1) ) - ;;@ unary.ts:2:0 (drop (i32.const -1) ) - ;;@ unary.ts:3:0 (drop (i32.eqz - ;;@ unary.ts:3:1 (i32.const 1) ) ) - ;;@ unary.ts:4:0 (drop (i32.xor - ;;@ unary.ts:4:1 (i32.const 1) (i32.const -1) ) ) - ;;@ unary.ts:5:0 (drop - ;;@ unary.ts:5:1 (f64.const 1.25) ) - ;;@ unary.ts:6:0 (drop (f64.const -1.25) ) - ;;@ unary.ts:7:0 (drop (f64.eq - ;;@ unary.ts:7:1 (f64.const 1.25) (f64.const 0) ) ) - ;;@ unary.ts:11:0 (drop - ;;@ unary.ts:11:1 (get_global $unary/i) ) - ;;@ unary.ts:12:0 (drop (i32.sub (i32.const 0) - ;;@ unary.ts:12:1 (get_global $unary/i) ) ) - ;;@ unary.ts:13:0 (drop (i32.eqz - ;;@ unary.ts:13:1 (get_global $unary/i) ) ) - ;;@ unary.ts:14:0 (drop (i32.xor - ;;@ unary.ts:14:1 (get_global $unary/i) (i32.const -1) ) ) - ;;@ unary.ts:15:0 - (set_global $unary/i - (i32.add - ;;@ unary.ts:15:2 - (get_global $unary/i) - (i32.const 1) - ) - ) - ;;@ unary.ts:16:0 - (set_global $unary/i - (i32.sub - ;;@ unary.ts:16:2 - (get_global $unary/i) - (i32.const 1) - ) - ) - ;;@ unary.ts:17:0 (set_global $unary/i (i32.add (get_global $unary/i) (i32.const 1) ) ) - ;;@ unary.ts:18:0 (set_global $unary/i (i32.sub (get_global $unary/i) (i32.const 1) ) ) - ;;@ unary.ts:20:0 (set_global $unary/i - ;;@ unary.ts:20:4 + (i32.add + (get_global $unary/i) + (i32.const 1) + ) + ) + (set_global $unary/i + (i32.sub + (get_global $unary/i) + (i32.const 1) + ) + ) + (set_global $unary/i (i32.const 1) ) - ;;@ unary.ts:21:0 (set_global $unary/i - ;;@ unary.ts:21:4 (i32.const -1) ) - ;;@ unary.ts:22:0 (set_global $unary/i - ;;@ unary.ts:22:4 (i32.eqz - ;;@ unary.ts:22:5 (i32.const 1) ) ) - ;;@ unary.ts:23:0 (set_global $unary/i - ;;@ unary.ts:23:4 (i32.xor - ;;@ unary.ts:23:5 (i32.const 1) (i32.const -1) ) ) - ;;@ unary.ts:24:0 (set_global $unary/i - ;;@ unary.ts:24:4 (get_global $unary/i) ) - ;;@ unary.ts:25:0 (set_global $unary/i - ;;@ unary.ts:25:4 (i32.sub (i32.const 0) - ;;@ unary.ts:25:5 (get_global $unary/i) ) ) - ;;@ unary.ts:26:0 (set_global $unary/i - ;;@ unary.ts:26:4 (i32.eqz - ;;@ unary.ts:26:5 (get_global $unary/i) ) ) - ;;@ unary.ts:27:0 (set_global $unary/i - ;;@ unary.ts:27:4 (i32.xor - ;;@ unary.ts:27:5 (get_global $unary/i) (i32.const -1) ) ) - ;;@ unary.ts:28:0 (set_global $unary/i - ;;@ unary.ts:28:4 (block (result i32) (set_global $unary/i (i32.add - ;;@ unary.ts:28:6 (get_global $unary/i) (i32.const 1) ) @@ -184,13 +134,10 @@ (get_global $unary/i) ) ) - ;;@ unary.ts:29:0 (set_global $unary/i - ;;@ unary.ts:29:4 (block (result i32) (set_global $unary/i (i32.sub - ;;@ unary.ts:29:6 (get_global $unary/i) (i32.const 1) ) @@ -198,9 +145,7 @@ (get_global $unary/i) ) ) - ;;@ unary.ts:30:0 (set_global $unary/i - ;;@ unary.ts:30:4 (block (result i32) (set_local $0 (get_global $unary/i) @@ -214,9 +159,7 @@ (get_local $0) ) ) - ;;@ unary.ts:31:0 (set_global $unary/i - ;;@ unary.ts:31:4 (block (result i32) (set_local $0 (get_global $unary/i) @@ -230,133 +173,95 @@ (get_local $0) ) ) - ;;@ unary.ts:35:0 (drop - ;;@ unary.ts:35:1 (get_global $unary/I) ) - ;;@ unary.ts:36:0 (drop (i64.sub (i64.const 0) - ;;@ unary.ts:36:1 (get_global $unary/I) ) ) - ;;@ unary.ts:37:0 (drop (i64.eqz - ;;@ unary.ts:37:1 (get_global $unary/I) ) ) - ;;@ unary.ts:38:0 (drop (i64.xor - ;;@ unary.ts:38:1 (get_global $unary/I) (i64.const -1) ) ) - ;;@ unary.ts:39:0 - (set_global $unary/I - (i64.add - ;;@ unary.ts:39:2 - (get_global $unary/I) - (i64.const 1) - ) - ) - ;;@ unary.ts:40:0 - (set_global $unary/I - (i64.sub - ;;@ unary.ts:40:2 - (get_global $unary/I) - (i64.const 1) - ) - ) - ;;@ unary.ts:41:0 (set_global $unary/I (i64.add (get_global $unary/I) (i64.const 1) ) ) - ;;@ unary.ts:42:0 (set_global $unary/I (i64.sub (get_global $unary/I) (i64.const 1) ) ) - ;;@ unary.ts:44:0 (set_global $unary/I - ;;@ unary.ts:44:4 + (i64.add + (get_global $unary/I) + (i64.const 1) + ) + ) + (set_global $unary/I + (i64.sub + (get_global $unary/I) + (i64.const 1) + ) + ) + (set_global $unary/I (i64.const 1) ) - ;;@ unary.ts:45:0 (set_global $unary/I - ;;@ unary.ts:45:4 (i64.const -1) ) - ;;@ unary.ts:46:0 (set_global $unary/I - ;;@ unary.ts:46:4 (i64.extend_s/i32 (i64.eqz - ;;@ unary.ts:46:5 (i64.const 1) ) ) ) - ;;@ unary.ts:47:0 (set_global $unary/I - ;;@ unary.ts:47:4 (i64.xor - ;;@ unary.ts:47:5 (i64.const 1) (i64.const -1) ) ) - ;;@ unary.ts:48:0 (set_global $unary/I - ;;@ unary.ts:48:4 (get_global $unary/I) ) - ;;@ unary.ts:49:0 (set_global $unary/I - ;;@ unary.ts:49:4 (i64.sub (i64.const 0) - ;;@ unary.ts:49:5 (get_global $unary/I) ) ) - ;;@ unary.ts:50:0 (set_global $unary/I - ;;@ unary.ts:50:4 (i64.extend_s/i32 (i64.eqz - ;;@ unary.ts:50:5 (get_global $unary/I) ) ) ) - ;;@ unary.ts:51:0 (set_global $unary/I - ;;@ unary.ts:51:4 (i64.xor - ;;@ unary.ts:51:5 (get_global $unary/I) (i64.const -1) ) ) - ;;@ unary.ts:52:0 (set_global $unary/I - ;;@ unary.ts:52:4 (block (result i64) (set_global $unary/I (i64.add - ;;@ unary.ts:52:6 (get_global $unary/I) (i64.const 1) ) @@ -364,13 +269,10 @@ (get_global $unary/I) ) ) - ;;@ unary.ts:53:0 (set_global $unary/I - ;;@ unary.ts:53:4 (block (result i64) (set_global $unary/I (i64.sub - ;;@ unary.ts:53:6 (get_global $unary/I) (i64.const 1) ) @@ -378,9 +280,7 @@ (get_global $unary/I) ) ) - ;;@ unary.ts:54:0 (set_global $unary/I - ;;@ unary.ts:54:4 (block (result i64) (set_local $1 (get_global $unary/I) @@ -394,9 +294,7 @@ (get_local $1) ) ) - ;;@ unary.ts:55:0 (set_global $unary/I - ;;@ unary.ts:55:4 (block (result i64) (set_local $1 (get_global $unary/I) @@ -410,104 +308,74 @@ (get_local $1) ) ) - ;;@ unary.ts:59:0 (drop - ;;@ unary.ts:59:1 (get_global $unary/f) ) - ;;@ unary.ts:60:0 (drop (f32.neg - ;;@ unary.ts:60:1 (get_global $unary/f) ) ) - ;;@ unary.ts:61:0 (drop (f32.eq - ;;@ unary.ts:61:1 (get_global $unary/f) (f32.const 0) ) ) - ;;@ unary.ts:62:0 - (set_global $unary/f - (f32.add - ;;@ unary.ts:62:2 - (get_global $unary/f) - (f32.const 1) - ) - ) - ;;@ unary.ts:63:0 - (set_global $unary/f - (f32.sub - ;;@ unary.ts:63:2 - (get_global $unary/f) - (f32.const 1) - ) - ) - ;;@ unary.ts:64:0 (set_global $unary/f (f32.add (get_global $unary/f) (f32.const 1) ) ) - ;;@ unary.ts:65:0 (set_global $unary/f (f32.sub (get_global $unary/f) (f32.const 1) ) ) - ;;@ unary.ts:67:0 (set_global $unary/f - ;;@ unary.ts:67:4 + (f32.add + (get_global $unary/f) + (f32.const 1) + ) + ) + (set_global $unary/f + (f32.sub + (get_global $unary/f) + (f32.const 1) + ) + ) + (set_global $unary/f (f32.const 1.25) ) - ;;@ unary.ts:68:0 (set_global $unary/f - ;;@ unary.ts:68:4 (f32.const -1.25) ) - ;;@ unary.ts:69:0 (set_global $unary/i - ;;@ unary.ts:69:4 (f64.eq - ;;@ unary.ts:69:5 (f64.const 1.25) (f64.const 0) ) ) - ;;@ unary.ts:70:0 (set_global $unary/f - ;;@ unary.ts:70:4 (get_global $unary/f) ) - ;;@ unary.ts:71:0 (set_global $unary/f - ;;@ unary.ts:71:4 (f32.neg - ;;@ unary.ts:71:5 (get_global $unary/f) ) ) - ;;@ unary.ts:72:0 (set_global $unary/i - ;;@ unary.ts:72:4 (f32.eq - ;;@ unary.ts:72:5 (get_global $unary/f) (f32.const 0) ) ) - ;;@ unary.ts:73:0 (set_global $unary/f - ;;@ unary.ts:73:4 (block (result f32) (set_global $unary/f (f32.add - ;;@ unary.ts:73:6 (get_global $unary/f) (f32.const 1) ) @@ -515,13 +383,10 @@ (get_global $unary/f) ) ) - ;;@ unary.ts:74:0 (set_global $unary/f - ;;@ unary.ts:74:4 (block (result f32) (set_global $unary/f (f32.sub - ;;@ unary.ts:74:6 (get_global $unary/f) (f32.const 1) ) @@ -529,9 +394,7 @@ (get_global $unary/f) ) ) - ;;@ unary.ts:75:0 (set_global $unary/f - ;;@ unary.ts:75:4 (block (result f32) (set_local $2 (get_global $unary/f) @@ -545,9 +408,7 @@ (get_local $2) ) ) - ;;@ unary.ts:76:0 (set_global $unary/f - ;;@ unary.ts:76:4 (block (result f32) (set_local $2 (get_global $unary/f) @@ -561,108 +422,78 @@ (get_local $2) ) ) - ;;@ unary.ts:80:0 (drop - ;;@ unary.ts:80:1 (get_global $unary/F) ) - ;;@ unary.ts:81:0 (drop (f64.neg - ;;@ unary.ts:81:1 (get_global $unary/F) ) ) - ;;@ unary.ts:82:0 (drop (f64.eq - ;;@ unary.ts:82:1 (get_global $unary/F) (f64.const 0) ) ) - ;;@ unary.ts:83:0 - (set_global $unary/F - (f64.add - ;;@ unary.ts:83:2 - (get_global $unary/F) - (f64.const 1) - ) - ) - ;;@ unary.ts:84:0 - (set_global $unary/F - (f64.sub - ;;@ unary.ts:84:2 - (get_global $unary/F) - (f64.const 1) - ) - ) - ;;@ unary.ts:85:0 (set_global $unary/F (f64.add (get_global $unary/F) (f64.const 1) ) ) - ;;@ unary.ts:86:0 (set_global $unary/F (f64.sub (get_global $unary/F) (f64.const 1) ) ) - ;;@ unary.ts:88:0 (set_global $unary/F - ;;@ unary.ts:88:4 + (f64.add + (get_global $unary/F) + (f64.const 1) + ) + ) + (set_global $unary/F + (f64.sub + (get_global $unary/F) + (f64.const 1) + ) + ) + (set_global $unary/F (f64.const 1.25) ) - ;;@ unary.ts:89:0 (set_global $unary/F - ;;@ unary.ts:89:4 (f64.const -1.25) ) - ;;@ unary.ts:90:0 (set_global $unary/I - ;;@ unary.ts:90:4 (i64.extend_s/i32 (f64.eq - ;;@ unary.ts:90:5 (f64.const 1.25) (f64.const 0) ) ) ) - ;;@ unary.ts:91:0 (set_global $unary/F - ;;@ unary.ts:91:4 (get_global $unary/F) ) - ;;@ unary.ts:92:0 (set_global $unary/F - ;;@ unary.ts:92:4 (f64.neg - ;;@ unary.ts:92:5 (get_global $unary/F) ) ) - ;;@ unary.ts:93:0 (set_global $unary/I - ;;@ unary.ts:93:4 (i64.extend_s/i32 (f64.eq - ;;@ unary.ts:93:5 (get_global $unary/F) (f64.const 0) ) ) ) - ;;@ unary.ts:94:0 (set_global $unary/F - ;;@ unary.ts:94:4 (block (result f64) (set_global $unary/F (f64.add - ;;@ unary.ts:94:6 (get_global $unary/F) (f64.const 1) ) @@ -670,13 +501,10 @@ (get_global $unary/F) ) ) - ;;@ unary.ts:95:0 (set_global $unary/F - ;;@ unary.ts:95:4 (block (result f64) (set_global $unary/F (f64.sub - ;;@ unary.ts:95:6 (get_global $unary/F) (f64.const 1) ) @@ -684,9 +512,7 @@ (get_global $unary/F) ) ) - ;;@ unary.ts:96:0 (set_global $unary/F - ;;@ unary.ts:96:4 (block (result f64) (set_local $3 (get_global $unary/F) @@ -700,9 +526,7 @@ (get_local $3) ) ) - ;;@ unary.ts:97:0 (set_global $unary/F - ;;@ unary.ts:97:4 (block (result f64) (set_local $3 (get_global $unary/F) diff --git a/tests/compiler/while.wat b/tests/compiler/while.untouched.wat similarity index 80% rename from tests/compiler/while.wat rename to tests/compiler/while.untouched.wat index 7e75457d..9afb9e85 100644 --- a/tests/compiler/while.wat +++ b/tests/compiler/while.untouched.wat @@ -12,22 +12,18 @@ (start $start) (func $start (; 1 ;) (type $v) (local $0 i32) - ;;@ while.ts:4:0 (block $break|0 (loop $continue|0 (if - ;;@ while.ts:4:7 (get_global $while/n) (block (block - ;;@ while.ts:5:2 (set_global $while/n (i32.sub (get_global $while/n) (i32.const 1) ) ) - ;;@ while.ts:6:2 (set_global $while/m (i32.add (get_global $while/m) @@ -40,13 +36,10 @@ ) ) ) - ;;@ while.ts:8:0 (if (i32.eqz - ;;@ while.ts:8:7 (i32.eq (get_global $while/n) - ;;@ while.ts:8:12 (i32.const 0) ) ) @@ -60,13 +53,10 @@ (unreachable) ) ) - ;;@ while.ts:9:0 (if (i32.eqz - ;;@ while.ts:9:7 (i32.eq (get_global $while/m) - ;;@ while.ts:9:12 (i32.const 10) ) ) @@ -80,54 +70,42 @@ (unreachable) ) ) - ;;@ while.ts:11:0 (set_global $while/n - ;;@ while.ts:11:4 (i32.const 10) ) - ;;@ while.ts:12:0 (set_global $while/m - ;;@ while.ts:12:4 (i32.const 0) ) - ;;@ while.ts:14:0 (block $break|1 (loop $continue|1 (if - ;;@ while.ts:14:7 (get_global $while/n) (block (block - ;;@ while.ts:15:2 (set_global $while/n (i32.sub (get_global $while/n) (i32.const 1) ) ) - ;;@ while.ts:16:2 (set_global $while/m (i32.add (get_global $while/m) (i32.const 1) ) ) - ;;@ while.ts:17:2 (block $break|2 (loop $continue|2 (if - ;;@ while.ts:17:9 (get_global $while/n) (block (block - ;;@ while.ts:18:4 (set_global $while/n (i32.sub (get_global $while/n) (i32.const 1) ) ) - ;;@ while.ts:19:4 (set_global $while/o (i32.add (get_global $while/o) @@ -140,13 +118,10 @@ ) ) ) - ;;@ while.ts:21:2 (if (i32.eqz - ;;@ while.ts:21:9 (i32.eq (get_global $while/n) - ;;@ while.ts:21:14 (i32.const 0) ) ) @@ -160,13 +135,10 @@ (unreachable) ) ) - ;;@ while.ts:22:2 (if (i32.eqz - ;;@ while.ts:22:9 (i32.eq (get_global $while/o) - ;;@ while.ts:22:14 (i32.const 9) ) ) @@ -186,13 +158,10 @@ ) ) ) - ;;@ while.ts:24:0 (if (i32.eqz - ;;@ while.ts:24:7 (i32.eq (get_global $while/n) - ;;@ while.ts:24:12 (i32.const 0) ) ) @@ -206,13 +175,10 @@ (unreachable) ) ) - ;;@ while.ts:25:0 (if (i32.eqz - ;;@ while.ts:25:7 (i32.eq (get_global $while/m) - ;;@ while.ts:25:12 (i32.const 1) ) ) @@ -226,13 +192,10 @@ (unreachable) ) ) - ;;@ while.ts:26:0 (if (i32.eqz - ;;@ while.ts:26:7 (i32.eq (get_global $while/o) - ;;@ while.ts:26:12 (i32.const 9) ) ) @@ -246,21 +209,15 @@ (unreachable) ) ) - ;;@ while.ts:28:0 (set_global $while/n - ;;@ while.ts:28:4 (i32.const 1) ) - ;;@ while.ts:29:0 (set_global $while/m - ;;@ while.ts:29:4 (i32.const 0) ) - ;;@ while.ts:30:0 (block $break|3 (loop $continue|3 (if - ;;@ while.ts:30:7 (if (result i32) (i32.ne (tee_local $0 @@ -279,11 +236,9 @@ ) (i32.const 0) ) - ;;@ while.ts:30:14 (block (result i32) (set_global $while/m (i32.add - ;;@ while.ts:30:16 (get_global $while/m) (i32.const 1) ) @@ -293,20 +248,16 @@ (get_local $0) ) (block - ;;@ while.ts:30:18 (nop) (br $continue|3) ) ) ) ) - ;;@ while.ts:31:0 (if (i32.eqz - ;;@ while.ts:31:7 (i32.eq (get_global $while/n) - ;;@ while.ts:31:12 (i32.const -1) ) ) @@ -320,13 +271,10 @@ (unreachable) ) ) - ;;@ while.ts:32:0 (if (i32.eqz - ;;@ while.ts:32:7 (i32.eq (get_global $while/m) - ;;@ while.ts:32:12 (i32.const 1) ) )