main() {
  struct {
    int f[3];
    double x[1][2];
  } tp[4][2];
  int i, j, ki, kj, mi, mj;
  float bdm[4][2][4][2];
  for (i = 0; i < 4; i++)
    for (j = i; j < 4; j++)
      for (ki = 0; ki < 2; ki++)
        for (kj = 0; kj < 2; kj++)
          if ((j == i) && (ki == kj))
            bdm[i][ki][j][kj] = 1000.0;
          else {
            for (mi = 0; mi < 1; mi++)
              for (mj = 0; mj < 1; mj++)
                f(tp[i][ki].x[mi], tp[j][kj].x[mj]);
            bdm[i][ki][j][kj] = 1000.0;
          }
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x230,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x114(%rbp)
cmpl   $0x4,-0x114(%rbp)
jge    1373 <main+0x253>
mov    -0x114(%rbp),%eax
mov    %eax,-0x118(%rbp)
cmpl   $0x4,-0x118(%rbp)
jge    135a <main+0x23a>
movl   $0x0,-0x11c(%rbp)
cmpl   $0x2,-0x11c(%rbp)
jge    1341 <main+0x221>
movl   $0x0,-0x120(%rbp)
cmpl   $0x2,-0x120(%rbp)
jge    1328 <main+0x208>
mov    -0x118(%rbp),%eax
cmp    -0x114(%rbp),%eax
jne    11fe <main+0xde>
mov    -0x11c(%rbp),%eax
cmp    -0x120(%rbp),%eax
jne    11fe <main+0xde>
movslq -0x114(%rbp),%rcx
lea    -0x230(%rbp),%rax
shl    $0x6,%rcx
add    %rcx,%rax
movslq -0x11c(%rbp),%rcx
shl    $0x5,%rcx
add    %rcx,%rax
movslq -0x118(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x120(%rbp),%rcx
movss  0xe0c(%rip),%xmm0
movss  %xmm0,(%rax,%rcx,4)
jmp    130f <main+0x1ef>
movl   $0x0,-0x124(%rbp)
cmpl   $0x1,-0x124(%rbp)
jge    12ca <main+0x1aa>
movl   $0x0,-0x128(%rbp)
cmpl   $0x1,-0x128(%rbp)
jge    12b1 <main+0x191>
movslq -0x114(%rbp),%rax
lea    -0x110(%rbp),%rdi
shl    $0x6,%rax
add    %rax,%rdi
movslq -0x11c(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rdi
add    $0x10,%rdi
movslq -0x124(%rbp),%rax
shl    $0x4,%rax
add    %rax,%rdi
movslq -0x118(%rbp),%rax
lea    -0x110(%rbp),%rsi
shl    $0x6,%rax
add    %rax,%rsi
movslq -0x120(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rsi
add    $0x10,%rsi
movslq -0x128(%rbp),%rax
shl    $0x4,%rax
add    %rax,%rsi
mov    $0x0,%al
call   1030 <f@plt>
mov    -0x128(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x128(%rbp)
jmp    121f <main+0xff>
jmp    12b6 <main+0x196>
mov    -0x124(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x124(%rbp)
jmp    1208 <main+0xe8>
movslq -0x114(%rbp),%rcx
lea    -0x230(%rbp),%rax
shl    $0x6,%rcx
add    %rcx,%rax
movslq -0x11c(%rbp),%rcx
shl    $0x5,%rcx
add    %rcx,%rax
movslq -0x118(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x120(%rbp),%rcx
movss  0xcf6(%rip),%xmm0
movss  %xmm0,(%rax,%rcx,4)
jmp    1314 <main+0x1f4>
mov    -0x120(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x120(%rbp)
jmp    1183 <main+0x63>
jmp    132d <main+0x20d>
mov    -0x11c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x11c(%rbp)
jmp    116c <main+0x4c>
jmp    1346 <main+0x226>
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    1155 <main+0x35>
jmp    135f <main+0x23f>
mov    -0x114(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x114(%rbp)
jmp    113c <main+0x1c>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x100,%rsp
lea    0x10(%rsp),%r14
lea    0x30(%rsp),%r15
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <f@plt>
mov    %r15,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <f@plt>
lea    0x50(%rsp),%rbx
mov    $0x3,%r13d
nop
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <f@plt>
lea    0x20(%rbx),%r12
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <f@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <f@plt>
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <f@plt>
add    $0x40,%rbx
add    $0xffffffffffffffff,%r13
jne    1160 <main+0x40>
lea    0x50(%rsp),%r14
lea    0x70(%rsp),%r15
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <f@plt>
mov    %r15,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <f@plt>
lea    0xb0(%rsp),%rbx
mov    $0x2,%r13d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    -0x20(%rbx),%r12
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <f@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <f@plt>
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <f@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <f@plt>
add    $0x40,%rbx
add    $0xffffffffffffffff,%r13
jne    11e0 <main+0xc0>
lea    0x90(%rsp),%r14
lea    0xb0(%rsp),%r15
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <f@plt>
mov    %r15,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <f@plt>
xor    %ebx,%ebx
jmp    12c4 <main+0x1a4>
lea    (%rsp,%rbx,1),%rsi
add    $0xd0,%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <f@plt>
lea    (%rsp,%rbx,1),%rsi
add    $0xf0,%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <f@plt>
mov    $0x1,%r12d
xor    %eax,%eax
mov    %r15,%rdi
shl    $0x5,%rax
add    %rbx,%rax
lea    (%rsp,%rax,1),%rsi
add    $0xd0,%rsi
xor    %eax,%eax
call   1030 <f@plt>
shl    $0x5,%r12
add    %rbx,%r12
lea    (%rsp,%r12,1),%rsi
add    $0xd0,%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <f@plt>
add    $0x40,%rbx
cmp    $0x40,%rbx
je     12d7 <main+0x1b7>
cmp    $0xffffffffffffffc0,%rbx
jne    1250 <main+0x130>
mov    $0x1,%eax
mov    %r14,%rdi
xor    %r12d,%r12d
jmp    1285 <main+0x165>
lea    0xd0(%rsp),%r14
lea    0xf0(%rsp),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <f@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <f@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
%struct.anon = type { [3 x i32], [1 x [2 x double]] }
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x [2 x %struct.anon]]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [4 x [2 x [4 x [2 x float]]]]
store i32 0, i32* %1
store i32 0, i32* %3
br label %10
10: ; preds = %112, %0
%11 = load i32, i32* %3
%12 = icmp slt i32 %11, 4
br i1 %12, label %13, label %115
13: ; preds = %10
%14 = load i32, i32* %3
store i32 %14, i32* %4
br label %15
15: ; preds = %108, %13
%16 = load i32, i32* %4
%17 = icmp slt i32 %16, 4
br i1 %17, label %18, label %111
18: ; preds = %15
store i32 0, i32* %5
br label %19
19: ; preds = %104, %18
%20 = load i32, i32* %5
%21 = icmp slt i32 %20, 2
br i1 %21, label %22, label %107
22: ; preds = %19
store i32 0, i32* %6
br label %23
23: ; preds = %100, %22
%24 = load i32, i32* %6
%25 = icmp slt i32 %24, 2
br i1 %25, label %26, label %103
26: ; preds = %23
%27 = load i32, i32* %4
%28 = load i32, i32* %3
%29 = icmp eq i32 %27, %28
br i1 %29, label %30, label %47
30: ; preds = %26
%31 = load i32, i32* %5
%32 = load i32, i32* %6
%33 = icmp eq i32 %31, %32
br i1 %33, label %34, label %47
34: ; preds = %30
%35 = load i32, i32* %3
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [4 x [2 x [4 x [2 x float]]]], [4 x [2 x [4 x [2 x float]]]]* %9, i64 0, i64 %36
%38 = load i32, i32* %5
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [2 x [4 x [2 x float]]], [2 x [4 x [2 x float]]]* %37, i64 0, i64 %39
%41 = load i32, i32* %4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [4 x [2 x float]], [4 x [2 x float]]* %40, i64 0, i64 %42
%44 = load i32, i32* %6
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [2 x float], [2 x float]* %43, i64 0, i64 %45
store float 1.000000e+03, float* %46
br label %99
47: ; preds = %30, %26
store i32 0, i32* %7
br label %48
48: ; preds = %83, %47
%49 = load i32, i32* %7
%50 = icmp slt i32 %49, 1
br i1 %50, label %51, label %86
51: ; preds = %48
store i32 0, i32* %8
br label %52
52: ; preds = %79, %51
%53 = load i32, i32* %8
%54 = icmp slt i32 %53, 1
br i1 %54, label %55, label %82
55: ; preds = %52
%56 = load i32, i32* %3
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %2, i64 0, i64 %57
%59 = load i32, i32* %5
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [2 x %struct.anon], [2 x %struct.anon]* %58, i64 0, i64 %60
%62 = getelementptr inbounds %struct.anon, %struct.anon* %61, i32 0, i32 1
%63 = load i32, i32* %7
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [1 x [2 x double]], [1 x [2 x double]]* %62, i64 0, i64 %64
%66 = getelementptr inbounds [2 x double], [2 x double]* %65, i64 0, i64 0
%67 = load i32, i32* %4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %2, i64 0, i64 %68
%70 = load i32, i32* %6
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [2 x %struct.anon], [2 x %struct.anon]* %69, i64 0, i64 %71
%73 = getelementptr inbounds %struct.anon, %struct.anon* %72, i32 0, i32 1
%74 = load i32, i32* %8
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [1 x [2 x double]], [1 x [2 x double]]* %73, i64 0, i64 %75
%77 = getelementptr inbounds [2 x double], [2 x double]* %76, i64 0, i64 0
%78 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %66, double* %77)
br label %79
79: ; preds = %55
%80 = load i32, i32* %8
%81 = add nsw i32 %80, 1
store i32 %81, i32* %8
br label %52
82: ; preds = %52
br label %83
83: ; preds = %82
%84 = load i32, i32* %7
%85 = add nsw i32 %84, 1
store i32 %85, i32* %7
br label %48
86: ; preds = %48
%87 = load i32, i32* %3
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [4 x [2 x [4 x [2 x float]]]], [4 x [2 x [4 x [2 x float]]]]* %9, i64 0, i64 %88
%90 = load i32, i32* %5
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [2 x [4 x [2 x float]]], [2 x [4 x [2 x float]]]* %89, i64 0, i64 %91
%93 = load i32, i32* %4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [4 x [2 x float]], [4 x [2 x float]]* %92, i64 0, i64 %94
%96 = load i32, i32* %6
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [2 x float], [2 x float]* %95, i64 0, i64 %97
store float 1.000000e+03, float* %98
br label %99
99: ; preds = %86, %34
br label %100
100: ; preds = %99
%101 = load i32, i32* %6
%102 = add nsw i32 %101, 1
store i32 %102, i32* %6
br label %23
103: ; preds = %23
br label %104
104: ; preds = %103
%105 = load i32, i32* %5
%106 = add nsw i32 %105, 1
store i32 %106, i32* %5
br label %19
107: ; preds = %19
br label %108
108: ; preds = %107
%109 = load i32, i32* %4
%110 = add nsw i32 %109, 1
store i32 %110, i32* %4
br label %15
111: ; preds = %15
br label %112
112: ; preds = %111
%113 = load i32, i32* %3
%114 = add nsw i32 %113, 1
store i32 %114, i32* %3
br label %10
115: ; preds = %10
unreachable
}

LLVM IR (-O2):
%struct.anon = type { [3 x i32], [1 x [2 x double]] }
define i32 @main() {
%1 = alloca [4 x [2 x %struct.anon]]
%2 = bitcast [4 x [2 x %struct.anon]]* %1 to i8*
%3 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 0, i64 0, i32 1, i64 0, i64 0
%4 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 0, i64 1, i32 1, i64 0, i64 0
%5 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %3, double* %4)
%6 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 0, i64 1, i32 1, i64 0, i64 0
%7 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %6, double* %3)
br label %8
8: ; preds = %0, %8
%9 = phi i64 [ %18, %8 ], [ 1, %0 ]
%10 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 %9, i64 0, i32 1, i64 0, i64 0
%11 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %3, double* %10)
%12 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 %9, i64 1, i32 1, i64 0, i64 0
%13 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %3, double* %12)
%14 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 %9, i64 0, i32 1, i64 0, i64 0
%15 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %6, double* %14)
%16 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 %9, i64 1, i32 1, i64 0, i64 0
%17 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %6, double* %16)
%18 = add nuw nsw i64 %9, 1
%19 = icmp eq i64 %18, 4
br i1 %19, label %20, label %8
20: ; preds = %8
%21 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 1, i64 0, i32 1, i64 0, i64 0
%22 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 1, i64 1, i32 1, i64 0, i64 0
%23 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %21, double* %22)
%24 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 1, i64 1, i32 1, i64 0, i64 0
%25 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %24, double* %21)
br label %26
26: ; preds = %26, %20
%27 = phi i64 [ %36, %26 ], [ 2, %20 ]
%28 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 %27, i64 0, i32 1, i64 0, i64 0
%29 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %21, double* %28)
%30 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 %27, i64 1, i32 1, i64 0, i64 0
%31 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %21, double* %30)
%32 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 %27, i64 0, i32 1, i64 0, i64 0
%33 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %24, double* %32)
%34 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 %27, i64 1, i32 1, i64 0, i64 0
%35 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %24, double* %34)
%36 = add nuw nsw i64 %27, 1
%37 = icmp eq i64 %36, 4
br i1 %37, label %38, label %26
38: ; preds = %26
%39 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 2, i64 0, i32 1, i64 0, i64 0
%40 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 2, i64 1, i32 1, i64 0, i64 0
%41 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %39, double* %40)
%42 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 2, i64 1, i32 1, i64 0, i64 0
%43 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %42, double* %39)
br label %44
44: ; preds = %52, %38
%45 = phi i64 [ %60, %52 ], [ 3, %38 ]
%46 = icmp eq i64 %45, 2
br i1 %46, label %52, label %47
47: ; preds = %44
%48 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 %45, i64 0, i32 1, i64 0, i64 0
%49 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %39, double* %48)
%50 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 %45, i64 1, i32 1, i64 0, i64 0
%51 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %39, double* %50)
br label %52
52: ; preds = %47, %44
%53 = phi i64 [ 0, %47 ], [ 1, %44 ]
%54 = phi double* [ %42, %47 ], [ %39, %44 ]
%55 = phi i64 [ 1, %47 ], [ 0, %44 ]
%56 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 %45, i64 %53, i32 1, i64 0, i64 0
%57 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %54, double* %56)
%58 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 %45, i64 %55, i32 1, i64 0, i64 0
%59 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %42, double* %58)
%60 = add nuw nsw i64 %45, 1
%61 = icmp eq i64 %60, 4
br i1 %61, label %62, label %44
62: ; preds = %52
%63 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 3, i64 0, i32 1, i64 0, i64 0
%64 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 3, i64 1, i32 1, i64 0, i64 0
%65 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %63, double* %64)
%66 = getelementptr inbounds [4 x [2 x %struct.anon]], [4 x [2 x %struct.anon]]* %1, i64 0, i64 3, i64 1, i32 1, i64 0, i64 0
%67 = call i32 (double*, double*, ...) bitcast (i32 (...)* @f to i32 (double*, double*, ...)*)(double* %66, double* %63)
unreachable
}