authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-06-01 16:01:55+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-06-06 22:04:51+01:00
log38266c50351fc64fd4f513d684d6f2c1aaad7f9a
treeabd90c75849ef6119d1bd81ebbbe6fb219c5fa38
parent21a0885ae70f1e977b91a63a8b23d705acdac618

AstGen: fix name strategy bugs

Representing this with a `GenZir` field is incredibly bug-prone. Instead, just pass this data directly to the relevant expression in the very few places which actually provide a name strategy. Resolves: #22798

2 files changed, 205 insertions(+), 84 deletions(-)

lib/std/zig/AstGen.zig+119-84
......@@ -177,7 +177,6 @@ pub fn generate(gpa: Allocator, tree: Ast) Allocator.Error!Zir {
177177 var gen_scope: GenZir = .{
178178 .is_comptime = true,
179179 .parent = &top_scope.base,
180 .anon_name_strategy = .parent,
181180 .decl_node_index = .root,
182181 .decl_line = 0,
183182 .astgen = &astgen,
......@@ -196,6 +195,7 @@ pub fn generate(gpa: Allocator, tree: Ast) Allocator.Error!Zir {
196195 tree.containerDeclRoot(),
197196 .auto,
198197 .none,
198 .parent,
199199 )) |struct_decl_ref| {
200200 assert(struct_decl_ref.toIndex().? == .main_struct_inst);
201201 break :fatal false;
......@@ -640,12 +640,6 @@ fn expr(gz: *GenZir, scope: *Scope, ri: ResultInfo, node: Ast.Node.Index) InnerE
640640 const astgen = gz.astgen;
641641 const tree = astgen.tree;
642642
643 const prev_anon_name_strategy = gz.anon_name_strategy;
644 defer gz.anon_name_strategy = prev_anon_name_strategy;
645 if (!nodeUsesAnonNameStrategy(tree, node)) {
646 gz.anon_name_strategy = .anon;
647 }
648
649643 switch (tree.nodeTag(node)) {
650644 .root => unreachable, // Top-level declaration.
651645 .@"usingnamespace" => unreachable, // Top-level declaration.
......@@ -1104,7 +1098,7 @@ fn expr(gz: *GenZir, scope: *Scope, ri: ResultInfo, node: Ast.Node.Index) InnerE
11041098 .tagged_union_two_trailing,
11051099 => {
11061100 var buf: [2]Ast.Node.Index = undefined;
1107 return containerDecl(gz, scope, ri, node, tree.fullContainerDecl(&buf, node).?);
1101 return containerDecl(gz, scope, ri, node, tree.fullContainerDecl(&buf, node).?, .anon);
11081102 },
11091103
11101104 .@"break" => return breakExpr(gz, scope, node),
......@@ -1162,6 +1156,53 @@ fn expr(gz: *GenZir, scope: *Scope, ri: ResultInfo, node: Ast.Node.Index) InnerE
11621156 }
11631157}
11641158
1159/// When a name strategy other than `.anon` is available, for instance when analyzing the init expr
1160/// of a variable declaration, try this function before `expr`/`comptimeExpr`/etc, so that the name
1161/// strategy can be applied if necessary. If `null` is returned, then `node` does not consume a name
1162/// strategy, and a normal evaluation function like `expr` should be used instead. Otherwise, `node`
1163/// does consume a name strategy; the expression has been evaluated like `expr`, but using the given
1164/// name strategy.
1165fn nameStratExpr(
1166 gz: *GenZir,
1167 scope: *Scope,
1168 ri: ResultInfo,
1169 node: Ast.Node.Index,
1170 name_strat: Zir.Inst.NameStrategy,
1171) InnerError!?Zir.Inst.Ref {
1172 const astgen = gz.astgen;
1173 const tree = astgen.tree;
1174 switch (tree.nodeTag(node)) {
1175 .container_decl,
1176 .container_decl_trailing,
1177 .container_decl_two,
1178 .container_decl_two_trailing,
1179 .container_decl_arg,
1180 .container_decl_arg_trailing,
1181 .tagged_union,
1182 .tagged_union_trailing,
1183 .tagged_union_two,
1184 .tagged_union_two_trailing,
1185 .tagged_union_enum_tag,
1186 .tagged_union_enum_tag_trailing,
1187 => {
1188 var buf: [2]Ast.Node.Index = undefined;
1189 return try containerDecl(gz, scope, ri, node, tree.fullContainerDecl(&buf, node).?, name_strat);
1190 },
1191 .builtin_call_two,
1192 .builtin_call_two_comma,
1193 => {
1194 const builtin_token = tree.nodeMainToken(node);
1195 const builtin_name = tree.tokenSlice(builtin_token);
1196 if (!std.mem.eql(u8, builtin_name, "@Type")) return null;
1197 var buf: [2]Ast.Node.Index = undefined;
1198 const params = tree.builtinCallParams(&buf, node).?;
1199 if (params.len != 1) return null; // let `builtinCall` error
1200 return try builtinReify(gz, scope, ri, node, params[0], name_strat);
1201 },
1202 else => return null,
1203 }
1204}
1205
11651206fn nosuspendExpr(
11661207 gz: *GenZir,
11671208 scope: *Scope,
......@@ -3241,10 +3282,8 @@ fn varDecl(
32413282 .rl = .{ .ty = try typeExpr(gz, scope, type_node) },
32423283 .ctx = .const_init,
32433284 } else .{ .rl = .none, .ctx = .const_init };
3244 const prev_anon_name_strategy = gz.anon_name_strategy;
3245 gz.anon_name_strategy = .dbg_var;
3246 const init_inst = try reachableExprComptime(gz, scope, result_info, init_node, node, if (force_comptime) .comptime_keyword else null);
3247 gz.anon_name_strategy = prev_anon_name_strategy;
3285 const init_inst: Zir.Inst.Ref = try nameStratExpr(gz, scope, result_info, init_node, .dbg_var) orelse
3286 try reachableExprComptime(gz, scope, result_info, init_node, node, if (force_comptime) .comptime_keyword else null);
32483287
32493288 _ = try gz.addUnNode(.validate_const, init_inst, init_node);
32503289 try gz.addDbgVar(.dbg_var_val, ident_name, init_inst);
......@@ -3307,10 +3346,8 @@ fn varDecl(
33073346 };
33083347 const init_result_info: ResultInfo = .{ .rl = init_rl, .ctx = .const_init };
33093348
3310 const prev_anon_name_strategy = gz.anon_name_strategy;
3311 gz.anon_name_strategy = .dbg_var;
3312 defer gz.anon_name_strategy = prev_anon_name_strategy;
3313 const init_inst = try reachableExprComptime(gz, scope, init_result_info, init_node, node, if (force_comptime) .comptime_keyword else null);
3349 const init_inst: Zir.Inst.Ref = try nameStratExpr(gz, scope, init_result_info, init_node, .dbg_var) orelse
3350 try reachableExprComptime(gz, scope, init_result_info, init_node, node, if (force_comptime) .comptime_keyword else null);
33143351
33153352 // The const init expression may have modified the error return trace, so signal
33163353 // to Sema that it should save the new index for restoring later.
......@@ -3380,9 +3417,13 @@ fn varDecl(
33803417 };
33813418 break :a .{ alloc, true, .{ .rl = .{ .inferred_ptr = alloc } } };
33823419 };
3383 const prev_anon_name_strategy = gz.anon_name_strategy;
3384 gz.anon_name_strategy = .dbg_var;
3385 _ = try reachableExprComptime(
3420 _ = try nameStratExpr(
3421 gz,
3422 scope,
3423 result_info,
3424 init_node,
3425 .dbg_var,
3426 ) orelse try reachableExprComptime(
33863427 gz,
33873428 scope,
33883429 result_info,
......@@ -3390,7 +3431,6 @@ fn varDecl(
33903431 node,
33913432 if (var_decl.comptime_token != null) .comptime_keyword else null,
33923433 );
3393 gz.anon_name_strategy = prev_anon_name_strategy;
33943434 const final_ptr: Zir.Inst.Ref = if (resolve_inferred) ptr: {
33953435 break :ptr try gz.addUnNode(.resolve_inferred_alloc, alloc, node);
33963436 } else alloc;
......@@ -4605,11 +4645,12 @@ fn globalVarDecl(
46054645 defer init_gz.unstack();
46064646
46074647 if (var_decl.ast.init_node.unwrap()) |init_node| {
4608 init_gz.anon_name_strategy = .parent;
46094648 const init_ri: ResultInfo = if (var_decl.ast.type_node != .none) .{
46104649 .rl = .{ .coerced_ty = decl_inst.toRef() },
46114650 } else .{ .rl = .none };
4612 const init_inst = try expr(&init_gz, &init_gz.base, init_ri, init_node);
4651 const init_inst: Zir.Inst.Ref = try nameStratExpr(&init_gz, &init_gz.base, init_ri, init_node, .parent) orelse init: {
4652 break :init try expr(&init_gz, &init_gz.base, init_ri, init_node);
4653 };
46134654 _ = try init_gz.addBreakWithSrcNode(.break_inline, decl_inst, init_inst, node);
46144655 }
46154656
......@@ -4986,6 +5027,7 @@ fn structDeclInner(
49865027 container_decl: Ast.full.ContainerDecl,
49875028 layout: std.builtin.Type.ContainerLayout,
49885029 backing_int_node: Ast.Node.OptionalIndex,
5030 name_strat: Zir.Inst.NameStrategy,
49895031) InnerError!Zir.Inst.Ref {
49905032 const astgen = gz.astgen;
49915033 const gpa = astgen.gpa;
......@@ -5020,6 +5062,7 @@ fn structDeclInner(
50205062 .any_default_inits = false,
50215063 .any_aligned_fields = false,
50225064 .fields_hash = std.zig.hashSrc(@tagName(layout)),
5065 .name_strat = name_strat,
50235066 });
50245067 return decl_inst.toRef();
50255068 }
......@@ -5216,6 +5259,7 @@ fn structDeclInner(
52165259 .any_default_inits = any_default_inits,
52175260 .any_aligned_fields = any_aligned_fields,
52185261 .fields_hash = fields_hash,
5262 .name_strat = name_strat,
52195263 });
52205264
52215265 wip_members.finishBits(bits_per_field);
......@@ -5347,6 +5391,7 @@ fn unionDeclInner(
53475391 layout: std.builtin.Type.ContainerLayout,
53485392 opt_arg_node: Ast.Node.OptionalIndex,
53495393 auto_enum_tok: ?Ast.TokenIndex,
5394 name_strat: Zir.Inst.NameStrategy,
53505395) InnerError!Zir.Inst.Ref {
53515396 const decl_inst = try gz.reserveInstructionIndex();
53525397
......@@ -5497,6 +5542,7 @@ fn unionDeclInner(
54975542 .auto_enum_tag = auto_enum_tok != null,
54985543 .any_aligned_fields = any_aligned_fields,
54995544 .fields_hash = fields_hash,
5545 .name_strat = name_strat,
55005546 });
55015547
55025548 wip_members.finishBits(bits_per_field);
......@@ -5519,6 +5565,7 @@ fn containerDecl(
55195565 ri: ResultInfo,
55205566 node: Ast.Node.Index,
55215567 container_decl: Ast.full.ContainerDecl,
5568 name_strat: Zir.Inst.NameStrategy,
55225569) InnerError!Zir.Inst.Ref {
55235570 const astgen = gz.astgen;
55245571 const gpa = astgen.gpa;
......@@ -5539,7 +5586,7 @@ fn containerDecl(
55395586 else => unreachable,
55405587 } else .auto;
55415588
5542 const result = try structDeclInner(gz, scope, node, container_decl, layout, container_decl.ast.arg);
5589 const result = try structDeclInner(gz, scope, node, container_decl, layout, container_decl.ast.arg, name_strat);
55435590 return rvalue(gz, ri, result, node);
55445591 },
55455592 .keyword_union => {
......@@ -5549,7 +5596,7 @@ fn containerDecl(
55495596 else => unreachable,
55505597 } else .auto;
55515598
5552 const result = try unionDeclInner(gz, scope, node, container_decl.ast.members, layout, container_decl.ast.arg, container_decl.ast.enum_token);
5599 const result = try unionDeclInner(gz, scope, node, container_decl.ast.members, layout, container_decl.ast.arg, container_decl.ast.enum_token, name_strat);
55535600 return rvalue(gz, ri, result, node);
55545601 },
55555602 .keyword_enum => {
......@@ -5758,6 +5805,7 @@ fn containerDecl(
57585805 .fields_len = @intCast(counts.total_fields),
57595806 .decls_len = @intCast(counts.decls),
57605807 .fields_hash = fields_hash,
5808 .name_strat = name_strat,
57615809 });
57625810
57635811 wip_members.finishBits(bits_per_field);
......@@ -5819,6 +5867,7 @@ fn containerDecl(
58195867 .src_node = node,
58205868 .captures_len = @intCast(namespace.captures.count()),
58215869 .decls_len = decl_count,
5870 .name_strat = name_strat,
58225871 });
58235872
58245873 wip_members.finishBits(0);
......@@ -8207,10 +8256,8 @@ fn ret(gz: *GenZir, scope: *Scope, node: Ast.Node.Index) InnerError!Zir.Inst.Ref
82078256 .rl = .{ .coerced_ty = astgen.fn_ret_ty },
82088257 .ctx = .@"return",
82098258 };
8210 const prev_anon_name_strategy = gz.anon_name_strategy;
8211 gz.anon_name_strategy = .func;
8212 const operand = try reachableExpr(gz, scope, ri, operand_node, node);
8213 gz.anon_name_strategy = prev_anon_name_strategy;
8259 const operand: Zir.Inst.Ref = try nameStratExpr(gz, scope, ri, operand_node, .func) orelse
8260 try reachableExpr(gz, scope, ri, operand_node, node);
82148261
82158262 switch (nodeMayEvalToError(tree, operand_node)) {
82168263 .never => {
......@@ -9472,31 +9519,7 @@ fn builtinCall(
94729519 },
94739520
94749521 .Type => {
9475 const type_info_ty = try gz.addBuiltinValue(node, .type_info);
9476 const operand = try expr(gz, scope, .{ .rl = .{ .coerced_ty = type_info_ty } }, params[0]);
9477
9478 const gpa = gz.astgen.gpa;
9479
9480 try gz.instructions.ensureUnusedCapacity(gpa, 1);
9481 try gz.astgen.instructions.ensureUnusedCapacity(gpa, 1);
9482
9483 const payload_index = try gz.astgen.addExtra(Zir.Inst.Reify{
9484 .node = node, // Absolute node index -- see the definition of `Reify`.
9485 .operand = operand,
9486 .src_line = astgen.source_line,
9487 });
9488 const new_index: Zir.Inst.Index = @enumFromInt(gz.astgen.instructions.len);
9489 gz.astgen.instructions.appendAssumeCapacity(.{
9490 .tag = .extended,
9491 .data = .{ .extended = .{
9492 .opcode = .reify,
9493 .small = @intFromEnum(gz.anon_name_strategy),
9494 .operand = payload_index,
9495 } },
9496 });
9497 gz.instructions.appendAssumeCapacity(new_index);
9498 const result = new_index.toRef();
9499 return rvalue(gz, ri, result, node);
9522 return builtinReify(gz, scope, ri, node, params[0], .anon);
95009523 },
95019524 .panic => {
95029525 try emitDbgNode(gz, node);
......@@ -9827,6 +9850,41 @@ fn builtinCall(
98279850 },
98289851 }
98299852}
9853fn builtinReify(
9854 gz: *GenZir,
9855 scope: *Scope,
9856 ri: ResultInfo,
9857 node: Ast.Node.Index,
9858 arg_node: Ast.Node.Index,
9859 name_strat: Zir.Inst.NameStrategy,
9860) InnerError!Zir.Inst.Ref {
9861 const astgen = gz.astgen;
9862 const gpa = astgen.gpa;
9863
9864 const type_info_ty = try gz.addBuiltinValue(node, .type_info);
9865 const operand = try expr(gz, scope, .{ .rl = .{ .coerced_ty = type_info_ty } }, arg_node);
9866
9867 try gz.instructions.ensureUnusedCapacity(gpa, 1);
9868 try astgen.instructions.ensureUnusedCapacity(gpa, 1);
9869
9870 const payload_index = try astgen.addExtra(Zir.Inst.Reify{
9871 .node = node, // Absolute node index -- see the definition of `Reify`.
9872 .operand = operand,
9873 .src_line = astgen.source_line,
9874 });
9875 const new_index: Zir.Inst.Index = @enumFromInt(astgen.instructions.len);
9876 astgen.instructions.appendAssumeCapacity(.{
9877 .tag = .extended,
9878 .data = .{ .extended = .{
9879 .opcode = .reify,
9880 .small = @intFromEnum(name_strat),
9881 .operand = payload_index,
9882 } },
9883 });
9884 gz.instructions.appendAssumeCapacity(new_index);
9885 const result = new_index.toRef();
9886 return rvalue(gz, ri, result, node);
9887}
98309888
98319889fn hasDeclOrField(
98329890 gz: *GenZir,
......@@ -11087,31 +11145,6 @@ fn nodeImpliesComptimeOnly(tree: *const Ast, start_node: Ast.Node.Index) bool {
1108711145 }
1108811146}
1108911147
11090/// Returns `true` if the node uses `gz.anon_name_strategy`.
11091fn nodeUsesAnonNameStrategy(tree: *const Ast, node: Ast.Node.Index) bool {
11092 switch (tree.nodeTag(node)) {
11093 .container_decl,
11094 .container_decl_trailing,
11095 .container_decl_two,
11096 .container_decl_two_trailing,
11097 .container_decl_arg,
11098 .container_decl_arg_trailing,
11099 .tagged_union,
11100 .tagged_union_trailing,
11101 .tagged_union_two,
11102 .tagged_union_two_trailing,
11103 .tagged_union_enum_tag,
11104 .tagged_union_enum_tag_trailing,
11105 => return true,
11106 .builtin_call_two, .builtin_call_two_comma, .builtin_call, .builtin_call_comma => {
11107 const builtin_token = tree.nodeMainToken(node);
11108 const builtin_name = tree.tokenSlice(builtin_token);
11109 return std.mem.eql(u8, builtin_name, "@Type");
11110 },
11111 else => return false,
11112 }
11113}
11114
1111511148/// Applies `rl` semantics to `result`. Expressions which do not do their own handling of
1111611149/// result locations must call this function on their result.
1111711150/// As an example, if `ri.rl` is `.ptr`, it will write the result to the pointer.
......@@ -11875,8 +11908,6 @@ const GenZir = struct {
1187511908 /// exits from this block should use `break_inline` rather than `break`.
1187611909 is_inline: bool = false,
1187711910 c_import: bool = false,
11878 /// How decls created in this scope should be named.
11879 anon_name_strategy: Zir.Inst.NameStrategy = .anon,
1188011911 /// The containing decl AST node.
1188111912 decl_node_index: Ast.Node.Index,
1188211913 /// The containing decl line index, absolute.
......@@ -13043,6 +13074,7 @@ const GenZir = struct {
1304313074 any_default_inits: bool,
1304413075 any_aligned_fields: bool,
1304513076 fields_hash: std.zig.SrcHash,
13077 name_strat: Zir.Inst.NameStrategy,
1304613078 }) !void {
1304713079 const astgen = gz.astgen;
1304813080 const gpa = astgen.gpa;
......@@ -13082,7 +13114,7 @@ const GenZir = struct {
1308213114 .has_backing_int = args.has_backing_int,
1308313115 .known_non_opv = args.known_non_opv,
1308413116 .known_comptime_only = args.known_comptime_only,
13085 .name_strategy = gz.anon_name_strategy,
13117 .name_strategy = args.name_strat,
1308613118 .layout = args.layout,
1308713119 .any_comptime_fields = args.any_comptime_fields,
1308813120 .any_default_inits = args.any_default_inits,
......@@ -13104,6 +13136,7 @@ const GenZir = struct {
1310413136 auto_enum_tag: bool,
1310513137 any_aligned_fields: bool,
1310613138 fields_hash: std.zig.SrcHash,
13139 name_strat: Zir.Inst.NameStrategy,
1310713140 }) !void {
1310813141 const astgen = gz.astgen;
1310913142 const gpa = astgen.gpa;
......@@ -13147,7 +13180,7 @@ const GenZir = struct {
1314713180 .has_body_len = args.body_len != 0,
1314813181 .has_fields_len = args.fields_len != 0,
1314913182 .has_decls_len = args.decls_len != 0,
13150 .name_strategy = gz.anon_name_strategy,
13183 .name_strategy = args.name_strat,
1315113184 .layout = args.layout,
1315213185 .auto_enum_tag = args.auto_enum_tag,
1315313186 .any_aligned_fields = args.any_aligned_fields,
......@@ -13166,6 +13199,7 @@ const GenZir = struct {
1316613199 decls_len: u32,
1316713200 nonexhaustive: bool,
1316813201 fields_hash: std.zig.SrcHash,
13202 name_strat: Zir.Inst.NameStrategy,
1316913203 }) !void {
1317013204 const astgen = gz.astgen;
1317113205 const gpa = astgen.gpa;
......@@ -13209,7 +13243,7 @@ const GenZir = struct {
1320913243 .has_body_len = args.body_len != 0,
1321013244 .has_fields_len = args.fields_len != 0,
1321113245 .has_decls_len = args.decls_len != 0,
13212 .name_strategy = gz.anon_name_strategy,
13246 .name_strategy = args.name_strat,
1321313247 .nonexhaustive = args.nonexhaustive,
1321413248 }),
1321513249 .operand = payload_index,
......@@ -13221,6 +13255,7 @@ const GenZir = struct {
1322113255 src_node: Ast.Node.Index,
1322213256 captures_len: u32,
1322313257 decls_len: u32,
13258 name_strat: Zir.Inst.NameStrategy,
1322413259 }) !void {
1322513260 const astgen = gz.astgen;
1322613261 const gpa = astgen.gpa;
......@@ -13246,7 +13281,7 @@ const GenZir = struct {
1324613281 .small = @bitCast(Zir.Inst.OpaqueDecl.Small{
1324713282 .has_captures_len = args.captures_len != 0,
1324813283 .has_decls_len = args.decls_len != 0,
13249 .name_strategy = gz.anon_name_strategy,
13284 .name_strategy = args.name_strat,
1325013285 }),
1325113286 .operand = payload_index,
1325213287 } },
test/cases/type_names.zig created+86
......@@ -0,0 +1,86 @@
1const namespace = struct {
2 const S = struct {};
3 const E = enum {};
4 const U = union {};
5 const O = opaque {};
6};
7export fn declarationValue() void {
8 @compileLog(@typeName(namespace.S));
9 @compileLog(@typeName(namespace.E));
10 @compileLog(@typeName(namespace.U));
11 @compileLog(@typeName(namespace.O));
12}
13
14export fn localVarValue() void {
15 const S = struct {};
16 const E = enum {};
17 const U = union {};
18 const O = opaque {};
19 @compileLog(@typeName(S));
20 @compileLog(@typeName(E));
21 @compileLog(@typeName(U));
22 @compileLog(@typeName(O));
23}
24
25fn MakeS() type {
26 return struct {};
27}
28fn MakeE() type {
29 return enum {};
30}
31fn MakeU() type {
32 return union {};
33}
34fn MakeO() type {
35 return opaque {};
36}
37
38export fn returnValue() void {
39 @compileLog(@typeName(MakeS()));
40 @compileLog(@typeName(MakeE()));
41 @compileLog(@typeName(MakeU()));
42 @compileLog(@typeName(MakeO()));
43}
44
45const StructInStruct = struct { a: struct { b: u8 } };
46const UnionInStruct = struct { a: union { b: u8 } };
47const StructInUnion = union { a: struct { b: u8 } };
48const UnionInUnion = union { a: union { b: u8 } };
49const StructInTuple = struct { struct { b: u8 } };
50const UnionInTuple = struct { union { b: u8 } };
51
52export fn nestedTypes() void {
53 @compileLog(@typeName(StructInStruct));
54 @compileLog(@typeName(UnionInStruct));
55 @compileLog(@typeName(StructInUnion));
56 @compileLog(@typeName(UnionInUnion));
57 @compileLog(@typeName(StructInTuple));
58 @compileLog(@typeName(UnionInTuple));
59}
60
61// error
62//
63// :8:5: error: found compile log statement
64// :19:5: note: also here
65// :39:5: note: also here
66// :53:5: note: also here
67//
68// Compile Log Output:
69// @as(*const [15:0]u8, "tmp.namespace.S")
70// @as(*const [15:0]u8, "tmp.namespace.E")
71// @as(*const [15:0]u8, "tmp.namespace.U")
72// @as(*const [15:0]u8, "tmp.namespace.O")
73// @as(*const [19:0]u8, "tmp.localVarValue.S")
74// @as(*const [19:0]u8, "tmp.localVarValue.E")
75// @as(*const [19:0]u8, "tmp.localVarValue.U")
76// @as(*const [19:0]u8, "tmp.localVarValue.O")
77// @as(*const [11:0]u8, "tmp.MakeS()")
78// @as(*const [11:0]u8, "tmp.MakeE()")
79// @as(*const [11:0]u8, "tmp.MakeU()")
80// @as(*const [11:0]u8, "tmp.MakeO()")
81// @as(*const [18:0]u8, "tmp.StructInStruct")
82// @as(*const [17:0]u8, "tmp.UnionInStruct")
83// @as(*const [17:0]u8, "tmp.StructInUnion")
84// @as(*const [16:0]u8, "tmp.UnionInUnion")
85// @as(*const [40:0]u8, "struct { tmp.StructInTuple__struct_574 }")
86// @as(*const [38:0]u8, "struct { tmp.UnionInTuple__union_581 }")