From 5a3a5cb8115a25355e44a3e03de72279d5561404 Mon Sep 17 00:00:00 2001 From: Spotandjake Date: Tue, 21 Feb 2023 09:16:33 -0500 Subject: [PATCH] chore: Regen Tests --- .../__snapshots__/arrays.0f9e7d37.0.snapshot | 8 +- .../__snapshots__/arrays.28fcc534.0.snapshot | 8 +- .../__snapshots__/arrays.4c8c9f91.0.snapshot | 8 +- .../__snapshots__/arrays.6eac4e1f.0.snapshot | 8 +- .../__snapshots__/arrays.74d79181.0.snapshot | 8 +- .../basic_functionality.040643b3.0.snapshot | 8 +- .../basic_functionality.0996c5f7.0.snapshot | 8 +- .../basic_functionality.0a230f18.0.snapshot | 8 +- .../basic_functionality.0a2e4afa.0.snapshot | 8 +- .../basic_functionality.0c0b170b.0.snapshot | 8 +- .../basic_functionality.0c400bde.0.snapshot | 8 +- .../basic_functionality.0e812a39.0.snapshot | 16 ++-- .../basic_functionality.0f79ce35.0.snapshot | 8 +- .../basic_functionality.10dda088.0.snapshot | 8 +- .../basic_functionality.125626a9.0.snapshot | 8 +- .../basic_functionality.13335202.0.snapshot | 16 ++-- .../basic_functionality.1ad0f349.0.snapshot | 16 ++-- .../basic_functionality.1ae16d82.0.snapshot | 8 +- .../basic_functionality.1b68c8db.0.snapshot | 8 +- .../basic_functionality.1bf5759c.0.snapshot | 48 +++++------ .../basic_functionality.1d2ec323.0.snapshot | 8 +- .../basic_functionality.1e4b1f39.0.snapshot | 8 +- .../basic_functionality.1f787365.0.snapshot | 8 +- .../basic_functionality.240ef39e.0.snapshot | 8 +- .../basic_functionality.28405f1f.0.snapshot | 16 ++-- .../basic_functionality.28bf4c9e.0.snapshot | 8 +- .../basic_functionality.2bcc447b.0.snapshot | 16 ++-- .../basic_functionality.2f2f8795.0.snapshot | 8 +- .../basic_functionality.2f53324c.0.snapshot | 8 +- .../basic_functionality.32a8c452.0.snapshot | 16 ++-- .../basic_functionality.3c2ba165.0.snapshot | 8 +- .../basic_functionality.3e5f990b.0.snapshot | 8 +- .../basic_functionality.3edefd23.0.snapshot | 8 +- .../basic_functionality.46348f36.0.snapshot | 16 ++-- .../basic_functionality.52ca8e0e.0.snapshot | 40 +++++----- .../basic_functionality.5705b20c.0.snapshot | 8 +- .../basic_functionality.593b8d63.0.snapshot | 28 +++---- .../basic_functionality.5d973a3e.0.snapshot | 8 +- .../basic_functionality.61c58118.0.snapshot | 14 ++-- .../basic_functionality.626b2e44.0.snapshot | 26 +++--- .../basic_functionality.65d36891.0.snapshot | 8 +- .../basic_functionality.67d2cc45.0.snapshot | 8 +- .../basic_functionality.684b6ecb.0.snapshot | 8 +- .../basic_functionality.68d08483.0.snapshot | 8 +- .../basic_functionality.711a4824.0.snapshot | 58 +++++++------- .../basic_functionality.7287219f.0.snapshot | 8 +- .../basic_functionality.7d0640b4.0.snapshot | 16 ++-- .../basic_functionality.9110d0f5.0.snapshot | 8 +- .../basic_functionality.9157dba1.0.snapshot | 8 +- .../basic_functionality.974b7936.0.snapshot | 8 +- .../basic_functionality.994117f8.0.snapshot | 8 +- .../basic_functionality.9c18b19d.0.snapshot | 18 ++--- .../basic_functionality.a0045d1c.0.snapshot | 8 +- .../basic_functionality.a2e63440.0.snapshot | 8 +- .../basic_functionality.a3f7e180.0.snapshot | 8 +- .../basic_functionality.a58a9361.0.snapshot | 8 +- .../basic_functionality.a5d5182f.0.snapshot | 8 +- .../basic_functionality.a72898d0.0.snapshot | 8 +- .../basic_functionality.abd9d13c.0.snapshot | 8 +- .../basic_functionality.b07cc734.0.snapshot | 16 ++-- .../basic_functionality.b6a1b657.0.snapshot | 8 +- .../basic_functionality.b836b89a.0.snapshot | 24 +++--- .../basic_functionality.bef9449e.0.snapshot | 8 +- .../basic_functionality.c2c74be4.0.snapshot | 8 +- .../basic_functionality.c4090bb1.0.snapshot | 40 +++++----- .../basic_functionality.c49928a5.0.snapshot | 8 +- .../basic_functionality.c55feb83.0.snapshot | 8 +- .../basic_functionality.c8095f7c.0.snapshot | 8 +- .../basic_functionality.cb9c6c66.0.snapshot | 8 +- .../basic_functionality.cdeddcd2.0.snapshot | 8 +- .../basic_functionality.cefeb364.0.snapshot | 8 +- .../basic_functionality.d0c0c62b.0.snapshot | 8 +- .../basic_functionality.d0cb4f44.0.snapshot | 8 +- .../basic_functionality.d6ca4146.0.snapshot | 8 +- .../basic_functionality.d8a7dcf9.0.snapshot | 8 +- .../basic_functionality.d9fc01df.0.snapshot | 8 +- .../basic_functionality.dbf5d3ff.0.snapshot | 8 +- .../basic_functionality.df4cd2bf.0.snapshot | 8 +- .../basic_functionality.e2902464.0.snapshot | 16 ++-- .../basic_functionality.e3995c7d.0.snapshot | 20 ++--- .../basic_functionality.e56cd2a2.0.snapshot | 8 +- .../basic_functionality.e58c3266.0.snapshot | 8 +- .../basic_functionality.e811c1e1.0.snapshot | 8 +- .../basic_functionality.ee7c0ebc.0.snapshot | 8 +- .../basic_functionality.f132ca8b.0.snapshot | 8 +- .../basic_functionality.fd64a58f.0.snapshot | 8 +- .../basic_functionality.fe88cb04.0.snapshot | 70 ++++++++-------- .../__snapshots__/boxes.08fca3f7.0.snapshot | 20 ++--- .../__snapshots__/boxes.0c59fc4e.0.snapshot | 22 ++--- .../__snapshots__/boxes.17668725.0.snapshot | 22 ++--- .../__snapshots__/boxes.2b56febf.0.snapshot | 22 ++--- .../__snapshots__/boxes.7d564476.0.snapshot | 20 ++--- .../__snapshots__/boxes.9035923e.0.snapshot | 22 ++--- .../__snapshots__/boxes.adbe1660.0.snapshot | 20 ++--- .../__snapshots__/boxes.bc258c1b.0.snapshot | 20 ++--- .../early_return.1183a893.0.snapshot | 22 ++--- .../__snapshots__/enums.aa34084a.0.snapshot | 4 +- .../__snapshots__/enums.ae26523b.0.snapshot | 26 +++--- .../exceptions.a68ae348.0.snapshot | 6 +- .../exceptions.ccac3e71.0.snapshot | 4 +- .../functions.06134c8a.0.snapshot | 14 ++-- .../functions.14922a92.0.snapshot | 22 ++--- .../functions.1be5ecd5.0.snapshot | 14 ++-- .../functions.23afd9c9.0.snapshot | 24 +++--- .../functions.28e0f2b3.0.snapshot | 14 ++-- .../functions.49ccab54.0.snapshot | 26 +++--- .../functions.6eacded0.0.snapshot | 80 +++++++++---------- .../functions.7a8986a5.0.snapshot | 4 +- .../functions.84b6e84b.0.snapshot | 14 ++-- .../functions.8baf471f.0.snapshot | 16 ++-- .../functions.9223245d.0.snapshot | 20 ++--- .../functions.9fd69835.0.snapshot | 22 ++--- .../functions.b37949b2.0.snapshot | 26 +++--- .../functions.b3a8d88b.0.snapshot | 30 +++---- .../functions.b632a2ab.0.snapshot | 4 +- .../functions.c6e8a9aa.0.snapshot | 14 ++-- .../functions.d9466880.0.snapshot | 12 +-- .../functions.e6c6212b.0.snapshot | 22 ++--- .../functions.f400bb7b.0.snapshot | 34 ++++---- .../functions.f647681b.0.snapshot | 8 +- .../includes.03ddcd3b.0.snapshot | 8 +- .../includes.1d829099.0.snapshot | 4 +- .../includes.46f78654.0.snapshot | 12 +-- .../includes.5dfba7dd.0.snapshot | 4 +- .../includes.6c8d23dc.0.snapshot | 12 +-- .../includes.6e78c003.0.snapshot | 12 +-- .../includes.7afbe731.0.snapshot | 4 +- .../includes.8222ee98.0.snapshot | 4 +- .../includes.86ff4075.0.snapshot | 12 +-- .../includes.a3212bd0.0.snapshot | 4 +- .../includes.b3434679.0.snapshot | 4 +- .../includes.bd3eb3af.0.snapshot | 12 +-- .../includes.beda767e.0.snapshot | 4 +- .../includes.c0c0d5ca.0.snapshot | 16 ++-- .../includes.c62f45f8.0.snapshot | 8 +- .../includes.cedde8e9.0.snapshot | 4 +- .../includes.de6b420f.0.snapshot | 2 +- .../includes.f2bf866b.0.snapshot | 4 +- .../includes.f4ba5583.0.snapshot | 12 +-- .../__snapshots__/let_mut.00e05fe2.0.snapshot | 20 ++--- .../__snapshots__/let_mut.1176df90.0.snapshot | 22 ++--- .../__snapshots__/let_mut.3307d5a7.0.snapshot | 8 +- .../__snapshots__/let_mut.43f6980c.0.snapshot | 22 ++--- .../__snapshots__/let_mut.48249b50.0.snapshot | 22 ++--- .../__snapshots__/let_mut.4c3f3b2b.0.snapshot | 8 +- .../__snapshots__/let_mut.4c75261e.0.snapshot | 20 ++--- .../__snapshots__/let_mut.634331f0.0.snapshot | 22 ++--- .../__snapshots__/let_mut.63c16374.0.snapshot | 12 +-- .../__snapshots__/let_mut.6796c72d.0.snapshot | 20 ++--- .../__snapshots__/let_mut.baaea1d3.0.snapshot | 22 ++--- .../__snapshots__/let_mut.cbbbaeb4.0.snapshot | 22 ++--- .../__snapshots__/let_mut.d2de286b.0.snapshot | 20 ++--- .../__snapshots__/let_mut.e90db621.0.snapshot | 22 ++--- .../__snapshots__/let_mut.f8f208a2.0.snapshot | 22 ++--- .../__snapshots__/let_mut.f9e32f30.0.snapshot | 22 ++--- .../__snapshots__/let_mut.fcc9c65d.0.snapshot | 8 +- .../__snapshots__/loops.0a25def1.0.snapshot | 52 ++++++------ .../__snapshots__/loops.0fafc5f0.0.snapshot | 52 ++++++------ .../__snapshots__/loops.c2b7bfc6.0.snapshot | 32 ++++---- .../__snapshots__/loops.f1c03b79.0.snapshot | 52 ++++++------ .../optimizations.d72b00c6.0.snapshot | 14 ++-- .../optimizations.ff6d5bfb.0.snapshot | 32 ++++---- .../pattern_matching.0539d13e.0.snapshot | 12 +-- .../pattern_matching.05b60a1e.0.snapshot | 4 +- .../pattern_matching.0ad4ac05.0.snapshot | 28 +++---- .../pattern_matching.0bb6923e.0.snapshot | 16 ++-- .../pattern_matching.0fa61137.0.snapshot | 8 +- .../pattern_matching.14dc7554.0.snapshot | 4 +- .../pattern_matching.16eb3dbf.0.snapshot | 8 +- .../pattern_matching.25930935.0.snapshot | 8 +- .../pattern_matching.3722b060.0.snapshot | 16 ++-- .../pattern_matching.46f91987.0.snapshot | 4 +- .../pattern_matching.5ff49e44.0.snapshot | 16 ++-- .../pattern_matching.702ed9b0.0.snapshot | 28 +++---- .../pattern_matching.79346fef.0.snapshot | 28 +++---- .../pattern_matching.8c0dc67a.0.snapshot | 16 ++-- .../pattern_matching.9561763b.0.snapshot | 28 +++---- .../pattern_matching.98756c45.0.snapshot | 8 +- .../pattern_matching.9ffaa7a7.0.snapshot | 8 +- .../pattern_matching.aa8d2963.0.snapshot | 12 +-- .../pattern_matching.ac58ffc3.0.snapshot | 8 +- .../pattern_matching.b1b060ad.0.snapshot | 16 ++-- .../pattern_matching.b9db0dd9.0.snapshot | 12 +-- .../pattern_matching.be46eb0e.0.snapshot | 8 +- .../pattern_matching.c91eac29.0.snapshot | 16 ++-- .../pattern_matching.d048ece0.0.snapshot | 16 ++-- .../pattern_matching.e41ad64e.0.snapshot | 28 +++---- .../pattern_matching.eb4334e1.0.snapshot | 12 +-- .../pattern_matching.f0c08ea4.0.snapshot | 28 +++---- .../provides.0ef7e7b3.0.snapshot | 4 +- .../provides.10f4f118.0.snapshot | 12 +-- .../provides.30cbc409.0.snapshot | 26 +++--- .../provides.82c10ab4.0.snapshot | 20 ++--- .../provides.c3bb4eff.0.snapshot | 20 ++--- .../provides.c6bf4567.0.snapshot | 14 ++-- .../provides.f378d570.0.snapshot | 4 +- .../__snapshots__/records.012b017b.0.snapshot | 2 +- .../__snapshots__/records.02742729.0.snapshot | 12 +-- .../__snapshots__/records.02af5946.0.snapshot | 4 +- .../__snapshots__/records.2dc39420.0.snapshot | 4 +- .../__snapshots__/records.49dfc6ff.0.snapshot | 16 ++-- .../__snapshots__/records.54f5977c.0.snapshot | 52 ++++++------ .../__snapshots__/records.5f340064.0.snapshot | 4 +- .../__snapshots__/records.60c0a141.0.snapshot | 8 +- .../__snapshots__/records.60c7acc4.0.snapshot | 4 +- .../__snapshots__/records.63a951b8.0.snapshot | 16 ++-- .../__snapshots__/records.89d08e01.0.snapshot | 4 +- .../__snapshots__/records.98824516.0.snapshot | 20 ++--- .../__snapshots__/records.a3299dd2.0.snapshot | 36 ++++----- .../__snapshots__/records.a702778a.0.snapshot | 8 +- .../__snapshots__/records.a9c472b1.0.snapshot | 4 +- .../__snapshots__/records.b50d234d.0.snapshot | 4 +- .../__snapshots__/records.d34c4740.0.snapshot | 4 +- .../__snapshots__/records.d393173c.0.snapshot | 52 ++++++------ .../__snapshots__/records.d44e8007.0.snapshot | 4 +- .../__snapshots__/records.e4326567.0.snapshot | 4 +- .../__snapshots__/records.e5b56da8.0.snapshot | 4 +- .../__snapshots__/records.e705a980.0.snapshot | 4 +- .../__snapshots__/records.f6e43cdb.0.snapshot | 4 +- .../__snapshots__/records.f6feee77.0.snapshot | 4 +- .../__snapshots__/records.fae50a8e.0.snapshot | 4 +- .../__snapshots__/stdlib.179d20b9.0.snapshot | 8 +- .../__snapshots__/stdlib.1c0b04b7.0.snapshot | 14 ++-- .../__snapshots__/stdlib.24cb9bbf.0.snapshot | 8 +- .../__snapshots__/stdlib.4a5061c2.0.snapshot | 14 ++-- .../__snapshots__/stdlib.5fe88631.0.snapshot | 8 +- .../__snapshots__/stdlib.648f406e.0.snapshot | 8 +- .../__snapshots__/stdlib.69635cff.0.snapshot | 14 ++-- .../__snapshots__/stdlib.6bf88430.0.snapshot | 8 +- .../__snapshots__/stdlib.6de47be2.0.snapshot | 8 +- .../__snapshots__/stdlib.8300ad7c.0.snapshot | 8 +- .../__snapshots__/stdlib.91a94037.0.snapshot | 8 +- .../__snapshots__/stdlib.a70e79ca.0.snapshot | 8 +- .../__snapshots__/stdlib.b30d7785.0.snapshot | 8 +- .../__snapshots__/stdlib.c09a513a.0.snapshot | 8 +- .../__snapshots__/stdlib.cbf0318e.0.snapshot | 14 ++-- .../__snapshots__/stdlib.d28dee65.0.snapshot | 8 +- .../__snapshots__/stdlib.d4faa5bf.0.snapshot | 8 +- .../__snapshots__/stdlib.d887bb04.0.snapshot | 8 +- .../__snapshots__/stdlib.dae8b12a.0.snapshot | 8 +- .../__snapshots__/stdlib.e306600a.0.snapshot | 8 +- .../__snapshots__/stdlib.e6349872.0.snapshot | 8 +- .../__snapshots__/strings.fb85549f.0.snapshot | 8 +- .../__snapshots__/tuples.1451773e.0.snapshot | 44 +++++----- .../__snapshots__/tuples.1d60b40c.0.snapshot | 22 ++--- .../__snapshots__/tuples.2c91b91d.0.snapshot | 30 +++---- .../__snapshots__/tuples.a34621a0.0.snapshot | 42 +++++----- .../__snapshots__/tuples.c1eb0a50.0.snapshot | 44 +++++----- 248 files changed, 1787 insertions(+), 1787 deletions(-) diff --git a/compiler/test/__snapshots__/arrays.0f9e7d37.0.snapshot b/compiler/test/__snapshots__/arrays.0f9e7d37.0.snapshot index aa1e7b9465..cd795af9c8 100644 --- a/compiler/test/__snapshots__/arrays.0f9e7d37.0.snapshot +++ b/compiler/test/__snapshots__/arrays.0f9e7d37.0.snapshot @@ -15,7 +15,7 @@ arrays › array_access (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/exception\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32))) - (global $x_1110 (mut i32) (i32.const 0)) + (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -44,7 +44,7 @@ arrays › array_access (local.set $0 (block $compile_block.10 (result i32) (block $compile_store.3 - (global.set $x_1110 + (global.set $x_1113 (tuple.extract 0 (tuple.make (block $allocate_array.1 (result i32) @@ -77,7 +77,7 @@ arrays › array_access ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $x_1110) + (global.get $x_1113) ) ) ) @@ -90,7 +90,7 @@ arrays › array_access (i32.const 1) ) (local.set $2 - (global.get $x_1110) + (global.get $x_1113) ) (block $resolve_idx.8 (if diff --git a/compiler/test/__snapshots__/arrays.28fcc534.0.snapshot b/compiler/test/__snapshots__/arrays.28fcc534.0.snapshot index 39c64ad3ea..a8bf3904e9 100644 --- a/compiler/test/__snapshots__/arrays.28fcc534.0.snapshot +++ b/compiler/test/__snapshots__/arrays.28fcc534.0.snapshot @@ -15,7 +15,7 @@ arrays › array_access4 (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/exception\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32))) - (global $x_1110 (mut i32) (i32.const 0)) + (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -44,7 +44,7 @@ arrays › array_access4 (local.set $0 (block $compile_block.10 (result i32) (block $compile_store.3 - (global.set $x_1110 + (global.set $x_1113 (tuple.extract 0 (tuple.make (block $allocate_array.1 (result i32) @@ -77,7 +77,7 @@ arrays › array_access4 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $x_1110) + (global.get $x_1113) ) ) ) @@ -90,7 +90,7 @@ arrays › array_access4 (i32.const -3) ) (local.set $2 - (global.get $x_1110) + (global.get $x_1113) ) (block $resolve_idx.8 (if diff --git a/compiler/test/__snapshots__/arrays.4c8c9f91.0.snapshot b/compiler/test/__snapshots__/arrays.4c8c9f91.0.snapshot index 6acf427fcd..9e34ec7a48 100644 --- a/compiler/test/__snapshots__/arrays.4c8c9f91.0.snapshot +++ b/compiler/test/__snapshots__/arrays.4c8c9f91.0.snapshot @@ -15,7 +15,7 @@ arrays › array_access2 (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/exception\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32))) - (global $x_1110 (mut i32) (i32.const 0)) + (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -44,7 +44,7 @@ arrays › array_access2 (local.set $0 (block $compile_block.10 (result i32) (block $compile_store.3 - (global.set $x_1110 + (global.set $x_1113 (tuple.extract 0 (tuple.make (block $allocate_array.1 (result i32) @@ -77,7 +77,7 @@ arrays › array_access2 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $x_1110) + (global.get $x_1113) ) ) ) @@ -90,7 +90,7 @@ arrays › array_access2 (i32.const 3) ) (local.set $2 - (global.get $x_1110) + (global.get $x_1113) ) (block $resolve_idx.8 (if diff --git a/compiler/test/__snapshots__/arrays.6eac4e1f.0.snapshot b/compiler/test/__snapshots__/arrays.6eac4e1f.0.snapshot index 58b78834f5..5ab76ac7b8 100644 --- a/compiler/test/__snapshots__/arrays.6eac4e1f.0.snapshot +++ b/compiler/test/__snapshots__/arrays.6eac4e1f.0.snapshot @@ -15,7 +15,7 @@ arrays › array_access3 (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/exception\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32))) - (global $x_1110 (mut i32) (i32.const 0)) + (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -44,7 +44,7 @@ arrays › array_access3 (local.set $0 (block $compile_block.10 (result i32) (block $compile_store.3 - (global.set $x_1110 + (global.set $x_1113 (tuple.extract 0 (tuple.make (block $allocate_array.1 (result i32) @@ -77,7 +77,7 @@ arrays › array_access3 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $x_1110) + (global.get $x_1113) ) ) ) @@ -90,7 +90,7 @@ arrays › array_access3 (i32.const 5) ) (local.set $2 - (global.get $x_1110) + (global.get $x_1113) ) (block $resolve_idx.8 (if diff --git a/compiler/test/__snapshots__/arrays.74d79181.0.snapshot b/compiler/test/__snapshots__/arrays.74d79181.0.snapshot index 6ed0893595..7b64727dc8 100644 --- a/compiler/test/__snapshots__/arrays.74d79181.0.snapshot +++ b/compiler/test/__snapshots__/arrays.74d79181.0.snapshot @@ -15,7 +15,7 @@ arrays › array_access5 (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/exception\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32))) - (global $x_1110 (mut i32) (i32.const 0)) + (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -44,7 +44,7 @@ arrays › array_access5 (local.set $0 (block $compile_block.10 (result i32) (block $compile_store.3 - (global.set $x_1110 + (global.set $x_1113 (tuple.extract 0 (tuple.make (block $allocate_array.1 (result i32) @@ -77,7 +77,7 @@ arrays › array_access5 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $x_1110) + (global.get $x_1113) ) ) ) @@ -90,7 +90,7 @@ arrays › array_access5 (i32.const -5) ) (local.set $2 - (global.get $x_1110) + (global.get $x_1113) ) (block $resolve_idx.8 (if diff --git a/compiler/test/__snapshots__/basic_functionality.040643b3.0.snapshot b/compiler/test/__snapshots__/basic_functionality.040643b3.0.snapshot index ff7e9f1e13..ab8497ee4c 100644 --- a/compiler/test/__snapshots__/basic_functionality.040643b3.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.040643b3.0.snapshot @@ -9,9 +9,9 @@ basic functionality › comp5 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<\" (global $<_1111 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<\" (global $<_1114 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"<\" (func $<_1111 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"<\" (func $<_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -42,10 +42,10 @@ basic functionality › comp5 (block $compile_block.5 (result i32) (block $compile_store.2 (local.set $6 - (call $<_1111 + (call $<_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $<_1111) + (global.get $<_1114) ) (i32.const 5) (i32.const 7) diff --git a/compiler/test/__snapshots__/basic_functionality.0996c5f7.0.snapshot b/compiler/test/__snapshots__/basic_functionality.0996c5f7.0.snapshot index db273c1a1c..eb6d2bd9de 100644 --- a/compiler/test/__snapshots__/basic_functionality.0996c5f7.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.0996c5f7.0.snapshot @@ -9,9 +9,9 @@ basic functionality › modulo4 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › modulo4 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $%_1110 + (call $%_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $%_1110) + (global.get $%_1113) ) (i32.const -33) (i32.const 35) diff --git a/compiler/test/__snapshots__/basic_functionality.0a230f18.0.snapshot b/compiler/test/__snapshots__/basic_functionality.0a230f18.0.snapshot index 37597a1a72..97f1206608 100644 --- a/compiler/test/__snapshots__/basic_functionality.0a230f18.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.0a230f18.0.snapshot @@ -9,9 +9,9 @@ basic functionality › land4 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$&\" (global $&_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$&\" (global $&_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"&\" (func $&_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"&\" (func $&_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › land4 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $&_1110 + (call $&_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $&_1110) + (global.get $&_1113) ) (i32.const 1) (i32.const 1) diff --git a/compiler/test/__snapshots__/basic_functionality.0a2e4afa.0.snapshot b/compiler/test/__snapshots__/basic_functionality.0a2e4afa.0.snapshot index f329bbc31a..02a31897ad 100644 --- a/compiler/test/__snapshots__/basic_functionality.0a2e4afa.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.0a2e4afa.0.snapshot @@ -9,9 +9,9 @@ basic functionality › lxor1 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$^\" (global $^_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$^\" (global $^_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"^\" (func $^_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"^\" (func $^_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › lxor1 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $^_1110 + (call $^_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $^_1110) + (global.get $^_1113) ) (i32.const 3) (i32.const 3) diff --git a/compiler/test/__snapshots__/basic_functionality.0c0b170b.0.snapshot b/compiler/test/__snapshots__/basic_functionality.0c0b170b.0.snapshot index 95a62bb495..bcdb986328 100644 --- a/compiler/test/__snapshots__/basic_functionality.0c0b170b.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.0c0b170b.0.snapshot @@ -9,9 +9,9 @@ basic functionality › lor1 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$|\" (global $|_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$|\" (global $|_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"|\" (func $|_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"|\" (func $|_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › lor1 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $|_1110 + (call $|_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $|_1110) + (global.get $|_1113) ) (i32.const 3) (i32.const 3) diff --git a/compiler/test/__snapshots__/basic_functionality.0c400bde.0.snapshot b/compiler/test/__snapshots__/basic_functionality.0c400bde.0.snapshot index 6b84a45bdb..45f6883e97 100644 --- a/compiler/test/__snapshots__/basic_functionality.0c400bde.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.0c400bde.0.snapshot @@ -9,9 +9,9 @@ basic functionality › modulo6 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › modulo6 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $%_1110 + (call $%_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $%_1110) + (global.get $%_1113) ) (i32.const 35) (i32.const 35) diff --git a/compiler/test/__snapshots__/basic_functionality.0e812a39.0.snapshot b/compiler/test/__snapshots__/basic_functionality.0e812a39.0.snapshot index 33d6425372..f0e3c3d590 100644 --- a/compiler/test/__snapshots__/basic_functionality.0e812a39.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.0e812a39.0.snapshot @@ -10,12 +10,12 @@ basic functionality › precedence1 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$*\" (global $*_1113 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$*\" (global $*_1116 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"*\" (func $*_1113 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"*\" (func $*_1116 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -48,10 +48,10 @@ basic functionality › precedence1 (local.set $6 (tuple.extract 0 (tuple.make - (call $*_1113 + (call $*_1116 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $*_1113) + (global.get $*_1116) ) (i32.const 9) (i32.const 13) @@ -66,10 +66,10 @@ basic functionality › precedence1 (block $do_backpatches.1 ) ) - (call $+_1110 + (call $+_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1110) + (global.get $+_1113) ) (i32.const 7) (call $incRef_0 diff --git a/compiler/test/__snapshots__/basic_functionality.0f79ce35.0.snapshot b/compiler/test/__snapshots__/basic_functionality.0f79ce35.0.snapshot index 42f2b490fd..2ac7b9484a 100644 --- a/compiler/test/__snapshots__/basic_functionality.0f79ce35.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.0f79ce35.0.snapshot @@ -9,9 +9,9 @@ basic functionality › comp16 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › comp16 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (i32.const 2147483646) (i32.const 2147483646) diff --git a/compiler/test/__snapshots__/basic_functionality.10dda088.0.snapshot b/compiler/test/__snapshots__/basic_functionality.10dda088.0.snapshot index 5694efa859..92848d516b 100644 --- a/compiler/test/__snapshots__/basic_functionality.10dda088.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.10dda088.0.snapshot @@ -9,9 +9,9 @@ basic functionality › comp3 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>=\" (global $>=_1111 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>=\" (global $>=_1114 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \">=\" (func $>=_1111 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \">=\" (func $>=_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -42,10 +42,10 @@ basic functionality › comp3 (block $compile_block.5 (result i32) (block $compile_store.2 (local.set $6 - (call $>=_1111 + (call $>=_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $>=_1111) + (global.get $>=_1114) ) (i32.const 5) (i32.const 7) diff --git a/compiler/test/__snapshots__/basic_functionality.125626a9.0.snapshot b/compiler/test/__snapshots__/basic_functionality.125626a9.0.snapshot index f2e93a6a79..9f6dfc8d45 100644 --- a/compiler/test/__snapshots__/basic_functionality.125626a9.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.125626a9.0.snapshot @@ -9,9 +9,9 @@ basic functionality › orshadow (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1111 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1114 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1111 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › orshadow (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $+_1111 + (call $+_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1111) + (global.get $+_1114) ) (i32.const 3) (i32.const 5) diff --git a/compiler/test/__snapshots__/basic_functionality.13335202.0.snapshot b/compiler/test/__snapshots__/basic_functionality.13335202.0.snapshot index 0937d82949..58581315ca 100644 --- a/compiler/test/__snapshots__/basic_functionality.13335202.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.13335202.0.snapshot @@ -10,12 +10,12 @@ basic functionality › precedence2 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$*\" (global $*_1112 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$*\" (global $*_1115 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"*\" (func $*_1112 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"*\" (func $*_1115 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -48,10 +48,10 @@ basic functionality › precedence2 (local.set $6 (tuple.extract 0 (tuple.make - (call $*_1112 + (call $*_1115 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $*_1112) + (global.get $*_1115) ) (i32.const 9) (i32.const 13) @@ -66,10 +66,10 @@ basic functionality › precedence2 (block $do_backpatches.1 ) ) - (call $+_1110 + (call $+_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1110) + (global.get $+_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/basic_functionality.1ad0f349.0.snapshot b/compiler/test/__snapshots__/basic_functionality.1ad0f349.0.snapshot index 06c58c707b..6829c05750 100644 --- a/compiler/test/__snapshots__/basic_functionality.1ad0f349.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.1ad0f349.0.snapshot @@ -10,12 +10,12 @@ basic functionality › precedence3 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1113 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1116 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1113 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1116 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -48,10 +48,10 @@ basic functionality › precedence3 (local.set $6 (tuple.extract 0 (tuple.make - (call $%_1113 + (call $%_1116 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $%_1113) + (global.get $%_1116) ) (i32.const 9) (i32.const 13) @@ -66,10 +66,10 @@ basic functionality › precedence3 (block $do_backpatches.1 ) ) - (call $+_1110 + (call $+_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1110) + (global.get $+_1113) ) (i32.const 7) (call $incRef_0 diff --git a/compiler/test/__snapshots__/basic_functionality.1ae16d82.0.snapshot b/compiler/test/__snapshots__/basic_functionality.1ae16d82.0.snapshot index fa02b14677..5c4853780a 100644 --- a/compiler/test/__snapshots__/basic_functionality.1ae16d82.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.1ae16d82.0.snapshot @@ -9,9 +9,9 @@ basic functionality › binop4 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$*\" (global $*_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$*\" (global $*_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"*\" (func $*_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"*\" (func $*_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › binop4 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $*_1110 + (call $*_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $*_1110) + (global.get $*_1113) ) (i32.const 5) (i32.const 7) diff --git a/compiler/test/__snapshots__/basic_functionality.1b68c8db.0.snapshot b/compiler/test/__snapshots__/basic_functionality.1b68c8db.0.snapshot index 66d2d63a4b..bf1f2cd255 100644 --- a/compiler/test/__snapshots__/basic_functionality.1b68c8db.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.1b68c8db.0.snapshot @@ -9,9 +9,9 @@ basic functionality › lsl1 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<<\" (global $<<_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<<\" (global $<<_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"<<\" (func $<<_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"<<\" (func $<<_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › lsl1 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $<<_1110 + (call $<<_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $<<_1110) + (global.get $<<_1113) ) (i32.const 15) (i32.const 3) diff --git a/compiler/test/__snapshots__/basic_functionality.1bf5759c.0.snapshot b/compiler/test/__snapshots__/basic_functionality.1bf5759c.0.snapshot index a34e837bcf..fc1c540e0c 100644 --- a/compiler/test/__snapshots__/basic_functionality.1bf5759c.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.1bf5759c.0.snapshot @@ -11,18 +11,18 @@ basic functionality › unsafe_wasm_globals (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$unsafeWasmGlobalsExports\" \"GRAIN$EXPORT$_F64_VAL\" (global $_F64_VAL_1144 (mut f64))) - (import \"GRAIN$MODULE$runtime/debugPrint\" \"GRAIN$EXPORT$printF64\" (global $printF64_1143 (mut i32))) - (import \"GRAIN$MODULE$unsafeWasmGlobalsExports\" \"GRAIN$EXPORT$_F32_VAL\" (global $_F32_VAL_1142 (mut f32))) - (import \"GRAIN$MODULE$runtime/debugPrint\" \"GRAIN$EXPORT$printF32\" (global $printF32_1141 (mut i32))) - (import \"GRAIN$MODULE$unsafeWasmGlobalsExports\" \"GRAIN$EXPORT$_I64_VAL\" (global $_I64_VAL_1140 (mut i64))) - (import \"GRAIN$MODULE$runtime/debugPrint\" \"GRAIN$EXPORT$printI64\" (global $printI64_1139 (mut i32))) - (import \"GRAIN$MODULE$unsafeWasmGlobalsExports\" \"GRAIN$EXPORT$_I32_VAL\" (global $_I32_VAL_1138 (mut i32))) - (import \"GRAIN$MODULE$runtime/debugPrint\" \"GRAIN$EXPORT$printI32\" (global $printI32_1137 (mut i32))) - (import \"GRAIN$MODULE$runtime/debugPrint\" \"printF64\" (func $printF64_1143 (param i32 f64) (result i32))) - (import \"GRAIN$MODULE$runtime/debugPrint\" \"printF32\" (func $printF32_1141 (param i32 f32) (result i32))) - (import \"GRAIN$MODULE$runtime/debugPrint\" \"printI64\" (func $printI64_1139 (param i32 i64) (result i32))) - (import \"GRAIN$MODULE$runtime/debugPrint\" \"printI32\" (func $printI32_1137 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$unsafeWasmGlobalsExports\" \"GRAIN$EXPORT$_F64_VAL\" (global $_F64_VAL_1147 (mut f64))) + (import \"GRAIN$MODULE$runtime/debugPrint\" \"GRAIN$EXPORT$printF64\" (global $printF64_1146 (mut i32))) + (import \"GRAIN$MODULE$unsafeWasmGlobalsExports\" \"GRAIN$EXPORT$_F32_VAL\" (global $_F32_VAL_1145 (mut f32))) + (import \"GRAIN$MODULE$runtime/debugPrint\" \"GRAIN$EXPORT$printF32\" (global $printF32_1144 (mut i32))) + (import \"GRAIN$MODULE$unsafeWasmGlobalsExports\" \"GRAIN$EXPORT$_I64_VAL\" (global $_I64_VAL_1143 (mut i64))) + (import \"GRAIN$MODULE$runtime/debugPrint\" \"GRAIN$EXPORT$printI64\" (global $printI64_1142 (mut i32))) + (import \"GRAIN$MODULE$unsafeWasmGlobalsExports\" \"GRAIN$EXPORT$_I32_VAL\" (global $_I32_VAL_1141 (mut i32))) + (import \"GRAIN$MODULE$runtime/debugPrint\" \"GRAIN$EXPORT$printI32\" (global $printI32_1140 (mut i32))) + (import \"GRAIN$MODULE$runtime/debugPrint\" \"printF64\" (func $printF64_1146 (param i32 f64) (result i32))) + (import \"GRAIN$MODULE$runtime/debugPrint\" \"printF32\" (func $printF32_1144 (param i32 f32) (result i32))) + (import \"GRAIN$MODULE$runtime/debugPrint\" \"printI64\" (func $printI64_1142 (param i32 i64) (result i32))) + (import \"GRAIN$MODULE$runtime/debugPrint\" \"printI32\" (func $printI32_1140 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -49,26 +49,26 @@ basic functionality › unsafe_wasm_globals (return (block $compile_block.1 (result i32) (drop - (call $printI32_1137 - (global.get $printI32_1137) - (global.get $_I32_VAL_1138) + (call $printI32_1140 + (global.get $printI32_1140) + (global.get $_I32_VAL_1141) ) ) (drop - (call $printI64_1139 - (global.get $printI64_1139) - (global.get $_I64_VAL_1140) + (call $printI64_1142 + (global.get $printI64_1142) + (global.get $_I64_VAL_1143) ) ) (drop - (call $printF32_1141 - (global.get $printF32_1141) - (global.get $_F32_VAL_1142) + (call $printF32_1144 + (global.get $printF32_1144) + (global.get $_F32_VAL_1145) ) ) - (call $printF64_1143 - (global.get $printF64_1143) - (global.get $_F64_VAL_1144) + (call $printF64_1146 + (global.get $printF64_1146) + (global.get $_F64_VAL_1147) ) ) ) diff --git a/compiler/test/__snapshots__/basic_functionality.1d2ec323.0.snapshot b/compiler/test/__snapshots__/basic_functionality.1d2ec323.0.snapshot index e7b8e0f078..9281967c83 100644 --- a/compiler/test/__snapshots__/basic_functionality.1d2ec323.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.1d2ec323.0.snapshot @@ -11,11 +11,11 @@ basic functionality › comp22 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$isnt\" (global $isnt_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$isnt\" (global $isnt_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"isnt\" (func $isnt_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"isnt\" (func $isnt_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -325,10 +325,10 @@ basic functionality › comp22 (block $do_backpatches.17 ) ) - (call $isnt_1110 + (call $isnt_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $isnt_1110) + (global.get $isnt_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/basic_functionality.1e4b1f39.0.snapshot b/compiler/test/__snapshots__/basic_functionality.1e4b1f39.0.snapshot index f5f5bce218..7756db3ee2 100644 --- a/compiler/test/__snapshots__/basic_functionality.1e4b1f39.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.1e4b1f39.0.snapshot @@ -9,9 +9,9 @@ basic functionality › land1 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$&\" (global $&_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$&\" (global $&_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"&\" (func $&_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"&\" (func $&_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › land1 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $&_1110 + (call $&_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $&_1110) + (global.get $&_1113) ) (i32.const 3) (i32.const 3) diff --git a/compiler/test/__snapshots__/basic_functionality.1f787365.0.snapshot b/compiler/test/__snapshots__/basic_functionality.1f787365.0.snapshot index fc37c143db..7386438578 100644 --- a/compiler/test/__snapshots__/basic_functionality.1f787365.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.1f787365.0.snapshot @@ -8,9 +8,9 @@ basic functionality › orshort2 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1110 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1113 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › orshort2 (local.set $0 (block $compile_block.1 (result i32) (drop - (call $print_1110 + (call $print_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1110) + (global.get $print_1113) ) (i32.const 3) ) diff --git a/compiler/test/__snapshots__/basic_functionality.240ef39e.0.snapshot b/compiler/test/__snapshots__/basic_functionality.240ef39e.0.snapshot index 566e12ee66..bb47f2774e 100644 --- a/compiler/test/__snapshots__/basic_functionality.240ef39e.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.240ef39e.0.snapshot @@ -9,9 +9,9 @@ basic functionality › comp4 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>\" (global $>_1111 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>\" (global $>_1114 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \">\" (func $>_1111 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \">\" (func $>_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -42,10 +42,10 @@ basic functionality › comp4 (block $compile_block.5 (result i32) (block $compile_store.2 (local.set $6 - (call $>_1111 + (call $>_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $>_1111) + (global.get $>_1114) ) (i32.const 5) (i32.const 7) diff --git a/compiler/test/__snapshots__/basic_functionality.28405f1f.0.snapshot b/compiler/test/__snapshots__/basic_functionality.28405f1f.0.snapshot index 98f182bc20..c0de639c5f 100644 --- a/compiler/test/__snapshots__/basic_functionality.28405f1f.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.28405f1f.0.snapshot @@ -10,12 +10,12 @@ basic functionality › precedence4 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1112 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1115 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1112 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1115 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -48,10 +48,10 @@ basic functionality › precedence4 (local.set $6 (tuple.extract 0 (tuple.make - (call $%_1112 + (call $%_1115 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $%_1112) + (global.get $%_1115) ) (i32.const 9) (i32.const 13) @@ -66,10 +66,10 @@ basic functionality › precedence4 (block $do_backpatches.1 ) ) - (call $+_1110 + (call $+_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1110) + (global.get $+_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/basic_functionality.28bf4c9e.0.snapshot b/compiler/test/__snapshots__/basic_functionality.28bf4c9e.0.snapshot index c6d60aaf6d..0c72fcbe09 100644 --- a/compiler/test/__snapshots__/basic_functionality.28bf4c9e.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.28bf4c9e.0.snapshot @@ -9,9 +9,9 @@ basic functionality › binop2 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › binop2 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $-_1110 + (call $-_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $-_1110) + (global.get $-_1113) ) (i32.const 5) (i32.const 5) diff --git a/compiler/test/__snapshots__/basic_functionality.2bcc447b.0.snapshot b/compiler/test/__snapshots__/basic_functionality.2bcc447b.0.snapshot index 42fc6ea86c..c22daf49d2 100644 --- a/compiler/test/__snapshots__/basic_functionality.2bcc447b.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.2bcc447b.0.snapshot @@ -12,14 +12,14 @@ basic functionality › assert2 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1113 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1111 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1116 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1114 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/exception\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1113 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1111 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1116 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -55,10 +55,10 @@ basic functionality › assert2 (local.set $6 (tuple.extract 0 (tuple.make - (call $+_1113 + (call $+_1116 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1113) + (global.get $+_1116) ) (i32.const 7) (i32.const 7) @@ -75,10 +75,10 @@ basic functionality › assert2 ) (block $compile_store.4 (local.set $9 - (call $==_1111 + (call $==_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1111) + (global.get $==_1114) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/basic_functionality.2f2f8795.0.snapshot b/compiler/test/__snapshots__/basic_functionality.2f2f8795.0.snapshot index 83e714b3e2..ec27100f82 100644 --- a/compiler/test/__snapshots__/basic_functionality.2f2f8795.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.2f2f8795.0.snapshot @@ -9,9 +9,9 @@ basic functionality › lsl2 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<<\" (global $<<_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<<\" (global $<<_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"<<\" (func $<<_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"<<\" (func $<<_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › lsl2 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $<<_1110 + (call $<<_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $<<_1110) + (global.get $<<_1113) ) (i32.const 1) (i32.const 3) diff --git a/compiler/test/__snapshots__/basic_functionality.2f53324c.0.snapshot b/compiler/test/__snapshots__/basic_functionality.2f53324c.0.snapshot index 94cf3d8e88..079751ca04 100644 --- a/compiler/test/__snapshots__/basic_functionality.2f53324c.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.2f53324c.0.snapshot @@ -9,9 +9,9 @@ basic functionality › comp17 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$isnt\" (global $isnt_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$isnt\" (global $isnt_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"isnt\" (func $isnt_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"isnt\" (func $isnt_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › comp17 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $isnt_1110 + (call $isnt_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $isnt_1110) + (global.get $isnt_1113) ) (i32.const 2147483646) (i32.const -2) diff --git a/compiler/test/__snapshots__/basic_functionality.32a8c452.0.snapshot b/compiler/test/__snapshots__/basic_functionality.32a8c452.0.snapshot index 46d1519507..5bb59c562e 100644 --- a/compiler/test/__snapshots__/basic_functionality.32a8c452.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.32a8c452.0.snapshot @@ -10,12 +10,12 @@ basic functionality › complex2 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1112 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1115 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1112 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1110 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1115 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1113 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -48,10 +48,10 @@ basic functionality › complex2 (local.set $6 (tuple.extract 0 (tuple.make - (call $+_1112 + (call $+_1115 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1112) + (global.get $+_1115) ) (i32.const 5) (i32.const 7) @@ -66,10 +66,10 @@ basic functionality › complex2 (block $do_backpatches.1 ) ) - (call $print_1110 + (call $print_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1110) + (global.get $print_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/basic_functionality.3c2ba165.0.snapshot b/compiler/test/__snapshots__/basic_functionality.3c2ba165.0.snapshot index 39bbc4aa28..09bb5f33d1 100644 --- a/compiler/test/__snapshots__/basic_functionality.3c2ba165.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.3c2ba165.0.snapshot @@ -11,11 +11,11 @@ basic functionality › comp20 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$isnt\" (global $isnt_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$isnt\" (global $isnt_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"isnt\" (func $isnt_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"isnt\" (func $isnt_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -363,10 +363,10 @@ basic functionality › comp20 (block $do_backpatches.17 ) ) - (call $isnt_1110 + (call $isnt_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $isnt_1110) + (global.get $isnt_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/basic_functionality.3e5f990b.0.snapshot b/compiler/test/__snapshots__/basic_functionality.3e5f990b.0.snapshot index 006f3b1cde..9584fd456f 100644 --- a/compiler/test/__snapshots__/basic_functionality.3e5f990b.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.3e5f990b.0.snapshot @@ -9,9 +9,9 @@ basic functionality › lor3 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$|\" (global $|_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$|\" (global $|_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"|\" (func $|_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"|\" (func $|_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › lor3 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $|_1110 + (call $|_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $|_1110) + (global.get $|_1113) ) (i32.const 1) (i32.const 3) diff --git a/compiler/test/__snapshots__/basic_functionality.3edefd23.0.snapshot b/compiler/test/__snapshots__/basic_functionality.3edefd23.0.snapshot index 21b13aa024..fb2a5f9c50 100644 --- a/compiler/test/__snapshots__/basic_functionality.3edefd23.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.3edefd23.0.snapshot @@ -8,9 +8,9 @@ basic functionality › decr_3 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$decr\" (global $decr_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$decr\" (global $decr_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"decr\" (func $decr_1110 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"decr\" (func $decr_1113 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -38,10 +38,10 @@ basic functionality › decr_3 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $decr_1110 + (call $decr_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $decr_1110) + (global.get $decr_1113) ) (i32.const 1) ) diff --git a/compiler/test/__snapshots__/basic_functionality.46348f36.0.snapshot b/compiler/test/__snapshots__/basic_functionality.46348f36.0.snapshot index a301ba9317..c71b42a17a 100644 --- a/compiler/test/__snapshots__/basic_functionality.46348f36.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.46348f36.0.snapshot @@ -9,11 +9,11 @@ basic functionality › precedence5 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<\" (global $<_1114 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>\" (global $>_1111 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<\" (global $<_1117 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>\" (global $>_1114 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"<\" (func $<_1114 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \">\" (func $>_1111 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"<\" (func $<_1117 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \">\" (func $>_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -44,10 +44,10 @@ basic functionality › precedence5 (block $compile_block.5 (result i32) (block $compile_store.2 (local.set $6 - (call $>_1111 + (call $>_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $>_1111) + (global.get $>_1114) ) (i32.const 9) (i32.const 7) @@ -62,10 +62,10 @@ basic functionality › precedence5 (i32.const 31) ) (block $compile_block.3 (result i32) - (call $<_1114 + (call $<_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $<_1114) + (global.get $<_1117) ) (i32.const 19) (i32.const 27) diff --git a/compiler/test/__snapshots__/basic_functionality.52ca8e0e.0.snapshot b/compiler/test/__snapshots__/basic_functionality.52ca8e0e.0.snapshot index 6ec912c8db..183bb8d781 100644 --- a/compiler/test/__snapshots__/basic_functionality.52ca8e0e.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.52ca8e0e.0.snapshot @@ -11,13 +11,13 @@ basic functionality › func_shadow (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1115 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1118 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1115 (param i32 i32) (result i32))) - (global $foo_1112 (mut i32) (i32.const 0)) - (global $foo_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1118 (param i32 i32) (result i32))) + (global $foo_1115 (mut i32) (i32.const 0)) + (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -25,7 +25,7 @@ basic functionality › func_shadow (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $foo_1110 (param $0 i32) (result i32) + (func $foo_1113 (param $0 i32) (result i32) (local $1 i32) (local $2 i32) (local $3 i32) @@ -73,7 +73,7 @@ basic functionality › func_shadow ) ) ) - (func $foo_1112 (param $0 i32) (result i32) + (func $foo_1115 (param $0 i32) (result i32) (local $1 i32) (local $2 i32) (local $3 i32) @@ -144,7 +144,7 @@ basic functionality › func_shadow (local.set $0 (block $compile_block.17 (result i32) (block $compile_store.9 - (global.set $foo_1110 + (global.set $foo_1113 (tuple.extract 0 (tuple.make (block $allocate_closure.7 (result i32) @@ -173,14 +173,14 @@ basic functionality › func_shadow ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) ) (block $do_backpatches.8 (local.set $0 - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) @@ -188,10 +188,10 @@ basic functionality › func_shadow (local.set $6 (tuple.extract 0 (tuple.make - (call $foo_1110 + (call $foo_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) ) (call $decRef_0 @@ -205,10 +205,10 @@ basic functionality › func_shadow ) ) (drop - (call $print_1115 + (call $print_1118 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1115) + (global.get $print_1118) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -217,7 +217,7 @@ basic functionality › func_shadow ) ) (block $compile_store.14 - (global.set $foo_1112 + (global.set $foo_1115 (tuple.extract 0 (tuple.make (block $allocate_closure.12 (result i32) @@ -246,14 +246,14 @@ basic functionality › func_shadow ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1112) + (global.get $foo_1115) ) ) ) ) (block $do_backpatches.13 (local.set $0 - (global.get $foo_1112) + (global.get $foo_1115) ) ) ) @@ -261,10 +261,10 @@ basic functionality › func_shadow (local.set $7 (tuple.extract 0 (tuple.make - (call $foo_1112 + (call $foo_1115 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1112) + (global.get $foo_1115) ) ) (call $decRef_0 @@ -277,10 +277,10 @@ basic functionality › func_shadow (block $do_backpatches.15 ) ) - (call $print_1115 + (call $print_1118 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1115) + (global.get $print_1118) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/basic_functionality.5705b20c.0.snapshot b/compiler/test/__snapshots__/basic_functionality.5705b20c.0.snapshot index 05bae0c3cc..572ccecacb 100644 --- a/compiler/test/__snapshots__/basic_functionality.5705b20c.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.5705b20c.0.snapshot @@ -9,9 +9,9 @@ basic functionality › modulo5 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › modulo5 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $%_1110 + (call $%_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $%_1110) + (global.get $%_1113) ) (i32.const 35) (i32.const -33) diff --git a/compiler/test/__snapshots__/basic_functionality.593b8d63.0.snapshot b/compiler/test/__snapshots__/basic_functionality.593b8d63.0.snapshot index e0fc00b1f0..c02fb1fc78 100644 --- a/compiler/test/__snapshots__/basic_functionality.593b8d63.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.593b8d63.0.snapshot @@ -10,13 +10,13 @@ basic functionality › if_one_sided6 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1118 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<\" (global $<_1113 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1121 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<\" (global $<_1116 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1118 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"<\" (func $<_1113 (param i32 i32 i32) (result i32))) - (global $x_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1121 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"<\" (func $<_1116 (param i32 i32 i32) (result i32))) + (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -47,13 +47,13 @@ basic functionality › if_one_sided6 (local.set $0 (block $compile_block.10 (result i32) (block $compile_store.2 - (global.set $x_1110 + (global.set $x_1113 (tuple.extract 0 (tuple.make (i32.const 3) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $x_1110) + (global.get $x_1113) ) ) ) @@ -63,10 +63,10 @@ basic functionality › if_one_sided6 ) (block $compile_store.4 (local.set $7 - (call $<_1113 + (call $<_1116 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $<_1113) + (global.get $<_1116) ) (i32.const 7) (i32.const 9) @@ -86,10 +86,10 @@ basic functionality › if_one_sided6 (local.set $6 (tuple.extract 0 (tuple.make - (call $+_1118 + (call $+_1121 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1118) + (global.get $+_1121) ) (i32.const 5) (i32.const 7) @@ -105,7 +105,7 @@ basic functionality › if_one_sided6 ) ) (block $compile_set.7 (result i32) - (global.set $x_1110 + (global.set $x_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -114,7 +114,7 @@ basic functionality › if_one_sided6 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $x_1110) + (global.get $x_1113) ) ) ) @@ -129,7 +129,7 @@ basic functionality › if_one_sided6 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $x_1110) + (global.get $x_1113) ) ) ) diff --git a/compiler/test/__snapshots__/basic_functionality.5d973a3e.0.snapshot b/compiler/test/__snapshots__/basic_functionality.5d973a3e.0.snapshot index 2cda66d290..0b0884cd18 100644 --- a/compiler/test/__snapshots__/basic_functionality.5d973a3e.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.5d973a3e.0.snapshot @@ -9,9 +9,9 @@ basic functionality › binop6 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › binop6 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $%_1110 + (call $%_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $%_1110) + (global.get $%_1113) ) (i32.const 19) (i32.const 11) diff --git a/compiler/test/__snapshots__/basic_functionality.61c58118.0.snapshot b/compiler/test/__snapshots__/basic_functionality.61c58118.0.snapshot index 87b1c1559f..a0b069eae1 100644 --- a/compiler/test/__snapshots__/basic_functionality.61c58118.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.61c58118.0.snapshot @@ -14,7 +14,7 @@ basic functionality › block_no_expression (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (global $f_1110 (mut i32) (i32.const 0)) + (global $f_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -22,7 +22,7 @@ basic functionality › block_no_expression (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $f_1110 (param $0 i32) (result i32) + (func $f_1113 (param $0 i32) (result i32) (local $1 i32) (local $2 i32) (local $3 i32) @@ -67,7 +67,7 @@ basic functionality › block_no_expression (local.set $0 (block $compile_block.6 (result i32) (block $compile_store.5 - (global.set $f_1110 + (global.set $f_1113 (tuple.extract 0 (tuple.make (block $allocate_closure.3 (result i32) @@ -96,21 +96,21 @@ basic functionality › block_no_expression ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $f_1110) + (global.get $f_1113) ) ) ) ) (block $do_backpatches.4 (local.set $0 - (global.get $f_1110) + (global.get $f_1113) ) ) ) - (call $f_1110 + (call $f_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $f_1110) + (global.get $f_1113) ) ) ) diff --git a/compiler/test/__snapshots__/basic_functionality.626b2e44.0.snapshot b/compiler/test/__snapshots__/basic_functionality.626b2e44.0.snapshot index b693aff369..fa330b89d4 100644 --- a/compiler/test/__snapshots__/basic_functionality.626b2e44.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.626b2e44.0.snapshot @@ -10,13 +10,13 @@ basic functionality › if_one_sided5 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1118 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<\" (global $<_1113 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1121 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<\" (global $<_1116 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1118 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"<\" (func $<_1113 (param i32 i32 i32) (result i32))) - (global $x_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1121 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"<\" (func $<_1116 (param i32 i32 i32) (result i32))) + (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -47,13 +47,13 @@ basic functionality › if_one_sided5 (local.set $0 (block $compile_block.10 (result i32) (block $compile_store.2 - (global.set $x_1110 + (global.set $x_1113 (tuple.extract 0 (tuple.make (i32.const 3) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $x_1110) + (global.get $x_1113) ) ) ) @@ -63,10 +63,10 @@ basic functionality › if_one_sided5 ) (block $compile_store.4 (local.set $7 - (call $<_1113 + (call $<_1116 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $<_1113) + (global.get $<_1116) ) (i32.const 7) (i32.const 9) @@ -85,10 +85,10 @@ basic functionality › if_one_sided5 (local.set $6 (tuple.extract 0 (tuple.make - (call $+_1118 + (call $+_1121 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1118) + (global.get $+_1121) ) (i32.const 5) (i32.const 7) @@ -104,7 +104,7 @@ basic functionality › if_one_sided5 ) ) (block $compile_set.7 (result i32) - (global.set $x_1110 + (global.set $x_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -113,7 +113,7 @@ basic functionality › if_one_sided5 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $x_1110) + (global.get $x_1113) ) ) ) diff --git a/compiler/test/__snapshots__/basic_functionality.65d36891.0.snapshot b/compiler/test/__snapshots__/basic_functionality.65d36891.0.snapshot index 9369604491..927681b64a 100644 --- a/compiler/test/__snapshots__/basic_functionality.65d36891.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.65d36891.0.snapshot @@ -9,9 +9,9 @@ basic functionality › lor2 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$|\" (global $|_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$|\" (global $|_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"|\" (func $|_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"|\" (func $|_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › lor2 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $|_1110 + (call $|_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $|_1110) + (global.get $|_1113) ) (i32.const 3) (i32.const 1) diff --git a/compiler/test/__snapshots__/basic_functionality.67d2cc45.0.snapshot b/compiler/test/__snapshots__/basic_functionality.67d2cc45.0.snapshot index bda6275856..5326effe53 100644 --- a/compiler/test/__snapshots__/basic_functionality.67d2cc45.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.67d2cc45.0.snapshot @@ -9,9 +9,9 @@ basic functionality › binop3 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › binop3 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $-_1110 + (call $-_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $-_1110) + (global.get $-_1113) ) (i32.const 5) (i32.const 9) diff --git a/compiler/test/__snapshots__/basic_functionality.684b6ecb.0.snapshot b/compiler/test/__snapshots__/basic_functionality.684b6ecb.0.snapshot index 9667223dbb..8d5c377ba4 100644 --- a/compiler/test/__snapshots__/basic_functionality.684b6ecb.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.684b6ecb.0.snapshot @@ -9,9 +9,9 @@ basic functionality › binop2.2 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › binop2.2 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $-_1110 + (call $-_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $-_1110) + (global.get $-_1113) ) (i32.const 5) (i32.const 5) diff --git a/compiler/test/__snapshots__/basic_functionality.68d08483.0.snapshot b/compiler/test/__snapshots__/basic_functionality.68d08483.0.snapshot index 92bfe7041f..595e74d8a4 100644 --- a/compiler/test/__snapshots__/basic_functionality.68d08483.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.68d08483.0.snapshot @@ -9,9 +9,9 @@ basic functionality › land2 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$&\" (global $&_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$&\" (global $&_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"&\" (func $&_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"&\" (func $&_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › land2 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $&_1110 + (call $&_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $&_1110) + (global.get $&_1113) ) (i32.const 3) (i32.const 1) diff --git a/compiler/test/__snapshots__/basic_functionality.711a4824.0.snapshot b/compiler/test/__snapshots__/basic_functionality.711a4824.0.snapshot index a46d04c5c0..befc3d73ac 100644 --- a/compiler/test/__snapshots__/basic_functionality.711a4824.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.711a4824.0.snapshot @@ -11,12 +11,12 @@ basic functionality › pattern_match_unsafe_wasm (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1122 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1125 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1122 (param i32 i32) (result i32))) - (global $test_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1125 (param i32 i32) (result i32))) + (global $test_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -24,7 +24,7 @@ basic functionality › pattern_match_unsafe_wasm (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $test_1110 (param $0 i32) (result i32) + (func $test_1113 (param $0 i32) (result i32) (local $1 i32) (local $2 i32) (local $3 i32) @@ -78,7 +78,7 @@ basic functionality › pattern_match_unsafe_wasm ) ) (drop - (call $foo_1111 + (call $foo_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (local.get $7) @@ -87,7 +87,7 @@ basic functionality › pattern_match_unsafe_wasm ) ) (drop - (call $foo_1111 + (call $foo_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (local.get $7) @@ -96,7 +96,7 @@ basic functionality › pattern_match_unsafe_wasm ) ) (drop - (call $foo_1111 + (call $foo_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (local.get $7) @@ -105,7 +105,7 @@ basic functionality › pattern_match_unsafe_wasm ) ) (drop - (call $foo_1111 + (call $foo_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (local.get $7) @@ -113,7 +113,7 @@ basic functionality › pattern_match_unsafe_wasm (i32.const 8) ) ) - (call $foo_1111 + (call $foo_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (local.get $7) @@ -138,7 +138,7 @@ basic functionality › pattern_match_unsafe_wasm ) ) ) - (func $foo_1111 (param $0 i32) (param $1 i32) (result i32) + (func $foo_1114 (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) @@ -395,10 +395,10 @@ basic functionality › pattern_match_unsafe_wasm (block $do_backpatches.40 ) ) - (call $print_1122 + (call $print_1125 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1122) + (global.get $print_1125) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -411,10 +411,10 @@ basic functionality › pattern_match_unsafe_wasm ) (br $switch.32_outer (block $compile_block.38 (result i32) - (call $print_1122 + (call $print_1125 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1122) + (global.get $print_1125) ) (i32.const 13) ) @@ -424,10 +424,10 @@ basic functionality › pattern_match_unsafe_wasm ) (br $switch.32_outer (block $compile_block.37 (result i32) - (call $print_1122 + (call $print_1125 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1122) + (global.get $print_1125) ) (i32.const 11) ) @@ -437,10 +437,10 @@ basic functionality › pattern_match_unsafe_wasm ) (br $switch.32_outer (block $compile_block.36 (result i32) - (call $print_1122 + (call $print_1125 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1122) + (global.get $print_1125) ) (i32.const 9) ) @@ -450,10 +450,10 @@ basic functionality › pattern_match_unsafe_wasm ) (br $switch.32_outer (block $compile_block.35 (result i32) - (call $print_1122 + (call $print_1125 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1122) + (global.get $print_1125) ) (i32.const 7) ) @@ -463,10 +463,10 @@ basic functionality › pattern_match_unsafe_wasm ) (br $switch.32_outer (block $compile_block.34 (result i32) - (call $print_1122 + (call $print_1125 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1122) + (global.get $print_1125) ) (i32.const 5) ) @@ -476,10 +476,10 @@ basic functionality › pattern_match_unsafe_wasm ) (br $switch.32_outer (block $compile_block.33 (result i32) - (call $print_1122 + (call $print_1125 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1122) + (global.get $print_1125) ) (i32.const 3) ) @@ -526,7 +526,7 @@ basic functionality › pattern_match_unsafe_wasm (local.set $0 (block $compile_block.49 (result i32) (block $compile_store.48 - (global.set $test_1110 + (global.set $test_1113 (tuple.extract 0 (tuple.make (block $allocate_closure.46 (result i32) @@ -555,21 +555,21 @@ basic functionality › pattern_match_unsafe_wasm ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $test_1110) + (global.get $test_1113) ) ) ) ) (block $do_backpatches.47 (local.set $0 - (global.get $test_1110) + (global.get $test_1113) ) ) ) - (call $test_1110 + (call $test_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $test_1110) + (global.get $test_1113) ) ) ) diff --git a/compiler/test/__snapshots__/basic_functionality.7287219f.0.snapshot b/compiler/test/__snapshots__/basic_functionality.7287219f.0.snapshot index fb5c3a72ee..0056da3224 100644 --- a/compiler/test/__snapshots__/basic_functionality.7287219f.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.7287219f.0.snapshot @@ -9,9 +9,9 @@ basic functionality › asr1 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>>\" (global $>>_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>>\" (global $>>_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \">>\" (func $>>_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \">>\" (func $>>_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › asr1 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $>>_1110 + (call $>>_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $>>_1110) + (global.get $>>_1113) ) (i32.const 359) (i32.const 3) diff --git a/compiler/test/__snapshots__/basic_functionality.7d0640b4.0.snapshot b/compiler/test/__snapshots__/basic_functionality.7d0640b4.0.snapshot index 8b3e6fa2c0..86bb53d03d 100644 --- a/compiler/test/__snapshots__/basic_functionality.7d0640b4.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.7d0640b4.0.snapshot @@ -9,11 +9,11 @@ basic functionality › if_one_sided2 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1114 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>\" (global $>_1111 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1117 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>\" (global $>_1114 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1114 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \">\" (func $>_1111 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1117 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \">\" (func $>_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -44,10 +44,10 @@ basic functionality › if_one_sided2 (block $compile_block.5 (result i32) (block $compile_store.2 (local.set $6 - (call $>_1111 + (call $>_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $>_1111) + (global.get $>_1114) ) (i32.const 7) (i32.const 9) @@ -62,10 +62,10 @@ basic functionality › if_one_sided2 (i32.const 31) ) (block $compile_block.3 (result i32) - (call $print_1114 + (call $print_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1114) + (global.get $print_1117) ) (i32.const 11) ) diff --git a/compiler/test/__snapshots__/basic_functionality.9110d0f5.0.snapshot b/compiler/test/__snapshots__/basic_functionality.9110d0f5.0.snapshot index 2a7482eb53..4b7c826d2a 100644 --- a/compiler/test/__snapshots__/basic_functionality.9110d0f5.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.9110d0f5.0.snapshot @@ -9,9 +9,9 @@ basic functionality › comp13 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › comp13 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (i32.const -2) (i32.const -2) diff --git a/compiler/test/__snapshots__/basic_functionality.9157dba1.0.snapshot b/compiler/test/__snapshots__/basic_functionality.9157dba1.0.snapshot index 8b21275a43..a8d41dc07e 100644 --- a/compiler/test/__snapshots__/basic_functionality.9157dba1.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.9157dba1.0.snapshot @@ -9,9 +9,9 @@ basic functionality › andshadow (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1111 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1114 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1111 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › andshadow (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $+_1111 + (call $+_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1111) + (global.get $+_1114) ) (i32.const 3) (i32.const 5) diff --git a/compiler/test/__snapshots__/basic_functionality.974b7936.0.snapshot b/compiler/test/__snapshots__/basic_functionality.974b7936.0.snapshot index 918558aa62..9d8ba111ea 100644 --- a/compiler/test/__snapshots__/basic_functionality.974b7936.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.974b7936.0.snapshot @@ -9,9 +9,9 @@ basic functionality › lxor3 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$^\" (global $^_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$^\" (global $^_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"^\" (func $^_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"^\" (func $^_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › lxor3 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $^_1110 + (call $^_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $^_1110) + (global.get $^_1113) ) (i32.const 1) (i32.const 3) diff --git a/compiler/test/__snapshots__/basic_functionality.994117f8.0.snapshot b/compiler/test/__snapshots__/basic_functionality.994117f8.0.snapshot index 91672a6f2d..83aaf845d9 100644 --- a/compiler/test/__snapshots__/basic_functionality.994117f8.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.994117f8.0.snapshot @@ -8,9 +8,9 @@ basic functionality › incr_3 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$incr\" (global $incr_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$incr\" (global $incr_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"incr\" (func $incr_1110 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"incr\" (func $incr_1113 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -38,10 +38,10 @@ basic functionality › incr_3 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $incr_1110 + (call $incr_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $incr_1110) + (global.get $incr_1113) ) (i32.const -1) ) diff --git a/compiler/test/__snapshots__/basic_functionality.9c18b19d.0.snapshot b/compiler/test/__snapshots__/basic_functionality.9c18b19d.0.snapshot index b18b424e4b..54d73e7278 100644 --- a/compiler/test/__snapshots__/basic_functionality.9c18b19d.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.9c18b19d.0.snapshot @@ -10,11 +10,11 @@ basic functionality › if_one_sided3 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<\" (global $<_1113 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<\" (global $<_1116 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"<\" (func $<_1113 (param i32 i32 i32) (result i32))) - (global $x_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"<\" (func $<_1116 (param i32 i32 i32) (result i32))) + (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -44,13 +44,13 @@ basic functionality › if_one_sided3 (local.set $0 (block $compile_block.8 (result i32) (block $compile_store.2 - (global.set $x_1110 + (global.set $x_1113 (tuple.extract 0 (tuple.make (i32.const 3) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $x_1110) + (global.get $x_1113) ) ) ) @@ -60,10 +60,10 @@ basic functionality › if_one_sided3 ) (block $compile_store.4 (local.set $6 - (call $<_1113 + (call $<_1116 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $<_1113) + (global.get $<_1116) ) (i32.const 7) (i32.const 9) @@ -79,13 +79,13 @@ basic functionality › if_one_sided3 ) (block $compile_block.6 (result i32) (block $compile_set.5 (result i32) - (global.set $x_1110 + (global.set $x_1113 (tuple.extract 0 (tuple.make (i32.const 5) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $x_1110) + (global.get $x_1113) ) ) ) diff --git a/compiler/test/__snapshots__/basic_functionality.a0045d1c.0.snapshot b/compiler/test/__snapshots__/basic_functionality.a0045d1c.0.snapshot index a1ff502034..9ca5aadb82 100644 --- a/compiler/test/__snapshots__/basic_functionality.a0045d1c.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.a0045d1c.0.snapshot @@ -9,9 +9,9 @@ basic functionality › binop1 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › binop1 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $+_1110 + (call $+_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1110) + (global.get $+_1113) ) (i32.const 5) (i32.const 5) diff --git a/compiler/test/__snapshots__/basic_functionality.a2e63440.0.snapshot b/compiler/test/__snapshots__/basic_functionality.a2e63440.0.snapshot index d64be95c55..849c2e5ed0 100644 --- a/compiler/test/__snapshots__/basic_functionality.a2e63440.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.a2e63440.0.snapshot @@ -9,9 +9,9 @@ basic functionality › comp9 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>=\" (global $>=_1111 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>=\" (global $>=_1114 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \">=\" (func $>=_1111 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \">=\" (func $>=_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -42,10 +42,10 @@ basic functionality › comp9 (block $compile_block.5 (result i32) (block $compile_store.2 (local.set $6 - (call $>=_1111 + (call $>=_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $>=_1111) + (global.get $>=_1114) ) (i32.const 5) (i32.const 5) diff --git a/compiler/test/__snapshots__/basic_functionality.a3f7e180.0.snapshot b/compiler/test/__snapshots__/basic_functionality.a3f7e180.0.snapshot index 743e88c833..3e019f4cdb 100644 --- a/compiler/test/__snapshots__/basic_functionality.a3f7e180.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.a3f7e180.0.snapshot @@ -11,11 +11,11 @@ basic functionality › bigint_1 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -78,10 +78,10 @@ basic functionality › bigint_1 (block $do_backpatches.2 ) ) - (call $+_1110 + (call $+_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1110) + (global.get $+_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/basic_functionality.a58a9361.0.snapshot b/compiler/test/__snapshots__/basic_functionality.a58a9361.0.snapshot index 1fb751e100..794ce90f1b 100644 --- a/compiler/test/__snapshots__/basic_functionality.a58a9361.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.a58a9361.0.snapshot @@ -9,9 +9,9 @@ basic functionality › lxor2 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$^\" (global $^_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$^\" (global $^_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"^\" (func $^_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"^\" (func $^_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › lxor2 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $^_1110 + (call $^_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $^_1110) + (global.get $^_1113) ) (i32.const 3) (i32.const 1) diff --git a/compiler/test/__snapshots__/basic_functionality.a5d5182f.0.snapshot b/compiler/test/__snapshots__/basic_functionality.a5d5182f.0.snapshot index 24a8aab91b..8822dcf906 100644 --- a/compiler/test/__snapshots__/basic_functionality.a5d5182f.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.a5d5182f.0.snapshot @@ -9,9 +9,9 @@ basic functionality › comp2 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<=\" (global $<=_1111 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<=\" (global $<=_1114 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"<=\" (func $<=_1111 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"<=\" (func $<=_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -42,10 +42,10 @@ basic functionality › comp2 (block $compile_block.5 (result i32) (block $compile_store.2 (local.set $6 - (call $<=_1111 + (call $<=_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $<=_1111) + (global.get $<=_1114) ) (i32.const 5) (i32.const 7) diff --git a/compiler/test/__snapshots__/basic_functionality.a72898d0.0.snapshot b/compiler/test/__snapshots__/basic_functionality.a72898d0.0.snapshot index a23e951e75..82cc74e9ab 100644 --- a/compiler/test/__snapshots__/basic_functionality.a72898d0.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.a72898d0.0.snapshot @@ -9,9 +9,9 @@ basic functionality › comp8 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<=\" (global $<=_1111 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<=\" (global $<=_1114 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"<=\" (func $<=_1111 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"<=\" (func $<=_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -42,10 +42,10 @@ basic functionality › comp8 (block $compile_block.5 (result i32) (block $compile_store.2 (local.set $6 - (call $<=_1111 + (call $<=_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $<=_1111) + (global.get $<=_1114) ) (i32.const 5) (i32.const 5) diff --git a/compiler/test/__snapshots__/basic_functionality.abd9d13c.0.snapshot b/compiler/test/__snapshots__/basic_functionality.abd9d13c.0.snapshot index a202281b2a..adefe7f4fa 100644 --- a/compiler/test/__snapshots__/basic_functionality.abd9d13c.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.abd9d13c.0.snapshot @@ -9,9 +9,9 @@ basic functionality › comp7 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1111 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1114 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1111 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -42,10 +42,10 @@ basic functionality › comp7 (block $compile_block.5 (result i32) (block $compile_store.2 (local.set $6 - (call $==_1111 + (call $==_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1111) + (global.get $==_1114) ) (i32.const 5) (i32.const 5) diff --git a/compiler/test/__snapshots__/basic_functionality.b07cc734.0.snapshot b/compiler/test/__snapshots__/basic_functionality.b07cc734.0.snapshot index 59466c2645..477e20c72f 100644 --- a/compiler/test/__snapshots__/basic_functionality.b07cc734.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.b07cc734.0.snapshot @@ -9,11 +9,11 @@ basic functionality › if_one_sided (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1114 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<\" (global $<_1111 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1117 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<\" (global $<_1114 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1114 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"<\" (func $<_1111 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1117 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"<\" (func $<_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -44,10 +44,10 @@ basic functionality › if_one_sided (block $compile_block.5 (result i32) (block $compile_store.2 (local.set $6 - (call $<_1111 + (call $<_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $<_1111) + (global.get $<_1114) ) (i32.const 7) (i32.const 9) @@ -62,10 +62,10 @@ basic functionality › if_one_sided (i32.const 31) ) (block $compile_block.3 (result i32) - (call $print_1114 + (call $print_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1114) + (global.get $print_1117) ) (i32.const 11) ) diff --git a/compiler/test/__snapshots__/basic_functionality.b6a1b657.0.snapshot b/compiler/test/__snapshots__/basic_functionality.b6a1b657.0.snapshot index 16834bd223..b33742b40e 100644 --- a/compiler/test/__snapshots__/basic_functionality.b6a1b657.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.b6a1b657.0.snapshot @@ -9,9 +9,9 @@ basic functionality › lxor4 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$^\" (global $^_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$^\" (global $^_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"^\" (func $^_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"^\" (func $^_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › lxor4 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $^_1110 + (call $^_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $^_1110) + (global.get $^_1113) ) (i32.const 1) (i32.const 1) diff --git a/compiler/test/__snapshots__/basic_functionality.b836b89a.0.snapshot b/compiler/test/__snapshots__/basic_functionality.b836b89a.0.snapshot index 9a6cc9c933..37f8c7e61d 100644 --- a/compiler/test/__snapshots__/basic_functionality.b836b89a.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.b836b89a.0.snapshot @@ -10,14 +10,14 @@ basic functionality › complex1 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1122 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1120 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1117 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1125 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1123 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1120 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1122 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1120 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1117 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1125 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1123 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1120 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -47,10 +47,10 @@ basic functionality › complex1 (local.set $0 (block $compile_block.3 (result i32) (drop - (call $print_1117 + (call $print_1120 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1117) + (global.get $print_1120) ) (i32.const 7) ) @@ -59,10 +59,10 @@ basic functionality › complex1 (local.set $6 (tuple.extract 0 (tuple.make - (call $+_1122 + (call $+_1125 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1122) + (global.get $+_1125) ) (i32.const 9) (i32.const 5) @@ -77,10 +77,10 @@ basic functionality › complex1 (block $do_backpatches.1 ) ) - (call $-_1120 + (call $-_1123 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $-_1120) + (global.get $-_1123) ) (i32.const 7) (call $incRef_0 diff --git a/compiler/test/__snapshots__/basic_functionality.bef9449e.0.snapshot b/compiler/test/__snapshots__/basic_functionality.bef9449e.0.snapshot index 6da5c41066..202c864f02 100644 --- a/compiler/test/__snapshots__/basic_functionality.bef9449e.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.bef9449e.0.snapshot @@ -9,9 +9,9 @@ basic functionality › comp1 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<\" (global $<_1111 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<\" (global $<_1114 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"<\" (func $<_1111 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"<\" (func $<_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -42,10 +42,10 @@ basic functionality › comp1 (block $compile_block.5 (result i32) (block $compile_store.2 (local.set $6 - (call $<_1111 + (call $<_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $<_1111) + (global.get $<_1114) ) (i32.const 5) (i32.const 7) diff --git a/compiler/test/__snapshots__/basic_functionality.c2c74be4.0.snapshot b/compiler/test/__snapshots__/basic_functionality.c2c74be4.0.snapshot index ce01234bb5..db22506030 100644 --- a/compiler/test/__snapshots__/basic_functionality.c2c74be4.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.c2c74be4.0.snapshot @@ -9,9 +9,9 @@ basic functionality › lsr2 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>>>\" (global $>>>_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>>>\" (global $>>>_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \">>>\" (func $>>>_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \">>>\" (func $>>>_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › lsr2 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $>>>_1110 + (call $>>>_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $>>>_1110) + (global.get $>>>_1113) ) (i32.const 1) (i32.const 3) diff --git a/compiler/test/__snapshots__/basic_functionality.c4090bb1.0.snapshot b/compiler/test/__snapshots__/basic_functionality.c4090bb1.0.snapshot index 86b4fcf34f..1dcb9ccd1f 100644 --- a/compiler/test/__snapshots__/basic_functionality.c4090bb1.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.c4090bb1.0.snapshot @@ -11,14 +11,14 @@ basic functionality › toplevel_statements (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1120 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1117 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1123 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1120 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1120 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1117 (param i32 i32) (result i32))) - (global $five_1114 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1123 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1120 (param i32 i32) (result i32))) + (global $five_1117 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -47,47 +47,47 @@ basic functionality › toplevel_statements (local.set $0 (block $compile_block.4 (result i32) (drop - (call $print_1117 + (call $print_1120 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1117) + (global.get $print_1120) ) (i32.const 3) ) ) (drop - (call $print_1117 + (call $print_1120 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1117) + (global.get $print_1120) ) (i32.const 5) ) ) (drop - (call $print_1117 + (call $print_1120 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1117) + (global.get $print_1120) ) (i32.const 7) ) ) (block $compile_store.2 - (global.set $five_1114 + (global.set $five_1117 (tuple.extract 0 (tuple.make - (call $+_1120 + (call $+_1123 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1120) + (global.get $+_1123) ) (i32.const 5) (i32.const 7) ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $five_1114) + (global.get $five_1117) ) ) ) @@ -96,23 +96,23 @@ basic functionality › toplevel_statements ) ) (drop - (call $print_1117 + (call $print_1120 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1117) + (global.get $print_1120) ) (i32.const 9) ) ) (drop - (call $print_1117 + (call $print_1120 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1117) + (global.get $print_1120) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $five_1114) + (global.get $five_1117) ) ) ) diff --git a/compiler/test/__snapshots__/basic_functionality.c49928a5.0.snapshot b/compiler/test/__snapshots__/basic_functionality.c49928a5.0.snapshot index 4122e50b85..8afb4ff334 100644 --- a/compiler/test/__snapshots__/basic_functionality.c49928a5.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.c49928a5.0.snapshot @@ -9,9 +9,9 @@ basic functionality › lsr1 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>>>\" (global $>>>_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>>>\" (global $>>>_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \">>>\" (func $>>>_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \">>>\" (func $>>>_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › lsr1 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $>>>_1110 + (call $>>>_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $>>>_1110) + (global.get $>>>_1113) ) (i32.const 15) (i32.const 3) diff --git a/compiler/test/__snapshots__/basic_functionality.c55feb83.0.snapshot b/compiler/test/__snapshots__/basic_functionality.c55feb83.0.snapshot index eecc620c7b..22c161ffe7 100644 --- a/compiler/test/__snapshots__/basic_functionality.c55feb83.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.c55feb83.0.snapshot @@ -9,9 +9,9 @@ basic functionality › comp14 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › comp14 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (i32.const -2) (i32.const 2147483646) diff --git a/compiler/test/__snapshots__/basic_functionality.c8095f7c.0.snapshot b/compiler/test/__snapshots__/basic_functionality.c8095f7c.0.snapshot index 839b0def90..152fe08bef 100644 --- a/compiler/test/__snapshots__/basic_functionality.c8095f7c.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.c8095f7c.0.snapshot @@ -8,9 +8,9 @@ basic functionality › incr_1 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$incr\" (global $incr_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$incr\" (global $incr_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"incr\" (func $incr_1110 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"incr\" (func $incr_1113 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -38,10 +38,10 @@ basic functionality › incr_1 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $incr_1110 + (call $incr_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $incr_1110) + (global.get $incr_1113) ) (i32.const 5) ) diff --git a/compiler/test/__snapshots__/basic_functionality.cb9c6c66.0.snapshot b/compiler/test/__snapshots__/basic_functionality.cb9c6c66.0.snapshot index 48fadfa522..6977bb8aac 100644 --- a/compiler/test/__snapshots__/basic_functionality.cb9c6c66.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.cb9c6c66.0.snapshot @@ -8,9 +8,9 @@ basic functionality › incr_2 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$incr\" (global $incr_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$incr\" (global $incr_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"incr\" (func $incr_1110 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"incr\" (func $incr_1113 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -38,10 +38,10 @@ basic functionality › incr_2 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $incr_1110 + (call $incr_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $incr_1110) + (global.get $incr_1113) ) (i32.const 11) ) diff --git a/compiler/test/__snapshots__/basic_functionality.cdeddcd2.0.snapshot b/compiler/test/__snapshots__/basic_functionality.cdeddcd2.0.snapshot index d23663f41c..fceab302eb 100644 --- a/compiler/test/__snapshots__/basic_functionality.cdeddcd2.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.cdeddcd2.0.snapshot @@ -9,9 +9,9 @@ basic functionality › modulo3 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › modulo3 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $%_1110 + (call $%_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $%_1110) + (global.get $%_1113) ) (i32.const -33) (i32.const -7) diff --git a/compiler/test/__snapshots__/basic_functionality.cefeb364.0.snapshot b/compiler/test/__snapshots__/basic_functionality.cefeb364.0.snapshot index 4eaaa88084..d99cb177ba 100644 --- a/compiler/test/__snapshots__/basic_functionality.cefeb364.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.cefeb364.0.snapshot @@ -9,9 +9,9 @@ basic functionality › lor4 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$|\" (global $|_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$|\" (global $|_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"|\" (func $|_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"|\" (func $|_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › lor4 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $|_1110 + (call $|_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $|_1110) + (global.get $|_1113) ) (i32.const 1) (i32.const 1) diff --git a/compiler/test/__snapshots__/basic_functionality.d0c0c62b.0.snapshot b/compiler/test/__snapshots__/basic_functionality.d0c0c62b.0.snapshot index 91ae47d2e9..2478ade000 100644 --- a/compiler/test/__snapshots__/basic_functionality.d0c0c62b.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.d0c0c62b.0.snapshot @@ -9,9 +9,9 @@ basic functionality › int64_pun_1 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$*\" (global $*_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$*\" (global $*_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"*\" (func $*_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"*\" (func $*_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › int64_pun_1 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $*_1110 + (call $*_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $*_1110) + (global.get $*_1113) ) (i32.const 19999999) (i32.const 199999999) diff --git a/compiler/test/__snapshots__/basic_functionality.d0cb4f44.0.snapshot b/compiler/test/__snapshots__/basic_functionality.d0cb4f44.0.snapshot index 98cf992cda..e9de84eaa0 100644 --- a/compiler/test/__snapshots__/basic_functionality.d0cb4f44.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.d0cb4f44.0.snapshot @@ -8,9 +8,9 @@ basic functionality › decr_1 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$decr\" (global $decr_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$decr\" (global $decr_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"decr\" (func $decr_1110 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"decr\" (func $decr_1113 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -38,10 +38,10 @@ basic functionality › decr_1 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $decr_1110 + (call $decr_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $decr_1110) + (global.get $decr_1113) ) (i32.const 5) ) diff --git a/compiler/test/__snapshots__/basic_functionality.d6ca4146.0.snapshot b/compiler/test/__snapshots__/basic_functionality.d6ca4146.0.snapshot index 6975912499..fcb3090278 100644 --- a/compiler/test/__snapshots__/basic_functionality.d6ca4146.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.d6ca4146.0.snapshot @@ -8,9 +8,9 @@ basic functionality › andshort1 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1110 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1113 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › andshort1 (local.set $0 (block $compile_block.1 (result i32) (drop - (call $print_1110 + (call $print_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1110) + (global.get $print_1113) ) (i32.const 3) ) diff --git a/compiler/test/__snapshots__/basic_functionality.d8a7dcf9.0.snapshot b/compiler/test/__snapshots__/basic_functionality.d8a7dcf9.0.snapshot index 4b1e16e617..9bd9c3b3cb 100644 --- a/compiler/test/__snapshots__/basic_functionality.d8a7dcf9.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.d8a7dcf9.0.snapshot @@ -9,9 +9,9 @@ basic functionality › modulo1 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › modulo1 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $%_1110 + (call $%_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $%_1110) + (global.get $%_1113) ) (i32.const -33) (i32.const 9) diff --git a/compiler/test/__snapshots__/basic_functionality.d9fc01df.0.snapshot b/compiler/test/__snapshots__/basic_functionality.d9fc01df.0.snapshot index 2361333a77..fc77d42623 100644 --- a/compiler/test/__snapshots__/basic_functionality.d9fc01df.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.d9fc01df.0.snapshot @@ -9,9 +9,9 @@ basic functionality › land3 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$&\" (global $&_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$&\" (global $&_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"&\" (func $&_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"&\" (func $&_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › land3 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $&_1110 + (call $&_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $&_1110) + (global.get $&_1113) ) (i32.const 1) (i32.const 3) diff --git a/compiler/test/__snapshots__/basic_functionality.dbf5d3ff.0.snapshot b/compiler/test/__snapshots__/basic_functionality.dbf5d3ff.0.snapshot index 7d427bb59b..b20aa2cc0d 100644 --- a/compiler/test/__snapshots__/basic_functionality.dbf5d3ff.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.dbf5d3ff.0.snapshot @@ -9,9 +9,9 @@ basic functionality › comp18 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$isnt\" (global $isnt_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$isnt\" (global $isnt_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"isnt\" (func $isnt_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"isnt\" (func $isnt_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › comp18 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $isnt_1110 + (call $isnt_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $isnt_1110) + (global.get $isnt_1113) ) (i32.const 9) (i32.const 3) diff --git a/compiler/test/__snapshots__/basic_functionality.df4cd2bf.0.snapshot b/compiler/test/__snapshots__/basic_functionality.df4cd2bf.0.snapshot index b6f58e092e..893abdc61a 100644 --- a/compiler/test/__snapshots__/basic_functionality.df4cd2bf.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.df4cd2bf.0.snapshot @@ -9,9 +9,9 @@ basic functionality › comp15 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › comp15 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (i32.const 2147483646) (i32.const -2) diff --git a/compiler/test/__snapshots__/basic_functionality.e2902464.0.snapshot b/compiler/test/__snapshots__/basic_functionality.e2902464.0.snapshot index 12bb8b910a..d9ed901b59 100644 --- a/compiler/test/__snapshots__/basic_functionality.e2902464.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.e2902464.0.snapshot @@ -10,12 +10,12 @@ basic functionality › comp10 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1116 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1119 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1116 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1114 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1119 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1117 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -48,10 +48,10 @@ basic functionality › comp10 (local.set $6 (tuple.extract 0 (tuple.make - (call $-_1116 + (call $-_1119 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $-_1116) + (global.get $-_1119) ) (i32.const 9) (i32.const 5) @@ -66,10 +66,10 @@ basic functionality › comp10 (block $do_backpatches.1 ) ) - (call $==_1114 + (call $==_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1114) + (global.get $==_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/basic_functionality.e3995c7d.0.snapshot b/compiler/test/__snapshots__/basic_functionality.e3995c7d.0.snapshot index 2e2a92fdd0..7a81792fbb 100644 --- a/compiler/test/__snapshots__/basic_functionality.e3995c7d.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.e3995c7d.0.snapshot @@ -10,11 +10,11 @@ basic functionality › if_one_sided4 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<\" (global $<_1113 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$<\" (global $<_1116 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"<\" (func $<_1113 (param i32 i32 i32) (result i32))) - (global $x_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"<\" (func $<_1116 (param i32 i32 i32) (result i32))) + (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -44,13 +44,13 @@ basic functionality › if_one_sided4 (local.set $0 (block $compile_block.8 (result i32) (block $compile_store.2 - (global.set $x_1110 + (global.set $x_1113 (tuple.extract 0 (tuple.make (i32.const 3) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $x_1110) + (global.get $x_1113) ) ) ) @@ -60,10 +60,10 @@ basic functionality › if_one_sided4 ) (block $compile_store.4 (local.set $6 - (call $<_1113 + (call $<_1116 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $<_1113) + (global.get $<_1116) ) (i32.const 7) (i32.const 9) @@ -80,13 +80,13 @@ basic functionality › if_one_sided4 ) (block $compile_block.6 (result i32) (block $compile_set.5 (result i32) - (global.set $x_1110 + (global.set $x_1113 (tuple.extract 0 (tuple.make (i32.const 5) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $x_1110) + (global.get $x_1113) ) ) ) @@ -101,7 +101,7 @@ basic functionality › if_one_sided4 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $x_1110) + (global.get $x_1113) ) ) ) diff --git a/compiler/test/__snapshots__/basic_functionality.e56cd2a2.0.snapshot b/compiler/test/__snapshots__/basic_functionality.e56cd2a2.0.snapshot index 044d2aaf76..3432072a42 100644 --- a/compiler/test/__snapshots__/basic_functionality.e56cd2a2.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.e56cd2a2.0.snapshot @@ -9,9 +9,9 @@ basic functionality › comp6 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1111 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1114 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1111 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -42,10 +42,10 @@ basic functionality › comp6 (block $compile_block.5 (result i32) (block $compile_store.2 (local.set $6 - (call $==_1111 + (call $==_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1111) + (global.get $==_1114) ) (i32.const 5) (i32.const 7) diff --git a/compiler/test/__snapshots__/basic_functionality.e58c3266.0.snapshot b/compiler/test/__snapshots__/basic_functionality.e58c3266.0.snapshot index dc44e48d6a..495910d746 100644 --- a/compiler/test/__snapshots__/basic_functionality.e58c3266.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.e58c3266.0.snapshot @@ -9,9 +9,9 @@ basic functionality › asr2 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>>\" (global $>>_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>>\" (global $>>_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \">>\" (func $>>_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \">>\" (func $>>_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › asr2 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $>>_1110 + (call $>>_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $>>_1110) + (global.get $>>_1113) ) (i32.const 1) (i32.const 3) diff --git a/compiler/test/__snapshots__/basic_functionality.e811c1e1.0.snapshot b/compiler/test/__snapshots__/basic_functionality.e811c1e1.0.snapshot index 6fb1488f9e..1ac1aa6c7f 100644 --- a/compiler/test/__snapshots__/basic_functionality.e811c1e1.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.e811c1e1.0.snapshot @@ -9,9 +9,9 @@ basic functionality › binop2.1 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › binop2.1 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $-_1110 + (call $-_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $-_1110) + (global.get $-_1113) ) (i32.const 5) (i32.const 5) diff --git a/compiler/test/__snapshots__/basic_functionality.ee7c0ebc.0.snapshot b/compiler/test/__snapshots__/basic_functionality.ee7c0ebc.0.snapshot index 93f1e02dc4..4931676b33 100644 --- a/compiler/test/__snapshots__/basic_functionality.ee7c0ebc.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.ee7c0ebc.0.snapshot @@ -9,9 +9,9 @@ basic functionality › modulo2 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › modulo2 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $%_1110 + (call $%_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $%_1110) + (global.get $%_1113) ) (i32.const 35) (i32.const -7) diff --git a/compiler/test/__snapshots__/basic_functionality.f132ca8b.0.snapshot b/compiler/test/__snapshots__/basic_functionality.f132ca8b.0.snapshot index 5595d9fcf2..0878b85f11 100644 --- a/compiler/test/__snapshots__/basic_functionality.f132ca8b.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.f132ca8b.0.snapshot @@ -8,9 +8,9 @@ basic functionality › decr_2 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$decr\" (global $decr_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$decr\" (global $decr_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"decr\" (func $decr_1110 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"decr\" (func $decr_1113 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -38,10 +38,10 @@ basic functionality › decr_2 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $decr_1110 + (call $decr_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $decr_1110) + (global.get $decr_1113) ) (i32.const 11) ) diff --git a/compiler/test/__snapshots__/basic_functionality.fd64a58f.0.snapshot b/compiler/test/__snapshots__/basic_functionality.fd64a58f.0.snapshot index 1046841109..3110c56a7a 100644 --- a/compiler/test/__snapshots__/basic_functionality.fd64a58f.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.fd64a58f.0.snapshot @@ -9,9 +9,9 @@ basic functionality › int64_pun_2 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ basic functionality › int64_pun_2 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $-_1110 + (call $-_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $-_1110) + (global.get $-_1113) ) (i32.const -199999997) (i32.const 1999999999) diff --git a/compiler/test/__snapshots__/basic_functionality.fe88cb04.0.snapshot b/compiler/test/__snapshots__/basic_functionality.fe88cb04.0.snapshot index 4546659448..a7c1d846ae 100644 --- a/compiler/test/__snapshots__/basic_functionality.fe88cb04.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.fe88cb04.0.snapshot @@ -11,23 +11,23 @@ basic functionality › func_shadow_and_indirect_call (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1118 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1121 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1118 (param i32 i32) (result i32))) - (global $foo_1116 (mut i32) (i32.const 0)) - (global $foo_1114 (mut i32) (i32.const 0)) - (global $foo_1112 (mut i32) (i32.const 0)) - (global $foo_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1121 (param i32 i32) (result i32))) + (global $foo_1119 (mut i32) (i32.const 0)) + (global $foo_1117 (mut i32) (i32.const 0)) + (global $foo_1115 (mut i32) (i32.const 0)) + (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 1)) - (elem $elem (global.get $relocBase_0) $func_1127) + (elem $elem (global.get $relocBase_0) $func_1130) (export \"memory\" (memory $0)) (export \"_gmain\" (func $_gmain)) (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $foo_1110 (param $0 i32) (result i32) + (func $foo_1113 (param $0 i32) (result i32) (local $1 i32) (local $2 i32) (local $3 i32) @@ -75,7 +75,7 @@ basic functionality › func_shadow_and_indirect_call ) ) ) - (func $foo_1112 (param $0 i32) (result i32) + (func $foo_1115 (param $0 i32) (result i32) (local $1 i32) (local $2 i32) (local $3 i32) @@ -123,7 +123,7 @@ basic functionality › func_shadow_and_indirect_call ) ) ) - (func $foo_1114 (param $0 i32) (result i32) + (func $foo_1117 (param $0 i32) (result i32) (local $1 i32) (local $2 i32) (local $3 i32) @@ -178,7 +178,7 @@ basic functionality › func_shadow_and_indirect_call ) ) ) - (func $func_1127 (param $0 i32) (result i32) + (func $func_1130 (param $0 i32) (result i32) (local $1 i32) (local $2 i32) (local $3 i32) @@ -250,7 +250,7 @@ basic functionality › func_shadow_and_indirect_call (local.set $0 (block $compile_block.31 (result i32) (block $compile_store.15 - (global.set $foo_1110 + (global.set $foo_1113 (tuple.extract 0 (tuple.make (block $allocate_closure.13 (result i32) @@ -279,14 +279,14 @@ basic functionality › func_shadow_and_indirect_call ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) ) (block $do_backpatches.14 (local.set $0 - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) @@ -294,10 +294,10 @@ basic functionality › func_shadow_and_indirect_call (local.set $6 (tuple.extract 0 (tuple.make - (call $foo_1110 + (call $foo_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) ) (call $decRef_0 @@ -311,10 +311,10 @@ basic functionality › func_shadow_and_indirect_call ) ) (drop - (call $print_1118 + (call $print_1121 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1118) + (global.get $print_1121) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -323,7 +323,7 @@ basic functionality › func_shadow_and_indirect_call ) ) (block $compile_store.20 - (global.set $foo_1112 + (global.set $foo_1115 (tuple.extract 0 (tuple.make (block $allocate_closure.18 (result i32) @@ -352,14 +352,14 @@ basic functionality › func_shadow_and_indirect_call ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1112) + (global.get $foo_1115) ) ) ) ) (block $do_backpatches.19 (local.set $0 - (global.get $foo_1112) + (global.get $foo_1115) ) ) ) @@ -367,10 +367,10 @@ basic functionality › func_shadow_and_indirect_call (local.set $7 (tuple.extract 0 (tuple.make - (call $foo_1112 + (call $foo_1115 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1112) + (global.get $foo_1115) ) ) (call $decRef_0 @@ -384,10 +384,10 @@ basic functionality › func_shadow_and_indirect_call ) ) (drop - (call $print_1118 + (call $print_1121 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1118) + (global.get $print_1121) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -396,7 +396,7 @@ basic functionality › func_shadow_and_indirect_call ) ) (block $compile_store.25 - (global.set $foo_1114 + (global.set $foo_1117 (tuple.extract 0 (tuple.make (block $allocate_closure.23 (result i32) @@ -425,30 +425,30 @@ basic functionality › func_shadow_and_indirect_call ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1114) + (global.get $foo_1117) ) ) ) ) (block $do_backpatches.24 (local.set $0 - (global.get $foo_1114) + (global.get $foo_1117) ) ) ) (block $compile_store.27 - (global.set $foo_1116 + (global.set $foo_1119 (tuple.extract 0 (tuple.make - (call $foo_1114 + (call $foo_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1114) + (global.get $foo_1117) ) ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1116) + (global.get $foo_1119) ) ) ) @@ -464,7 +464,7 @@ basic functionality › func_shadow_and_indirect_call (local.set $0 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1116) + (global.get $foo_1119) ) ) (call_indirect (type $i32_=>_i32) @@ -484,10 +484,10 @@ basic functionality › func_shadow_and_indirect_call (block $do_backpatches.29 ) ) - (call $print_1118 + (call $print_1121 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1118) + (global.get $print_1121) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/boxes.08fca3f7.0.snapshot b/compiler/test/__snapshots__/boxes.08fca3f7.0.snapshot index ded22e11a0..b8c4b99155 100644 --- a/compiler/test/__snapshots__/boxes.08fca3f7.0.snapshot +++ b/compiler/test/__snapshots__/boxes.08fca3f7.0.snapshot @@ -11,12 +11,12 @@ boxes › box_subtraction1 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -47,7 +47,7 @@ boxes › box_subtraction1 (local.set $0 (block $compile_block.9 (result i32) (block $compile_store.3 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (block $allocate_tuple.1 (result i32) @@ -72,7 +72,7 @@ boxes › box_subtraction1 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -87,7 +87,7 @@ boxes › box_subtraction1 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) (call $decRef_0 @@ -104,10 +104,10 @@ boxes › box_subtraction1 (local.set $7 (tuple.extract 0 (tuple.make - (call $-_1114 + (call $-_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $-_1114) + (global.get $-_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -127,7 +127,7 @@ boxes › box_subtraction1 ) (block $MTupleSet.8 (result i32) (i32.store offset=8 - (global.get $b_1110) + (global.get $b_1113) (tuple.extract 0 (tuple.make (call $incRef_0 @@ -137,7 +137,7 @@ boxes › box_subtraction1 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/boxes.0c59fc4e.0.snapshot b/compiler/test/__snapshots__/boxes.0c59fc4e.0.snapshot index dc6d9eb5d7..0c1ddca92b 100644 --- a/compiler/test/__snapshots__/boxes.0c59fc4e.0.snapshot +++ b/compiler/test/__snapshots__/boxes.0c59fc4e.0.snapshot @@ -11,12 +11,12 @@ boxes › box_multiplication2 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$*\" (global $*_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$*\" (global $*_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"*\" (func $*_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"*\" (func $*_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -48,7 +48,7 @@ boxes › box_multiplication2 (local.set $0 (block $compile_block.11 (result i32) (block $compile_store.3 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (block $allocate_tuple.1 (result i32) @@ -73,7 +73,7 @@ boxes › box_multiplication2 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -88,7 +88,7 @@ boxes › box_multiplication2 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) (call $decRef_0 @@ -105,10 +105,10 @@ boxes › box_multiplication2 (local.set $7 (tuple.extract 0 (tuple.make - (call $*_1114 + (call $*_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $*_1114) + (global.get $*_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -130,7 +130,7 @@ boxes › box_multiplication2 (local.set $8 (block $MTupleSet.8 (result i32) (i32.store offset=8 - (global.get $b_1110) + (global.get $b_1113) (tuple.extract 0 (tuple.make (call $incRef_0 @@ -140,7 +140,7 @@ boxes › box_multiplication2 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -155,7 +155,7 @@ boxes › box_multiplication2 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/boxes.17668725.0.snapshot b/compiler/test/__snapshots__/boxes.17668725.0.snapshot index 17c3d669f7..6772c77f89 100644 --- a/compiler/test/__snapshots__/boxes.17668725.0.snapshot +++ b/compiler/test/__snapshots__/boxes.17668725.0.snapshot @@ -11,12 +11,12 @@ boxes › box_division2 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$/\" (global $/_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$/\" (global $/_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"/\" (func $/_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"/\" (func $/_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -48,7 +48,7 @@ boxes › box_division2 (local.set $0 (block $compile_block.11 (result i32) (block $compile_store.3 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (block $allocate_tuple.1 (result i32) @@ -73,7 +73,7 @@ boxes › box_division2 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -88,7 +88,7 @@ boxes › box_division2 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) (call $decRef_0 @@ -105,10 +105,10 @@ boxes › box_division2 (local.set $7 (tuple.extract 0 (tuple.make - (call $/_1114 + (call $/_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $/_1114) + (global.get $/_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -130,7 +130,7 @@ boxes › box_division2 (local.set $8 (block $MTupleSet.8 (result i32) (i32.store offset=8 - (global.get $b_1110) + (global.get $b_1113) (tuple.extract 0 (tuple.make (call $incRef_0 @@ -140,7 +140,7 @@ boxes › box_division2 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -155,7 +155,7 @@ boxes › box_division2 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/boxes.2b56febf.0.snapshot b/compiler/test/__snapshots__/boxes.2b56febf.0.snapshot index 1eea8f2486..126401c9ff 100644 --- a/compiler/test/__snapshots__/boxes.2b56febf.0.snapshot +++ b/compiler/test/__snapshots__/boxes.2b56febf.0.snapshot @@ -11,12 +11,12 @@ boxes › box_addition2 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -48,7 +48,7 @@ boxes › box_addition2 (local.set $0 (block $compile_block.11 (result i32) (block $compile_store.3 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (block $allocate_tuple.1 (result i32) @@ -73,7 +73,7 @@ boxes › box_addition2 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -88,7 +88,7 @@ boxes › box_addition2 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) (call $decRef_0 @@ -105,10 +105,10 @@ boxes › box_addition2 (local.set $7 (tuple.extract 0 (tuple.make - (call $+_1114 + (call $+_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1114) + (global.get $+_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -130,7 +130,7 @@ boxes › box_addition2 (local.set $8 (block $MTupleSet.8 (result i32) (i32.store offset=8 - (global.get $b_1110) + (global.get $b_1113) (tuple.extract 0 (tuple.make (call $incRef_0 @@ -140,7 +140,7 @@ boxes › box_addition2 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -155,7 +155,7 @@ boxes › box_addition2 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/boxes.7d564476.0.snapshot b/compiler/test/__snapshots__/boxes.7d564476.0.snapshot index b574dc5f38..c865d12ec0 100644 --- a/compiler/test/__snapshots__/boxes.7d564476.0.snapshot +++ b/compiler/test/__snapshots__/boxes.7d564476.0.snapshot @@ -11,12 +11,12 @@ boxes › box_division1 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$/\" (global $/_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$/\" (global $/_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"/\" (func $/_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"/\" (func $/_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -47,7 +47,7 @@ boxes › box_division1 (local.set $0 (block $compile_block.9 (result i32) (block $compile_store.3 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (block $allocate_tuple.1 (result i32) @@ -72,7 +72,7 @@ boxes › box_division1 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -87,7 +87,7 @@ boxes › box_division1 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) (call $decRef_0 @@ -104,10 +104,10 @@ boxes › box_division1 (local.set $7 (tuple.extract 0 (tuple.make - (call $/_1114 + (call $/_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $/_1114) + (global.get $/_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -127,7 +127,7 @@ boxes › box_division1 ) (block $MTupleSet.8 (result i32) (i32.store offset=8 - (global.get $b_1110) + (global.get $b_1113) (tuple.extract 0 (tuple.make (call $incRef_0 @@ -137,7 +137,7 @@ boxes › box_division1 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/boxes.9035923e.0.snapshot b/compiler/test/__snapshots__/boxes.9035923e.0.snapshot index 541fe4d0cd..949bf8e476 100644 --- a/compiler/test/__snapshots__/boxes.9035923e.0.snapshot +++ b/compiler/test/__snapshots__/boxes.9035923e.0.snapshot @@ -11,12 +11,12 @@ boxes › box_subtraction2 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -48,7 +48,7 @@ boxes › box_subtraction2 (local.set $0 (block $compile_block.11 (result i32) (block $compile_store.3 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (block $allocate_tuple.1 (result i32) @@ -73,7 +73,7 @@ boxes › box_subtraction2 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -88,7 +88,7 @@ boxes › box_subtraction2 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) (call $decRef_0 @@ -105,10 +105,10 @@ boxes › box_subtraction2 (local.set $7 (tuple.extract 0 (tuple.make - (call $-_1114 + (call $-_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $-_1114) + (global.get $-_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -130,7 +130,7 @@ boxes › box_subtraction2 (local.set $8 (block $MTupleSet.8 (result i32) (i32.store offset=8 - (global.get $b_1110) + (global.get $b_1113) (tuple.extract 0 (tuple.make (call $incRef_0 @@ -140,7 +140,7 @@ boxes › box_subtraction2 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -155,7 +155,7 @@ boxes › box_subtraction2 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/boxes.adbe1660.0.snapshot b/compiler/test/__snapshots__/boxes.adbe1660.0.snapshot index 692d12ce3b..82f7519f49 100644 --- a/compiler/test/__snapshots__/boxes.adbe1660.0.snapshot +++ b/compiler/test/__snapshots__/boxes.adbe1660.0.snapshot @@ -11,12 +11,12 @@ boxes › box_addition1 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -47,7 +47,7 @@ boxes › box_addition1 (local.set $0 (block $compile_block.9 (result i32) (block $compile_store.3 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (block $allocate_tuple.1 (result i32) @@ -72,7 +72,7 @@ boxes › box_addition1 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -87,7 +87,7 @@ boxes › box_addition1 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) (call $decRef_0 @@ -104,10 +104,10 @@ boxes › box_addition1 (local.set $7 (tuple.extract 0 (tuple.make - (call $+_1114 + (call $+_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1114) + (global.get $+_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -127,7 +127,7 @@ boxes › box_addition1 ) (block $MTupleSet.8 (result i32) (i32.store offset=8 - (global.get $b_1110) + (global.get $b_1113) (tuple.extract 0 (tuple.make (call $incRef_0 @@ -137,7 +137,7 @@ boxes › box_addition1 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/boxes.bc258c1b.0.snapshot b/compiler/test/__snapshots__/boxes.bc258c1b.0.snapshot index cc1ced1d6c..0bf9789b71 100644 --- a/compiler/test/__snapshots__/boxes.bc258c1b.0.snapshot +++ b/compiler/test/__snapshots__/boxes.bc258c1b.0.snapshot @@ -11,12 +11,12 @@ boxes › box_multiplication1 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$*\" (global $*_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$*\" (global $*_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"*\" (func $*_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"*\" (func $*_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -47,7 +47,7 @@ boxes › box_multiplication1 (local.set $0 (block $compile_block.9 (result i32) (block $compile_store.3 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (block $allocate_tuple.1 (result i32) @@ -72,7 +72,7 @@ boxes › box_multiplication1 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -87,7 +87,7 @@ boxes › box_multiplication1 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) (call $decRef_0 @@ -104,10 +104,10 @@ boxes › box_multiplication1 (local.set $7 (tuple.extract 0 (tuple.make - (call $*_1114 + (call $*_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $*_1114) + (global.get $*_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -127,7 +127,7 @@ boxes › box_multiplication1 ) (block $MTupleSet.8 (result i32) (i32.store offset=8 - (global.get $b_1110) + (global.get $b_1113) (tuple.extract 0 (tuple.make (call $incRef_0 @@ -137,7 +137,7 @@ boxes › box_multiplication1 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/early_return.1183a893.0.snapshot b/compiler/test/__snapshots__/early_return.1183a893.0.snapshot index 35745b2630..8d4c13b977 100644 --- a/compiler/test/__snapshots__/early_return.1183a893.0.snapshot +++ b/compiler/test/__snapshots__/early_return.1183a893.0.snapshot @@ -12,22 +12,22 @@ early return › early_return3 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1115 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1118 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1115 (param i32 i32 i32) (result i32))) - (global $foo_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1118 (param i32 i32 i32) (result i32))) + (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) - (export \"foo\" (func $foo_1110)) - (export \"GRAIN$EXPORT$foo\" (global $foo_1110)) + (export \"foo\" (func $foo_1113)) + (export \"GRAIN$EXPORT$foo\" (global $foo_1113)) (export \"_gmain\" (func $_gmain)) (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $foo_1110 (param $0 i32) (result i32) + (func $foo_1113 (param $0 i32) (result i32) (local $1 i32) (local $2 i32) (local $3 i32) @@ -41,10 +41,10 @@ early return › early_return3 (block $compile_block.7 (result i32) (block $compile_store.2 (local.set $7 - (call $==_1115 + (call $==_1118 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1115) + (global.get $==_1118) ) (i32.const 3) (i32.const 1) @@ -133,7 +133,7 @@ early return › early_return3 (local.set $0 (block $compile_block.12 (result i32) (block $compile_store.11 - (global.set $foo_1110 + (global.set $foo_1113 (tuple.extract 0 (tuple.make (block $allocate_closure.9 (result i32) @@ -162,14 +162,14 @@ early return › early_return3 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) ) (block $do_backpatches.10 (local.set $0 - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) diff --git a/compiler/test/__snapshots__/enums.aa34084a.0.snapshot b/compiler/test/__snapshots__/enums.aa34084a.0.snapshot index 4347b5ab71..8ec6d05865 100644 --- a/compiler/test/__snapshots__/enums.aa34084a.0.snapshot +++ b/compiler/test/__snapshots__/enums.aa34084a.0.snapshot @@ -50,7 +50,7 @@ enums › adt_trailing ) (i64.store offset=24 (local.get $0) - (i64.const 103079216214) + (i64.const 103079216217) ) (i64.store offset=32 (local.get $0) @@ -131,7 +131,7 @@ enums › adt_trailing ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/enums.ae26523b.0.snapshot b/compiler/test/__snapshots__/enums.ae26523b.0.snapshot index baf2986c84..240352ac13 100644 --- a/compiler/test/__snapshots__/enums.ae26523b.0.snapshot +++ b/compiler/test/__snapshots__/enums.ae26523b.0.snapshot @@ -10,11 +10,11 @@ enums › enum_recursive_data_definition (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1126 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1129 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1126 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1129 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -56,7 +56,7 @@ enums › enum_recursive_data_definition ) (i64.store offset=24 (local.get $0) - (i64.const 103079216215) + (i64.const 103079216218) ) (i64.store offset=32 (local.get $0) @@ -84,7 +84,7 @@ enums › enum_recursive_data_definition ) (i64.store offset=80 (local.get $0) - (i64.const 103079216214) + (i64.const 103079216217) ) (i64.store offset=88 (local.get $0) @@ -242,7 +242,7 @@ enums › enum_recursive_data_definition ) (i32.store offset=8 (local.get $0) - (i32.const 2223) + (i32.const 2229) ) (i32.store offset=12 (local.get $0) @@ -287,7 +287,7 @@ enums › enum_recursive_data_definition ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -346,7 +346,7 @@ enums › enum_recursive_data_definition ) (i32.store offset=8 (local.get $0) - (i32.const 2223) + (i32.const 2229) ) (i32.store offset=12 (local.get $0) @@ -391,7 +391,7 @@ enums › enum_recursive_data_definition ) (i32.store offset=8 (local.get $0) - (i32.const 2223) + (i32.const 2229) ) (i32.store offset=12 (local.get $0) @@ -450,7 +450,7 @@ enums › enum_recursive_data_definition ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -509,7 +509,7 @@ enums › enum_recursive_data_definition ) (i32.store offset=8 (local.get $0) - (i32.const 2223) + (i32.const 2229) ) (i32.store offset=12 (local.get $0) @@ -554,7 +554,7 @@ enums › enum_recursive_data_definition ) (i32.store offset=8 (local.get $0) - (i32.const 2223) + (i32.const 2229) ) (i32.store offset=12 (local.get $0) @@ -590,10 +590,10 @@ enums › enum_recursive_data_definition (block $do_backpatches.28 ) ) - (call $print_1126 + (call $print_1129 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1126) + (global.get $print_1129) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/exceptions.a68ae348.0.snapshot b/compiler/test/__snapshots__/exceptions.a68ae348.0.snapshot index 842ade83e2..15d6a3458a 100644 --- a/compiler/test/__snapshots__/exceptions.a68ae348.0.snapshot +++ b/compiler/test/__snapshots__/exceptions.a68ae348.0.snapshot @@ -54,7 +54,7 @@ exceptions › exception_4 ) (i64.store offset=32 (local.get $0) - (i64.const 4767413698560) + (i64.const 4780298600448) ) (i64.store offset=40 (local.get $0) @@ -66,7 +66,7 @@ exceptions › exception_4 ) (i64.store offset=56 (local.get $0) - (i64.const 4771708665856) + (i64.const 4784593567744) ) (i64.store offset=64 (local.get $0) @@ -131,7 +131,7 @@ exceptions › exception_4 ) (i32.store offset=12 (local.get $0) - (i32.const 2223) + (i32.const 2229) ) (i32.store offset=16 (local.get $0) diff --git a/compiler/test/__snapshots__/exceptions.ccac3e71.0.snapshot b/compiler/test/__snapshots__/exceptions.ccac3e71.0.snapshot index 52b73fe68e..c9d578513b 100644 --- a/compiler/test/__snapshots__/exceptions.ccac3e71.0.snapshot +++ b/compiler/test/__snapshots__/exceptions.ccac3e71.0.snapshot @@ -54,7 +54,7 @@ exceptions › exception_2 ) (i64.store offset=32 (local.get $0) - (i64.const 4767413698560) + (i64.const 4780298600448) ) (i64.store offset=40 (local.get $0) @@ -119,7 +119,7 @@ exceptions › exception_2 ) (i32.store offset=12 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=16 (local.get $0) diff --git a/compiler/test/__snapshots__/functions.06134c8a.0.snapshot b/compiler/test/__snapshots__/functions.06134c8a.0.snapshot index 0452c6a528..ad4d8b1ec9 100644 --- a/compiler/test/__snapshots__/functions.06134c8a.0.snapshot +++ b/compiler/test/__snapshots__/functions.06134c8a.0.snapshot @@ -14,7 +14,7 @@ functions › dup_func (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (global $foo_1114 (mut i32) (i32.const 0)) + (global $foo_1117 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -22,7 +22,7 @@ functions › dup_func (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $foo_1114 (param $0 i32) (result i32) + (func $foo_1117 (param $0 i32) (result i32) (local $1 i32) (local $2 i32) (local $3 i32) @@ -72,7 +72,7 @@ functions › dup_func (local.set $0 (block $compile_block.6 (result i32) (block $compile_store.5 - (global.set $foo_1114 + (global.set $foo_1117 (tuple.extract 0 (tuple.make (block $allocate_closure.3 (result i32) @@ -101,21 +101,21 @@ functions › dup_func ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1114) + (global.get $foo_1117) ) ) ) ) (block $do_backpatches.4 (local.set $0 - (global.get $foo_1114) + (global.get $foo_1117) ) ) ) - (call $foo_1114 + (call $foo_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1114) + (global.get $foo_1117) ) ) ) diff --git a/compiler/test/__snapshots__/functions.14922a92.0.snapshot b/compiler/test/__snapshots__/functions.14922a92.0.snapshot index f711fa92e9..dd020d6cfe 100644 --- a/compiler/test/__snapshots__/functions.14922a92.0.snapshot +++ b/compiler/test/__snapshots__/functions.14922a92.0.snapshot @@ -11,12 +11,12 @@ functions › shorthand_4 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1112 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1115 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1112 (param i32 i32 i32) (result i32))) - (global $foo_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1115 (param i32 i32 i32) (result i32))) + (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -24,7 +24,7 @@ functions › shorthand_4 (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $foo_1110 (param $0 i32) (param $1 i32) (result i32) + (func $foo_1113 (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) @@ -37,10 +37,10 @@ functions › shorthand_4 (tuple.extract 0 (tuple.make (block $compile_block.1 (result i32) - (call $+_1112 + (call $+_1115 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1112) + (global.get $+_1115) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -90,7 +90,7 @@ functions › shorthand_4 (local.set $0 (block $compile_block.6 (result i32) (block $compile_store.5 - (global.set $foo_1110 + (global.set $foo_1113 (tuple.extract 0 (tuple.make (block $allocate_closure.3 (result i32) @@ -119,21 +119,21 @@ functions › shorthand_4 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) ) (block $do_backpatches.4 (local.set $0 - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) - (call $foo_1110 + (call $foo_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) (i32.const 3) ) diff --git a/compiler/test/__snapshots__/functions.1be5ecd5.0.snapshot b/compiler/test/__snapshots__/functions.1be5ecd5.0.snapshot index 1b2800c1d4..b96f58ed0a 100644 --- a/compiler/test/__snapshots__/functions.1be5ecd5.0.snapshot +++ b/compiler/test/__snapshots__/functions.1be5ecd5.0.snapshot @@ -13,7 +13,7 @@ functions › shorthand_1 (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (global $foo_1110 (mut i32) (i32.const 0)) + (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -21,7 +21,7 @@ functions › shorthand_1 (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $foo_1110 (param $0 i32) (param $1 i32) (result i32) + (func $foo_1113 (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) @@ -80,7 +80,7 @@ functions › shorthand_1 (local.set $0 (block $compile_block.6 (result i32) (block $compile_store.5 - (global.set $foo_1110 + (global.set $foo_1113 (tuple.extract 0 (tuple.make (block $allocate_closure.3 (result i32) @@ -109,21 +109,21 @@ functions › shorthand_1 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) ) (block $do_backpatches.4 (local.set $0 - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) - (call $foo_1110 + (call $foo_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) (i32.const 3) ) diff --git a/compiler/test/__snapshots__/functions.23afd9c9.0.snapshot b/compiler/test/__snapshots__/functions.23afd9c9.0.snapshot index 54cce935a7..1208f00a9c 100644 --- a/compiler/test/__snapshots__/functions.23afd9c9.0.snapshot +++ b/compiler/test/__snapshots__/functions.23afd9c9.0.snapshot @@ -11,11 +11,11 @@ functions › lam_destructure_5 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1116 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1119 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1116 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1119 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -23,7 +23,7 @@ functions › lam_destructure_5 (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $lam_lambda_1115 (param $0 i32) (param $1 i32) (param $2 i32) (result i32) + (func $lam_lambda_1118 (param $0 i32) (param $1 i32) (param $2 i32) (result i32) (local $3 i32) (local $4 i32) (local $5 i32) @@ -338,10 +338,10 @@ functions › lam_destructure_5 (local.set $19 (tuple.extract 0 (tuple.make - (call $+_1116 + (call $+_1119 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1116) + (global.get $+_1119) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -366,10 +366,10 @@ functions › lam_destructure_5 (local.set $20 (tuple.extract 0 (tuple.make - (call $+_1116 + (call $+_1119 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1116) + (global.get $+_1119) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -394,10 +394,10 @@ functions › lam_destructure_5 (local.set $21 (tuple.extract 0 (tuple.make - (call $+_1116 + (call $+_1119 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1116) + (global.get $+_1119) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -418,10 +418,10 @@ functions › lam_destructure_5 (block $do_backpatches.30 ) ) - (call $+_1116 + (call $+_1119 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1116) + (global.get $+_1119) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -681,7 +681,7 @@ functions › lam_destructure_5 (block $do_backpatches.41 ) ) - (call $lam_lambda_1115 + (call $lam_lambda_1118 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (local.get $6) diff --git a/compiler/test/__snapshots__/functions.28e0f2b3.0.snapshot b/compiler/test/__snapshots__/functions.28e0f2b3.0.snapshot index a2bb7681f8..9cd43ecbf0 100644 --- a/compiler/test/__snapshots__/functions.28e0f2b3.0.snapshot +++ b/compiler/test/__snapshots__/functions.28e0f2b3.0.snapshot @@ -13,7 +13,7 @@ functions › lambda_pat_any (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (global $x_1110 (mut i32) (i32.const 0)) + (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -21,7 +21,7 @@ functions › lambda_pat_any (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $x_1110 (param $0 i32) (param $1 i32) (result i32) + (func $x_1113 (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) @@ -78,7 +78,7 @@ functions › lambda_pat_any (local.set $0 (block $compile_block.9 (result i32) (block $compile_store.5 - (global.set $x_1110 + (global.set $x_1113 (tuple.extract 0 (tuple.make (block $allocate_closure.3 (result i32) @@ -107,14 +107,14 @@ functions › lambda_pat_any ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $x_1110) + (global.get $x_1113) ) ) ) ) (block $do_backpatches.4 (local.set $0 - (global.get $x_1110) + (global.get $x_1113) ) ) ) @@ -152,10 +152,10 @@ functions › lambda_pat_any (block $do_backpatches.7 ) ) - (call $x_1110 + (call $x_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $x_1110) + (global.get $x_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/functions.49ccab54.0.snapshot b/compiler/test/__snapshots__/functions.49ccab54.0.snapshot index 0ffe319119..8a42f70974 100644 --- a/compiler/test/__snapshots__/functions.49ccab54.0.snapshot +++ b/compiler/test/__snapshots__/functions.49ccab54.0.snapshot @@ -11,20 +11,20 @@ functions › curried_func (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1113 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1116 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1113 (param i32 i32 i32) (result i32))) - (global $add_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1116 (param i32 i32 i32) (result i32))) + (global $add_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 1)) - (elem $elem (global.get $relocBase_0) $func_1120) + (elem $elem (global.get $relocBase_0) $func_1123) (export \"memory\" (memory $0)) (export \"_gmain\" (func $_gmain)) (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $add_1110 (param $0 i32) (param $1 i32) (result i32) + (func $add_1113 (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) @@ -92,7 +92,7 @@ functions › curried_func ) ) ) - (func $func_1120 (param $0 i32) (param $1 i32) (result i32) + (func $func_1123 (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) @@ -105,10 +105,10 @@ functions › curried_func (tuple.extract 0 (tuple.make (block $compile_block.4 (result i32) - (call $+_1113 + (call $+_1116 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1113) + (global.get $+_1116) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -164,7 +164,7 @@ functions › curried_func (local.set $0 (block $compile_block.12 (result i32) (block $compile_store.8 - (global.set $add_1110 + (global.set $add_1113 (tuple.extract 0 (tuple.make (block $allocate_closure.6 (result i32) @@ -193,14 +193,14 @@ functions › curried_func ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $add_1110) + (global.get $add_1113) ) ) ) ) (block $do_backpatches.7 (local.set $0 - (global.get $add_1110) + (global.get $add_1113) ) ) ) @@ -208,10 +208,10 @@ functions › curried_func (local.set $6 (tuple.extract 0 (tuple.make - (call $add_1110 + (call $add_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $add_1110) + (global.get $add_1113) ) (i32.const 5) ) diff --git a/compiler/test/__snapshots__/functions.6eacded0.0.snapshot b/compiler/test/__snapshots__/functions.6eacded0.0.snapshot index da3d1c3854..ae59f08cb2 100644 --- a/compiler/test/__snapshots__/functions.6eacded0.0.snapshot +++ b/compiler/test/__snapshots__/functions.6eacded0.0.snapshot @@ -12,27 +12,27 @@ functions › func_recursive_closure (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1136 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1131 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1121 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1139 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1134 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1124 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1136 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1131 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1121 (param i32 i32 i32) (result i32))) - (global $truc_1113 (mut i32) (i32.const 0)) - (global $makeAdder_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1139 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1134 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1124 (param i32 i32 i32) (result i32))) + (global $truc_1116 (mut i32) (i32.const 0)) + (global $makeAdder_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 1)) - (elem $elem (global.get $relocBase_0) $func_1144) + (elem $elem (global.get $relocBase_0) $func_1147) (export \"memory\" (memory $0)) - (export \"truc\" (func $truc_1113)) - (export \"GRAIN$EXPORT$truc\" (global $truc_1113)) + (export \"truc\" (func $truc_1116)) + (export \"GRAIN$EXPORT$truc\" (global $truc_1116)) (export \"_gmain\" (func $_gmain)) (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $makeAdder_1110 (param $0 i32) (param $1 i32) (result i32) + (func $makeAdder_1113 (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) @@ -100,7 +100,7 @@ functions › func_recursive_closure ) ) ) - (func $truc_1113 (param $0 i32) (result i32) + (func $truc_1116 (param $0 i32) (result i32) (local $1 i32) (local $2 i32) (local $3 i32) @@ -155,7 +155,7 @@ functions › func_recursive_closure ) ) ) - (call $foo_1114 + (call $foo_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (local.get $7) @@ -183,7 +183,7 @@ functions › func_recursive_closure ) ) ) - (func $func_1144 (param $0 i32) (param $1 i32) (result i32) + (func $func_1147 (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) @@ -196,10 +196,10 @@ functions › func_recursive_closure (tuple.extract 0 (tuple.make (block $compile_block.9 (result i32) - (call $+_1121 + (call $+_1124 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1121) + (global.get $+_1124) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -233,7 +233,7 @@ functions › func_recursive_closure ) ) ) - (func $foo_1114 (param $0 i32) (param $1 i32) (result i32) + (func $foo_1117 (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) @@ -255,10 +255,10 @@ functions › func_recursive_closure (local.set $8 (tuple.extract 0 (tuple.make - (call $makeAdder_1110 + (call $makeAdder_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $makeAdder_1110) + (global.get $makeAdder_1113) ) (i32.const 3) ) @@ -329,10 +329,10 @@ functions › func_recursive_closure ) (block $compile_store.17 (local.set $11 - (call $==_1131 + (call $==_1134 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1131) + (global.get $==_1134) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -355,10 +355,10 @@ functions › func_recursive_closure (block $compile_block.25 (result i32) (block $compile_store.20 (local.set $12 - (call $==_1131 + (call $==_1134 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1131) + (global.get $==_1134) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -376,7 +376,7 @@ functions › func_recursive_closure (i32.const 31) ) (block $compile_block.21 (result i32) - (call $bar_1117 + (call $bar_1120 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (local.get $9) @@ -389,10 +389,10 @@ functions › func_recursive_closure (local.set $10 (tuple.extract 0 (tuple.make - (call $-_1136 + (call $-_1139 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $-_1136) + (global.get $-_1139) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -410,7 +410,7 @@ functions › func_recursive_closure (block $do_backpatches.22 ) ) - (call $foo_1114 + (call $foo_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (local.get $0) @@ -463,7 +463,7 @@ functions › func_recursive_closure ) ) ) - (func $bar_1117 (param $0 i32) (param $1 i32) (result i32) + (func $bar_1120 (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) @@ -482,7 +482,7 @@ functions › func_recursive_closure (local.set $8 (tuple.extract 0 (tuple.make - (call $foo_1114 + (call $foo_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (i32.load offset=16 @@ -532,10 +532,10 @@ functions › func_recursive_closure (block $do_backpatches.31 ) ) - (call $+_1121 + (call $+_1124 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1121) + (global.get $+_1124) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -600,7 +600,7 @@ functions › func_recursive_closure (local.set $0 (block $compile_block.41 (result i32) (block $compile_store.37 - (global.set $makeAdder_1110 + (global.set $makeAdder_1113 (tuple.extract 0 (tuple.make (block $allocate_closure.35 (result i32) @@ -629,19 +629,19 @@ functions › func_recursive_closure ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $makeAdder_1110) + (global.get $makeAdder_1113) ) ) ) ) (block $do_backpatches.36 (local.set $0 - (global.get $makeAdder_1110) + (global.get $makeAdder_1113) ) ) ) (block $compile_store.40 - (global.set $truc_1113 + (global.set $truc_1116 (tuple.extract 0 (tuple.make (block $allocate_closure.38 (result i32) @@ -670,21 +670,21 @@ functions › func_recursive_closure ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $truc_1113) + (global.get $truc_1116) ) ) ) ) (block $do_backpatches.39 (local.set $0 - (global.get $truc_1113) + (global.get $truc_1116) ) ) ) - (call $truc_1113 + (call $truc_1116 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $truc_1113) + (global.get $truc_1116) ) ) ) diff --git a/compiler/test/__snapshots__/functions.7a8986a5.0.snapshot b/compiler/test/__snapshots__/functions.7a8986a5.0.snapshot index 07fd120a1b..9b681e2228 100644 --- a/compiler/test/__snapshots__/functions.7a8986a5.0.snapshot +++ b/compiler/test/__snapshots__/functions.7a8986a5.0.snapshot @@ -20,7 +20,7 @@ functions › app_1 (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $lam_lambda_1111 (param $0 i32) (param $1 i32) (result i32) + (func $lam_lambda_1114 (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) @@ -120,7 +120,7 @@ functions › app_1 ) ) ) - (call $lam_lambda_1111 + (call $lam_lambda_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (local.get $6) diff --git a/compiler/test/__snapshots__/functions.84b6e84b.0.snapshot b/compiler/test/__snapshots__/functions.84b6e84b.0.snapshot index 411ec39e46..7898519564 100644 --- a/compiler/test/__snapshots__/functions.84b6e84b.0.snapshot +++ b/compiler/test/__snapshots__/functions.84b6e84b.0.snapshot @@ -13,7 +13,7 @@ functions › shorthand_3 (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (global $foo_1110 (mut i32) (i32.const 0)) + (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -21,7 +21,7 @@ functions › shorthand_3 (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $foo_1110 (param $0 i32) (param $1 i32) (result i32) + (func $foo_1113 (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) @@ -80,7 +80,7 @@ functions › shorthand_3 (local.set $0 (block $compile_block.6 (result i32) (block $compile_store.5 - (global.set $foo_1110 + (global.set $foo_1113 (tuple.extract 0 (tuple.make (block $allocate_closure.3 (result i32) @@ -109,21 +109,21 @@ functions › shorthand_3 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) ) (block $do_backpatches.4 (local.set $0 - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) - (call $foo_1110 + (call $foo_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) (i32.const 3) ) diff --git a/compiler/test/__snapshots__/functions.8baf471f.0.snapshot b/compiler/test/__snapshots__/functions.8baf471f.0.snapshot index 821ce939bb..08723e6ea6 100644 --- a/compiler/test/__snapshots__/functions.8baf471f.0.snapshot +++ b/compiler/test/__snapshots__/functions.8baf471f.0.snapshot @@ -11,11 +11,11 @@ functions › lam_destructure_3 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1114 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1117 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -23,7 +23,7 @@ functions › lam_destructure_3 (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $lam_lambda_1113 (param $0 i32) (param $1 i32) (result i32) + (func $lam_lambda_1116 (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) @@ -218,10 +218,10 @@ functions › lam_destructure_3 (local.set $14 (tuple.extract 0 (tuple.make - (call $+_1114 + (call $+_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1114) + (global.get $+_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -242,10 +242,10 @@ functions › lam_destructure_3 (block $do_backpatches.16 ) ) - (call $+_1114 + (call $+_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1114) + (global.get $+_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -424,7 +424,7 @@ functions › lam_destructure_3 (block $do_backpatches.24 ) ) - (call $lam_lambda_1113 + (call $lam_lambda_1116 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (local.get $6) diff --git a/compiler/test/__snapshots__/functions.9223245d.0.snapshot b/compiler/test/__snapshots__/functions.9223245d.0.snapshot index bcbbb58416..f943836f7e 100644 --- a/compiler/test/__snapshots__/functions.9223245d.0.snapshot +++ b/compiler/test/__snapshots__/functions.9223245d.0.snapshot @@ -11,11 +11,11 @@ functions › lam_destructure_7 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1115 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1118 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1115 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1118 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -23,7 +23,7 @@ functions › lam_destructure_7 (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $lam_lambda_1114 (param $0 i32) (param $1 i32) (result i32) + (func $lam_lambda_1117 (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) @@ -299,10 +299,10 @@ functions › lam_destructure_7 (local.set $17 (tuple.extract 0 (tuple.make - (call $+_1115 + (call $+_1118 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1115) + (global.get $+_1118) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -327,10 +327,10 @@ functions › lam_destructure_7 (local.set $18 (tuple.extract 0 (tuple.make - (call $+_1115 + (call $+_1118 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1115) + (global.get $+_1118) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -351,10 +351,10 @@ functions › lam_destructure_7 (block $do_backpatches.25 ) ) - (call $+_1115 + (call $+_1118 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1115) + (global.get $+_1118) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -599,7 +599,7 @@ functions › lam_destructure_7 (block $do_backpatches.36 ) ) - (call $lam_lambda_1114 + (call $lam_lambda_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (local.get $6) diff --git a/compiler/test/__snapshots__/functions.9fd69835.0.snapshot b/compiler/test/__snapshots__/functions.9fd69835.0.snapshot index 7b80ceb039..2c8af53c75 100644 --- a/compiler/test/__snapshots__/functions.9fd69835.0.snapshot +++ b/compiler/test/__snapshots__/functions.9fd69835.0.snapshot @@ -11,12 +11,12 @@ functions › shorthand_2 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1112 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1115 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1112 (param i32 i32 i32) (result i32))) - (global $foo_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1115 (param i32 i32 i32) (result i32))) + (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -24,7 +24,7 @@ functions › shorthand_2 (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $foo_1110 (param $0 i32) (param $1 i32) (result i32) + (func $foo_1113 (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) @@ -37,10 +37,10 @@ functions › shorthand_2 (tuple.extract 0 (tuple.make (block $compile_block.1 (result i32) - (call $+_1112 + (call $+_1115 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1112) + (global.get $+_1115) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -90,7 +90,7 @@ functions › shorthand_2 (local.set $0 (block $compile_block.6 (result i32) (block $compile_store.5 - (global.set $foo_1110 + (global.set $foo_1113 (tuple.extract 0 (tuple.make (block $allocate_closure.3 (result i32) @@ -119,21 +119,21 @@ functions › shorthand_2 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) ) (block $do_backpatches.4 (local.set $0 - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) - (call $foo_1110 + (call $foo_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) (i32.const 3) ) diff --git a/compiler/test/__snapshots__/functions.b37949b2.0.snapshot b/compiler/test/__snapshots__/functions.b37949b2.0.snapshot index c589d55b67..73b3940d49 100644 --- a/compiler/test/__snapshots__/functions.b37949b2.0.snapshot +++ b/compiler/test/__snapshots__/functions.b37949b2.0.snapshot @@ -11,12 +11,12 @@ functions › lam_destructure_4 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1114 (param i32 i32 i32) (result i32))) - (global $foo_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1117 (param i32 i32 i32) (result i32))) + (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -24,7 +24,7 @@ functions › lam_destructure_4 (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $foo_1110 (param $0 i32) (param $1 i32) (result i32) + (func $foo_1113 (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) @@ -219,10 +219,10 @@ functions › lam_destructure_4 (local.set $14 (tuple.extract 0 (tuple.make - (call $+_1114 + (call $+_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1114) + (global.get $+_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -243,10 +243,10 @@ functions › lam_destructure_4 (block $do_backpatches.16 ) ) - (call $+_1114 + (call $+_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1114) + (global.get $+_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -342,7 +342,7 @@ functions › lam_destructure_4 (local.set $0 (block $compile_block.26 (result i32) (block $compile_store.22 - (global.set $foo_1110 + (global.set $foo_1113 (tuple.extract 0 (tuple.make (block $allocate_closure.20 (result i32) @@ -371,14 +371,14 @@ functions › lam_destructure_4 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) ) (block $do_backpatches.21 (local.set $0 - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) @@ -424,10 +424,10 @@ functions › lam_destructure_4 (block $do_backpatches.24 ) ) - (call $foo_1110 + (call $foo_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/functions.b3a8d88b.0.snapshot b/compiler/test/__snapshots__/functions.b3a8d88b.0.snapshot index 841ef78d67..a6912ca403 100644 --- a/compiler/test/__snapshots__/functions.b3a8d88b.0.snapshot +++ b/compiler/test/__snapshots__/functions.b3a8d88b.0.snapshot @@ -11,12 +11,12 @@ functions › lam_destructure_8 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1115 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1118 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1115 (param i32 i32 i32) (result i32))) - (global $foo_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1118 (param i32 i32 i32) (result i32))) + (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -24,7 +24,7 @@ functions › lam_destructure_8 (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $foo_1110 (param $0 i32) (param $1 i32) (result i32) + (func $foo_1113 (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) @@ -300,10 +300,10 @@ functions › lam_destructure_8 (local.set $17 (tuple.extract 0 (tuple.make - (call $+_1115 + (call $+_1118 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1115) + (global.get $+_1118) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -328,10 +328,10 @@ functions › lam_destructure_8 (local.set $18 (tuple.extract 0 (tuple.make - (call $+_1115 + (call $+_1118 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1115) + (global.get $+_1118) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -352,10 +352,10 @@ functions › lam_destructure_8 (block $do_backpatches.25 ) ) - (call $+_1115 + (call $+_1118 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1115) + (global.get $+_1118) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -476,7 +476,7 @@ functions › lam_destructure_8 (local.set $0 (block $compile_block.38 (result i32) (block $compile_store.31 - (global.set $foo_1110 + (global.set $foo_1113 (tuple.extract 0 (tuple.make (block $allocate_closure.29 (result i32) @@ -505,14 +505,14 @@ functions › lam_destructure_8 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) ) (block $do_backpatches.30 (local.set $0 - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) @@ -599,10 +599,10 @@ functions › lam_destructure_8 (block $do_backpatches.36 ) ) - (call $foo_1110 + (call $foo_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/functions.b632a2ab.0.snapshot b/compiler/test/__snapshots__/functions.b632a2ab.0.snapshot index fe86b690e7..e792c5e8fb 100644 --- a/compiler/test/__snapshots__/functions.b632a2ab.0.snapshot +++ b/compiler/test/__snapshots__/functions.b632a2ab.0.snapshot @@ -20,7 +20,7 @@ functions › lam_destructure_1 (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $lam_lambda_1110 (param $0 i32) (param $1 i32) (result i32) + (func $lam_lambda_1113 (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) @@ -152,7 +152,7 @@ functions › lam_destructure_1 (block $do_backpatches.7 ) ) - (call $lam_lambda_1110 + (call $lam_lambda_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (local.get $6) diff --git a/compiler/test/__snapshots__/functions.c6e8a9aa.0.snapshot b/compiler/test/__snapshots__/functions.c6e8a9aa.0.snapshot index 0758a80d3d..b31b37e6fb 100644 --- a/compiler/test/__snapshots__/functions.c6e8a9aa.0.snapshot +++ b/compiler/test/__snapshots__/functions.c6e8a9aa.0.snapshot @@ -13,7 +13,7 @@ functions › lam_destructure_2 (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (global $foo_1110 (mut i32) (i32.const 0)) + (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -21,7 +21,7 @@ functions › lam_destructure_2 (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $foo_1110 (param $0 i32) (param $1 i32) (result i32) + (func $foo_1113 (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) @@ -78,7 +78,7 @@ functions › lam_destructure_2 (local.set $0 (block $compile_block.9 (result i32) (block $compile_store.5 - (global.set $foo_1110 + (global.set $foo_1113 (tuple.extract 0 (tuple.make (block $allocate_closure.3 (result i32) @@ -107,14 +107,14 @@ functions › lam_destructure_2 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) ) (block $do_backpatches.4 (local.set $0 - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) @@ -152,10 +152,10 @@ functions › lam_destructure_2 (block $do_backpatches.7 ) ) - (call $foo_1110 + (call $foo_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/functions.d9466880.0.snapshot b/compiler/test/__snapshots__/functions.d9466880.0.snapshot index 3e7ddf6343..729dd5bc1a 100644 --- a/compiler/test/__snapshots__/functions.d9466880.0.snapshot +++ b/compiler/test/__snapshots__/functions.d9466880.0.snapshot @@ -15,13 +15,13 @@ functions › func_record_associativity2 (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 1)) - (elem $elem (global.get $relocBase_0) $lam_lambda_1118) + (elem $elem (global.get $relocBase_0) $lam_lambda_1121) (export \"memory\" (memory $0)) (export \"_gmain\" (func $_gmain)) (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $lam_lambda_1118 (param $0 i32) (result i32) + (func $lam_lambda_1121 (param $0 i32) (result i32) (local $1 i32) (local $2 i32) (local $3 i32) @@ -79,7 +79,7 @@ functions › func_record_associativity2 ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -91,7 +91,7 @@ functions › func_record_associativity2 ) (i64.store offset=48 (local.get $0) - (i64.const 68719477847) + (i64.const 68719477850) ) (i64.store offset=56 (local.get $0) @@ -206,7 +206,7 @@ functions › func_record_associativity2 ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -254,7 +254,7 @@ functions › func_record_associativity2 ) (i32.store offset=8 (local.get $0) - (i32.const 2223) + (i32.const 2229) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/functions.e6c6212b.0.snapshot b/compiler/test/__snapshots__/functions.e6c6212b.0.snapshot index 895aabbd3b..ef1423589a 100644 --- a/compiler/test/__snapshots__/functions.e6c6212b.0.snapshot +++ b/compiler/test/__snapshots__/functions.e6c6212b.0.snapshot @@ -11,12 +11,12 @@ functions › fn_trailing_comma (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1113 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1116 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1113 (param i32 i32 i32) (result i32))) - (global $testFn_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1116 (param i32 i32 i32) (result i32))) + (global $testFn_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -24,7 +24,7 @@ functions › fn_trailing_comma (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $testFn_1110 (param $0 i32) (param $1 i32) (param $2 i32) (result i32) + (func $testFn_1113 (param $0 i32) (param $1 i32) (param $2 i32) (result i32) (local $3 i32) (local $4 i32) (local $5 i32) @@ -37,10 +37,10 @@ functions › fn_trailing_comma (tuple.extract 0 (tuple.make (block $compile_block.1 (result i32) - (call $+_1113 + (call $+_1116 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1113) + (global.get $+_1116) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -99,7 +99,7 @@ functions › fn_trailing_comma (local.set $0 (block $compile_block.6 (result i32) (block $compile_store.5 - (global.set $testFn_1110 + (global.set $testFn_1113 (tuple.extract 0 (tuple.make (block $allocate_closure.3 (result i32) @@ -128,21 +128,21 @@ functions › fn_trailing_comma ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $testFn_1110) + (global.get $testFn_1113) ) ) ) ) (block $do_backpatches.4 (local.set $0 - (global.get $testFn_1110) + (global.get $testFn_1113) ) ) ) - (call $testFn_1110 + (call $testFn_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $testFn_1110) + (global.get $testFn_1113) ) (i32.const 5) (i32.const 7) diff --git a/compiler/test/__snapshots__/functions.f400bb7b.0.snapshot b/compiler/test/__snapshots__/functions.f400bb7b.0.snapshot index 48538ae6c2..d1e2043b81 100644 --- a/compiler/test/__snapshots__/functions.f400bb7b.0.snapshot +++ b/compiler/test/__snapshots__/functions.f400bb7b.0.snapshot @@ -11,12 +11,12 @@ functions › lam_destructure_6 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1116 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1119 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1116 (param i32 i32 i32) (result i32))) - (global $foo_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1119 (param i32 i32 i32) (result i32))) + (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -24,7 +24,7 @@ functions › lam_destructure_6 (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $foo_1110 (param $0 i32) (param $1 i32) (param $2 i32) (result i32) + (func $foo_1113 (param $0 i32) (param $1 i32) (param $2 i32) (result i32) (local $3 i32) (local $4 i32) (local $5 i32) @@ -339,10 +339,10 @@ functions › lam_destructure_6 (local.set $19 (tuple.extract 0 (tuple.make - (call $+_1116 + (call $+_1119 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1116) + (global.get $+_1119) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -367,10 +367,10 @@ functions › lam_destructure_6 (local.set $20 (tuple.extract 0 (tuple.make - (call $+_1116 + (call $+_1119 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1116) + (global.get $+_1119) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -395,10 +395,10 @@ functions › lam_destructure_6 (local.set $21 (tuple.extract 0 (tuple.make - (call $+_1116 + (call $+_1119 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1116) + (global.get $+_1119) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -419,10 +419,10 @@ functions › lam_destructure_6 (block $do_backpatches.30 ) ) - (call $+_1116 + (call $+_1119 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1116) + (global.get $+_1119) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -561,7 +561,7 @@ functions › lam_destructure_6 (local.set $0 (block $compile_block.43 (result i32) (block $compile_store.36 - (global.set $foo_1110 + (global.set $foo_1113 (tuple.extract 0 (tuple.make (block $allocate_closure.34 (result i32) @@ -590,14 +590,14 @@ functions › lam_destructure_6 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) ) (block $do_backpatches.35 (local.set $0 - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) @@ -681,10 +681,10 @@ functions › lam_destructure_6 (block $do_backpatches.41 ) ) - (call $foo_1110 + (call $foo_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/functions.f647681b.0.snapshot b/compiler/test/__snapshots__/functions.f647681b.0.snapshot index 67dded2268..feb2d87bf1 100644 --- a/compiler/test/__snapshots__/functions.f647681b.0.snapshot +++ b/compiler/test/__snapshots__/functions.f647681b.0.snapshot @@ -15,13 +15,13 @@ functions › func_record_associativity1 (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 1)) - (elem $elem (global.get $relocBase_0) $lam_lambda_1115) + (elem $elem (global.get $relocBase_0) $lam_lambda_1118) (export \"memory\" (memory $0)) (export \"_gmain\" (func $_gmain)) (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $lam_lambda_1115 (param $0 i32) (result i32) + (func $lam_lambda_1118 (param $0 i32) (result i32) (local $1 i32) (local $2 i32) (local $3 i32) @@ -79,7 +79,7 @@ functions › func_record_associativity1 ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -192,7 +192,7 @@ functions › func_record_associativity1 ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/includes.03ddcd3b.0.snapshot b/compiler/test/__snapshots__/includes.03ddcd3b.0.snapshot index 00c199d7f2..e91592ad16 100644 --- a/compiler/test/__snapshots__/includes.03ddcd3b.0.snapshot +++ b/compiler/test/__snapshots__/includes.03ddcd3b.0.snapshot @@ -9,9 +9,9 @@ includes › include_with_export_multiple (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$sameProvide\" \"GRAIN$EXPORT$foo\" (global $foo_1113 (mut i32))) + (import \"GRAIN$MODULE$sameProvide\" \"GRAIN$EXPORT$foo\" (global $foo_1116 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$sameProvide\" \"foo\" (func $foo_1113 (param i32) (result i32))) + (import \"GRAIN$MODULE$sameProvide\" \"foo\" (func $foo_1116 (param i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ includes › include_with_export_multiple (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $foo_1113 + (call $foo_1116 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1113) + (global.get $foo_1116) ) ) ) diff --git a/compiler/test/__snapshots__/includes.1d829099.0.snapshot b/compiler/test/__snapshots__/includes.1d829099.0.snapshot index 45a759711c..7be8728ffc 100644 --- a/compiler/test/__snapshots__/includes.1d829099.0.snapshot +++ b/compiler/test/__snapshots__/includes.1d829099.0.snapshot @@ -8,7 +8,7 @@ includes › include_relative_path2 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$../../test/test-libs/provideAll\" \"GRAIN$EXPORT$x\" (global $x_1119 (mut i32))) + (import \"GRAIN$MODULE$../../test/test-libs/provideAll\" \"GRAIN$EXPORT$x\" (global $x_1122 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) @@ -39,7 +39,7 @@ includes › include_relative_path2 (block $compile_block.1 (result i32) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $x_1119) + (global.get $x_1122) ) ) ) diff --git a/compiler/test/__snapshots__/includes.46f78654.0.snapshot b/compiler/test/__snapshots__/includes.46f78654.0.snapshot index b655c120e6..7bc8bab998 100644 --- a/compiler/test/__snapshots__/includes.46f78654.0.snapshot +++ b/compiler/test/__snapshots__/includes.46f78654.0.snapshot @@ -8,10 +8,10 @@ includes › include_some_multiple (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1120 (mut i32))) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$y\" (global $y_1119 (mut i32))) + (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1123 (mut i32))) + (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$y\" (global $y_1122 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$provideAll\" \"y\" (func $y_1119 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$provideAll\" \"y\" (func $y_1122 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,14 +39,14 @@ includes › include_some_multiple (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $y_1119 + (call $y_1122 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $y_1119) + (global.get $y_1122) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $x_1120) + (global.get $x_1123) ) ) ) diff --git a/compiler/test/__snapshots__/includes.5dfba7dd.0.snapshot b/compiler/test/__snapshots__/includes.5dfba7dd.0.snapshot index 47e871dc35..807180af15 100644 --- a/compiler/test/__snapshots__/includes.5dfba7dd.0.snapshot +++ b/compiler/test/__snapshots__/includes.5dfba7dd.0.snapshot @@ -8,7 +8,7 @@ includes › include_alias (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1119 (mut i32))) + (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1122 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) @@ -39,7 +39,7 @@ includes › include_alias (block $compile_block.1 (result i32) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $x_1119) + (global.get $x_1122) ) ) ) diff --git a/compiler/test/__snapshots__/includes.6c8d23dc.0.snapshot b/compiler/test/__snapshots__/includes.6c8d23dc.0.snapshot index 6def57a6fb..2173c71698 100644 --- a/compiler/test/__snapshots__/includes.6c8d23dc.0.snapshot +++ b/compiler/test/__snapshots__/includes.6c8d23dc.0.snapshot @@ -8,10 +8,10 @@ includes › include_some_multiple_trailing2 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1120 (mut i32))) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$y\" (global $y_1119 (mut i32))) + (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1123 (mut i32))) + (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$y\" (global $y_1122 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$provideAll\" \"y\" (func $y_1119 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$provideAll\" \"y\" (func $y_1122 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,14 +39,14 @@ includes › include_some_multiple_trailing2 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $y_1119 + (call $y_1122 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $y_1119) + (global.get $y_1122) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $x_1120) + (global.get $x_1123) ) ) ) diff --git a/compiler/test/__snapshots__/includes.6e78c003.0.snapshot b/compiler/test/__snapshots__/includes.6e78c003.0.snapshot index 4982fa71a6..f574799ae5 100644 --- a/compiler/test/__snapshots__/includes.6e78c003.0.snapshot +++ b/compiler/test/__snapshots__/includes.6e78c003.0.snapshot @@ -8,10 +8,10 @@ includes › include_some_multiple_trailing (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1120 (mut i32))) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$y\" (global $y_1119 (mut i32))) + (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1123 (mut i32))) + (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$y\" (global $y_1122 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$provideAll\" \"y\" (func $y_1119 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$provideAll\" \"y\" (func $y_1122 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,14 +39,14 @@ includes › include_some_multiple_trailing (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $y_1119 + (call $y_1122 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $y_1119) + (global.get $y_1122) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $x_1120) + (global.get $x_1123) ) ) ) diff --git a/compiler/test/__snapshots__/includes.7afbe731.0.snapshot b/compiler/test/__snapshots__/includes.7afbe731.0.snapshot index aa0730dea7..9fbbd9e1d6 100644 --- a/compiler/test/__snapshots__/includes.7afbe731.0.snapshot +++ b/compiler/test/__snapshots__/includes.7afbe731.0.snapshot @@ -8,7 +8,7 @@ includes › include_some (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1119 (mut i32))) + (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1122 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) @@ -39,7 +39,7 @@ includes › include_some (block $compile_block.1 (result i32) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $x_1119) + (global.get $x_1122) ) ) ) diff --git a/compiler/test/__snapshots__/includes.8222ee98.0.snapshot b/compiler/test/__snapshots__/includes.8222ee98.0.snapshot index d85034428c..923b55fc71 100644 --- a/compiler/test/__snapshots__/includes.8222ee98.0.snapshot +++ b/compiler/test/__snapshots__/includes.8222ee98.0.snapshot @@ -8,7 +8,7 @@ includes › include_module (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1119 (mut i32))) + (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1122 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) @@ -39,7 +39,7 @@ includes › include_module (block $compile_block.1 (result i32) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $x_1119) + (global.get $x_1122) ) ) ) diff --git a/compiler/test/__snapshots__/includes.86ff4075.0.snapshot b/compiler/test/__snapshots__/includes.86ff4075.0.snapshot index b840466d56..ca90803817 100644 --- a/compiler/test/__snapshots__/includes.86ff4075.0.snapshot +++ b/compiler/test/__snapshots__/includes.86ff4075.0.snapshot @@ -8,10 +8,10 @@ includes › include_alias_multiple (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1120 (mut i32))) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$y\" (global $y_1119 (mut i32))) + (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1123 (mut i32))) + (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$y\" (global $y_1122 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$provideAll\" \"y\" (func $y_1119 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$provideAll\" \"y\" (func $y_1122 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,14 +39,14 @@ includes › include_alias_multiple (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $y_1119 + (call $y_1122 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $y_1119) + (global.get $y_1122) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $x_1120) + (global.get $x_1123) ) ) ) diff --git a/compiler/test/__snapshots__/includes.a3212bd0.0.snapshot b/compiler/test/__snapshots__/includes.a3212bd0.0.snapshot index 6f26399310..08340ab361 100644 --- a/compiler/test/__snapshots__/includes.a3212bd0.0.snapshot +++ b/compiler/test/__snapshots__/includes.a3212bd0.0.snapshot @@ -8,7 +8,7 @@ includes › include_relative_path3 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$nested/nested\" \"GRAIN$EXPORT$j\" (global $j_1113 (mut i32))) + (import \"GRAIN$MODULE$nested/nested\" \"GRAIN$EXPORT$j\" (global $j_1116 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) @@ -39,7 +39,7 @@ includes › include_relative_path3 (block $compile_block.1 (result i32) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $j_1113) + (global.get $j_1116) ) ) ) diff --git a/compiler/test/__snapshots__/includes.b3434679.0.snapshot b/compiler/test/__snapshots__/includes.b3434679.0.snapshot index de0d0c467d..50f02327da 100644 --- a/compiler/test/__snapshots__/includes.b3434679.0.snapshot +++ b/compiler/test/__snapshots__/includes.b3434679.0.snapshot @@ -64,7 +64,7 @@ includes › include_some_constructor ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -105,7 +105,7 @@ includes › include_some_constructor ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/includes.bd3eb3af.0.snapshot b/compiler/test/__snapshots__/includes.bd3eb3af.0.snapshot index fd80fc1473..35958e9a5d 100644 --- a/compiler/test/__snapshots__/includes.bd3eb3af.0.snapshot +++ b/compiler/test/__snapshots__/includes.bd3eb3af.0.snapshot @@ -10,11 +10,11 @@ includes › include_some_mixed (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$tlists\" \"GRAIN$EXPORT$sum\" (global $sum_1117 (mut i32))) + (import \"GRAIN$MODULE$tlists\" \"GRAIN$EXPORT$sum\" (global $sum_1120 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$tlists\" \"sum\" (func $sum_1117 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$tlists\" \"sum\" (func $sum_1120 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -67,7 +67,7 @@ includes › include_some_mixed ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -112,7 +112,7 @@ includes › include_some_mixed ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -145,10 +145,10 @@ includes › include_some_mixed (block $do_backpatches.5 ) ) - (call $sum_1117 + (call $sum_1120 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $sum_1117) + (global.get $sum_1120) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/includes.beda767e.0.snapshot b/compiler/test/__snapshots__/includes.beda767e.0.snapshot index 71732d4b33..313eb7857d 100644 --- a/compiler/test/__snapshots__/includes.beda767e.0.snapshot +++ b/compiler/test/__snapshots__/includes.beda767e.0.snapshot @@ -8,7 +8,7 @@ includes › include_relative_path1 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$../test-libs/provideAll\" \"GRAIN$EXPORT$x\" (global $x_1119 (mut i32))) + (import \"GRAIN$MODULE$../test-libs/provideAll\" \"GRAIN$EXPORT$x\" (global $x_1122 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) @@ -39,7 +39,7 @@ includes › include_relative_path1 (block $compile_block.1 (result i32) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $x_1119) + (global.get $x_1122) ) ) ) diff --git a/compiler/test/__snapshots__/includes.c0c0d5ca.0.snapshot b/compiler/test/__snapshots__/includes.c0c0d5ca.0.snapshot index 0c1ae07233..6735d1f593 100644 --- a/compiler/test/__snapshots__/includes.c0c0d5ca.0.snapshot +++ b/compiler/test/__snapshots__/includes.c0c0d5ca.0.snapshot @@ -9,12 +9,12 @@ includes › include_relative_path4 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$./bar/bar\" \"GRAIN$EXPORT$bar\" (global $bar_1115 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1113 (mut i32))) + (import \"GRAIN$MODULE$./bar/bar\" \"GRAIN$EXPORT$bar\" (global $bar_1118 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1116 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$./bar/bar\" \"bar\" (func $bar_1115 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1113 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$./bar/bar\" \"bar\" (func $bar_1118 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1116 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -47,10 +47,10 @@ includes › include_relative_path4 (local.set $6 (tuple.extract 0 (tuple.make - (call $bar_1115 + (call $bar_1118 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $bar_1115) + (global.get $bar_1118) ) (i32.const 5) ) @@ -64,10 +64,10 @@ includes › include_relative_path4 (block $do_backpatches.1 ) ) - (call $print_1113 + (call $print_1116 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1113) + (global.get $print_1116) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/includes.c62f45f8.0.snapshot b/compiler/test/__snapshots__/includes.c62f45f8.0.snapshot index a1c3a0e5b9..e4717867a2 100644 --- a/compiler/test/__snapshots__/includes.c62f45f8.0.snapshot +++ b/compiler/test/__snapshots__/includes.c62f45f8.0.snapshot @@ -10,7 +10,7 @@ includes › include_muliple_modules (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1127 (mut i32))) + (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1130 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) @@ -65,7 +65,7 @@ includes › include_muliple_modules ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -106,7 +106,7 @@ includes › include_muliple_modules ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -120,7 +120,7 @@ includes › include_muliple_modules (local.get $0) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $x_1127) + (global.get $x_1130) ) ) (i32.store offset=24 diff --git a/compiler/test/__snapshots__/includes.cedde8e9.0.snapshot b/compiler/test/__snapshots__/includes.cedde8e9.0.snapshot index 874fb085e1..7f26da3a3d 100644 --- a/compiler/test/__snapshots__/includes.cedde8e9.0.snapshot +++ b/compiler/test/__snapshots__/includes.cedde8e9.0.snapshot @@ -64,7 +64,7 @@ includes › include_same_module_unify ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -105,7 +105,7 @@ includes › include_same_module_unify ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/includes.de6b420f.0.snapshot b/compiler/test/__snapshots__/includes.de6b420f.0.snapshot index 14c8182693..ab4e0ac470 100644 --- a/compiler/test/__snapshots__/includes.de6b420f.0.snapshot +++ b/compiler/test/__snapshots__/includes.de6b420f.0.snapshot @@ -55,7 +55,7 @@ includes › annotation_across_import ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/includes.f2bf866b.0.snapshot b/compiler/test/__snapshots__/includes.f2bf866b.0.snapshot index 6ff3e5cce9..4baa96e38a 100644 --- a/compiler/test/__snapshots__/includes.f2bf866b.0.snapshot +++ b/compiler/test/__snapshots__/includes.f2bf866b.0.snapshot @@ -64,7 +64,7 @@ includes › include_all_constructor ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -105,7 +105,7 @@ includes › include_all_constructor ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/includes.f4ba5583.0.snapshot b/compiler/test/__snapshots__/includes.f4ba5583.0.snapshot index 0b7bb07e19..36cf45ca8b 100644 --- a/compiler/test/__snapshots__/includes.f4ba5583.0.snapshot +++ b/compiler/test/__snapshots__/includes.f4ba5583.0.snapshot @@ -8,10 +8,10 @@ includes › include_module2 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1120 (mut i32))) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$y\" (global $y_1119 (mut i32))) + (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1123 (mut i32))) + (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$y\" (global $y_1122 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$provideAll\" \"y\" (func $y_1119 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$provideAll\" \"y\" (func $y_1122 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,14 +39,14 @@ includes › include_module2 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $y_1119 + (call $y_1122 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $y_1119) + (global.get $y_1122) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $x_1120) + (global.get $x_1123) ) ) ) diff --git a/compiler/test/__snapshots__/let_mut.00e05fe2.0.snapshot b/compiler/test/__snapshots__/let_mut.00e05fe2.0.snapshot index 1221b55e8b..f4e54ba2e7 100644 --- a/compiler/test/__snapshots__/let_mut.00e05fe2.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.00e05fe2.0.snapshot @@ -10,11 +10,11 @@ let mut › let-mut_division1 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$/\" (global $/_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$/\" (global $/_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"/\" (func $/_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"/\" (func $/_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -44,13 +44,13 @@ let mut › let-mut_division1 (local.set $0 (block $compile_block.6 (result i32) (block $compile_store.2 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (i32.const 153) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -62,14 +62,14 @@ let mut › let-mut_division1 (local.set $6 (tuple.extract 0 (tuple.make - (call $/_1114 + (call $/_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $/_1114) + (global.get $/_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) (i32.const 39) ) @@ -84,7 +84,7 @@ let mut › let-mut_division1 ) ) (block $compile_set.5 (result i32) - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -93,7 +93,7 @@ let mut › let-mut_division1 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/let_mut.1176df90.0.snapshot b/compiler/test/__snapshots__/let_mut.1176df90.0.snapshot index 52c46579ae..b908f6e48a 100644 --- a/compiler/test/__snapshots__/let_mut.1176df90.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.1176df90.0.snapshot @@ -10,11 +10,11 @@ let mut › let-mut_multiplication2 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$*\" (global $*_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$*\" (global $*_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"*\" (func $*_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"*\" (func $*_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -45,13 +45,13 @@ let mut › let-mut_multiplication2 (local.set $0 (block $compile_block.8 (result i32) (block $compile_store.2 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (i32.const 9) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -63,14 +63,14 @@ let mut › let-mut_multiplication2 (local.set $6 (tuple.extract 0 (tuple.make - (call $*_1114 + (call $*_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $*_1114) + (global.get $*_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) (i32.const 39) ) @@ -87,7 +87,7 @@ let mut › let-mut_multiplication2 (block $compile_store.7 (local.set $7 (block $compile_set.5 (result i32) - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -96,7 +96,7 @@ let mut › let-mut_multiplication2 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -109,7 +109,7 @@ let mut › let-mut_multiplication2 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/let_mut.3307d5a7.0.snapshot b/compiler/test/__snapshots__/let_mut.3307d5a7.0.snapshot index ec24fd3320..eb88d00c40 100644 --- a/compiler/test/__snapshots__/let_mut.3307d5a7.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.3307d5a7.0.snapshot @@ -13,7 +13,7 @@ let mut › let-mut3 (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -42,7 +42,7 @@ let mut › let-mut3 (local.set $0 (block $compile_block.4 (result i32) (block $compile_store.3 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (block $allocate_tuple.1 (result i32) @@ -67,7 +67,7 @@ let mut › let-mut3 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -78,7 +78,7 @@ let mut › let-mut3 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/let_mut.43f6980c.0.snapshot b/compiler/test/__snapshots__/let_mut.43f6980c.0.snapshot index 357b044a16..1d1f542169 100644 --- a/compiler/test/__snapshots__/let_mut.43f6980c.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.43f6980c.0.snapshot @@ -10,11 +10,11 @@ let mut › let-mut_division3 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$/\" (global $/_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$/\" (global $/_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"/\" (func $/_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"/\" (func $/_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -45,13 +45,13 @@ let mut › let-mut_division3 (local.set $0 (block $compile_block.8 (result i32) (block $compile_store.2 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (i32.const 153) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -63,14 +63,14 @@ let mut › let-mut_division3 (local.set $6 (tuple.extract 0 (tuple.make - (call $/_1114 + (call $/_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $/_1114) + (global.get $/_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) (i32.const 39) ) @@ -87,7 +87,7 @@ let mut › let-mut_division3 (block $compile_store.7 (local.set $7 (block $compile_set.5 (result i32) - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -96,7 +96,7 @@ let mut › let-mut_division3 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -109,7 +109,7 @@ let mut › let-mut_division3 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/let_mut.48249b50.0.snapshot b/compiler/test/__snapshots__/let_mut.48249b50.0.snapshot index ac3cb1c2ec..f9339229fb 100644 --- a/compiler/test/__snapshots__/let_mut.48249b50.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.48249b50.0.snapshot @@ -10,11 +10,11 @@ let mut › let-mut5 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -45,13 +45,13 @@ let mut › let-mut5 (local.set $0 (block $compile_block.8 (result i32) (block $compile_store.2 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (i32.const 9) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -63,14 +63,14 @@ let mut › let-mut5 (local.set $6 (tuple.extract 0 (tuple.make - (call $-_1114 + (call $-_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $-_1114) + (global.get $-_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) (i32.const 3) ) @@ -87,7 +87,7 @@ let mut › let-mut5 (block $compile_store.7 (local.set $7 (block $compile_set.5 (result i32) - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -96,7 +96,7 @@ let mut › let-mut5 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -109,7 +109,7 @@ let mut › let-mut5 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/let_mut.4c3f3b2b.0.snapshot b/compiler/test/__snapshots__/let_mut.4c3f3b2b.0.snapshot index 87a91955f0..d59cc57164 100644 --- a/compiler/test/__snapshots__/let_mut.4c3f3b2b.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.4c3f3b2b.0.snapshot @@ -13,7 +13,7 @@ let mut › let-mut2 (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -81,7 +81,7 @@ let mut › let-mut2 ) ) (block $compile_store.6 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (block $allocate_tuple.4 (result i32) @@ -113,7 +113,7 @@ let mut › let-mut2 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -123,7 +123,7 @@ let mut › let-mut2 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/let_mut.4c75261e.0.snapshot b/compiler/test/__snapshots__/let_mut.4c75261e.0.snapshot index 3270d58077..461c7f01e3 100644 --- a/compiler/test/__snapshots__/let_mut.4c75261e.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.4c75261e.0.snapshot @@ -10,11 +10,11 @@ let mut › let-mut_multiplication1 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$*\" (global $*_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$*\" (global $*_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"*\" (func $*_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"*\" (func $*_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -44,13 +44,13 @@ let mut › let-mut_multiplication1 (local.set $0 (block $compile_block.6 (result i32) (block $compile_store.2 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (i32.const 9) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -62,14 +62,14 @@ let mut › let-mut_multiplication1 (local.set $6 (tuple.extract 0 (tuple.make - (call $*_1114 + (call $*_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $*_1114) + (global.get $*_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) (i32.const 39) ) @@ -84,7 +84,7 @@ let mut › let-mut_multiplication1 ) ) (block $compile_set.5 (result i32) - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -93,7 +93,7 @@ let mut › let-mut_multiplication1 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/let_mut.634331f0.0.snapshot b/compiler/test/__snapshots__/let_mut.634331f0.0.snapshot index c9d69df2cb..83c036aa5f 100644 --- a/compiler/test/__snapshots__/let_mut.634331f0.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.634331f0.0.snapshot @@ -10,11 +10,11 @@ let mut › let-mut_multiplication3 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$*\" (global $*_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$*\" (global $*_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"*\" (func $*_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"*\" (func $*_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -45,13 +45,13 @@ let mut › let-mut_multiplication3 (local.set $0 (block $compile_block.8 (result i32) (block $compile_store.2 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (i32.const 9) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -63,14 +63,14 @@ let mut › let-mut_multiplication3 (local.set $6 (tuple.extract 0 (tuple.make - (call $*_1114 + (call $*_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $*_1114) + (global.get $*_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) (i32.const 39) ) @@ -87,7 +87,7 @@ let mut › let-mut_multiplication3 (block $compile_store.7 (local.set $7 (block $compile_set.5 (result i32) - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -96,7 +96,7 @@ let mut › let-mut_multiplication3 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -109,7 +109,7 @@ let mut › let-mut_multiplication3 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/let_mut.63c16374.0.snapshot b/compiler/test/__snapshots__/let_mut.63c16374.0.snapshot index 11271fa149..876af56cf2 100644 --- a/compiler/test/__snapshots__/let_mut.63c16374.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.63c16374.0.snapshot @@ -11,7 +11,7 @@ let mut › let-mut4 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -41,13 +41,13 @@ let mut › let-mut4 (local.set $0 (block $compile_block.6 (result i32) (block $compile_store.2 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (i32.const 9) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -58,13 +58,13 @@ let mut › let-mut4 (block $compile_store.5 (local.set $6 (block $compile_set.3 (result i32) - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (i32.const 7) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -77,7 +77,7 @@ let mut › let-mut4 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/let_mut.6796c72d.0.snapshot b/compiler/test/__snapshots__/let_mut.6796c72d.0.snapshot index b00aee40a4..63919ee6dc 100644 --- a/compiler/test/__snapshots__/let_mut.6796c72d.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.6796c72d.0.snapshot @@ -10,11 +10,11 @@ let mut › let-mut_subtraction1 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -44,13 +44,13 @@ let mut › let-mut_subtraction1 (local.set $0 (block $compile_block.6 (result i32) (block $compile_store.2 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (i32.const 9) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -62,14 +62,14 @@ let mut › let-mut_subtraction1 (local.set $6 (tuple.extract 0 (tuple.make - (call $-_1114 + (call $-_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $-_1114) + (global.get $-_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) (i32.const 39) ) @@ -84,7 +84,7 @@ let mut › let-mut_subtraction1 ) ) (block $compile_set.5 (result i32) - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -93,7 +93,7 @@ let mut › let-mut_subtraction1 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/let_mut.baaea1d3.0.snapshot b/compiler/test/__snapshots__/let_mut.baaea1d3.0.snapshot index e731077fa6..77ec2e3e20 100644 --- a/compiler/test/__snapshots__/let_mut.baaea1d3.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.baaea1d3.0.snapshot @@ -10,11 +10,11 @@ let mut › let-mut_subtraction2 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -45,13 +45,13 @@ let mut › let-mut_subtraction2 (local.set $0 (block $compile_block.8 (result i32) (block $compile_store.2 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (i32.const 9) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -63,14 +63,14 @@ let mut › let-mut_subtraction2 (local.set $6 (tuple.extract 0 (tuple.make - (call $-_1114 + (call $-_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $-_1114) + (global.get $-_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) (i32.const 39) ) @@ -87,7 +87,7 @@ let mut › let-mut_subtraction2 (block $compile_store.7 (local.set $7 (block $compile_set.5 (result i32) - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -96,7 +96,7 @@ let mut › let-mut_subtraction2 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -109,7 +109,7 @@ let mut › let-mut_subtraction2 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/let_mut.cbbbaeb4.0.snapshot b/compiler/test/__snapshots__/let_mut.cbbbaeb4.0.snapshot index c623992159..0f490a86f5 100644 --- a/compiler/test/__snapshots__/let_mut.cbbbaeb4.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.cbbbaeb4.0.snapshot @@ -10,11 +10,11 @@ let mut › let-mut_addition2 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -45,13 +45,13 @@ let mut › let-mut_addition2 (local.set $0 (block $compile_block.8 (result i32) (block $compile_store.2 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (i32.const 9) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -63,14 +63,14 @@ let mut › let-mut_addition2 (local.set $6 (tuple.extract 0 (tuple.make - (call $+_1114 + (call $+_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1114) + (global.get $+_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) (i32.const 39) ) @@ -87,7 +87,7 @@ let mut › let-mut_addition2 (block $compile_store.7 (local.set $7 (block $compile_set.5 (result i32) - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -96,7 +96,7 @@ let mut › let-mut_addition2 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -109,7 +109,7 @@ let mut › let-mut_addition2 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/let_mut.d2de286b.0.snapshot b/compiler/test/__snapshots__/let_mut.d2de286b.0.snapshot index 109d59ae5e..e5be576a4c 100644 --- a/compiler/test/__snapshots__/let_mut.d2de286b.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.d2de286b.0.snapshot @@ -10,11 +10,11 @@ let mut › let-mut_addition1 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -44,13 +44,13 @@ let mut › let-mut_addition1 (local.set $0 (block $compile_block.6 (result i32) (block $compile_store.2 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (i32.const 9) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -62,14 +62,14 @@ let mut › let-mut_addition1 (local.set $6 (tuple.extract 0 (tuple.make - (call $+_1114 + (call $+_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1114) + (global.get $+_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) (i32.const 39) ) @@ -84,7 +84,7 @@ let mut › let-mut_addition1 ) ) (block $compile_set.5 (result i32) - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -93,7 +93,7 @@ let mut › let-mut_addition1 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/let_mut.e90db621.0.snapshot b/compiler/test/__snapshots__/let_mut.e90db621.0.snapshot index 1a83441c7e..07dd875c28 100644 --- a/compiler/test/__snapshots__/let_mut.e90db621.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.e90db621.0.snapshot @@ -10,11 +10,11 @@ let mut › let-mut_subtraction3 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -45,13 +45,13 @@ let mut › let-mut_subtraction3 (local.set $0 (block $compile_block.8 (result i32) (block $compile_store.2 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (i32.const 9) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -63,14 +63,14 @@ let mut › let-mut_subtraction3 (local.set $6 (tuple.extract 0 (tuple.make - (call $-_1114 + (call $-_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $-_1114) + (global.get $-_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) (i32.const 39) ) @@ -87,7 +87,7 @@ let mut › let-mut_subtraction3 (block $compile_store.7 (local.set $7 (block $compile_set.5 (result i32) - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -96,7 +96,7 @@ let mut › let-mut_subtraction3 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -109,7 +109,7 @@ let mut › let-mut_subtraction3 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/let_mut.f8f208a2.0.snapshot b/compiler/test/__snapshots__/let_mut.f8f208a2.0.snapshot index 7c0f1ffff4..0c4902b261 100644 --- a/compiler/test/__snapshots__/let_mut.f8f208a2.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.f8f208a2.0.snapshot @@ -10,11 +10,11 @@ let mut › let-mut_addition3 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -45,13 +45,13 @@ let mut › let-mut_addition3 (local.set $0 (block $compile_block.8 (result i32) (block $compile_store.2 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (i32.const 9) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -63,14 +63,14 @@ let mut › let-mut_addition3 (local.set $6 (tuple.extract 0 (tuple.make - (call $+_1114 + (call $+_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1114) + (global.get $+_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) (i32.const 39) ) @@ -87,7 +87,7 @@ let mut › let-mut_addition3 (block $compile_store.7 (local.set $7 (block $compile_set.5 (result i32) - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -96,7 +96,7 @@ let mut › let-mut_addition3 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -109,7 +109,7 @@ let mut › let-mut_addition3 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/let_mut.f9e32f30.0.snapshot b/compiler/test/__snapshots__/let_mut.f9e32f30.0.snapshot index 1dd5c3a219..b3c5501a25 100644 --- a/compiler/test/__snapshots__/let_mut.f9e32f30.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.f9e32f30.0.snapshot @@ -10,11 +10,11 @@ let mut › let-mut_division2 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$/\" (global $/_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$/\" (global $/_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"/\" (func $/_1114 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"/\" (func $/_1117 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -45,13 +45,13 @@ let mut › let-mut_division2 (local.set $0 (block $compile_block.8 (result i32) (block $compile_store.2 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (i32.const 153) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -63,14 +63,14 @@ let mut › let-mut_division2 (local.set $6 (tuple.extract 0 (tuple.make - (call $/_1114 + (call $/_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $/_1114) + (global.get $/_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) (i32.const 39) ) @@ -87,7 +87,7 @@ let mut › let-mut_division2 (block $compile_store.7 (local.set $7 (block $compile_set.5 (result i32) - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -96,7 +96,7 @@ let mut › let-mut_division2 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -109,7 +109,7 @@ let mut › let-mut_division2 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/let_mut.fcc9c65d.0.snapshot b/compiler/test/__snapshots__/let_mut.fcc9c65d.0.snapshot index b9d724508f..720b46c005 100644 --- a/compiler/test/__snapshots__/let_mut.fcc9c65d.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.fcc9c65d.0.snapshot @@ -11,7 +11,7 @@ let mut › let-mut1 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -40,13 +40,13 @@ let mut › let-mut1 (local.set $0 (block $compile_block.3 (result i32) (block $compile_store.2 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (i32.const 9) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -56,7 +56,7 @@ let mut › let-mut1 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/loops.0a25def1.0.snapshot b/compiler/test/__snapshots__/loops.0a25def1.0.snapshot index bda96b4511..e7ceebfe43 100644 --- a/compiler/test/__snapshots__/loops.0a25def1.0.snapshot +++ b/compiler/test/__snapshots__/loops.0a25def1.0.snapshot @@ -11,17 +11,17 @@ loops › loop2 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>\" (global $>_1125 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1122 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1117 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>\" (global $>_1128 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1125 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1120 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \">\" (func $>_1125 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1122 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1117 (param i32 i32 i32) (result i32))) - (global $count_1111 (mut i32) (i32.const 0)) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \">\" (func $>_1128 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1125 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1120 (param i32 i32 i32) (result i32))) + (global $count_1114 (mut i32) (i32.const 0)) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -56,7 +56,7 @@ loops › loop2 (local.set $0 (block $compile_block.29 (result i32) (block $compile_store.3 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (block $allocate_tuple.1 (result i32) @@ -81,7 +81,7 @@ loops › loop2 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -90,7 +90,7 @@ loops › loop2 ) ) (block $compile_store.6 - (global.set $count_1111 + (global.set $count_1114 (tuple.extract 0 (tuple.make (block $allocate_tuple.4 (result i32) @@ -115,7 +115,7 @@ loops › loop2 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $count_1111) + (global.get $count_1114) ) ) ) @@ -142,7 +142,7 @@ loops › loop2 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) (call $decRef_0 @@ -155,10 +155,10 @@ loops › loop2 (block $do_backpatches.10 ) ) - (call $>_1125 + (call $>_1128 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $>_1125) + (global.get $>_1128) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -182,7 +182,7 @@ loops › loop2 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) (call $decRef_0 @@ -199,10 +199,10 @@ loops › loop2 (local.set $7 (tuple.extract 0 (tuple.make - (call $-_1117 + (call $-_1120 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $-_1117) + (global.get $-_1120) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -224,7 +224,7 @@ loops › loop2 (local.set $11 (block $MTupleSet.17 (result i32) (i32.store offset=8 - (global.get $b_1110) + (global.get $b_1113) (tuple.extract 0 (tuple.make (call $incRef_0 @@ -234,7 +234,7 @@ loops › loop2 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (i32.load offset=8 - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -253,7 +253,7 @@ loops › loop2 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (i32.load offset=8 - (global.get $count_1111) + (global.get $count_1114) ) ) (call $decRef_0 @@ -270,10 +270,10 @@ loops › loop2 (local.set $9 (tuple.extract 0 (tuple.make - (call $+_1122 + (call $+_1125 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1122) + (global.get $+_1125) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -293,7 +293,7 @@ loops › loop2 ) (block $MTupleSet.24 (result i32) (i32.store offset=8 - (global.get $count_1111) + (global.get $count_1114) (tuple.extract 0 (tuple.make (call $incRef_0 @@ -303,7 +303,7 @@ loops › loop2 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (i32.load offset=8 - (global.get $count_1111) + (global.get $count_1114) ) ) ) @@ -327,7 +327,7 @@ loops › loop2 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (i32.load offset=8 - (global.get $count_1111) + (global.get $count_1114) ) ) ) diff --git a/compiler/test/__snapshots__/loops.0fafc5f0.0.snapshot b/compiler/test/__snapshots__/loops.0fafc5f0.0.snapshot index a940aab941..eab7c4bd90 100644 --- a/compiler/test/__snapshots__/loops.0fafc5f0.0.snapshot +++ b/compiler/test/__snapshots__/loops.0fafc5f0.0.snapshot @@ -10,16 +10,16 @@ loops › loop5 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>=\" (global $>=_1123 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1121 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1117 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>=\" (global $>=_1126 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1124 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1120 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \">=\" (func $>=_1123 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1121 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1117 (param i32 i32 i32) (result i32))) - (global $count_1111 (mut i32) (i32.const 0)) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \">=\" (func $>=_1126 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1124 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1120 (param i32 i32 i32) (result i32))) + (global $count_1114 (mut i32) (i32.const 0)) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -51,13 +51,13 @@ loops › loop5 (local.set $0 (block $compile_block.21 (result i32) (block $compile_store.2 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (i32.const 25) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -66,13 +66,13 @@ loops › loop5 ) ) (block $compile_store.4 - (global.set $count_1111 + (global.set $count_1114 (tuple.extract 0 (tuple.make (i32.const 1) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $count_1111) + (global.get $count_1114) ) ) ) @@ -96,14 +96,14 @@ loops › loop5 (local.set $6 (tuple.extract 0 (tuple.make - (call $-_1121 + (call $-_1124 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $-_1121) + (global.get $-_1124) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) (i32.const 3) ) @@ -120,7 +120,7 @@ loops › loop5 (block $compile_store.12 (local.set $8 (block $compile_set.10 (result i32) - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -129,7 +129,7 @@ loops › loop5 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -140,14 +140,14 @@ loops › loop5 (block $do_backpatches.11 ) ) - (call $>=_1123 + (call $>=_1126 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $>=_1123) + (global.get $>=_1126) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) (i32.const 1) ) @@ -164,14 +164,14 @@ loops › loop5 (local.set $6 (tuple.extract 0 (tuple.make - (call $+_1117 + (call $+_1120 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1117) + (global.get $+_1120) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $count_1111) + (global.get $count_1114) ) (i32.const 3) ) @@ -186,7 +186,7 @@ loops › loop5 ) ) (block $compile_set.16 (result i32) - (global.set $count_1111 + (global.set $count_1114 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -195,7 +195,7 @@ loops › loop5 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $count_1111) + (global.get $count_1114) ) ) ) @@ -217,7 +217,7 @@ loops › loop5 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $count_1111) + (global.get $count_1114) ) ) ) diff --git a/compiler/test/__snapshots__/loops.c2b7bfc6.0.snapshot b/compiler/test/__snapshots__/loops.c2b7bfc6.0.snapshot index 80aadbd9ed..03ceb97c0e 100644 --- a/compiler/test/__snapshots__/loops.c2b7bfc6.0.snapshot +++ b/compiler/test/__snapshots__/loops.c2b7bfc6.0.snapshot @@ -10,13 +10,13 @@ loops › loop3 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>\" (global $>_1117 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1115 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>\" (global $>_1120 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1118 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \">\" (func $>_1117 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1115 (param i32 i32 i32) (result i32))) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \">\" (func $>_1120 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1118 (param i32 i32 i32) (result i32))) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -47,13 +47,13 @@ loops › loop3 (local.set $0 (block $compile_block.14 (result i32) (block $compile_store.2 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (i32.const 7) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -73,14 +73,14 @@ loops › loop3 (i32.eqz (i32.shr_u (block $compile_block.6 (result i32) - (call $>_1117 + (call $>_1120 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $>_1117) + (global.get $>_1120) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) (i32.const 1) ) @@ -97,14 +97,14 @@ loops › loop3 (local.set $6 (tuple.extract 0 (tuple.make - (call $-_1115 + (call $-_1118 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $-_1115) + (global.get $-_1118) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) (i32.const 3) ) @@ -119,7 +119,7 @@ loops › loop3 ) ) (block $compile_set.9 (result i32) - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -128,7 +128,7 @@ loops › loop3 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -150,7 +150,7 @@ loops › loop3 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) diff --git a/compiler/test/__snapshots__/loops.f1c03b79.0.snapshot b/compiler/test/__snapshots__/loops.f1c03b79.0.snapshot index 790fafd076..59ae992b56 100644 --- a/compiler/test/__snapshots__/loops.f1c03b79.0.snapshot +++ b/compiler/test/__snapshots__/loops.f1c03b79.0.snapshot @@ -10,16 +10,16 @@ loops › loop4 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>\" (global $>_1123 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1121 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1117 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$>\" (global $>_1126 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1124 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1120 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \">\" (func $>_1123 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1121 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1117 (param i32 i32 i32) (result i32))) - (global $count_1111 (mut i32) (i32.const 0)) - (global $b_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \">\" (func $>_1126 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1124 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1120 (param i32 i32 i32) (result i32))) + (global $count_1114 (mut i32) (i32.const 0)) + (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -51,13 +51,13 @@ loops › loop4 (local.set $0 (block $compile_block.21 (result i32) (block $compile_store.2 - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (i32.const 25) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -66,13 +66,13 @@ loops › loop4 ) ) (block $compile_store.4 - (global.set $count_1111 + (global.set $count_1114 (tuple.extract 0 (tuple.make (i32.const 1) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $count_1111) + (global.get $count_1114) ) ) ) @@ -92,14 +92,14 @@ loops › loop4 (i32.eqz (i32.shr_u (block $compile_block.8 (result i32) - (call $>_1123 + (call $>_1126 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $>_1123) + (global.get $>_1126) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) (i32.const 1) ) @@ -116,14 +116,14 @@ loops › loop4 (local.set $6 (tuple.extract 0 (tuple.make - (call $-_1117 + (call $-_1120 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $-_1117) + (global.get $-_1120) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1110) + (global.get $b_1113) ) (i32.const 3) ) @@ -140,7 +140,7 @@ loops › loop4 (block $compile_store.13 (local.set $8 (block $compile_set.11 (result i32) - (global.set $b_1110 + (global.set $b_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -149,7 +149,7 @@ loops › loop4 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1110) + (global.get $b_1113) ) ) ) @@ -164,14 +164,14 @@ loops › loop4 (local.set $7 (tuple.extract 0 (tuple.make - (call $+_1121 + (call $+_1124 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1121) + (global.get $+_1124) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $count_1111) + (global.get $count_1114) ) (i32.const 3) ) @@ -186,7 +186,7 @@ loops › loop4 ) ) (block $compile_set.16 (result i32) - (global.set $count_1111 + (global.set $count_1114 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -195,7 +195,7 @@ loops › loop4 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $count_1111) + (global.get $count_1114) ) ) ) @@ -217,7 +217,7 @@ loops › loop4 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $count_1111) + (global.get $count_1114) ) ) ) diff --git a/compiler/test/__snapshots__/optimizations.d72b00c6.0.snapshot b/compiler/test/__snapshots__/optimizations.d72b00c6.0.snapshot index 98f683640e..e7b4a4c02c 100644 --- a/compiler/test/__snapshots__/optimizations.d72b00c6.0.snapshot +++ b/compiler/test/__snapshots__/optimizations.d72b00c6.0.snapshot @@ -14,7 +14,7 @@ optimizations › trs1 (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (global $f1_1110 (mut i32) (i32.const 0)) + (global $f1_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -22,7 +22,7 @@ optimizations › trs1 (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $f1_1110 (param $0 i32) (param $1 i32) (param $2 i32) (result i32) + (func $f1_1113 (param $0 i32) (param $1 i32) (param $2 i32) (result i32) (local $3 i32) (local $4 i32) (local $5 i32) @@ -87,7 +87,7 @@ optimizations › trs1 (local.set $0 (block $compile_block.6 (result i32) (block $compile_store.5 - (global.set $f1_1110 + (global.set $f1_1113 (tuple.extract 0 (tuple.make (block $allocate_closure.3 (result i32) @@ -116,21 +116,21 @@ optimizations › trs1 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $f1_1110) + (global.get $f1_1113) ) ) ) ) (block $do_backpatches.4 (local.set $0 - (global.get $f1_1110) + (global.get $f1_1113) ) ) ) - (call $f1_1110 + (call $f1_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $f1_1110) + (global.get $f1_1113) ) (i32.const 3) (i32.const 5) diff --git a/compiler/test/__snapshots__/optimizations.ff6d5bfb.0.snapshot b/compiler/test/__snapshots__/optimizations.ff6d5bfb.0.snapshot index c9d5c5591d..ce38e8ba2f 100644 --- a/compiler/test/__snapshots__/optimizations.ff6d5bfb.0.snapshot +++ b/compiler/test/__snapshots__/optimizations.ff6d5bfb.0.snapshot @@ -11,13 +11,13 @@ optimizations › test_dead_branch_elimination_5 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1123 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1126 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1123 (param i32 i32 i32) (result i32))) - (global $y_1111 (mut i32) (i32.const 0)) - (global $x_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1126 (param i32 i32 i32) (result i32))) + (global $y_1114 (mut i32) (i32.const 0)) + (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -50,7 +50,7 @@ optimizations › test_dead_branch_elimination_5 (local.set $0 (block $compile_block.17 (result i32) (block $compile_store.3 - (global.set $x_1110 + (global.set $x_1113 (tuple.extract 0 (tuple.make (block $allocate_tuple.1 (result i32) @@ -75,7 +75,7 @@ optimizations › test_dead_branch_elimination_5 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $x_1110) + (global.get $x_1113) ) ) ) @@ -84,7 +84,7 @@ optimizations › test_dead_branch_elimination_5 ) ) (block $compile_store.6 - (global.set $y_1111 + (global.set $y_1114 (tuple.extract 0 (tuple.make (block $allocate_tuple.4 (result i32) @@ -109,7 +109,7 @@ optimizations › test_dead_branch_elimination_5 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $y_1111) + (global.get $y_1114) ) ) ) @@ -121,14 +121,14 @@ optimizations › test_dead_branch_elimination_5 (local.set $8 (block $MTupleSet.7 (result i32) (i32.store offset=8 - (global.get $x_1110) + (global.get $x_1113) (tuple.extract 0 (tuple.make (i32.const 7) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (i32.load offset=8 - (global.get $x_1110) + (global.get $x_1113) ) ) ) @@ -144,14 +144,14 @@ optimizations › test_dead_branch_elimination_5 (local.set $9 (block $MTupleSet.10 (result i32) (i32.store offset=8 - (global.get $y_1111) + (global.get $y_1114) (tuple.extract 0 (tuple.make (i32.const 9) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (i32.load offset=8 - (global.get $y_1111) + (global.get $y_1114) ) ) ) @@ -170,7 +170,7 @@ optimizations › test_dead_branch_elimination_5 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (i32.load offset=8 - (global.get $x_1110) + (global.get $x_1113) ) ) (call $decRef_0 @@ -190,7 +190,7 @@ optimizations › test_dead_branch_elimination_5 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) (i32.load offset=8 - (global.get $y_1111) + (global.get $y_1114) ) ) (call $decRef_0 @@ -203,10 +203,10 @@ optimizations › test_dead_branch_elimination_5 (block $do_backpatches.15 ) ) - (call $+_1123 + (call $+_1126 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1123) + (global.get $+_1126) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/pattern_matching.0539d13e.0.snapshot b/compiler/test/__snapshots__/pattern_matching.0539d13e.0.snapshot index 2635ce07de..6a8218f23c 100644 --- a/compiler/test/__snapshots__/pattern_matching.0539d13e.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.0539d13e.0.snapshot @@ -11,11 +11,11 @@ pattern matching › record_match_3 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1122 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1125 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1122 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1125 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -57,7 +57,7 @@ pattern matching › record_match_3 ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -143,7 +143,7 @@ pattern matching › record_match_3 ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -311,10 +311,10 @@ pattern matching › record_match_3 ) (br $switch.16_outer (block $compile_block.17 (result i32) - (call $+_1122 + (call $+_1125 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1122) + (global.get $+_1125) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/pattern_matching.05b60a1e.0.snapshot b/compiler/test/__snapshots__/pattern_matching.05b60a1e.0.snapshot index b61e274e5d..3ce1330f64 100644 --- a/compiler/test/__snapshots__/pattern_matching.05b60a1e.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.05b60a1e.0.snapshot @@ -54,7 +54,7 @@ pattern matching › adt_match_deep ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -128,7 +128,7 @@ pattern matching › adt_match_deep ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/pattern_matching.0ad4ac05.0.snapshot b/compiler/test/__snapshots__/pattern_matching.0ad4ac05.0.snapshot index ed52dcde01..caf13400c4 100644 --- a/compiler/test/__snapshots__/pattern_matching.0ad4ac05.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.0ad4ac05.0.snapshot @@ -11,11 +11,11 @@ pattern matching › tuple_match_deep4 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1150 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1153 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1150 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1153 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -1019,10 +1019,10 @@ pattern matching › tuple_match_deep4 (local.set $21 (tuple.extract 0 (tuple.make - (call $+_1150 + (call $+_1153 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1150) + (global.get $+_1153) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1047,10 +1047,10 @@ pattern matching › tuple_match_deep4 (local.set $22 (tuple.extract 0 (tuple.make - (call $+_1150 + (call $+_1153 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1150) + (global.get $+_1153) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1071,10 +1071,10 @@ pattern matching › tuple_match_deep4 (block $do_backpatches.102 ) ) - (call $+_1150 + (call $+_1153 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1150) + (global.get $+_1153) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1095,10 +1095,10 @@ pattern matching › tuple_match_deep4 (local.set $21 (tuple.extract 0 (tuple.make - (call $+_1150 + (call $+_1153 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1150) + (global.get $+_1153) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1119,10 +1119,10 @@ pattern matching › tuple_match_deep4 (block $do_backpatches.97 ) ) - (call $+_1150 + (call $+_1153 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1150) + (global.get $+_1153) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1139,10 +1139,10 @@ pattern matching › tuple_match_deep4 ) (br $switch.94_outer (block $compile_block.96 (result i32) - (call $+_1150 + (call $+_1153 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1150) + (global.get $+_1153) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/pattern_matching.0bb6923e.0.snapshot b/compiler/test/__snapshots__/pattern_matching.0bb6923e.0.snapshot index 6ee3327c1f..9ab3deba89 100644 --- a/compiler/test/__snapshots__/pattern_matching.0bb6923e.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.0bb6923e.0.snapshot @@ -11,11 +11,11 @@ pattern matching › adt_match_4 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1146 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1149 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1146 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1149 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -897,10 +897,10 @@ pattern matching › adt_match_4 (local.set $16 (tuple.extract 0 (tuple.make - (call $+_1146 + (call $+_1149 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1146) + (global.get $+_1149) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -921,10 +921,10 @@ pattern matching › adt_match_4 (block $do_backpatches.85 ) ) - (call $+_1146 + (call $+_1149 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1146) + (global.get $+_1149) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -941,10 +941,10 @@ pattern matching › adt_match_4 ) (br $switch.81_outer (block $compile_block.84 (result i32) - (call $+_1146 + (call $+_1149 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1146) + (global.get $+_1149) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/pattern_matching.0fa61137.0.snapshot b/compiler/test/__snapshots__/pattern_matching.0fa61137.0.snapshot index 1b2dae48f9..027f50fde7 100644 --- a/compiler/test/__snapshots__/pattern_matching.0fa61137.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.0fa61137.0.snapshot @@ -8,9 +8,9 @@ pattern matching › low_level_constant_match_2 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1113 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1116 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1113 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1116 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -188,10 +188,10 @@ pattern matching › low_level_constant_match_2 ) (block $compile_store.24 (local.set $9 - (call $print_1113 + (call $print_1116 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1113) + (global.get $print_1116) ) (local.get $8) ) diff --git a/compiler/test/__snapshots__/pattern_matching.14dc7554.0.snapshot b/compiler/test/__snapshots__/pattern_matching.14dc7554.0.snapshot index ad12a10c0a..3487c02879 100644 --- a/compiler/test/__snapshots__/pattern_matching.14dc7554.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.14dc7554.0.snapshot @@ -54,7 +54,7 @@ pattern matching › record_match_2 ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -173,7 +173,7 @@ pattern matching › record_match_2 ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/pattern_matching.16eb3dbf.0.snapshot b/compiler/test/__snapshots__/pattern_matching.16eb3dbf.0.snapshot index af22347db7..73897ad9d9 100644 --- a/compiler/test/__snapshots__/pattern_matching.16eb3dbf.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.16eb3dbf.0.snapshot @@ -11,11 +11,11 @@ pattern matching › guarded_match_2 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1122 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1125 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1122 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1125 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -267,10 +267,10 @@ pattern matching › guarded_match_2 ) (block $compile_store.20 (local.set $13 - (call $==_1122 + (call $==_1125 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1122) + (global.get $==_1125) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/pattern_matching.25930935.0.snapshot b/compiler/test/__snapshots__/pattern_matching.25930935.0.snapshot index e7d881776b..c1a203b493 100644 --- a/compiler/test/__snapshots__/pattern_matching.25930935.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.25930935.0.snapshot @@ -8,9 +8,9 @@ pattern matching › low_level_constant_match_3 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1113 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1116 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1113 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1116 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -188,10 +188,10 @@ pattern matching › low_level_constant_match_3 ) (block $compile_store.24 (local.set $9 - (call $print_1113 + (call $print_1116 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1113) + (global.get $print_1116) ) (local.get $8) ) diff --git a/compiler/test/__snapshots__/pattern_matching.3722b060.0.snapshot b/compiler/test/__snapshots__/pattern_matching.3722b060.0.snapshot index 56c6b76341..805ef310d5 100644 --- a/compiler/test/__snapshots__/pattern_matching.3722b060.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.3722b060.0.snapshot @@ -11,11 +11,11 @@ pattern matching › tuple_match_deep (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1128 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1131 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1128 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1131 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -415,10 +415,10 @@ pattern matching › tuple_match_deep (local.set $17 (tuple.extract 0 (tuple.make - (call $+_1128 + (call $+_1131 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1128) + (global.get $+_1131) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -443,10 +443,10 @@ pattern matching › tuple_match_deep (local.set $18 (tuple.extract 0 (tuple.make - (call $+_1128 + (call $+_1131 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1128) + (global.get $+_1131) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -467,10 +467,10 @@ pattern matching › tuple_match_deep (block $do_backpatches.32 ) ) - (call $+_1128 + (call $+_1131 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1128) + (global.get $+_1131) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/pattern_matching.46f91987.0.snapshot b/compiler/test/__snapshots__/pattern_matching.46f91987.0.snapshot index 7e9cb83b9c..b4d47de023 100644 --- a/compiler/test/__snapshots__/pattern_matching.46f91987.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.46f91987.0.snapshot @@ -54,7 +54,7 @@ pattern matching › record_match_1 ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -173,7 +173,7 @@ pattern matching › record_match_1 ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/pattern_matching.5ff49e44.0.snapshot b/compiler/test/__snapshots__/pattern_matching.5ff49e44.0.snapshot index 37a6b2ef17..ec210a35cf 100644 --- a/compiler/test/__snapshots__/pattern_matching.5ff49e44.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.5ff49e44.0.snapshot @@ -11,11 +11,11 @@ pattern matching › record_match_4 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1123 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1126 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1123 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1126 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -57,7 +57,7 @@ pattern matching › record_match_4 ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -146,7 +146,7 @@ pattern matching › record_match_4 ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -375,10 +375,10 @@ pattern matching › record_match_4 (local.set $13 (tuple.extract 0 (tuple.make - (call $+_1123 + (call $+_1126 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1123) + (global.get $+_1126) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -399,10 +399,10 @@ pattern matching › record_match_4 (block $do_backpatches.22 ) ) - (call $+_1123 + (call $+_1126 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1123) + (global.get $+_1126) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/pattern_matching.702ed9b0.0.snapshot b/compiler/test/__snapshots__/pattern_matching.702ed9b0.0.snapshot index e7b78f17af..b167a3e174 100644 --- a/compiler/test/__snapshots__/pattern_matching.702ed9b0.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.702ed9b0.0.snapshot @@ -11,11 +11,11 @@ pattern matching › tuple_match_deep6 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1154 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1157 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1154 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1157 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -1133,10 +1133,10 @@ pattern matching › tuple_match_deep6 (local.set $23 (tuple.extract 0 (tuple.make - (call $+_1154 + (call $+_1157 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1154) + (global.get $+_1157) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1161,10 +1161,10 @@ pattern matching › tuple_match_deep6 (local.set $24 (tuple.extract 0 (tuple.make - (call $+_1154 + (call $+_1157 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1154) + (global.get $+_1157) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1185,10 +1185,10 @@ pattern matching › tuple_match_deep6 (block $do_backpatches.108 ) ) - (call $+_1154 + (call $+_1157 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1154) + (global.get $+_1157) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1209,10 +1209,10 @@ pattern matching › tuple_match_deep6 (local.set $23 (tuple.extract 0 (tuple.make - (call $+_1154 + (call $+_1157 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1154) + (global.get $+_1157) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1233,10 +1233,10 @@ pattern matching › tuple_match_deep6 (block $do_backpatches.103 ) ) - (call $+_1154 + (call $+_1157 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1154) + (global.get $+_1157) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1253,10 +1253,10 @@ pattern matching › tuple_match_deep6 ) (br $switch.100_outer (block $compile_block.102 (result i32) - (call $+_1154 + (call $+_1157 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1154) + (global.get $+_1157) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/pattern_matching.79346fef.0.snapshot b/compiler/test/__snapshots__/pattern_matching.79346fef.0.snapshot index 50758cffb7..ccfe29d773 100644 --- a/compiler/test/__snapshots__/pattern_matching.79346fef.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.79346fef.0.snapshot @@ -11,11 +11,11 @@ pattern matching › tuple_match_deep3 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1148 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1151 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1148 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1151 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -962,10 +962,10 @@ pattern matching › tuple_match_deep3 (local.set $20 (tuple.extract 0 (tuple.make - (call $+_1148 + (call $+_1151 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1148) + (global.get $+_1151) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -990,10 +990,10 @@ pattern matching › tuple_match_deep3 (local.set $21 (tuple.extract 0 (tuple.make - (call $+_1148 + (call $+_1151 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1148) + (global.get $+_1151) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1014,10 +1014,10 @@ pattern matching › tuple_match_deep3 (block $do_backpatches.99 ) ) - (call $+_1148 + (call $+_1151 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1148) + (global.get $+_1151) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1038,10 +1038,10 @@ pattern matching › tuple_match_deep3 (local.set $20 (tuple.extract 0 (tuple.make - (call $+_1148 + (call $+_1151 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1148) + (global.get $+_1151) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1062,10 +1062,10 @@ pattern matching › tuple_match_deep3 (block $do_backpatches.94 ) ) - (call $+_1148 + (call $+_1151 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1148) + (global.get $+_1151) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1082,10 +1082,10 @@ pattern matching › tuple_match_deep3 ) (br $switch.91_outer (block $compile_block.93 (result i32) - (call $+_1148 + (call $+_1151 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1148) + (global.get $+_1151) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/pattern_matching.8c0dc67a.0.snapshot b/compiler/test/__snapshots__/pattern_matching.8c0dc67a.0.snapshot index 90c9dbc041..6c7aff5199 100644 --- a/compiler/test/__snapshots__/pattern_matching.8c0dc67a.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.8c0dc67a.0.snapshot @@ -11,11 +11,11 @@ pattern matching › adt_match_1 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1140 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1143 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1140 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1143 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -726,10 +726,10 @@ pattern matching › adt_match_1 (local.set $13 (tuple.extract 0 (tuple.make - (call $+_1140 + (call $+_1143 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1140) + (global.get $+_1143) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -750,10 +750,10 @@ pattern matching › adt_match_1 (block $do_backpatches.76 ) ) - (call $+_1140 + (call $+_1143 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1140) + (global.get $+_1143) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -770,10 +770,10 @@ pattern matching › adt_match_1 ) (br $switch.72_outer (block $compile_block.75 (result i32) - (call $+_1140 + (call $+_1143 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1140) + (global.get $+_1143) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/pattern_matching.9561763b.0.snapshot b/compiler/test/__snapshots__/pattern_matching.9561763b.0.snapshot index ccaf4c26b6..441ff3ce25 100644 --- a/compiler/test/__snapshots__/pattern_matching.9561763b.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.9561763b.0.snapshot @@ -11,11 +11,11 @@ pattern matching › tuple_match_deep2 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1146 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1149 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1146 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1149 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -784,10 +784,10 @@ pattern matching › tuple_match_deep2 (local.set $29 (tuple.extract 0 (tuple.make - (call $+_1146 + (call $+_1149 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1146) + (global.get $+_1149) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -812,10 +812,10 @@ pattern matching › tuple_match_deep2 (local.set $30 (tuple.extract 0 (tuple.make - (call $+_1146 + (call $+_1149 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1146) + (global.get $+_1149) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -840,10 +840,10 @@ pattern matching › tuple_match_deep2 (local.set $31 (tuple.extract 0 (tuple.make - (call $+_1146 + (call $+_1149 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1146) + (global.get $+_1149) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -868,10 +868,10 @@ pattern matching › tuple_match_deep2 (local.set $32 (tuple.extract 0 (tuple.make - (call $+_1146 + (call $+_1149 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1146) + (global.get $+_1149) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -896,10 +896,10 @@ pattern matching › tuple_match_deep2 (local.set $33 (tuple.extract 0 (tuple.make - (call $+_1146 + (call $+_1149 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1146) + (global.get $+_1149) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -920,10 +920,10 @@ pattern matching › tuple_match_deep2 (block $do_backpatches.68 ) ) - (call $+_1146 + (call $+_1149 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1146) + (global.get $+_1149) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/pattern_matching.98756c45.0.snapshot b/compiler/test/__snapshots__/pattern_matching.98756c45.0.snapshot index 665064512c..579f7793fb 100644 --- a/compiler/test/__snapshots__/pattern_matching.98756c45.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.98756c45.0.snapshot @@ -54,7 +54,7 @@ pattern matching › record_match_deep ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -66,7 +66,7 @@ pattern matching › record_match_deep ) (i64.store offset=48 (local.get $0) - (i64.const 68719477847) + (i64.const 68719477850) ) (i64.store offset=56 (local.get $0) @@ -136,7 +136,7 @@ pattern matching › record_match_deep ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -181,7 +181,7 @@ pattern matching › record_match_deep ) (i32.store offset=8 (local.get $0) - (i32.const 2223) + (i32.const 2229) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/pattern_matching.9ffaa7a7.0.snapshot b/compiler/test/__snapshots__/pattern_matching.9ffaa7a7.0.snapshot index e5dc28dc8b..dd644ffc5b 100644 --- a/compiler/test/__snapshots__/pattern_matching.9ffaa7a7.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.9ffaa7a7.0.snapshot @@ -8,9 +8,9 @@ pattern matching › low_level_constant_match_4 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1113 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1116 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1113 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1116 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -188,10 +188,10 @@ pattern matching › low_level_constant_match_4 ) (block $compile_store.24 (local.set $9 - (call $print_1113 + (call $print_1116 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1113) + (global.get $print_1116) ) (local.get $8) ) diff --git a/compiler/test/__snapshots__/pattern_matching.aa8d2963.0.snapshot b/compiler/test/__snapshots__/pattern_matching.aa8d2963.0.snapshot index 53de0596bf..4d88b6ab63 100644 --- a/compiler/test/__snapshots__/pattern_matching.aa8d2963.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.aa8d2963.0.snapshot @@ -11,11 +11,11 @@ pattern matching › guarded_match_4 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1123 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1126 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1123 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1126 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -268,10 +268,10 @@ pattern matching › guarded_match_4 ) (block $compile_store.20 (local.set $13 - (call $==_1123 + (call $==_1126 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1123) + (global.get $==_1126) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -291,10 +291,10 @@ pattern matching › guarded_match_4 (i32.const 31) ) (block $compile_block.21 (result i32) - (call $==_1123 + (call $==_1126 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1123) + (global.get $==_1126) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/pattern_matching.ac58ffc3.0.snapshot b/compiler/test/__snapshots__/pattern_matching.ac58ffc3.0.snapshot index f46040854f..9d6f434c08 100644 --- a/compiler/test/__snapshots__/pattern_matching.ac58ffc3.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.ac58ffc3.0.snapshot @@ -11,11 +11,11 @@ pattern matching › guarded_match_1 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1122 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1125 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1122 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1125 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -267,10 +267,10 @@ pattern matching › guarded_match_1 ) (block $compile_store.20 (local.set $13 - (call $==_1122 + (call $==_1125 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1122) + (global.get $==_1125) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/pattern_matching.b1b060ad.0.snapshot b/compiler/test/__snapshots__/pattern_matching.b1b060ad.0.snapshot index dabe14a734..a47ec1ca2c 100644 --- a/compiler/test/__snapshots__/pattern_matching.b1b060ad.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.b1b060ad.0.snapshot @@ -11,11 +11,11 @@ pattern matching › adt_match_2 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1142 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1145 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1142 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1145 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -783,10 +783,10 @@ pattern matching › adt_match_2 (local.set $14 (tuple.extract 0 (tuple.make - (call $+_1142 + (call $+_1145 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1142) + (global.get $+_1145) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -807,10 +807,10 @@ pattern matching › adt_match_2 (block $do_backpatches.79 ) ) - (call $+_1142 + (call $+_1145 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1142) + (global.get $+_1145) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -827,10 +827,10 @@ pattern matching › adt_match_2 ) (br $switch.75_outer (block $compile_block.78 (result i32) - (call $+_1142 + (call $+_1145 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1142) + (global.get $+_1145) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/pattern_matching.b9db0dd9.0.snapshot b/compiler/test/__snapshots__/pattern_matching.b9db0dd9.0.snapshot index a2ecb80990..b2adc104d9 100644 --- a/compiler/test/__snapshots__/pattern_matching.b9db0dd9.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.b9db0dd9.0.snapshot @@ -11,11 +11,11 @@ pattern matching › guarded_match_3 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1123 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1126 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1123 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1126 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -268,10 +268,10 @@ pattern matching › guarded_match_3 ) (block $compile_store.20 (local.set $13 - (call $==_1123 + (call $==_1126 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1123) + (global.get $==_1126) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -291,10 +291,10 @@ pattern matching › guarded_match_3 (i32.const 31) ) (block $compile_block.21 (result i32) - (call $==_1123 + (call $==_1126 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1123) + (global.get $==_1126) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/pattern_matching.be46eb0e.0.snapshot b/compiler/test/__snapshots__/pattern_matching.be46eb0e.0.snapshot index 6e56bfd794..7ffb90f172 100644 --- a/compiler/test/__snapshots__/pattern_matching.be46eb0e.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.be46eb0e.0.snapshot @@ -8,9 +8,9 @@ pattern matching › low_level_constant_match_1 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1113 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1116 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1113 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1116 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -194,10 +194,10 @@ pattern matching › low_level_constant_match_1 ) (block $compile_store.24 (local.set $9 - (call $print_1113 + (call $print_1116 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1113) + (global.get $print_1116) ) (local.get $8) ) diff --git a/compiler/test/__snapshots__/pattern_matching.c91eac29.0.snapshot b/compiler/test/__snapshots__/pattern_matching.c91eac29.0.snapshot index 4e035dedec..1991b9a2df 100644 --- a/compiler/test/__snapshots__/pattern_matching.c91eac29.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.c91eac29.0.snapshot @@ -11,11 +11,11 @@ pattern matching › adt_match_3 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1144 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1147 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1144 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1147 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -840,10 +840,10 @@ pattern matching › adt_match_3 (local.set $15 (tuple.extract 0 (tuple.make - (call $+_1144 + (call $+_1147 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1144) + (global.get $+_1147) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -864,10 +864,10 @@ pattern matching › adt_match_3 (block $do_backpatches.82 ) ) - (call $+_1144 + (call $+_1147 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1144) + (global.get $+_1147) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -884,10 +884,10 @@ pattern matching › adt_match_3 ) (br $switch.78_outer (block $compile_block.81 (result i32) - (call $+_1144 + (call $+_1147 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1144) + (global.get $+_1147) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/pattern_matching.d048ece0.0.snapshot b/compiler/test/__snapshots__/pattern_matching.d048ece0.0.snapshot index e894e1c952..faf2844a2f 100644 --- a/compiler/test/__snapshots__/pattern_matching.d048ece0.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.d048ece0.0.snapshot @@ -11,11 +11,11 @@ pattern matching › adt_match_5 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1148 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1151 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1148 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1151 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -954,10 +954,10 @@ pattern matching › adt_match_5 (local.set $17 (tuple.extract 0 (tuple.make - (call $+_1148 + (call $+_1151 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1148) + (global.get $+_1151) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -978,10 +978,10 @@ pattern matching › adt_match_5 (block $do_backpatches.88 ) ) - (call $+_1148 + (call $+_1151 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1148) + (global.get $+_1151) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -998,10 +998,10 @@ pattern matching › adt_match_5 ) (br $switch.84_outer (block $compile_block.87 (result i32) - (call $+_1148 + (call $+_1151 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1148) + (global.get $+_1151) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/pattern_matching.e41ad64e.0.snapshot b/compiler/test/__snapshots__/pattern_matching.e41ad64e.0.snapshot index 751133c3da..fd8dd39c05 100644 --- a/compiler/test/__snapshots__/pattern_matching.e41ad64e.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.e41ad64e.0.snapshot @@ -11,11 +11,11 @@ pattern matching › tuple_match_deep5 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1152 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1155 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1152 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1155 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -1076,10 +1076,10 @@ pattern matching › tuple_match_deep5 (local.set $22 (tuple.extract 0 (tuple.make - (call $+_1152 + (call $+_1155 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1152) + (global.get $+_1155) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1104,10 +1104,10 @@ pattern matching › tuple_match_deep5 (local.set $23 (tuple.extract 0 (tuple.make - (call $+_1152 + (call $+_1155 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1152) + (global.get $+_1155) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1128,10 +1128,10 @@ pattern matching › tuple_match_deep5 (block $do_backpatches.105 ) ) - (call $+_1152 + (call $+_1155 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1152) + (global.get $+_1155) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1152,10 +1152,10 @@ pattern matching › tuple_match_deep5 (local.set $22 (tuple.extract 0 (tuple.make - (call $+_1152 + (call $+_1155 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1152) + (global.get $+_1155) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1176,10 +1176,10 @@ pattern matching › tuple_match_deep5 (block $do_backpatches.100 ) ) - (call $+_1152 + (call $+_1155 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1152) + (global.get $+_1155) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1196,10 +1196,10 @@ pattern matching › tuple_match_deep5 ) (br $switch.97_outer (block $compile_block.99 (result i32) - (call $+_1152 + (call $+_1155 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1152) + (global.get $+_1155) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/pattern_matching.eb4334e1.0.snapshot b/compiler/test/__snapshots__/pattern_matching.eb4334e1.0.snapshot index b1d1003e97..c9ada45a46 100644 --- a/compiler/test/__snapshots__/pattern_matching.eb4334e1.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.eb4334e1.0.snapshot @@ -12,12 +12,12 @@ pattern matching › constant_match_4 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/equal\" \"GRAIN$EXPORT$equal\" (global $GRAIN$EXPORT$equal_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1123 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1126 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/equal\" \"equal\" (func $equal_0 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1123 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1126 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -287,10 +287,10 @@ pattern matching › constant_match_4 ) (block $compile_store.22 (local.set $14 - (call $==_1123 + (call $==_1126 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1123) + (global.get $==_1126) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -383,10 +383,10 @@ pattern matching › constant_match_4 ) (block $compile_store.30 (local.set $16 - (call $==_1123 + (call $==_1126 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1123) + (global.get $==_1126) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/pattern_matching.f0c08ea4.0.snapshot b/compiler/test/__snapshots__/pattern_matching.f0c08ea4.0.snapshot index 641bf3004e..ca70a0a33f 100644 --- a/compiler/test/__snapshots__/pattern_matching.f0c08ea4.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.f0c08ea4.0.snapshot @@ -11,11 +11,11 @@ pattern matching › tuple_match_deep7 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1156 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1159 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1156 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1159 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -1190,10 +1190,10 @@ pattern matching › tuple_match_deep7 (local.set $24 (tuple.extract 0 (tuple.make - (call $+_1156 + (call $+_1159 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1156) + (global.get $+_1159) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1218,10 +1218,10 @@ pattern matching › tuple_match_deep7 (local.set $25 (tuple.extract 0 (tuple.make - (call $+_1156 + (call $+_1159 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1156) + (global.get $+_1159) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1242,10 +1242,10 @@ pattern matching › tuple_match_deep7 (block $do_backpatches.111 ) ) - (call $+_1156 + (call $+_1159 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1156) + (global.get $+_1159) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1266,10 +1266,10 @@ pattern matching › tuple_match_deep7 (local.set $24 (tuple.extract 0 (tuple.make - (call $+_1156 + (call $+_1159 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1156) + (global.get $+_1159) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1290,10 +1290,10 @@ pattern matching › tuple_match_deep7 (block $do_backpatches.106 ) ) - (call $+_1156 + (call $+_1159 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1156) + (global.get $+_1159) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -1310,10 +1310,10 @@ pattern matching › tuple_match_deep7 ) (br $switch.103_outer (block $compile_block.105 (result i32) - (call $+_1156 + (call $+_1159 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1156) + (global.get $+_1159) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/provides.0ef7e7b3.0.snapshot b/compiler/test/__snapshots__/provides.0ef7e7b3.0.snapshot index c42faaf7c0..076a7a5c8a 100644 --- a/compiler/test/__snapshots__/provides.0ef7e7b3.0.snapshot +++ b/compiler/test/__snapshots__/provides.0ef7e7b3.0.snapshot @@ -8,7 +8,7 @@ provides › provide7 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1119 (mut i32))) + (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1122 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) @@ -39,7 +39,7 @@ provides › provide7 (block $compile_block.1 (result i32) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $x_1119) + (global.get $x_1122) ) ) ) diff --git a/compiler/test/__snapshots__/provides.10f4f118.0.snapshot b/compiler/test/__snapshots__/provides.10f4f118.0.snapshot index f4bb29c75a..af9ea44a12 100644 --- a/compiler/test/__snapshots__/provides.10f4f118.0.snapshot +++ b/compiler/test/__snapshots__/provides.10f4f118.0.snapshot @@ -8,10 +8,10 @@ provides › provide9 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$z\" (global $z_1120 (mut i32))) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$y\" (global $y_1119 (mut i32))) + (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$z\" (global $z_1123 (mut i32))) + (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$y\" (global $y_1122 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$provideAll\" \"y\" (func $y_1119 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$provideAll\" \"y\" (func $y_1122 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,14 +39,14 @@ provides › provide9 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $y_1119 + (call $y_1122 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $y_1119) + (global.get $y_1122) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $z_1120) + (global.get $z_1123) ) ) ) diff --git a/compiler/test/__snapshots__/provides.30cbc409.0.snapshot b/compiler/test/__snapshots__/provides.30cbc409.0.snapshot index 34322b9d58..b09550efe1 100644 --- a/compiler/test/__snapshots__/provides.30cbc409.0.snapshot +++ b/compiler/test/__snapshots__/provides.30cbc409.0.snapshot @@ -11,21 +11,21 @@ provides › provide_start_function (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1114 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1117 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1114 (param i32 i32) (result i32))) - (global $_start_1110 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1117 (param i32 i32) (result i32))) + (global $_start_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) - (export \"_start\" (func $_start_1110)) - (export \"GRAIN$EXPORT$_start\" (global $_start_1110)) + (export \"_start\" (func $_start_1113)) + (export \"GRAIN$EXPORT$_start\" (global $_start_1113)) (export \"_gmain\" (func $_gmain)) (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $_start_1110 (param $0 i32) (result i32) + (func $_start_1113 (param $0 i32) (result i32) (local $1 i32) (local $2 i32) (local $3 i32) @@ -75,10 +75,10 @@ provides › provide_start_function (block $do_backpatches.2 ) ) - (call $print_1114 + (call $print_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1114) + (global.get $print_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -159,10 +159,10 @@ provides › provide_start_function ) ) (drop - (call $print_1114 + (call $print_1117 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1114) + (global.get $print_1117) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -171,7 +171,7 @@ provides › provide_start_function ) ) (block $compile_store.11 - (global.set $_start_1110 + (global.set $_start_1113 (tuple.extract 0 (tuple.make (block $allocate_closure.9 (result i32) @@ -200,14 +200,14 @@ provides › provide_start_function ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $_start_1110) + (global.get $_start_1113) ) ) ) ) (block $do_backpatches.10 (local.set $0 - (global.get $_start_1110) + (global.get $_start_1113) ) ) ) diff --git a/compiler/test/__snapshots__/provides.82c10ab4.0.snapshot b/compiler/test/__snapshots__/provides.82c10ab4.0.snapshot index 6fd67214a2..67f1dcc31c 100644 --- a/compiler/test/__snapshots__/provides.82c10ab4.0.snapshot +++ b/compiler/test/__snapshots__/provides.82c10ab4.0.snapshot @@ -10,21 +10,21 @@ provides › provide12 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1158 (mut i32))) - (import \"GRAIN$MODULE$providedType\" \"GRAIN$EXPORT$apply\" (global $apply_1156 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1161 (mut i32))) + (import \"GRAIN$MODULE$providedType\" \"GRAIN$EXPORT$apply\" (global $apply_1159 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1158 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$providedType\" \"apply\" (func $apply_1156 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1161 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$providedType\" \"apply\" (func $apply_1159 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 1)) - (elem $elem (global.get $relocBase_0) $lam_lambda_1157) + (elem $elem (global.get $relocBase_0) $lam_lambda_1160) (export \"memory\" (memory $0)) (export \"_gmain\" (func $_gmain)) (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $lam_lambda_1157 (param $0 i32) (param $1 i32) (result i32) + (func $lam_lambda_1160 (param $0 i32) (param $1 i32) (result i32) (local $2 i32) (local $3 i32) (local $4 i32) @@ -70,10 +70,10 @@ provides › provide12 (block $do_backpatches.2 ) ) - (call $print_1158 + (call $print_1161 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $print_1158) + (global.get $print_1161) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -169,10 +169,10 @@ provides › provide12 ) ) ) - (call $apply_1156 + (call $apply_1159 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $apply_1156) + (global.get $apply_1159) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/provides.c3bb4eff.0.snapshot b/compiler/test/__snapshots__/provides.c3bb4eff.0.snapshot index 844f95aa1d..a96348871c 100644 --- a/compiler/test/__snapshots__/provides.c3bb4eff.0.snapshot +++ b/compiler/test/__snapshots__/provides.c3bb4eff.0.snapshot @@ -10,13 +10,13 @@ provides › provide8 (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$y\" (global $y_1122 (mut i32))) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1120 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1119 (mut i32))) + (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$y\" (global $y_1125 (mut i32))) + (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1123 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1122 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$provideAll\" \"y\" (func $y_1122 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1119 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$provideAll\" \"y\" (func $y_1125 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1122 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -49,10 +49,10 @@ provides › provide8 (local.set $6 (tuple.extract 0 (tuple.make - (call $y_1122 + (call $y_1125 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $y_1122) + (global.get $y_1125) ) (i32.const 9) ) @@ -66,14 +66,14 @@ provides › provide8 (block $do_backpatches.1 ) ) - (call $+_1119 + (call $+_1122 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1119) + (global.get $+_1122) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $x_1120) + (global.get $x_1123) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/provides.c6bf4567.0.snapshot b/compiler/test/__snapshots__/provides.c6bf4567.0.snapshot index 5a31f483bc..7984bb614a 100644 --- a/compiler/test/__snapshots__/provides.c6bf4567.0.snapshot +++ b/compiler/test/__snapshots__/provides.c6bf4567.0.snapshot @@ -12,17 +12,17 @@ provides › let_rec_provide (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (global $foo_1110 (mut i32) (i32.const 0)) + (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) - (export \"foo\" (func $foo_1110)) - (export \"GRAIN$EXPORT$foo\" (global $foo_1110)) + (export \"foo\" (func $foo_1113)) + (export \"GRAIN$EXPORT$foo\" (global $foo_1113)) (export \"_gmain\" (func $_gmain)) (export \"_gtype_metadata\" (func $_gtype_metadata)) (export \"_start\" (func $_start)) (export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE)) - (func $foo_1110 (param $0 i32) (result i32) + (func $foo_1113 (param $0 i32) (result i32) (local $1 i32) (local $2 i32) (local $3 i32) @@ -72,7 +72,7 @@ provides › let_rec_provide (local.set $0 (block $compile_block.6 (result i32) (block $compile_store.5 - (global.set $foo_1110 + (global.set $foo_1113 (tuple.extract 0 (tuple.make (block $allocate_closure.3 (result i32) @@ -101,14 +101,14 @@ provides › let_rec_provide ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) ) (block $do_backpatches.4 (local.set $0 - (global.get $foo_1110) + (global.get $foo_1113) ) ) ) diff --git a/compiler/test/__snapshots__/provides.f378d570.0.snapshot b/compiler/test/__snapshots__/provides.f378d570.0.snapshot index 5b9d84a783..55ee74c7a6 100644 --- a/compiler/test/__snapshots__/provides.f378d570.0.snapshot +++ b/compiler/test/__snapshots__/provides.f378d570.0.snapshot @@ -8,7 +8,7 @@ provides › provide4 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$onlyXProvided\" \"GRAIN$EXPORT$x\" (global $x_1113 (mut i32))) + (import \"GRAIN$MODULE$onlyXProvided\" \"GRAIN$EXPORT$x\" (global $x_1116 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) @@ -39,7 +39,7 @@ provides › provide4 (block $compile_block.1 (result i32) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $x_1113) + (global.get $x_1116) ) ) ) diff --git a/compiler/test/__snapshots__/records.012b017b.0.snapshot b/compiler/test/__snapshots__/records.012b017b.0.snapshot index 649dc0e342..894d57dce1 100644 --- a/compiler/test/__snapshots__/records.012b017b.0.snapshot +++ b/compiler/test/__snapshots__/records.012b017b.0.snapshot @@ -50,7 +50,7 @@ records › record_spread_2 ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) diff --git a/compiler/test/__snapshots__/records.02742729.0.snapshot b/compiler/test/__snapshots__/records.02742729.0.snapshot index 9f5dd14253..4d7d9f19b9 100644 --- a/compiler/test/__snapshots__/records.02742729.0.snapshot +++ b/compiler/test/__snapshots__/records.02742729.0.snapshot @@ -11,11 +11,11 @@ records › record_get_multiple (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1115 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1118 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1115 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1118 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -57,7 +57,7 @@ records › record_get_multiple ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -133,7 +133,7 @@ records › record_get_multiple ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -199,10 +199,10 @@ records › record_get_multiple (block $do_backpatches.8 ) ) - (call $+_1115 + (call $+_1118 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1115) + (global.get $+_1118) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/records.02af5946.0.snapshot b/compiler/test/__snapshots__/records.02af5946.0.snapshot index 16d32ff935..35821dcb79 100644 --- a/compiler/test/__snapshots__/records.02af5946.0.snapshot +++ b/compiler/test/__snapshots__/records.02af5946.0.snapshot @@ -50,7 +50,7 @@ records › record_definition_trailing ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -111,7 +111,7 @@ records › record_definition_trailing ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/records.2dc39420.0.snapshot b/compiler/test/__snapshots__/records.2dc39420.0.snapshot index 3286bb92ef..66d77f0c43 100644 --- a/compiler/test/__snapshots__/records.2dc39420.0.snapshot +++ b/compiler/test/__snapshots__/records.2dc39420.0.snapshot @@ -50,7 +50,7 @@ records › record_pun ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -111,7 +111,7 @@ records › record_pun ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/records.49dfc6ff.0.snapshot b/compiler/test/__snapshots__/records.49dfc6ff.0.snapshot index 29106b1ae2..de4e8576ee 100644 --- a/compiler/test/__snapshots__/records.49dfc6ff.0.snapshot +++ b/compiler/test/__snapshots__/records.49dfc6ff.0.snapshot @@ -13,7 +13,7 @@ records › record_destruct_1 (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (global $foo_1111 (mut i32) (i32.const 0)) + (global $foo_1114 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -55,7 +55,7 @@ records › record_destruct_1 ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -173,7 +173,7 @@ records › record_destruct_1 ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -207,13 +207,13 @@ records › record_destruct_1 ) ) (block $compile_store.10 - (global.set $foo_1111 + (global.set $foo_1114 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1111) + (global.get $foo_1114) ) ) ) @@ -245,7 +245,7 @@ records › record_destruct_1 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.13 (result i32) - (global.set $foo_1111 + (global.set $foo_1114 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -254,7 +254,7 @@ records › record_destruct_1 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1111) + (global.get $foo_1114) ) ) ) @@ -265,7 +265,7 @@ records › record_destruct_1 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1111) + (global.get $foo_1114) ) ) ) diff --git a/compiler/test/__snapshots__/records.54f5977c.0.snapshot b/compiler/test/__snapshots__/records.54f5977c.0.snapshot index 5a9117cb6c..d2ea12775b 100644 --- a/compiler/test/__snapshots__/records.54f5977c.0.snapshot +++ b/compiler/test/__snapshots__/records.54f5977c.0.snapshot @@ -11,14 +11,14 @@ records › record_destruct_4 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1123 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1126 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1123 (param i32 i32 i32) (result i32))) - (global $bar_1112 (mut i32) (i32.const 0)) - (global $foo_1111 (mut i32) (i32.const 0)) - (global $baz_1113 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1126 (param i32 i32 i32) (result i32))) + (global $bar_1115 (mut i32) (i32.const 0)) + (global $foo_1114 (mut i32) (i32.const 0)) + (global $baz_1116 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -60,7 +60,7 @@ records › record_destruct_4 ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -146,7 +146,7 @@ records › record_destruct_4 ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -177,13 +177,13 @@ records › record_destruct_4 ) ) (block $compile_store.7 - (global.set $foo_1111 + (global.set $foo_1114 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1111) + (global.get $foo_1114) ) ) ) @@ -192,13 +192,13 @@ records › record_destruct_4 ) ) (block $compile_store.9 - (global.set $bar_1112 + (global.set $bar_1115 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $bar_1112) + (global.get $bar_1115) ) ) ) @@ -207,13 +207,13 @@ records › record_destruct_4 ) ) (block $compile_store.11 - (global.set $baz_1113 + (global.set $baz_1116 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $baz_1113) + (global.get $baz_1116) ) ) ) @@ -285,7 +285,7 @@ records › record_destruct_4 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.18 (result i32) - (global.set $baz_1113 + (global.set $baz_1116 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -294,7 +294,7 @@ records › record_destruct_4 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $baz_1113) + (global.get $baz_1116) ) ) ) @@ -307,7 +307,7 @@ records › record_destruct_4 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.19 (result i32) - (global.set $bar_1112 + (global.set $bar_1115 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -316,7 +316,7 @@ records › record_destruct_4 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $bar_1112) + (global.get $bar_1115) ) ) ) @@ -329,7 +329,7 @@ records › record_destruct_4 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.20 (result i32) - (global.set $foo_1111 + (global.set $foo_1114 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -338,7 +338,7 @@ records › record_destruct_4 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1111) + (global.get $foo_1114) ) ) ) @@ -351,18 +351,18 @@ records › record_destruct_4 (local.set $10 (tuple.extract 0 (tuple.make - (call $+_1123 + (call $+_1126 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1123) + (global.get $+_1126) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1111) + (global.get $foo_1114) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $bar_1112) + (global.get $bar_1115) ) ) (call $decRef_0 @@ -375,10 +375,10 @@ records › record_destruct_4 (block $do_backpatches.21 ) ) - (call $+_1123 + (call $+_1126 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1123) + (global.get $+_1126) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -386,7 +386,7 @@ records › record_destruct_4 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $baz_1113) + (global.get $baz_1116) ) ) ) diff --git a/compiler/test/__snapshots__/records.5f340064.0.snapshot b/compiler/test/__snapshots__/records.5f340064.0.snapshot index dc553d693b..754807b644 100644 --- a/compiler/test/__snapshots__/records.5f340064.0.snapshot +++ b/compiler/test/__snapshots__/records.5f340064.0.snapshot @@ -50,7 +50,7 @@ records › record_value_trailing ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -111,7 +111,7 @@ records › record_value_trailing ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/records.60c0a141.0.snapshot b/compiler/test/__snapshots__/records.60c0a141.0.snapshot index a7de4ba953..48adfd37d7 100644 --- a/compiler/test/__snapshots__/records.60c0a141.0.snapshot +++ b/compiler/test/__snapshots__/records.60c0a141.0.snapshot @@ -54,7 +54,7 @@ records › record_recursive_data_definition ) (i64.store offset=24 (local.get $0) - (i64.const 68719477847) + (i64.const 68719477850) ) (i64.store offset=32 (local.get $0) @@ -66,7 +66,7 @@ records › record_recursive_data_definition ) (i64.store offset=48 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=56 (local.get $0) @@ -183,7 +183,7 @@ records › record_recursive_data_definition ) (i32.store offset=8 (local.get $0) - (i32.const 2223) + (i32.const 2229) ) (i32.store offset=12 (local.get $0) @@ -276,7 +276,7 @@ records › record_recursive_data_definition ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/records.60c7acc4.0.snapshot b/compiler/test/__snapshots__/records.60c7acc4.0.snapshot index 99b54565ec..bc5208ca7b 100644 --- a/compiler/test/__snapshots__/records.60c7acc4.0.snapshot +++ b/compiler/test/__snapshots__/records.60c7acc4.0.snapshot @@ -50,7 +50,7 @@ records › record_pun_mixed_trailing ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -119,7 +119,7 @@ records › record_pun_mixed_trailing ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/records.63a951b8.0.snapshot b/compiler/test/__snapshots__/records.63a951b8.0.snapshot index c9f0ebfc50..e293983736 100644 --- a/compiler/test/__snapshots__/records.63a951b8.0.snapshot +++ b/compiler/test/__snapshots__/records.63a951b8.0.snapshot @@ -13,7 +13,7 @@ records › record_destruct_2 (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (global $bar_1111 (mut i32) (i32.const 0)) + (global $bar_1114 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -55,7 +55,7 @@ records › record_destruct_2 ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -173,7 +173,7 @@ records › record_destruct_2 ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -207,13 +207,13 @@ records › record_destruct_2 ) ) (block $compile_store.10 - (global.set $bar_1111 + (global.set $bar_1114 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $bar_1111) + (global.get $bar_1114) ) ) ) @@ -245,7 +245,7 @@ records › record_destruct_2 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.13 (result i32) - (global.set $bar_1111 + (global.set $bar_1114 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -254,7 +254,7 @@ records › record_destruct_2 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $bar_1111) + (global.get $bar_1114) ) ) ) @@ -265,7 +265,7 @@ records › record_destruct_2 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $bar_1111) + (global.get $bar_1114) ) ) ) diff --git a/compiler/test/__snapshots__/records.89d08e01.0.snapshot b/compiler/test/__snapshots__/records.89d08e01.0.snapshot index c0fd0b850e..ff95c1284c 100644 --- a/compiler/test/__snapshots__/records.89d08e01.0.snapshot +++ b/compiler/test/__snapshots__/records.89d08e01.0.snapshot @@ -50,7 +50,7 @@ records › record_pun_trailing ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -111,7 +111,7 @@ records › record_pun_trailing ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/records.98824516.0.snapshot b/compiler/test/__snapshots__/records.98824516.0.snapshot index c067521e71..be49c44e29 100644 --- a/compiler/test/__snapshots__/records.98824516.0.snapshot +++ b/compiler/test/__snapshots__/records.98824516.0.snapshot @@ -13,7 +13,7 @@ records › record_destruct_deep (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (global $foo_1112 (mut i32) (i32.const 0)) + (global $foo_1115 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -55,7 +55,7 @@ records › record_destruct_deep ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -67,7 +67,7 @@ records › record_destruct_deep ) (i64.store offset=48 (local.get $0) - (i64.const 68719477847) + (i64.const 68719477850) ) (i64.store offset=56 (local.get $0) @@ -136,7 +136,7 @@ records › record_destruct_deep ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -181,7 +181,7 @@ records › record_destruct_deep ) (i32.store offset=8 (local.get $0) - (i32.const 2223) + (i32.const 2229) ) (i32.store offset=12 (local.get $0) @@ -207,13 +207,13 @@ records › record_destruct_deep ) ) (block $compile_store.10 - (global.set $foo_1112 + (global.set $foo_1115 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1112) + (global.get $foo_1115) ) ) ) @@ -265,7 +265,7 @@ records › record_destruct_deep (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.15 (result i32) - (global.set $foo_1112 + (global.set $foo_1115 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -274,7 +274,7 @@ records › record_destruct_deep ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1112) + (global.get $foo_1115) ) ) ) @@ -285,7 +285,7 @@ records › record_destruct_deep ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1112) + (global.get $foo_1115) ) ) ) diff --git a/compiler/test/__snapshots__/records.a3299dd2.0.snapshot b/compiler/test/__snapshots__/records.a3299dd2.0.snapshot index e6e40b6770..1925e9ef70 100644 --- a/compiler/test/__snapshots__/records.a3299dd2.0.snapshot +++ b/compiler/test/__snapshots__/records.a3299dd2.0.snapshot @@ -11,13 +11,13 @@ records › record_destruct_3 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1122 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1125 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1122 (param i32 i32 i32) (result i32))) - (global $bar_1112 (mut i32) (i32.const 0)) - (global $foo_1111 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1125 (param i32 i32 i32) (result i32))) + (global $bar_1115 (mut i32) (i32.const 0)) + (global $foo_1114 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -59,7 +59,7 @@ records › record_destruct_3 ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -143,7 +143,7 @@ records › record_destruct_3 ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -174,13 +174,13 @@ records › record_destruct_3 ) ) (block $compile_store.7 - (global.set $foo_1111 + (global.set $foo_1114 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1111) + (global.get $foo_1114) ) ) ) @@ -189,13 +189,13 @@ records › record_destruct_3 ) ) (block $compile_store.9 - (global.set $bar_1112 + (global.set $bar_1115 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $bar_1112) + (global.get $bar_1115) ) ) ) @@ -247,7 +247,7 @@ records › record_destruct_3 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.14 (result i32) - (global.set $bar_1112 + (global.set $bar_1115 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -256,7 +256,7 @@ records › record_destruct_3 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $bar_1112) + (global.get $bar_1115) ) ) ) @@ -269,7 +269,7 @@ records › record_destruct_3 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.15 (result i32) - (global.set $foo_1111 + (global.set $foo_1114 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -278,7 +278,7 @@ records › record_destruct_3 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1111) + (global.get $foo_1114) ) ) ) @@ -287,18 +287,18 @@ records › record_destruct_3 ) ) ) - (call $+_1122 + (call $+_1125 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1122) + (global.get $+_1125) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1111) + (global.get $foo_1114) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $bar_1112) + (global.get $bar_1115) ) ) ) diff --git a/compiler/test/__snapshots__/records.a702778a.0.snapshot b/compiler/test/__snapshots__/records.a702778a.0.snapshot index 4fe3fb9027..02f681ea04 100644 --- a/compiler/test/__snapshots__/records.a702778a.0.snapshot +++ b/compiler/test/__snapshots__/records.a702778a.0.snapshot @@ -54,7 +54,7 @@ records › record_get_multilevel ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -74,7 +74,7 @@ records › record_get_multilevel ) (i64.store offset=64 (local.get $0) - (i64.const 68719477847) + (i64.const 68719477850) ) (i64.store offset=72 (local.get $0) @@ -142,7 +142,7 @@ records › record_get_multilevel ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -191,7 +191,7 @@ records › record_get_multilevel ) (i32.store offset=8 (local.get $0) - (i32.const 2223) + (i32.const 2229) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/records.a9c472b1.0.snapshot b/compiler/test/__snapshots__/records.a9c472b1.0.snapshot index 0ba83ffd23..7920d5ae1d 100644 --- a/compiler/test/__snapshots__/records.a9c472b1.0.snapshot +++ b/compiler/test/__snapshots__/records.a9c472b1.0.snapshot @@ -54,7 +54,7 @@ records › record_multiple_fields_definition_trailing ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -166,7 +166,7 @@ records › record_multiple_fields_definition_trailing ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/records.b50d234d.0.snapshot b/compiler/test/__snapshots__/records.b50d234d.0.snapshot index f666a052d5..06f5657891 100644 --- a/compiler/test/__snapshots__/records.b50d234d.0.snapshot +++ b/compiler/test/__snapshots__/records.b50d234d.0.snapshot @@ -54,7 +54,7 @@ records › record_get_2 ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -120,7 +120,7 @@ records › record_get_2 ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/records.d34c4740.0.snapshot b/compiler/test/__snapshots__/records.d34c4740.0.snapshot index ca7e1b0799..cbc5e085fa 100644 --- a/compiler/test/__snapshots__/records.d34c4740.0.snapshot +++ b/compiler/test/__snapshots__/records.d34c4740.0.snapshot @@ -50,7 +50,7 @@ records › record_pun_mixed ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -119,7 +119,7 @@ records › record_pun_mixed ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/records.d393173c.0.snapshot b/compiler/test/__snapshots__/records.d393173c.0.snapshot index 873efd244c..89a3a6e818 100644 --- a/compiler/test/__snapshots__/records.d393173c.0.snapshot +++ b/compiler/test/__snapshots__/records.d393173c.0.snapshot @@ -11,14 +11,14 @@ records › record_destruct_trailing (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1123 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1126 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1123 (param i32 i32 i32) (result i32))) - (global $bar_1112 (mut i32) (i32.const 0)) - (global $foo_1111 (mut i32) (i32.const 0)) - (global $baz_1113 (mut i32) (i32.const 0)) + (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1126 (param i32 i32 i32) (result i32))) + (global $bar_1115 (mut i32) (i32.const 0)) + (global $foo_1114 (mut i32) (i32.const 0)) + (global $baz_1116 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -60,7 +60,7 @@ records › record_destruct_trailing ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -146,7 +146,7 @@ records › record_destruct_trailing ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -177,13 +177,13 @@ records › record_destruct_trailing ) ) (block $compile_store.7 - (global.set $foo_1111 + (global.set $foo_1114 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1111) + (global.get $foo_1114) ) ) ) @@ -192,13 +192,13 @@ records › record_destruct_trailing ) ) (block $compile_store.9 - (global.set $bar_1112 + (global.set $bar_1115 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $bar_1112) + (global.get $bar_1115) ) ) ) @@ -207,13 +207,13 @@ records › record_destruct_trailing ) ) (block $compile_store.11 - (global.set $baz_1113 + (global.set $baz_1116 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $baz_1113) + (global.get $baz_1116) ) ) ) @@ -285,7 +285,7 @@ records › record_destruct_trailing (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.18 (result i32) - (global.set $baz_1113 + (global.set $baz_1116 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -294,7 +294,7 @@ records › record_destruct_trailing ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $baz_1113) + (global.get $baz_1116) ) ) ) @@ -307,7 +307,7 @@ records › record_destruct_trailing (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.19 (result i32) - (global.set $bar_1112 + (global.set $bar_1115 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -316,7 +316,7 @@ records › record_destruct_trailing ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $bar_1112) + (global.get $bar_1115) ) ) ) @@ -329,7 +329,7 @@ records › record_destruct_trailing (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.20 (result i32) - (global.set $foo_1111 + (global.set $foo_1114 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -338,7 +338,7 @@ records › record_destruct_trailing ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $foo_1111) + (global.get $foo_1114) ) ) ) @@ -351,18 +351,18 @@ records › record_destruct_trailing (local.set $10 (tuple.extract 0 (tuple.make - (call $+_1123 + (call $+_1126 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1123) + (global.get $+_1126) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $foo_1111) + (global.get $foo_1114) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $bar_1112) + (global.get $bar_1115) ) ) (call $decRef_0 @@ -375,10 +375,10 @@ records › record_destruct_trailing (block $do_backpatches.21 ) ) - (call $+_1123 + (call $+_1126 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $+_1123) + (global.get $+_1126) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) @@ -386,7 +386,7 @@ records › record_destruct_trailing ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $baz_1113) + (global.get $baz_1116) ) ) ) diff --git a/compiler/test/__snapshots__/records.d44e8007.0.snapshot b/compiler/test/__snapshots__/records.d44e8007.0.snapshot index 3d2beb7cb6..666db8c8cb 100644 --- a/compiler/test/__snapshots__/records.d44e8007.0.snapshot +++ b/compiler/test/__snapshots__/records.d44e8007.0.snapshot @@ -50,7 +50,7 @@ records › record_pun_mixed_2 ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -119,7 +119,7 @@ records › record_pun_mixed_2 ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/records.e4326567.0.snapshot b/compiler/test/__snapshots__/records.e4326567.0.snapshot index 4ccc357e9d..cb9b8f93d8 100644 --- a/compiler/test/__snapshots__/records.e4326567.0.snapshot +++ b/compiler/test/__snapshots__/records.e4326567.0.snapshot @@ -54,7 +54,7 @@ records › record_multiple_fields_both_trailing ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -166,7 +166,7 @@ records › record_multiple_fields_both_trailing ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/records.e5b56da8.0.snapshot b/compiler/test/__snapshots__/records.e5b56da8.0.snapshot index 5337a789f4..8e4ca5abd8 100644 --- a/compiler/test/__snapshots__/records.e5b56da8.0.snapshot +++ b/compiler/test/__snapshots__/records.e5b56da8.0.snapshot @@ -50,7 +50,7 @@ records › record_both_trailing ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -111,7 +111,7 @@ records › record_both_trailing ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/records.e705a980.0.snapshot b/compiler/test/__snapshots__/records.e705a980.0.snapshot index 195f75d2b9..cb97039294 100644 --- a/compiler/test/__snapshots__/records.e705a980.0.snapshot +++ b/compiler/test/__snapshots__/records.e705a980.0.snapshot @@ -50,7 +50,7 @@ records › record_pun_multiple ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -119,7 +119,7 @@ records › record_pun_multiple ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/records.f6e43cdb.0.snapshot b/compiler/test/__snapshots__/records.f6e43cdb.0.snapshot index e5a5499a8d..e1dcc9e342 100644 --- a/compiler/test/__snapshots__/records.f6e43cdb.0.snapshot +++ b/compiler/test/__snapshots__/records.f6e43cdb.0.snapshot @@ -50,7 +50,7 @@ records › record_pun_multiple_trailing ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -119,7 +119,7 @@ records › record_pun_multiple_trailing ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/records.f6feee77.0.snapshot b/compiler/test/__snapshots__/records.f6feee77.0.snapshot index f190c2054b..8239e437c9 100644 --- a/compiler/test/__snapshots__/records.f6feee77.0.snapshot +++ b/compiler/test/__snapshots__/records.f6feee77.0.snapshot @@ -54,7 +54,7 @@ records › record_multiple_fields_value_trailing ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -166,7 +166,7 @@ records › record_multiple_fields_value_trailing ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/records.fae50a8e.0.snapshot b/compiler/test/__snapshots__/records.fae50a8e.0.snapshot index 9910223b8d..88f5972e8d 100644 --- a/compiler/test/__snapshots__/records.fae50a8e.0.snapshot +++ b/compiler/test/__snapshots__/records.fae50a8e.0.snapshot @@ -50,7 +50,7 @@ records › record_pun_mixed_2_trailing ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -119,7 +119,7 @@ records › record_pun_mixed_2_trailing ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) diff --git a/compiler/test/__snapshots__/stdlib.179d20b9.0.snapshot b/compiler/test/__snapshots__/stdlib.179d20b9.0.snapshot index e9e21a97dc..a95c93b999 100644 --- a/compiler/test/__snapshots__/stdlib.179d20b9.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.179d20b9.0.snapshot @@ -9,9 +9,9 @@ stdlib › stdlib_equal_4 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ stdlib › stdlib_equal_4 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (i32.const 3) (i32.const 3) diff --git a/compiler/test/__snapshots__/stdlib.1c0b04b7.0.snapshot b/compiler/test/__snapshots__/stdlib.1c0b04b7.0.snapshot index be8178a51a..b1ea62fed6 100644 --- a/compiler/test/__snapshots__/stdlib.1c0b04b7.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.1c0b04b7.0.snapshot @@ -11,11 +11,11 @@ stdlib › stdlib_equal_20 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1111 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1114 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1111 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -57,7 +57,7 @@ stdlib › stdlib_equal_20 ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -176,7 +176,7 @@ stdlib › stdlib_equal_20 ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -266,7 +266,7 @@ stdlib › stdlib_equal_20 ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -299,10 +299,10 @@ stdlib › stdlib_equal_20 (block $do_backpatches.13 ) ) - (call $==_1111 + (call $==_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1111) + (global.get $==_1114) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/stdlib.24cb9bbf.0.snapshot b/compiler/test/__snapshots__/stdlib.24cb9bbf.0.snapshot index 365e613ce3..41ea57f9da 100644 --- a/compiler/test/__snapshots__/stdlib.24cb9bbf.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.24cb9bbf.0.snapshot @@ -11,11 +11,11 @@ stdlib › stdlib_equal_18 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -113,10 +113,10 @@ stdlib › stdlib_equal_18 (block $do_backpatches.5 ) ) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/stdlib.4a5061c2.0.snapshot b/compiler/test/__snapshots__/stdlib.4a5061c2.0.snapshot index e157ab737b..39208020fd 100644 --- a/compiler/test/__snapshots__/stdlib.4a5061c2.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.4a5061c2.0.snapshot @@ -11,11 +11,11 @@ stdlib › stdlib_equal_19 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1111 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1114 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1111 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -57,7 +57,7 @@ stdlib › stdlib_equal_19 ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -176,7 +176,7 @@ stdlib › stdlib_equal_19 ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -266,7 +266,7 @@ stdlib › stdlib_equal_19 ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -299,10 +299,10 @@ stdlib › stdlib_equal_19 (block $do_backpatches.13 ) ) - (call $==_1111 + (call $==_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1111) + (global.get $==_1114) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/stdlib.5fe88631.0.snapshot b/compiler/test/__snapshots__/stdlib.5fe88631.0.snapshot index 5a493e25b3..1127c0b42e 100644 --- a/compiler/test/__snapshots__/stdlib.5fe88631.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.5fe88631.0.snapshot @@ -11,11 +11,11 @@ stdlib › stdlib_equal_16 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -113,10 +113,10 @@ stdlib › stdlib_equal_16 (block $do_backpatches.5 ) ) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/stdlib.648f406e.0.snapshot b/compiler/test/__snapshots__/stdlib.648f406e.0.snapshot index d62611d935..bc112b716e 100644 --- a/compiler/test/__snapshots__/stdlib.648f406e.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.648f406e.0.snapshot @@ -11,11 +11,11 @@ stdlib › stdlib_equal_12 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -137,10 +137,10 @@ stdlib › stdlib_equal_12 (block $do_backpatches.5 ) ) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/stdlib.69635cff.0.snapshot b/compiler/test/__snapshots__/stdlib.69635cff.0.snapshot index 394255d1c8..7a0069d9c1 100644 --- a/compiler/test/__snapshots__/stdlib.69635cff.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.69635cff.0.snapshot @@ -11,11 +11,11 @@ stdlib › stdlib_equal_21 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1111 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1114 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1111 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -57,7 +57,7 @@ stdlib › stdlib_equal_21 ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -176,7 +176,7 @@ stdlib › stdlib_equal_21 ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -266,7 +266,7 @@ stdlib › stdlib_equal_21 ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -299,10 +299,10 @@ stdlib › stdlib_equal_21 (block $do_backpatches.13 ) ) - (call $==_1111 + (call $==_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1111) + (global.get $==_1114) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/stdlib.6bf88430.0.snapshot b/compiler/test/__snapshots__/stdlib.6bf88430.0.snapshot index 0c62d82cd3..feb3fcf37a 100644 --- a/compiler/test/__snapshots__/stdlib.6bf88430.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.6bf88430.0.snapshot @@ -11,11 +11,11 @@ stdlib › stdlib_equal_15 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -109,10 +109,10 @@ stdlib › stdlib_equal_15 (block $do_backpatches.5 ) ) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/stdlib.6de47be2.0.snapshot b/compiler/test/__snapshots__/stdlib.6de47be2.0.snapshot index e30986a3f8..2112cf67f9 100644 --- a/compiler/test/__snapshots__/stdlib.6de47be2.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.6de47be2.0.snapshot @@ -11,11 +11,11 @@ stdlib › stdlib_equal_14 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -109,10 +109,10 @@ stdlib › stdlib_equal_14 (block $do_backpatches.5 ) ) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/stdlib.8300ad7c.0.snapshot b/compiler/test/__snapshots__/stdlib.8300ad7c.0.snapshot index 81786c494a..6bdca11047 100644 --- a/compiler/test/__snapshots__/stdlib.8300ad7c.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.8300ad7c.0.snapshot @@ -11,11 +11,11 @@ stdlib › stdlib_equal_3 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -477,10 +477,10 @@ stdlib › stdlib_equal_3 (block $do_backpatches.23 ) ) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/stdlib.91a94037.0.snapshot b/compiler/test/__snapshots__/stdlib.91a94037.0.snapshot index c67ee5182a..ff5f5238c7 100644 --- a/compiler/test/__snapshots__/stdlib.91a94037.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.91a94037.0.snapshot @@ -11,11 +11,11 @@ stdlib › stdlib_equal_11 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -117,10 +117,10 @@ stdlib › stdlib_equal_11 (block $do_backpatches.5 ) ) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/stdlib.a70e79ca.0.snapshot b/compiler/test/__snapshots__/stdlib.a70e79ca.0.snapshot index 510d552756..d82254dac3 100644 --- a/compiler/test/__snapshots__/stdlib.a70e79ca.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.a70e79ca.0.snapshot @@ -11,11 +11,11 @@ stdlib › stdlib_equal_9 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -109,10 +109,10 @@ stdlib › stdlib_equal_9 (block $do_backpatches.5 ) ) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/stdlib.b30d7785.0.snapshot b/compiler/test/__snapshots__/stdlib.b30d7785.0.snapshot index dbfbaee009..4075b661fe 100644 --- a/compiler/test/__snapshots__/stdlib.b30d7785.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.b30d7785.0.snapshot @@ -11,11 +11,11 @@ stdlib › stdlib_equal_2 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -121,10 +121,10 @@ stdlib › stdlib_equal_2 (block $do_backpatches.5 ) ) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/stdlib.c09a513a.0.snapshot b/compiler/test/__snapshots__/stdlib.c09a513a.0.snapshot index 58fbe43a0d..dcfadf552e 100644 --- a/compiler/test/__snapshots__/stdlib.c09a513a.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.c09a513a.0.snapshot @@ -9,9 +9,9 @@ stdlib › stdlib_equal_6 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ stdlib › stdlib_equal_6 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (i32.const -2) (i32.const -2) diff --git a/compiler/test/__snapshots__/stdlib.cbf0318e.0.snapshot b/compiler/test/__snapshots__/stdlib.cbf0318e.0.snapshot index 18aa36a099..937b858289 100644 --- a/compiler/test/__snapshots__/stdlib.cbf0318e.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.cbf0318e.0.snapshot @@ -11,11 +11,11 @@ stdlib › stdlib_equal_22 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1111 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1114 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1111 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -57,7 +57,7 @@ stdlib › stdlib_equal_22 ) (i64.store offset=24 (local.get $0) - (i64.const 68719477846) + (i64.const 68719477849) ) (i64.store offset=32 (local.get $0) @@ -176,7 +176,7 @@ stdlib › stdlib_equal_22 ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -266,7 +266,7 @@ stdlib › stdlib_equal_22 ) (i32.store offset=8 (local.get $0) - (i32.const 2221) + (i32.const 2227) ) (i32.store offset=12 (local.get $0) @@ -299,10 +299,10 @@ stdlib › stdlib_equal_22 (block $do_backpatches.13 ) ) - (call $==_1111 + (call $==_1114 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1111) + (global.get $==_1114) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/stdlib.d28dee65.0.snapshot b/compiler/test/__snapshots__/stdlib.d28dee65.0.snapshot index 3fc949b1b1..154660d0f1 100644 --- a/compiler/test/__snapshots__/stdlib.d28dee65.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.d28dee65.0.snapshot @@ -11,11 +11,11 @@ stdlib › stdlib_equal_10 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -113,10 +113,10 @@ stdlib › stdlib_equal_10 (block $do_backpatches.5 ) ) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/stdlib.d4faa5bf.0.snapshot b/compiler/test/__snapshots__/stdlib.d4faa5bf.0.snapshot index f78df31493..a6c4cc218b 100644 --- a/compiler/test/__snapshots__/stdlib.d4faa5bf.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.d4faa5bf.0.snapshot @@ -11,11 +11,11 @@ stdlib › stdlib_equal_13 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -105,10 +105,10 @@ stdlib › stdlib_equal_13 (block $do_backpatches.5 ) ) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/stdlib.d887bb04.0.snapshot b/compiler/test/__snapshots__/stdlib.d887bb04.0.snapshot index 37828be7dd..c3b02203f1 100644 --- a/compiler/test/__snapshots__/stdlib.d887bb04.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.d887bb04.0.snapshot @@ -9,9 +9,9 @@ stdlib › stdlib_equal_7 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ stdlib › stdlib_equal_7 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (i32.const -2) (i32.const 2147483646) diff --git a/compiler/test/__snapshots__/stdlib.dae8b12a.0.snapshot b/compiler/test/__snapshots__/stdlib.dae8b12a.0.snapshot index 61b7d12309..d5ee106dca 100644 --- a/compiler/test/__snapshots__/stdlib.dae8b12a.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.dae8b12a.0.snapshot @@ -9,9 +9,9 @@ stdlib › stdlib_equal_5 (import \"_genv\" \"relocBase\" (global $relocBase_0 i32)) (import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32)) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -39,10 +39,10 @@ stdlib › stdlib_equal_5 (block $cleanup_locals.2 (result i32) (local.set $0 (block $compile_block.1 (result i32) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (i32.const 3) (i32.const 5) diff --git a/compiler/test/__snapshots__/stdlib.e306600a.0.snapshot b/compiler/test/__snapshots__/stdlib.e306600a.0.snapshot index 9888dcdce3..fb7ad9e9ed 100644 --- a/compiler/test/__snapshots__/stdlib.e306600a.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.e306600a.0.snapshot @@ -11,11 +11,11 @@ stdlib › stdlib_equal_8 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -105,10 +105,10 @@ stdlib › stdlib_equal_8 (block $do_backpatches.5 ) ) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/stdlib.e6349872.0.snapshot b/compiler/test/__snapshots__/stdlib.e6349872.0.snapshot index 854842ca9b..882834ba42 100644 --- a/compiler/test/__snapshots__/stdlib.e6349872.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.e6349872.0.snapshot @@ -11,11 +11,11 @@ stdlib › stdlib_equal_17 (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -113,10 +113,10 @@ stdlib › stdlib_equal_17 (block $do_backpatches.5 ) ) - (call $==_1110 + (call $==_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $==_1110) + (global.get $==_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/strings.fb85549f.0.snapshot b/compiler/test/__snapshots__/strings.fb85549f.0.snapshot index abe10c8006..c0e2752eb4 100644 --- a/compiler/test/__snapshots__/strings.fb85549f.0.snapshot +++ b/compiler/test/__snapshots__/strings.fb85549f.0.snapshot @@ -11,11 +11,11 @@ strings › concat (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$++\" (global $++_1110 (mut i32))) + (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$++\" (global $++_1113 (mut i32))) (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"++\" (func $++_1110 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives\" \"++\" (func $++_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -113,10 +113,10 @@ strings › concat (block $do_backpatches.5 ) ) - (call $++_1110 + (call $++_1113 (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $++_1110) + (global.get $++_1113) ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) diff --git a/compiler/test/__snapshots__/tuples.1451773e.0.snapshot b/compiler/test/__snapshots__/tuples.1451773e.0.snapshot index dfcc3888a4..e3a572aebb 100644 --- a/compiler/test/__snapshots__/tuples.1451773e.0.snapshot +++ b/compiler/test/__snapshots__/tuples.1451773e.0.snapshot @@ -13,10 +13,10 @@ tuples › nested_tup_3 (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (global $b_1113 (mut i32) (i32.const 0)) - (global $a_1112 (mut i32) (i32.const 0)) - (global $y_1111 (mut i32) (i32.const 0)) - (global $x_1110 (mut i32) (i32.const 0)) + (global $b_1116 (mut i32) (i32.const 0)) + (global $a_1115 (mut i32) (i32.const 0)) + (global $y_1114 (mut i32) (i32.const 0)) + (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -173,13 +173,13 @@ tuples › nested_tup_3 ) ) (block $compile_store.11 - (global.set $x_1110 + (global.set $x_1113 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $x_1110) + (global.get $x_1113) ) ) ) @@ -188,13 +188,13 @@ tuples › nested_tup_3 ) ) (block $compile_store.13 - (global.set $y_1111 + (global.set $y_1114 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $y_1111) + (global.get $y_1114) ) ) ) @@ -246,7 +246,7 @@ tuples › nested_tup_3 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.18 (result i32) - (global.set $y_1111 + (global.set $y_1114 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -255,7 +255,7 @@ tuples › nested_tup_3 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $y_1111) + (global.get $y_1114) ) ) ) @@ -268,7 +268,7 @@ tuples › nested_tup_3 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.19 (result i32) - (global.set $x_1110 + (global.set $x_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -277,7 +277,7 @@ tuples › nested_tup_3 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $x_1110) + (global.get $x_1113) ) ) ) @@ -292,7 +292,7 @@ tuples › nested_tup_3 (tuple.make (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $y_1111) + (global.get $y_1114) ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) @@ -305,13 +305,13 @@ tuples › nested_tup_3 ) ) (block $compile_store.23 - (global.set $a_1112 + (global.set $a_1115 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $a_1112) + (global.get $a_1115) ) ) ) @@ -320,13 +320,13 @@ tuples › nested_tup_3 ) ) (block $compile_store.25 - (global.set $b_1113 + (global.set $b_1116 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1113) + (global.get $b_1116) ) ) ) @@ -378,7 +378,7 @@ tuples › nested_tup_3 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.30 (result i32) - (global.set $b_1113 + (global.set $b_1116 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -387,7 +387,7 @@ tuples › nested_tup_3 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1113) + (global.get $b_1116) ) ) ) @@ -400,7 +400,7 @@ tuples › nested_tup_3 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.31 (result i32) - (global.set $a_1112 + (global.set $a_1115 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -409,7 +409,7 @@ tuples › nested_tup_3 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $a_1112) + (global.get $a_1115) ) ) ) @@ -420,7 +420,7 @@ tuples › nested_tup_3 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $a_1112) + (global.get $a_1115) ) ) ) diff --git a/compiler/test/__snapshots__/tuples.1d60b40c.0.snapshot b/compiler/test/__snapshots__/tuples.1d60b40c.0.snapshot index b321470476..8b6b516aef 100644 --- a/compiler/test/__snapshots__/tuples.1d60b40c.0.snapshot +++ b/compiler/test/__snapshots__/tuples.1d60b40c.0.snapshot @@ -13,8 +13,8 @@ tuples › nested_tup_1 (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (global $b_1111 (mut i32) (i32.const 0)) - (global $a_1110 (mut i32) (i32.const 0)) + (global $b_1114 (mut i32) (i32.const 0)) + (global $a_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -168,13 +168,13 @@ tuples › nested_tup_1 ) ) (block $compile_store.11 - (global.set $a_1110 + (global.set $a_1113 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $a_1110) + (global.get $a_1113) ) ) ) @@ -183,13 +183,13 @@ tuples › nested_tup_1 ) ) (block $compile_store.13 - (global.set $b_1111 + (global.set $b_1114 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1111) + (global.get $b_1114) ) ) ) @@ -241,7 +241,7 @@ tuples › nested_tup_1 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.18 (result i32) - (global.set $b_1111 + (global.set $b_1114 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -250,7 +250,7 @@ tuples › nested_tup_1 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1111) + (global.get $b_1114) ) ) ) @@ -263,7 +263,7 @@ tuples › nested_tup_1 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.19 (result i32) - (global.set $a_1110 + (global.set $a_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -272,7 +272,7 @@ tuples › nested_tup_1 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $a_1110) + (global.get $a_1113) ) ) ) @@ -283,7 +283,7 @@ tuples › nested_tup_1 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $a_1110) + (global.get $a_1113) ) ) ) diff --git a/compiler/test/__snapshots__/tuples.2c91b91d.0.snapshot b/compiler/test/__snapshots__/tuples.2c91b91d.0.snapshot index a74042af09..e7c098d628 100644 --- a/compiler/test/__snapshots__/tuples.2c91b91d.0.snapshot +++ b/compiler/test/__snapshots__/tuples.2c91b91d.0.snapshot @@ -13,9 +13,9 @@ tuples › tup1_destruct_trailing (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (global $a_1110 (mut i32) (i32.const 0)) - (global $c_1112 (mut i32) (i32.const 0)) - (global $b_1111 (mut i32) (i32.const 0)) + (global $a_1113 (mut i32) (i32.const 0)) + (global $c_1115 (mut i32) (i32.const 0)) + (global $b_1114 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -90,13 +90,13 @@ tuples › tup1_destruct_trailing ) ) (block $compile_store.5 - (global.set $a_1110 + (global.set $a_1113 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $a_1110) + (global.get $a_1113) ) ) ) @@ -105,13 +105,13 @@ tuples › tup1_destruct_trailing ) ) (block $compile_store.7 - (global.set $b_1111 + (global.set $b_1114 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1111) + (global.get $b_1114) ) ) ) @@ -120,13 +120,13 @@ tuples › tup1_destruct_trailing ) ) (block $compile_store.9 - (global.set $c_1112 + (global.set $c_1115 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $c_1112) + (global.get $c_1115) ) ) ) @@ -198,7 +198,7 @@ tuples › tup1_destruct_trailing (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.16 (result i32) - (global.set $c_1112 + (global.set $c_1115 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -207,7 +207,7 @@ tuples › tup1_destruct_trailing ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $c_1112) + (global.get $c_1115) ) ) ) @@ -220,7 +220,7 @@ tuples › tup1_destruct_trailing (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.17 (result i32) - (global.set $b_1111 + (global.set $b_1114 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -229,7 +229,7 @@ tuples › tup1_destruct_trailing ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1111) + (global.get $b_1114) ) ) ) @@ -242,7 +242,7 @@ tuples › tup1_destruct_trailing (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.18 (result i32) - (global.set $a_1110 + (global.set $a_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -251,7 +251,7 @@ tuples › tup1_destruct_trailing ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $a_1110) + (global.get $a_1113) ) ) ) diff --git a/compiler/test/__snapshots__/tuples.a34621a0.0.snapshot b/compiler/test/__snapshots__/tuples.a34621a0.0.snapshot index fdd0f7e227..9db350a18a 100644 --- a/compiler/test/__snapshots__/tuples.a34621a0.0.snapshot +++ b/compiler/test/__snapshots__/tuples.a34621a0.0.snapshot @@ -13,10 +13,10 @@ tuples › big_tup_access (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (global $a_1110 (mut i32) (i32.const 0)) - (global $d_1113 (mut i32) (i32.const 0)) - (global $c_1112 (mut i32) (i32.const 0)) - (global $b_1111 (mut i32) (i32.const 0)) + (global $a_1113 (mut i32) (i32.const 0)) + (global $d_1116 (mut i32) (i32.const 0)) + (global $c_1115 (mut i32) (i32.const 0)) + (global $b_1114 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -96,13 +96,13 @@ tuples › big_tup_access ) ) (block $compile_store.5 - (global.set $a_1110 + (global.set $a_1113 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $a_1110) + (global.get $a_1113) ) ) ) @@ -111,13 +111,13 @@ tuples › big_tup_access ) ) (block $compile_store.7 - (global.set $b_1111 + (global.set $b_1114 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1111) + (global.get $b_1114) ) ) ) @@ -126,13 +126,13 @@ tuples › big_tup_access ) ) (block $compile_store.9 - (global.set $c_1112 + (global.set $c_1115 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $c_1112) + (global.get $c_1115) ) ) ) @@ -141,13 +141,13 @@ tuples › big_tup_access ) ) (block $compile_store.11 - (global.set $d_1113 + (global.set $d_1116 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $d_1113) + (global.get $d_1116) ) ) ) @@ -239,7 +239,7 @@ tuples › big_tup_access (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.20 (result i32) - (global.set $d_1113 + (global.set $d_1116 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -248,7 +248,7 @@ tuples › big_tup_access ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $d_1113) + (global.get $d_1116) ) ) ) @@ -261,7 +261,7 @@ tuples › big_tup_access (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.21 (result i32) - (global.set $c_1112 + (global.set $c_1115 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -270,7 +270,7 @@ tuples › big_tup_access ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $c_1112) + (global.get $c_1115) ) ) ) @@ -283,7 +283,7 @@ tuples › big_tup_access (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.22 (result i32) - (global.set $b_1111 + (global.set $b_1114 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -292,7 +292,7 @@ tuples › big_tup_access ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1111) + (global.get $b_1114) ) ) ) @@ -305,7 +305,7 @@ tuples › big_tup_access (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.23 (result i32) - (global.set $a_1110 + (global.set $a_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -314,7 +314,7 @@ tuples › big_tup_access ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $a_1110) + (global.get $a_1113) ) ) ) @@ -325,7 +325,7 @@ tuples › big_tup_access ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $c_1112) + (global.get $c_1115) ) ) ) diff --git a/compiler/test/__snapshots__/tuples.c1eb0a50.0.snapshot b/compiler/test/__snapshots__/tuples.c1eb0a50.0.snapshot index 5cc914590b..7ddfb5dde5 100644 --- a/compiler/test/__snapshots__/tuples.c1eb0a50.0.snapshot +++ b/compiler/test/__snapshots__/tuples.c1eb0a50.0.snapshot @@ -13,10 +13,10 @@ tuples › nested_tup_2 (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) - (global $a_1110 (mut i32) (i32.const 0)) - (global $d_1113 (mut i32) (i32.const 0)) - (global $c_1112 (mut i32) (i32.const 0)) - (global $b_1111 (mut i32) (i32.const 0)) + (global $a_1113 (mut i32) (i32.const 0)) + (global $d_1116 (mut i32) (i32.const 0)) + (global $c_1115 (mut i32) (i32.const 0)) + (global $b_1114 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (elem $elem (global.get $relocBase_0)) (export \"memory\" (memory $0)) @@ -173,13 +173,13 @@ tuples › nested_tup_2 ) ) (block $compile_store.11 - (global.set $a_1110 + (global.set $a_1113 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $a_1110) + (global.get $a_1113) ) ) ) @@ -188,13 +188,13 @@ tuples › nested_tup_2 ) ) (block $compile_store.13 - (global.set $b_1111 + (global.set $b_1114 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1111) + (global.get $b_1114) ) ) ) @@ -246,7 +246,7 @@ tuples › nested_tup_2 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.18 (result i32) - (global.set $b_1111 + (global.set $b_1114 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -255,7 +255,7 @@ tuples › nested_tup_2 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $b_1111) + (global.get $b_1114) ) ) ) @@ -268,7 +268,7 @@ tuples › nested_tup_2 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.19 (result i32) - (global.set $a_1110 + (global.set $a_1113 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -277,7 +277,7 @@ tuples › nested_tup_2 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $a_1110) + (global.get $a_1113) ) ) ) @@ -292,7 +292,7 @@ tuples › nested_tup_2 (tuple.make (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $b_1111) + (global.get $b_1114) ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) @@ -305,13 +305,13 @@ tuples › nested_tup_2 ) ) (block $compile_store.23 - (global.set $c_1112 + (global.set $c_1115 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $c_1112) + (global.get $c_1115) ) ) ) @@ -320,13 +320,13 @@ tuples › nested_tup_2 ) ) (block $compile_store.25 - (global.set $d_1113 + (global.set $d_1116 (tuple.extract 0 (tuple.make (i32.const 0) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $d_1113) + (global.get $d_1116) ) ) ) @@ -378,7 +378,7 @@ tuples › nested_tup_2 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.30 (result i32) - (global.set $d_1113 + (global.set $d_1116 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -387,7 +387,7 @@ tuples › nested_tup_2 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $d_1113) + (global.get $d_1116) ) ) ) @@ -400,7 +400,7 @@ tuples › nested_tup_2 (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) (block $compile_set.31 (result i32) - (global.set $c_1112 + (global.set $c_1115 (tuple.extract 0 (tuple.make (call $incRef_0 @@ -409,7 +409,7 @@ tuples › nested_tup_2 ) (call $decRef_0 (global.get $GRAIN$EXPORT$decRef_0) - (global.get $c_1112) + (global.get $c_1115) ) ) ) @@ -420,7 +420,7 @@ tuples › nested_tup_2 ) (call $incRef_0 (global.get $GRAIN$EXPORT$incRef_0) - (global.get $d_1113) + (global.get $d_1116) ) ) )