#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  struct empty {
  } empty = {};
  struct u {
    struct v {
      int j;
    } v;
  } u = {-1};
  struct s {
    struct u u;
    struct t {
      int e;
      int f;
      int g;
      int h;
    } t;
    int i;
    struct w {
      int k;
      int l;
    } w;
    int m;
  } s = {u.v, 1, .t.g = 2, 3, 4, 5};
  if (s.u.v.j != -1)
    goto ERROR;
  if (s.t.e != 1)
    goto ERROR;
  if (s.t.f != 0)
    goto ERROR;
  if (s.t.g != 2)
    goto ERROR;
  if (s.t.h != 3)
    goto ERROR;
  if (s.i != 4)
    goto ERROR;
  if (s.w.k != 5)
    goto ERROR;
  if (s.w.l != 0)
    goto ERROR;
  if (s.m != 0)
    goto ERROR;
  printf("s.u.v.j = %d\n", s.u.v.j);
  printf("s.t.e = %d\n", s.t.e);
  printf("s.t.f = %d\n", s.t.f);
  printf("s.t.g = %d\n", s.t.g);
  printf("s.t.h = %d\n", s.t.h);
  printf("s.i   = %d\n", s.i);
  printf("s.w.k = %d\n", s.w.k);
  printf("s.w.l = %d\n", s.w.l);
  printf("s.m   = %d\n", s.m);
  struct {
    int i;
    int a[3];
  } r = {1, 2, 3};
  if (r.i != 1)
    goto ERROR;
  if (r.a[0] != 2)
    goto ERROR;
  if (r.a[1] != 3)
    goto ERROR;
  return 0;
