Make included files insert before main files (#6899)

This is so that the last file is more likely what we're trying to
compile in tests. Just splitting out the churn-y change of reordering.

Assisted-by: Google Antigravity with Gemini
This commit is contained in:
Jon Ross-Perkins
2026-03-12 21:01:16 +00:00
committed by GitHub
parent 4df2b6ea9d
commit 610094ccfd
14 changed files with 2700 additions and 2700 deletions
+2 -2
View File
@@ -104,10 +104,10 @@ static auto CollectOutputIfCapturing(TestFile& test_file) -> void {
auto RunTestFile(const FileTestBase& test_base, bool dump_output,
TestFile& test_file) -> ErrorOr<Success> {
llvm::SmallVector<TestFile::Split*> all_splits;
for (auto& split : test_file.file_splits) {
for (auto& split : test_file.include_file_splits) {
all_splits.push_back(&split);
}
for (auto& split : test_file.include_file_splits) {
for (auto& split : test_file.file_splits) {
all_splits.push_back(&split);
}
+1 -1
View File
@@ -10,4 +10,4 @@
// TIP: To dump output, run:
// TIP: bazel run //testing/file_test:file_test_base_test -- --dump_output --file_tests=testing/file_test/testdata/include_empty.carbon
// CHECK:STDOUT: 3 args: `default_args`, `include_empty.carbon`, `empty.carbon`
// CHECK:STDOUT: 3 args: `default_args`, `empty.carbon`, `include_empty.carbon`
+1 -1
View File
@@ -11,4 +11,4 @@
// TIP: To dump output, run:
// TIP: bazel run //testing/file_test:file_test_base_test -- --dump_output --file_tests=testing/file_test/testdata/include_extra_args.carbon
// CHECK:STDOUT: 6 args: `default_args`, `include_extra_args.carbon`, `include_files/extra_args.carbon`, `bar`, `baz`, `foo`
// CHECK:STDOUT: 6 args: `default_args`, `include_files/extra_args.carbon`, `include_extra_args.carbon`, `bar`, `baz`, `foo`
+1 -1
View File
@@ -10,5 +10,5 @@
// TIP: To dump output, run:
// TIP: bazel run //testing/file_test:file_test_base_test -- --dump_output --file_tests=testing/file_test/testdata/include_no_split.carbon
// CHECK:STDOUT: 3 args: `default_args`, `include_no_split.carbon`, `include_files/no_split.carbon`
// CHECK:STDOUT: 3 args: `default_args`, `include_files/no_split.carbon`, `include_no_split.carbon`
// CHECK:STDOUT: include_files/no_split.carbon:5: no split
+1 -1
View File
@@ -10,7 +10,7 @@
// TIP: To dump output, run:
// TIP: bazel run //testing/file_test:file_test_base_test -- --dump_output --file_tests=testing/file_test/testdata/include_recursive.carbon
// CHECK:STDOUT: 6 args: `default_args`, `include_recursive.carbon`, `c.carbon`, `d.carbon`, `a.carbon`, `b.carbon`
// CHECK:STDOUT: 6 args: `default_args`, `c.carbon`, `d.carbon`, `a.carbon`, `b.carbon`, `include_recursive.carbon`
// CHECK:STDOUT: c.carbon:2: c
// CHECK:STDOUT: d.carbon:2: d
// CHECK:STDOUT: a.carbon:2: a
+1 -1
View File
@@ -12,5 +12,5 @@
// TIP: To dump output, run:
// TIP: bazel run //testing/file_test:file_test_base_test -- --dump_output --file_tests=testing/file_test/testdata/include_repeated.carbon
// CHECK:STDOUT: 3 args: `default_args`, `include_repeated.carbon`, `include_files/no_split.carbon`
// CHECK:STDOUT: 3 args: `default_args`, `include_files/no_split.carbon`, `include_repeated.carbon`
// CHECK:STDOUT: include_files/no_split.carbon:5: no split
+1 -1
View File
@@ -10,6 +10,6 @@
// TIP: To dump output, run:
// TIP: bazel run //testing/file_test:file_test_base_test -- --dump_output --file_tests=testing/file_test/testdata/include_split.carbon
// CHECK:STDOUT: 4 args: `default_args`, `include_split.carbon`, `a.carbon`, `b.carbon`
// CHECK:STDOUT: 4 args: `default_args`, `a.carbon`, `b.carbon`, `include_split.carbon`
// CHECK:STDOUT: a.carbon:2: a
// CHECK:STDOUT: b.carbon:2: b
+1 -1
View File
@@ -86,7 +86,7 @@
// CHECK:STDOUT: generated: {}
// CHECK:STDOUT: imports: {}
// CHECK:STDOUT: global_init: {}
// CHECK:STDOUT: inst_block60000005:
// CHECK:STDOUT: inst_block50000005:
// CHECK:STDOUT: 0: instF
// CHECK:STDOUT: value_stores:
// CHECK:STDOUT: shared_values:
+266 -266
View File
@@ -47,39 +47,39 @@ fn G(x: Cpp.X) {
// CHECK:STDOUT: 'import_ir(ApiForImpl)': {decl_id: inst<none>, is_export: false}
// CHECK:STDOUT: 'import_ir(Cpp)': {decl_id: inst<none>, is_export: false}
// CHECK:STDOUT: import_ir_insts:
// CHECK:STDOUT: import_ir_inst0: {ir_id: import_ir(Cpp), clang_source_loc_id: clang_source_loc60000000}
// CHECK:STDOUT: import_ir_inst1: {ir_id: import_ir(Cpp), clang_source_loc_id: clang_source_loc60000001}
// CHECK:STDOUT: import_ir_inst2: {ir_id: import_ir(Cpp), clang_source_loc_id: clang_source_loc60000002}
// CHECK:STDOUT: import_ir_inst3: {ir_id: import_ir(Cpp), clang_source_loc_id: clang_source_loc60000003}
// CHECK:STDOUT: import_ir_inst4: {ir_id: import_ir(Cpp), clang_source_loc_id: clang_source_loc60000004}
// CHECK:STDOUT: import_ir_inst0: {ir_id: import_ir(Cpp), clang_source_loc_id: clang_source_loc50000000}
// CHECK:STDOUT: import_ir_inst1: {ir_id: import_ir(Cpp), clang_source_loc_id: clang_source_loc50000001}
// CHECK:STDOUT: import_ir_inst2: {ir_id: import_ir(Cpp), clang_source_loc_id: clang_source_loc50000002}
// CHECK:STDOUT: import_ir_inst3: {ir_id: import_ir(Cpp), clang_source_loc_id: clang_source_loc50000003}
// CHECK:STDOUT: import_ir_inst4: {ir_id: import_ir(Cpp), clang_source_loc_id: clang_source_loc50000004}
// CHECK:STDOUT: clang_decls:
// CHECK:STDOUT: clang_decl_id60000000: {key: "<translation unit>", inst_id: inst60000011}
// CHECK:STDOUT: clang_decl_id60000001: {key: "struct X {}", inst_id: inst60000014}
// CHECK:STDOUT: clang_decl_id60000002: {key: "X * _Nonnull p", inst_id: inst60000022}
// CHECK:STDOUT: clang_decl_id60000003: {key: {decl: "void f(X x = {})", kind: normal, num_params: 0}, inst_id: inst6000002D}
// CHECK:STDOUT: clang_decl_id60000004: {key: {decl: "extern void f__carbon_thunk()", kind: normal, num_params: 0}, inst_id: inst60000030}
// CHECK:STDOUT: clang_decl_id60000005: {key: {decl: "void f(X x = {})", kind: normal, num_params: 1}, inst_id: inst6000003B}
// CHECK:STDOUT: clang_decl_id60000006: {key: {decl: "extern void f__carbon_thunk(X * _Nonnull x)", kind: normal, num_params: 1}, inst_id: inst60000043}
// CHECK:STDOUT: clang_decl_id60000007: {key: "X * _Nonnull global", inst_id: inst6000004E}
// CHECK:STDOUT: clang_decl_id50000000: {key: "<translation unit>", inst_id: inst50000011}
// CHECK:STDOUT: clang_decl_id50000001: {key: "struct X {}", inst_id: inst50000014}
// CHECK:STDOUT: clang_decl_id50000002: {key: "X * _Nonnull p", inst_id: inst50000022}
// CHECK:STDOUT: clang_decl_id50000003: {key: {decl: "void f(X x = {})", kind: normal, num_params: 0}, inst_id: inst5000002D}
// CHECK:STDOUT: clang_decl_id50000004: {key: {decl: "extern void f__carbon_thunk()", kind: normal, num_params: 0}, inst_id: inst50000030}
// CHECK:STDOUT: clang_decl_id50000005: {key: {decl: "void f(X x = {})", kind: normal, num_params: 1}, inst_id: inst5000003B}
// CHECK:STDOUT: clang_decl_id50000006: {key: {decl: "extern void f__carbon_thunk(X * _Nonnull x)", kind: normal, num_params: 1}, inst_id: inst50000043}
// CHECK:STDOUT: clang_decl_id50000007: {key: "X * _Nonnull global", inst_id: inst5000004E}
// CHECK:STDOUT: name_scopes:
// CHECK:STDOUT: name_scope0: {inst: instF, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name(Cpp): inst60000011, name0: inst6000001D}}
// CHECK:STDOUT: name_scope60000001: {inst: inst60000011, parent_scope: name_scope0, has_error: false, extended_scopes: [], names: {name2: inst60000014, name3: inst6000002A, name4: inst6000004E}}
// CHECK:STDOUT: name_scope60000002: {inst: inst60000014, parent_scope: name_scope60000001, has_error: false, extended_scopes: [], names: {}}
// CHECK:STDOUT: name_scope0: {inst: instF, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name(Cpp): inst50000011, name0: inst5000001D}}
// CHECK:STDOUT: name_scope50000001: {inst: inst50000011, parent_scope: name_scope0, has_error: false, extended_scopes: [], names: {name2: inst50000014, name3: inst5000002A, name4: inst5000004E}}
// CHECK:STDOUT: name_scope50000002: {inst: inst50000014, parent_scope: name_scope50000001, has_error: false, extended_scopes: [], names: {}}
// CHECK:STDOUT: entity_names:
// CHECK:STDOUT: entity_name60000000: {name: name1, parent_scope: name_scope<none>, index: -1, is_template: 0, is_unused: 0, form: constant<none>}
// CHECK:STDOUT: entity_name60000001: {name: name1, parent_scope: name_scope<none>, index: -1, is_template: 0, is_unused: 0, form: constant<none>}
// CHECK:STDOUT: entity_name60000002: {name: name1, parent_scope: name_scope<none>, index: -1, is_template: 0, is_unused: 0, form: constant<none>}
// CHECK:STDOUT: entity_name60000003: {name: name4, parent_scope: name_scope60000001, index: -1, is_template: 0, is_unused: 0, form: constant<none>}
// CHECK:STDOUT: entity_name50000000: {name: name1, parent_scope: name_scope<none>, index: -1, is_template: 0, is_unused: 0, form: constant<none>}
// CHECK:STDOUT: entity_name50000001: {name: name1, parent_scope: name_scope<none>, index: -1, is_template: 0, is_unused: 0, form: constant<none>}
// CHECK:STDOUT: entity_name50000002: {name: name1, parent_scope: name_scope<none>, index: -1, is_template: 0, is_unused: 0, form: constant<none>}
// CHECK:STDOUT: entity_name50000003: {name: name4, parent_scope: name_scope50000001, index: -1, is_template: 0, is_unused: 0, form: constant<none>}
// CHECK:STDOUT: cpp_global_vars:
// CHECK:STDOUT: cpp_global_var60000000: {key: {entity_name_id: entity_name60000003}, clang_decl_id: clang_decl_id60000007}
// CHECK:STDOUT: cpp_global_var50000000: {key: {entity_name_id: entity_name50000003}, clang_decl_id: clang_decl_id50000007}
// CHECK:STDOUT: functions:
// CHECK:STDOUT: function60000000: {name: name0, parent_scope: name_scope0, call_param_patterns_id: inst_block60000007, call_params_id: inst_block60000008, body: [inst_block6000000B]}
// CHECK:STDOUT: function60000001: {name: name3, parent_scope: name_scope60000001, call_param_patterns_id: inst_block_empty, call_params_id: inst_block_empty}
// CHECK:STDOUT: function60000002: {name: name6, parent_scope: name_scope60000001, call_param_patterns_id: inst_block_empty, call_params_id: inst_block_empty}
// CHECK:STDOUT: function60000003: {name: name3, parent_scope: name_scope60000001, call_param_patterns_id: inst_block6000000F, call_params_id: inst_block60000010}
// CHECK:STDOUT: function60000004: {name: name6, parent_scope: name_scope60000001, call_param_patterns_id: inst_block60000015, call_params_id: inst_block60000016}
// CHECK:STDOUT: function50000000: {name: name0, parent_scope: name_scope0, call_param_patterns_id: inst_block50000007, call_params_id: inst_block50000008, body: [inst_block5000000B]}
// CHECK:STDOUT: function50000001: {name: name3, parent_scope: name_scope50000001, call_param_patterns_id: inst_block_empty, call_params_id: inst_block_empty}
// CHECK:STDOUT: function50000002: {name: name6, parent_scope: name_scope50000001, call_param_patterns_id: inst_block_empty, call_params_id: inst_block_empty}
// CHECK:STDOUT: function50000003: {name: name3, parent_scope: name_scope50000001, call_param_patterns_id: inst_block5000000F, call_params_id: inst_block50000010}
// CHECK:STDOUT: function50000004: {name: name6, parent_scope: name_scope50000001, call_param_patterns_id: inst_block50000015, call_params_id: inst_block50000016}
// CHECK:STDOUT: classes:
// CHECK:STDOUT: class60000000: {name: name2, parent_scope: name_scope60000001, self_type_id: type(inst60000015), inheritance_kind: Base, is_dynamic: 0, scope_id: name_scope60000002, body_block_id: inst_block6000000C, adapt_id: inst<none>, base_id: inst<none>, complete_type_witness_id: inst60000025, vtable_decl_id: inst<none>}}
// CHECK:STDOUT: class50000000: {name: name2, parent_scope: name_scope50000001, self_type_id: type(inst50000015), inheritance_kind: Base, is_dynamic: 0, scope_id: name_scope50000002, body_block_id: inst_block5000000C, adapt_id: inst<none>, base_id: inst<none>, complete_type_witness_id: inst50000025, vtable_decl_id: inst<none>}}
// CHECK:STDOUT: interfaces: {}
// CHECK:STDOUT: associated_constants: {}
// CHECK:STDOUT: impls: {}
@@ -88,10 +88,10 @@ fn G(x: Cpp.X) {
// CHECK:STDOUT: specific_interfaces: {}
// CHECK:STDOUT: struct_type_fields:
// CHECK:STDOUT: struct_type_fields_empty: {}
// CHECK:STDOUT: struct_type_fields60000001:
// CHECK:STDOUT: 0: {name_id: name5, type_inst_id: inst60000020}
// CHECK:STDOUT: struct_type_fields60000002:
// CHECK:STDOUT: 0: {name_id: name5, type_inst_id: inst60000020}
// CHECK:STDOUT: struct_type_fields50000001:
// CHECK:STDOUT: 0: {name_id: name5, type_inst_id: inst50000020}
// CHECK:STDOUT: struct_type_fields50000002:
// CHECK:STDOUT: 0: {name_id: name5, type_inst_id: inst50000020}
// CHECK:STDOUT: types:
// CHECK:STDOUT: 'type(TypeType)':
// CHECK:STDOUT: value_repr: {kind: copy, type: type(TypeType)}
@@ -102,31 +102,31 @@ fn G(x: Cpp.X) {
// CHECK:STDOUT: 'type(inst(NamespaceType))':
// CHECK:STDOUT: value_repr: {kind: copy, type: type(inst(NamespaceType))}
// CHECK:STDOUT: 'type(inst(InstType))':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst60000013)}
// CHECK:STDOUT: 'type(inst60000013)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst60000013)}
// CHECK:STDOUT: 'type(inst6000001E)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst60000013)}
// CHECK:STDOUT: 'type(inst60000020)':
// CHECK:STDOUT: value_repr: {kind: copy, type: type(inst60000020)}
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst50000013)}
// CHECK:STDOUT: 'type(inst50000013)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst50000013)}
// CHECK:STDOUT: 'type(inst5000001E)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst50000013)}
// CHECK:STDOUT: 'type(inst50000020)':
// CHECK:STDOUT: value_repr: {kind: copy, type: type(inst50000020)}
// CHECK:STDOUT: 'type(inst(WitnessType))':
// CHECK:STDOUT: value_repr: {kind: copy, type: type(inst(WitnessType))}
// CHECK:STDOUT: 'type(inst60000027)':
// CHECK:STDOUT: value_repr: {kind: copy, type: type(inst60000027)}
// CHECK:STDOUT: 'type(inst60000024)':
// CHECK:STDOUT: value_repr: {kind: pointer, type: type(inst60000027)}
// CHECK:STDOUT: 'type(inst60000015)':
// CHECK:STDOUT: value_repr: {kind: pointer, type: type(inst60000027)}
// CHECK:STDOUT: 'type(inst60000029)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst60000013)}
// CHECK:STDOUT: 'type(inst6000002E)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst60000013)}
// CHECK:STDOUT: 'type(inst60000031)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst60000013)}
// CHECK:STDOUT: 'type(inst6000003C)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst60000013)}
// CHECK:STDOUT: 'type(inst60000044)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst60000013)}
// CHECK:STDOUT: 'type(inst50000027)':
// CHECK:STDOUT: value_repr: {kind: copy, type: type(inst50000027)}
// CHECK:STDOUT: 'type(inst50000024)':
// CHECK:STDOUT: value_repr: {kind: pointer, type: type(inst50000027)}
// CHECK:STDOUT: 'type(inst50000015)':
// CHECK:STDOUT: value_repr: {kind: pointer, type: type(inst50000027)}
// CHECK:STDOUT: 'type(inst50000029)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst50000013)}
// CHECK:STDOUT: 'type(inst5000002E)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst50000013)}
// CHECK:STDOUT: 'type(inst50000031)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst50000013)}
// CHECK:STDOUT: 'type(inst5000003C)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst50000013)}
// CHECK:STDOUT: 'type(inst50000044)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst50000013)}
// CHECK:STDOUT: facet_types: {}
// CHECK:STDOUT: insts:
// CHECK:STDOUT: 'inst(TypeType)': {kind: TypeType, type: type(TypeType)}
@@ -145,77 +145,77 @@ fn G(x: Cpp.X) {
// CHECK:STDOUT: 'inst(VtableType)': {kind: VtableType, type: type(TypeType)}
// CHECK:STDOUT: 'inst(WitnessType)': {kind: WitnessType, type: type(TypeType)}
// CHECK:STDOUT: instF: {kind: Namespace, arg0: name_scope0, arg1: inst<none>, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst60000010: {kind: ImportCppDecl}
// CHECK:STDOUT: inst60000011: {kind: Namespace, arg0: name_scope60000001, arg1: inst60000010, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst60000012: {kind: NameRef, arg0: name(Cpp), arg1: inst60000011, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst60000013: {kind: TupleType, arg0: inst_block_empty, type: type(TypeType)}
// CHECK:STDOUT: inst60000014: {kind: ClassDecl, arg0: class60000000, arg1: inst_block<none>, type: type(TypeType)}
// CHECK:STDOUT: inst60000015: {kind: ClassType, arg0: class60000000, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst60000016: {kind: NameRef, arg0: name2, arg1: inst60000014, type: type(TypeType)}
// CHECK:STDOUT: inst60000017: {kind: ValueBinding, arg0: entity_name60000000, arg1: inst6000001B, type: type(inst60000015)}
// CHECK:STDOUT: inst60000018: {kind: PatternType, arg0: inst60000015, type: type(TypeType)}
// CHECK:STDOUT: inst60000019: {kind: ValueBindingPattern, arg0: entity_name60000000, type: type(inst60000018)}
// CHECK:STDOUT: inst6000001A: {kind: ValueParamPattern, arg0: inst60000019, type: type(inst60000018)}
// CHECK:STDOUT: inst6000001B: {kind: ValueParam, arg0: call_param0, arg1: name1, type: type(inst60000015)}
// CHECK:STDOUT: inst6000001C: {kind: SpliceBlock, arg0: inst_block60000005, arg1: inst60000016, type: type(TypeType)}
// CHECK:STDOUT: inst6000001D: {kind: FunctionDecl, arg0: function60000000, arg1: inst_block6000000A, type: type(inst6000001E)}
// CHECK:STDOUT: inst6000001E: {kind: FunctionType, arg0: function60000000, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst6000001F: {kind: StructValue, arg0: inst_block_empty, type: type(inst6000001E)}
// CHECK:STDOUT: inst60000020: {kind: PointerType, arg0: inst60000015, type: type(TypeType)}
// CHECK:STDOUT: inst60000021: {kind: UnboundElementType, arg0: inst60000015, arg1: inst60000020, type: type(TypeType)}
// CHECK:STDOUT: inst60000022: {kind: FieldDecl, arg0: name5, arg1: element0, type: type(inst60000021)}
// CHECK:STDOUT: inst60000023: {kind: CustomLayoutType, arg0: struct_type_fields60000001, arg1: custom_layout60000001, type: type(TypeType)}
// CHECK:STDOUT: inst60000024: {kind: CustomLayoutType, arg0: struct_type_fields60000002, arg1: custom_layout60000001, type: type(TypeType)}
// CHECK:STDOUT: inst60000025: {kind: CompleteTypeWitness, arg0: inst60000023, type: type(inst(WitnessType))}
// CHECK:STDOUT: inst60000026: {kind: CompleteTypeWitness, arg0: inst60000024, type: type(inst(WitnessType))}
// CHECK:STDOUT: inst60000027: {kind: PointerType, arg0: inst60000024, type: type(TypeType)}
// CHECK:STDOUT: inst60000028: {kind: NameRef, arg0: name(Cpp), arg1: inst60000011, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst60000029: {kind: CppOverloadSetType, arg0: cpp_overload_set60000000, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst6000002A: {kind: CppOverloadSetValue, arg0: cpp_overload_set60000000, type: type(inst60000029)}
// CHECK:STDOUT: inst6000002B: {kind: CppOverloadSetValue, arg0: cpp_overload_set60000000, type: type(inst60000029)}
// CHECK:STDOUT: inst6000002C: {kind: NameRef, arg0: name3, arg1: inst6000002A, type: type(inst60000029)}
// CHECK:STDOUT: inst6000002D: {kind: FunctionDecl, arg0: function60000001, arg1: inst_block_empty, type: type(inst6000002E)}
// CHECK:STDOUT: inst6000002E: {kind: FunctionType, arg0: function60000001, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst6000002F: {kind: StructValue, arg0: inst_block_empty, type: type(inst6000002E)}
// CHECK:STDOUT: inst60000030: {kind: FunctionDecl, arg0: function60000002, arg1: inst_block_empty, type: type(inst60000031)}
// CHECK:STDOUT: inst60000031: {kind: FunctionType, arg0: function60000002, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst60000032: {kind: StructValue, arg0: inst_block_empty, type: type(inst60000031)}
// CHECK:STDOUT: inst60000033: {kind: Call, arg0: inst60000030, arg1: inst_block_empty, type: type(inst60000013)}
// CHECK:STDOUT: inst60000034: {kind: NameRef, arg0: name(Cpp), arg1: inst60000011, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst60000035: {kind: NameRef, arg0: name3, arg1: inst6000002A, type: type(inst60000029)}
// CHECK:STDOUT: inst60000036: {kind: NameRef, arg0: name1, arg1: inst60000017, type: type(inst60000015)}
// CHECK:STDOUT: inst60000037: {kind: ValueBinding, arg0: entity_name60000001, arg1: inst6000003A, type: type(inst60000015)}
// CHECK:STDOUT: inst60000038: {kind: ValueBindingPattern, arg0: entity_name60000001, type: type(inst60000018)}
// CHECK:STDOUT: inst60000039: {kind: ValueParamPattern, arg0: inst60000038, type: type(inst60000018)}
// CHECK:STDOUT: inst6000003A: {kind: ValueParam, arg0: call_param0, arg1: name1, type: type(inst60000015)}
// CHECK:STDOUT: inst6000003B: {kind: FunctionDecl, arg0: function60000003, arg1: inst_block60000012, type: type(inst6000003C)}
// CHECK:STDOUT: inst6000003C: {kind: FunctionType, arg0: function60000003, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst6000003D: {kind: StructValue, arg0: inst_block_empty, type: type(inst6000003C)}
// CHECK:STDOUT: inst6000003E: {kind: ValueBinding, arg0: entity_name60000002, arg1: inst60000042, type: type(inst60000020)}
// CHECK:STDOUT: inst6000003F: {kind: PatternType, arg0: inst60000020, type: type(TypeType)}
// CHECK:STDOUT: inst60000040: {kind: ValueBindingPattern, arg0: entity_name60000002, type: type(inst6000003F)}
// CHECK:STDOUT: inst60000041: {kind: ValueParamPattern, arg0: inst60000040, type: type(inst6000003F)}
// CHECK:STDOUT: inst60000042: {kind: ValueParam, arg0: call_param0, arg1: name1, type: type(inst60000020)}
// CHECK:STDOUT: inst60000043: {kind: FunctionDecl, arg0: function60000004, arg1: inst_block60000018, type: type(inst60000044)}
// CHECK:STDOUT: inst60000044: {kind: FunctionType, arg0: function60000004, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst60000045: {kind: StructValue, arg0: inst_block_empty, type: type(inst60000044)}
// CHECK:STDOUT: inst60000046: {kind: ValueAsRef, arg0: inst60000036, type: type(inst60000015)}
// CHECK:STDOUT: inst60000047: {kind: AddrOf, arg0: inst60000046, type: type(inst60000020)}
// CHECK:STDOUT: inst60000048: {kind: Call, arg0: inst60000043, arg1: inst_block6000001A, type: type(inst60000013)}
// CHECK:STDOUT: inst60000049: {kind: NameRef, arg0: name(Cpp), arg1: inst60000011, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst6000004A: {kind: NameRef, arg0: name3, arg1: inst6000002A, type: type(inst60000029)}
// CHECK:STDOUT: inst6000004B: {kind: NameRef, arg0: name(Cpp), arg1: inst60000011, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst6000004C: {kind: RefBindingPattern, arg0: entity_name60000003, type: type(inst6000003F)}
// CHECK:STDOUT: inst6000004D: {kind: VarPattern, arg0: inst6000004C, type: type(inst6000003F)}
// CHECK:STDOUT: inst6000004E: {kind: VarStorage, arg0: inst6000004D, type: type(inst60000020)}
// CHECK:STDOUT: inst6000004F: {kind: NameRef, arg0: name4, arg1: inst6000004E, type: type(inst60000020)}
// CHECK:STDOUT: inst60000050: {kind: AcquireValue, arg0: inst6000004F, type: type(inst60000020)}
// CHECK:STDOUT: inst60000051: {kind: Deref, arg0: inst60000050, type: type(inst60000015)}
// CHECK:STDOUT: inst60000052: {kind: AcquireValue, arg0: inst60000051, type: type(inst60000015)}
// CHECK:STDOUT: inst60000053: {kind: ValueAsRef, arg0: inst60000052, type: type(inst60000015)}
// CHECK:STDOUT: inst60000054: {kind: AddrOf, arg0: inst60000053, type: type(inst60000020)}
// CHECK:STDOUT: inst60000055: {kind: Call, arg0: inst60000043, arg1: inst_block6000001C, type: type(inst60000013)}
// CHECK:STDOUT: inst60000056: {kind: Return}
// CHECK:STDOUT: inst50000010: {kind: ImportCppDecl}
// CHECK:STDOUT: inst50000011: {kind: Namespace, arg0: name_scope50000001, arg1: inst50000010, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst50000012: {kind: NameRef, arg0: name(Cpp), arg1: inst50000011, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst50000013: {kind: TupleType, arg0: inst_block_empty, type: type(TypeType)}
// CHECK:STDOUT: inst50000014: {kind: ClassDecl, arg0: class50000000, arg1: inst_block<none>, type: type(TypeType)}
// CHECK:STDOUT: inst50000015: {kind: ClassType, arg0: class50000000, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst50000016: {kind: NameRef, arg0: name2, arg1: inst50000014, type: type(TypeType)}
// CHECK:STDOUT: inst50000017: {kind: ValueBinding, arg0: entity_name50000000, arg1: inst5000001B, type: type(inst50000015)}
// CHECK:STDOUT: inst50000018: {kind: PatternType, arg0: inst50000015, type: type(TypeType)}
// CHECK:STDOUT: inst50000019: {kind: ValueBindingPattern, arg0: entity_name50000000, type: type(inst50000018)}
// CHECK:STDOUT: inst5000001A: {kind: ValueParamPattern, arg0: inst50000019, type: type(inst50000018)}
// CHECK:STDOUT: inst5000001B: {kind: ValueParam, arg0: call_param0, arg1: name1, type: type(inst50000015)}
// CHECK:STDOUT: inst5000001C: {kind: SpliceBlock, arg0: inst_block50000005, arg1: inst50000016, type: type(TypeType)}
// CHECK:STDOUT: inst5000001D: {kind: FunctionDecl, arg0: function50000000, arg1: inst_block5000000A, type: type(inst5000001E)}
// CHECK:STDOUT: inst5000001E: {kind: FunctionType, arg0: function50000000, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst5000001F: {kind: StructValue, arg0: inst_block_empty, type: type(inst5000001E)}
// CHECK:STDOUT: inst50000020: {kind: PointerType, arg0: inst50000015, type: type(TypeType)}
// CHECK:STDOUT: inst50000021: {kind: UnboundElementType, arg0: inst50000015, arg1: inst50000020, type: type(TypeType)}
// CHECK:STDOUT: inst50000022: {kind: FieldDecl, arg0: name5, arg1: element0, type: type(inst50000021)}
// CHECK:STDOUT: inst50000023: {kind: CustomLayoutType, arg0: struct_type_fields50000001, arg1: custom_layout50000001, type: type(TypeType)}
// CHECK:STDOUT: inst50000024: {kind: CustomLayoutType, arg0: struct_type_fields50000002, arg1: custom_layout50000001, type: type(TypeType)}
// CHECK:STDOUT: inst50000025: {kind: CompleteTypeWitness, arg0: inst50000023, type: type(inst(WitnessType))}
// CHECK:STDOUT: inst50000026: {kind: CompleteTypeWitness, arg0: inst50000024, type: type(inst(WitnessType))}
// CHECK:STDOUT: inst50000027: {kind: PointerType, arg0: inst50000024, type: type(TypeType)}
// CHECK:STDOUT: inst50000028: {kind: NameRef, arg0: name(Cpp), arg1: inst50000011, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst50000029: {kind: CppOverloadSetType, arg0: cpp_overload_set50000000, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst5000002A: {kind: CppOverloadSetValue, arg0: cpp_overload_set50000000, type: type(inst50000029)}
// CHECK:STDOUT: inst5000002B: {kind: CppOverloadSetValue, arg0: cpp_overload_set50000000, type: type(inst50000029)}
// CHECK:STDOUT: inst5000002C: {kind: NameRef, arg0: name3, arg1: inst5000002A, type: type(inst50000029)}
// CHECK:STDOUT: inst5000002D: {kind: FunctionDecl, arg0: function50000001, arg1: inst_block_empty, type: type(inst5000002E)}
// CHECK:STDOUT: inst5000002E: {kind: FunctionType, arg0: function50000001, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst5000002F: {kind: StructValue, arg0: inst_block_empty, type: type(inst5000002E)}
// CHECK:STDOUT: inst50000030: {kind: FunctionDecl, arg0: function50000002, arg1: inst_block_empty, type: type(inst50000031)}
// CHECK:STDOUT: inst50000031: {kind: FunctionType, arg0: function50000002, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst50000032: {kind: StructValue, arg0: inst_block_empty, type: type(inst50000031)}
// CHECK:STDOUT: inst50000033: {kind: Call, arg0: inst50000030, arg1: inst_block_empty, type: type(inst50000013)}
// CHECK:STDOUT: inst50000034: {kind: NameRef, arg0: name(Cpp), arg1: inst50000011, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst50000035: {kind: NameRef, arg0: name3, arg1: inst5000002A, type: type(inst50000029)}
// CHECK:STDOUT: inst50000036: {kind: NameRef, arg0: name1, arg1: inst50000017, type: type(inst50000015)}
// CHECK:STDOUT: inst50000037: {kind: ValueBinding, arg0: entity_name50000001, arg1: inst5000003A, type: type(inst50000015)}
// CHECK:STDOUT: inst50000038: {kind: ValueBindingPattern, arg0: entity_name50000001, type: type(inst50000018)}
// CHECK:STDOUT: inst50000039: {kind: ValueParamPattern, arg0: inst50000038, type: type(inst50000018)}
// CHECK:STDOUT: inst5000003A: {kind: ValueParam, arg0: call_param0, arg1: name1, type: type(inst50000015)}
// CHECK:STDOUT: inst5000003B: {kind: FunctionDecl, arg0: function50000003, arg1: inst_block50000012, type: type(inst5000003C)}
// CHECK:STDOUT: inst5000003C: {kind: FunctionType, arg0: function50000003, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst5000003D: {kind: StructValue, arg0: inst_block_empty, type: type(inst5000003C)}
// CHECK:STDOUT: inst5000003E: {kind: ValueBinding, arg0: entity_name50000002, arg1: inst50000042, type: type(inst50000020)}
// CHECK:STDOUT: inst5000003F: {kind: PatternType, arg0: inst50000020, type: type(TypeType)}
// CHECK:STDOUT: inst50000040: {kind: ValueBindingPattern, arg0: entity_name50000002, type: type(inst5000003F)}
// CHECK:STDOUT: inst50000041: {kind: ValueParamPattern, arg0: inst50000040, type: type(inst5000003F)}
// CHECK:STDOUT: inst50000042: {kind: ValueParam, arg0: call_param0, arg1: name1, type: type(inst50000020)}
// CHECK:STDOUT: inst50000043: {kind: FunctionDecl, arg0: function50000004, arg1: inst_block50000018, type: type(inst50000044)}
// CHECK:STDOUT: inst50000044: {kind: FunctionType, arg0: function50000004, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst50000045: {kind: StructValue, arg0: inst_block_empty, type: type(inst50000044)}
// CHECK:STDOUT: inst50000046: {kind: ValueAsRef, arg0: inst50000036, type: type(inst50000015)}
// CHECK:STDOUT: inst50000047: {kind: AddrOf, arg0: inst50000046, type: type(inst50000020)}
// CHECK:STDOUT: inst50000048: {kind: Call, arg0: inst50000043, arg1: inst_block5000001A, type: type(inst50000013)}
// CHECK:STDOUT: inst50000049: {kind: NameRef, arg0: name(Cpp), arg1: inst50000011, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst5000004A: {kind: NameRef, arg0: name3, arg1: inst5000002A, type: type(inst50000029)}
// CHECK:STDOUT: inst5000004B: {kind: NameRef, arg0: name(Cpp), arg1: inst50000011, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst5000004C: {kind: RefBindingPattern, arg0: entity_name50000003, type: type(inst5000003F)}
// CHECK:STDOUT: inst5000004D: {kind: VarPattern, arg0: inst5000004C, type: type(inst5000003F)}
// CHECK:STDOUT: inst5000004E: {kind: VarStorage, arg0: inst5000004D, type: type(inst50000020)}
// CHECK:STDOUT: inst5000004F: {kind: NameRef, arg0: name4, arg1: inst5000004E, type: type(inst50000020)}
// CHECK:STDOUT: inst50000050: {kind: AcquireValue, arg0: inst5000004F, type: type(inst50000020)}
// CHECK:STDOUT: inst50000051: {kind: Deref, arg0: inst50000050, type: type(inst50000015)}
// CHECK:STDOUT: inst50000052: {kind: AcquireValue, arg0: inst50000051, type: type(inst50000015)}
// CHECK:STDOUT: inst50000053: {kind: ValueAsRef, arg0: inst50000052, type: type(inst50000015)}
// CHECK:STDOUT: inst50000054: {kind: AddrOf, arg0: inst50000053, type: type(inst50000020)}
// CHECK:STDOUT: inst50000055: {kind: Call, arg0: inst50000043, arg1: inst_block5000001C, type: type(inst50000013)}
// CHECK:STDOUT: inst50000056: {kind: Return}
// CHECK:STDOUT: constant_values:
// CHECK:STDOUT: values:
// CHECK:STDOUT: 'inst(TypeType)': concrete_constant(inst(TypeType))
@@ -234,155 +234,155 @@ fn G(x: Cpp.X) {
// CHECK:STDOUT: 'inst(VtableType)': concrete_constant(inst(VtableType))
// CHECK:STDOUT: 'inst(WitnessType)': concrete_constant(inst(WitnessType))
// CHECK:STDOUT: instF: concrete_constant(instF)
// CHECK:STDOUT: inst60000011: concrete_constant(inst60000011)
// CHECK:STDOUT: inst60000012: concrete_constant(inst60000011)
// CHECK:STDOUT: inst60000013: concrete_constant(inst60000013)
// CHECK:STDOUT: inst60000014: concrete_constant(inst60000015)
// CHECK:STDOUT: inst60000015: concrete_constant(inst60000015)
// CHECK:STDOUT: inst60000016: concrete_constant(inst60000015)
// CHECK:STDOUT: inst60000018: concrete_constant(inst60000018)
// CHECK:STDOUT: inst60000019: concrete_constant(inst60000019)
// CHECK:STDOUT: inst6000001A: concrete_constant(inst6000001A)
// CHECK:STDOUT: inst6000001C: concrete_constant(inst60000015)
// CHECK:STDOUT: inst6000001D: concrete_constant(inst6000001F)
// CHECK:STDOUT: inst6000001E: concrete_constant(inst6000001E)
// CHECK:STDOUT: inst6000001F: concrete_constant(inst6000001F)
// CHECK:STDOUT: inst60000020: concrete_constant(inst60000020)
// CHECK:STDOUT: inst60000021: concrete_constant(inst60000021)
// CHECK:STDOUT: inst60000022: concrete_constant(inst60000022)
// CHECK:STDOUT: inst60000023: concrete_constant(inst60000024)
// CHECK:STDOUT: inst60000024: concrete_constant(inst60000024)
// CHECK:STDOUT: inst60000025: concrete_constant(inst60000026)
// CHECK:STDOUT: inst60000026: concrete_constant(inst60000026)
// CHECK:STDOUT: inst60000027: concrete_constant(inst60000027)
// CHECK:STDOUT: inst60000028: concrete_constant(inst60000011)
// CHECK:STDOUT: inst60000029: concrete_constant(inst60000029)
// CHECK:STDOUT: inst6000002A: concrete_constant(inst6000002B)
// CHECK:STDOUT: inst6000002B: concrete_constant(inst6000002B)
// CHECK:STDOUT: inst6000002C: concrete_constant(inst6000002B)
// CHECK:STDOUT: inst6000002D: concrete_constant(inst6000002F)
// CHECK:STDOUT: inst6000002E: concrete_constant(inst6000002E)
// CHECK:STDOUT: inst6000002F: concrete_constant(inst6000002F)
// CHECK:STDOUT: inst60000030: concrete_constant(inst60000032)
// CHECK:STDOUT: inst60000031: concrete_constant(inst60000031)
// CHECK:STDOUT: inst60000032: concrete_constant(inst60000032)
// CHECK:STDOUT: inst60000034: concrete_constant(inst60000011)
// CHECK:STDOUT: inst60000035: concrete_constant(inst6000002B)
// CHECK:STDOUT: inst60000038: concrete_constant(inst60000038)
// CHECK:STDOUT: inst60000039: concrete_constant(inst60000039)
// CHECK:STDOUT: inst6000003B: concrete_constant(inst6000003D)
// CHECK:STDOUT: inst6000003C: concrete_constant(inst6000003C)
// CHECK:STDOUT: inst6000003D: concrete_constant(inst6000003D)
// CHECK:STDOUT: inst6000003F: concrete_constant(inst6000003F)
// CHECK:STDOUT: inst60000040: concrete_constant(inst60000040)
// CHECK:STDOUT: inst60000041: concrete_constant(inst60000041)
// CHECK:STDOUT: inst60000043: concrete_constant(inst60000045)
// CHECK:STDOUT: inst60000044: concrete_constant(inst60000044)
// CHECK:STDOUT: inst60000045: concrete_constant(inst60000045)
// CHECK:STDOUT: inst60000049: concrete_constant(inst60000011)
// CHECK:STDOUT: inst6000004A: concrete_constant(inst6000002B)
// CHECK:STDOUT: inst6000004B: concrete_constant(inst60000011)
// CHECK:STDOUT: inst6000004C: concrete_constant(inst6000004C)
// CHECK:STDOUT: inst6000004D: concrete_constant(inst6000004D)
// CHECK:STDOUT: inst6000004E: concrete_constant(inst6000004E)
// CHECK:STDOUT: inst6000004F: concrete_constant(inst6000004E)
// CHECK:STDOUT: inst50000011: concrete_constant(inst50000011)
// CHECK:STDOUT: inst50000012: concrete_constant(inst50000011)
// CHECK:STDOUT: inst50000013: concrete_constant(inst50000013)
// CHECK:STDOUT: inst50000014: concrete_constant(inst50000015)
// CHECK:STDOUT: inst50000015: concrete_constant(inst50000015)
// CHECK:STDOUT: inst50000016: concrete_constant(inst50000015)
// CHECK:STDOUT: inst50000018: concrete_constant(inst50000018)
// CHECK:STDOUT: inst50000019: concrete_constant(inst50000019)
// CHECK:STDOUT: inst5000001A: concrete_constant(inst5000001A)
// CHECK:STDOUT: inst5000001C: concrete_constant(inst50000015)
// CHECK:STDOUT: inst5000001D: concrete_constant(inst5000001F)
// CHECK:STDOUT: inst5000001E: concrete_constant(inst5000001E)
// CHECK:STDOUT: inst5000001F: concrete_constant(inst5000001F)
// CHECK:STDOUT: inst50000020: concrete_constant(inst50000020)
// CHECK:STDOUT: inst50000021: concrete_constant(inst50000021)
// CHECK:STDOUT: inst50000022: concrete_constant(inst50000022)
// CHECK:STDOUT: inst50000023: concrete_constant(inst50000024)
// CHECK:STDOUT: inst50000024: concrete_constant(inst50000024)
// CHECK:STDOUT: inst50000025: concrete_constant(inst50000026)
// CHECK:STDOUT: inst50000026: concrete_constant(inst50000026)
// CHECK:STDOUT: inst50000027: concrete_constant(inst50000027)
// CHECK:STDOUT: inst50000028: concrete_constant(inst50000011)
// CHECK:STDOUT: inst50000029: concrete_constant(inst50000029)
// CHECK:STDOUT: inst5000002A: concrete_constant(inst5000002B)
// CHECK:STDOUT: inst5000002B: concrete_constant(inst5000002B)
// CHECK:STDOUT: inst5000002C: concrete_constant(inst5000002B)
// CHECK:STDOUT: inst5000002D: concrete_constant(inst5000002F)
// CHECK:STDOUT: inst5000002E: concrete_constant(inst5000002E)
// CHECK:STDOUT: inst5000002F: concrete_constant(inst5000002F)
// CHECK:STDOUT: inst50000030: concrete_constant(inst50000032)
// CHECK:STDOUT: inst50000031: concrete_constant(inst50000031)
// CHECK:STDOUT: inst50000032: concrete_constant(inst50000032)
// CHECK:STDOUT: inst50000034: concrete_constant(inst50000011)
// CHECK:STDOUT: inst50000035: concrete_constant(inst5000002B)
// CHECK:STDOUT: inst50000038: concrete_constant(inst50000038)
// CHECK:STDOUT: inst50000039: concrete_constant(inst50000039)
// CHECK:STDOUT: inst5000003B: concrete_constant(inst5000003D)
// CHECK:STDOUT: inst5000003C: concrete_constant(inst5000003C)
// CHECK:STDOUT: inst5000003D: concrete_constant(inst5000003D)
// CHECK:STDOUT: inst5000003F: concrete_constant(inst5000003F)
// CHECK:STDOUT: inst50000040: concrete_constant(inst50000040)
// CHECK:STDOUT: inst50000041: concrete_constant(inst50000041)
// CHECK:STDOUT: inst50000043: concrete_constant(inst50000045)
// CHECK:STDOUT: inst50000044: concrete_constant(inst50000044)
// CHECK:STDOUT: inst50000045: concrete_constant(inst50000045)
// CHECK:STDOUT: inst50000049: concrete_constant(inst50000011)
// CHECK:STDOUT: inst5000004A: concrete_constant(inst5000002B)
// CHECK:STDOUT: inst5000004B: concrete_constant(inst50000011)
// CHECK:STDOUT: inst5000004C: concrete_constant(inst5000004C)
// CHECK:STDOUT: inst5000004D: concrete_constant(inst5000004D)
// CHECK:STDOUT: inst5000004E: concrete_constant(inst5000004E)
// CHECK:STDOUT: inst5000004F: concrete_constant(inst5000004E)
// CHECK:STDOUT: symbolic_constants: {}
// CHECK:STDOUT: inst_blocks:
// CHECK:STDOUT: inst_block_empty: {}
// CHECK:STDOUT: exports:
// CHECK:STDOUT: 0: inst6000001D
// CHECK:STDOUT: 0: inst5000001D
// CHECK:STDOUT: generated: {}
// CHECK:STDOUT: imports:
// CHECK:STDOUT: 0: inst60000011
// CHECK:STDOUT: 1: inst60000014
// CHECK:STDOUT: 2: inst6000002A
// CHECK:STDOUT: 3: inst6000002D
// CHECK:STDOUT: 4: inst60000030
// CHECK:STDOUT: 5: inst6000003B
// CHECK:STDOUT: 6: inst60000043
// CHECK:STDOUT: 7: inst6000004C
// CHECK:STDOUT: 8: inst6000004D
// CHECK:STDOUT: 9: inst6000004E
// CHECK:STDOUT: 0: inst50000011
// CHECK:STDOUT: 1: inst50000014
// CHECK:STDOUT: 2: inst5000002A
// CHECK:STDOUT: 3: inst5000002D
// CHECK:STDOUT: 4: inst50000030
// CHECK:STDOUT: 5: inst5000003B
// CHECK:STDOUT: 6: inst50000043
// CHECK:STDOUT: 7: inst5000004C
// CHECK:STDOUT: 8: inst5000004D
// CHECK:STDOUT: 9: inst5000004E
// CHECK:STDOUT: global_init: {}
// CHECK:STDOUT: inst_block60000005:
// CHECK:STDOUT: 0: inst60000012
// CHECK:STDOUT: 1: inst60000016
// CHECK:STDOUT: inst_block60000006:
// CHECK:STDOUT: 0: inst6000001A
// CHECK:STDOUT: inst_block60000007:
// CHECK:STDOUT: 0: inst6000001A
// CHECK:STDOUT: inst_block60000008:
// CHECK:STDOUT: 0: inst6000001B
// CHECK:STDOUT: inst_block60000009:
// CHECK:STDOUT: 0: inst60000019
// CHECK:STDOUT: 1: inst6000001A
// CHECK:STDOUT: inst_block6000000A:
// CHECK:STDOUT: 0: inst6000001B
// CHECK:STDOUT: 1: inst6000001C
// CHECK:STDOUT: 2: inst60000017
// CHECK:STDOUT: inst_block6000000B:
// CHECK:STDOUT: 0: inst60000028
// CHECK:STDOUT: 1: inst6000002C
// CHECK:STDOUT: 2: inst60000033
// CHECK:STDOUT: 3: inst60000034
// CHECK:STDOUT: 4: inst60000035
// CHECK:STDOUT: 5: inst60000036
// CHECK:STDOUT: 6: inst60000046
// CHECK:STDOUT: 7: inst60000047
// CHECK:STDOUT: 8: inst60000048
// CHECK:STDOUT: 9: inst60000049
// CHECK:STDOUT: 10: inst6000004A
// CHECK:STDOUT: 11: inst6000004B
// CHECK:STDOUT: 12: inst6000004F
// CHECK:STDOUT: 13: inst60000050
// CHECK:STDOUT: 14: inst60000051
// CHECK:STDOUT: 15: inst60000052
// CHECK:STDOUT: 16: inst60000053
// CHECK:STDOUT: 17: inst60000054
// CHECK:STDOUT: 18: inst60000055
// CHECK:STDOUT: 19: inst60000056
// CHECK:STDOUT: inst_block6000000C:
// CHECK:STDOUT: 0: inst60000022
// CHECK:STDOUT: 1: inst60000023
// CHECK:STDOUT: 2: inst60000025
// CHECK:STDOUT: inst_block6000000D: {}
// CHECK:STDOUT: inst_block6000000E:
// CHECK:STDOUT: 0: inst60000039
// CHECK:STDOUT: inst_block6000000F:
// CHECK:STDOUT: 0: inst60000039
// CHECK:STDOUT: inst_block60000010:
// CHECK:STDOUT: 0: inst6000003A
// CHECK:STDOUT: inst_block60000011:
// CHECK:STDOUT: 0: inst60000038
// CHECK:STDOUT: 1: inst60000039
// CHECK:STDOUT: inst_block60000012:
// CHECK:STDOUT: 0: inst6000003A
// CHECK:STDOUT: 1: inst60000037
// CHECK:STDOUT: inst_block60000013: {}
// CHECK:STDOUT: inst_block60000014:
// CHECK:STDOUT: 0: inst60000041
// CHECK:STDOUT: inst_block60000015:
// CHECK:STDOUT: 0: inst60000041
// CHECK:STDOUT: inst_block60000016:
// CHECK:STDOUT: 0: inst60000042
// CHECK:STDOUT: inst_block60000017:
// CHECK:STDOUT: 0: inst60000040
// CHECK:STDOUT: 1: inst60000041
// CHECK:STDOUT: inst_block60000018:
// CHECK:STDOUT: 0: inst60000042
// CHECK:STDOUT: 1: inst6000003E
// CHECK:STDOUT: inst_block60000019:
// CHECK:STDOUT: 0: inst60000036
// CHECK:STDOUT: inst_block6000001A:
// CHECK:STDOUT: 0: inst60000047
// CHECK:STDOUT: inst_block6000001B:
// CHECK:STDOUT: 0: inst60000052
// CHECK:STDOUT: inst_block6000001C:
// CHECK:STDOUT: 0: inst60000054
// CHECK:STDOUT: inst_block6000001D:
// CHECK:STDOUT: inst_block50000005:
// CHECK:STDOUT: 0: inst50000012
// CHECK:STDOUT: 1: inst50000016
// CHECK:STDOUT: inst_block50000006:
// CHECK:STDOUT: 0: inst5000001A
// CHECK:STDOUT: inst_block50000007:
// CHECK:STDOUT: 0: inst5000001A
// CHECK:STDOUT: inst_block50000008:
// CHECK:STDOUT: 0: inst5000001B
// CHECK:STDOUT: inst_block50000009:
// CHECK:STDOUT: 0: inst50000019
// CHECK:STDOUT: 1: inst5000001A
// CHECK:STDOUT: inst_block5000000A:
// CHECK:STDOUT: 0: inst5000001B
// CHECK:STDOUT: 1: inst5000001C
// CHECK:STDOUT: 2: inst50000017
// CHECK:STDOUT: inst_block5000000B:
// CHECK:STDOUT: 0: inst50000028
// CHECK:STDOUT: 1: inst5000002C
// CHECK:STDOUT: 2: inst50000033
// CHECK:STDOUT: 3: inst50000034
// CHECK:STDOUT: 4: inst50000035
// CHECK:STDOUT: 5: inst50000036
// CHECK:STDOUT: 6: inst50000046
// CHECK:STDOUT: 7: inst50000047
// CHECK:STDOUT: 8: inst50000048
// CHECK:STDOUT: 9: inst50000049
// CHECK:STDOUT: 10: inst5000004A
// CHECK:STDOUT: 11: inst5000004B
// CHECK:STDOUT: 12: inst5000004F
// CHECK:STDOUT: 13: inst50000050
// CHECK:STDOUT: 14: inst50000051
// CHECK:STDOUT: 15: inst50000052
// CHECK:STDOUT: 16: inst50000053
// CHECK:STDOUT: 17: inst50000054
// CHECK:STDOUT: 18: inst50000055
// CHECK:STDOUT: 19: inst50000056
// CHECK:STDOUT: inst_block5000000C:
// CHECK:STDOUT: 0: inst50000022
// CHECK:STDOUT: 1: inst50000023
// CHECK:STDOUT: 2: inst50000025
// CHECK:STDOUT: inst_block5000000D: {}
// CHECK:STDOUT: inst_block5000000E:
// CHECK:STDOUT: 0: inst50000039
// CHECK:STDOUT: inst_block5000000F:
// CHECK:STDOUT: 0: inst50000039
// CHECK:STDOUT: inst_block50000010:
// CHECK:STDOUT: 0: inst5000003A
// CHECK:STDOUT: inst_block50000011:
// CHECK:STDOUT: 0: inst50000038
// CHECK:STDOUT: 1: inst50000039
// CHECK:STDOUT: inst_block50000012:
// CHECK:STDOUT: 0: inst5000003A
// CHECK:STDOUT: 1: inst50000037
// CHECK:STDOUT: inst_block50000013: {}
// CHECK:STDOUT: inst_block50000014:
// CHECK:STDOUT: 0: inst50000041
// CHECK:STDOUT: inst_block50000015:
// CHECK:STDOUT: 0: inst50000041
// CHECK:STDOUT: inst_block50000016:
// CHECK:STDOUT: 0: inst50000042
// CHECK:STDOUT: inst_block50000017:
// CHECK:STDOUT: 0: inst50000040
// CHECK:STDOUT: 1: inst50000041
// CHECK:STDOUT: inst_block50000018:
// CHECK:STDOUT: 0: inst50000042
// CHECK:STDOUT: 1: inst5000003E
// CHECK:STDOUT: inst_block50000019:
// CHECK:STDOUT: 0: inst50000036
// CHECK:STDOUT: inst_block5000001A:
// CHECK:STDOUT: 0: inst50000047
// CHECK:STDOUT: inst_block5000001B:
// CHECK:STDOUT: 0: inst50000052
// CHECK:STDOUT: inst_block5000001C:
// CHECK:STDOUT: 0: inst50000054
// CHECK:STDOUT: inst_block5000001D:
// CHECK:STDOUT: 0: instF
// CHECK:STDOUT: 1: inst60000010
// CHECK:STDOUT: 2: inst6000001D
// CHECK:STDOUT: 1: inst50000010
// CHECK:STDOUT: 2: inst5000001D
// CHECK:STDOUT: value_stores:
// CHECK:STDOUT: shared_values:
// CHECK:STDOUT: ints: {}
+72 -72
View File
@@ -38,11 +38,11 @@ fn B() {
// CHECK:STDOUT: import_ir_insts: {}
// CHECK:STDOUT: clang_decls: {}
// CHECK:STDOUT: name_scopes:
// CHECK:STDOUT: name_scope0: {inst: instF, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name0: inst60000010}}
// CHECK:STDOUT: name_scope0: {inst: instF, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name0: inst50000010}}
// CHECK:STDOUT: entity_names: {}
// CHECK:STDOUT: cpp_global_vars: {}
// CHECK:STDOUT: functions:
// CHECK:STDOUT: function60000000: {name: name0, parent_scope: name_scope0, call_param_patterns_id: inst_block_empty, call_params_id: inst_block_empty, body: [inst_block60000006]}
// CHECK:STDOUT: function50000000: {name: name0, parent_scope: name_scope0, call_param_patterns_id: inst_block_empty, call_params_id: inst_block_empty, body: [inst_block50000006]}
// CHECK:STDOUT: classes: {}
// CHECK:STDOUT: interfaces: {}
// CHECK:STDOUT: associated_constants: {}
@@ -61,39 +61,39 @@ fn B() {
// CHECK:STDOUT: value_repr: {kind: copy, type: type(Error)}
// CHECK:STDOUT: 'type(inst(NamespaceType))':
// CHECK:STDOUT: value_repr: {kind: copy, type: type(inst(NamespaceType))}
// CHECK:STDOUT: 'type(inst60000011)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst60000012)}
// CHECK:STDOUT: 'type(inst60000012)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst60000012)}
// CHECK:STDOUT: 'type(inst50000011)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst50000012)}
// CHECK:STDOUT: 'type(inst50000012)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst50000012)}
// CHECK:STDOUT: facet_types: {}
// CHECK:STDOUT: insts:
// CHECK:STDOUT: instF: {kind: Namespace, arg0: name_scope0, arg1: inst<none>, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst60000010: {kind: FunctionDecl, arg0: function60000000, arg1: inst_block_empty, type: type(inst60000011)}
// CHECK:STDOUT: inst60000011: {kind: FunctionType, arg0: function60000000, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst60000012: {kind: TupleType, arg0: inst_block_empty, type: type(TypeType)}
// CHECK:STDOUT: inst60000013: {kind: StructValue, arg0: inst_block_empty, type: type(inst60000011)}
// CHECK:STDOUT: inst60000014: {kind: Return}
// CHECK:STDOUT: inst50000010: {kind: FunctionDecl, arg0: function50000000, arg1: inst_block_empty, type: type(inst50000011)}
// CHECK:STDOUT: inst50000011: {kind: FunctionType, arg0: function50000000, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst50000012: {kind: TupleType, arg0: inst_block_empty, type: type(TypeType)}
// CHECK:STDOUT: inst50000013: {kind: StructValue, arg0: inst_block_empty, type: type(inst50000011)}
// CHECK:STDOUT: inst50000014: {kind: Return}
// CHECK:STDOUT: constant_values:
// CHECK:STDOUT: values:
// CHECK:STDOUT: instF: concrete_constant(instF)
// CHECK:STDOUT: inst60000010: concrete_constant(inst60000013)
// CHECK:STDOUT: inst60000011: concrete_constant(inst60000011)
// CHECK:STDOUT: inst60000012: concrete_constant(inst60000012)
// CHECK:STDOUT: inst60000013: concrete_constant(inst60000013)
// CHECK:STDOUT: inst50000010: concrete_constant(inst50000013)
// CHECK:STDOUT: inst50000011: concrete_constant(inst50000011)
// CHECK:STDOUT: inst50000012: concrete_constant(inst50000012)
// CHECK:STDOUT: inst50000013: concrete_constant(inst50000013)
// CHECK:STDOUT: symbolic_constants: {}
// CHECK:STDOUT: inst_blocks:
// CHECK:STDOUT: inst_block_empty: {}
// CHECK:STDOUT: exports:
// CHECK:STDOUT: 0: inst60000010
// CHECK:STDOUT: 0: inst50000010
// CHECK:STDOUT: generated: {}
// CHECK:STDOUT: imports: {}
// CHECK:STDOUT: global_init: {}
// CHECK:STDOUT: inst_block60000005: {}
// CHECK:STDOUT: inst_block60000006:
// CHECK:STDOUT: 0: inst60000014
// CHECK:STDOUT: inst_block60000007:
// CHECK:STDOUT: inst_block50000005: {}
// CHECK:STDOUT: inst_block50000006:
// CHECK:STDOUT: 0: inst50000014
// CHECK:STDOUT: inst_block50000007:
// CHECK:STDOUT: 0: instF
// CHECK:STDOUT: 1: inst60000010
// CHECK:STDOUT: 1: inst50000010
// CHECK:STDOUT: value_stores:
// CHECK:STDOUT: shared_values:
// CHECK:STDOUT: ints: {}
@@ -112,20 +112,20 @@ fn B() {
// CHECK:STDOUT: import_irs:
// CHECK:STDOUT: 'import_ir(ApiForImpl)': {decl_id: inst<none>, is_export: false}
// CHECK:STDOUT: 'import_ir(Cpp)': {decl_id: inst<none>, is_export: false}
// CHECK:STDOUT: import_ir50000002: {decl_id: inst50000010, is_export: false}
// CHECK:STDOUT: import_ir70000002: {decl_id: inst70000010, is_export: false}
// CHECK:STDOUT: import_ir_insts:
// CHECK:STDOUT: import_ir_inst0: {ir_id: import_ir50000002, inst_id: inst60000010}
// CHECK:STDOUT: import_ir_inst1: {ir_id: import_ir50000002, inst_id: inst60000010}
// CHECK:STDOUT: import_ir_inst0: {ir_id: import_ir70000002, inst_id: inst50000010}
// CHECK:STDOUT: import_ir_inst1: {ir_id: import_ir70000002, inst_id: inst50000010}
// CHECK:STDOUT: clang_decls: {}
// CHECK:STDOUT: name_scopes:
// CHECK:STDOUT: name_scope0: {inst: instF, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name1: inst50000011, name0: inst50000012}}
// CHECK:STDOUT: name_scope50000001: {inst: inst50000011, parent_scope: name_scope0, has_error: false, extended_scopes: [], names: {name1: inst50000017}}
// CHECK:STDOUT: name_scope0: {inst: instF, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name1: inst70000011, name0: inst70000012}}
// CHECK:STDOUT: name_scope70000001: {inst: inst70000011, parent_scope: name_scope0, has_error: false, extended_scopes: [], names: {name1: inst70000017}}
// CHECK:STDOUT: entity_names:
// CHECK:STDOUT: entity_name50000000: {name: name1, parent_scope: name_scope50000001, index: -1, is_template: 0, is_unused: 0, form: constant<none>}
// CHECK:STDOUT: entity_name70000000: {name: name1, parent_scope: name_scope70000001, index: -1, is_template: 0, is_unused: 0, form: constant<none>}
// CHECK:STDOUT: cpp_global_vars: {}
// CHECK:STDOUT: functions:
// CHECK:STDOUT: function50000000: {name: name0, parent_scope: name_scope0, call_param_patterns_id: inst_block_empty, call_params_id: inst_block_empty, body: [inst_block50000006]}
// CHECK:STDOUT: function50000001: {name: name1, parent_scope: name_scope50000001, call_param_patterns_id: inst_block_empty}
// CHECK:STDOUT: function70000000: {name: name0, parent_scope: name_scope0, call_param_patterns_id: inst_block_empty, call_params_id: inst_block_empty, body: [inst_block70000006]}
// CHECK:STDOUT: function70000001: {name: name1, parent_scope: name_scope70000001, call_param_patterns_id: inst_block_empty}
// CHECK:STDOUT: classes: {}
// CHECK:STDOUT: interfaces: {}
// CHECK:STDOUT: associated_constants: {}
@@ -144,64 +144,64 @@ fn B() {
// CHECK:STDOUT: value_repr: {kind: copy, type: type(Error)}
// CHECK:STDOUT: 'type(inst(NamespaceType))':
// CHECK:STDOUT: value_repr: {kind: copy, type: type(inst(NamespaceType))}
// CHECK:STDOUT: 'type(inst50000013)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst50000014)}
// CHECK:STDOUT: 'type(inst50000014)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst50000014)}
// CHECK:STDOUT: 'type(inst70000013)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst70000014)}
// CHECK:STDOUT: 'type(inst70000014)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst70000014)}
// CHECK:STDOUT: 'type(inst(InstType))':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst50000014)}
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst70000014)}
// CHECK:STDOUT: facet_types: {}
// CHECK:STDOUT: insts:
// CHECK:STDOUT: instF: {kind: Namespace, arg0: name_scope0, arg1: inst<none>, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst50000010: {kind: ImportDecl, arg0: name1}
// CHECK:STDOUT: inst50000011: {kind: Namespace, arg0: name_scope50000001, arg1: inst50000010, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst50000012: {kind: FunctionDecl, arg0: function50000000, arg1: inst_block_empty, type: type(inst50000013)}
// CHECK:STDOUT: inst50000013: {kind: FunctionType, arg0: function50000000, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst50000014: {kind: TupleType, arg0: inst_block_empty, type: type(TypeType)}
// CHECK:STDOUT: inst50000015: {kind: StructValue, arg0: inst_block_empty, type: type(inst50000013)}
// CHECK:STDOUT: inst50000016: {kind: NameRef, arg0: name1, arg1: inst50000011, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst50000017: {kind: ImportRefLoaded, arg0: import_ir_inst0, arg1: entity_name50000000, type: type(inst50000019)}
// CHECK:STDOUT: inst50000018: {kind: FunctionDecl, arg0: function50000001, arg1: inst_block_empty, type: type(inst50000019)}
// CHECK:STDOUT: inst50000019: {kind: FunctionType, arg0: function50000001, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst5000001A: {kind: StructValue, arg0: inst_block_empty, type: type(inst50000019)}
// CHECK:STDOUT: inst5000001B: {kind: NameRef, arg0: name1, arg1: inst50000017, type: type(inst50000019)}
// CHECK:STDOUT: inst5000001C: {kind: Call, arg0: inst5000001B, arg1: inst_block_empty, type: type(inst50000014)}
// CHECK:STDOUT: inst5000001D: {kind: Return}
// CHECK:STDOUT: inst70000010: {kind: ImportDecl, arg0: name1}
// CHECK:STDOUT: inst70000011: {kind: Namespace, arg0: name_scope70000001, arg1: inst70000010, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst70000012: {kind: FunctionDecl, arg0: function70000000, arg1: inst_block_empty, type: type(inst70000013)}
// CHECK:STDOUT: inst70000013: {kind: FunctionType, arg0: function70000000, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst70000014: {kind: TupleType, arg0: inst_block_empty, type: type(TypeType)}
// CHECK:STDOUT: inst70000015: {kind: StructValue, arg0: inst_block_empty, type: type(inst70000013)}
// CHECK:STDOUT: inst70000016: {kind: NameRef, arg0: name1, arg1: inst70000011, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst70000017: {kind: ImportRefLoaded, arg0: import_ir_inst0, arg1: entity_name70000000, type: type(inst70000019)}
// CHECK:STDOUT: inst70000018: {kind: FunctionDecl, arg0: function70000001, arg1: inst_block_empty, type: type(inst70000019)}
// CHECK:STDOUT: inst70000019: {kind: FunctionType, arg0: function70000001, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst7000001A: {kind: StructValue, arg0: inst_block_empty, type: type(inst70000019)}
// CHECK:STDOUT: inst7000001B: {kind: NameRef, arg0: name1, arg1: inst70000017, type: type(inst70000019)}
// CHECK:STDOUT: inst7000001C: {kind: Call, arg0: inst7000001B, arg1: inst_block_empty, type: type(inst70000014)}
// CHECK:STDOUT: inst7000001D: {kind: Return}
// CHECK:STDOUT: constant_values:
// CHECK:STDOUT: values:
// CHECK:STDOUT: instF: concrete_constant(instF)
// CHECK:STDOUT: inst50000011: concrete_constant(inst50000011)
// CHECK:STDOUT: inst50000012: concrete_constant(inst50000015)
// CHECK:STDOUT: inst50000013: concrete_constant(inst50000013)
// CHECK:STDOUT: inst50000014: concrete_constant(inst50000014)
// CHECK:STDOUT: inst50000015: concrete_constant(inst50000015)
// CHECK:STDOUT: inst50000016: concrete_constant(inst50000011)
// CHECK:STDOUT: inst50000017: concrete_constant(inst5000001A)
// CHECK:STDOUT: inst50000018: concrete_constant(inst5000001A)
// CHECK:STDOUT: inst50000019: concrete_constant(inst50000019)
// CHECK:STDOUT: inst5000001A: concrete_constant(inst5000001A)
// CHECK:STDOUT: inst5000001B: concrete_constant(inst5000001A)
// CHECK:STDOUT: inst70000011: concrete_constant(inst70000011)
// CHECK:STDOUT: inst70000012: concrete_constant(inst70000015)
// CHECK:STDOUT: inst70000013: concrete_constant(inst70000013)
// CHECK:STDOUT: inst70000014: concrete_constant(inst70000014)
// CHECK:STDOUT: inst70000015: concrete_constant(inst70000015)
// CHECK:STDOUT: inst70000016: concrete_constant(inst70000011)
// CHECK:STDOUT: inst70000017: concrete_constant(inst7000001A)
// CHECK:STDOUT: inst70000018: concrete_constant(inst7000001A)
// CHECK:STDOUT: inst70000019: concrete_constant(inst70000019)
// CHECK:STDOUT: inst7000001A: concrete_constant(inst7000001A)
// CHECK:STDOUT: inst7000001B: concrete_constant(inst7000001A)
// CHECK:STDOUT: symbolic_constants: {}
// CHECK:STDOUT: inst_blocks:
// CHECK:STDOUT: inst_block_empty: {}
// CHECK:STDOUT: exports:
// CHECK:STDOUT: 0: inst50000012
// CHECK:STDOUT: 0: inst70000012
// CHECK:STDOUT: generated: {}
// CHECK:STDOUT: imports:
// CHECK:STDOUT: 0: inst50000011
// CHECK:STDOUT: 1: inst50000017
// CHECK:STDOUT: 2: inst50000018
// CHECK:STDOUT: 0: inst70000011
// CHECK:STDOUT: 1: inst70000017
// CHECK:STDOUT: 2: inst70000018
// CHECK:STDOUT: global_init: {}
// CHECK:STDOUT: inst_block50000005: {}
// CHECK:STDOUT: inst_block50000006:
// CHECK:STDOUT: 0: inst50000016
// CHECK:STDOUT: 1: inst5000001B
// CHECK:STDOUT: 2: inst5000001C
// CHECK:STDOUT: 3: inst5000001D
// CHECK:STDOUT: inst_block50000007:
// CHECK:STDOUT: inst_block70000005: {}
// CHECK:STDOUT: inst_block70000006:
// CHECK:STDOUT: 0: inst70000016
// CHECK:STDOUT: 1: inst7000001B
// CHECK:STDOUT: 2: inst7000001C
// CHECK:STDOUT: 3: inst7000001D
// CHECK:STDOUT: inst_block70000007:
// CHECK:STDOUT: 0: instF
// CHECK:STDOUT: 1: inst50000010
// CHECK:STDOUT: 2: inst50000012
// CHECK:STDOUT: 1: inst70000010
// CHECK:STDOUT: 2: inst70000012
// CHECK:STDOUT: value_stores:
// CHECK:STDOUT: shared_values:
// CHECK:STDOUT: ints: {}
@@ -38,11 +38,11 @@ fn B() {
// CHECK:STDOUT: import_ir_insts: {}
// CHECK:STDOUT: clang_decls: {}
// CHECK:STDOUT: name_scopes:
// CHECK:STDOUT: name_scope0: {inst: instF, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name0: inst60000010}}
// CHECK:STDOUT: name_scope0: {inst: instF, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name0: inst50000010}}
// CHECK:STDOUT: entity_names: {}
// CHECK:STDOUT: cpp_global_vars: {}
// CHECK:STDOUT: functions:
// CHECK:STDOUT: function60000000: {name: name0, parent_scope: name_scope0, call_param_patterns_id: inst_block_empty, call_params_id: inst_block_empty, body: [inst_block60000006]}
// CHECK:STDOUT: function50000000: {name: name0, parent_scope: name_scope0, call_param_patterns_id: inst_block_empty, call_params_id: inst_block_empty, body: [inst_block50000006]}
// CHECK:STDOUT: classes: {}
// CHECK:STDOUT: interfaces: {}
// CHECK:STDOUT: associated_constants: {}
@@ -61,39 +61,39 @@ fn B() {
// CHECK:STDOUT: value_repr: {kind: copy, type: type(Error)}
// CHECK:STDOUT: 'type(inst(NamespaceType))':
// CHECK:STDOUT: value_repr: {kind: copy, type: type(inst(NamespaceType))}
// CHECK:STDOUT: 'type(inst60000011)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst60000012)}
// CHECK:STDOUT: 'type(inst60000012)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst60000012)}
// CHECK:STDOUT: 'type(inst50000011)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst50000012)}
// CHECK:STDOUT: 'type(inst50000012)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst50000012)}
// CHECK:STDOUT: facet_types: {}
// CHECK:STDOUT: insts:
// CHECK:STDOUT: instF: {kind: Namespace, arg0: name_scope0, arg1: inst<none>, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst60000010: {kind: FunctionDecl, arg0: function60000000, arg1: inst_block_empty, type: type(inst60000011)}
// CHECK:STDOUT: inst60000011: {kind: FunctionType, arg0: function60000000, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst60000012: {kind: TupleType, arg0: inst_block_empty, type: type(TypeType)}
// CHECK:STDOUT: inst60000013: {kind: StructValue, arg0: inst_block_empty, type: type(inst60000011)}
// CHECK:STDOUT: inst60000014: {kind: Return}
// CHECK:STDOUT: inst50000010: {kind: FunctionDecl, arg0: function50000000, arg1: inst_block_empty, type: type(inst50000011)}
// CHECK:STDOUT: inst50000011: {kind: FunctionType, arg0: function50000000, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst50000012: {kind: TupleType, arg0: inst_block_empty, type: type(TypeType)}
// CHECK:STDOUT: inst50000013: {kind: StructValue, arg0: inst_block_empty, type: type(inst50000011)}
// CHECK:STDOUT: inst50000014: {kind: Return}
// CHECK:STDOUT: constant_values:
// CHECK:STDOUT: values:
// CHECK:STDOUT: instF: concrete_constant(instF)
// CHECK:STDOUT: inst60000010: concrete_constant(inst60000013)
// CHECK:STDOUT: inst60000011: concrete_constant(inst60000011)
// CHECK:STDOUT: inst60000012: concrete_constant(inst60000012)
// CHECK:STDOUT: inst60000013: concrete_constant(inst60000013)
// CHECK:STDOUT: inst50000010: concrete_constant(inst50000013)
// CHECK:STDOUT: inst50000011: concrete_constant(inst50000011)
// CHECK:STDOUT: inst50000012: concrete_constant(inst50000012)
// CHECK:STDOUT: inst50000013: concrete_constant(inst50000013)
// CHECK:STDOUT: symbolic_constants: {}
// CHECK:STDOUT: inst_blocks:
// CHECK:STDOUT: inst_block_empty: {}
// CHECK:STDOUT: exports:
// CHECK:STDOUT: 0: inst60000010
// CHECK:STDOUT: 0: inst50000010
// CHECK:STDOUT: generated: {}
// CHECK:STDOUT: imports: {}
// CHECK:STDOUT: global_init: {}
// CHECK:STDOUT: inst_block60000005: {}
// CHECK:STDOUT: inst_block60000006:
// CHECK:STDOUT: 0: inst60000014
// CHECK:STDOUT: inst_block60000007:
// CHECK:STDOUT: inst_block50000005: {}
// CHECK:STDOUT: inst_block50000006:
// CHECK:STDOUT: 0: inst50000014
// CHECK:STDOUT: inst_block50000007:
// CHECK:STDOUT: 0: instF
// CHECK:STDOUT: 1: inst60000010
// CHECK:STDOUT: 1: inst50000010
// CHECK:STDOUT: value_stores:
// CHECK:STDOUT: shared_values:
// CHECK:STDOUT: ints: {}
@@ -131,20 +131,20 @@ fn B() {
// CHECK:STDOUT: import_irs:
// CHECK:STDOUT: 'import_ir(ApiForImpl)': {decl_id: inst<none>, is_export: false}
// CHECK:STDOUT: 'import_ir(Cpp)': {decl_id: inst<none>, is_export: false}
// CHECK:STDOUT: import_ir50000002: {decl_id: inst50000010, is_export: false}
// CHECK:STDOUT: import_ir70000002: {decl_id: inst70000010, is_export: false}
// CHECK:STDOUT: import_ir_insts:
// CHECK:STDOUT: import_ir_inst0: {ir_id: import_ir50000002, inst_id: inst60000010}
// CHECK:STDOUT: import_ir_inst1: {ir_id: import_ir50000002, inst_id: inst60000010}
// CHECK:STDOUT: import_ir_inst0: {ir_id: import_ir70000002, inst_id: inst50000010}
// CHECK:STDOUT: import_ir_inst1: {ir_id: import_ir70000002, inst_id: inst50000010}
// CHECK:STDOUT: clang_decls: {}
// CHECK:STDOUT: name_scopes:
// CHECK:STDOUT: name_scope0: {inst: instF, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name1: inst50000011, name0: inst50000012}}
// CHECK:STDOUT: name_scope50000001: {inst: inst50000011, parent_scope: name_scope0, has_error: false, extended_scopes: [], names: {name1: inst50000017}}
// CHECK:STDOUT: name_scope0: {inst: instF, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name1: inst70000011, name0: inst70000012}}
// CHECK:STDOUT: name_scope70000001: {inst: inst70000011, parent_scope: name_scope0, has_error: false, extended_scopes: [], names: {name1: inst70000017}}
// CHECK:STDOUT: entity_names:
// CHECK:STDOUT: entity_name50000000: {name: name1, parent_scope: name_scope50000001, index: -1, is_template: 0, is_unused: 0, form: constant<none>}
// CHECK:STDOUT: entity_name70000000: {name: name1, parent_scope: name_scope70000001, index: -1, is_template: 0, is_unused: 0, form: constant<none>}
// CHECK:STDOUT: cpp_global_vars: {}
// CHECK:STDOUT: functions:
// CHECK:STDOUT: function50000000: {name: name0, parent_scope: name_scope0, call_param_patterns_id: inst_block_empty, call_params_id: inst_block_empty, body: [inst_block50000006]}
// CHECK:STDOUT: function50000001: {name: name1, parent_scope: name_scope50000001, call_param_patterns_id: inst_block_empty}
// CHECK:STDOUT: function70000000: {name: name0, parent_scope: name_scope0, call_param_patterns_id: inst_block_empty, call_params_id: inst_block_empty, body: [inst_block70000006]}
// CHECK:STDOUT: function70000001: {name: name1, parent_scope: name_scope70000001, call_param_patterns_id: inst_block_empty}
// CHECK:STDOUT: classes: {}
// CHECK:STDOUT: interfaces: {}
// CHECK:STDOUT: associated_constants: {}
@@ -163,64 +163,64 @@ fn B() {
// CHECK:STDOUT: value_repr: {kind: copy, type: type(Error)}
// CHECK:STDOUT: 'type(inst(NamespaceType))':
// CHECK:STDOUT: value_repr: {kind: copy, type: type(inst(NamespaceType))}
// CHECK:STDOUT: 'type(inst50000013)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst50000014)}
// CHECK:STDOUT: 'type(inst50000014)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst50000014)}
// CHECK:STDOUT: 'type(inst70000013)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst70000014)}
// CHECK:STDOUT: 'type(inst70000014)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst70000014)}
// CHECK:STDOUT: 'type(inst(InstType))':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst50000014)}
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst70000014)}
// CHECK:STDOUT: facet_types: {}
// CHECK:STDOUT: insts:
// CHECK:STDOUT: instF: {kind: Namespace, arg0: name_scope0, arg1: inst<none>, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst50000010: {kind: ImportDecl, arg0: name1}
// CHECK:STDOUT: inst50000011: {kind: Namespace, arg0: name_scope50000001, arg1: inst50000010, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst50000012: {kind: FunctionDecl, arg0: function50000000, arg1: inst_block_empty, type: type(inst50000013)}
// CHECK:STDOUT: inst50000013: {kind: FunctionType, arg0: function50000000, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst50000014: {kind: TupleType, arg0: inst_block_empty, type: type(TypeType)}
// CHECK:STDOUT: inst50000015: {kind: StructValue, arg0: inst_block_empty, type: type(inst50000013)}
// CHECK:STDOUT: inst50000016: {kind: NameRef, arg0: name1, arg1: inst50000011, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst50000017: {kind: ImportRefLoaded, arg0: import_ir_inst0, arg1: entity_name50000000, type: type(inst50000019)}
// CHECK:STDOUT: inst50000018: {kind: FunctionDecl, arg0: function50000001, arg1: inst_block_empty, type: type(inst50000019)}
// CHECK:STDOUT: inst50000019: {kind: FunctionType, arg0: function50000001, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst5000001A: {kind: StructValue, arg0: inst_block_empty, type: type(inst50000019)}
// CHECK:STDOUT: inst5000001B: {kind: NameRef, arg0: name1, arg1: inst50000017, type: type(inst50000019)}
// CHECK:STDOUT: inst5000001C: {kind: Call, arg0: inst5000001B, arg1: inst_block_empty, type: type(inst50000014)}
// CHECK:STDOUT: inst5000001D: {kind: Return}
// CHECK:STDOUT: inst70000010: {kind: ImportDecl, arg0: name1}
// CHECK:STDOUT: inst70000011: {kind: Namespace, arg0: name_scope70000001, arg1: inst70000010, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst70000012: {kind: FunctionDecl, arg0: function70000000, arg1: inst_block_empty, type: type(inst70000013)}
// CHECK:STDOUT: inst70000013: {kind: FunctionType, arg0: function70000000, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst70000014: {kind: TupleType, arg0: inst_block_empty, type: type(TypeType)}
// CHECK:STDOUT: inst70000015: {kind: StructValue, arg0: inst_block_empty, type: type(inst70000013)}
// CHECK:STDOUT: inst70000016: {kind: NameRef, arg0: name1, arg1: inst70000011, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst70000017: {kind: ImportRefLoaded, arg0: import_ir_inst0, arg1: entity_name70000000, type: type(inst70000019)}
// CHECK:STDOUT: inst70000018: {kind: FunctionDecl, arg0: function70000001, arg1: inst_block_empty, type: type(inst70000019)}
// CHECK:STDOUT: inst70000019: {kind: FunctionType, arg0: function70000001, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst7000001A: {kind: StructValue, arg0: inst_block_empty, type: type(inst70000019)}
// CHECK:STDOUT: inst7000001B: {kind: NameRef, arg0: name1, arg1: inst70000017, type: type(inst70000019)}
// CHECK:STDOUT: inst7000001C: {kind: Call, arg0: inst7000001B, arg1: inst_block_empty, type: type(inst70000014)}
// CHECK:STDOUT: inst7000001D: {kind: Return}
// CHECK:STDOUT: constant_values:
// CHECK:STDOUT: values:
// CHECK:STDOUT: instF: concrete_constant(instF)
// CHECK:STDOUT: inst50000011: concrete_constant(inst50000011)
// CHECK:STDOUT: inst50000012: concrete_constant(inst50000015)
// CHECK:STDOUT: inst50000013: concrete_constant(inst50000013)
// CHECK:STDOUT: inst50000014: concrete_constant(inst50000014)
// CHECK:STDOUT: inst50000015: concrete_constant(inst50000015)
// CHECK:STDOUT: inst50000016: concrete_constant(inst50000011)
// CHECK:STDOUT: inst50000017: concrete_constant(inst5000001A)
// CHECK:STDOUT: inst50000018: concrete_constant(inst5000001A)
// CHECK:STDOUT: inst50000019: concrete_constant(inst50000019)
// CHECK:STDOUT: inst5000001A: concrete_constant(inst5000001A)
// CHECK:STDOUT: inst5000001B: concrete_constant(inst5000001A)
// CHECK:STDOUT: inst70000011: concrete_constant(inst70000011)
// CHECK:STDOUT: inst70000012: concrete_constant(inst70000015)
// CHECK:STDOUT: inst70000013: concrete_constant(inst70000013)
// CHECK:STDOUT: inst70000014: concrete_constant(inst70000014)
// CHECK:STDOUT: inst70000015: concrete_constant(inst70000015)
// CHECK:STDOUT: inst70000016: concrete_constant(inst70000011)
// CHECK:STDOUT: inst70000017: concrete_constant(inst7000001A)
// CHECK:STDOUT: inst70000018: concrete_constant(inst7000001A)
// CHECK:STDOUT: inst70000019: concrete_constant(inst70000019)
// CHECK:STDOUT: inst7000001A: concrete_constant(inst7000001A)
// CHECK:STDOUT: inst7000001B: concrete_constant(inst7000001A)
// CHECK:STDOUT: symbolic_constants: {}
// CHECK:STDOUT: inst_blocks:
// CHECK:STDOUT: inst_block_empty: {}
// CHECK:STDOUT: exports:
// CHECK:STDOUT: 0: inst50000012
// CHECK:STDOUT: 0: inst70000012
// CHECK:STDOUT: generated: {}
// CHECK:STDOUT: imports:
// CHECK:STDOUT: 0: inst50000011
// CHECK:STDOUT: 1: inst50000017
// CHECK:STDOUT: 2: inst50000018
// CHECK:STDOUT: 0: inst70000011
// CHECK:STDOUT: 1: inst70000017
// CHECK:STDOUT: 2: inst70000018
// CHECK:STDOUT: global_init: {}
// CHECK:STDOUT: inst_block50000005: {}
// CHECK:STDOUT: inst_block50000006:
// CHECK:STDOUT: 0: inst50000016
// CHECK:STDOUT: 1: inst5000001B
// CHECK:STDOUT: 2: inst5000001C
// CHECK:STDOUT: 3: inst5000001D
// CHECK:STDOUT: inst_block50000007:
// CHECK:STDOUT: inst_block70000005: {}
// CHECK:STDOUT: inst_block70000006:
// CHECK:STDOUT: 0: inst70000016
// CHECK:STDOUT: 1: inst7000001B
// CHECK:STDOUT: 2: inst7000001C
// CHECK:STDOUT: 3: inst7000001D
// CHECK:STDOUT: inst_block70000007:
// CHECK:STDOUT: 0: instF
// CHECK:STDOUT: 1: inst50000010
// CHECK:STDOUT: 2: inst50000012
// CHECK:STDOUT: 1: inst70000010
// CHECK:STDOUT: 2: inst70000012
// CHECK:STDOUT: value_stores:
// CHECK:STDOUT: shared_values:
// CHECK:STDOUT: ints: {}
File diff suppressed because it is too large Load Diff
@@ -29,12 +29,12 @@ fn Foo(n: ()) -> ((), ()) {
// CHECK:STDOUT: import_ir_insts: {}
// CHECK:STDOUT: clang_decls: {}
// CHECK:STDOUT: name_scopes:
// CHECK:STDOUT: name_scope0: {inst: instF, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name0: inst6000002A}}
// CHECK:STDOUT: name_scope0: {inst: instF, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name0: inst5000002A}}
// CHECK:STDOUT: entity_names:
// CHECK:STDOUT: entity_name60000000: {name: name1, parent_scope: name_scope<none>, index: -1, is_template: 0, is_unused: 0, form: constant<none>}
// CHECK:STDOUT: entity_name50000000: {name: name1, parent_scope: name_scope<none>, index: -1, is_template: 0, is_unused: 0, form: constant<none>}
// CHECK:STDOUT: cpp_global_vars: {}
// CHECK:STDOUT: functions:
// CHECK:STDOUT: function60000000: {name: name0, parent_scope: name_scope0, call_param_patterns_id: inst_block6000000C, call_params_id: inst_block6000000D, return_type_inst_id: inst60000020, return_form_inst_id: inst60000021, return_patterns_id: inst_block6000000B, body: [inst_block60000010]}
// CHECK:STDOUT: function50000000: {name: name0, parent_scope: name_scope0, call_param_patterns_id: inst_block5000000C, call_params_id: inst_block5000000D, return_type_inst_id: inst50000020, return_form_inst_id: inst50000021, return_patterns_id: inst_block5000000B, body: [inst_block50000010]}
// CHECK:STDOUT: classes: {}
// CHECK:STDOUT: interfaces: {}
// CHECK:STDOUT: associated_constants: {}
@@ -53,167 +53,167 @@ fn Foo(n: ()) -> ((), ()) {
// CHECK:STDOUT: value_repr: {kind: copy, type: type(Error)}
// CHECK:STDOUT: 'type(inst(NamespaceType))':
// CHECK:STDOUT: value_repr: {kind: copy, type: type(inst(NamespaceType))}
// CHECK:STDOUT: 'type(inst60000010)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst60000010)}
// CHECK:STDOUT: 'type(inst6000001D)':
// CHECK:STDOUT: value_repr: {kind: copy, type: type(inst6000001D)}
// CHECK:STDOUT: 'type(inst6000001A)':
// CHECK:STDOUT: value_repr: {kind: pointer, type: type(inst6000001D)}
// CHECK:STDOUT: 'type(inst6000002B)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst60000010)}
// CHECK:STDOUT: 'type(inst50000010)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst50000010)}
// CHECK:STDOUT: 'type(inst5000001D)':
// CHECK:STDOUT: value_repr: {kind: copy, type: type(inst5000001D)}
// CHECK:STDOUT: 'type(inst5000001A)':
// CHECK:STDOUT: value_repr: {kind: pointer, type: type(inst5000001D)}
// CHECK:STDOUT: 'type(inst5000002B)':
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst50000010)}
// CHECK:STDOUT: facet_types: {}
// CHECK:STDOUT: insts:
// CHECK:STDOUT: instF: {kind: Namespace, arg0: name_scope0, arg1: inst<none>, type: type(inst(NamespaceType))}
// CHECK:STDOUT: inst60000010: {kind: TupleType, arg0: inst_block_empty, type: type(TypeType)}
// CHECK:STDOUT: inst60000011: {kind: TupleLiteral, arg0: inst_block_empty, type: type(inst60000010)}
// CHECK:STDOUT: inst60000012: {kind: TupleValue, arg0: inst_block_empty, type: type(inst60000010)}
// CHECK:STDOUT: inst60000013: {kind: Converted, arg0: inst60000011, arg1: inst60000010, type: type(TypeType)}
// CHECK:STDOUT: inst60000014: {kind: ValueBinding, arg0: entity_name60000000, arg1: inst60000026, type: type(inst60000010)}
// CHECK:STDOUT: inst60000015: {kind: PatternType, arg0: inst60000010, type: type(TypeType)}
// CHECK:STDOUT: inst60000016: {kind: ValueBindingPattern, arg0: entity_name60000000, type: type(inst60000015)}
// CHECK:STDOUT: inst60000017: {kind: ValueParamPattern, arg0: inst60000016, type: type(inst60000015)}
// CHECK:STDOUT: inst60000018: {kind: TupleLiteral, arg0: inst_block_empty, type: type(inst60000010)}
// CHECK:STDOUT: inst60000019: {kind: TupleLiteral, arg0: inst_block_empty, type: type(inst60000010)}
// CHECK:STDOUT: inst6000001A: {kind: TupleType, arg0: inst_block60000008, type: type(TypeType)}
// CHECK:STDOUT: inst6000001B: {kind: TupleLiteral, arg0: inst_block60000007, type: type(inst6000001A)}
// CHECK:STDOUT: inst6000001C: {kind: TupleValue, arg0: inst_block60000009, type: type(inst6000001A)}
// CHECK:STDOUT: inst6000001D: {kind: PointerType, arg0: inst6000001A, type: type(TypeType)}
// CHECK:STDOUT: inst6000001E: {kind: Converted, arg0: inst60000012, arg1: inst60000010, type: type(TypeType)}
// CHECK:STDOUT: inst6000001F: {kind: Converted, arg0: inst60000012, arg1: inst60000010, type: type(TypeType)}
// CHECK:STDOUT: inst60000020: {kind: Converted, arg0: inst6000001B, arg1: inst6000001A, type: type(TypeType)}
// CHECK:STDOUT: inst60000021: {kind: InitForm, arg0: inst60000020, type: type(inst(FormType))}
// CHECK:STDOUT: inst60000022: {kind: InitForm, arg0: inst6000001A, type: type(inst(FormType))}
// CHECK:STDOUT: inst60000023: {kind: PatternType, arg0: inst6000001A, type: type(TypeType)}
// CHECK:STDOUT: inst60000024: {kind: ReturnSlotPattern, arg0: inst60000020, type: type(inst60000023)}
// CHECK:STDOUT: inst60000025: {kind: OutParamPattern, arg0: inst60000024, type: type(inst60000023)}
// CHECK:STDOUT: inst60000026: {kind: ValueParam, arg0: call_param0, arg1: name1, type: type(inst60000010)}
// CHECK:STDOUT: inst60000027: {kind: SpliceBlock, arg0: inst_block60000005, arg1: inst60000013, type: type(TypeType)}
// CHECK:STDOUT: inst60000028: {kind: OutParam, arg0: call_param1, arg1: name(ReturnSlot), type: type(inst6000001A)}
// CHECK:STDOUT: inst60000029: {kind: ReturnSlot, arg0: inst6000001A, arg1: inst60000028, type: type(inst6000001A)}
// CHECK:STDOUT: inst6000002A: {kind: FunctionDecl, arg0: function60000000, arg1: inst_block6000000F, type: type(inst6000002B)}
// CHECK:STDOUT: inst6000002B: {kind: FunctionType, arg0: function60000000, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst6000002C: {kind: StructValue, arg0: inst_block_empty, type: type(inst6000002B)}
// CHECK:STDOUT: inst6000002D: {kind: NameRef, arg0: name1, arg1: inst60000014, type: type(inst60000010)}
// CHECK:STDOUT: inst6000002E: {kind: TupleLiteral, arg0: inst_block_empty, type: type(inst60000010)}
// CHECK:STDOUT: inst6000002F: {kind: TupleLiteral, arg0: inst_block60000011, type: type(inst6000001A)}
// CHECK:STDOUT: inst60000030: {kind: TupleAccess, arg0: inst60000028, arg1: element0, type: type(inst60000010)}
// CHECK:STDOUT: inst60000031: {kind: TupleInit, arg0: inst_block60000012, arg1: inst<none>, type: type(inst60000010)}
// CHECK:STDOUT: inst60000032: {kind: Converted, arg0: inst6000002D, arg1: inst60000031, type: type(inst60000010)}
// CHECK:STDOUT: inst60000033: {kind: TupleAccess, arg0: inst60000028, arg1: element1, type: type(inst60000010)}
// CHECK:STDOUT: inst60000034: {kind: TupleInit, arg0: inst_block_empty, arg1: inst<none>, type: type(inst60000010)}
// CHECK:STDOUT: inst60000035: {kind: Converted, arg0: inst6000002E, arg1: inst60000034, type: type(inst60000010)}
// CHECK:STDOUT: inst60000036: {kind: TupleInit, arg0: inst_block60000013, arg1: inst60000028, type: type(inst6000001A)}
// CHECK:STDOUT: inst60000037: {kind: Converted, arg0: inst6000002F, arg1: inst60000036, type: type(inst6000001A)}
// CHECK:STDOUT: inst60000038: {kind: ReturnExpr, arg0: inst60000037, arg1: inst60000028}
// CHECK:STDOUT: inst50000010: {kind: TupleType, arg0: inst_block_empty, type: type(TypeType)}
// CHECK:STDOUT: inst50000011: {kind: TupleLiteral, arg0: inst_block_empty, type: type(inst50000010)}
// CHECK:STDOUT: inst50000012: {kind: TupleValue, arg0: inst_block_empty, type: type(inst50000010)}
// CHECK:STDOUT: inst50000013: {kind: Converted, arg0: inst50000011, arg1: inst50000010, type: type(TypeType)}
// CHECK:STDOUT: inst50000014: {kind: ValueBinding, arg0: entity_name50000000, arg1: inst50000026, type: type(inst50000010)}
// CHECK:STDOUT: inst50000015: {kind: PatternType, arg0: inst50000010, type: type(TypeType)}
// CHECK:STDOUT: inst50000016: {kind: ValueBindingPattern, arg0: entity_name50000000, type: type(inst50000015)}
// CHECK:STDOUT: inst50000017: {kind: ValueParamPattern, arg0: inst50000016, type: type(inst50000015)}
// CHECK:STDOUT: inst50000018: {kind: TupleLiteral, arg0: inst_block_empty, type: type(inst50000010)}
// CHECK:STDOUT: inst50000019: {kind: TupleLiteral, arg0: inst_block_empty, type: type(inst50000010)}
// CHECK:STDOUT: inst5000001A: {kind: TupleType, arg0: inst_block50000008, type: type(TypeType)}
// CHECK:STDOUT: inst5000001B: {kind: TupleLiteral, arg0: inst_block50000007, type: type(inst5000001A)}
// CHECK:STDOUT: inst5000001C: {kind: TupleValue, arg0: inst_block50000009, type: type(inst5000001A)}
// CHECK:STDOUT: inst5000001D: {kind: PointerType, arg0: inst5000001A, type: type(TypeType)}
// CHECK:STDOUT: inst5000001E: {kind: Converted, arg0: inst50000012, arg1: inst50000010, type: type(TypeType)}
// CHECK:STDOUT: inst5000001F: {kind: Converted, arg0: inst50000012, arg1: inst50000010, type: type(TypeType)}
// CHECK:STDOUT: inst50000020: {kind: Converted, arg0: inst5000001B, arg1: inst5000001A, type: type(TypeType)}
// CHECK:STDOUT: inst50000021: {kind: InitForm, arg0: inst50000020, type: type(inst(FormType))}
// CHECK:STDOUT: inst50000022: {kind: InitForm, arg0: inst5000001A, type: type(inst(FormType))}
// CHECK:STDOUT: inst50000023: {kind: PatternType, arg0: inst5000001A, type: type(TypeType)}
// CHECK:STDOUT: inst50000024: {kind: ReturnSlotPattern, arg0: inst50000020, type: type(inst50000023)}
// CHECK:STDOUT: inst50000025: {kind: OutParamPattern, arg0: inst50000024, type: type(inst50000023)}
// CHECK:STDOUT: inst50000026: {kind: ValueParam, arg0: call_param0, arg1: name1, type: type(inst50000010)}
// CHECK:STDOUT: inst50000027: {kind: SpliceBlock, arg0: inst_block50000005, arg1: inst50000013, type: type(TypeType)}
// CHECK:STDOUT: inst50000028: {kind: OutParam, arg0: call_param1, arg1: name(ReturnSlot), type: type(inst5000001A)}
// CHECK:STDOUT: inst50000029: {kind: ReturnSlot, arg0: inst5000001A, arg1: inst50000028, type: type(inst5000001A)}
// CHECK:STDOUT: inst5000002A: {kind: FunctionDecl, arg0: function50000000, arg1: inst_block5000000F, type: type(inst5000002B)}
// CHECK:STDOUT: inst5000002B: {kind: FunctionType, arg0: function50000000, arg1: specific<none>, type: type(TypeType)}
// CHECK:STDOUT: inst5000002C: {kind: StructValue, arg0: inst_block_empty, type: type(inst5000002B)}
// CHECK:STDOUT: inst5000002D: {kind: NameRef, arg0: name1, arg1: inst50000014, type: type(inst50000010)}
// CHECK:STDOUT: inst5000002E: {kind: TupleLiteral, arg0: inst_block_empty, type: type(inst50000010)}
// CHECK:STDOUT: inst5000002F: {kind: TupleLiteral, arg0: inst_block50000011, type: type(inst5000001A)}
// CHECK:STDOUT: inst50000030: {kind: TupleAccess, arg0: inst50000028, arg1: element0, type: type(inst50000010)}
// CHECK:STDOUT: inst50000031: {kind: TupleInit, arg0: inst_block50000012, arg1: inst<none>, type: type(inst50000010)}
// CHECK:STDOUT: inst50000032: {kind: Converted, arg0: inst5000002D, arg1: inst50000031, type: type(inst50000010)}
// CHECK:STDOUT: inst50000033: {kind: TupleAccess, arg0: inst50000028, arg1: element1, type: type(inst50000010)}
// CHECK:STDOUT: inst50000034: {kind: TupleInit, arg0: inst_block_empty, arg1: inst<none>, type: type(inst50000010)}
// CHECK:STDOUT: inst50000035: {kind: Converted, arg0: inst5000002E, arg1: inst50000034, type: type(inst50000010)}
// CHECK:STDOUT: inst50000036: {kind: TupleInit, arg0: inst_block50000013, arg1: inst50000028, type: type(inst5000001A)}
// CHECK:STDOUT: inst50000037: {kind: Converted, arg0: inst5000002F, arg1: inst50000036, type: type(inst5000001A)}
// CHECK:STDOUT: inst50000038: {kind: ReturnExpr, arg0: inst50000037, arg1: inst50000028}
// CHECK:STDOUT: constant_values:
// CHECK:STDOUT: values:
// CHECK:STDOUT: instF: concrete_constant(instF)
// CHECK:STDOUT: inst60000010: concrete_constant(inst60000010)
// CHECK:STDOUT: inst60000011: concrete_constant(inst60000012)
// CHECK:STDOUT: inst60000012: concrete_constant(inst60000012)
// CHECK:STDOUT: inst60000013: concrete_constant(inst60000010)
// CHECK:STDOUT: inst60000015: concrete_constant(inst60000015)
// CHECK:STDOUT: inst60000016: concrete_constant(inst60000016)
// CHECK:STDOUT: inst60000017: concrete_constant(inst60000017)
// CHECK:STDOUT: inst60000018: concrete_constant(inst60000012)
// CHECK:STDOUT: inst60000019: concrete_constant(inst60000012)
// CHECK:STDOUT: inst6000001A: concrete_constant(inst6000001A)
// CHECK:STDOUT: inst6000001B: concrete_constant(inst6000001C)
// CHECK:STDOUT: inst6000001C: concrete_constant(inst6000001C)
// CHECK:STDOUT: inst6000001D: concrete_constant(inst6000001D)
// CHECK:STDOUT: inst6000001E: concrete_constant(inst60000010)
// CHECK:STDOUT: inst6000001F: concrete_constant(inst60000010)
// CHECK:STDOUT: inst60000020: concrete_constant(inst6000001A)
// CHECK:STDOUT: inst60000021: concrete_constant(inst60000022)
// CHECK:STDOUT: inst60000022: concrete_constant(inst60000022)
// CHECK:STDOUT: inst60000023: concrete_constant(inst60000023)
// CHECK:STDOUT: inst60000024: concrete_constant(inst60000024)
// CHECK:STDOUT: inst60000025: concrete_constant(inst60000025)
// CHECK:STDOUT: inst60000027: concrete_constant(inst60000010)
// CHECK:STDOUT: inst6000002A: concrete_constant(inst6000002C)
// CHECK:STDOUT: inst6000002B: concrete_constant(inst6000002B)
// CHECK:STDOUT: inst6000002C: concrete_constant(inst6000002C)
// CHECK:STDOUT: inst6000002E: concrete_constant(inst60000012)
// CHECK:STDOUT: inst60000031: concrete_constant(inst60000012)
// CHECK:STDOUT: inst60000032: concrete_constant(inst60000012)
// CHECK:STDOUT: inst60000034: concrete_constant(inst60000012)
// CHECK:STDOUT: inst60000035: concrete_constant(inst60000012)
// CHECK:STDOUT: inst60000036: concrete_constant(inst6000001C)
// CHECK:STDOUT: inst60000037: concrete_constant(inst6000001C)
// CHECK:STDOUT: inst50000010: concrete_constant(inst50000010)
// CHECK:STDOUT: inst50000011: concrete_constant(inst50000012)
// CHECK:STDOUT: inst50000012: concrete_constant(inst50000012)
// CHECK:STDOUT: inst50000013: concrete_constant(inst50000010)
// CHECK:STDOUT: inst50000015: concrete_constant(inst50000015)
// CHECK:STDOUT: inst50000016: concrete_constant(inst50000016)
// CHECK:STDOUT: inst50000017: concrete_constant(inst50000017)
// CHECK:STDOUT: inst50000018: concrete_constant(inst50000012)
// CHECK:STDOUT: inst50000019: concrete_constant(inst50000012)
// CHECK:STDOUT: inst5000001A: concrete_constant(inst5000001A)
// CHECK:STDOUT: inst5000001B: concrete_constant(inst5000001C)
// CHECK:STDOUT: inst5000001C: concrete_constant(inst5000001C)
// CHECK:STDOUT: inst5000001D: concrete_constant(inst5000001D)
// CHECK:STDOUT: inst5000001E: concrete_constant(inst50000010)
// CHECK:STDOUT: inst5000001F: concrete_constant(inst50000010)
// CHECK:STDOUT: inst50000020: concrete_constant(inst5000001A)
// CHECK:STDOUT: inst50000021: concrete_constant(inst50000022)
// CHECK:STDOUT: inst50000022: concrete_constant(inst50000022)
// CHECK:STDOUT: inst50000023: concrete_constant(inst50000023)
// CHECK:STDOUT: inst50000024: concrete_constant(inst50000024)
// CHECK:STDOUT: inst50000025: concrete_constant(inst50000025)
// CHECK:STDOUT: inst50000027: concrete_constant(inst50000010)
// CHECK:STDOUT: inst5000002A: concrete_constant(inst5000002C)
// CHECK:STDOUT: inst5000002B: concrete_constant(inst5000002B)
// CHECK:STDOUT: inst5000002C: concrete_constant(inst5000002C)
// CHECK:STDOUT: inst5000002E: concrete_constant(inst50000012)
// CHECK:STDOUT: inst50000031: concrete_constant(inst50000012)
// CHECK:STDOUT: inst50000032: concrete_constant(inst50000012)
// CHECK:STDOUT: inst50000034: concrete_constant(inst50000012)
// CHECK:STDOUT: inst50000035: concrete_constant(inst50000012)
// CHECK:STDOUT: inst50000036: concrete_constant(inst5000001C)
// CHECK:STDOUT: inst50000037: concrete_constant(inst5000001C)
// CHECK:STDOUT: symbolic_constants: {}
// CHECK:STDOUT: inst_blocks:
// CHECK:STDOUT: inst_block_empty: {}
// CHECK:STDOUT: exports:
// CHECK:STDOUT: 0: inst6000002A
// CHECK:STDOUT: 0: inst5000002A
// CHECK:STDOUT: generated: {}
// CHECK:STDOUT: imports: {}
// CHECK:STDOUT: global_init: {}
// CHECK:STDOUT: inst_block60000005:
// CHECK:STDOUT: 0: inst60000011
// CHECK:STDOUT: 1: inst60000013
// CHECK:STDOUT: inst_block60000006:
// CHECK:STDOUT: 0: inst60000017
// CHECK:STDOUT: inst_block60000007:
// CHECK:STDOUT: 0: inst60000018
// CHECK:STDOUT: 1: inst60000019
// CHECK:STDOUT: inst_block60000008:
// CHECK:STDOUT: 0: inst60000010
// CHECK:STDOUT: 1: inst60000010
// CHECK:STDOUT: inst_block60000009:
// CHECK:STDOUT: 0: inst60000012
// CHECK:STDOUT: 1: inst60000012
// CHECK:STDOUT: inst_block6000000A:
// CHECK:STDOUT: 0: inst6000001E
// CHECK:STDOUT: 1: inst6000001F
// CHECK:STDOUT: inst_block6000000B:
// CHECK:STDOUT: 0: inst60000025
// CHECK:STDOUT: inst_block6000000C:
// CHECK:STDOUT: 0: inst60000017
// CHECK:STDOUT: 1: inst60000025
// CHECK:STDOUT: inst_block6000000D:
// CHECK:STDOUT: 0: inst60000026
// CHECK:STDOUT: 1: inst60000028
// CHECK:STDOUT: inst_block6000000E:
// CHECK:STDOUT: 0: inst60000016
// CHECK:STDOUT: 1: inst60000017
// CHECK:STDOUT: 2: inst60000024
// CHECK:STDOUT: 3: inst60000025
// CHECK:STDOUT: inst_block6000000F:
// CHECK:STDOUT: 0: inst60000018
// CHECK:STDOUT: 1: inst60000019
// CHECK:STDOUT: 2: inst6000001B
// CHECK:STDOUT: 3: inst6000001E
// CHECK:STDOUT: 4: inst6000001F
// CHECK:STDOUT: 5: inst60000020
// CHECK:STDOUT: 6: inst60000021
// CHECK:STDOUT: 7: inst60000026
// CHECK:STDOUT: 8: inst60000027
// CHECK:STDOUT: 9: inst60000014
// CHECK:STDOUT: 10: inst60000028
// CHECK:STDOUT: 11: inst60000029
// CHECK:STDOUT: inst_block60000010:
// CHECK:STDOUT: 0: inst6000002D
// CHECK:STDOUT: 1: inst6000002E
// CHECK:STDOUT: 2: inst6000002F
// CHECK:STDOUT: 3: inst60000030
// CHECK:STDOUT: 4: inst60000031
// CHECK:STDOUT: 5: inst60000032
// CHECK:STDOUT: 6: inst60000033
// CHECK:STDOUT: 7: inst60000034
// CHECK:STDOUT: 8: inst60000035
// CHECK:STDOUT: 9: inst60000036
// CHECK:STDOUT: 10: inst60000037
// CHECK:STDOUT: 11: inst60000038
// CHECK:STDOUT: inst_block60000011:
// CHECK:STDOUT: 0: inst6000002D
// CHECK:STDOUT: 1: inst6000002E
// CHECK:STDOUT: inst_block60000012: {}
// CHECK:STDOUT: inst_block60000013:
// CHECK:STDOUT: 0: inst60000032
// CHECK:STDOUT: 1: inst60000035
// CHECK:STDOUT: inst_block60000014:
// CHECK:STDOUT: inst_block50000005:
// CHECK:STDOUT: 0: inst50000011
// CHECK:STDOUT: 1: inst50000013
// CHECK:STDOUT: inst_block50000006:
// CHECK:STDOUT: 0: inst50000017
// CHECK:STDOUT: inst_block50000007:
// CHECK:STDOUT: 0: inst50000018
// CHECK:STDOUT: 1: inst50000019
// CHECK:STDOUT: inst_block50000008:
// CHECK:STDOUT: 0: inst50000010
// CHECK:STDOUT: 1: inst50000010
// CHECK:STDOUT: inst_block50000009:
// CHECK:STDOUT: 0: inst50000012
// CHECK:STDOUT: 1: inst50000012
// CHECK:STDOUT: inst_block5000000A:
// CHECK:STDOUT: 0: inst5000001E
// CHECK:STDOUT: 1: inst5000001F
// CHECK:STDOUT: inst_block5000000B:
// CHECK:STDOUT: 0: inst50000025
// CHECK:STDOUT: inst_block5000000C:
// CHECK:STDOUT: 0: inst50000017
// CHECK:STDOUT: 1: inst50000025
// CHECK:STDOUT: inst_block5000000D:
// CHECK:STDOUT: 0: inst50000026
// CHECK:STDOUT: 1: inst50000028
// CHECK:STDOUT: inst_block5000000E:
// CHECK:STDOUT: 0: inst50000016
// CHECK:STDOUT: 1: inst50000017
// CHECK:STDOUT: 2: inst50000024
// CHECK:STDOUT: 3: inst50000025
// CHECK:STDOUT: inst_block5000000F:
// CHECK:STDOUT: 0: inst50000018
// CHECK:STDOUT: 1: inst50000019
// CHECK:STDOUT: 2: inst5000001B
// CHECK:STDOUT: 3: inst5000001E
// CHECK:STDOUT: 4: inst5000001F
// CHECK:STDOUT: 5: inst50000020
// CHECK:STDOUT: 6: inst50000021
// CHECK:STDOUT: 7: inst50000026
// CHECK:STDOUT: 8: inst50000027
// CHECK:STDOUT: 9: inst50000014
// CHECK:STDOUT: 10: inst50000028
// CHECK:STDOUT: 11: inst50000029
// CHECK:STDOUT: inst_block50000010:
// CHECK:STDOUT: 0: inst5000002D
// CHECK:STDOUT: 1: inst5000002E
// CHECK:STDOUT: 2: inst5000002F
// CHECK:STDOUT: 3: inst50000030
// CHECK:STDOUT: 4: inst50000031
// CHECK:STDOUT: 5: inst50000032
// CHECK:STDOUT: 6: inst50000033
// CHECK:STDOUT: 7: inst50000034
// CHECK:STDOUT: 8: inst50000035
// CHECK:STDOUT: 9: inst50000036
// CHECK:STDOUT: 10: inst50000037
// CHECK:STDOUT: 11: inst50000038
// CHECK:STDOUT: inst_block50000011:
// CHECK:STDOUT: 0: inst5000002D
// CHECK:STDOUT: 1: inst5000002E
// CHECK:STDOUT: inst_block50000012: {}
// CHECK:STDOUT: inst_block50000013:
// CHECK:STDOUT: 0: inst50000032
// CHECK:STDOUT: 1: inst50000035
// CHECK:STDOUT: inst_block50000014:
// CHECK:STDOUT: 0: instF
// CHECK:STDOUT: 1: inst6000002A
// CHECK:STDOUT: 1: inst5000002A
// CHECK:STDOUT: value_stores:
// CHECK:STDOUT: shared_values:
// CHECK:STDOUT: ints: {}
+1 -1
View File
@@ -99,7 +99,7 @@ fn UseFGenerically(X:! i32) {
// CHECK:STDERR: var unused v: F(X) = {};
// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~
// CHECK:STDERR:
// CHECK:STDERR: fail_todo_dependent_call_type.carbon:[[@LINE+4]]:3: error: cannot access member of interface `Core.Destroy` in type `<cannot stringify inst7800018B: {kind: Call, arg0: inst7800003E, arg1: inst_block78000091, type: type(TypeType)}>` that does not implement that interface [MissingImplInMemberAccess]
// CHECK:STDERR: fail_todo_dependent_call_type.carbon:[[@LINE+4]]:3: error: cannot access member of interface `Core.Destroy` in type `<cannot stringify inst5C00018B: {kind: Call, arg0: inst5C00003E, arg1: inst_block5C000091, type: type(TypeType)}>` that does not implement that interface [MissingImplInMemberAccess]
// CHECK:STDERR: var unused v: F(X) = {};
// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~
// CHECK:STDERR: