void test_zero() {
  struct tag {
    int x, y;
  };
  struct tag v0 = (struct tag){6};
  fexpect(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/initializer.c",
      141, 6, v0.x);
  ;
  fexpect(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/initializer.c",
      142, 0, v0.y);
  ;
  struct {
    int x;
    int y;
  } v1 = {6};
  fexpect(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/initializer.c",
      145, 6, v1.x);
  ;
  fexpect(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/initializer.c",
      146, 0, v1.y);
  ;
  struct {
    int x;
    int y;
  } v2 = {.y = 3};
  fexpect(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/initializer.c",
      149, 0, v2.x);
  ;
  fexpect(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/initializer.c",
      150, 3, v2.y);
  ;
  struct {
    union {
      int x, y;
    };
  } v3 = {.x = 61};
  fexpect(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/initializer.c",
      153, 61, v3.x);
  ;
}


x86 assembly (clang, -O0):
<test_zero>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0xee1(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%ecx
lea    0xee3(%rip),%rdi
mov    $0x8d,%esi
mov    $0x6,%edx
mov    $0x0,%al
call   1030 <fexpect@plt>
mov    -0x4(%rbp),%ecx
lea    0xec8(%rip),%rdi
mov    $0x8e,%esi
xor    %edx,%edx
mov    $0x0,%al
call   1030 <fexpect@plt>
mov    0xea3(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%ecx
lea    0xea5(%rip),%rdi
mov    $0x91,%esi
mov    $0x6,%edx
mov    $0x0,%al
call   1030 <fexpect@plt>
mov    -0xc(%rbp),%ecx
lea    0xe8a(%rip),%rdi
mov    $0x92,%esi
xor    %edx,%edx
mov    $0x0,%al
call   1030 <fexpect@plt>
mov    0xe6d(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%ecx
lea    0xe67(%rip),%rdi
mov    $0x95,%esi
xor    %edx,%edx
mov    $0x0,%al
call   1030 <fexpect@plt>
mov    -0x14(%rbp),%ecx
lea    0xe4f(%rip),%rdi
mov    $0x96,%esi
mov    $0x3,%edx
mov    $0x0,%al
call   1030 <fexpect@plt>
mov    0xec0(%rip),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%ecx
lea    0xe2b(%rip),%rdi
mov    $0x99,%esi
mov    $0x3d,%edx
mov    $0x0,%al
call   1030 <fexpect@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_zero>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x8d,%esi
mov    $0x6,%edx
mov    $0x6,%ecx
xor    %eax,%eax
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x8e,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x91,%esi
mov    $0x6,%edx
mov    $0x6,%ecx
xor    %eax,%eax
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x92,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x95,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x96,%esi
mov    $0x3,%edx
mov    $0x3,%ecx
xor    %eax,%eax
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x99,%esi
mov    $0x3d,%edx
mov    $0x3d,%ecx
xor    %eax,%eax
pop    %rbx
jmp    1030 <fexpect@plt>

LLVM IR (-O0):
%struct.tag = type { i32, i32 }
%struct.anon = type { i32, i32 }
%struct.anon.0 = type { i32, i32 }
%struct.anon.1 = type { %union.anon }
%union.anon = type { i32 }
@__const.test_zero.v0 = %struct.tag { i32 6, i32 0 }
@.str = [134 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/initializer.c\00"
@__const.test_zero.v1 = %struct.anon { i32 6, i32 0 }
@__const.test_zero.v2 = %struct.anon.0 { i32 0, i32 3 }
@__const.test_zero.v3 = %struct.anon.1 { %union.anon { i32 61 } }
define void @test_zero() {
%1 = alloca %struct.tag
%2 = alloca %struct.anon
%3 = alloca %struct.anon.0
%4 = alloca %struct.anon.1
%5 = bitcast %struct.tag* %1 to i8*
%6 = getelementptr inbounds %struct.tag, %struct.tag* %1, i32 0, i32 0
%7 = load i32, i32* %6
%8 = call i32 (i8*, i32, i32, i32, ...) bitcast (i32 (...)* @fexpect to i32 (i8*, i32, i32, i32, ...)*)(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0), i32 141, i32 6, i32 %7)
%9 = getelementptr inbounds %struct.tag, %struct.tag* %1, i32 0, i32 1
%10 = load i32, i32* %9
%11 = call i32 (i8*, i32, i32, i32, ...) bitcast (i32 (...)* @fexpect to i32 (i8*, i32, i32, i32, ...)*)(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0), i32 142, i32 0, i32 %10)
%12 = bitcast %struct.anon* %2 to i8*
%13 = getelementptr inbounds %struct.anon, %struct.anon* %2, i32 0, i32 0
%14 = load i32, i32* %13
%15 = call i32 (i8*, i32, i32, i32, ...) bitcast (i32 (...)* @fexpect to i32 (i8*, i32, i32, i32, ...)*)(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0), i32 145, i32 6, i32 %14)
%16 = getelementptr inbounds %struct.anon, %struct.anon* %2, i32 0, i32 1
%17 = load i32, i32* %16
%18 = call i32 (i8*, i32, i32, i32, ...) bitcast (i32 (...)* @fexpect to i32 (i8*, i32, i32, i32, ...)*)(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0), i32 146, i32 0, i32 %17)
%19 = bitcast %struct.anon.0* %3 to i8*
%20 = getelementptr inbounds %struct.anon.0, %struct.anon.0* %3, i32 0, i32 0
%21 = load i32, i32* %20
%22 = call i32 (i8*, i32, i32, i32, ...) bitcast (i32 (...)* @fexpect to i32 (i8*, i32, i32, i32, ...)*)(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0), i32 149, i32 0, i32 %21)
%23 = getelementptr inbounds %struct.anon.0, %struct.anon.0* %3, i32 0, i32 1
%24 = load i32, i32* %23
%25 = call i32 (i8*, i32, i32, i32, ...) bitcast (i32 (...)* @fexpect to i32 (i8*, i32, i32, i32, ...)*)(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0), i32 150, i32 3, i32 %24)
%26 = bitcast %struct.anon.1* %4 to i8*
%27 = getelementptr inbounds %struct.anon.1, %struct.anon.1* %4, i32 0, i32 0
%28 = bitcast %union.anon* %27 to i32*
%29 = load i32, i32* %28
%30 = call i32 (i8*, i32, i32, i32, ...) bitcast (i32 (...)* @fexpect to i32 (i8*, i32, i32, i32, ...)*)(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0), i32 153, i32 61, i32 %29)
ret void
}

