int main(int argc, const char *argv[]) {
  struct my_struct {
    int a;
    double b[2][2];
  };
  struct my_struct array[2];
  int a = array[0].a + array[1].a;
  int b1 =
      array[0].b[0][0] + array[0].b[0][1] + array[0].b[0][0] + array[0].b[0][1];
  int b2 =
      array[1].b[0][0] + array[1].b[0][1] + array[1].b[0][0] + array[1].b[0][1];
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x60(%rbp),%eax
add    -0x38(%rbp),%eax
mov    %eax,-0x64(%rbp)
movsd  -0x58(%rbp),%xmm0
addsd  -0x50(%rbp),%xmm0
addsd  -0x58(%rbp),%xmm0
addsd  -0x50(%rbp),%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x68(%rbp)
movsd  -0x30(%rbp),%xmm0
addsd  -0x28(%rbp),%xmm0
addsd  -0x30(%rbp),%xmm0
addsd  -0x28(%rbp),%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x6c(%rbp)
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
%struct.my_struct = type { i32, [2 x [2 x double]] }
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [2 x %struct.my_struct]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 0
%11 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %10, i32 0, i32 0
%12 = load i32, i32* %11
%13 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 1
%14 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %13, i32 0, i32 0
%15 = load i32, i32* %14
%16 = add nsw i32 %12, %15
store i32 %16, i32* %7
%17 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 0
%18 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %17, i32 0, i32 1
%19 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %18, i64 0, i64 0
%20 = getelementptr inbounds [2 x double], [2 x double]* %19, i64 0, i64 0
%21 = load double, double* %20
%22 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 0
%23 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %22, i32 0, i32 1
%24 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %23, i64 0, i64 0
%25 = getelementptr inbounds [2 x double], [2 x double]* %24, i64 0, i64 1
%26 = load double, double* %25
%27 = fadd double %21, %26
%28 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 0
%29 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %28, i32 0, i32 1
%30 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %29, i64 0, i64 0
%31 = getelementptr inbounds [2 x double], [2 x double]* %30, i64 0, i64 0
%32 = load double, double* %31
%33 = fadd double %27, %32
%34 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 0
%35 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %34, i32 0, i32 1
%36 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %35, i64 0, i64 0
%37 = getelementptr inbounds [2 x double], [2 x double]* %36, i64 0, i64 1
%38 = load double, double* %37
%39 = fadd double %33, %38
%40 = fptosi double %39 to i32
store i32 %40, i32* %8
%41 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 1
%42 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %41, i32 0, i32 1
%43 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %42, i64 0, i64 0
%44 = getelementptr inbounds [2 x double], [2 x double]* %43, i64 0, i64 0
%45 = load double, double* %44
%46 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 1
%47 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %46, i32 0, i32 1
%48 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %47, i64 0, i64 0
%49 = getelementptr inbounds [2 x double], [2 x double]* %48, i64 0, i64 1
%50 = load double, double* %49
%51 = fadd double %45, %50
%52 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 1
%53 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %52, i32 0, i32 1
%54 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %53, i64 0, i64 0
%55 = getelementptr inbounds [2 x double], [2 x double]* %54, i64 0, i64 0
%56 = load double, double* %55
%57 = fadd double %51, %56
%58 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 1
%59 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %58, i32 0, i32 1
%60 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %59, i64 0, i64 0
%61 = getelementptr inbounds [2 x double], [2 x double]* %60, i64 0, i64 1
%62 = load double, double* %61
%63 = fadd double %57, %62
%64 = fptosi double %63 to i32
store i32 %64, i32* %9
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}