ERROR:
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xedb(%rip),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x38(%rbp)
movl   $0x1,-0x34(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x2,-0x2c(%rbp)
movl   $0x3,-0x28(%rbp)
movl   $0x4,-0x24(%rbp)
movl   $0x5,-0x20(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x18(%rbp)
cmpl   $0xffffffff,-0x38(%rbp)
je     1175 <main+0x65>
jmp    12c3 <main+0x1b3>
cmpl   $0x1,-0x34(%rbp)
je     1184 <main+0x74>
jmp    12c3 <main+0x1b3>
cmpl   $0x0,-0x30(%rbp)
je     1193 <main+0x83>
jmp    12c3 <main+0x1b3>
cmpl   $0x2,-0x2c(%rbp)
je     11a2 <main+0x92>
jmp    12c3 <main+0x1b3>
cmpl   $0x3,-0x28(%rbp)
je     11b1 <main+0xa1>
jmp    12c3 <main+0x1b3>
cmpl   $0x4,-0x24(%rbp)
je     11c0 <main+0xb0>
jmp    12c3 <main+0x1b3>
cmpl   $0x5,-0x20(%rbp)
je     11cf <main+0xbf>
jmp    12c3 <main+0x1b3>
cmpl   $0x0,-0x1c(%rbp)
je     11de <main+0xce>
jmp    12c3 <main+0x1b3>
cmpl   $0x0,-0x18(%rbp)
je     11ed <main+0xdd>
jmp    12c3 <main+0x1b3>
mov    -0x38(%rbp),%esi
lea    0xe0d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x34(%rbp),%esi
lea    0xe0c(%rip),%rdi
call   1030 <printf@plt>
mov    -0x30(%rbp),%esi
lea    0xe09(%rip),%rdi
call   1030 <printf@plt>
mov    -0x2c(%rbp),%esi
lea    0xe06(%rip),%rdi
call   1030 <printf@plt>
mov    -0x28(%rbp),%esi
lea    0xe03(%rip),%rdi
call   1030 <printf@plt>
mov    -0x24(%rbp),%esi
lea    0xe00(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%esi
lea    0xdfd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%esi
lea    0xdfa(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%esi
lea    0xdf7(%rip),%rdi
call   1030 <printf@plt>
mov    0xdf9(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xdf6(%rip),%rax
mov    %rax,-0x40(%rbp)
cmpl   $0x1,-0x48(%rbp)
je     1299 <main+0x189>
jmp    12c3 <main+0x1b3>
cmpl   $0x2,-0x44(%rbp)
je     12a8 <main+0x198>
jmp    12c3 <main+0x1b3>
cmpl   $0x3,-0x40(%rbp)
je     12b7 <main+0x1a7>
jmp    12c3 <main+0x1b3>
movl   $0x0,-0x4(%rbp)
jmp    12ca <main+0x1ba>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0xffffffff,%esi
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xee0(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
lea    0xed4(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xecf(%rip),%rdi
mov    $0x5,%esi
call   1030 <printf@plt>
lea    0xeca(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xec8(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.u = type { %struct.v }
%struct.v = type { i32 }
%struct.anon = type { i32, [3 x i32] }
%struct.empty = type {}
%struct.s = type { %struct.u, %struct.t, i32, %struct.w, i32 }
%struct.t = type { i32, i32, i32, i32 }
%struct.w = type { i32, i32 }
@__const.main.u = %struct.u { %struct.v { i32 -1 } }
@.str = [14 x i8] c"s.u.v.j = %d\0A\00"
@.str.1 = [12 x i8] c"s.t.e = %d\0A\00"
@.str.2 = [12 x i8] c"s.t.f = %d\0A\00"
@.str.3 = [12 x i8] c"s.t.g = %d\0A\00"
@.str.4 = [12 x i8] c"s.t.h = %d\0A\00"
@.str.5 = [12 x i8] c"s.i = %d\0A\00"
@.str.6 = [12 x i8] c"s.w.k = %d\0A\00"
@.str.7 = [12 x i8] c"s.w.l = %d\0A\00"
@.str.8 = [12 x i8] c"s.m = %d\0A\00"
@__const.main.r = %struct.anon { i32 1, [3 x i32] [i32 2, i32 3, i32 0] }
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.empty
%3 = alloca %struct.u
%4 = alloca %struct.s
%5 = alloca %struct.anon
store i32 0, i32* %1
%6 = bitcast %struct.empty* %2 to i8*
%7 = bitcast %struct.u* %3 to i8*
%8 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 0
%9 = getelementptr inbounds %struct.u, %struct.u* %8, i32 0, i32 0
%10 = getelementptr inbounds %struct.u, %struct.u* %3, i32 0, i32 0
%11 = bitcast %struct.v* %9 to i8*
%12 = bitcast %struct.v* %10 to i8*
%13 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 1
%14 = getelementptr inbounds %struct.t, %struct.t* %13, i32 0, i32 0
store i32 1, i32* %14
%15 = getelementptr inbounds %struct.t, %struct.t* %13, i32 0, i32 1
store i32 0, i32* %15
%16 = getelementptr inbounds %struct.t, %struct.t* %13, i32 0, i32 2
store i32 2, i32* %16
%17 = getelementptr inbounds %struct.t, %struct.t* %13, i32 0, i32 3
store i32 3, i32* %17
%18 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 2
store i32 4, i32* %18
%19 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 3
%20 = getelementptr inbounds %struct.w, %struct.w* %19, i32 0, i32 0
store i32 5, i32* %20
%21 = getelementptr inbounds %struct.w, %struct.w* %19, i32 0, i32 1
store i32 0, i32* %21
%22 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 4
store i32 0, i32* %22
%23 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 0
%24 = getelementptr inbounds %struct.u, %struct.u* %23, i32 0, i32 0
%25 = getelementptr inbounds %struct.v, %struct.v* %24, i32 0, i32 0
%26 = load i32, i32* %25
%27 = icmp ne i32 %26, -1
br i1 %27, label %28, label %29
28: ; preds = %0
br label %129
29: ; preds = %0
%30 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 1
%31 = getelementptr inbounds %struct.t, %struct.t* %30, i32 0, i32 0
%32 = load i32, i32* %31
%33 = icmp ne i32 %32, 1
br i1 %33, label %34, label %35
34: ; preds = %29
br label %129
35: ; preds = %29
%36 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 1
%37 = getelementptr inbounds %struct.t, %struct.t* %36, i32 0, i32 1
%38 = load i32, i32* %37
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %41
40: ; preds = %35
br label %129
41: ; preds = %35
%42 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 1
%43 = getelementptr inbounds %struct.t, %struct.t* %42, i32 0, i32 2
%44 = load i32, i32* %43
%45 = icmp ne i32 %44, 2
br i1 %45, label %46, label %47
46: ; preds = %41
br label %129
47: ; preds = %41
%48 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 1
%49 = getelementptr inbounds %struct.t, %struct.t* %48, i32 0, i32 3
%50 = load i32, i32* %49
%51 = icmp ne i32 %50, 3
br i1 %51, label %52, label %53
52: ; preds = %47
br label %129
53: ; preds = %47
%54 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 2
%55 = load i32, i32* %54
%56 = icmp ne i32 %55, 4
br i1 %56, label %57, label %58
57: ; preds = %53
br label %129
58: ; preds = %53
%59 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 3
%60 = getelementptr inbounds %struct.w, %struct.w* %59, i32 0, i32 0
%61 = load i32, i32* %60
%62 = icmp ne i32 %61, 5
br i1 %62, label %63, label %64
63: ; preds = %58
br label %129
64: ; preds = %58
%65 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 3
%66 = getelementptr inbounds %struct.w, %struct.w* %65, i32 0, i32 1
%67 = load i32, i32* %66
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %70
69: ; preds = %64
br label %129
70: ; preds = %64
%71 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 4
%72 = load i32, i32* %71
%73 = icmp ne i32 %72, 0
br i1 %73, label %74, label %75
74: ; preds = %70
br label %129
75: ; preds = %70
%76 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 0
%77 = getelementptr inbounds %struct.u, %struct.u* %76, i32 0, i32 0
%78 = getelementptr inbounds %struct.v, %struct.v* %77, i32 0, i32 0
%79 = load i32, i32* %78
%80 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %79)
%81 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 1
%82 = getelementptr inbounds %struct.t, %struct.t* %81, i32 0, i32 0
%83 = load i32, i32* %82
%84 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 %83)
%85 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 1
%86 = getelementptr inbounds %struct.t, %struct.t* %85, i32 0, i32 1
%87 = load i32, i32* %86
%88 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %87)
%89 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 1
%90 = getelementptr inbounds %struct.t, %struct.t* %89, i32 0, i32 2
%91 = load i32, i32* %90
%92 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 %91)
%93 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 1
%94 = getelementptr inbounds %struct.t, %struct.t* %93, i32 0, i32 3
%95 = load i32, i32* %94
%96 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %95)
%97 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 2
%98 = load i32, i32* %97
%99 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %98)
%100 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 3
%101 = getelementptr inbounds %struct.w, %struct.w* %100, i32 0, i32 0
%102 = load i32, i32* %101
%103 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 %102)
%104 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 3
%105 = getelementptr inbounds %struct.w, %struct.w* %104, i32 0, i32 1
%106 = load i32, i32* %105
%107 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i32 %106)
%108 = getelementptr inbounds %struct.s, %struct.s* %4, i32 0, i32 4
%109 = load i32, i32* %108
%110 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 %109)
%111 = bitcast %struct.anon* %5 to i8*
%112 = getelementptr inbounds %struct.anon, %struct.anon* %5, i32 0, i32 0
%113 = load i32, i32* %112
%114 = icmp ne i32 %113, 1
br i1 %114, label %115, label %116
115: ; preds = %75
br label %129
116: ; preds = %75
%117 = getelementptr inbounds %struct.anon, %struct.anon* %5, i32 0, i32 1
%118 = getelementptr inbounds [3 x i32], [3 x i32]* %117, i64 0, i64 0
%119 = load i32, i32* %118
%120 = icmp ne i32 %119, 2
br i1 %120, label %121, label %122
121: ; preds = %116
br label %129
122: ; preds = %116
%123 = getelementptr inbounds %struct.anon, %struct.anon* %5, i32 0, i32 1
%124 = getelementptr inbounds [3 x i32], [3 x i32]* %123, i64 0, i64 1
%125 = load i32, i32* %124
%126 = icmp ne i32 %125, 3
br i1 %126, label %127, label %128
127: ; preds = %122
br label %129
128: ; preds = %122
store i32 0, i32* %1
br label %130
129: ; preds = %127, %121, %115, %74, %69, %63, %57, %52, %46, %40, %34, %28
store i32 1, i32* %1
br label %130
130: ; preds = %129, %128
%131 = load i32, i32* %1
ret i32 %131
}

LLVM IR (-O2):
%struct.empty = type {}
@.str = [14 x i8] c"s.u.v.j = %d\0A\00"
@.str.1 = [12 x i8] c"s.t.e = %d\0A\00"
@.str.2 = [12 x i8] c"s.t.f = %d\0A\00"
@.str.3 = [12 x i8] c"s.t.g = %d\0A\00"
@.str.4 = [12 x i8] c"s.t.h = %d\0A\00"
@.str.5 = [12 x i8] c"s.i = %d\0A\00"
@.str.6 = [12 x i8] c"s.w.k = %d\0A\00"
@.str.7 = [12 x i8] c"s.w.l = %d\0A\00"
@.str.8 = [12 x i8] c"s.m = %d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 -1)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 1)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 0)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 2)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 3)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 4)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 5)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i32 0)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 0)
ret i32 0
}