LLVM IR (-O2):
@.str = [134 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/initializer.c\00"
define void @test_zero() {
%1 = tail call i32 (i8*, i32, i32, i32, ...) bitcast (i32 (...)* @fexpect to i32 (i8*, i32, i32, i32, ...)*)(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0), i32 141, i32 6, i32 6)
%2 = tail call i32 (i8*, i32, i32, i32, ...) bitcast (i32 (...)* @fexpect to i32 (i8*, i32, i32, i32, ...)*)(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0), i32 142, i32 0, i32 0)
%3 = tail call i32 (i8*, i32, i32, i32, ...) bitcast (i32 (...)* @fexpect to i32 (i8*, i32, i32, i32, ...)*)(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0), i32 145, i32 6, i32 6)
%4 = tail call i32 (i8*, i32, i32, i32, ...) bitcast (i32 (...)* @fexpect to i32 (i8*, i32, i32, i32, ...)*)(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0), i32 146, i32 0, i32 0)
%5 = tail call i32 (i8*, i32, i32, i32, ...) bitcast (i32 (...)* @fexpect to i32 (i8*, i32, i32, i32, ...)*)(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0), i32 149, i32 0, i32 0)
%6 = tail call i32 (i8*, i32, i32, i32, ...) bitcast (i32 (...)* @fexpect to i32 (i8*, i32, i32, i32, ...)*)(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0), i32 150, i32 3, i32 3)
%7 = tail call i32 (i8*, i32, i32, i32, ...) bitcast (i32 (...)* @fexpect to i32 (i8*, i32, i32, i32, ...)*)(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0), i32 153, i32 61, i32 61)
ret void
}