int main(int argc, const char *argv[]) {
  struct my_struct {
    int a;
    double b[2][2];
  };
  struct my_struct array[2];
  array[0].a = 1;
  array[0].b[0][0] = 3.5;
  array[0].b[0][1] = 3.6;
  array[0].b[0][0] = 3.7;
  array[0].b[0][1] = 3.8;
  array[1].a = 2;
  array[1].b[0][0] = 4.5;
  array[1].b[0][1] = 4.6;
  array[1].b[0][0] = 18.9;
  array[1].b[0][1] = 18.95;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x60(%rbp)
movsd  0xf17(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xf02(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xeed(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xed8(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x2,-0x38(%rbp)
movsd  0xebc(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xea7(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe92(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe7d(%rip),%xmm0
movsd  %xmm0,-0x28(%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]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 0
%8 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %7, i32 0, i32 0
store i32 1, i32* %8
%9 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 0
%10 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %9, i32 0, i32 1
%11 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %10, i64 0, i64 0
%12 = getelementptr inbounds [2 x double], [2 x double]* %11, i64 0, i64 0
store double 3.500000e+00, double* %12
%13 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 0
%14 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %13, i32 0, i32 1
%15 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %14, i64 0, i64 0
%16 = getelementptr inbounds [2 x double], [2 x double]* %15, i64 0, i64 1
store double 3.600000e+00, double* %16
%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
store double 3.700000e+00, double* %20
%21 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 0
%22 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %21, i32 0, i32 1
%23 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %22, i64 0, i64 0
%24 = getelementptr inbounds [2 x double], [2 x double]* %23, i64 0, i64 1
store double 3.800000e+00, double* %24
%25 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 1
%26 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %25, i32 0, i32 0
store i32 2, i32* %26
%27 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 1
%28 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %27, i32 0, i32 1
%29 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %28, i64 0, i64 0
%30 = getelementptr inbounds [2 x double], [2 x double]* %29, i64 0, i64 0
store double 4.500000e+00, double* %30
%31 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 1
%32 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %31, i32 0, i32 1
%33 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %32, i64 0, i64 0
%34 = getelementptr inbounds [2 x double], [2 x double]* %33, i64 0, i64 1
store double 4.600000e+00, double* %34
%35 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 1
%36 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %35, i32 0, i32 1
%37 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %36, i64 0, i64 0
%38 = getelementptr inbounds [2 x double], [2 x double]* %37, i64 0, i64 0
store double 1.890000e+01, double* %38
%39 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 1
%40 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %39, i32 0, i32 1
%41 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %40, i64 0, i64 0
%42 = getelementptr inbounds [2 x double], [2 x double]* %41, i64 0, i64 1
store double 1.895000e+01, double* %42
ret i32 0
}

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