diff --git a/compiler/src/codegen/compcore.re b/compiler/src/codegen/compcore.re index 6c07ae0ee6..a645ad5379 100644 --- a/compiler/src/codegen/compcore.re +++ b/compiler/src/codegen/compcore.re @@ -57,26 +57,26 @@ let reloc_base = Ident.create_persistent("relocBase"); let table_size = Ident.create_persistent("GRAIN$TABLE_SIZE"); /* Memory allocation */ -let malloc_mod = "GRAIN$MODULE$runtime/malloc"; +let malloc_mod = "GRAIN$MODULE$runtime/malloc.gr"; let malloc_ident = Ident.create_persistent("malloc"); let malloc_closure_ident = Ident.create_persistent("GRAIN$EXPORT$malloc"); /* Garbage collection */ -let gc_mod = "GRAIN$MODULE$runtime/gc"; +let gc_mod = "GRAIN$MODULE$runtime/gc.gr"; let incref_ident = Ident.create_persistent("incRef"); let incref_closure_ident = Ident.create_persistent("GRAIN$EXPORT$incRef"); let decref_ident = Ident.create_persistent("decRef"); let decref_closure_ident = Ident.create_persistent("GRAIN$EXPORT$decRef"); /* Exceptions */ -let exception_mod = "GRAIN$MODULE$runtime/exception"; +let exception_mod = "GRAIN$MODULE$runtime/exception.gr"; let panic_with_exception_ident = Ident.create_persistent("panicWithException"); let panic_with_exception_closure_ident = Ident.create_persistent("GRAIN$EXPORT$panicWithException"); /* Equality checking */ -let equal_mod = "GRAIN$MODULE$runtime/equal"; +let equal_mod = "GRAIN$MODULE$runtime/equal.gr"; let equal_ident = Ident.create_persistent("equal"); let equal_closure_ident = Ident.create_persistent("GRAIN$EXPORT$equal"); diff --git a/compiler/src/compile.re b/compiler/src/compile.re index f072adf473..b7e96ae6b2 100644 --- a/compiler/src/compile.re +++ b/compiler/src/compile.re @@ -41,8 +41,7 @@ type error = exception InlineFlagsError(Location.t, error); -let default_output_filename = name => - Filepath.String.remove_extension(name) ++ ".gr.wasm"; +let default_output_filename = name => name ++ ".wasm"; let default_mashtree_filename = name => Filepath.String.remove_extension(name) ++ ".mashtree"; diff --git a/compiler/src/formatting/fmt.re b/compiler/src/formatting/fmt.re index a1751597d9..0ed77044cc 100644 --- a/compiler/src/formatting/fmt.re +++ b/compiler/src/formatting/fmt.re @@ -3214,6 +3214,13 @@ let print_primitive_description = (fmt, {pprim_ident, pprim_name, pprim_loc}) => let print_include_declaration = (fmt, {pinc_path, pinc_module, pinc_alias, pinc_loc}) => { + open Filepath.String; + let path = + if (!is_relpath(pinc_path.txt) && check_suffix(pinc_path.txt, ".gr")) { + chop_suffix(pinc_path.txt, ".gr"); + } else { + pinc_path.txt; + }; string("from") ++ fmt.print_comment_range( fmt, @@ -3224,7 +3231,7 @@ let print_include_declaration = enclosing_start_location(pinc_loc), pinc_path.loc, ) - ++ double_quotes(string(pinc_path.txt)) + ++ double_quotes(string(path)) ++ fmt.print_comment_range( fmt, ~allow_breaks=false, diff --git a/compiler/src/linking/link.re b/compiler/src/linking/link.re index 5e9d6dd74b..7c3e36f720 100644 --- a/compiler/src/linking/link.re +++ b/compiler/src/linking/link.re @@ -31,10 +31,8 @@ let is_grain_module = mod_name => { Str.string_match(Str.regexp_string("GRAIN$MODULE$"), mod_name, 0); }; -let wasi_polyfill_module = () => { - Filepath.String.remove_extension(Option.get(Config.wasi_polyfill_path())) - ++ ".gr.wasm"; -}; +let wasi_polyfill_module = () => + Option.get(Config.wasi_polyfill_path()) ++ ".wasm"; let is_wasi_module = mod_name => { mod_name == "wasi_snapshot_preview1"; diff --git a/compiler/src/middle_end/analyze_inline_wasm.re b/compiler/src/middle_end/analyze_inline_wasm.re index d6008f19f4..9bb2cd543a 100644 --- a/compiler/src/middle_end/analyze_inline_wasm.re +++ b/compiler/src/middle_end/analyze_inline_wasm.re @@ -59,7 +59,7 @@ let analyze = ({imports, body, analyses}) => { mod_has_inlineable_wasm := false; let process_import = ({imp_use_id, imp_desc}) => { switch (imp_desc) { - | GrainValue("runtime/unsafe/memory", name) => + | GrainValue("runtime/unsafe/memory.gr", name) => mod_has_inlineable_wasm := true; switch (get_primitive_memory(name)) { | Some(prim) => set_inlineable_wasm(imp_use_id, prim) diff --git a/compiler/src/middle_end/analyze_manual_memory_management.re b/compiler/src/middle_end/analyze_manual_memory_management.re index 8d7de63a8d..06048f294c 100644 --- a/compiler/src/middle_end/analyze_manual_memory_management.re +++ b/compiler/src/middle_end/analyze_manual_memory_management.re @@ -19,7 +19,7 @@ let analyze = ({imports, body, analyses}) => { mod_has_manual_memory_management := false; let process_import = ({imp_use_id, imp_desc}) => { switch (imp_desc) { - | GrainValue("runtime/unsafe/memory", "incRef" | "decRef") => + | GrainValue("runtime/unsafe/memory.gr", "incRef" | "decRef") => mod_has_manual_memory_management := true; set_manual_call(imp_use_id); | GrainValue(_) diff --git a/compiler/src/parsing/ast_helper.re b/compiler/src/parsing/ast_helper.re index 905c2f6a99..e26bc1ceb6 100644 --- a/compiler/src/parsing/ast_helper.re +++ b/compiler/src/parsing/ast_helper.re @@ -473,12 +473,15 @@ module MatchBranch = { module IncludeDeclaration = { let mk = (~loc, path, module_, alias) => { - { - pinc_alias: alias, - pinc_module: module_, - pinc_path: normalize_string(~loc, path), - pinc_loc: loc, - }; + let path = normalize_string(~loc, path); + let filename = + if (!Grain_utils.Filepath.String.is_relpath(path.txt)) { + path.txt ++ ".gr"; + } else { + path.txt; + }; + let path = {txt: filename, loc: path.loc}; + {pinc_alias: alias, pinc_module: module_, pinc_path: path, pinc_loc: loc}; }; }; diff --git a/compiler/src/parsing/driver.re b/compiler/src/parsing/driver.re index 839e96f800..72cd607514 100644 --- a/compiler/src/parsing/driver.re +++ b/compiler/src/parsing/driver.re @@ -154,8 +154,9 @@ let read_imports = (program: Parsetree.parsed_program) => { List.map( o => { switch (o) { - | Grain_utils.Config.Pervasives_mod => Location.mknoloc("pervasives") - | Grain_utils.Config.Gc_mod => Location.mknoloc("runtime/gc") + | Grain_utils.Config.Pervasives_mod => + Location.mknoloc("pervasives.gr") + | Grain_utils.Config.Gc_mod => Location.mknoloc("runtime/gc.gr") } }, switch (program.comments) { diff --git a/compiler/src/typed/env.re b/compiler/src/typed/env.re index 8d8b95d28c..e3939d457e 100644 --- a/compiler/src/typed/env.re +++ b/compiler/src/typed/env.re @@ -758,7 +758,14 @@ let check_consistency = ps => ~base_dir=Filepath.String.dirname(ps.ps_filename), name, ); - Consistbl.check(crc_units, resolved_file_name, crc, ps.ps_filename); + Consistbl.check( + crc_units, + // This is a workaround; should address + // TODO(#1843): Investigate CRC behavior + Filepath.String.chop_suffix(resolved_file_name, ".gr"), + crc, + ps.ps_filename, + ); }, ps.ps_crcs, ) @@ -2625,9 +2632,10 @@ let report_error = ppf => alt, ) | Unbound_module(_, modname) => fprintf(ppf, "Unbound module %s", modname) - | No_module_file(m, None) => fprintf(ppf, "Missing file for module %s", m) + | No_module_file(m, None) => + fprintf(ppf, "Missing file for module \"%s\"", m) | No_module_file(m, Some(msg)) => - fprintf(ppf, "Missing file for module %s: %s", m, msg) + fprintf(ppf, "Missing file for module \"%s\": %s", m, msg) | Value_not_found_in_module(_, name, path) => fprintf(ppf, "Unbound value %s in module %s", name, path) | Module_not_found_in_module(_, name, path, None) => diff --git a/compiler/src/typed/module_resolution.re b/compiler/src/typed/module_resolution.re index a2852c3755..5beb4b5371 100644 --- a/compiler/src/typed/module_resolution.re +++ b/compiler/src/typed/module_resolution.re @@ -49,9 +49,7 @@ let read_file_cmi = f => { }; }; -let get_output_name = name => { - Filepath.String.remove_extension(name) ++ ".gr.wasm"; -}; +let get_output_name = name => name ++ ".wasm"; let find_ext_in_dir = (dir, name) => { let fullname = Filepath.String.concat(dir, name); @@ -59,12 +57,14 @@ let find_ext_in_dir = (dir, name) => { fun | [] => None | [ext, ..._] when file_exists(fullname ++ ext) => - Some((fullname ++ ext, dir, name, ext)) + Some((fullname ++ ext, dir, name)) | [_, ...tl] => process_ext(tl); process_ext; }; -let find_in_path_uncap = (~exts=[], base_dir, path, name) => { +let find_in_path_uncap = + (~check_src=false, ~check_wasm=false, base_dir, path, name) => { + let exts = (check_src ? [""] : []) @ (check_wasm ? [".wasm"] : []); let rec try_dir = fun | [] => raise(Not_found) @@ -75,12 +75,7 @@ let find_in_path_uncap = (~exts=[], base_dir, path, name) => { }; }; if (!Filepath.String.is_relative(name) && Fs_access.file_exists(name)) { - ( - name, - Filepath.String.dirname(name), - Filepath.String.(remove_extension(basename(name))), - Filepath.String.extension(name), - ); + (name, Filepath.String.dirname(name), Filepath.String.basename(name)); } else if (Filepath.String.is_relpath(name)) { try_dir([base_dir]); } else { @@ -177,9 +172,14 @@ let resolve_unit = (~search_path=?, ~cache=true, ~base_dir=?, unit_name) => { ) { | (true, Some(res)) => res | _ => - let exts = [".gr", ".gr.wasm"]; - let (_, dir, basename, _) = - find_in_path_uncap(~exts, base_dir, path, unit_name); + let (_, dir, basename) = + find_in_path_uncap( + ~check_src=true, + ~check_wasm=true, + base_dir, + path, + unit_name, + ); if (cache) { log_resolution(unit_name, dir, basename); } else { @@ -202,23 +202,21 @@ let locate_module = (~disable_relpath=false, base_dir, path, unit_name) => { ) { | Some(m) => m | None => - let grain_src_exts = [".gr"]; let (dir, m) = - switch ( - find_in_path_uncap(~exts=[".gr.wasm"], base_dir, path, unit_name) - ) { - | (objpath, dir, basename, ext) => + switch (find_in_path_uncap(~check_wasm=true, base_dir, path, unit_name)) { + | (objpath, dir, basename) => ignore(log_resolution(unit_name, dir, basename)); - switch (find_ext_in_dir(dir, basename, grain_src_exts)) { - | Some((srcpath, _, _, _)) => ( + let file = find_ext_in_dir(dir, basename, [""]); + switch (file) { + | Some((srcpath, _, _)) => ( dir, GrainModule(srcpath, Some(objpath)), ) | None => (dir, WasmModule(objpath)) }; | exception Not_found => - let (srcpath, dir, _, _) = - find_in_path_uncap(~exts=grain_src_exts, base_dir, path, unit_name); + let (srcpath, dir, _) = + find_in_path_uncap(~check_src=true, base_dir, path, unit_name); (dir, GrainModule(srcpath, None)); }; PathTbl.add(current_located_module_cache(), (dir, unit_name), m); @@ -226,6 +224,43 @@ let locate_module = (~disable_relpath=false, base_dir, path, unit_name) => { }; }; +let try_locate_module = + (~disable_relpath=false, base_dir, active_search_path, name, loc) => { + let locate = locate_module(~disable_relpath, base_dir, active_search_path); + Filepath.String.( + try(locate(name)) { + | Not_found => + if (check_suffix(name, ".gr")) { + let no_extension = chop_suffix(name, ".gr"); + switch (locate(no_extension)) { + | exception Not_found => error(No_module_file(loc, name, None)) + | _ => + let name = !is_relpath(name) ? no_extension : name; + error( + No_module_file( + loc, + name, + Some("did you mean \"" ++ no_extension ++ "\"?"), + ), + ); + }; + } else { + switch (locate(name ++ ".gr")) { + | exception Not_found => error(No_module_file(loc, name, None)) + | _ => + error( + No_module_file( + loc, + name, + Some("did you mean \"" ++ name ++ ".gr\"?"), + ), + ) + }; + } + } + ); +}; + type dependency_node = { // dn_unit_name is a hashtable because we may have a situation // where A depends on B and C, and both B and C depend on D. @@ -281,22 +316,12 @@ module Dependency_graph = List.map( name => { let located = - try( - locate_module( - base_dir, - active_search_path, - name.Location.txt, - ) - ) { - | Not_found => - error( - No_module_file( - name.Location.loc, - name.Location.txt, - None, - ), - ) - }; + try_locate_module( + base_dir, + active_search_path, + name.Location.txt, + name.Location.loc, + ); let out_file_name = located_to_out_file_name(located); let existing_dependency = lookup(out_file_name); switch (existing_dependency) { @@ -331,16 +356,12 @@ module Dependency_graph = List.map( ((name, _)) => { let located = - try(locate_module(base_dir, active_search_path, name)) { - | Not_found => - error( - No_module_file( - Location.in_file(dn.dn_file_name), - name, - None, - ), - ) - }; + try_locate_module( + base_dir, + active_search_path, + name, + Location.in_file(dn.dn_file_name), + ); let out_file_name = located_to_out_file_name(located); let existing_dependency = lookup(out_file_name); switch (existing_dependency) { @@ -457,19 +478,14 @@ let locate_module_file = (~loc, ~disable_relpath=false, unit_name) => { let base_dir = Filepath.String.dirname(current_filename^()); let path = Config.module_search_path(); let located = - try(locate_module(~disable_relpath, base_dir, path, unit_name)) { - | Not_found => error(No_module_file(loc, unit_name, None)) - }; + try_locate_module(~disable_relpath, base_dir, path, unit_name, loc); located_to_out_file_name(located); }; let process_dependency = (~loc, ~base_file, unit_name) => { let base_dir = Filepath.String.dirname(base_file); let path = Config.module_search_path(); - let located = - try(locate_module(~disable_relpath=false, base_dir, path, unit_name)) { - | Not_found => error(No_module_file(loc, unit_name, None)) - }; + let located = try_locate_module(base_dir, path, unit_name, loc); let out_file = located_to_out_file_name(located); let current_dep_node = Dependency_graph.lookup_filename(base_file); let existing_dependency = Dependency_graph.lookup_filename(out_file); @@ -553,9 +569,9 @@ let report_error = ppf => ); } | No_module_file(_, m, None) => - fprintf(ppf, "Missing file for module %s", m) + fprintf(ppf, "Missing file for module \"%s\"", m) | No_module_file(_, m, Some(msg)) => - fprintf(ppf, "Missing file for module %s: %s", m, msg); + fprintf(ppf, "Missing file for module \"%s\": %s", m, msg); let () = Location.register_error_of_exn( diff --git a/compiler/src/typed/typemod.re b/compiler/src/typed/typemod.re index a10fa5c44d..b417900844 100644 --- a/compiler/src/typed/typemod.re +++ b/compiler/src/typed/typemod.re @@ -993,8 +993,8 @@ let register_implicit_modules = modules => { m => { let filepath = switch (m) { - | Grain_utils.Config.Pervasives_mod => "pervasives" - | Grain_utils.Config.Gc_mod => "runtime/gc" + | Grain_utils.Config.Pervasives_mod => "pervasives.gr" + | Grain_utils.Config.Gc_mod => "runtime/gc.gr" }; Env.add_import(filepath); }, @@ -1004,7 +1004,7 @@ let register_implicit_modules = modules => { let lookup_implicit_module_spec = m => switch (m) { - | Grain_utils.Config.Pervasives_mod => Some(("Pervasives", "pervasives")) + | Grain_utils.Config.Pervasives_mod => Some(("Pervasives", "pervasives.gr")) | Grain_utils.Config.Gc_mod => None }; diff --git a/compiler/src/utils/filepath.re b/compiler/src/utils/filepath.re index 570d352faf..051eec4247 100644 --- a/compiler/src/utils/filepath.re +++ b/compiler/src/utils/filepath.re @@ -98,6 +98,9 @@ module String = { // TODO(#216): We should consider switching to type safe Fp.t where ever filepaths are used let check_suffix = Filename.check_suffix; + // TODO(#216): We should consider switching to type safe Fp.t where ever filepaths are used + let chop_suffix = Filename.chop_suffix; + // TODO(#216): We should consider switching to type safe Fp.t where ever filepaths are used let extension = Filename.extension; diff --git a/compiler/test/__snapshots__/arrays.0f9e7d37.0.snapshot b/compiler/test/__snapshots__/arrays.0f9e7d37.0.snapshot index 916a236e38..5c42d99064 100644 --- a/compiler/test/__snapshots__/arrays.0f9e7d37.0.snapshot +++ b/compiler/test/__snapshots__/arrays.0f9e7d37.0.snapshot @@ -9,12 +9,12 @@ arrays › array_access (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/exception\" \"GRAIN$EXPORT$panicWithException\" (global $GRAIN$EXPORT$panicWithException_0 (mut i32))) - (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\" \"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/exception\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/exception.gr\" \"GRAIN$EXPORT$panicWithException\" (global $GRAIN$EXPORT$panicWithException_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/exception.gr\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32))) (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -246,5 +246,5 @@ arrays › array_access (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/arrays.1deb7b51.0.snapshot b/compiler/test/__snapshots__/arrays.1deb7b51.0.snapshot index 89ed7b01cb..81a9401365 100644 --- a/compiler/test/__snapshots__/arrays.1deb7b51.0.snapshot +++ b/compiler/test/__snapshots__/arrays.1deb7b51.0.snapshot @@ -9,14 +9,14 @@ arrays › array_access5 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/exception\" \"GRAIN$EXPORT$panicWithException\" (global $GRAIN$EXPORT$panicWithException_0 (mut i32))) - (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$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$runtime/exception.gr\" \"GRAIN$EXPORT$panicWithException\" (global $GRAIN$EXPORT$panicWithException_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/exception.gr\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -261,5 +261,5 @@ arrays › array_access5 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/arrays.24453e6e.0.snapshot b/compiler/test/__snapshots__/arrays.24453e6e.0.snapshot index 8bfcda650e..ef10d9ef05 100644 --- a/compiler/test/__snapshots__/arrays.24453e6e.0.snapshot +++ b/compiler/test/__snapshots__/arrays.24453e6e.0.snapshot @@ -9,8 +9,8 @@ arrays › array1_trailing (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ arrays › array1_trailing (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/arrays.28fcc534.0.snapshot b/compiler/test/__snapshots__/arrays.28fcc534.0.snapshot index 6bda7615bd..2715c0e989 100644 --- a/compiler/test/__snapshots__/arrays.28fcc534.0.snapshot +++ b/compiler/test/__snapshots__/arrays.28fcc534.0.snapshot @@ -9,12 +9,12 @@ arrays › array_access4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/exception\" \"GRAIN$EXPORT$panicWithException\" (global $GRAIN$EXPORT$panicWithException_0 (mut i32))) - (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\" \"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/exception\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/exception.gr\" \"GRAIN$EXPORT$panicWithException\" (global $GRAIN$EXPORT$panicWithException_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/exception.gr\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32))) (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -246,5 +246,5 @@ arrays › array_access4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/arrays.4c8c9f91.0.snapshot b/compiler/test/__snapshots__/arrays.4c8c9f91.0.snapshot index 0fd297f6d9..07accf4261 100644 --- a/compiler/test/__snapshots__/arrays.4c8c9f91.0.snapshot +++ b/compiler/test/__snapshots__/arrays.4c8c9f91.0.snapshot @@ -9,12 +9,12 @@ arrays › array_access2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/exception\" \"GRAIN$EXPORT$panicWithException\" (global $GRAIN$EXPORT$panicWithException_0 (mut i32))) - (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\" \"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/exception\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/exception.gr\" \"GRAIN$EXPORT$panicWithException\" (global $GRAIN$EXPORT$panicWithException_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/exception.gr\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32))) (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -246,5 +246,5 @@ arrays › array_access2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/arrays.6eac4e1f.0.snapshot b/compiler/test/__snapshots__/arrays.6eac4e1f.0.snapshot index a7bd07e1b4..1c5e90059a 100644 --- a/compiler/test/__snapshots__/arrays.6eac4e1f.0.snapshot +++ b/compiler/test/__snapshots__/arrays.6eac4e1f.0.snapshot @@ -9,12 +9,12 @@ arrays › array_access3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/exception\" \"GRAIN$EXPORT$panicWithException\" (global $GRAIN$EXPORT$panicWithException_0 (mut i32))) - (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\" \"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/exception\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/exception.gr\" \"GRAIN$EXPORT$panicWithException\" (global $GRAIN$EXPORT$panicWithException_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/exception.gr\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32))) (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -246,5 +246,5 @@ arrays › array_access3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/arrays.74d79181.0.snapshot b/compiler/test/__snapshots__/arrays.74d79181.0.snapshot index 1422f4ab24..6057c70ddb 100644 --- a/compiler/test/__snapshots__/arrays.74d79181.0.snapshot +++ b/compiler/test/__snapshots__/arrays.74d79181.0.snapshot @@ -9,12 +9,12 @@ arrays › array_access5 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/exception\" \"GRAIN$EXPORT$panicWithException\" (global $GRAIN$EXPORT$panicWithException_0 (mut i32))) - (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\" \"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/exception\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/exception.gr\" \"GRAIN$EXPORT$panicWithException\" (global $GRAIN$EXPORT$panicWithException_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/exception.gr\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32))) (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -246,5 +246,5 @@ arrays › array_access5 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/arrays.9e17b4d1.0.snapshot b/compiler/test/__snapshots__/arrays.9e17b4d1.0.snapshot index 713e53defd..0b5cbf392f 100644 --- a/compiler/test/__snapshots__/arrays.9e17b4d1.0.snapshot +++ b/compiler/test/__snapshots__/arrays.9e17b4d1.0.snapshot @@ -9,8 +9,8 @@ arrays › array3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ arrays › array3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/arrays.b85cb7fc.0.snapshot b/compiler/test/__snapshots__/arrays.b85cb7fc.0.snapshot index d9b4debfaf..8465805fba 100644 --- a/compiler/test/__snapshots__/arrays.b85cb7fc.0.snapshot +++ b/compiler/test/__snapshots__/arrays.b85cb7fc.0.snapshot @@ -9,8 +9,8 @@ arrays › array1_trailing_space (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ arrays › array1_trailing_space (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.00bcbc39.0.snapshot b/compiler/test/__snapshots__/basic_functionality.00bcbc39.0.snapshot index 1c5b244415..9d8c13b275 100644 --- a/compiler/test/__snapshots__/basic_functionality.00bcbc39.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.00bcbc39.0.snapshot @@ -10,12 +10,12 @@ basic functionality › assignment1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$*\" (global $*_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"*\" (func $*_1117 (param i32 i32 i32) (result i32))) (global $t_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -81,5 +81,5 @@ basic functionality › assignment1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.00cfdb2e.0.snapshot b/compiler/test/__snapshots__/basic_functionality.00cfdb2e.0.snapshot index 3009d094a1..a49a9004aa 100644 --- a/compiler/test/__snapshots__/basic_functionality.00cfdb2e.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.00cfdb2e.0.snapshot @@ -31,5 +31,5 @@ basic functionality › binop2.4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.03de4778.0.snapshot b/compiler/test/__snapshots__/basic_functionality.03de4778.0.snapshot index 4bb52cc50d..a41264780b 100644 --- a/compiler/test/__snapshots__/basic_functionality.03de4778.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.03de4778.0.snapshot @@ -31,5 +31,5 @@ basic functionality › neg (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.040643b3.0.snapshot b/compiler/test/__snapshots__/basic_functionality.040643b3.0.snapshot index 0c891d83f8..fa502a6363 100644 --- a/compiler/test/__snapshots__/basic_functionality.040643b3.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.040643b3.0.snapshot @@ -10,10 +10,10 @@ basic functionality › comp5 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$<\" (global $<_1114 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"<\" (func $<_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -63,5 +63,5 @@ basic functionality › comp5 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.06bd2a80.0.snapshot b/compiler/test/__snapshots__/basic_functionality.06bd2a80.0.snapshot index f7eefb4420..b04e355068 100644 --- a/compiler/test/__snapshots__/basic_functionality.06bd2a80.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.06bd2a80.0.snapshot @@ -9,10 +9,10 @@ basic functionality › assignment1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $t_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -60,5 +60,5 @@ basic functionality › assignment1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.0996c5f7.0.snapshot b/compiler/test/__snapshots__/basic_functionality.0996c5f7.0.snapshot index 0d9c6f1de4..03fb611ec9 100644 --- a/compiler/test/__snapshots__/basic_functionality.0996c5f7.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.0996c5f7.0.snapshot @@ -10,10 +10,10 @@ basic functionality › modulo4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $%_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$%\" (global $%_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"%\" (func $%_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › modulo4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.0a230f18.0.snapshot b/compiler/test/__snapshots__/basic_functionality.0a230f18.0.snapshot index 735bf3e229..7c7471c5f7 100644 --- a/compiler/test/__snapshots__/basic_functionality.0a230f18.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.0a230f18.0.snapshot @@ -10,10 +10,10 @@ basic functionality › land4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $&_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$&\" (global $&_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"&\" (func $&_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › land4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.0a2e4afa.0.snapshot b/compiler/test/__snapshots__/basic_functionality.0a2e4afa.0.snapshot index 04ad856a8b..769f499e34 100644 --- a/compiler/test/__snapshots__/basic_functionality.0a2e4afa.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.0a2e4afa.0.snapshot @@ -10,10 +10,10 @@ basic functionality › lxor1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $^_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$^\" (global $^_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"^\" (func $^_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › lxor1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.0c0b170b.0.snapshot b/compiler/test/__snapshots__/basic_functionality.0c0b170b.0.snapshot index 83f0dc4465..64de14494f 100644 --- a/compiler/test/__snapshots__/basic_functionality.0c0b170b.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.0c0b170b.0.snapshot @@ -10,10 +10,10 @@ basic functionality › lor1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $|_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$|\" (global $|_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"|\" (func $|_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › lor1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.0c400bde.0.snapshot b/compiler/test/__snapshots__/basic_functionality.0c400bde.0.snapshot index 9b4fcd91e6..4a853781d1 100644 --- a/compiler/test/__snapshots__/basic_functionality.0c400bde.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.0c400bde.0.snapshot @@ -10,10 +10,10 @@ basic functionality › modulo6 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $%_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$%\" (global $%_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"%\" (func $%_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › modulo6 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.0e812a39.0.snapshot b/compiler/test/__snapshots__/basic_functionality.0e812a39.0.snapshot index db2f582b51..2115166012 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\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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$pervasives\" \"*\" (func $*_1116 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$*\" (global $*_1116 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"*\" (func $*_1116 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ basic functionality › precedence1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.0f79ce35.0.snapshot b/compiler/test/__snapshots__/basic_functionality.0f79ce35.0.snapshot index 1367fed072..e89b48e629 100644 --- a/compiler/test/__snapshots__/basic_functionality.0f79ce35.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.0f79ce35.0.snapshot @@ -10,10 +10,10 @@ basic functionality › comp16 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › comp16 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.10dda088.0.snapshot b/compiler/test/__snapshots__/basic_functionality.10dda088.0.snapshot index 11ab530334..7f57af40e7 100644 --- a/compiler/test/__snapshots__/basic_functionality.10dda088.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.10dda088.0.snapshot @@ -10,10 +10,10 @@ basic functionality › comp3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$>=\" (global $>=_1114 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \">=\" (func $>=_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -63,5 +63,5 @@ basic functionality › comp3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.122e74b0.0.snapshot b/compiler/test/__snapshots__/basic_functionality.122e74b0.0.snapshot index 7aca89a8c9..4dee5038ff 100644 --- a/compiler/test/__snapshots__/basic_functionality.122e74b0.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.122e74b0.0.snapshot @@ -10,12 +10,12 @@ basic functionality › print_line_ending1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$pervasives\" \"GRAIN$EXPORT$print\" (global $print_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$pervasives\" \"print\" (func $print_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$print\" (global $print_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"print\" (func $print_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -108,5 +108,5 @@ basic functionality › print_line_ending1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.125626a9.0.snapshot b/compiler/test/__snapshots__/basic_functionality.125626a9.0.snapshot index 473c09679c..83e00977ef 100644 --- a/compiler/test/__snapshots__/basic_functionality.125626a9.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.125626a9.0.snapshot @@ -10,10 +10,10 @@ basic functionality › orshadow (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1114 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › orshadow (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.13335202.0.snapshot b/compiler/test/__snapshots__/basic_functionality.13335202.0.snapshot index 30dd487aef..84587fc1d5 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\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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$pervasives\" \"*\" (func $*_1115 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$*\" (global $*_1115 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"*\" (func $*_1115 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ basic functionality › precedence2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.1ad0f349.0.snapshot b/compiler/test/__snapshots__/basic_functionality.1ad0f349.0.snapshot index 388e2dd4a7..c2ef4538ae 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\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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$pervasives\" \"%\" (func $%_1116 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$%\" (global $%_1116 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"%\" (func $%_1116 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ basic functionality › precedence3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.1ae16d82.0.snapshot b/compiler/test/__snapshots__/basic_functionality.1ae16d82.0.snapshot index a1be2affe3..553cfec986 100644 --- a/compiler/test/__snapshots__/basic_functionality.1ae16d82.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.1ae16d82.0.snapshot @@ -10,10 +10,10 @@ basic functionality › binop4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $*_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$*\" (global $*_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"*\" (func $*_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › binop4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.1b68c8db.0.snapshot b/compiler/test/__snapshots__/basic_functionality.1b68c8db.0.snapshot index 89bb094e16..7f2a2ac53f 100644 --- a/compiler/test/__snapshots__/basic_functionality.1b68c8db.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.1b68c8db.0.snapshot @@ -10,10 +10,10 @@ basic functionality › lsl1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $<<_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$<<\" (global $<<_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"<<\" (func $<<_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › lsl1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.1bf5759c.0.snapshot b/compiler/test/__snapshots__/basic_functionality.1bf5759c.0.snapshot index 7164df7b59..1b7a917c6b 100644 --- a/compiler/test/__snapshots__/basic_functionality.1bf5759c.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.1bf5759c.0.snapshot @@ -12,18 +12,18 @@ basic functionality › unsafe_wasm_globals (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 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))) + (import \"GRAIN$MODULE$unsafeWasmGlobalsExports.gr\" \"GRAIN$EXPORT$_F64_VAL\" (global $_F64_VAL_1147 (mut f64))) + (import \"GRAIN$MODULE$runtime/debugPrint.gr\" \"GRAIN$EXPORT$printF64\" (global $printF64_1146 (mut i32))) + (import \"GRAIN$MODULE$unsafeWasmGlobalsExports.gr\" \"GRAIN$EXPORT$_F32_VAL\" (global $_F32_VAL_1145 (mut f32))) + (import \"GRAIN$MODULE$runtime/debugPrint.gr\" \"GRAIN$EXPORT$printF32\" (global $printF32_1144 (mut i32))) + (import \"GRAIN$MODULE$unsafeWasmGlobalsExports.gr\" \"GRAIN$EXPORT$_I64_VAL\" (global $_I64_VAL_1143 (mut i64))) + (import \"GRAIN$MODULE$runtime/debugPrint.gr\" \"GRAIN$EXPORT$printI64\" (global $printI64_1142 (mut i32))) + (import \"GRAIN$MODULE$unsafeWasmGlobalsExports.gr\" \"GRAIN$EXPORT$_I32_VAL\" (global $_I32_VAL_1141 (mut i32))) + (import \"GRAIN$MODULE$runtime/debugPrint.gr\" \"GRAIN$EXPORT$printI32\" (global $printI32_1140 (mut i32))) + (import \"GRAIN$MODULE$runtime/debugPrint.gr\" \"printF64\" (func $printF64_1146 (param i32 f64) (result i32))) + (import \"GRAIN$MODULE$runtime/debugPrint.gr\" \"printF32\" (func $printF32_1144 (param i32 f32) (result i32))) + (import \"GRAIN$MODULE$runtime/debugPrint.gr\" \"printI64\" (func $printI64_1142 (param i32 i64) (result i32))) + (import \"GRAIN$MODULE$runtime/debugPrint.gr\" \"printI32\" (func $printI32_1140 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -68,5 +68,5 @@ basic functionality › unsafe_wasm_globals (call $_gmain) ) ) - ;; custom section \"cmi\", size 452 + ;; custom section \"cmi\", size 464 ) diff --git a/compiler/test/__snapshots__/basic_functionality.1d2ec323.0.snapshot b/compiler/test/__snapshots__/basic_functionality.1d2ec323.0.snapshot index 4c8b063a19..495f63c10c 100644 --- a/compiler/test/__snapshots__/basic_functionality.1d2ec323.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.1d2ec323.0.snapshot @@ -10,12 +10,12 @@ basic functionality › comp22 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"isnt\" (func $isnt_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$isnt\" (global $isnt_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"isnt\" (func $isnt_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -256,5 +256,5 @@ basic functionality › comp22 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.1e4b1f39.0.snapshot b/compiler/test/__snapshots__/basic_functionality.1e4b1f39.0.snapshot index 6770604e85..94789aca64 100644 --- a/compiler/test/__snapshots__/basic_functionality.1e4b1f39.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.1e4b1f39.0.snapshot @@ -10,10 +10,10 @@ basic functionality › land1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $&_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$&\" (global $&_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"&\" (func $&_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › land1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.1f787365.0.snapshot b/compiler/test/__snapshots__/basic_functionality.1f787365.0.snapshot index 904ae55018..986208a6d4 100644 --- a/compiler/test/__snapshots__/basic_functionality.1f787365.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.1f787365.0.snapshot @@ -10,12 +10,12 @@ basic functionality › orshort2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$pervasives\" \"GRAIN$EXPORT$print\" (global $print_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$pervasives\" \"print\" (func $print_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$print\" (global $print_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"print\" (func $print_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -84,5 +84,5 @@ basic functionality › orshort2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.20f7581b.0.snapshot b/compiler/test/__snapshots__/basic_functionality.20f7581b.0.snapshot index fcaf00be01..fa4daac8ae 100644 --- a/compiler/test/__snapshots__/basic_functionality.20f7581b.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.20f7581b.0.snapshot @@ -31,5 +31,5 @@ basic functionality › simple_min (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.240ef39e.0.snapshot b/compiler/test/__snapshots__/basic_functionality.240ef39e.0.snapshot index 57cd39c511..1c17d0ea92 100644 --- a/compiler/test/__snapshots__/basic_functionality.240ef39e.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.240ef39e.0.snapshot @@ -10,10 +10,10 @@ basic functionality › comp4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$>\" (global $>_1114 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \">\" (func $>_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -63,5 +63,5 @@ basic functionality › comp4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.2756b429.0.snapshot b/compiler/test/__snapshots__/basic_functionality.2756b429.0.snapshot index cca71d573e..45ec38e56c 100644 --- a/compiler/test/__snapshots__/basic_functionality.2756b429.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.2756b429.0.snapshot @@ -31,5 +31,5 @@ basic functionality › forty (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.27a7e2f7.0.snapshot b/compiler/test/__snapshots__/basic_functionality.27a7e2f7.0.snapshot index 2c3bbab258..09d2177bbb 100644 --- a/compiler/test/__snapshots__/basic_functionality.27a7e2f7.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.27a7e2f7.0.snapshot @@ -9,8 +9,8 @@ basic functionality › bigint_start_pos (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ basic functionality › bigint_start_pos (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.28405f1f.0.snapshot b/compiler/test/__snapshots__/basic_functionality.28405f1f.0.snapshot index 0292d08edd..51680de804 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\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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$pervasives\" \"%\" (func $%_1115 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$%\" (global $%_1115 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"%\" (func $%_1115 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ basic functionality › precedence4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.28bf4c9e.0.snapshot b/compiler/test/__snapshots__/basic_functionality.28bf4c9e.0.snapshot index cea60ba6af..1badc1e797 100644 --- a/compiler/test/__snapshots__/basic_functionality.28bf4c9e.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.28bf4c9e.0.snapshot @@ -10,10 +10,10 @@ basic functionality › binop2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $-_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$-\" (global $-_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"-\" (func $-_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › binop2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.2bcc447b.0.snapshot b/compiler/test/__snapshots__/basic_functionality.2bcc447b.0.snapshot index 44a7341b9b..4751e3e008 100644 --- a/compiler/test/__snapshots__/basic_functionality.2bcc447b.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.2bcc447b.0.snapshot @@ -10,16 +10,16 @@ basic functionality › assert2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/exception\" \"GRAIN$EXPORT$panicWithException\" (global $GRAIN$EXPORT$panicWithException_0 (mut i32))) - (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$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/exception\" \"panicWithException\" (func $panicWithException_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$runtime/exception.gr\" \"GRAIN$EXPORT$panicWithException\" (global $GRAIN$EXPORT$panicWithException_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1116 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1114 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/exception.gr\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1116 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -182,5 +182,5 @@ basic functionality › assert2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.2cb30a54.0.snapshot b/compiler/test/__snapshots__/basic_functionality.2cb30a54.0.snapshot index 249636d054..4fa9e74286 100644 --- a/compiler/test/__snapshots__/basic_functionality.2cb30a54.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.2cb30a54.0.snapshot @@ -9,8 +9,8 @@ basic functionality › bigint_start_neg (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ basic functionality › bigint_start_neg (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.2d7e34cf.0.snapshot b/compiler/test/__snapshots__/basic_functionality.2d7e34cf.0.snapshot index d4030c0de2..c2eea5e422 100644 --- a/compiler/test/__snapshots__/basic_functionality.2d7e34cf.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.2d7e34cf.0.snapshot @@ -31,5 +31,5 @@ basic functionality › and2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.2f2f8795.0.snapshot b/compiler/test/__snapshots__/basic_functionality.2f2f8795.0.snapshot index d45cb85578..e581bc00dc 100644 --- a/compiler/test/__snapshots__/basic_functionality.2f2f8795.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.2f2f8795.0.snapshot @@ -10,10 +10,10 @@ basic functionality › lsl2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $<<_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$<<\" (global $<<_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"<<\" (func $<<_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › lsl2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.2f53324c.0.snapshot b/compiler/test/__snapshots__/basic_functionality.2f53324c.0.snapshot index 0547535028..1239ee169f 100644 --- a/compiler/test/__snapshots__/basic_functionality.2f53324c.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.2f53324c.0.snapshot @@ -10,10 +10,10 @@ basic functionality › comp17 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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_1113 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"isnt\" (func $isnt_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$isnt\" (global $isnt_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"isnt\" (func $isnt_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › comp17 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.2f65c8cf.0.snapshot b/compiler/test/__snapshots__/basic_functionality.2f65c8cf.0.snapshot index 24f9aa3ead..092d80917c 100644 --- a/compiler/test/__snapshots__/basic_functionality.2f65c8cf.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.2f65c8cf.0.snapshot @@ -31,5 +31,5 @@ basic functionality › fals (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.304ca65f.0.snapshot b/compiler/test/__snapshots__/basic_functionality.304ca65f.0.snapshot index c2e431c8b0..e886176edf 100644 --- a/compiler/test/__snapshots__/basic_functionality.304ca65f.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.304ca65f.0.snapshot @@ -31,5 +31,5 @@ basic functionality › oct_neg (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.31e0d562.0.snapshot b/compiler/test/__snapshots__/basic_functionality.31e0d562.0.snapshot index 8e1db2b3c7..0f2002424d 100644 --- a/compiler/test/__snapshots__/basic_functionality.31e0d562.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.31e0d562.0.snapshot @@ -9,8 +9,8 @@ basic functionality › infinity (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -53,5 +53,5 @@ basic functionality › infinity (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.32a8c452.0.snapshot b/compiler/test/__snapshots__/basic_functionality.32a8c452.0.snapshot index 1aae9642be..4e5f9a96d1 100644 --- a/compiler/test/__snapshots__/basic_functionality.32a8c452.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.32a8c452.0.snapshot @@ -10,14 +10,14 @@ basic functionality › complex2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1116 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_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$pervasives\" \"+\" (func $+_1116 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1116 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$print\" (global $print_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1116 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"print\" (func $print_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -98,5 +98,5 @@ basic functionality › complex2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.34dcfbdd.0.snapshot b/compiler/test/__snapshots__/basic_functionality.34dcfbdd.0.snapshot index edee9da318..415f82e64a 100644 --- a/compiler/test/__snapshots__/basic_functionality.34dcfbdd.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.34dcfbdd.0.snapshot @@ -9,8 +9,8 @@ basic functionality › int64_1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -53,5 +53,5 @@ basic functionality › int64_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.3c2ba165.0.snapshot b/compiler/test/__snapshots__/basic_functionality.3c2ba165.0.snapshot index da0f273075..8a1aec8953 100644 --- a/compiler/test/__snapshots__/basic_functionality.3c2ba165.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.3c2ba165.0.snapshot @@ -10,12 +10,12 @@ basic functionality › comp20 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"isnt\" (func $isnt_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$isnt\" (global $isnt_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"isnt\" (func $isnt_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -288,5 +288,5 @@ basic functionality › comp20 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.3e5f990b.0.snapshot b/compiler/test/__snapshots__/basic_functionality.3e5f990b.0.snapshot index 8eb7c39e20..a9c338a911 100644 --- a/compiler/test/__snapshots__/basic_functionality.3e5f990b.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.3e5f990b.0.snapshot @@ -10,10 +10,10 @@ basic functionality › lor3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $|_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$|\" (global $|_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"|\" (func $|_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › lor3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.3edefd23.0.snapshot b/compiler/test/__snapshots__/basic_functionality.3edefd23.0.snapshot index c23356c8d4..ddfe509b36 100644 --- a/compiler/test/__snapshots__/basic_functionality.3edefd23.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.3edefd23.0.snapshot @@ -9,10 +9,10 @@ basic functionality › decr_3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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_1113 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"decr\" (func $decr_1113 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$decr\" (global $decr_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"decr\" (func $decr_1113 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -42,5 +42,5 @@ basic functionality › decr_3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.3ffd0bf3.0.snapshot b/compiler/test/__snapshots__/basic_functionality.3ffd0bf3.0.snapshot index 8a1d10be20..6f2309c3b5 100644 --- a/compiler/test/__snapshots__/basic_functionality.3ffd0bf3.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.3ffd0bf3.0.snapshot @@ -31,5 +31,5 @@ basic functionality › orshort1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.427c6671.0.snapshot b/compiler/test/__snapshots__/basic_functionality.427c6671.0.snapshot index d9fd085660..5c17ed1911 100644 --- a/compiler/test/__snapshots__/basic_functionality.427c6671.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.427c6671.0.snapshot @@ -9,8 +9,8 @@ basic functionality › uint64_1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -49,5 +49,5 @@ basic functionality › uint64_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.448497ab.0.snapshot b/compiler/test/__snapshots__/basic_functionality.448497ab.0.snapshot index c1ea17a79f..e5382a15ad 100644 --- a/compiler/test/__snapshots__/basic_functionality.448497ab.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.448497ab.0.snapshot @@ -31,5 +31,5 @@ basic functionality › binop5 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.46348f36.0.snapshot b/compiler/test/__snapshots__/basic_functionality.46348f36.0.snapshot index f31de3ad22..b9a5451175 100644 --- a/compiler/test/__snapshots__/basic_functionality.46348f36.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.46348f36.0.snapshot @@ -10,12 +10,12 @@ basic functionality › precedence5 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $<_1117 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \">\" (func $>_1114 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$<\" (global $<_1117 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$>\" (global $>_1114 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"<\" (func $<_1117 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \">\" (func $>_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -72,5 +72,5 @@ basic functionality › precedence5 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.48db380c.0.snapshot b/compiler/test/__snapshots__/basic_functionality.48db380c.0.snapshot index 2352ea628e..4ccdf06d54 100644 --- a/compiler/test/__snapshots__/basic_functionality.48db380c.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.48db380c.0.snapshot @@ -31,5 +31,5 @@ basic functionality › if4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.4d1501b9.0.snapshot b/compiler/test/__snapshots__/basic_functionality.4d1501b9.0.snapshot index 43f908793c..cb307d864d 100644 --- a/compiler/test/__snapshots__/basic_functionality.4d1501b9.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.4d1501b9.0.snapshot @@ -9,8 +9,8 @@ basic functionality › nan (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -53,5 +53,5 @@ basic functionality › nan (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.4d6f9417.0.snapshot b/compiler/test/__snapshots__/basic_functionality.4d6f9417.0.snapshot index 2fd0fd4e24..31d7d53853 100644 --- a/compiler/test/__snapshots__/basic_functionality.4d6f9417.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.4d6f9417.0.snapshot @@ -31,5 +31,5 @@ basic functionality › not1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.4f5bd247.0.snapshot b/compiler/test/__snapshots__/basic_functionality.4f5bd247.0.snapshot index 4b23504482..f82cfcf37e 100644 --- a/compiler/test/__snapshots__/basic_functionality.4f5bd247.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.4f5bd247.0.snapshot @@ -9,8 +9,8 @@ basic functionality › heap_number_i64_wrapper (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -53,5 +53,5 @@ basic functionality › heap_number_i64_wrapper (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.52ca8e0e.0.snapshot b/compiler/test/__snapshots__/basic_functionality.52ca8e0e.0.snapshot index 39a01d936d..93b13062b4 100644 --- a/compiler/test/__snapshots__/basic_functionality.52ca8e0e.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.52ca8e0e.0.snapshot @@ -11,14 +11,14 @@ basic functionality › func_shadow (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$print\" (global $print_1118 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"print\" (func $print_1118 (param i32 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)) @@ -257,5 +257,5 @@ basic functionality › func_shadow (call $_gmain) ) ) - ;; custom section \"cmi\", size 323 + ;; custom section \"cmi\", size 329 ) diff --git a/compiler/test/__snapshots__/basic_functionality.565dbeda.0.snapshot b/compiler/test/__snapshots__/basic_functionality.565dbeda.0.snapshot index 62430583a9..f7672143ed 100644 --- a/compiler/test/__snapshots__/basic_functionality.565dbeda.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.565dbeda.0.snapshot @@ -31,5 +31,5 @@ basic functionality › hex_neg (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.5705b20c.0.snapshot b/compiler/test/__snapshots__/basic_functionality.5705b20c.0.snapshot index 3408e96cc4..88dd18289a 100644 --- a/compiler/test/__snapshots__/basic_functionality.5705b20c.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.5705b20c.0.snapshot @@ -10,10 +10,10 @@ basic functionality › modulo5 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $%_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$%\" (global $%_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"%\" (func $%_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › modulo5 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.593b8d63.0.snapshot b/compiler/test/__snapshots__/basic_functionality.593b8d63.0.snapshot index 6d2366ac2c..9c7f095ebe 100644 --- a/compiler/test/__snapshots__/basic_functionality.593b8d63.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.593b8d63.0.snapshot @@ -10,14 +10,14 @@ basic functionality › if_one_sided6 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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 $+_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 $+_1121 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"<\" (func $<_1116 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1121 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$<\" (global $<_1116 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1121 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"<\" (func $<_1116 (param i32 i32 i32) (result i32))) (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -109,5 +109,5 @@ basic functionality › if_one_sided6 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.5b56d472.0.snapshot b/compiler/test/__snapshots__/basic_functionality.5b56d472.0.snapshot index c42bcdb933..51b8bc90e1 100644 --- a/compiler/test/__snapshots__/basic_functionality.5b56d472.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.5b56d472.0.snapshot @@ -31,5 +31,5 @@ basic functionality › and3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.5cd54e52.0.snapshot b/compiler/test/__snapshots__/basic_functionality.5cd54e52.0.snapshot index aefde77d4d..433001e52a 100644 --- a/compiler/test/__snapshots__/basic_functionality.5cd54e52.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.5cd54e52.0.snapshot @@ -31,5 +31,5 @@ basic functionality › or4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.5d973a3e.0.snapshot b/compiler/test/__snapshots__/basic_functionality.5d973a3e.0.snapshot index cb9cc35211..d7e104c370 100644 --- a/compiler/test/__snapshots__/basic_functionality.5d973a3e.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.5d973a3e.0.snapshot @@ -10,10 +10,10 @@ basic functionality › binop6 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $%_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$%\" (global $%_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"%\" (func $%_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › binop6 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.61c58118.0.snapshot b/compiler/test/__snapshots__/basic_functionality.61c58118.0.snapshot index 99d7505d6e..9bc612483e 100644 --- a/compiler/test/__snapshots__/basic_functionality.61c58118.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.61c58118.0.snapshot @@ -10,10 +10,10 @@ basic functionality › block_no_expression (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $f_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -74,5 +74,5 @@ basic functionality › block_no_expression (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.626b2e44.0.snapshot b/compiler/test/__snapshots__/basic_functionality.626b2e44.0.snapshot index 94cbc59596..e882a11ff6 100644 --- a/compiler/test/__snapshots__/basic_functionality.626b2e44.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.626b2e44.0.snapshot @@ -10,14 +10,14 @@ basic functionality › if_one_sided5 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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 $+_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 $+_1121 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"<\" (func $<_1116 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1121 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$<\" (global $<_1116 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1121 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"<\" (func $<_1116 (param i32 i32 i32) (result i32))) (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -106,5 +106,5 @@ basic functionality › if_one_sided5 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.65d36891.0.snapshot b/compiler/test/__snapshots__/basic_functionality.65d36891.0.snapshot index 9944fe993f..063983d6ee 100644 --- a/compiler/test/__snapshots__/basic_functionality.65d36891.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.65d36891.0.snapshot @@ -10,10 +10,10 @@ basic functionality › lor2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $|_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$|\" (global $|_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"|\" (func $|_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › lor2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.67d2cc45.0.snapshot b/compiler/test/__snapshots__/basic_functionality.67d2cc45.0.snapshot index dfdff0ebdd..1137f3d5ea 100644 --- a/compiler/test/__snapshots__/basic_functionality.67d2cc45.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.67d2cc45.0.snapshot @@ -10,10 +10,10 @@ basic functionality › binop3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $-_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$-\" (global $-_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"-\" (func $-_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › binop3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.684b6ecb.0.snapshot b/compiler/test/__snapshots__/basic_functionality.684b6ecb.0.snapshot index 73d206a6e3..1b92c63cce 100644 --- a/compiler/test/__snapshots__/basic_functionality.684b6ecb.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.684b6ecb.0.snapshot @@ -10,10 +10,10 @@ basic functionality › binop2.2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $-_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$-\" (global $-_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"-\" (func $-_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › binop2.2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.68d08483.0.snapshot b/compiler/test/__snapshots__/basic_functionality.68d08483.0.snapshot index f81deaa96a..2d3748e5ca 100644 --- a/compiler/test/__snapshots__/basic_functionality.68d08483.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.68d08483.0.snapshot @@ -10,10 +10,10 @@ basic functionality › land2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $&_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$&\" (global $&_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"&\" (func $&_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › land2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.6f9706c2.0.snapshot b/compiler/test/__snapshots__/basic_functionality.6f9706c2.0.snapshot index ad3ddc2461..37d78e40cf 100644 --- a/compiler/test/__snapshots__/basic_functionality.6f9706c2.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.6f9706c2.0.snapshot @@ -31,5 +31,5 @@ basic functionality › or1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.704872bc.0.snapshot b/compiler/test/__snapshots__/basic_functionality.704872bc.0.snapshot index b8d8d191b1..a3d23bf6ab 100644 --- a/compiler/test/__snapshots__/basic_functionality.704872bc.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.704872bc.0.snapshot @@ -31,5 +31,5 @@ basic functionality › assert1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.711a4824.0.snapshot b/compiler/test/__snapshots__/basic_functionality.711a4824.0.snapshot index c4d815cbf6..89da053f65 100644 --- a/compiler/test/__snapshots__/basic_functionality.711a4824.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.711a4824.0.snapshot @@ -11,14 +11,14 @@ basic functionality › pattern_match_unsafe_wasm (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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_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_1125 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$print\" (global $print_1125 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"print\" (func $print_1125 (param i32 i32 i32) (result i32))) (global $test_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -780,5 +780,5 @@ basic functionality › pattern_match_unsafe_wasm (call $_gmain) ) ) - ;; custom section \"cmi\", size 335 + ;; custom section \"cmi\", size 341 ) diff --git a/compiler/test/__snapshots__/basic_functionality.7222ab37.0.snapshot b/compiler/test/__snapshots__/basic_functionality.7222ab37.0.snapshot index a3a9428f2a..e0428b206e 100644 --- a/compiler/test/__snapshots__/basic_functionality.7222ab37.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.7222ab37.0.snapshot @@ -31,5 +31,5 @@ basic functionality › tru (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.7287219f.0.snapshot b/compiler/test/__snapshots__/basic_functionality.7287219f.0.snapshot index 692f88c0d5..4bd760e022 100644 --- a/compiler/test/__snapshots__/basic_functionality.7287219f.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.7287219f.0.snapshot @@ -10,10 +10,10 @@ basic functionality › asr1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $>>_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$>>\" (global $>>_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \">>\" (func $>>_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › asr1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.7599b5a6.0.snapshot b/compiler/test/__snapshots__/basic_functionality.7599b5a6.0.snapshot index e9d78fe64c..7780eb834f 100644 --- a/compiler/test/__snapshots__/basic_functionality.7599b5a6.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.7599b5a6.0.snapshot @@ -10,12 +10,12 @@ basic functionality › assignment1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1117 (param i32 i32 i32) (result i32))) (global $t_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -81,5 +81,5 @@ basic functionality › assignment1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.7848308f.0.snapshot b/compiler/test/__snapshots__/basic_functionality.7848308f.0.snapshot index c062b93303..d8b50f0c81 100644 --- a/compiler/test/__snapshots__/basic_functionality.7848308f.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.7848308f.0.snapshot @@ -31,5 +31,5 @@ basic functionality › or3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.79ea1ccc.0.snapshot b/compiler/test/__snapshots__/basic_functionality.79ea1ccc.0.snapshot index d9ff108aaf..fe7bedb675 100644 --- a/compiler/test/__snapshots__/basic_functionality.79ea1ccc.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.79ea1ccc.0.snapshot @@ -10,12 +10,12 @@ basic functionality › assignment1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$-\" (global $-_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"-\" (func $-_1117 (param i32 i32 i32) (result i32))) (global $t_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -81,5 +81,5 @@ basic functionality › assignment1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.7b13e79a.0.snapshot b/compiler/test/__snapshots__/basic_functionality.7b13e79a.0.snapshot index 0f05dc1b26..9846e7f963 100644 --- a/compiler/test/__snapshots__/basic_functionality.7b13e79a.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.7b13e79a.0.snapshot @@ -31,5 +31,5 @@ basic functionality › and4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.7bb7b0d4.0.snapshot b/compiler/test/__snapshots__/basic_functionality.7bb7b0d4.0.snapshot index e09d110a39..9af3801dd1 100644 --- a/compiler/test/__snapshots__/basic_functionality.7bb7b0d4.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.7bb7b0d4.0.snapshot @@ -9,8 +9,8 @@ basic functionality › uint32_1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -49,5 +49,5 @@ basic functionality › uint32_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.7beffe4d.0.snapshot b/compiler/test/__snapshots__/basic_functionality.7beffe4d.0.snapshot index 3dd7644fb1..2569fd0a00 100644 --- a/compiler/test/__snapshots__/basic_functionality.7beffe4d.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.7beffe4d.0.snapshot @@ -9,8 +9,8 @@ basic functionality › hex_dec_exp5 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -53,5 +53,5 @@ basic functionality › hex_dec_exp5 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.7ccc4940.0.snapshot b/compiler/test/__snapshots__/basic_functionality.7ccc4940.0.snapshot index 94f23909c7..58ae6d1c85 100644 --- a/compiler/test/__snapshots__/basic_functionality.7ccc4940.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.7ccc4940.0.snapshot @@ -9,8 +9,8 @@ basic functionality › division1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -111,5 +111,5 @@ basic functionality › division1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.7d0640b4.0.snapshot b/compiler/test/__snapshots__/basic_functionality.7d0640b4.0.snapshot index 2b64e14bae..12c9bf825b 100644 --- a/compiler/test/__snapshots__/basic_functionality.7d0640b4.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.7d0640b4.0.snapshot @@ -10,14 +10,14 @@ basic functionality › if_one_sided2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1117 (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$pervasives\" \"print\" (func $print_1117 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \">\" (func $>_1114 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$print\" (global $print_1117 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$>\" (global $>_1114 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"print\" (func $print_1117 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \">\" (func $>_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -109,5 +109,5 @@ basic functionality › if_one_sided2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.83f51526.0.snapshot b/compiler/test/__snapshots__/basic_functionality.83f51526.0.snapshot index f825386913..f5ef5c9a1e 100644 --- a/compiler/test/__snapshots__/basic_functionality.83f51526.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.83f51526.0.snapshot @@ -9,8 +9,8 @@ basic functionality › hex_dec_exp3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -53,5 +53,5 @@ basic functionality › hex_dec_exp3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.86f332c6.0.snapshot b/compiler/test/__snapshots__/basic_functionality.86f332c6.0.snapshot index f337c06f06..367e0dccad 100644 --- a/compiler/test/__snapshots__/basic_functionality.86f332c6.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.86f332c6.0.snapshot @@ -31,5 +31,5 @@ basic functionality › bin_neg (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.8c8313f3.0.snapshot b/compiler/test/__snapshots__/basic_functionality.8c8313f3.0.snapshot index 251f16b7c7..00de501567 100644 --- a/compiler/test/__snapshots__/basic_functionality.8c8313f3.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.8c8313f3.0.snapshot @@ -9,8 +9,8 @@ basic functionality › hex_dec_exp2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -53,5 +53,5 @@ basic functionality › hex_dec_exp2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.8e01d666.0.snapshot b/compiler/test/__snapshots__/basic_functionality.8e01d666.0.snapshot index baa096e254..695ebc2184 100644 --- a/compiler/test/__snapshots__/basic_functionality.8e01d666.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.8e01d666.0.snapshot @@ -9,8 +9,8 @@ basic functionality › infinity_neg (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -53,5 +53,5 @@ basic functionality › infinity_neg (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.903ff701.0.snapshot b/compiler/test/__snapshots__/basic_functionality.903ff701.0.snapshot index 29bd390d21..b5aa226c19 100644 --- a/compiler/test/__snapshots__/basic_functionality.903ff701.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.903ff701.0.snapshot @@ -9,8 +9,8 @@ basic functionality › hex_dec_exp4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -53,5 +53,5 @@ basic functionality › hex_dec_exp4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.9110d0f5.0.snapshot b/compiler/test/__snapshots__/basic_functionality.9110d0f5.0.snapshot index 92a851c9c4..cf73b3e492 100644 --- a/compiler/test/__snapshots__/basic_functionality.9110d0f5.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.9110d0f5.0.snapshot @@ -10,10 +10,10 @@ basic functionality › comp13 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › comp13 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.9157dba1.0.snapshot b/compiler/test/__snapshots__/basic_functionality.9157dba1.0.snapshot index c3934f20a2..1a250c55aa 100644 --- a/compiler/test/__snapshots__/basic_functionality.9157dba1.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.9157dba1.0.snapshot @@ -10,10 +10,10 @@ basic functionality › andshadow (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1114 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › andshadow (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.9379df0d.0.snapshot b/compiler/test/__snapshots__/basic_functionality.9379df0d.0.snapshot index 63e75b63b6..4197e79a8a 100644 --- a/compiler/test/__snapshots__/basic_functionality.9379df0d.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.9379df0d.0.snapshot @@ -9,10 +9,10 @@ basic functionality › comp21 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (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))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -274,5 +274,5 @@ basic functionality › comp21 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.950b8fda.0.snapshot b/compiler/test/__snapshots__/basic_functionality.950b8fda.0.snapshot index 9093acaed4..1bb59889cc 100644 --- a/compiler/test/__snapshots__/basic_functionality.950b8fda.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.950b8fda.0.snapshot @@ -31,5 +31,5 @@ basic functionality › binop2.3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.970a2a2b.0.snapshot b/compiler/test/__snapshots__/basic_functionality.970a2a2b.0.snapshot index 0cc0c57ce8..1b578d1a2a 100644 --- a/compiler/test/__snapshots__/basic_functionality.970a2a2b.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.970a2a2b.0.snapshot @@ -31,5 +31,5 @@ basic functionality › not2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.974b7936.0.snapshot b/compiler/test/__snapshots__/basic_functionality.974b7936.0.snapshot index f431a4271d..c038714210 100644 --- a/compiler/test/__snapshots__/basic_functionality.974b7936.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.974b7936.0.snapshot @@ -10,10 +10,10 @@ basic functionality › lxor3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $^_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$^\" (global $^_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"^\" (func $^_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › lxor3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.994117f8.0.snapshot b/compiler/test/__snapshots__/basic_functionality.994117f8.0.snapshot index b621202966..0d275094f4 100644 --- a/compiler/test/__snapshots__/basic_functionality.994117f8.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.994117f8.0.snapshot @@ -9,10 +9,10 @@ basic functionality › incr_3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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_1113 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"incr\" (func $incr_1113 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$incr\" (global $incr_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"incr\" (func $incr_1113 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -42,5 +42,5 @@ basic functionality › incr_3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.9b9c7047.0.snapshot b/compiler/test/__snapshots__/basic_functionality.9b9c7047.0.snapshot index 0ac910f685..ec2a37ba49 100644 --- a/compiler/test/__snapshots__/basic_functionality.9b9c7047.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.9b9c7047.0.snapshot @@ -9,8 +9,8 @@ basic functionality › void (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -53,5 +53,5 @@ basic functionality › void (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.9c18b19d.0.snapshot b/compiler/test/__snapshots__/basic_functionality.9c18b19d.0.snapshot index 157bcf1b6c..5b31e8db15 100644 --- a/compiler/test/__snapshots__/basic_functionality.9c18b19d.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.9c18b19d.0.snapshot @@ -10,12 +10,12 @@ basic functionality › if_one_sided3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$<\" (global $<_1116 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"<\" (func $<_1116 (param i32 i32 i32) (result i32))) (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -89,5 +89,5 @@ basic functionality › if_one_sided3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.9df4a5e0.0.snapshot b/compiler/test/__snapshots__/basic_functionality.9df4a5e0.0.snapshot index ba84532733..e3cbe8aa1d 100644 --- a/compiler/test/__snapshots__/basic_functionality.9df4a5e0.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.9df4a5e0.0.snapshot @@ -31,5 +31,5 @@ basic functionality › and1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.9fb01eb5.0.snapshot b/compiler/test/__snapshots__/basic_functionality.9fb01eb5.0.snapshot index 6886051994..4e68ae3e8c 100644 --- a/compiler/test/__snapshots__/basic_functionality.9fb01eb5.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.9fb01eb5.0.snapshot @@ -31,5 +31,5 @@ basic functionality › simple_max (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.a0045d1c.0.snapshot b/compiler/test/__snapshots__/basic_functionality.a0045d1c.0.snapshot index 24992e9b6b..049fd08e2b 100644 --- a/compiler/test/__snapshots__/basic_functionality.a0045d1c.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.a0045d1c.0.snapshot @@ -10,10 +10,10 @@ basic functionality › binop1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $+_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › binop1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.a0747361.0.snapshot b/compiler/test/__snapshots__/basic_functionality.a0747361.0.snapshot index b1da79fcd4..f791d570f9 100644 --- a/compiler/test/__snapshots__/basic_functionality.a0747361.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.a0747361.0.snapshot @@ -31,5 +31,5 @@ basic functionality › hex (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.a2e63440.0.snapshot b/compiler/test/__snapshots__/basic_functionality.a2e63440.0.snapshot index 9d1dc48617..09f9db91a9 100644 --- a/compiler/test/__snapshots__/basic_functionality.a2e63440.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.a2e63440.0.snapshot @@ -10,10 +10,10 @@ basic functionality › comp9 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$>=\" (global $>=_1114 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \">=\" (func $>=_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -63,5 +63,5 @@ basic functionality › comp9 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.a3f7e180.0.snapshot b/compiler/test/__snapshots__/basic_functionality.a3f7e180.0.snapshot index 27018e59ea..666fc59373 100644 --- a/compiler/test/__snapshots__/basic_functionality.a3f7e180.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.a3f7e180.0.snapshot @@ -10,12 +10,12 @@ basic functionality › bigint_1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"+\" (func $+_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -73,5 +73,5 @@ basic functionality › bigint_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.a4ec9fca.0.snapshot b/compiler/test/__snapshots__/basic_functionality.a4ec9fca.0.snapshot index fb1c7bf5d4..92c9a31175 100644 --- a/compiler/test/__snapshots__/basic_functionality.a4ec9fca.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.a4ec9fca.0.snapshot @@ -31,5 +31,5 @@ basic functionality › andshort2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.a58a9361.0.snapshot b/compiler/test/__snapshots__/basic_functionality.a58a9361.0.snapshot index a2a9568f37..eee3bcd594 100644 --- a/compiler/test/__snapshots__/basic_functionality.a58a9361.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.a58a9361.0.snapshot @@ -10,10 +10,10 @@ basic functionality › lxor2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $^_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$^\" (global $^_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"^\" (func $^_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › lxor2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.a5d5182f.0.snapshot b/compiler/test/__snapshots__/basic_functionality.a5d5182f.0.snapshot index 2cce6a11f3..fb5dabea4f 100644 --- a/compiler/test/__snapshots__/basic_functionality.a5d5182f.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.a5d5182f.0.snapshot @@ -10,10 +10,10 @@ basic functionality › comp2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$<=\" (global $<=_1114 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"<=\" (func $<=_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -63,5 +63,5 @@ basic functionality › comp2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.a72898d0.0.snapshot b/compiler/test/__snapshots__/basic_functionality.a72898d0.0.snapshot index 11322950a3..0756339167 100644 --- a/compiler/test/__snapshots__/basic_functionality.a72898d0.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.a72898d0.0.snapshot @@ -10,10 +10,10 @@ basic functionality › comp8 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$<=\" (global $<=_1114 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"<=\" (func $<=_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -63,5 +63,5 @@ basic functionality › comp8 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.abd9d13c.0.snapshot b/compiler/test/__snapshots__/basic_functionality.abd9d13c.0.snapshot index 474ac56467..51c676cf7c 100644 --- a/compiler/test/__snapshots__/basic_functionality.abd9d13c.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.abd9d13c.0.snapshot @@ -10,10 +10,10 @@ basic functionality › comp7 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1114 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -63,5 +63,5 @@ basic functionality › comp7 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.b07cc734.0.snapshot b/compiler/test/__snapshots__/basic_functionality.b07cc734.0.snapshot index b5ee8fda5e..4564fb5e48 100644 --- a/compiler/test/__snapshots__/basic_functionality.b07cc734.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.b07cc734.0.snapshot @@ -10,14 +10,14 @@ basic functionality › if_one_sided (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$pervasives\" \"GRAIN$EXPORT$print\" (global $print_1117 (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$pervasives\" \"print\" (func $print_1117 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"<\" (func $<_1114 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$print\" (global $print_1117 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$<\" (global $<_1114 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"print\" (func $print_1117 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"<\" (func $<_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -109,5 +109,5 @@ basic functionality › if_one_sided (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.b6a1b657.0.snapshot b/compiler/test/__snapshots__/basic_functionality.b6a1b657.0.snapshot index 45aec53cea..b5b0a93c67 100644 --- a/compiler/test/__snapshots__/basic_functionality.b6a1b657.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.b6a1b657.0.snapshot @@ -10,10 +10,10 @@ basic functionality › lxor4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $^_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$^\" (global $^_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"^\" (func $^_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › lxor4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.b836b89a.0.snapshot b/compiler/test/__snapshots__/basic_functionality.b836b89a.0.snapshot index 2629ce524c..b6f9e21307 100644 --- a/compiler/test/__snapshots__/basic_functionality.b836b89a.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.b836b89a.0.snapshot @@ -10,16 +10,16 @@ basic functionality › complex1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1127 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$-\" (global $-_1125 (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$pervasives\" \"+\" (func $+_1127 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1125 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1120 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1127 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$-\" (global $-_1125 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$print\" (global $print_1120 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1127 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"-\" (func $-_1125 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"print\" (func $print_1120 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -110,5 +110,5 @@ basic functionality › complex1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.bb137371.0.snapshot b/compiler/test/__snapshots__/basic_functionality.bb137371.0.snapshot index f72e63d83a..ce5c3e4d16 100644 --- a/compiler/test/__snapshots__/basic_functionality.bb137371.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.bb137371.0.snapshot @@ -10,12 +10,12 @@ basic functionality › assignment1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$/\" (global $/_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"/\" (func $/_1117 (param i32 i32 i32) (result i32))) (global $t_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -81,5 +81,5 @@ basic functionality › assignment1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.bd891a1f.0.snapshot b/compiler/test/__snapshots__/basic_functionality.bd891a1f.0.snapshot index 34f8ac5b51..a78386b3b0 100644 --- a/compiler/test/__snapshots__/basic_functionality.bd891a1f.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.bd891a1f.0.snapshot @@ -31,5 +31,5 @@ basic functionality › oct (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.bef9449e.0.snapshot b/compiler/test/__snapshots__/basic_functionality.bef9449e.0.snapshot index 21bbe7230f..a379c79098 100644 --- a/compiler/test/__snapshots__/basic_functionality.bef9449e.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.bef9449e.0.snapshot @@ -10,10 +10,10 @@ basic functionality › comp1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$<\" (global $<_1114 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"<\" (func $<_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -63,5 +63,5 @@ basic functionality › comp1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.c1554a92.0.snapshot b/compiler/test/__snapshots__/basic_functionality.c1554a92.0.snapshot index 678dbe416e..dadf972bf7 100644 --- a/compiler/test/__snapshots__/basic_functionality.c1554a92.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.c1554a92.0.snapshot @@ -31,5 +31,5 @@ basic functionality › or2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.c2c74be4.0.snapshot b/compiler/test/__snapshots__/basic_functionality.c2c74be4.0.snapshot index f8ea130388..755e6941fc 100644 --- a/compiler/test/__snapshots__/basic_functionality.c2c74be4.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.c2c74be4.0.snapshot @@ -10,10 +10,10 @@ basic functionality › lsr2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $>>>_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$>>>\" (global $>>>_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \">>>\" (func $>>>_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › lsr2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.c4090bb1.0.snapshot b/compiler/test/__snapshots__/basic_functionality.c4090bb1.0.snapshot index b03722d14a..b7c9afdad0 100644 --- a/compiler/test/__snapshots__/basic_functionality.c4090bb1.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.c4090bb1.0.snapshot @@ -10,14 +10,14 @@ basic functionality › toplevel_statements (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$pervasives\" \"GRAIN$EXPORT$+\" (global $+_1126 (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$pervasives\" \"+\" (func $+_1126 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1120 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1126 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$print\" (global $print_1120 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1126 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"print\" (func $print_1120 (param i32 i32 i32) (result i32))) (global $five_1117 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -303,5 +303,5 @@ basic functionality › toplevel_statements (call $_gmain) ) ) - ;; custom section \"cmi\", size 331 + ;; custom section \"cmi\", size 337 ) diff --git a/compiler/test/__snapshots__/basic_functionality.c49928a5.0.snapshot b/compiler/test/__snapshots__/basic_functionality.c49928a5.0.snapshot index 1457d1455d..f241ed526e 100644 --- a/compiler/test/__snapshots__/basic_functionality.c49928a5.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.c49928a5.0.snapshot @@ -10,10 +10,10 @@ basic functionality › lsr1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $>>>_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$>>>\" (global $>>>_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \">>>\" (func $>>>_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › lsr1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.c55feb83.0.snapshot b/compiler/test/__snapshots__/basic_functionality.c55feb83.0.snapshot index ad6c1b0653..29491fa3f7 100644 --- a/compiler/test/__snapshots__/basic_functionality.c55feb83.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.c55feb83.0.snapshot @@ -10,10 +10,10 @@ basic functionality › comp14 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › comp14 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.c8095f7c.0.snapshot b/compiler/test/__snapshots__/basic_functionality.c8095f7c.0.snapshot index 0baa167eda..277d62a11a 100644 --- a/compiler/test/__snapshots__/basic_functionality.c8095f7c.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.c8095f7c.0.snapshot @@ -9,10 +9,10 @@ basic functionality › incr_1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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_1113 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"incr\" (func $incr_1113 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$incr\" (global $incr_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"incr\" (func $incr_1113 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -42,5 +42,5 @@ basic functionality › incr_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.c8144b17.0.snapshot b/compiler/test/__snapshots__/basic_functionality.c8144b17.0.snapshot index 25cc497d59..57059c498e 100644 --- a/compiler/test/__snapshots__/basic_functionality.c8144b17.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.c8144b17.0.snapshot @@ -31,5 +31,5 @@ basic functionality › bin (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.cb9c6c66.0.snapshot b/compiler/test/__snapshots__/basic_functionality.cb9c6c66.0.snapshot index 425524c87f..7f14dfa25c 100644 --- a/compiler/test/__snapshots__/basic_functionality.cb9c6c66.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.cb9c6c66.0.snapshot @@ -9,10 +9,10 @@ basic functionality › incr_2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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_1113 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"incr\" (func $incr_1113 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$incr\" (global $incr_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"incr\" (func $incr_1113 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -42,5 +42,5 @@ basic functionality › incr_2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.cdeddcd2.0.snapshot b/compiler/test/__snapshots__/basic_functionality.cdeddcd2.0.snapshot index 8c9bd91c1a..e8bd390860 100644 --- a/compiler/test/__snapshots__/basic_functionality.cdeddcd2.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.cdeddcd2.0.snapshot @@ -10,10 +10,10 @@ basic functionality › modulo3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $%_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$%\" (global $%_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"%\" (func $%_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › modulo3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.cefeb364.0.snapshot b/compiler/test/__snapshots__/basic_functionality.cefeb364.0.snapshot index db69873c51..7b3d3fc825 100644 --- a/compiler/test/__snapshots__/basic_functionality.cefeb364.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.cefeb364.0.snapshot @@ -10,10 +10,10 @@ basic functionality › lor4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $|_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$|\" (global $|_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"|\" (func $|_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › lor4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.d0c0c62b.0.snapshot b/compiler/test/__snapshots__/basic_functionality.d0c0c62b.0.snapshot index c207daa504..61540bb197 100644 --- a/compiler/test/__snapshots__/basic_functionality.d0c0c62b.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.d0c0c62b.0.snapshot @@ -10,10 +10,10 @@ basic functionality › int64_pun_1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $*_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$*\" (global $*_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"*\" (func $*_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › int64_pun_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.d0cb4f44.0.snapshot b/compiler/test/__snapshots__/basic_functionality.d0cb4f44.0.snapshot index d0dbe54579..638b4b8517 100644 --- a/compiler/test/__snapshots__/basic_functionality.d0cb4f44.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.d0cb4f44.0.snapshot @@ -9,10 +9,10 @@ basic functionality › decr_1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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_1113 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"decr\" (func $decr_1113 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$decr\" (global $decr_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"decr\" (func $decr_1113 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -42,5 +42,5 @@ basic functionality › decr_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.d124f931.0.snapshot b/compiler/test/__snapshots__/basic_functionality.d124f931.0.snapshot index 25c1fef4b3..14be46c6ae 100644 --- a/compiler/test/__snapshots__/basic_functionality.d124f931.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.d124f931.0.snapshot @@ -31,5 +31,5 @@ basic functionality › nil (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.d6ca4146.0.snapshot b/compiler/test/__snapshots__/basic_functionality.d6ca4146.0.snapshot index 913765c654..1e55ddfd8d 100644 --- a/compiler/test/__snapshots__/basic_functionality.d6ca4146.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.d6ca4146.0.snapshot @@ -10,12 +10,12 @@ basic functionality › andshort1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$pervasives\" \"GRAIN$EXPORT$print\" (global $print_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$pervasives\" \"print\" (func $print_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$print\" (global $print_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"print\" (func $print_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -84,5 +84,5 @@ basic functionality › andshort1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.d8a7dcf9.0.snapshot b/compiler/test/__snapshots__/basic_functionality.d8a7dcf9.0.snapshot index 3fb7108f78..182a33bab4 100644 --- a/compiler/test/__snapshots__/basic_functionality.d8a7dcf9.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.d8a7dcf9.0.snapshot @@ -10,10 +10,10 @@ basic functionality › modulo1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $%_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$%\" (global $%_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"%\" (func $%_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › modulo1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.d8f6f027.0.snapshot b/compiler/test/__snapshots__/basic_functionality.d8f6f027.0.snapshot index a82a08114d..ef84b1efa1 100644 --- a/compiler/test/__snapshots__/basic_functionality.d8f6f027.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.d8f6f027.0.snapshot @@ -9,8 +9,8 @@ basic functionality › hex_dec_exp1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -53,5 +53,5 @@ basic functionality › hex_dec_exp1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.d9fc01df.0.snapshot b/compiler/test/__snapshots__/basic_functionality.d9fc01df.0.snapshot index f8dd6d636c..1a040c11ae 100644 --- a/compiler/test/__snapshots__/basic_functionality.d9fc01df.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.d9fc01df.0.snapshot @@ -10,10 +10,10 @@ basic functionality › land3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $&_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$&\" (global $&_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"&\" (func $&_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › land3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.dbf5d3ff.0.snapshot b/compiler/test/__snapshots__/basic_functionality.dbf5d3ff.0.snapshot index 17dd00d735..44e2e24716 100644 --- a/compiler/test/__snapshots__/basic_functionality.dbf5d3ff.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.dbf5d3ff.0.snapshot @@ -10,10 +10,10 @@ basic functionality › comp18 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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_1113 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"isnt\" (func $isnt_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$isnt\" (global $isnt_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"isnt\" (func $isnt_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › comp18 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.df4cd2bf.0.snapshot b/compiler/test/__snapshots__/basic_functionality.df4cd2bf.0.snapshot index e5bd847109..5df58abf4e 100644 --- a/compiler/test/__snapshots__/basic_functionality.df4cd2bf.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.df4cd2bf.0.snapshot @@ -10,10 +10,10 @@ basic functionality › comp15 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › comp15 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.e2902464.0.snapshot b/compiler/test/__snapshots__/basic_functionality.e2902464.0.snapshot index 467a7076e3..f04b31cceb 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\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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$pervasives\" \"-\" (func $-_1119 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"==\" (func $==_1117 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$-\" (global $-_1119 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"-\" (func $-_1119 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1117 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ basic functionality › comp10 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.e3995c7d.0.snapshot b/compiler/test/__snapshots__/basic_functionality.e3995c7d.0.snapshot index 636c40eada..6db414a5bb 100644 --- a/compiler/test/__snapshots__/basic_functionality.e3995c7d.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.e3995c7d.0.snapshot @@ -10,12 +10,12 @@ basic functionality › if_one_sided4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$<\" (global $<_1116 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"<\" (func $<_1116 (param i32 i32 i32) (result i32))) (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -92,5 +92,5 @@ basic functionality › if_one_sided4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.e56cd2a2.0.snapshot b/compiler/test/__snapshots__/basic_functionality.e56cd2a2.0.snapshot index 6d65a25235..8b688adcbb 100644 --- a/compiler/test/__snapshots__/basic_functionality.e56cd2a2.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.e56cd2a2.0.snapshot @@ -10,10 +10,10 @@ basic functionality › comp6 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1114 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -63,5 +63,5 @@ basic functionality › comp6 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.e58c3266.0.snapshot b/compiler/test/__snapshots__/basic_functionality.e58c3266.0.snapshot index 7be4f3d484..b4c25f26c5 100644 --- a/compiler/test/__snapshots__/basic_functionality.e58c3266.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.e58c3266.0.snapshot @@ -10,10 +10,10 @@ basic functionality › asr2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $>>_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$>>\" (global $>>_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \">>\" (func $>>_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › asr2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.e6ea6b06.0.snapshot b/compiler/test/__snapshots__/basic_functionality.e6ea6b06.0.snapshot index 8e02ffee77..d3479fb5e7 100644 --- a/compiler/test/__snapshots__/basic_functionality.e6ea6b06.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.e6ea6b06.0.snapshot @@ -9,8 +9,8 @@ basic functionality › int32_1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -49,5 +49,5 @@ basic functionality › int32_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.e811c1e1.0.snapshot b/compiler/test/__snapshots__/basic_functionality.e811c1e1.0.snapshot index 92267ccba6..9e7b5e970b 100644 --- a/compiler/test/__snapshots__/basic_functionality.e811c1e1.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.e811c1e1.0.snapshot @@ -10,10 +10,10 @@ basic functionality › binop2.1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $-_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$-\" (global $-_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"-\" (func $-_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › binop2.1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.ee7c0ebc.0.snapshot b/compiler/test/__snapshots__/basic_functionality.ee7c0ebc.0.snapshot index d02484e92b..53bd4d4547 100644 --- a/compiler/test/__snapshots__/basic_functionality.ee7c0ebc.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.ee7c0ebc.0.snapshot @@ -10,10 +10,10 @@ basic functionality › modulo2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $%_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$%\" (global $%_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"%\" (func $%_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › modulo2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.f132ca8b.0.snapshot b/compiler/test/__snapshots__/basic_functionality.f132ca8b.0.snapshot index a3d2b0f571..1f6d80a425 100644 --- a/compiler/test/__snapshots__/basic_functionality.f132ca8b.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.f132ca8b.0.snapshot @@ -9,10 +9,10 @@ basic functionality › decr_2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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_1113 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"decr\" (func $decr_1113 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$decr\" (global $decr_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"decr\" (func $decr_1113 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -42,5 +42,5 @@ basic functionality › decr_2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.f47797ca.0.snapshot b/compiler/test/__snapshots__/basic_functionality.f47797ca.0.snapshot index d5a2cd9ad1..7cd390a94f 100644 --- a/compiler/test/__snapshots__/basic_functionality.f47797ca.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.f47797ca.0.snapshot @@ -9,8 +9,8 @@ basic functionality › hex_dec_exp5 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -53,5 +53,5 @@ basic functionality › hex_dec_exp5 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.f58be537.0.snapshot b/compiler/test/__snapshots__/basic_functionality.f58be537.0.snapshot index a0fd594a2a..a1899d62fa 100644 --- a/compiler/test/__snapshots__/basic_functionality.f58be537.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.f58be537.0.snapshot @@ -9,10 +9,10 @@ basic functionality › comp19 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (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))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -306,5 +306,5 @@ basic functionality › comp19 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.f90a3baa.0.snapshot b/compiler/test/__snapshots__/basic_functionality.f90a3baa.0.snapshot index a463cf440d..be44fa6e99 100644 --- a/compiler/test/__snapshots__/basic_functionality.f90a3baa.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.f90a3baa.0.snapshot @@ -9,8 +9,8 @@ basic functionality › heap_number_i32_wrapper_max (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -53,5 +53,5 @@ basic functionality › heap_number_i32_wrapper_max (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.f9743171.0.snapshot b/compiler/test/__snapshots__/basic_functionality.f9743171.0.snapshot index cbe2cfc5de..0428d67c56 100644 --- a/compiler/test/__snapshots__/basic_functionality.f9743171.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.f9743171.0.snapshot @@ -9,8 +9,8 @@ basic functionality › heap_number_i32_wrapper (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -53,5 +53,5 @@ basic functionality › heap_number_i32_wrapper (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.fd64a58f.0.snapshot b/compiler/test/__snapshots__/basic_functionality.fd64a58f.0.snapshot index 5462b0385c..c46a70958d 100644 --- a/compiler/test/__snapshots__/basic_functionality.fd64a58f.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.fd64a58f.0.snapshot @@ -10,10 +10,10 @@ basic functionality › int64_pun_2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $-_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$-\" (global $-_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"-\" (func $-_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ basic functionality › int64_pun_2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.fe19cffe.0.snapshot b/compiler/test/__snapshots__/basic_functionality.fe19cffe.0.snapshot index df5b25b2ba..b4a64240a5 100644 --- a/compiler/test/__snapshots__/basic_functionality.fe19cffe.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.fe19cffe.0.snapshot @@ -9,8 +9,8 @@ basic functionality › bigint_2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -65,5 +65,5 @@ basic functionality › bigint_2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/basic_functionality.fe88cb04.0.snapshot b/compiler/test/__snapshots__/basic_functionality.fe88cb04.0.snapshot index 6ce15a2413..d46b2e621c 100644 --- a/compiler/test/__snapshots__/basic_functionality.fe88cb04.0.snapshot +++ b/compiler/test/__snapshots__/basic_functionality.fe88cb04.0.snapshot @@ -11,14 +11,14 @@ basic functionality › func_shadow_and_indirect_call (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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_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_1121 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$print\" (global $print_1121 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"print\" (func $print_1121 (param i32 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)) @@ -439,5 +439,5 @@ basic functionality › func_shadow_and_indirect_call (call $_gmain) ) ) - ;; custom section \"cmi\", size 334 + ;; custom section \"cmi\", size 340 ) diff --git a/compiler/test/__snapshots__/boxes.08fca3f7.0.snapshot b/compiler/test/__snapshots__/boxes.08fca3f7.0.snapshot index a2ca33fc32..d754cadc47 100644 --- a/compiler/test/__snapshots__/boxes.08fca3f7.0.snapshot +++ b/compiler/test/__snapshots__/boxes.08fca3f7.0.snapshot @@ -10,14 +10,14 @@ boxes › box_subtraction1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $-_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 $-_1117 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$-\" (global $-_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"-\" (func $-_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -112,5 +112,5 @@ boxes › box_subtraction1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/boxes.0c59fc4e.0.snapshot b/compiler/test/__snapshots__/boxes.0c59fc4e.0.snapshot index 9adfa4d25e..9fc9b2a382 100644 --- a/compiler/test/__snapshots__/boxes.0c59fc4e.0.snapshot +++ b/compiler/test/__snapshots__/boxes.0c59fc4e.0.snapshot @@ -10,14 +10,14 @@ boxes › box_multiplication2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $*_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 $*_1117 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$*\" (global $*_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"*\" (func $*_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -125,5 +125,5 @@ boxes › box_multiplication2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/boxes.17668725.0.snapshot b/compiler/test/__snapshots__/boxes.17668725.0.snapshot index 2af613e3bb..221bb0889a 100644 --- a/compiler/test/__snapshots__/boxes.17668725.0.snapshot +++ b/compiler/test/__snapshots__/boxes.17668725.0.snapshot @@ -10,14 +10,14 @@ boxes › box_division2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $/_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 $/_1117 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$/\" (global $/_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"/\" (func $/_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -125,5 +125,5 @@ boxes › box_division2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/boxes.2b56febf.0.snapshot b/compiler/test/__snapshots__/boxes.2b56febf.0.snapshot index bc74e04174..a2b4ce71ea 100644 --- a/compiler/test/__snapshots__/boxes.2b56febf.0.snapshot +++ b/compiler/test/__snapshots__/boxes.2b56febf.0.snapshot @@ -10,14 +10,14 @@ boxes › box_addition2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1117 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -125,5 +125,5 @@ boxes › box_addition2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/boxes.7d564476.0.snapshot b/compiler/test/__snapshots__/boxes.7d564476.0.snapshot index a521f2461c..4d1e9c637c 100644 --- a/compiler/test/__snapshots__/boxes.7d564476.0.snapshot +++ b/compiler/test/__snapshots__/boxes.7d564476.0.snapshot @@ -10,14 +10,14 @@ boxes › box_division1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $/_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 $/_1117 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$/\" (global $/_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"/\" (func $/_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -112,5 +112,5 @@ boxes › box_division1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/boxes.9035923e.0.snapshot b/compiler/test/__snapshots__/boxes.9035923e.0.snapshot index 1909948601..ace9852bd8 100644 --- a/compiler/test/__snapshots__/boxes.9035923e.0.snapshot +++ b/compiler/test/__snapshots__/boxes.9035923e.0.snapshot @@ -10,14 +10,14 @@ boxes › box_subtraction2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $-_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 $-_1117 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$-\" (global $-_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"-\" (func $-_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -125,5 +125,5 @@ boxes › box_subtraction2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/boxes.adbe1660.0.snapshot b/compiler/test/__snapshots__/boxes.adbe1660.0.snapshot index d36577624d..d040c2b9d9 100644 --- a/compiler/test/__snapshots__/boxes.adbe1660.0.snapshot +++ b/compiler/test/__snapshots__/boxes.adbe1660.0.snapshot @@ -10,14 +10,14 @@ boxes › box_addition1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1117 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -112,5 +112,5 @@ boxes › box_addition1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/boxes.bc258c1b.0.snapshot b/compiler/test/__snapshots__/boxes.bc258c1b.0.snapshot index b980ae568e..44a842cce5 100644 --- a/compiler/test/__snapshots__/boxes.bc258c1b.0.snapshot +++ b/compiler/test/__snapshots__/boxes.bc258c1b.0.snapshot @@ -10,14 +10,14 @@ boxes › box_multiplication1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $*_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 $*_1117 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$*\" (global $*_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"*\" (func $*_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -112,5 +112,5 @@ boxes › box_multiplication1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/boxes.eb81e542.0.snapshot b/compiler/test/__snapshots__/boxes.eb81e542.0.snapshot index c2898f62b3..8603dd4478 100644 --- a/compiler/test/__snapshots__/boxes.eb81e542.0.snapshot +++ b/compiler/test/__snapshots__/boxes.eb81e542.0.snapshot @@ -9,10 +9,10 @@ boxes › test_set_extra1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (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))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -92,5 +92,5 @@ boxes › test_set_extra1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/chars.200d9e1a.0.snapshot b/compiler/test/__snapshots__/chars.200d9e1a.0.snapshot index 91002c1b22..b16d320c83 100644 --- a/compiler/test/__snapshots__/chars.200d9e1a.0.snapshot +++ b/compiler/test/__snapshots__/chars.200d9e1a.0.snapshot @@ -31,5 +31,5 @@ chars › char4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/chars.259e330c.0.snapshot b/compiler/test/__snapshots__/chars.259e330c.0.snapshot index 51dccb2460..d998a866c2 100644 --- a/compiler/test/__snapshots__/chars.259e330c.0.snapshot +++ b/compiler/test/__snapshots__/chars.259e330c.0.snapshot @@ -31,5 +31,5 @@ chars › char2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/chars.27fb7f30.0.snapshot b/compiler/test/__snapshots__/chars.27fb7f30.0.snapshot index c605dc94a8..9c85163cd2 100644 --- a/compiler/test/__snapshots__/chars.27fb7f30.0.snapshot +++ b/compiler/test/__snapshots__/chars.27fb7f30.0.snapshot @@ -31,5 +31,5 @@ chars › char8 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/chars.51010573.0.snapshot b/compiler/test/__snapshots__/chars.51010573.0.snapshot index 9059035534..803c35800e 100644 --- a/compiler/test/__snapshots__/chars.51010573.0.snapshot +++ b/compiler/test/__snapshots__/chars.51010573.0.snapshot @@ -31,5 +31,5 @@ chars › char7 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/chars.7e0f68db.0.snapshot b/compiler/test/__snapshots__/chars.7e0f68db.0.snapshot index cabdb7ef72..58355b2dd5 100644 --- a/compiler/test/__snapshots__/chars.7e0f68db.0.snapshot +++ b/compiler/test/__snapshots__/chars.7e0f68db.0.snapshot @@ -31,5 +31,5 @@ chars › char6 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/chars.af4b3613.0.snapshot b/compiler/test/__snapshots__/chars.af4b3613.0.snapshot index 1d74bdf37e..88ccb324a8 100644 --- a/compiler/test/__snapshots__/chars.af4b3613.0.snapshot +++ b/compiler/test/__snapshots__/chars.af4b3613.0.snapshot @@ -31,5 +31,5 @@ chars › char5 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/chars.e1cac8cd.0.snapshot b/compiler/test/__snapshots__/chars.e1cac8cd.0.snapshot index 6e7de9fd40..03ca54b8ad 100644 --- a/compiler/test/__snapshots__/chars.e1cac8cd.0.snapshot +++ b/compiler/test/__snapshots__/chars.e1cac8cd.0.snapshot @@ -31,5 +31,5 @@ chars › char3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/comments.573e549e.0.snapshot b/compiler/test/__snapshots__/comments.573e549e.0.snapshot index 1bbe9d5cde..9e74563f8c 100644 --- a/compiler/test/__snapshots__/comments.573e549e.0.snapshot +++ b/compiler/test/__snapshots__/comments.573e549e.0.snapshot @@ -31,5 +31,5 @@ comments › comment_alone (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/comments.8f52e899.0.snapshot b/compiler/test/__snapshots__/comments.8f52e899.0.snapshot index 315acd3611..7e4cf57eca 100644 --- a/compiler/test/__snapshots__/comments.8f52e899.0.snapshot +++ b/compiler/test/__snapshots__/comments.8f52e899.0.snapshot @@ -31,5 +31,5 @@ comments › comment_block (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/comments.ccf5fcf4.0.snapshot b/compiler/test/__snapshots__/comments.ccf5fcf4.0.snapshot index ec7f2fd2ee..862e97a0dd 100644 --- a/compiler/test/__snapshots__/comments.ccf5fcf4.0.snapshot +++ b/compiler/test/__snapshots__/comments.ccf5fcf4.0.snapshot @@ -31,5 +31,5 @@ comments › comment_shebang (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/comments.fd91c233.0.snapshot b/compiler/test/__snapshots__/comments.fd91c233.0.snapshot index 2bd15989b0..6eb5133222 100644 --- a/compiler/test/__snapshots__/comments.fd91c233.0.snapshot +++ b/compiler/test/__snapshots__/comments.fd91c233.0.snapshot @@ -31,5 +31,5 @@ comments › comment_doc (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/early_return.1183a893.0.snapshot b/compiler/test/__snapshots__/early_return.1183a893.0.snapshot index a583d58d1e..c5ea48c197 100644 --- a/compiler/test/__snapshots__/early_return.1183a893.0.snapshot +++ b/compiler/test/__snapshots__/early_return.1183a893.0.snapshot @@ -11,12 +11,12 @@ early return › early_return3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1118 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1118 (param i32 i32 i32) (result i32))) (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -110,5 +110,5 @@ early return › early_return3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 949 + ;; custom section \"cmi\", size 955 ) diff --git a/compiler/test/__snapshots__/enums.aa34084a.0.snapshot b/compiler/test/__snapshots__/enums.aa34084a.0.snapshot index c26e001ef0..5d35ff4fb6 100644 --- a/compiler/test/__snapshots__/enums.aa34084a.0.snapshot +++ b/compiler/test/__snapshots__/enums.aa34084a.0.snapshot @@ -9,8 +9,8 @@ enums › adt_trailing (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ enums › adt_trailing (call $_gmain) ) ) - ;; custom section \"cmi\", size 601 + ;; custom section \"cmi\", size 607 ) diff --git a/compiler/test/__snapshots__/enums.ae26523b.0.snapshot b/compiler/test/__snapshots__/enums.ae26523b.0.snapshot index 028a44915e..cc747e3e51 100644 --- a/compiler/test/__snapshots__/enums.ae26523b.0.snapshot +++ b/compiler/test/__snapshots__/enums.ae26523b.0.snapshot @@ -10,12 +10,12 @@ enums › enum_recursive_data_definition (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"print\" (func $print_1129 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$print\" (global $print_1129 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"print\" (func $print_1129 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -412,5 +412,5 @@ enums › enum_recursive_data_definition (call $_gmain) ) ) - ;; custom section \"cmi\", size 879 + ;; custom section \"cmi\", size 885 ) diff --git a/compiler/test/__snapshots__/exceptions.a68ae348.0.snapshot b/compiler/test/__snapshots__/exceptions.a68ae348.0.snapshot index 93863d6ab0..1694a4f58a 100644 --- a/compiler/test/__snapshots__/exceptions.a68ae348.0.snapshot +++ b/compiler/test/__snapshots__/exceptions.a68ae348.0.snapshot @@ -9,8 +9,8 @@ exceptions › exception_4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ exceptions › exception_4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 1613 + ;; custom section \"cmi\", size 1619 ) diff --git a/compiler/test/__snapshots__/exceptions.ccac3e71.0.snapshot b/compiler/test/__snapshots__/exceptions.ccac3e71.0.snapshot index cb779e95b6..3e85a997ed 100644 --- a/compiler/test/__snapshots__/exceptions.ccac3e71.0.snapshot +++ b/compiler/test/__snapshots__/exceptions.ccac3e71.0.snapshot @@ -9,8 +9,8 @@ exceptions › exception_2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ exceptions › exception_2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 841 + ;; custom section \"cmi\", size 847 ) diff --git a/compiler/test/__snapshots__/functions.06134c8a.0.snapshot b/compiler/test/__snapshots__/functions.06134c8a.0.snapshot index 989897094f..0135b7d043 100644 --- a/compiler/test/__snapshots__/functions.06134c8a.0.snapshot +++ b/compiler/test/__snapshots__/functions.06134c8a.0.snapshot @@ -10,10 +10,10 @@ functions › dup_func (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $foo_1117 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -74,5 +74,5 @@ functions › dup_func (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/functions.0b8146ea.0.snapshot b/compiler/test/__snapshots__/functions.0b8146ea.0.snapshot index 4b3d7fe641..a8d057860b 100644 --- a/compiler/test/__snapshots__/functions.0b8146ea.0.snapshot +++ b/compiler/test/__snapshots__/functions.0b8146ea.0.snapshot @@ -10,10 +10,10 @@ functions › regression_1725 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -81,5 +81,5 @@ functions › regression_1725 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/functions.14922a92.0.snapshot b/compiler/test/__snapshots__/functions.14922a92.0.snapshot index e7475aabff..55b2b435f1 100644 --- a/compiler/test/__snapshots__/functions.14922a92.0.snapshot +++ b/compiler/test/__snapshots__/functions.14922a92.0.snapshot @@ -10,12 +10,12 @@ functions › shorthand_4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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 $+_1115 (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 $+_1115 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1115 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1115 (param i32 i32 i32) (result i32))) (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -79,5 +79,5 @@ functions › shorthand_4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/functions.1be5ecd5.0.snapshot b/compiler/test/__snapshots__/functions.1be5ecd5.0.snapshot index 516054984f..39d2a699b2 100644 --- a/compiler/test/__snapshots__/functions.1be5ecd5.0.snapshot +++ b/compiler/test/__snapshots__/functions.1be5ecd5.0.snapshot @@ -9,10 +9,10 @@ functions › shorthand_1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -74,5 +74,5 @@ functions › shorthand_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/functions.23afd9c9.0.snapshot b/compiler/test/__snapshots__/functions.23afd9c9.0.snapshot index af2aed2394..8886807841 100644 --- a/compiler/test/__snapshots__/functions.23afd9c9.0.snapshot +++ b/compiler/test/__snapshots__/functions.23afd9c9.0.snapshot @@ -10,14 +10,14 @@ functions › lam_destructure_5 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1119 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1119 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1119 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -406,5 +406,5 @@ functions › lam_destructure_5 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/functions.28e0f2b3.0.snapshot b/compiler/test/__snapshots__/functions.28e0f2b3.0.snapshot index b40fedcddd..23082a750c 100644 --- a/compiler/test/__snapshots__/functions.28e0f2b3.0.snapshot +++ b/compiler/test/__snapshots__/functions.28e0f2b3.0.snapshot @@ -9,12 +9,12 @@ functions › lambda_pat_any (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $x_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -109,5 +109,5 @@ functions › lambda_pat_any (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/functions.49ccab54.0.snapshot b/compiler/test/__snapshots__/functions.49ccab54.0.snapshot index cba19195ed..71ffa618a9 100644 --- a/compiler/test/__snapshots__/functions.49ccab54.0.snapshot +++ b/compiler/test/__snapshots__/functions.49ccab54.0.snapshot @@ -10,14 +10,14 @@ functions › curried_func (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1116 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1116 (param i32 i32 i32) (result i32))) (global $add_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 1)) (memory $0 0) @@ -165,5 +165,5 @@ functions › curried_func (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/functions.6eacded0.0.snapshot b/compiler/test/__snapshots__/functions.6eacded0.0.snapshot index 7f4076c2c7..e50d38347c 100644 --- a/compiler/test/__snapshots__/functions.6eacded0.0.snapshot +++ b/compiler/test/__snapshots__/functions.6eacded0.0.snapshot @@ -11,18 +11,18 @@ functions › func_recursive_closure (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $-_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 $-_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))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$-\" (global $-_1139 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1134 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1124 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"-\" (func $-_1139 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1134 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (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)) @@ -477,5 +477,5 @@ functions › func_recursive_closure (call $_gmain) ) ) - ;; custom section \"cmi\", size 974 + ;; custom section \"cmi\", size 980 ) diff --git a/compiler/test/__snapshots__/functions.7a8986a5.0.snapshot b/compiler/test/__snapshots__/functions.7a8986a5.0.snapshot index cd86da8206..0912cdb01d 100644 --- a/compiler/test/__snapshots__/functions.7a8986a5.0.snapshot +++ b/compiler/test/__snapshots__/functions.7a8986a5.0.snapshot @@ -9,8 +9,8 @@ functions › app_1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -69,5 +69,5 @@ functions › app_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/functions.84b6e84b.0.snapshot b/compiler/test/__snapshots__/functions.84b6e84b.0.snapshot index cd1ec4fbae..70db623307 100644 --- a/compiler/test/__snapshots__/functions.84b6e84b.0.snapshot +++ b/compiler/test/__snapshots__/functions.84b6e84b.0.snapshot @@ -9,10 +9,10 @@ functions › shorthand_3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -74,5 +74,5 @@ functions › shorthand_3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/functions.8baf471f.0.snapshot b/compiler/test/__snapshots__/functions.8baf471f.0.snapshot index 11f4d5a595..7cdc59f8be 100644 --- a/compiler/test/__snapshots__/functions.8baf471f.0.snapshot +++ b/compiler/test/__snapshots__/functions.8baf471f.0.snapshot @@ -10,14 +10,14 @@ functions › lam_destructure_3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1117 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1117 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -256,5 +256,5 @@ functions › lam_destructure_3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/functions.9223245d.0.snapshot b/compiler/test/__snapshots__/functions.9223245d.0.snapshot index a218d9c3c5..740f76f462 100644 --- a/compiler/test/__snapshots__/functions.9223245d.0.snapshot +++ b/compiler/test/__snapshots__/functions.9223245d.0.snapshot @@ -10,14 +10,14 @@ functions › lam_destructure_7 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1118 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1118 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1118 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -363,5 +363,5 @@ functions › lam_destructure_7 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/functions.9fd69835.0.snapshot b/compiler/test/__snapshots__/functions.9fd69835.0.snapshot index a64503742c..2236ec3b19 100644 --- a/compiler/test/__snapshots__/functions.9fd69835.0.snapshot +++ b/compiler/test/__snapshots__/functions.9fd69835.0.snapshot @@ -10,12 +10,12 @@ functions › shorthand_2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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 $+_1115 (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 $+_1115 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1115 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1115 (param i32 i32 i32) (result i32))) (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -79,5 +79,5 @@ functions › shorthand_2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/functions.b37949b2.0.snapshot b/compiler/test/__snapshots__/functions.b37949b2.0.snapshot index 004a4f526c..92f04475fb 100644 --- a/compiler/test/__snapshots__/functions.b37949b2.0.snapshot +++ b/compiler/test/__snapshots__/functions.b37949b2.0.snapshot @@ -10,14 +10,14 @@ functions › lam_destructure_4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1117 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1117 (param i32 i32 i32) (result i32))) (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -259,5 +259,5 @@ functions › lam_destructure_4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/functions.b3a8d88b.0.snapshot b/compiler/test/__snapshots__/functions.b3a8d88b.0.snapshot index fc1f53b74e..f16b6f0e3e 100644 --- a/compiler/test/__snapshots__/functions.b3a8d88b.0.snapshot +++ b/compiler/test/__snapshots__/functions.b3a8d88b.0.snapshot @@ -10,14 +10,14 @@ functions › lam_destructure_8 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1118 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1118 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1118 (param i32 i32 i32) (result i32))) (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -366,5 +366,5 @@ functions › lam_destructure_8 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/functions.b632a2ab.0.snapshot b/compiler/test/__snapshots__/functions.b632a2ab.0.snapshot index d8933c37d1..d1591ded01 100644 --- a/compiler/test/__snapshots__/functions.b632a2ab.0.snapshot +++ b/compiler/test/__snapshots__/functions.b632a2ab.0.snapshot @@ -9,10 +9,10 @@ functions › lam_destructure_1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (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))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -104,5 +104,5 @@ functions › lam_destructure_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/functions.c6e8a9aa.0.snapshot b/compiler/test/__snapshots__/functions.c6e8a9aa.0.snapshot index a2652c9741..20503e9b94 100644 --- a/compiler/test/__snapshots__/functions.c6e8a9aa.0.snapshot +++ b/compiler/test/__snapshots__/functions.c6e8a9aa.0.snapshot @@ -9,12 +9,12 @@ functions › lam_destructure_2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -109,5 +109,5 @@ functions › lam_destructure_2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/functions.ce978f54.0.snapshot b/compiler/test/__snapshots__/functions.ce978f54.0.snapshot index 7f5e6711cf..2ee17b28c0 100644 --- a/compiler/test/__snapshots__/functions.ce978f54.0.snapshot +++ b/compiler/test/__snapshots__/functions.ce978f54.0.snapshot @@ -31,5 +31,5 @@ functions › multi_bind2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/functions.d9466880.0.snapshot b/compiler/test/__snapshots__/functions.d9466880.0.snapshot index d4ff8dd71f..17d1dcaaa5 100644 --- a/compiler/test/__snapshots__/functions.d9466880.0.snapshot +++ b/compiler/test/__snapshots__/functions.d9466880.0.snapshot @@ -10,12 +10,12 @@ functions › func_record_associativity2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 1)) (memory $0 0) (elem $elem (global.get $relocBase_0) $lam_lambda_1121) @@ -235,5 +235,5 @@ functions › func_record_associativity2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 575 + ;; custom section \"cmi\", size 581 ) diff --git a/compiler/test/__snapshots__/functions.e6c6212b.0.snapshot b/compiler/test/__snapshots__/functions.e6c6212b.0.snapshot index e18270c02e..2b8e0457ad 100644 --- a/compiler/test/__snapshots__/functions.e6c6212b.0.snapshot +++ b/compiler/test/__snapshots__/functions.e6c6212b.0.snapshot @@ -10,12 +10,12 @@ functions › fn_trailing_comma (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1116 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1116 (param i32 i32 i32) (result i32))) (global $testFn_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -80,5 +80,5 @@ functions › fn_trailing_comma (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/functions.f400bb7b.0.snapshot b/compiler/test/__snapshots__/functions.f400bb7b.0.snapshot index 298c0d7b08..5e2de79a17 100644 --- a/compiler/test/__snapshots__/functions.f400bb7b.0.snapshot +++ b/compiler/test/__snapshots__/functions.f400bb7b.0.snapshot @@ -10,14 +10,14 @@ functions › lam_destructure_6 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1119 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1119 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1119 (param i32 i32 i32) (result i32))) (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -409,5 +409,5 @@ functions › lam_destructure_6 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/functions.f647681b.0.snapshot b/compiler/test/__snapshots__/functions.f647681b.0.snapshot index 1b6fb99390..186b0ff72a 100644 --- a/compiler/test/__snapshots__/functions.f647681b.0.snapshot +++ b/compiler/test/__snapshots__/functions.f647681b.0.snapshot @@ -10,12 +10,12 @@ functions › func_record_associativity1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 1)) (memory $0 0) (elem $elem (global.get $relocBase_0) $lam_lambda_1118) @@ -179,5 +179,5 @@ functions › func_record_associativity1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 445 + ;; custom section \"cmi\", size 451 ) diff --git a/compiler/test/__snapshots__/includes.1d829099.0.snapshot b/compiler/test/__snapshots__/includes.1d829099.0.snapshot index 48c3183b7b..49b3b2fe39 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\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$../../test/test-libs/provideAll\" \"GRAIN$EXPORT$x\" (global $x_1122 (mut i32))) + (import \"GRAIN$MODULE$../../test/test-libs/provideAll.gr\" \"GRAIN$EXPORT$x\" (global $x_1122 (mut i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -32,5 +32,5 @@ includes › include_relative_path2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 399 + ;; custom section \"cmi\", size 408 ) diff --git a/compiler/test/__snapshots__/includes.46f78654.0.snapshot b/compiler/test/__snapshots__/includes.46f78654.0.snapshot index 938a6fc947..89d5eb15c8 100644 --- a/compiler/test/__snapshots__/includes.46f78654.0.snapshot +++ b/compiler/test/__snapshots__/includes.46f78654.0.snapshot @@ -9,11 +9,11 @@ includes › include_some_multiple (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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_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_1122 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"GRAIN$EXPORT$x\" (global $x_1123 (mut i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"GRAIN$EXPORT$y\" (global $y_1122 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"y\" (func $y_1122 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -46,5 +46,5 @@ includes › include_some_multiple (call $_gmain) ) ) - ;; custom section \"cmi\", size 367 + ;; custom section \"cmi\", size 376 ) diff --git a/compiler/test/__snapshots__/includes.5dfba7dd.0.snapshot b/compiler/test/__snapshots__/includes.5dfba7dd.0.snapshot index 45cbd20fac..c2f97e33fb 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\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1122 (mut i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"GRAIN$EXPORT$x\" (global $x_1122 (mut i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -32,5 +32,5 @@ includes › include_alias (call $_gmain) ) ) - ;; custom section \"cmi\", size 367 + ;; custom section \"cmi\", size 376 ) diff --git a/compiler/test/__snapshots__/includes.6c8d23dc.0.snapshot b/compiler/test/__snapshots__/includes.6c8d23dc.0.snapshot index 4ebf995f7a..c2b282c9b3 100644 --- a/compiler/test/__snapshots__/includes.6c8d23dc.0.snapshot +++ b/compiler/test/__snapshots__/includes.6c8d23dc.0.snapshot @@ -9,11 +9,11 @@ includes › include_some_multiple_trailing2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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_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_1122 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"GRAIN$EXPORT$x\" (global $x_1123 (mut i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"GRAIN$EXPORT$y\" (global $y_1122 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"y\" (func $y_1122 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -46,5 +46,5 @@ includes › include_some_multiple_trailing2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 367 + ;; custom section \"cmi\", size 376 ) diff --git a/compiler/test/__snapshots__/includes.6e78c003.0.snapshot b/compiler/test/__snapshots__/includes.6e78c003.0.snapshot index 343b1a594c..3768b98f09 100644 --- a/compiler/test/__snapshots__/includes.6e78c003.0.snapshot +++ b/compiler/test/__snapshots__/includes.6e78c003.0.snapshot @@ -9,11 +9,11 @@ includes › include_some_multiple_trailing (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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_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_1122 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"GRAIN$EXPORT$x\" (global $x_1123 (mut i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"GRAIN$EXPORT$y\" (global $y_1122 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"y\" (func $y_1122 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -46,5 +46,5 @@ includes › include_some_multiple_trailing (call $_gmain) ) ) - ;; custom section \"cmi\", size 367 + ;; custom section \"cmi\", size 376 ) diff --git a/compiler/test/__snapshots__/includes.7afbe731.0.snapshot b/compiler/test/__snapshots__/includes.7afbe731.0.snapshot index e91d7927d2..068198b28b 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\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1122 (mut i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"GRAIN$EXPORT$x\" (global $x_1122 (mut i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -32,5 +32,5 @@ includes › include_some (call $_gmain) ) ) - ;; custom section \"cmi\", size 367 + ;; custom section \"cmi\", size 376 ) diff --git a/compiler/test/__snapshots__/includes.8222ee98.0.snapshot b/compiler/test/__snapshots__/includes.8222ee98.0.snapshot index 48af1c64c4..f19ddedd69 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\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1122 (mut i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"GRAIN$EXPORT$x\" (global $x_1122 (mut i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -32,5 +32,5 @@ includes › include_module (call $_gmain) ) ) - ;; custom section \"cmi\", size 367 + ;; custom section \"cmi\", size 376 ) diff --git a/compiler/test/__snapshots__/includes.86ff4075.0.snapshot b/compiler/test/__snapshots__/includes.86ff4075.0.snapshot index cdba2db589..97b7edd5e5 100644 --- a/compiler/test/__snapshots__/includes.86ff4075.0.snapshot +++ b/compiler/test/__snapshots__/includes.86ff4075.0.snapshot @@ -9,11 +9,11 @@ includes › include_alias_multiple (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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_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_1122 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"GRAIN$EXPORT$x\" (global $x_1123 (mut i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"GRAIN$EXPORT$y\" (global $y_1122 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"y\" (func $y_1122 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -46,5 +46,5 @@ includes › include_alias_multiple (call $_gmain) ) ) - ;; custom section \"cmi\", size 367 + ;; custom section \"cmi\", size 376 ) diff --git a/compiler/test/__snapshots__/includes.a3212bd0.0.snapshot b/compiler/test/__snapshots__/includes.a3212bd0.0.snapshot index 37d6bf9579..3bb1247e7a 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\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$nested/nested\" \"GRAIN$EXPORT$j\" (global $j_1116 (mut i32))) + (import \"GRAIN$MODULE$nested/nested.gr\" \"GRAIN$EXPORT$j\" (global $j_1116 (mut i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -32,5 +32,5 @@ includes › include_relative_path3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 381 + ;; custom section \"cmi\", size 390 ) diff --git a/compiler/test/__snapshots__/includes.b3434679.0.snapshot b/compiler/test/__snapshots__/includes.b3434679.0.snapshot index ae8c3782c8..aebdfb692f 100644 --- a/compiler/test/__snapshots__/includes.b3434679.0.snapshot +++ b/compiler/test/__snapshots__/includes.b3434679.0.snapshot @@ -9,8 +9,8 @@ includes › include_some_constructor (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -104,5 +104,5 @@ includes › include_some_constructor (call $_gmain) ) ) - ;; custom section \"cmi\", size 363 + ;; custom section \"cmi\", size 372 ) diff --git a/compiler/test/__snapshots__/includes.bd3eb3af.0.snapshot b/compiler/test/__snapshots__/includes.bd3eb3af.0.snapshot index 5d08fb3bb5..459dfc9244 100644 --- a/compiler/test/__snapshots__/includes.bd3eb3af.0.snapshot +++ b/compiler/test/__snapshots__/includes.bd3eb3af.0.snapshot @@ -9,12 +9,12 @@ includes › include_some_mixed (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$tlists\" \"sum\" (func $sum_1120 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$tlists.gr\" \"GRAIN$EXPORT$sum\" (global $sum_1120 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$tlists.gr\" \"sum\" (func $sum_1120 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -122,5 +122,5 @@ includes › include_some_mixed (call $_gmain) ) ) - ;; custom section \"cmi\", size 363 + ;; custom section \"cmi\", size 372 ) diff --git a/compiler/test/__snapshots__/includes.beda767e.0.snapshot b/compiler/test/__snapshots__/includes.beda767e.0.snapshot index 7879958097..27afcb9d78 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\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$../test-libs/provideAll\" \"GRAIN$EXPORT$x\" (global $x_1122 (mut i32))) + (import \"GRAIN$MODULE$../test-libs/provideAll.gr\" \"GRAIN$EXPORT$x\" (global $x_1122 (mut i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -32,5 +32,5 @@ includes › include_relative_path1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 392 + ;; custom section \"cmi\", size 401 ) diff --git a/compiler/test/__snapshots__/includes.c0c0d5ca.0.snapshot b/compiler/test/__snapshots__/includes.c0c0d5ca.0.snapshot index 7193ed3685..4d9fcf1186 100644 --- a/compiler/test/__snapshots__/includes.c0c0d5ca.0.snapshot +++ b/compiler/test/__snapshots__/includes.c0c0d5ca.0.snapshot @@ -10,14 +10,14 @@ includes › include_relative_path4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$./bar/bar\" \"GRAIN$EXPORT$bar\" (global $bar_1119 (mut i32))) - (import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$print\" (global $print_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$./bar/bar\" \"bar\" (func $bar_1119 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"print\" (func $print_1116 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$./bar/bar.gr\" \"GRAIN$EXPORT$bar\" (global $bar_1119 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$print\" (global $print_1116 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$./bar/bar.gr\" \"bar\" (func $bar_1119 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"print\" (func $print_1116 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -97,5 +97,5 @@ includes › include_relative_path4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 365 + ;; custom section \"cmi\", size 374 ) diff --git a/compiler/test/__snapshots__/includes.c62f45f8.0.snapshot b/compiler/test/__snapshots__/includes.c62f45f8.0.snapshot index 04d600a07d..ae318ebb8b 100644 --- a/compiler/test/__snapshots__/includes.c62f45f8.0.snapshot +++ b/compiler/test/__snapshots__/includes.c62f45f8.0.snapshot @@ -9,11 +9,11 @@ includes › include_muliple_modules (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"GRAIN$EXPORT$x\" (global $x_1130 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -110,5 +110,5 @@ includes › include_muliple_modules (call $_gmain) ) ) - ;; custom section \"cmi\", size 413 + ;; custom section \"cmi\", size 425 ) diff --git a/compiler/test/__snapshots__/includes.cedde8e9.0.snapshot b/compiler/test/__snapshots__/includes.cedde8e9.0.snapshot index 9e7b5afa4a..3e180c4b0d 100644 --- a/compiler/test/__snapshots__/includes.cedde8e9.0.snapshot +++ b/compiler/test/__snapshots__/includes.cedde8e9.0.snapshot @@ -9,8 +9,8 @@ includes › include_same_module_unify (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -104,5 +104,5 @@ includes › include_same_module_unify (call $_gmain) ) ) - ;; custom section \"cmi\", size 363 + ;; custom section \"cmi\", size 372 ) diff --git a/compiler/test/__snapshots__/includes.de6b420f.0.snapshot b/compiler/test/__snapshots__/includes.de6b420f.0.snapshot index 7632200bb2..e05f891eae 100644 --- a/compiler/test/__snapshots__/includes.de6b420f.0.snapshot +++ b/compiler/test/__snapshots__/includes.de6b420f.0.snapshot @@ -9,8 +9,8 @@ includes › annotation_across_import (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ includes › annotation_across_import (call $_gmain) ) ) - ;; custom section \"cmi\", size 363 + ;; custom section \"cmi\", size 372 ) diff --git a/compiler/test/__snapshots__/includes.f2bf866b.0.snapshot b/compiler/test/__snapshots__/includes.f2bf866b.0.snapshot index 00c4d9b16b..19cafeebf4 100644 --- a/compiler/test/__snapshots__/includes.f2bf866b.0.snapshot +++ b/compiler/test/__snapshots__/includes.f2bf866b.0.snapshot @@ -9,8 +9,8 @@ includes › include_all_constructor (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -104,5 +104,5 @@ includes › include_all_constructor (call $_gmain) ) ) - ;; custom section \"cmi\", size 363 + ;; custom section \"cmi\", size 372 ) diff --git a/compiler/test/__snapshots__/includes.f4ba5583.0.snapshot b/compiler/test/__snapshots__/includes.f4ba5583.0.snapshot index 96d5ed769f..d7789bc435 100644 --- a/compiler/test/__snapshots__/includes.f4ba5583.0.snapshot +++ b/compiler/test/__snapshots__/includes.f4ba5583.0.snapshot @@ -9,11 +9,11 @@ includes › include_module2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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_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_1122 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"GRAIN$EXPORT$x\" (global $x_1123 (mut i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"GRAIN$EXPORT$y\" (global $y_1122 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"y\" (func $y_1122 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -46,5 +46,5 @@ includes › include_module2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 367 + ;; custom section \"cmi\", size 376 ) diff --git a/compiler/test/__snapshots__/let_mut.00e05fe2.0.snapshot b/compiler/test/__snapshots__/let_mut.00e05fe2.0.snapshot index f8cad26c54..561567a327 100644 --- a/compiler/test/__snapshots__/let_mut.00e05fe2.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.00e05fe2.0.snapshot @@ -10,12 +10,12 @@ let mut › let-mut_division1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$/\" (global $/_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"/\" (func $/_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -81,5 +81,5 @@ let mut › let-mut_division1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/let_mut.1176df90.0.snapshot b/compiler/test/__snapshots__/let_mut.1176df90.0.snapshot index 66f67ec84b..293e70a010 100644 --- a/compiler/test/__snapshots__/let_mut.1176df90.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.1176df90.0.snapshot @@ -10,12 +10,12 @@ let mut › let-mut_multiplication2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$*\" (global $*_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"*\" (func $*_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -89,5 +89,5 @@ let mut › let-mut_multiplication2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/let_mut.3307d5a7.0.snapshot b/compiler/test/__snapshots__/let_mut.3307d5a7.0.snapshot index e596fae9df..2eaaa5f29b 100644 --- a/compiler/test/__snapshots__/let_mut.3307d5a7.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.3307d5a7.0.snapshot @@ -9,10 +9,10 @@ let mut › let-mut3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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\" \"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.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -68,5 +68,5 @@ let mut › let-mut3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/let_mut.43f6980c.0.snapshot b/compiler/test/__snapshots__/let_mut.43f6980c.0.snapshot index 0d5a7e9d4a..90d0b863cc 100644 --- a/compiler/test/__snapshots__/let_mut.43f6980c.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.43f6980c.0.snapshot @@ -10,12 +10,12 @@ let mut › let-mut_division3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$/\" (global $/_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"/\" (func $/_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -89,5 +89,5 @@ let mut › let-mut_division3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/let_mut.48249b50.0.snapshot b/compiler/test/__snapshots__/let_mut.48249b50.0.snapshot index 356eacd444..5b10cb169a 100644 --- a/compiler/test/__snapshots__/let_mut.48249b50.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.48249b50.0.snapshot @@ -10,12 +10,12 @@ let mut › let-mut5 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$-\" (global $-_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"-\" (func $-_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -89,5 +89,5 @@ let mut › let-mut5 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/let_mut.4c3f3b2b.0.snapshot b/compiler/test/__snapshots__/let_mut.4c3f3b2b.0.snapshot index 793b664dfb..f80320c6b0 100644 --- a/compiler/test/__snapshots__/let_mut.4c3f3b2b.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.4c3f3b2b.0.snapshot @@ -9,8 +9,8 @@ let mut › let-mut2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -96,5 +96,5 @@ let mut › let-mut2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/let_mut.4c75261e.0.snapshot b/compiler/test/__snapshots__/let_mut.4c75261e.0.snapshot index 6ca1b9c52b..36b1b71324 100644 --- a/compiler/test/__snapshots__/let_mut.4c75261e.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.4c75261e.0.snapshot @@ -10,12 +10,12 @@ let mut › let-mut_multiplication1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$*\" (global $*_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"*\" (func $*_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -81,5 +81,5 @@ let mut › let-mut_multiplication1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/let_mut.634331f0.0.snapshot b/compiler/test/__snapshots__/let_mut.634331f0.0.snapshot index 657c685d82..fb3b38766e 100644 --- a/compiler/test/__snapshots__/let_mut.634331f0.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.634331f0.0.snapshot @@ -10,12 +10,12 @@ let mut › let-mut_multiplication3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$*\" (global $*_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"*\" (func $*_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -89,5 +89,5 @@ let mut › let-mut_multiplication3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/let_mut.63c16374.0.snapshot b/compiler/test/__snapshots__/let_mut.63c16374.0.snapshot index ae1d2dbcf1..a458680e1c 100644 --- a/compiler/test/__snapshots__/let_mut.63c16374.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.63c16374.0.snapshot @@ -9,10 +9,10 @@ let mut › let-mut4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -68,5 +68,5 @@ let mut › let-mut4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/let_mut.6796c72d.0.snapshot b/compiler/test/__snapshots__/let_mut.6796c72d.0.snapshot index 1c3f00f5cc..42c60965aa 100644 --- a/compiler/test/__snapshots__/let_mut.6796c72d.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.6796c72d.0.snapshot @@ -10,12 +10,12 @@ let mut › let-mut_subtraction1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$-\" (global $-_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"-\" (func $-_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -81,5 +81,5 @@ let mut › let-mut_subtraction1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/let_mut.baaea1d3.0.snapshot b/compiler/test/__snapshots__/let_mut.baaea1d3.0.snapshot index 57f9cb2619..e8386d3392 100644 --- a/compiler/test/__snapshots__/let_mut.baaea1d3.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.baaea1d3.0.snapshot @@ -10,12 +10,12 @@ let mut › let-mut_subtraction2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$-\" (global $-_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"-\" (func $-_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -89,5 +89,5 @@ let mut › let-mut_subtraction2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/let_mut.cbbbaeb4.0.snapshot b/compiler/test/__snapshots__/let_mut.cbbbaeb4.0.snapshot index ebc2511c26..29a6dddcda 100644 --- a/compiler/test/__snapshots__/let_mut.cbbbaeb4.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.cbbbaeb4.0.snapshot @@ -10,12 +10,12 @@ let mut › let-mut_addition2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -89,5 +89,5 @@ let mut › let-mut_addition2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/let_mut.d2de286b.0.snapshot b/compiler/test/__snapshots__/let_mut.d2de286b.0.snapshot index 0638cc8f20..4032c2ae53 100644 --- a/compiler/test/__snapshots__/let_mut.d2de286b.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.d2de286b.0.snapshot @@ -10,12 +10,12 @@ let mut › let-mut_addition1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -81,5 +81,5 @@ let mut › let-mut_addition1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/let_mut.e90db621.0.snapshot b/compiler/test/__snapshots__/let_mut.e90db621.0.snapshot index 4c75bbeb60..19c4ccddab 100644 --- a/compiler/test/__snapshots__/let_mut.e90db621.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.e90db621.0.snapshot @@ -10,12 +10,12 @@ let mut › let-mut_subtraction3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$-\" (global $-_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"-\" (func $-_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -89,5 +89,5 @@ let mut › let-mut_subtraction3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/let_mut.f8f208a2.0.snapshot b/compiler/test/__snapshots__/let_mut.f8f208a2.0.snapshot index 46ba6ff048..958ba50718 100644 --- a/compiler/test/__snapshots__/let_mut.f8f208a2.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.f8f208a2.0.snapshot @@ -10,12 +10,12 @@ let mut › let-mut_addition3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -89,5 +89,5 @@ let mut › let-mut_addition3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/let_mut.f9e32f30.0.snapshot b/compiler/test/__snapshots__/let_mut.f9e32f30.0.snapshot index 1146484abb..f5d50d280b 100644 --- a/compiler/test/__snapshots__/let_mut.f9e32f30.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.f9e32f30.0.snapshot @@ -10,12 +10,12 @@ let mut › let-mut_division2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$/\" (global $/_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"/\" (func $/_1117 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -89,5 +89,5 @@ let mut › let-mut_division2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/let_mut.fcc9c65d.0.snapshot b/compiler/test/__snapshots__/let_mut.fcc9c65d.0.snapshot index b2f298a263..2b0db2ae93 100644 --- a/compiler/test/__snapshots__/let_mut.fcc9c65d.0.snapshot +++ b/compiler/test/__snapshots__/let_mut.fcc9c65d.0.snapshot @@ -39,5 +39,5 @@ let mut › let-mut1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/lists.884ce894.0.snapshot b/compiler/test/__snapshots__/lists.884ce894.0.snapshot index 1e8fa3c64e..e55cb52630 100644 --- a/compiler/test/__snapshots__/lists.884ce894.0.snapshot +++ b/compiler/test/__snapshots__/lists.884ce894.0.snapshot @@ -9,8 +9,8 @@ lists › list_spread (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -233,5 +233,5 @@ lists › list_spread (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/lists.d9fd46fb.0.snapshot b/compiler/test/__snapshots__/lists.d9fd46fb.0.snapshot index b2301f148a..fc0109d583 100644 --- a/compiler/test/__snapshots__/lists.d9fd46fb.0.snapshot +++ b/compiler/test/__snapshots__/lists.d9fd46fb.0.snapshot @@ -9,8 +9,8 @@ lists › list1_trailing_space (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -190,5 +190,5 @@ lists › list1_trailing_space (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/lists.e5378351.0.snapshot b/compiler/test/__snapshots__/lists.e5378351.0.snapshot index 65f73a9e48..79745c7c2f 100644 --- a/compiler/test/__snapshots__/lists.e5378351.0.snapshot +++ b/compiler/test/__snapshots__/lists.e5378351.0.snapshot @@ -9,8 +9,8 @@ lists › list1_trailing (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -190,5 +190,5 @@ lists › list1_trailing (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/loops.0a25def1.0.snapshot b/compiler/test/__snapshots__/loops.0a25def1.0.snapshot index 2e612c8a3b..f1b27a7df8 100644 --- a/compiler/test/__snapshots__/loops.0a25def1.0.snapshot +++ b/compiler/test/__snapshots__/loops.0a25def1.0.snapshot @@ -10,18 +10,18 @@ loops › loop2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $>_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))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$>\" (global $>_1128 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1125 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$-\" (global $-_1120 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \">\" (func $>_1128 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1125 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"-\" (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)) @@ -257,5 +257,5 @@ loops › loop2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/loops.0fafc5f0.0.snapshot b/compiler/test/__snapshots__/loops.0fafc5f0.0.snapshot index a49f3be177..9d160a4672 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\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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 $>=_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 $>=_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))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$>=\" (global $>=_1126 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$-\" (global $-_1124 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1120 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \">=\" (func $>=_1126 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"-\" (func $-_1124 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (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)) @@ -182,5 +182,5 @@ loops › loop5 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/loops.c2b7bfc6.0.snapshot b/compiler/test/__snapshots__/loops.c2b7bfc6.0.snapshot index 0f4e69dfe2..15ce2c80b1 100644 --- a/compiler/test/__snapshots__/loops.c2b7bfc6.0.snapshot +++ b/compiler/test/__snapshots__/loops.c2b7bfc6.0.snapshot @@ -10,14 +10,14 @@ loops › loop3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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 $>_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 $>_1120 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"-\" (func $-_1118 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$>\" (global $>_1120 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$-\" (global $-_1118 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \">\" (func $>_1120 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"-\" (func $-_1118 (param i32 i32 i32) (result i32))) (global $b_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -130,5 +130,5 @@ loops › loop3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/loops.f1c03b79.0.snapshot b/compiler/test/__snapshots__/loops.f1c03b79.0.snapshot index 4680dbb736..23f29089d9 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\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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 $>_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 $>_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))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$>\" (global $>_1126 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1124 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$-\" (global $-_1120 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \">\" (func $>_1126 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1124 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"-\" (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)) @@ -182,5 +182,5 @@ loops › loop4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/modules.52d25a2f.0.snapshot b/compiler/test/__snapshots__/modules.52d25a2f.0.snapshot index de3a6c2835..b73f81fa8e 100644 --- a/compiler/test/__snapshots__/modules.52d25a2f.0.snapshot +++ b/compiler/test/__snapshots__/modules.52d25a2f.0.snapshot @@ -31,5 +31,5 @@ modules › smallest_submodule (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/optimizations.d72b00c6.0.snapshot b/compiler/test/__snapshots__/optimizations.d72b00c6.0.snapshot index cc2868a6fb..481dcf69b4 100644 --- a/compiler/test/__snapshots__/optimizations.d72b00c6.0.snapshot +++ b/compiler/test/__snapshots__/optimizations.d72b00c6.0.snapshot @@ -10,10 +10,10 @@ optimizations › trs1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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$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/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $f1_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -82,5 +82,5 @@ optimizations › trs1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/optimizations.ff6d5bfb.0.snapshot b/compiler/test/__snapshots__/optimizations.ff6d5bfb.0.snapshot index 96f5a12784..8b3ae2358b 100644 --- a/compiler/test/__snapshots__/optimizations.ff6d5bfb.0.snapshot +++ b/compiler/test/__snapshots__/optimizations.ff6d5bfb.0.snapshot @@ -10,14 +10,14 @@ optimizations › test_dead_branch_elimination_5 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1126 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1126 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (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)) @@ -176,5 +176,5 @@ optimizations › test_dead_branch_elimination_5 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.0539d13e.0.snapshot b/compiler/test/__snapshots__/pattern_matching.0539d13e.0.snapshot index 9cf097dfe8..4df0d154d2 100644 --- a/compiler/test/__snapshots__/pattern_matching.0539d13e.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.0539d13e.0.snapshot @@ -10,14 +10,14 @@ pattern matching › record_match_3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1125 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1125 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -226,5 +226,5 @@ pattern matching › record_match_3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 592 + ;; custom section \"cmi\", size 598 ) diff --git a/compiler/test/__snapshots__/pattern_matching.05b60a1e.0.snapshot b/compiler/test/__snapshots__/pattern_matching.05b60a1e.0.snapshot index fea65d6dc7..61ff00f874 100644 --- a/compiler/test/__snapshots__/pattern_matching.05b60a1e.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.05b60a1e.0.snapshot @@ -9,12 +9,12 @@ pattern matching › adt_match_deep (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -347,5 +347,5 @@ pattern matching › adt_match_deep (call $_gmain) ) ) - ;; custom section \"cmi\", size 435 + ;; custom section \"cmi\", size 441 ) diff --git a/compiler/test/__snapshots__/pattern_matching.0ad4ac05.0.snapshot b/compiler/test/__snapshots__/pattern_matching.0ad4ac05.0.snapshot index 95606f3c06..a6d8e5acc1 100644 --- a/compiler/test/__snapshots__/pattern_matching.0ad4ac05.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.0ad4ac05.0.snapshot @@ -10,14 +10,14 @@ pattern matching › tuple_match_deep4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1153 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1153 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1153 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -1256,5 +1256,5 @@ pattern matching › tuple_match_deep4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.0bb6923e.0.snapshot b/compiler/test/__snapshots__/pattern_matching.0bb6923e.0.snapshot index 0c345cb0c7..45f8881dd1 100644 --- a/compiler/test/__snapshots__/pattern_matching.0bb6923e.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.0bb6923e.0.snapshot @@ -10,14 +10,14 @@ pattern matching › adt_match_4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1149 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1149 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1149 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -977,5 +977,5 @@ pattern matching › adt_match_4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.0fa61137.0.snapshot b/compiler/test/__snapshots__/pattern_matching.0fa61137.0.snapshot index 4d201f9463..f7b4308b7a 100644 --- a/compiler/test/__snapshots__/pattern_matching.0fa61137.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.0fa61137.0.snapshot @@ -10,12 +10,12 @@ pattern matching › low_level_constant_match_2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$pervasives\" \"GRAIN$EXPORT$print\" (global $print_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$pervasives\" \"print\" (func $print_1116 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$print\" (global $print_1116 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"print\" (func $print_1116 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -238,5 +238,5 @@ pattern matching › low_level_constant_match_2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.14dc7554.0.snapshot b/compiler/test/__snapshots__/pattern_matching.14dc7554.0.snapshot index 9ac69f2a3a..aa384e3b28 100644 --- a/compiler/test/__snapshots__/pattern_matching.14dc7554.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.14dc7554.0.snapshot @@ -9,12 +9,12 @@ pattern matching › record_match_2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -200,5 +200,5 @@ pattern matching › record_match_2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 592 + ;; custom section \"cmi\", size 598 ) diff --git a/compiler/test/__snapshots__/pattern_matching.16cd197e.0.snapshot b/compiler/test/__snapshots__/pattern_matching.16cd197e.0.snapshot index 95492dd551..a83c7b295c 100644 --- a/compiler/test/__snapshots__/pattern_matching.16cd197e.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.16cd197e.0.snapshot @@ -10,12 +10,12 @@ pattern matching › constant_match_3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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/equal\" \"GRAIN$EXPORT$equal\" (global $GRAIN$EXPORT$equal_0 (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/equal\" \"equal\" (func $equal_0 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/equal.gr\" \"GRAIN$EXPORT$equal\" (global $GRAIN$EXPORT$equal_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/equal.gr\" \"equal\" (func $equal_0 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -173,5 +173,5 @@ pattern matching › constant_match_3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.16eb3dbf.0.snapshot b/compiler/test/__snapshots__/pattern_matching.16eb3dbf.0.snapshot index c0739a8cdc..c92b9eb0ee 100644 --- a/compiler/test/__snapshots__/pattern_matching.16eb3dbf.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.16eb3dbf.0.snapshot @@ -10,14 +10,14 @@ pattern matching › guarded_match_2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1125 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1125 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -398,5 +398,5 @@ pattern matching › guarded_match_2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.25930935.0.snapshot b/compiler/test/__snapshots__/pattern_matching.25930935.0.snapshot index 9ab876394c..becedbd25c 100644 --- a/compiler/test/__snapshots__/pattern_matching.25930935.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.25930935.0.snapshot @@ -10,12 +10,12 @@ pattern matching › low_level_constant_match_3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$pervasives\" \"GRAIN$EXPORT$print\" (global $print_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$pervasives\" \"print\" (func $print_1116 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$print\" (global $print_1116 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"print\" (func $print_1116 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -238,5 +238,5 @@ pattern matching › low_level_constant_match_3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.3722b060.0.snapshot b/compiler/test/__snapshots__/pattern_matching.3722b060.0.snapshot index f071be3595..94a48f2246 100644 --- a/compiler/test/__snapshots__/pattern_matching.3722b060.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.3722b060.0.snapshot @@ -10,14 +10,14 @@ pattern matching › tuple_match_deep (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1131 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1131 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1131 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -421,5 +421,5 @@ pattern matching › tuple_match_deep (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.46f91987.0.snapshot b/compiler/test/__snapshots__/pattern_matching.46f91987.0.snapshot index 8d40de38ad..e9a7c85556 100644 --- a/compiler/test/__snapshots__/pattern_matching.46f91987.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.46f91987.0.snapshot @@ -9,12 +9,12 @@ pattern matching › record_match_1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -200,5 +200,5 @@ pattern matching › record_match_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 592 + ;; custom section \"cmi\", size 598 ) diff --git a/compiler/test/__snapshots__/pattern_matching.5b158103.0.snapshot b/compiler/test/__snapshots__/pattern_matching.5b158103.0.snapshot index 78d8877b02..6af5aa3e3d 100644 --- a/compiler/test/__snapshots__/pattern_matching.5b158103.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.5b158103.0.snapshot @@ -10,14 +10,14 @@ pattern matching › constant_match_2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$runtime/equal\" \"GRAIN$EXPORT$equal\" (global $GRAIN$EXPORT$equal_0 (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$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/equal.gr\" \"GRAIN$EXPORT$equal\" (global $GRAIN$EXPORT$equal_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/equal.gr\" \"equal\" (func $equal_0 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -458,5 +458,5 @@ pattern matching › constant_match_2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.5b6ff2d3.0.snapshot b/compiler/test/__snapshots__/pattern_matching.5b6ff2d3.0.snapshot index bffd9162e9..08cf7de3b4 100644 --- a/compiler/test/__snapshots__/pattern_matching.5b6ff2d3.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.5b6ff2d3.0.snapshot @@ -10,14 +10,14 @@ pattern matching › alias_match_5 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$runtime/equal\" \"GRAIN$EXPORT$equal\" (global $GRAIN$EXPORT$equal_0 (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$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/equal.gr\" \"GRAIN$EXPORT$equal\" (global $GRAIN$EXPORT$equal_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/equal.gr\" \"equal\" (func $equal_0 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -477,5 +477,5 @@ pattern matching › alias_match_5 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.5ff49e44.0.snapshot b/compiler/test/__snapshots__/pattern_matching.5ff49e44.0.snapshot index 31b8fd7876..761be7fa3d 100644 --- a/compiler/test/__snapshots__/pattern_matching.5ff49e44.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.5ff49e44.0.snapshot @@ -10,14 +10,14 @@ pattern matching › record_match_4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1126 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1126 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1126 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -307,5 +307,5 @@ pattern matching › record_match_4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 592 + ;; custom section \"cmi\", size 598 ) diff --git a/compiler/test/__snapshots__/pattern_matching.64686134.0.snapshot b/compiler/test/__snapshots__/pattern_matching.64686134.0.snapshot index d8edd3e351..455c9be049 100644 --- a/compiler/test/__snapshots__/pattern_matching.64686134.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.64686134.0.snapshot @@ -10,14 +10,14 @@ pattern matching › constant_match_1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$runtime/equal\" \"GRAIN$EXPORT$equal\" (global $GRAIN$EXPORT$equal_0 (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$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/equal.gr\" \"GRAIN$EXPORT$equal\" (global $GRAIN$EXPORT$equal_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/equal.gr\" \"equal\" (func $equal_0 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -331,5 +331,5 @@ pattern matching › constant_match_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.702ed9b0.0.snapshot b/compiler/test/__snapshots__/pattern_matching.702ed9b0.0.snapshot index 577ea21f96..41be358d34 100644 --- a/compiler/test/__snapshots__/pattern_matching.702ed9b0.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.702ed9b0.0.snapshot @@ -10,14 +10,14 @@ pattern matching › tuple_match_deep6 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1157 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1157 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1157 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -1342,5 +1342,5 @@ pattern matching › tuple_match_deep6 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.7082d3ca.0.snapshot b/compiler/test/__snapshots__/pattern_matching.7082d3ca.0.snapshot index 4ccf732593..776641deb8 100644 --- a/compiler/test/__snapshots__/pattern_matching.7082d3ca.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.7082d3ca.0.snapshot @@ -9,12 +9,12 @@ pattern matching › tuple_match_3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -297,5 +297,5 @@ pattern matching › tuple_match_3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.79346fef.0.snapshot b/compiler/test/__snapshots__/pattern_matching.79346fef.0.snapshot index 4e16fc7afb..b5db7d5abe 100644 --- a/compiler/test/__snapshots__/pattern_matching.79346fef.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.79346fef.0.snapshot @@ -10,14 +10,14 @@ pattern matching › tuple_match_deep3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1151 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1151 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1151 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -1213,5 +1213,5 @@ pattern matching › tuple_match_deep3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.7f7fe4ef.0.snapshot b/compiler/test/__snapshots__/pattern_matching.7f7fe4ef.0.snapshot index e4914e9f5f..a90de13916 100644 --- a/compiler/test/__snapshots__/pattern_matching.7f7fe4ef.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.7f7fe4ef.0.snapshot @@ -75,5 +75,5 @@ pattern matching › alias_match_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.8614dff3.0.snapshot b/compiler/test/__snapshots__/pattern_matching.8614dff3.0.snapshot index 1b05c51811..277f779961 100644 --- a/compiler/test/__snapshots__/pattern_matching.8614dff3.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.8614dff3.0.snapshot @@ -102,5 +102,5 @@ pattern matching › alias_match_2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.8c0dc67a.0.snapshot b/compiler/test/__snapshots__/pattern_matching.8c0dc67a.0.snapshot index 3f91d7b6ce..73af2e2426 100644 --- a/compiler/test/__snapshots__/pattern_matching.8c0dc67a.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.8c0dc67a.0.snapshot @@ -10,14 +10,14 @@ pattern matching › adt_match_1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1143 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1143 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1143 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -848,5 +848,5 @@ pattern matching › adt_match_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.9561763b.0.snapshot b/compiler/test/__snapshots__/pattern_matching.9561763b.0.snapshot index 6be6ab0384..8a69d6191f 100644 --- a/compiler/test/__snapshots__/pattern_matching.9561763b.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.9561763b.0.snapshot @@ -10,14 +10,14 @@ pattern matching › tuple_match_deep2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1149 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1149 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1149 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -787,5 +787,5 @@ pattern matching › tuple_match_deep2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.98756c45.0.snapshot b/compiler/test/__snapshots__/pattern_matching.98756c45.0.snapshot index d12747e4e6..0cc6b7527d 100644 --- a/compiler/test/__snapshots__/pattern_matching.98756c45.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.98756c45.0.snapshot @@ -9,12 +9,12 @@ pattern matching › record_match_deep (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -221,5 +221,5 @@ pattern matching › record_match_deep (call $_gmain) ) ) - ;; custom section \"cmi\", size 555 + ;; custom section \"cmi\", size 561 ) diff --git a/compiler/test/__snapshots__/pattern_matching.9ffaa7a7.0.snapshot b/compiler/test/__snapshots__/pattern_matching.9ffaa7a7.0.snapshot index 8de6fad03f..f815ef2016 100644 --- a/compiler/test/__snapshots__/pattern_matching.9ffaa7a7.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.9ffaa7a7.0.snapshot @@ -10,12 +10,12 @@ pattern matching › low_level_constant_match_4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$pervasives\" \"GRAIN$EXPORT$print\" (global $print_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$pervasives\" \"print\" (func $print_1116 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$print\" (global $print_1116 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"print\" (func $print_1116 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -238,5 +238,5 @@ pattern matching › low_level_constant_match_4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.aa8d2963.0.snapshot b/compiler/test/__snapshots__/pattern_matching.aa8d2963.0.snapshot index a8a78b2de4..e42bed72d4 100644 --- a/compiler/test/__snapshots__/pattern_matching.aa8d2963.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.aa8d2963.0.snapshot @@ -10,14 +10,14 @@ pattern matching › guarded_match_4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $==_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 $==_1126 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1126 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1126 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -427,5 +427,5 @@ pattern matching › guarded_match_4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.ac58ffc3.0.snapshot b/compiler/test/__snapshots__/pattern_matching.ac58ffc3.0.snapshot index 5d3703d6d2..1a58b5dae1 100644 --- a/compiler/test/__snapshots__/pattern_matching.ac58ffc3.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.ac58ffc3.0.snapshot @@ -10,14 +10,14 @@ pattern matching › guarded_match_1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1125 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1125 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -398,5 +398,5 @@ pattern matching › guarded_match_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.b1b060ad.0.snapshot b/compiler/test/__snapshots__/pattern_matching.b1b060ad.0.snapshot index e6c8dd8cd3..739b746621 100644 --- a/compiler/test/__snapshots__/pattern_matching.b1b060ad.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.b1b060ad.0.snapshot @@ -10,14 +10,14 @@ pattern matching › adt_match_2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1145 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1145 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1145 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -891,5 +891,5 @@ pattern matching › adt_match_2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.b9db0dd9.0.snapshot b/compiler/test/__snapshots__/pattern_matching.b9db0dd9.0.snapshot index c0f27d6c08..ccf3c04749 100644 --- a/compiler/test/__snapshots__/pattern_matching.b9db0dd9.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.b9db0dd9.0.snapshot @@ -10,14 +10,14 @@ pattern matching › guarded_match_3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $==_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 $==_1126 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1126 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1126 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -427,5 +427,5 @@ pattern matching › guarded_match_3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.be46eb0e.0.snapshot b/compiler/test/__snapshots__/pattern_matching.be46eb0e.0.snapshot index 844b6b2f89..2ae9dbbfb5 100644 --- a/compiler/test/__snapshots__/pattern_matching.be46eb0e.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.be46eb0e.0.snapshot @@ -10,12 +10,12 @@ pattern matching › low_level_constant_match_1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$pervasives\" \"GRAIN$EXPORT$print\" (global $print_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$pervasives\" \"print\" (func $print_1116 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$print\" (global $print_1116 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"print\" (func $print_1116 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -244,5 +244,5 @@ pattern matching › low_level_constant_match_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.c91eac29.0.snapshot b/compiler/test/__snapshots__/pattern_matching.c91eac29.0.snapshot index 2e7a0f3cf6..08fa51866c 100644 --- a/compiler/test/__snapshots__/pattern_matching.c91eac29.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.c91eac29.0.snapshot @@ -10,14 +10,14 @@ pattern matching › adt_match_3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1147 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1147 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1147 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -934,5 +934,5 @@ pattern matching › adt_match_3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.c9582b6d.0.snapshot b/compiler/test/__snapshots__/pattern_matching.c9582b6d.0.snapshot index b866f2ecc6..100e3758c8 100644 --- a/compiler/test/__snapshots__/pattern_matching.c9582b6d.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.c9582b6d.0.snapshot @@ -10,14 +10,14 @@ pattern matching › alias_match_4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$runtime/equal\" \"GRAIN$EXPORT$equal\" (global $GRAIN$EXPORT$equal_0 (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$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/equal.gr\" \"GRAIN$EXPORT$equal\" (global $GRAIN$EXPORT$equal_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/equal.gr\" \"equal\" (func $equal_0 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -360,5 +360,5 @@ pattern matching › alias_match_4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.d048ece0.0.snapshot b/compiler/test/__snapshots__/pattern_matching.d048ece0.0.snapshot index ee36c7e017..b84af04044 100644 --- a/compiler/test/__snapshots__/pattern_matching.d048ece0.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.d048ece0.0.snapshot @@ -10,14 +10,14 @@ pattern matching › adt_match_5 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1151 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1151 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1151 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -1020,5 +1020,5 @@ pattern matching › adt_match_5 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.e17bcd61.0.snapshot b/compiler/test/__snapshots__/pattern_matching.e17bcd61.0.snapshot index 1fb8adefba..4690d6faf3 100644 --- a/compiler/test/__snapshots__/pattern_matching.e17bcd61.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.e17bcd61.0.snapshot @@ -123,5 +123,5 @@ pattern matching › or_match_4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.e41ad64e.0.snapshot b/compiler/test/__snapshots__/pattern_matching.e41ad64e.0.snapshot index 4a51dd8202..92fb414775 100644 --- a/compiler/test/__snapshots__/pattern_matching.e41ad64e.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.e41ad64e.0.snapshot @@ -10,14 +10,14 @@ pattern matching › tuple_match_deep5 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1155 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1155 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1155 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -1299,5 +1299,5 @@ pattern matching › tuple_match_deep5 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.eb4334e1.0.snapshot b/compiler/test/__snapshots__/pattern_matching.eb4334e1.0.snapshot index 790d30e543..13ea7a4300 100644 --- a/compiler/test/__snapshots__/pattern_matching.eb4334e1.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.eb4334e1.0.snapshot @@ -10,16 +10,16 @@ pattern matching › constant_match_4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$runtime/equal\" \"GRAIN$EXPORT$equal\" (global $GRAIN$EXPORT$equal_0 (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 $==_1126 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/equal.gr\" \"GRAIN$EXPORT$equal\" (global $GRAIN$EXPORT$equal_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1126 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/equal.gr\" \"equal\" (func $equal_0 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1126 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -469,5 +469,5 @@ pattern matching › constant_match_4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.f0c08ea4.0.snapshot b/compiler/test/__snapshots__/pattern_matching.f0c08ea4.0.snapshot index 1e34f75b34..95eea4c966 100644 --- a/compiler/test/__snapshots__/pattern_matching.f0c08ea4.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.f0c08ea4.0.snapshot @@ -10,14 +10,14 @@ pattern matching › tuple_match_deep7 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1159 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1159 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1159 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -1385,5 +1385,5 @@ pattern matching › tuple_match_deep7 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.f25e0163.0.snapshot b/compiler/test/__snapshots__/pattern_matching.f25e0163.0.snapshot index 66fdc7d317..f7fbf9f089 100644 --- a/compiler/test/__snapshots__/pattern_matching.f25e0163.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.f25e0163.0.snapshot @@ -9,12 +9,12 @@ pattern matching › or_match_3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -575,5 +575,5 @@ pattern matching › or_match_3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.f3d48b0e.0.snapshot b/compiler/test/__snapshots__/pattern_matching.f3d48b0e.0.snapshot index b557e1074a..0d6ddf2c9c 100644 --- a/compiler/test/__snapshots__/pattern_matching.f3d48b0e.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.f3d48b0e.0.snapshot @@ -123,5 +123,5 @@ pattern matching › or_match_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/pattern_matching.f6c9c89c.0.snapshot b/compiler/test/__snapshots__/pattern_matching.f6c9c89c.0.snapshot index b67c27ca4c..9fcdc288a5 100644 --- a/compiler/test/__snapshots__/pattern_matching.f6c9c89c.0.snapshot +++ b/compiler/test/__snapshots__/pattern_matching.f6c9c89c.0.snapshot @@ -10,14 +10,14 @@ pattern matching › or_match_2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$runtime/equal\" \"GRAIN$EXPORT$equal\" (global $GRAIN$EXPORT$equal_0 (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$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/equal.gr\" \"GRAIN$EXPORT$equal\" (global $GRAIN$EXPORT$equal_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/equal.gr\" \"equal\" (func $equal_0 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -321,5 +321,5 @@ pattern matching › or_match_2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/provides.0ef7e7b3.0.snapshot b/compiler/test/__snapshots__/provides.0ef7e7b3.0.snapshot index e0c818d585..becbc1865b 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\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$provideAll\" \"GRAIN$EXPORT$x\" (global $x_1122 (mut i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"GRAIN$EXPORT$x\" (global $x_1122 (mut i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -32,5 +32,5 @@ provides › provide7 (call $_gmain) ) ) - ;; custom section \"cmi\", size 367 + ;; custom section \"cmi\", size 376 ) diff --git a/compiler/test/__snapshots__/provides.10f4f118.0.snapshot b/compiler/test/__snapshots__/provides.10f4f118.0.snapshot index e0fbfe82d3..a4bdbaf2ff 100644 --- a/compiler/test/__snapshots__/provides.10f4f118.0.snapshot +++ b/compiler/test/__snapshots__/provides.10f4f118.0.snapshot @@ -9,11 +9,11 @@ provides › provide9 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_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_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_1122 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"GRAIN$EXPORT$z\" (global $z_1123 (mut i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"GRAIN$EXPORT$y\" (global $y_1122 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"y\" (func $y_1122 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -46,5 +46,5 @@ provides › provide9 (call $_gmain) ) ) - ;; custom section \"cmi\", size 367 + ;; custom section \"cmi\", size 376 ) diff --git a/compiler/test/__snapshots__/provides.2a5f527b.0.snapshot b/compiler/test/__snapshots__/provides.2a5f527b.0.snapshot index d2da1b6a1e..06225e312f 100644 --- a/compiler/test/__snapshots__/provides.2a5f527b.0.snapshot +++ b/compiler/test/__snapshots__/provides.2a5f527b.0.snapshot @@ -41,5 +41,5 @@ provides › multiple_provides_8 (call $_gmain) ) ) - ;; custom section \"cmi\", size 1384 + ;; custom section \"cmi\", size 1390 ) diff --git a/compiler/test/__snapshots__/provides.30cbc409.0.snapshot b/compiler/test/__snapshots__/provides.30cbc409.0.snapshot index eb7420935b..d6b8325cea 100644 --- a/compiler/test/__snapshots__/provides.30cbc409.0.snapshot +++ b/compiler/test/__snapshots__/provides.30cbc409.0.snapshot @@ -10,14 +10,14 @@ provides › provide_start_function (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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_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_1117 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$print\" (global $print_1117 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"print\" (func $print_1117 (param i32 i32 i32) (result i32))) (global $_start_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -209,5 +209,5 @@ provides › provide_start_function (i32.const 1879048190) ) ) - ;; custom section \"cmi\", size 970 + ;; custom section \"cmi\", size 976 ) diff --git a/compiler/test/__snapshots__/provides.82c10ab4.0.snapshot b/compiler/test/__snapshots__/provides.82c10ab4.0.snapshot index 977ab98929..fe23ef975a 100644 --- a/compiler/test/__snapshots__/provides.82c10ab4.0.snapshot +++ b/compiler/test/__snapshots__/provides.82c10ab4.0.snapshot @@ -10,16 +10,16 @@ provides › provide12 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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_1198 (mut i32))) - (import \"GRAIN$MODULE$providedType\" \"GRAIN$EXPORT$apply\" (global $apply_1196 (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_1198 (param i32 i32 i32) (result i32))) - (import \"GRAIN$MODULE$providedType\" \"apply\" (func $apply_1196 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$print\" (global $print_1198 (mut i32))) + (import \"GRAIN$MODULE$providedType.gr\" \"GRAIN$EXPORT$apply\" (global $apply_1196 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"print\" (func $print_1198 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$providedType.gr\" \"apply\" (func $apply_1196 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 1)) (memory $0 0) (elem $elem (global.get $relocBase_0) $lam_lambda_1197) @@ -182,5 +182,5 @@ provides › provide12 (call $_gmain) ) ) - ;; custom section \"cmi\", size 369 + ;; custom section \"cmi\", size 378 ) diff --git a/compiler/test/__snapshots__/provides.c3bb4eff.0.snapshot b/compiler/test/__snapshots__/provides.c3bb4eff.0.snapshot index d1c1fda2b3..d288f94666 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\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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$provideAll\" \"y\" (func $y_1125 (param i32 i32) (result i32))) - (import \"GRAIN$MODULE$pervasives\" \"+\" (func $+_1122 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"GRAIN$EXPORT$y\" (global $y_1125 (mut i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"GRAIN$EXPORT$x\" (global $x_1123 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1122 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$provideAll.gr\" \"y\" (func $y_1125 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1122 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -64,5 +64,5 @@ provides › provide8 (call $_gmain) ) ) - ;; custom section \"cmi\", size 367 + ;; custom section \"cmi\", size 376 ) diff --git a/compiler/test/__snapshots__/provides.c6bf4567.0.snapshot b/compiler/test/__snapshots__/provides.c6bf4567.0.snapshot index 9ee171e1a7..e3833a81b0 100644 --- a/compiler/test/__snapshots__/provides.c6bf4567.0.snapshot +++ b/compiler/test/__snapshots__/provides.c6bf4567.0.snapshot @@ -10,8 +10,8 @@ provides › let_rec_provide (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $foo_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -69,5 +69,5 @@ provides › let_rec_provide (call $_gmain) ) ) - ;; custom section \"cmi\", size 954 + ;; custom section \"cmi\", size 960 ) diff --git a/compiler/test/__snapshots__/provides.f378d570.0.snapshot b/compiler/test/__snapshots__/provides.f378d570.0.snapshot index 27927107aa..e2ae800254 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\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$onlyXProvided\" \"GRAIN$EXPORT$x\" (global $x_1116 (mut i32))) + (import \"GRAIN$MODULE$onlyXProvided.gr\" \"GRAIN$EXPORT$x\" (global $x_1116 (mut i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -32,5 +32,5 @@ provides › provide4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 370 + ;; custom section \"cmi\", size 379 ) diff --git a/compiler/test/__snapshots__/records.012b017b.0.snapshot b/compiler/test/__snapshots__/records.012b017b.0.snapshot index 14e344745f..16a09f4b99 100644 --- a/compiler/test/__snapshots__/records.012b017b.0.snapshot +++ b/compiler/test/__snapshots__/records.012b017b.0.snapshot @@ -31,5 +31,5 @@ records › record_spread_2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 511 + ;; custom section \"cmi\", size 517 ) diff --git a/compiler/test/__snapshots__/records.02742729.0.snapshot b/compiler/test/__snapshots__/records.02742729.0.snapshot index 13f4807566..5553c147d6 100644 --- a/compiler/test/__snapshots__/records.02742729.0.snapshot +++ b/compiler/test/__snapshots__/records.02742729.0.snapshot @@ -10,14 +10,14 @@ records › record_get_multiple (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1118 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1118 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (func $+_1118 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -121,5 +121,5 @@ records › record_get_multiple (call $_gmain) ) ) - ;; custom section \"cmi\", size 511 + ;; custom section \"cmi\", size 517 ) diff --git a/compiler/test/__snapshots__/records.02af5946.0.snapshot b/compiler/test/__snapshots__/records.02af5946.0.snapshot index b9453753e0..32a4241d14 100644 --- a/compiler/test/__snapshots__/records.02af5946.0.snapshot +++ b/compiler/test/__snapshots__/records.02af5946.0.snapshot @@ -9,8 +9,8 @@ records › record_definition_trailing (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ records › record_definition_trailing (call $_gmain) ) ) - ;; custom section \"cmi\", size 1218 + ;; custom section \"cmi\", size 1224 ) diff --git a/compiler/test/__snapshots__/records.2dc39420.0.snapshot b/compiler/test/__snapshots__/records.2dc39420.0.snapshot index 1f75ec69bd..22a190dbf6 100644 --- a/compiler/test/__snapshots__/records.2dc39420.0.snapshot +++ b/compiler/test/__snapshots__/records.2dc39420.0.snapshot @@ -9,8 +9,8 @@ records › record_pun (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ records › record_pun (call $_gmain) ) ) - ;; custom section \"cmi\", size 1154 + ;; custom section \"cmi\", size 1160 ) diff --git a/compiler/test/__snapshots__/records.49dfc6ff.0.snapshot b/compiler/test/__snapshots__/records.49dfc6ff.0.snapshot index e3765e3122..a4517a19d8 100644 --- a/compiler/test/__snapshots__/records.49dfc6ff.0.snapshot +++ b/compiler/test/__snapshots__/records.49dfc6ff.0.snapshot @@ -9,12 +9,12 @@ records › record_destruct_1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $foo_1114 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -156,5 +156,5 @@ records › record_destruct_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 592 + ;; custom section \"cmi\", size 598 ) diff --git a/compiler/test/__snapshots__/records.54f5977c.0.snapshot b/compiler/test/__snapshots__/records.54f5977c.0.snapshot index b38d82a820..538a91e694 100644 --- a/compiler/test/__snapshots__/records.54f5977c.0.snapshot +++ b/compiler/test/__snapshots__/records.54f5977c.0.snapshot @@ -10,14 +10,14 @@ records › record_destruct_4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1126 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1126 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (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)) @@ -243,5 +243,5 @@ records › record_destruct_4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 592 + ;; custom section \"cmi\", size 598 ) diff --git a/compiler/test/__snapshots__/records.5f340064.0.snapshot b/compiler/test/__snapshots__/records.5f340064.0.snapshot index 1db42f7f2b..3b6cb8bd5b 100644 --- a/compiler/test/__snapshots__/records.5f340064.0.snapshot +++ b/compiler/test/__snapshots__/records.5f340064.0.snapshot @@ -9,8 +9,8 @@ records › record_value_trailing (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ records › record_value_trailing (call $_gmain) ) ) - ;; custom section \"cmi\", size 1198 + ;; custom section \"cmi\", size 1204 ) diff --git a/compiler/test/__snapshots__/records.60c0a141.0.snapshot b/compiler/test/__snapshots__/records.60c0a141.0.snapshot index a92d2e4d95..74d6bd8943 100644 --- a/compiler/test/__snapshots__/records.60c0a141.0.snapshot +++ b/compiler/test/__snapshots__/records.60c0a141.0.snapshot @@ -9,12 +9,12 @@ records › record_recursive_data_definition (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -312,5 +312,5 @@ records › record_recursive_data_definition (call $_gmain) ) ) - ;; custom section \"cmi\", size 555 + ;; custom section \"cmi\", size 561 ) diff --git a/compiler/test/__snapshots__/records.60c7acc4.0.snapshot b/compiler/test/__snapshots__/records.60c7acc4.0.snapshot index 98b6c9b6e2..4639691f71 100644 --- a/compiler/test/__snapshots__/records.60c7acc4.0.snapshot +++ b/compiler/test/__snapshots__/records.60c7acc4.0.snapshot @@ -9,8 +9,8 @@ records › record_pun_mixed_trailing (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -65,5 +65,5 @@ records › record_pun_mixed_trailing (call $_gmain) ) ) - ;; custom section \"cmi\", size 1645 + ;; custom section \"cmi\", size 1651 ) diff --git a/compiler/test/__snapshots__/records.63a951b8.0.snapshot b/compiler/test/__snapshots__/records.63a951b8.0.snapshot index 7803418dbe..5d223b1e6e 100644 --- a/compiler/test/__snapshots__/records.63a951b8.0.snapshot +++ b/compiler/test/__snapshots__/records.63a951b8.0.snapshot @@ -9,12 +9,12 @@ records › record_destruct_2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $bar_1114 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -156,5 +156,5 @@ records › record_destruct_2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 592 + ;; custom section \"cmi\", size 598 ) diff --git a/compiler/test/__snapshots__/records.89d08e01.0.snapshot b/compiler/test/__snapshots__/records.89d08e01.0.snapshot index a1e66334ee..632b666076 100644 --- a/compiler/test/__snapshots__/records.89d08e01.0.snapshot +++ b/compiler/test/__snapshots__/records.89d08e01.0.snapshot @@ -9,8 +9,8 @@ records › record_pun_trailing (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ records › record_pun_trailing (call $_gmain) ) ) - ;; custom section \"cmi\", size 1190 + ;; custom section \"cmi\", size 1196 ) diff --git a/compiler/test/__snapshots__/records.98824516.0.snapshot b/compiler/test/__snapshots__/records.98824516.0.snapshot index a378345f49..b167f94c75 100644 --- a/compiler/test/__snapshots__/records.98824516.0.snapshot +++ b/compiler/test/__snapshots__/records.98824516.0.snapshot @@ -9,12 +9,12 @@ records › record_destruct_deep (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $foo_1115 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) @@ -177,5 +177,5 @@ records › record_destruct_deep (call $_gmain) ) ) - ;; custom section \"cmi\", size 555 + ;; custom section \"cmi\", size 561 ) diff --git a/compiler/test/__snapshots__/records.a3299dd2.0.snapshot b/compiler/test/__snapshots__/records.a3299dd2.0.snapshot index d1f915a4dd..d9759bacf3 100644 --- a/compiler/test/__snapshots__/records.a3299dd2.0.snapshot +++ b/compiler/test/__snapshots__/records.a3299dd2.0.snapshot @@ -10,14 +10,14 @@ records › record_destruct_3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1125 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (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)) @@ -185,5 +185,5 @@ records › record_destruct_3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 592 + ;; custom section \"cmi\", size 598 ) diff --git a/compiler/test/__snapshots__/records.a702778a.0.snapshot b/compiler/test/__snapshots__/records.a702778a.0.snapshot index 89abde7019..685b489b66 100644 --- a/compiler/test/__snapshots__/records.a702778a.0.snapshot +++ b/compiler/test/__snapshots__/records.a702778a.0.snapshot @@ -9,12 +9,12 @@ records › record_get_multilevel (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -151,5 +151,5 @@ records › record_get_multilevel (call $_gmain) ) ) - ;; custom section \"cmi\", size 631 + ;; custom section \"cmi\", size 637 ) diff --git a/compiler/test/__snapshots__/records.a9c472b1.0.snapshot b/compiler/test/__snapshots__/records.a9c472b1.0.snapshot index 2a5da273c6..31835dc483 100644 --- a/compiler/test/__snapshots__/records.a9c472b1.0.snapshot +++ b/compiler/test/__snapshots__/records.a9c472b1.0.snapshot @@ -9,8 +9,8 @@ records › record_multiple_fields_definition_trailing (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -96,5 +96,5 @@ records › record_multiple_fields_definition_trailing (call $_gmain) ) ) - ;; custom section \"cmi\", size 2219 + ;; custom section \"cmi\", size 2225 ) diff --git a/compiler/test/__snapshots__/records.b50d234d.0.snapshot b/compiler/test/__snapshots__/records.b50d234d.0.snapshot index faa72d696b..8a8f45ff25 100644 --- a/compiler/test/__snapshots__/records.b50d234d.0.snapshot +++ b/compiler/test/__snapshots__/records.b50d234d.0.snapshot @@ -9,12 +9,12 @@ records › record_get_2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -91,5 +91,5 @@ records › record_get_2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 435 + ;; custom section \"cmi\", size 441 ) diff --git a/compiler/test/__snapshots__/records.d34c4740.0.snapshot b/compiler/test/__snapshots__/records.d34c4740.0.snapshot index d9a5ca9239..af197470b3 100644 --- a/compiler/test/__snapshots__/records.d34c4740.0.snapshot +++ b/compiler/test/__snapshots__/records.d34c4740.0.snapshot @@ -9,8 +9,8 @@ records › record_pun_mixed (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -65,5 +65,5 @@ records › record_pun_mixed (call $_gmain) ) ) - ;; custom section \"cmi\", size 1591 + ;; custom section \"cmi\", size 1597 ) diff --git a/compiler/test/__snapshots__/records.d393173c.0.snapshot b/compiler/test/__snapshots__/records.d393173c.0.snapshot index 52fdab3e8a..78fec4a3cc 100644 --- a/compiler/test/__snapshots__/records.d393173c.0.snapshot +++ b/compiler/test/__snapshots__/records.d393173c.0.snapshot @@ -10,14 +10,14 @@ records › record_destruct_trailing (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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 $+_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 $+_1126 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$+\" (global $+_1126 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"+\" (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)) @@ -243,5 +243,5 @@ records › record_destruct_trailing (call $_gmain) ) ) - ;; custom section \"cmi\", size 592 + ;; custom section \"cmi\", size 598 ) diff --git a/compiler/test/__snapshots__/records.d44e8007.0.snapshot b/compiler/test/__snapshots__/records.d44e8007.0.snapshot index f2ebd204c7..b1a3c587a6 100644 --- a/compiler/test/__snapshots__/records.d44e8007.0.snapshot +++ b/compiler/test/__snapshots__/records.d44e8007.0.snapshot @@ -9,8 +9,8 @@ records › record_pun_mixed_2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -65,5 +65,5 @@ records › record_pun_mixed_2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 1603 + ;; custom section \"cmi\", size 1609 ) diff --git a/compiler/test/__snapshots__/records.e4326567.0.snapshot b/compiler/test/__snapshots__/records.e4326567.0.snapshot index cf9420076e..5e541a8e54 100644 --- a/compiler/test/__snapshots__/records.e4326567.0.snapshot +++ b/compiler/test/__snapshots__/records.e4326567.0.snapshot @@ -9,8 +9,8 @@ records › record_multiple_fields_both_trailing (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -96,5 +96,5 @@ records › record_multiple_fields_both_trailing (call $_gmain) ) ) - ;; custom section \"cmi\", size 2171 + ;; custom section \"cmi\", size 2177 ) diff --git a/compiler/test/__snapshots__/records.e5b56da8.0.snapshot b/compiler/test/__snapshots__/records.e5b56da8.0.snapshot index c16280a9e9..e066740cfc 100644 --- a/compiler/test/__snapshots__/records.e5b56da8.0.snapshot +++ b/compiler/test/__snapshots__/records.e5b56da8.0.snapshot @@ -9,8 +9,8 @@ records › record_both_trailing (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ records › record_both_trailing (call $_gmain) ) ) - ;; custom section \"cmi\", size 1194 + ;; custom section \"cmi\", size 1200 ) diff --git a/compiler/test/__snapshots__/records.e705a980.0.snapshot b/compiler/test/__snapshots__/records.e705a980.0.snapshot index e52b92094f..e99cda7e64 100644 --- a/compiler/test/__snapshots__/records.e705a980.0.snapshot +++ b/compiler/test/__snapshots__/records.e705a980.0.snapshot @@ -9,8 +9,8 @@ records › record_pun_multiple (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -65,5 +65,5 @@ records › record_pun_multiple (call $_gmain) ) ) - ;; custom section \"cmi\", size 1609 + ;; custom section \"cmi\", size 1615 ) diff --git a/compiler/test/__snapshots__/records.f6e43cdb.0.snapshot b/compiler/test/__snapshots__/records.f6e43cdb.0.snapshot index 6dd8e1fafe..33acd37a89 100644 --- a/compiler/test/__snapshots__/records.f6e43cdb.0.snapshot +++ b/compiler/test/__snapshots__/records.f6e43cdb.0.snapshot @@ -9,8 +9,8 @@ records › record_pun_multiple_trailing (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -65,5 +65,5 @@ records › record_pun_multiple_trailing (call $_gmain) ) ) - ;; custom section \"cmi\", size 1663 + ;; custom section \"cmi\", size 1669 ) diff --git a/compiler/test/__snapshots__/records.f6feee77.0.snapshot b/compiler/test/__snapshots__/records.f6feee77.0.snapshot index cf4f9d870b..6c1a3072ac 100644 --- a/compiler/test/__snapshots__/records.f6feee77.0.snapshot +++ b/compiler/test/__snapshots__/records.f6feee77.0.snapshot @@ -9,8 +9,8 @@ records › record_multiple_fields_value_trailing (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -96,5 +96,5 @@ records › record_multiple_fields_value_trailing (call $_gmain) ) ) - ;; custom section \"cmi\", size 2179 + ;; custom section \"cmi\", size 2185 ) diff --git a/compiler/test/__snapshots__/records.fae50a8e.0.snapshot b/compiler/test/__snapshots__/records.fae50a8e.0.snapshot index d3b0ca044f..19552edcd5 100644 --- a/compiler/test/__snapshots__/records.fae50a8e.0.snapshot +++ b/compiler/test/__snapshots__/records.fae50a8e.0.snapshot @@ -9,8 +9,8 @@ records › record_pun_mixed_2_trailing (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -65,5 +65,5 @@ records › record_pun_mixed_2_trailing (call $_gmain) ) ) - ;; custom section \"cmi\", size 1657 + ;; custom section \"cmi\", size 1663 ) diff --git a/compiler/test/__snapshots__/stdlib.179d20b9.0.snapshot b/compiler/test/__snapshots__/stdlib.179d20b9.0.snapshot index adbdcdcf2f..c1a3e457d6 100644 --- a/compiler/test/__snapshots__/stdlib.179d20b9.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.179d20b9.0.snapshot @@ -10,10 +10,10 @@ stdlib › stdlib_equal_4 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ stdlib › stdlib_equal_4 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/stdlib.1c0b04b7.0.snapshot b/compiler/test/__snapshots__/stdlib.1c0b04b7.0.snapshot index 4d93aa52a0..54f8f22a64 100644 --- a/compiler/test/__snapshots__/stdlib.1c0b04b7.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.1c0b04b7.0.snapshot @@ -10,12 +10,12 @@ stdlib › stdlib_equal_20 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"==\" (func $==_1114 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1114 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -186,5 +186,5 @@ stdlib › stdlib_equal_20 (call $_gmain) ) ) - ;; custom section \"cmi\", size 592 + ;; custom section \"cmi\", size 598 ) diff --git a/compiler/test/__snapshots__/stdlib.24cb9bbf.0.snapshot b/compiler/test/__snapshots__/stdlib.24cb9bbf.0.snapshot index 9acf29a534..042cc3bc92 100644 --- a/compiler/test/__snapshots__/stdlib.24cb9bbf.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.24cb9bbf.0.snapshot @@ -10,12 +10,12 @@ stdlib › stdlib_equal_18 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -100,5 +100,5 @@ stdlib › stdlib_equal_18 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/stdlib.323e410a.0.snapshot b/compiler/test/__snapshots__/stdlib.323e410a.0.snapshot index 0a28115224..74d47d4170 100644 --- a/compiler/test/__snapshots__/stdlib.323e410a.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.323e410a.0.snapshot @@ -9,10 +9,10 @@ stdlib › stdlib_equal_1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (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))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -126,5 +126,5 @@ stdlib › stdlib_equal_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/stdlib.37483d2d.0.snapshot b/compiler/test/__snapshots__/stdlib.37483d2d.0.snapshot index 0502b0fe89..bd5344ce2b 100644 --- a/compiler/test/__snapshots__/stdlib.37483d2d.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.37483d2d.0.snapshot @@ -9,8 +9,8 @@ stdlib › stdlib_cons (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -190,5 +190,5 @@ stdlib › stdlib_cons (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/stdlib.4a5061c2.0.snapshot b/compiler/test/__snapshots__/stdlib.4a5061c2.0.snapshot index f826be8978..2507558b98 100644 --- a/compiler/test/__snapshots__/stdlib.4a5061c2.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.4a5061c2.0.snapshot @@ -10,12 +10,12 @@ stdlib › stdlib_equal_19 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"==\" (func $==_1114 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1114 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -186,5 +186,5 @@ stdlib › stdlib_equal_19 (call $_gmain) ) ) - ;; custom section \"cmi\", size 592 + ;; custom section \"cmi\", size 598 ) diff --git a/compiler/test/__snapshots__/stdlib.5fe88631.0.snapshot b/compiler/test/__snapshots__/stdlib.5fe88631.0.snapshot index af57e9d05c..e1a5820e0f 100644 --- a/compiler/test/__snapshots__/stdlib.5fe88631.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.5fe88631.0.snapshot @@ -10,12 +10,12 @@ stdlib › stdlib_equal_16 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -100,5 +100,5 @@ stdlib › stdlib_equal_16 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/stdlib.648f406e.0.snapshot b/compiler/test/__snapshots__/stdlib.648f406e.0.snapshot index 72128e23e5..6e413fc6c9 100644 --- a/compiler/test/__snapshots__/stdlib.648f406e.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.648f406e.0.snapshot @@ -10,12 +10,12 @@ stdlib › stdlib_equal_12 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -124,5 +124,5 @@ stdlib › stdlib_equal_12 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/stdlib.69635cff.0.snapshot b/compiler/test/__snapshots__/stdlib.69635cff.0.snapshot index 8976f06e13..3289469b32 100644 --- a/compiler/test/__snapshots__/stdlib.69635cff.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.69635cff.0.snapshot @@ -10,12 +10,12 @@ stdlib › stdlib_equal_21 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"==\" (func $==_1114 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1114 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -186,5 +186,5 @@ stdlib › stdlib_equal_21 (call $_gmain) ) ) - ;; custom section \"cmi\", size 592 + ;; custom section \"cmi\", size 598 ) diff --git a/compiler/test/__snapshots__/stdlib.6bf88430.0.snapshot b/compiler/test/__snapshots__/stdlib.6bf88430.0.snapshot index aba033cf23..439e20f3ed 100644 --- a/compiler/test/__snapshots__/stdlib.6bf88430.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.6bf88430.0.snapshot @@ -10,12 +10,12 @@ stdlib › stdlib_equal_15 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -96,5 +96,5 @@ stdlib › stdlib_equal_15 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/stdlib.6de47be2.0.snapshot b/compiler/test/__snapshots__/stdlib.6de47be2.0.snapshot index d3dffd4daa..6bf6a25fea 100644 --- a/compiler/test/__snapshots__/stdlib.6de47be2.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.6de47be2.0.snapshot @@ -10,12 +10,12 @@ stdlib › stdlib_equal_14 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -96,5 +96,5 @@ stdlib › stdlib_equal_14 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/stdlib.8300ad7c.0.snapshot b/compiler/test/__snapshots__/stdlib.8300ad7c.0.snapshot index 7961bbfad8..35643b2234 100644 --- a/compiler/test/__snapshots__/stdlib.8300ad7c.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.8300ad7c.0.snapshot @@ -10,12 +10,12 @@ stdlib › stdlib_equal_3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -374,5 +374,5 @@ stdlib › stdlib_equal_3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/stdlib.91a94037.0.snapshot b/compiler/test/__snapshots__/stdlib.91a94037.0.snapshot index 162b86df07..f86159aaa8 100644 --- a/compiler/test/__snapshots__/stdlib.91a94037.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.91a94037.0.snapshot @@ -10,12 +10,12 @@ stdlib › stdlib_equal_11 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -104,5 +104,5 @@ stdlib › stdlib_equal_11 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/stdlib.a70e79ca.0.snapshot b/compiler/test/__snapshots__/stdlib.a70e79ca.0.snapshot index d1bdcd1ee4..89defb08b9 100644 --- a/compiler/test/__snapshots__/stdlib.a70e79ca.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.a70e79ca.0.snapshot @@ -10,12 +10,12 @@ stdlib › stdlib_equal_9 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -96,5 +96,5 @@ stdlib › stdlib_equal_9 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/stdlib.b30d7785.0.snapshot b/compiler/test/__snapshots__/stdlib.b30d7785.0.snapshot index f91d381e1c..24b8a5a862 100644 --- a/compiler/test/__snapshots__/stdlib.b30d7785.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.b30d7785.0.snapshot @@ -10,12 +10,12 @@ stdlib › stdlib_equal_2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -108,5 +108,5 @@ stdlib › stdlib_equal_2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/stdlib.c09a513a.0.snapshot b/compiler/test/__snapshots__/stdlib.c09a513a.0.snapshot index 444290bb1b..a2fe7b00e7 100644 --- a/compiler/test/__snapshots__/stdlib.c09a513a.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.c09a513a.0.snapshot @@ -10,10 +10,10 @@ stdlib › stdlib_equal_6 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ stdlib › stdlib_equal_6 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/stdlib.cbf0318e.0.snapshot b/compiler/test/__snapshots__/stdlib.cbf0318e.0.snapshot index 524203756f..08526c4fb2 100644 --- a/compiler/test/__snapshots__/stdlib.cbf0318e.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.cbf0318e.0.snapshot @@ -10,12 +10,12 @@ stdlib › stdlib_equal_22 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"==\" (func $==_1114 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1114 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1114 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -186,5 +186,5 @@ stdlib › stdlib_equal_22 (call $_gmain) ) ) - ;; custom section \"cmi\", size 592 + ;; custom section \"cmi\", size 598 ) diff --git a/compiler/test/__snapshots__/stdlib.d28dee65.0.snapshot b/compiler/test/__snapshots__/stdlib.d28dee65.0.snapshot index 8c0d8d47ac..3c93a4b160 100644 --- a/compiler/test/__snapshots__/stdlib.d28dee65.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.d28dee65.0.snapshot @@ -10,12 +10,12 @@ stdlib › stdlib_equal_10 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -100,5 +100,5 @@ stdlib › stdlib_equal_10 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/stdlib.d4faa5bf.0.snapshot b/compiler/test/__snapshots__/stdlib.d4faa5bf.0.snapshot index 98a2061860..a50fffe67c 100644 --- a/compiler/test/__snapshots__/stdlib.d4faa5bf.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.d4faa5bf.0.snapshot @@ -10,12 +10,12 @@ stdlib › stdlib_equal_13 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -92,5 +92,5 @@ stdlib › stdlib_equal_13 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/stdlib.d887bb04.0.snapshot b/compiler/test/__snapshots__/stdlib.d887bb04.0.snapshot index 7cc7d0ef02..c701b77927 100644 --- a/compiler/test/__snapshots__/stdlib.d887bb04.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.d887bb04.0.snapshot @@ -10,10 +10,10 @@ stdlib › stdlib_equal_7 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ stdlib › stdlib_equal_7 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/stdlib.dae8b12a.0.snapshot b/compiler/test/__snapshots__/stdlib.dae8b12a.0.snapshot index 248075b16b..8705d719cd 100644 --- a/compiler/test/__snapshots__/stdlib.dae8b12a.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.dae8b12a.0.snapshot @@ -10,10 +10,10 @@ stdlib › stdlib_equal_5 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (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 $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -44,5 +44,5 @@ stdlib › stdlib_equal_5 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/stdlib.e306600a.0.snapshot b/compiler/test/__snapshots__/stdlib.e306600a.0.snapshot index 3da765c368..182aacd2e7 100644 --- a/compiler/test/__snapshots__/stdlib.e306600a.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.e306600a.0.snapshot @@ -10,12 +10,12 @@ stdlib › stdlib_equal_8 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -92,5 +92,5 @@ stdlib › stdlib_equal_8 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/stdlib.e6349872.0.snapshot b/compiler/test/__snapshots__/stdlib.e6349872.0.snapshot index ed22e208fe..bca90d6cfd 100644 --- a/compiler/test/__snapshots__/stdlib.e6349872.0.snapshot +++ b/compiler/test/__snapshots__/stdlib.e6349872.0.snapshot @@ -10,12 +10,12 @@ stdlib › stdlib_equal_17 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$==\" (global $==_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"==\" (func $==_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -100,5 +100,5 @@ stdlib › stdlib_equal_17 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/strings.434adad0.0.snapshot b/compiler/test/__snapshots__/strings.434adad0.0.snapshot index 7929280b80..c6098b4d73 100644 --- a/compiler/test/__snapshots__/strings.434adad0.0.snapshot +++ b/compiler/test/__snapshots__/strings.434adad0.0.snapshot @@ -9,8 +9,8 @@ strings › string2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -53,5 +53,5 @@ strings › string2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/strings.a67428df.0.snapshot b/compiler/test/__snapshots__/strings.a67428df.0.snapshot index 0daeb7cc61..bbbd80382c 100644 --- a/compiler/test/__snapshots__/strings.a67428df.0.snapshot +++ b/compiler/test/__snapshots__/strings.a67428df.0.snapshot @@ -9,8 +9,8 @@ strings › string1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -53,5 +53,5 @@ strings › string1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/strings.b2ad5a89.0.snapshot b/compiler/test/__snapshots__/strings.b2ad5a89.0.snapshot index 5e90561617..e0af5e813d 100644 --- a/compiler/test/__snapshots__/strings.b2ad5a89.0.snapshot +++ b/compiler/test/__snapshots__/strings.b2ad5a89.0.snapshot @@ -9,8 +9,8 @@ strings › string3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -69,5 +69,5 @@ strings › string3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/strings.fb85549f.0.snapshot b/compiler/test/__snapshots__/strings.fb85549f.0.snapshot index 914934183f..e9db7e7377 100644 --- a/compiler/test/__snapshots__/strings.fb85549f.0.snapshot +++ b/compiler/test/__snapshots__/strings.fb85549f.0.snapshot @@ -10,12 +10,12 @@ strings › concat (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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$pervasives\" \"++\" (func $++_1113 (param i32 i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"GRAIN$EXPORT$++\" (global $++_1113 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$pervasives.gr\" \"++\" (func $++_1113 (param i32 i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -100,5 +100,5 @@ strings › concat (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/tuples.1451773e.0.snapshot b/compiler/test/__snapshots__/tuples.1451773e.0.snapshot index 2ab8157e4b..72227d3814 100644 --- a/compiler/test/__snapshots__/tuples.1451773e.0.snapshot +++ b/compiler/test/__snapshots__/tuples.1451773e.0.snapshot @@ -9,12 +9,12 @@ tuples › nested_tup_3 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $b_1116 (mut i32) (i32.const 0)) (global $a_1115 (mut i32) (i32.const 0)) (global $y_1114 (mut i32) (i32.const 0)) @@ -318,5 +318,5 @@ tuples › nested_tup_3 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/tuples.1d60b40c.0.snapshot b/compiler/test/__snapshots__/tuples.1d60b40c.0.snapshot index e034b52e7e..b8eed58153 100644 --- a/compiler/test/__snapshots__/tuples.1d60b40c.0.snapshot +++ b/compiler/test/__snapshots__/tuples.1d60b40c.0.snapshot @@ -9,12 +9,12 @@ tuples › nested_tup_1 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $b_1114 (mut i32) (i32.const 0)) (global $a_1113 (mut i32) (i32.const 0)) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) @@ -219,5 +219,5 @@ tuples › nested_tup_1 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/tuples.2c91b91d.0.snapshot b/compiler/test/__snapshots__/tuples.2c91b91d.0.snapshot index 2e2a21ddbd..333e6ccf6f 100644 --- a/compiler/test/__snapshots__/tuples.2c91b91d.0.snapshot +++ b/compiler/test/__snapshots__/tuples.2c91b91d.0.snapshot @@ -9,12 +9,12 @@ tuples › tup1_destruct_trailing (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $a_1113 (mut i32) (i32.const 0)) (global $c_1115 (mut i32) (i32.const 0)) (global $b_1114 (mut i32) (i32.const 0)) @@ -201,5 +201,5 @@ tuples › tup1_destruct_trailing (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/tuples.8d1f0463.0.snapshot b/compiler/test/__snapshots__/tuples.8d1f0463.0.snapshot index 76bea8d187..5a0eba6261 100644 --- a/compiler/test/__snapshots__/tuples.8d1f0463.0.snapshot +++ b/compiler/test/__snapshots__/tuples.8d1f0463.0.snapshot @@ -9,8 +9,8 @@ tuples › tup1_trailing (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ tuples › tup1_trailing (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/tuples.a34621a0.0.snapshot b/compiler/test/__snapshots__/tuples.a34621a0.0.snapshot index e153647d3d..49e265dc3b 100644 --- a/compiler/test/__snapshots__/tuples.a34621a0.0.snapshot +++ b/compiler/test/__snapshots__/tuples.a34621a0.0.snapshot @@ -9,12 +9,12 @@ tuples › big_tup_access (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $a_1113 (mut i32) (i32.const 0)) (global $d_1116 (mut i32) (i32.const 0)) (global $c_1115 (mut i32) (i32.const 0)) @@ -245,5 +245,5 @@ tuples › big_tup_access (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/tuples.b4f702d8.0.snapshot b/compiler/test/__snapshots__/tuples.b4f702d8.0.snapshot index 08f80f5f17..c6906c59ac 100644 --- a/compiler/test/__snapshots__/tuples.b4f702d8.0.snapshot +++ b/compiler/test/__snapshots__/tuples.b4f702d8.0.snapshot @@ -31,5 +31,5 @@ tuples › no_non_trailing_comma_singleton_tup (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/tuples.c1eb0a50.0.snapshot b/compiler/test/__snapshots__/tuples.c1eb0a50.0.snapshot index c413cdc6f6..5ad1b97aac 100644 --- a/compiler/test/__snapshots__/tuples.c1eb0a50.0.snapshot +++ b/compiler/test/__snapshots__/tuples.c1eb0a50.0.snapshot @@ -9,12 +9,12 @@ tuples › nested_tup_2 (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (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$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/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$decRef\" (global $GRAIN$EXPORT$decRef_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32))) (global $a_1113 (mut i32) (i32.const 0)) (global $d_1116 (mut i32) (i32.const 0)) (global $c_1115 (mut i32) (i32.const 0)) @@ -318,5 +318,5 @@ tuples › nested_tup_2 (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/__snapshots__/tuples.f206002b.0.snapshot b/compiler/test/__snapshots__/tuples.f206002b.0.snapshot index f8c9c53cfa..041056d4ed 100644 --- a/compiler/test/__snapshots__/tuples.f206002b.0.snapshot +++ b/compiler/test/__snapshots__/tuples.f206002b.0.snapshot @@ -9,8 +9,8 @@ tuples › tup1_trailing_space (import \"_genv\" \"runtimeHeapStart\" (global $runtimeHeapStart_0 i32)) (import \"_genv\" \"runtimeHeapNextPtr\" (global $runtimeHeapNextPtr_0 (mut i32))) (import \"_genv\" \"metadataPtr\" (global $metadataPtr_0 i32)) - (import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) - (import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"GRAIN$EXPORT$malloc\" (global $GRAIN$EXPORT$malloc_0 (mut i32))) + (import \"GRAIN$MODULE$runtime/gc.gr\" \"malloc\" (func $malloc_0 (param i32 i32) (result i32))) (global $GRAIN$TABLE_SIZE i32 (i32.const 0)) (memory $0 0) (elem $elem (global.get $relocBase_0)) @@ -61,5 +61,5 @@ tuples › tup1_trailing_space (call $_gmain) ) ) - ;; custom section \"cmi\", size 317 + ;; custom section \"cmi\", size 323 ) diff --git a/compiler/test/input/brokenIncludes/broken.gr b/compiler/test/input/brokenIncludes/broken.gr index dfd456e20c..dbabb4b31b 100644 --- a/compiler/test/input/brokenIncludes/broken.gr +++ b/compiler/test/input/brokenIncludes/broken.gr @@ -1,6 +1,6 @@ module Broken from "number" include Number -from "./foo" include Foo +from "./foo.gr" include Foo provide let min = Number.min diff --git a/compiler/test/input/brokenIncludes/main.gr b/compiler/test/input/brokenIncludes/main.gr index 3fab86ca61..f5350d5ca2 100644 --- a/compiler/test/input/brokenIncludes/main.gr +++ b/compiler/test/input/brokenIncludes/main.gr @@ -1,5 +1,5 @@ module Main -from "./broken" include Broken +from "./broken.gr" include Broken print(Broken.min(2, 3)) diff --git a/compiler/test/input/nestedModules.gr b/compiler/test/input/nestedModules.gr index 6928457c49..142dceb45c 100644 --- a/compiler/test/input/nestedModules.gr +++ b/compiler/test/input/nestedModules.gr @@ -1,7 +1,7 @@ module NestedModules from "list" include List -from "./modules/provideIncludedModule" include ProvideIncludedModule as Deep +from "./modules/provideIncludedModule.gr" include ProvideIncludedModule as Deep module Foo { provide let foo = "hello from foo" diff --git a/compiler/test/input/relativeInclude1.gr b/compiler/test/input/relativeInclude1.gr index c47d5d2d59..b99f3ef860 100644 --- a/compiler/test/input/relativeInclude1.gr +++ b/compiler/test/input/relativeInclude1.gr @@ -1,5 +1,5 @@ module RelativeInclude1 -from "../test-libs/provideAll" include ProvideAll +from "../test-libs/provideAll.gr" include ProvideAll use ProvideAll.* x diff --git a/compiler/test/input/relativeInclude2.gr b/compiler/test/input/relativeInclude2.gr index bb97a180e2..23bc189184 100644 --- a/compiler/test/input/relativeInclude2.gr +++ b/compiler/test/input/relativeInclude2.gr @@ -1,5 +1,5 @@ module RelativeImport2 -from "../../test/test-libs/provideAll" include ProvideAll +from "../../test/test-libs/provideAll.gr" include ProvideAll use ProvideAll.* x diff --git a/compiler/test/input/relativeIncludeLinking.gr b/compiler/test/input/relativeIncludeLinking.gr index 87b04faab2..972a85bb63 100644 --- a/compiler/test/input/relativeIncludeLinking.gr +++ b/compiler/test/input/relativeIncludeLinking.gr @@ -1,7 +1,7 @@ module RelativeIncludeLinking -from "./relativeIncludeLinking/a" include A -from "./relativeIncludeLinking/mutExport" include MutExport +from "./relativeIncludeLinking/a.gr" include A +from "./relativeIncludeLinking/mutExport.gr" include MutExport MutExport.x := unbox(MutExport.x) + 1 diff --git a/compiler/test/input/relativeIncludeLinking/a.gr b/compiler/test/input/relativeIncludeLinking/a.gr index 4c49166cf1..c1f2a68cfa 100644 --- a/compiler/test/input/relativeIncludeLinking/a.gr +++ b/compiler/test/input/relativeIncludeLinking/a.gr @@ -1,6 +1,6 @@ module A -from "./mutExport" include MutExport +from "./mutExport.gr" include MutExport MutExport.x := unbox(MutExport.x) + 1 diff --git a/compiler/test/input/relativeIncludes/bar/bar.gr b/compiler/test/input/relativeIncludes/bar/bar.gr index 812d9eb91b..62334ad307 100644 --- a/compiler/test/input/relativeIncludes/bar/bar.gr +++ b/compiler/test/input/relativeIncludes/bar/bar.gr @@ -1,6 +1,6 @@ module Bar -from "./baz" include Baz +from "./baz.gr" include Baz use Baz.{ baz } provide let bar = n => baz(n) * 3 diff --git a/compiler/test/input/relativeIncludes/bar/baz.gr b/compiler/test/input/relativeIncludes/bar/baz.gr index b8e27db52d..15e97d7fbc 100644 --- a/compiler/test/input/relativeIncludes/bar/baz.gr +++ b/compiler/test/input/relativeIncludes/bar/baz.gr @@ -1,5 +1,5 @@ module Baz -from "../quux/quux" include Quux +from "../quux/quux.gr" include Quux use Quux.{ quux } provide let baz = n => quux(n) + 1 diff --git a/compiler/test/input/relativeIncludes/foo.gr b/compiler/test/input/relativeIncludes/foo.gr index 46dc8e089e..d2acdf8268 100644 --- a/compiler/test/input/relativeIncludes/foo.gr +++ b/compiler/test/input/relativeIncludes/foo.gr @@ -1,6 +1,6 @@ module Foo -from "./bar/bar" include Bar +from "./bar/bar.gr" include Bar use Bar.{ bar } print(bar(2)) diff --git a/compiler/test/input/reprovideTypeUnifyA.gr b/compiler/test/input/reprovideTypeUnifyA.gr index b64175cd5d..0221e2a6d5 100644 --- a/compiler/test/input/reprovideTypeUnifyA.gr +++ b/compiler/test/input/reprovideTypeUnifyA.gr @@ -1,5 +1,5 @@ module ReprovideTypeUnifyA -from "./reprovideTypeUnifyB" include ReprovideTypeUnifyB +from "./reprovideTypeUnifyB.gr" include ReprovideTypeUnifyB use ReprovideTypeUnifyB.{ type T, a } print(a == { x: 1, }) diff --git a/compiler/test/input/reprovideTypeUnifyB.gr b/compiler/test/input/reprovideTypeUnifyB.gr index 2266e21a88..04289323f8 100644 --- a/compiler/test/input/reprovideTypeUnifyB.gr +++ b/compiler/test/input/reprovideTypeUnifyB.gr @@ -1,6 +1,6 @@ module ReprovideTypeUnifyB -from "./reprovideTypeUnifyC" include ReprovideTypeUnifyC +from "./reprovideTypeUnifyC.gr" include ReprovideTypeUnifyC use ReprovideTypeUnifyC.{ type T } let a = { x: 1, } provide { type T, a } diff --git a/compiler/test/suites/includes.re b/compiler/test/suites/includes.re index 9499dec32d..f7ec1ff34b 100644 --- a/compiler/test/suites/includes.re +++ b/compiler/test/suites/includes.re @@ -153,7 +153,7 @@ describe("includes", ({test, testSkip}) => { assertCompileError( "include_missing_file", "from \"foo\" include Foo; 2", - "Missing file for module foo", + "Missing file for module \"foo.gr\"", ); /* Unbound module tests */ assertCompileError( @@ -180,7 +180,17 @@ describe("includes", ({test, testSkip}) => { assertFileCompileError( "include_broken", "brokenIncludes/main", - "./broken.gr\", line 4, characters 5-12", + "./broken.gr\", line 4, characters 5-15", + ); + assertCompileError( + "include_extension1", + "from \"list.gr\" include List", + "Missing file for module \"list.gr\": did you mean \"list\"?", + ); + assertCompileError( + "include_extension2", + "from \"brokenRelativeInclude\" include BrokenRelativeInclude", + "Missing file for module \"./data\": did you mean \"./data.gr\"?", ); assertRun( "reprovide_values", diff --git a/compiler/test/suites/optimizations.re b/compiler/test/suites/optimizations.re index b949b575b1..d9d07cc53d 100644 --- a/compiler/test/suites/optimizations.re +++ b/compiler/test/suites/optimizations.re @@ -72,7 +72,7 @@ describe("optimizations", ({test, testSkip}) => { "5\n", ); assertAnf( - "test_dead_branch_elimination_1", + "test_dead_branch_elimination_1.gr", "{ if (true) {4} else {5} }", AExp.comp( Comp.imm( @@ -82,7 +82,7 @@ describe("optimizations", ({test, testSkip}) => { ), ); assertAnf( - "test_dead_branch_elimination_2", + "test_dead_branch_elimination_2.gr", "{ if (false) {4} else {5} }", AExp.comp( Comp.imm( @@ -92,7 +92,7 @@ describe("optimizations", ({test, testSkip}) => { ), ); assertAnf( - "test_dead_branch_elimination_3", + "test_dead_branch_elimination_3.gr", "{ let x = true; if (x) {4} else {5} }", AExp.comp( Comp.imm( @@ -102,7 +102,7 @@ describe("optimizations", ({test, testSkip}) => { ), ); assertAnf( - "test_dead_branch_elimination_4", + "test_dead_branch_elimination_4.gr", "{let x = if (true) {4} else {5}; x}", AExp.comp( Comp.imm( @@ -117,7 +117,7 @@ describe("optimizations", ({test, testSkip}) => { ); /* Primarily a constant-propagation test, but DAE removes the let bindings as well */ assertAnf( - "test_const_propagation", + "test_const_propagation.gr", "{\n let x = 4;\n let y = x;\n x}", AExp.comp( Comp.imm( @@ -128,7 +128,7 @@ describe("optimizations", ({test, testSkip}) => { ); /* Primarily a constant-propagation test, but DAE removes the let bindings as well */ assertAnf( - "test_const_propagation2", + "test_const_propagation2.gr", "((x) => {\n let x = 4;\n let y = x;\n x})", { open Grain_typed; @@ -151,7 +151,7 @@ describe("optimizations", ({test, testSkip}) => { ); /* Primarily a constant-propagation test, but DAE removes the let bindings as well */ assertAnf( - "test_const_propagation_shadowing", + "test_const_propagation_shadowing.gr", "{\n let x = 5;\n let y = 12;\n let z = y;\n {\n let y = x;\n x\n }\n x + y}", Grain_typed.( AExp.comp( @@ -168,7 +168,7 @@ describe("optimizations", ({test, testSkip}) => { ), ); assertAnf( - "test_dae", + "test_dae.gr", "((x) => {let a = (x, 1); let b = (x, 1); (x, 1)})", { open Grain_typed; @@ -187,7 +187,7 @@ describe("optimizations", ({test, testSkip}) => { }, ); assertAnf( - "test_dae_lambda_unused", + "test_dae_lambda_unused.gr", "((x) => {1})", { open Grain_typed; @@ -209,7 +209,7 @@ describe("optimizations", ({test, testSkip}) => { }, ); assertAnf( - "test_local_mutations1", + "test_local_mutations1.gr", "provide let foo = () => {let mut x = 5; x = 6}", { open Grain_typed; @@ -260,7 +260,7 @@ describe("optimizations", ({test, testSkip}) => { }, ); assertAnf( - "test_no_local_mutation_optimization_of_closure_scope_mut", + "test_no_local_mutation_optimization_of_closure_scope_mut.gr", "provide let bar = () => { let mut x = 5; let foo = () => x; foo() }", { open Grain_typed; @@ -335,7 +335,7 @@ describe("optimizations", ({test, testSkip}) => { ); /* All optimizations are needed to work completely on this input */ assertAnf( - "test_optimizations_work_together", + "test_optimizations_work_together.gr", "{\n let x = 5;\n let foo = ((y) => {y});\n let y = (3, 5);\n foo(3) + x}", { open Grain_typed; @@ -413,7 +413,7 @@ describe("optimizations", ({test, testSkip}) => { // Removal of manual memory management calls assertAnf( - "test_manual_gc_calls_removed", + "test_manual_gc_calls_removed.gr", {| /* grainc-flags --no-gc */ from "runtime/unsafe/memory" include Memory @@ -483,7 +483,7 @@ describe("optimizations", ({test, testSkip}) => { // Bulk Memory (memory.fill & memory.copy) assertAnf( - "test_no_bulk_memory_calls", + "test_no_bulk_memory_calls.gr", ~config_fn=() => {Grain_utils.Config.bulk_memory := false}, {| from "runtime/unsafe/memory" include Memory @@ -569,7 +569,7 @@ describe("optimizations", ({test, testSkip}) => { }, ); assertAnf( - "test_memory_fill_calls_replaced", + "test_memory_fill_calls_replaced.gr", ~config_fn=() => {Grain_utils.Config.bulk_memory := true}, {| from "runtime/unsafe/memory" include Memory diff --git a/compiler/test/test-libs/brokenRelativeInclude.gr b/compiler/test/test-libs/brokenRelativeInclude.gr new file mode 100644 index 0000000000..14b0f3fc0b --- /dev/null +++ b/compiler/test/test-libs/brokenRelativeInclude.gr @@ -0,0 +1,3 @@ +module BrokenRelativeInclude + +from "./data" include Data diff --git a/compiler/test/test-libs/reprovideContents.gr b/compiler/test/test-libs/reprovideContents.gr index 57f86d3509..4336aa4b47 100644 --- a/compiler/test/test-libs/reprovideContents.gr +++ b/compiler/test/test-libs/reprovideContents.gr @@ -1,6 +1,6 @@ module ReprovideContents -from "./provideContents" include ProvideContents +from "./provideContents.gr" include ProvideContents use ProvideContents.{ type Type, type Other as OtherT, module Mod } diff --git a/compiler/test/test-libs/reprovideException.gr b/compiler/test/test-libs/reprovideException.gr index 0b9f545f30..3bdba0ac46 100644 --- a/compiler/test/test-libs/reprovideException.gr +++ b/compiler/test/test-libs/reprovideException.gr @@ -1,6 +1,6 @@ module ReprovideException -from "./provideException" include ProvideException +from "./provideException.gr" include ProvideException use ProvideException.{ exception MyException, excVal1 } let excVal2 = ProvideException.MyException diff --git a/stdlib/runtime/atof/common.gr b/stdlib/runtime/atof/common.gr index b0840bd83b..b75fc625bc 100644 --- a/stdlib/runtime/atof/common.gr +++ b/stdlib/runtime/atof/common.gr @@ -37,7 +37,7 @@ from "runtime/dataStructures" include DataStructures use DataStructures.{ newInt32, newInt64, newFloat64 } from "runtime/numberUtils" include NumberUtils use NumberUtils.{ get_POWERS10 } -from "./table" include Table +from "./table.gr" include Table use Table.{ get_F64_POWERS10_FAST_PATH, get_POWERS5 } primitive (&&) = "@and" diff --git a/stdlib/runtime/atof/decimal.gr b/stdlib/runtime/atof/decimal.gr index 088f0e0204..81d6736a52 100644 --- a/stdlib/runtime/atof/decimal.gr +++ b/stdlib/runtime/atof/decimal.gr @@ -36,7 +36,7 @@ from "runtime/unsafe/memory" include Memory from "runtime/dataStructures" include DataStructures use DataStructures.{ newInt32, allocateBytes } -from "./common" include Common +from "./common.gr" include Common use Common.{ _CHAR_CODE_UNDERSCORE, _CHAR_CODE_PLUS, diff --git a/stdlib/runtime/atof/lemire.gr b/stdlib/runtime/atof/lemire.gr index b459a650ff..901b12bc12 100644 --- a/stdlib/runtime/atof/lemire.gr +++ b/stdlib/runtime/atof/lemire.gr @@ -35,10 +35,10 @@ from "runtime/unsafe/wasmi64" include WasmI64 from "runtime/dataStructures" include DataStructures use DataStructures.{ newInt32, newInt64, newFloat64 } -from "./table" include Table +from "./table.gr" include Table use Table.{ get_POWERS5 } -from "./common" include Common +from "./common.gr" include Common use Common.{ _SMALLEST_POWER_OF_FIVE, _LARGEST_POWER_OF_FIVE, diff --git a/stdlib/runtime/atof/parse.gr b/stdlib/runtime/atof/parse.gr index 8a2e6bc365..88bb553d6c 100644 --- a/stdlib/runtime/atof/parse.gr +++ b/stdlib/runtime/atof/parse.gr @@ -34,7 +34,7 @@ from "runtime/unsafe/wasmf64" include WasmF64 from "runtime/dataStructures" include DataStructures use DataStructures.{ newInt32, newInt64, newFloat64 } -from "./common" include Common +from "./common.gr" include Common use Common.{ _CHAR_CODE_UNDERSCORE, _CHAR_CODE_PLUS, @@ -63,9 +63,9 @@ use Common.{ fpInf, } -from "./lemire" include Lemire +from "./lemire.gr" include Lemire use Lemire.{ computeFloat } -from "./slow" include Slow +from "./slow.gr" include Slow use Slow.{ parseLongMantissa } // Try to parse 8 digits at a time: diff --git a/stdlib/runtime/atof/slow.gr b/stdlib/runtime/atof/slow.gr index f7a180f79b..edcf5e2964 100644 --- a/stdlib/runtime/atof/slow.gr +++ b/stdlib/runtime/atof/slow.gr @@ -36,7 +36,7 @@ from "runtime/unsafe/memory" include Memory from "runtime/dataStructures" include DataStructures use DataStructures.{ newInt32, newInt64 } -from "./common" include Common +from "./common.gr" include Common use Common.{ type BiasedFp, fpZero, @@ -47,7 +47,7 @@ use Common.{ _MANTISSA_EXPLICIT_BITS_32, _MANTISSA_EXPLICIT_BITS_64, } -from "./decimal" include Decimal +from "./decimal.gr" include Decimal use Decimal.{ parseDecimal, _DECIMAL_POINT_RANGE } @unsafe