int main() {
  static int n, i, j;
  static double **a, **s, Emin;
  n = 10;
  a = (double **)malloc(sizeof(double *) * (n + 3));
  for (i = 0; i < (n + 3); i++) {
    a[i] = (double *)malloc(sizeof(double) * (n + 3));
  }
  s = (double **)malloc(sizeof(double *) * (n + 3));
  for (i = 0; i < (n + 3); i++) {
    s[i] = (double *)malloc(sizeof(double) * (n + 3));
  }
  for (i = 1; i <= n; i++) {
    for (j = i; j <= n; j++) {
      a[i][j] = 0.0;
      s[i][j] = 0.0;
    }
  }
  a[1][1] = 1.0;
  a[1][2] = 1.0;
  a[2][1] = 1.0;
  a[2][2] = -1.0;
  a[2][3] = 0.5;
  a[3][2] = 0.5;
  a[3][3] = -0.5;
  s[1][1] = 1.0;
  s[1][2] = 0.1;
  s[2][1] = 0.1;
  s[2][2] = 1.0;
  s[2][3] = 0.2;
  s[3][2] = 0.2;
  s[3][3] = 1.0;
  Emin = find_Emin(3, a, s);
  printf("Emin=%18.15f\n", Emin);
  exit(0);
  Emin = find_Emin(n, a, s);
  printf("Emin=%18.15f\n", Emin);
  for (i = 0; i < (n + 3); i++) {
    free(a[i]);
  }
  free(a);
  for (i = 0; i < (n + 3); i++) {
    free(s[i]);
  }
  free(s);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xa,0x2eef(%rip)
mov    0x2ee9(%rip),%eax
add    $0x3,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1040 <malloc@plt>
mov    %rax,0x2ee3(%rip)
movl   $0x0,0x2ecd(%rip)
mov    0x2ec7(%rip),%eax
mov    0x2ebd(%rip),%ecx
add    $0x3,%ecx
cmp    %ecx,%eax
jge    11d4 <main+0x94>
mov    0x2eac(%rip),%eax
add    $0x3,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1040 <malloc@plt>
mov    %rax,%rdx
mov    0x2ea3(%rip),%rax
movslq 0x2e90(%rip),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    0x2e86(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2e7d(%rip)
jmp    117f <main+0x3f>
mov    0x2e6e(%rip),%eax
add    $0x3,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1040 <malloc@plt>
mov    %rax,0x2e70(%rip)
movl   $0x0,0x2e52(%rip)
mov    0x2e4c(%rip),%eax
mov    0x2e42(%rip),%ecx
add    $0x3,%ecx
cmp    %ecx,%eax
jge    124f <main+0x10f>
mov    0x2e31(%rip),%eax
add    $0x3,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1040 <malloc@plt>
mov    %rax,%rdx
mov    0x2e30(%rip),%rax
movslq 0x2e15(%rip),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    0x2e0b(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2e02(%rip)
jmp    11fa <main+0xba>
movl   $0x1,0x2df3(%rip)
mov    0x2ded(%rip),%eax
cmp    0x2de3(%rip),%eax
jg     12f8 <main+0x1b8>
mov    0x2ddb(%rip),%eax
mov    %eax,0x2dd9(%rip)
mov    0x2dd3(%rip),%eax
cmp    0x2dc5(%rip),%eax
jg     12df <main+0x19f>
mov    0x2dc8(%rip),%rax
movslq 0x2db5(%rip),%rcx
mov    (%rax,%rcx,8),%rax
movslq 0x2dae(%rip),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    0x2daf(%rip),%rax
movslq 0x2d94(%rip),%rcx
mov    (%rax,%rcx,8),%rax
movslq 0x2d8d(%rip),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    0x2d7f(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2d76(%rip)
jmp    1277 <main+0x137>
jmp    12e4 <main+0x1a4>
mov    0x2d62(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2d59(%rip)
jmp    1259 <main+0x119>
mov    0x2d59(%rip),%rax
mov    0x8(%rax),%rax
movsd  0xcf5(%rip),%xmm0
movsd  %xmm0,0x8(%rax)
mov    0x2d41(%rip),%rax
mov    0x8(%rax),%rax
movsd  0xcdd(%rip),%xmm0
movsd  %xmm0,0x10(%rax)
mov    0x2d29(%rip),%rax
mov    0x10(%rax),%rax
movsd  0xcc5(%rip),%xmm0
movsd  %xmm0,0x8(%rax)
mov    0x2d11(%rip),%rax
mov    0x10(%rax),%rax
movsd  0xcd5(%rip),%xmm0
movsd  %xmm0,0x10(%rax)
mov    0x2cf9(%rip),%rax
mov    0x10(%rax),%rax
movsd  0xcb5(%rip),%xmm0
movsd  %xmm0,0x18(%rax)
mov    0x2ce1(%rip),%rax
mov    0x18(%rax),%rax
movsd  0xc9d(%rip),%xmm0
movsd  %xmm0,0x10(%rax)
mov    0x2cc9(%rip),%rax
mov    0x18(%rax),%rax
movsd  0xc7d(%rip),%xmm0
movsd  %xmm0,0x18(%rax)
mov    0x2cb9(%rip),%rax
mov    0x8(%rax),%rax
movsd  0xc4d(%rip),%xmm0
movsd  %xmm0,0x8(%rax)
mov    0x2ca1(%rip),%rax
mov    0x8(%rax),%rax
movsd  0xc45(%rip),%xmm0
movsd  %xmm0,0x10(%rax)
mov    0x2c89(%rip),%rax
mov    0x10(%rax),%rax
movsd  0xc2d(%rip),%xmm0
movsd  %xmm0,0x8(%rax)
mov    0x2c71(%rip),%rax
mov    0x10(%rax),%rax
movsd  0xc05(%rip),%xmm0
movsd  %xmm0,0x10(%rax)
mov    0x2c59(%rip),%rax
mov    0x10(%rax),%rax
movsd  0xbf5(%rip),%xmm0
movsd  %xmm0,0x18(%rax)
mov    0x2c41(%rip),%rax
mov    0x18(%rax),%rax
movsd  0xbdd(%rip),%xmm0
movsd  %xmm0,0x10(%rax)
mov    0x2c29(%rip),%rax
mov    0x18(%rax),%rax
movsd  0xbbd(%rip),%xmm0
movsd  %xmm0,0x18(%rax)
mov    0x2c09(%rip),%rsi
mov    0x2c0a(%rip),%rdx
mov    $0x3,%edi
mov    $0x0,%al
call   1060 <find_Emin@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x2bfa(%rip)
movsd  0x2bf2(%rip),%xmm0
lea    0xbb3(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,%rbx
mov    %rax,0x2ee6(%rip)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,0x8(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,0x10(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,0x18(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,0x20(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,0x28(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,0x30(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,0x38(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,0x40(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,0x48(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,0x50(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,0x58(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,0x60(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,%rbx
mov    %rax,0x2e25(%rip)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,%r14
mov    %rax,0x8(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,%r15
mov    %rax,0x10(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,%r12
mov    %rax,0x18(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,%r13
mov    %rax,0x20(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,%rbp
mov    %rax,0x28(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,(%rsp)
mov    %rax,0x30(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,0x8(%rsp)
mov    %rax,0x38(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,0x10(%rsp)
mov    %rax,0x40(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,0x20(%rsp)
mov    %rax,0x48(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,0x18(%rsp)
mov    %rax,0x50(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,0x58(%rbx)
mov    $0x68,%edi
call   1040 <malloc@plt>
mov    %rax,0x60(%rbx)
mov    0x2d3a(%rip),%rsi
mov    0x8(%rsi),%rax
movq   $0x0,0x8(%rax)
movq   $0x0,0x8(%r14)
movq   $0x0,0x10(%rax)
movq   $0x0,0x10(%r14)
movq   $0x0,0x18(%rax)
movq   $0x0,0x18(%r14)
movq   $0x0,0x20(%rax)
movq   $0x0,0x20(%r14)
movq   $0x0,0x28(%rax)
movq   $0x0,0x28(%r14)
movq   $0x0,0x30(%rax)
movq   $0x0,0x30(%r14)
movq   $0x0,0x38(%rax)
movq   $0x0,0x38(%r14)
movq   $0x0,0x40(%rax)
movq   $0x0,0x40(%r14)
movq   $0x0,0x48(%rax)
movq   $0x0,0x48(%r14)
movq   $0x0,0x50(%rax)
movq   $0x0,0x50(%r14)
mov    0x10(%rsi),%rax
movq   $0x0,0x10(%rax)
movq   $0x0,0x10(%r15)
movq   $0x0,0x18(%rax)
movq   $0x0,0x18(%r15)
movq   $0x0,0x20(%rax)
movq   $0x0,0x20(%r15)
movq   $0x0,0x28(%rax)
movq   $0x0,0x28(%r15)
movq   $0x0,0x30(%rax)
movq   $0x0,0x30(%r15)
movq   $0x0,0x38(%rax)
movq   $0x0,0x38(%r15)
movq   $0x0,0x40(%rax)
movq   $0x0,0x40(%r15)
movq   $0x0,0x48(%rax)
movq   $0x0,0x48(%r15)
movq   $0x0,0x50(%rax)
movq   $0x0,0x50(%r15)
mov    0x18(%rsi),%rax
xorps  %xmm0,%xmm0
movups %xmm0,0x18(%rax)
movq   $0x0,0x20(%r12)
movq   $0x0,0x28(%rax)
movq   $0x0,0x28(%r12)
movq   $0x0,0x30(%rax)
movq   $0x0,0x30(%r12)
movq   $0x0,0x38(%rax)
movq   $0x0,0x38(%r12)
movq   $0x0,0x40(%rax)
movq   $0x0,0x40(%r12)
movq   $0x0,0x48(%rax)
movq   $0x0,0x48(%r12)
movq   $0x0,0x50(%rax)
movq   $0x0,0x50(%r12)
mov    0x20(%rsi),%rax
movq   $0x0,0x20(%rax)
movq   $0x0,0x20(%r13)
movq   $0x0,0x28(%rax)
movq   $0x0,0x28(%r13)
movq   $0x0,0x30(%rax)
movq   $0x0,0x30(%r13)
movq   $0x0,0x38(%rax)
movq   $0x0,0x38(%r13)
movq   $0x0,0x40(%rax)
movq   $0x0,0x40(%r13)
movq   $0x0,0x48(%rax)
movq   $0x0,0x48(%r13)
movq   $0x0,0x50(%rax)
movq   $0x0,0x50(%r13)
mov    0x28(%rsi),%rax
movq   $0x0,0x28(%rax)
movq   $0x0,0x28(%rbp)
movq   $0x0,0x30(%rax)
movq   $0x0,0x30(%rbp)
movq   $0x0,0x38(%rax)
movq   $0x0,0x38(%rbp)
movq   $0x0,0x40(%rax)
movq   $0x0,0x40(%rbp)
movq   $0x0,0x48(%rax)
movq   $0x0,0x48(%rbp)
movq   $0x0,0x50(%rax)
movq   $0x0,0x50(%rbp)
mov    0x30(%rsi),%rax
movq   $0x0,0x30(%rax)
mov    (%rsp),%rcx
movq   $0x0,0x30(%rcx)
movq   $0x0,0x38(%rax)
movq   $0x0,0x38(%rcx)
movq   $0x0,0x40(%rax)
movq   $0x0,0x40(%rcx)
movq   $0x0,0x48(%rax)
movq   $0x0,0x48(%rcx)
movq   $0x0,0x50(%rax)
movq   $0x0,0x50(%rcx)
mov    0x38(%rsi),%rax
movq   $0x0,0x38(%rax)
mov    0x8(%rsp),%rcx
movq   $0x0,0x38(%rcx)
movq   $0x0,0x40(%rax)
movq   $0x0,0x40(%rcx)
movq   $0x0,0x48(%rax)
movq   $0x0,0x48(%rcx)
movq   $0x0,0x50(%rax)
movq   $0x0,0x50(%rcx)
mov    0x40(%rsi),%rax
movq   $0x0,0x40(%rax)
mov    0x10(%rsp),%rcx
movq   $0x0,0x40(%rcx)
movq   $0x0,0x48(%rax)
movq   $0x0,0x48(%rcx)
movq   $0x0,0x50(%rax)
movq   $0x0,0x50(%rcx)
mov    0x48(%rsi),%rax
movq   $0x0,0x48(%rax)
mov    0x20(%rsp),%rcx
movq   $0x0,0x48(%rcx)
movq   $0x0,0x50(%rax)
movq   $0x0,0x50(%rcx)
mov    0x50(%rsi),%rax
movq   $0x0,0x50(%rax)
mov    0x18(%rsp),%rax
movq   $0x0,0x50(%rax)
mov    0x8(%rsi),%rax
movaps 0x941(%rip),%xmm0
movups %xmm0,0x8(%rax)
mov    0x10(%rsi),%rax
movaps 0x942(%rip),%xmm0
movups %xmm0,0x8(%rax)
movabs $0x3fe0000000000000,%rcx
mov    %rcx,0x18(%rax)
mov    0x18(%rsi),%rax
movaps 0x935(%rip),%xmm0
movups %xmm0,0x10(%rax)
movaps 0x93a(%rip),%xmm0
movups %xmm0,0x8(%r14)
movaps 0x93e(%rip),%xmm0
movups %xmm0,0x8(%r15)
movabs $0x3fc999999999999a,%rax
99 c9 3f
mov    %rax,0x18(%r15)
movaps 0x934(%rip),%xmm0
movups %xmm0,0x10(%r12)
mov    $0x3,%edi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <find_Emin@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
lea    0x921(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@main.n = internal global i32 0
@main.i = internal global i32 0
@main.j = internal global i32 0
@main.a = internal global double** null
@main.s = internal global double** null
@main.Emin = internal global double 0.000000e+00
@.str = [14 x i8] c"Emin=%18.15f\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
store i32 10, i32* @main.n
%2 = load i32, i32* @main.n
%3 = add nsw i32 %2, 3
%4 = sext i32 %3 to i64
%5 = mul i64 8, %4
%6 = call i8* @malloc(i64 %5)
%7 = bitcast i8* %6 to double**
store double** %7, double*** @main.a
store i32 0, i32* @main.i
br label %8
8: ; preds = %24, %0
%9 = load i32, i32* @main.i
%10 = load i32, i32* @main.n
%11 = add nsw i32 %10, 3
%12 = icmp slt i32 %9, %11
br i1 %12, label %13, label %27
13: ; preds = %8
%14 = load i32, i32* @main.n
%15 = add nsw i32 %14, 3
%16 = sext i32 %15 to i64
%17 = mul i64 8, %16
%18 = call i8* @malloc(i64 %17)
%19 = bitcast i8* %18 to double*
%20 = load double**, double*** @main.a
%21 = load i32, i32* @main.i
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double*, double** %20, i64 %22
store double* %19, double** %23
br label %24
24: ; preds = %13
%25 = load i32, i32* @main.i
%26 = add nsw i32 %25, 1
store i32 %26, i32* @main.i
br label %8
27: ; preds = %8
%28 = load i32, i32* @main.n
%29 = add nsw i32 %28, 3
%30 = sext i32 %29 to i64
%31 = mul i64 8, %30
%32 = call i8* @malloc(i64 %31)
%33 = bitcast i8* %32 to double**
store double** %33, double*** @main.s
store i32 0, i32* @main.i
br label %34
34: ; preds = %50, %27
%35 = load i32, i32* @main.i
%36 = load i32, i32* @main.n
%37 = add nsw i32 %36, 3
%38 = icmp slt i32 %35, %37
br i1 %38, label %39, label %53
39: ; preds = %34
%40 = load i32, i32* @main.n
%41 = add nsw i32 %40, 3
%42 = sext i32 %41 to i64
%43 = mul i64 8, %42
%44 = call i8* @malloc(i64 %43)
%45 = bitcast i8* %44 to double*
%46 = load double**, double*** @main.s
%47 = load i32, i32* @main.i
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double*, double** %46, i64 %48
store double* %45, double** %49
br label %50
50: ; preds = %39
%51 = load i32, i32* @main.i
%52 = add nsw i32 %51, 1
store i32 %52, i32* @main.i
br label %34
53: ; preds = %34
store i32 1, i32* @main.i
br label %54
54: ; preds = %85, %53
%55 = load i32, i32* @main.i
%56 = load i32, i32* @main.n
%57 = icmp sle i32 %55, %56
br i1 %57, label %58, label %88
58: ; preds = %54
%59 = load i32, i32* @main.i
store i32 %59, i32* @main.j
br label %60
60: ; preds = %81, %58
%61 = load i32, i32* @main.j
%62 = load i32, i32* @main.n
%63 = icmp sle i32 %61, %62
br i1 %63, label %64, label %84
64: ; preds = %60
%65 = load double**, double*** @main.a
%66 = load i32, i32* @main.i
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double*, double** %65, i64 %67
%69 = load double*, double** %68
%70 = load i32, i32* @main.j
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds double, double* %69, i64 %71
store double 0.000000e+00, double* %72
%73 = load double**, double*** @main.s
%74 = load i32, i32* @main.i
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double*, double** %73, i64 %75
%77 = load double*, double** %76
%78 = load i32, i32* @main.j
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds double, double* %77, i64 %79
store double 0.000000e+00, double* %80
br label %81
81: ; preds = %64
%82 = load i32, i32* @main.j
%83 = add nsw i32 %82, 1
store i32 %83, i32* @main.j
br label %60
84: ; preds = %60
br label %85
85: ; preds = %84
%86 = load i32, i32* @main.i
%87 = add nsw i32 %86, 1
store i32 %87, i32* @main.i
br label %54
88: ; preds = %54
%89 = load double**, double*** @main.a
%90 = getelementptr inbounds double*, double** %89, i64 1
%91 = load double*, double** %90
%92 = getelementptr inbounds double, double* %91, i64 1
store double 1.000000e+00, double* %92
%93 = load double**, double*** @main.a
%94 = getelementptr inbounds double*, double** %93, i64 1
%95 = load double*, double** %94
%96 = getelementptr inbounds double, double* %95, i64 2
store double 1.000000e+00, double* %96
%97 = load double**, double*** @main.a
%98 = getelementptr inbounds double*, double** %97, i64 2
%99 = load double*, double** %98
%100 = getelementptr inbounds double, double* %99, i64 1
store double 1.000000e+00, double* %100
%101 = load double**, double*** @main.a
%102 = getelementptr inbounds double*, double** %101, i64 2
%103 = load double*, double** %102
%104 = getelementptr inbounds double, double* %103, i64 2
store double -1.000000e+00, double* %104
%105 = load double**, double*** @main.a
%106 = getelementptr inbounds double*, double** %105, i64 2
%107 = load double*, double** %106
%108 = getelementptr inbounds double, double* %107, i64 3
store double 5.000000e-01, double* %108
%109 = load double**, double*** @main.a
%110 = getelementptr inbounds double*, double** %109, i64 3
%111 = load double*, double** %110
%112 = getelementptr inbounds double, double* %111, i64 2
store double 5.000000e-01, double* %112
%113 = load double**, double*** @main.a
%114 = getelementptr inbounds double*, double** %113, i64 3
%115 = load double*, double** %114
%116 = getelementptr inbounds double, double* %115, i64 3
store double -5.000000e-01, double* %116
%117 = load double**, double*** @main.s
%118 = getelementptr inbounds double*, double** %117, i64 1
%119 = load double*, double** %118
%120 = getelementptr inbounds double, double* %119, i64 1
store double 1.000000e+00, double* %120
%121 = load double**, double*** @main.s
%122 = getelementptr inbounds double*, double** %121, i64 1
%123 = load double*, double** %122
%124 = getelementptr inbounds double, double* %123, i64 2
store double 1.000000e-01, double* %124
%125 = load double**, double*** @main.s
%126 = getelementptr inbounds double*, double** %125, i64 2
%127 = load double*, double** %126
%128 = getelementptr inbounds double, double* %127, i64 1
store double 1.000000e-01, double* %128
%129 = load double**, double*** @main.s
%130 = getelementptr inbounds double*, double** %129, i64 2
%131 = load double*, double** %130
%132 = getelementptr inbounds double, double* %131, i64 2
store double 1.000000e+00, double* %132
%133 = load double**, double*** @main.s
%134 = getelementptr inbounds double*, double** %133, i64 2
%135 = load double*, double** %134
%136 = getelementptr inbounds double, double* %135, i64 3
store double 2.000000e-01, double* %136
%137 = load double**, double*** @main.s
%138 = getelementptr inbounds double*, double** %137, i64 3
%139 = load double*, double** %138
%140 = getelementptr inbounds double, double* %139, i64 2
store double 2.000000e-01, double* %140
%141 = load double**, double*** @main.s
%142 = getelementptr inbounds double*, double** %141, i64 3
%143 = load double*, double** %142
%144 = getelementptr inbounds double, double* %143, i64 3
store double 1.000000e+00, double* %144
%145 = load double**, double*** @main.a
%146 = load double**, double*** @main.s
%147 = call i32 (i32, double**, double**, ...) bitcast (i32 (...)* @find_Emin to i32 (i32, double**, double**, ...)*)(i32 3, double** %145, double** %146)
%148 = sitofp i32 %147 to double
store double %148, double* @main.Emin
%149 = load double, double* @main.Emin
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), double %149)
unreachable
}

LLVM IR (-O2):
@main.a = internal unnamed_addr global double** null
@main.s = internal unnamed_addr global double** null
@.str = [14 x i8] c"Emin=%18.15f\0A\00"
define i32 @main() {
%1 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
store i8* %1, i8** bitcast (double*** @main.a to i8**)
%2 = bitcast i8* %1 to double**
%3 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%4 = bitcast i8* %1 to i8**
store i8* %3, i8** %4
%5 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%6 = getelementptr inbounds double*, double** %2, i64 1
%7 = bitcast double** %6 to i8**
store i8* %5, i8** %7
%8 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%9 = getelementptr inbounds double*, double** %2, i64 2
%10 = bitcast double** %9 to i8**
store i8* %8, i8** %10
%11 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%12 = getelementptr inbounds double*, double** %2, i64 3
%13 = bitcast double** %12 to i8**
store i8* %11, i8** %13
%14 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%15 = getelementptr inbounds double*, double** %2, i64 4
%16 = bitcast double** %15 to i8**
store i8* %14, i8** %16
%17 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%18 = getelementptr inbounds double*, double** %2, i64 5
%19 = bitcast double** %18 to i8**
store i8* %17, i8** %19
%20 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%21 = getelementptr inbounds double*, double** %2, i64 6
%22 = bitcast double** %21 to i8**
store i8* %20, i8** %22
%23 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%24 = getelementptr inbounds double*, double** %2, i64 7
%25 = bitcast double** %24 to i8**
store i8* %23, i8** %25
%26 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%27 = getelementptr inbounds double*, double** %2, i64 8
%28 = bitcast double** %27 to i8**
store i8* %26, i8** %28
%29 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%30 = getelementptr inbounds double*, double** %2, i64 9
%31 = bitcast double** %30 to i8**
store i8* %29, i8** %31
%32 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%33 = getelementptr inbounds double*, double** %2, i64 10
%34 = bitcast double** %33 to i8**
store i8* %32, i8** %34
%35 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%36 = getelementptr inbounds double*, double** %2, i64 11
%37 = bitcast double** %36 to i8**
store i8* %35, i8** %37
%38 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%39 = getelementptr inbounds double*, double** %2, i64 12
%40 = bitcast double** %39 to i8**
store i8* %38, i8** %40
%41 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
store i8* %41, i8** bitcast (double*** @main.s to i8**)
%42 = bitcast i8* %41 to double**
%43 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%44 = bitcast i8* %41 to i8**
store i8* %43, i8** %44
%45 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%46 = getelementptr inbounds double*, double** %42, i64 1
%47 = bitcast double** %46 to i8**
store i8* %45, i8** %47
%48 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%49 = getelementptr inbounds double*, double** %42, i64 2
%50 = bitcast double** %49 to i8**
store i8* %48, i8** %50
%51 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%52 = getelementptr inbounds double*, double** %42, i64 3
%53 = bitcast double** %52 to i8**
store i8* %51, i8** %53
%54 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%55 = getelementptr inbounds double*, double** %42, i64 4
%56 = bitcast double** %55 to i8**
store i8* %54, i8** %56
%57 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%58 = getelementptr inbounds double*, double** %42, i64 5
%59 = bitcast double** %58 to i8**
store i8* %57, i8** %59
%60 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%61 = getelementptr inbounds double*, double** %42, i64 6
%62 = bitcast double** %61 to i8**
store i8* %60, i8** %62
%63 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%64 = getelementptr inbounds double*, double** %42, i64 7
%65 = bitcast double** %64 to i8**
store i8* %63, i8** %65
%66 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%67 = getelementptr inbounds double*, double** %42, i64 8
%68 = bitcast double** %67 to i8**
store i8* %66, i8** %68
%69 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%70 = getelementptr inbounds double*, double** %42, i64 9
%71 = bitcast double** %70 to i8**
store i8* %69, i8** %71
%72 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%73 = getelementptr inbounds double*, double** %42, i64 10
%74 = bitcast double** %73 to i8**
store i8* %72, i8** %74
%75 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%76 = getelementptr inbounds double*, double** %42, i64 11
%77 = bitcast double** %76 to i8**
store i8* %75, i8** %77
%78 = tail call dereferenceable_or_null(104) i8* @malloc(i64 104)
%79 = getelementptr inbounds double*, double** %42, i64 12
%80 = bitcast double** %79 to i8**
store i8* %78, i8** %80
%81 = load double**, double*** @main.a
%82 = bitcast i8* %45 to double*
%83 = bitcast i8* %48 to double*
%84 = bitcast i8* %51 to double*
%85 = bitcast i8* %54 to double*
%86 = bitcast i8* %57 to double*
%87 = bitcast i8* %60 to double*
%88 = bitcast i8* %63 to double*
%89 = bitcast i8* %66 to double*
%90 = bitcast i8* %69 to double*
%91 = bitcast i8* %72 to double*
%92 = getelementptr inbounds double*, double** %81, i64 1
%93 = load double*, double** %92
%94 = getelementptr inbounds double, double* %93, i64 1
store double 0.000000e+00, double* %94
%95 = getelementptr inbounds double, double* %82, i64 1
store double 0.000000e+00, double* %95
%96 = getelementptr inbounds double, double* %93, i64 2
store double 0.000000e+00, double* %96
%97 = getelementptr inbounds double, double* %82, i64 2
store double 0.000000e+00, double* %97
%98 = getelementptr inbounds double, double* %93, i64 3
store double 0.000000e+00, double* %98
%99 = getelementptr inbounds double, double* %82, i64 3
store double 0.000000e+00, double* %99
%100 = getelementptr inbounds double, double* %93, i64 4
store double 0.000000e+00, double* %100
%101 = getelementptr inbounds double, double* %82, i64 4
store double 0.000000e+00, double* %101
%102 = getelementptr inbounds double, double* %93, i64 5
store double 0.000000e+00, double* %102
%103 = getelementptr inbounds double, double* %82, i64 5
store double 0.000000e+00, double* %103
%104 = getelementptr inbounds double, double* %93, i64 6
store double 0.000000e+00, double* %104
%105 = getelementptr inbounds double, double* %82, i64 6
store double 0.000000e+00, double* %105
%106 = getelementptr inbounds double, double* %93, i64 7
store double 0.000000e+00, double* %106
%107 = getelementptr inbounds double, double* %82, i64 7
store double 0.000000e+00, double* %107
%108 = getelementptr inbounds double, double* %93, i64 8
store double 0.000000e+00, double* %108
%109 = getelementptr inbounds double, double* %82, i64 8
store double 0.000000e+00, double* %109
%110 = getelementptr inbounds double, double* %93, i64 9
store double 0.000000e+00, double* %110
%111 = getelementptr inbounds double, double* %82, i64 9
store double 0.000000e+00, double* %111
%112 = getelementptr inbounds double, double* %93, i64 10
store double 0.000000e+00, double* %112
%113 = getelementptr inbounds double, double* %82, i64 10
store double 0.000000e+00, double* %113
%114 = getelementptr inbounds double*, double** %81, i64 2
%115 = load double*, double** %114
%116 = getelementptr inbounds double, double* %115, i64 2
store double 0.000000e+00, double* %116
%117 = getelementptr inbounds double, double* %83, i64 2
store double 0.000000e+00, double* %117
%118 = getelementptr inbounds double, double* %115, i64 3
store double 0.000000e+00, double* %118
%119 = getelementptr inbounds double, double* %83, i64 3
store double 0.000000e+00, double* %119
%120 = getelementptr inbounds double, double* %115, i64 4
store double 0.000000e+00, double* %120
%121 = getelementptr inbounds double, double* %83, i64 4
store double 0.000000e+00, double* %121
%122 = getelementptr inbounds double, double* %115, i64 5
store double 0.000000e+00, double* %122
%123 = getelementptr inbounds double, double* %83, i64 5
store double 0.000000e+00, double* %123
%124 = getelementptr inbounds double, double* %115, i64 6
store double 0.000000e+00, double* %124
%125 = getelementptr inbounds double, double* %83, i64 6
store double 0.000000e+00, double* %125
%126 = getelementptr inbounds double, double* %115, i64 7
store double 0.000000e+00, double* %126
%127 = getelementptr inbounds double, double* %83, i64 7
store double 0.000000e+00, double* %127
%128 = getelementptr inbounds double, double* %115, i64 8
store double 0.000000e+00, double* %128
%129 = getelementptr inbounds double, double* %83, i64 8
store double 0.000000e+00, double* %129
%130 = getelementptr inbounds double, double* %115, i64 9
store double 0.000000e+00, double* %130
%131 = getelementptr inbounds double, double* %83, i64 9
store double 0.000000e+00, double* %131
%132 = getelementptr inbounds double, double* %115, i64 10
store double 0.000000e+00, double* %132
%133 = getelementptr inbounds double, double* %83, i64 10
store double 0.000000e+00, double* %133
%134 = getelementptr inbounds double*, double** %81, i64 3
%135 = load double*, double** %134
%136 = getelementptr inbounds double, double* %135, i64 3
%137 = bitcast double* %136 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %137
%138 = getelementptr inbounds double, double* %84, i64 4
store double 0.000000e+00, double* %138
%139 = getelementptr inbounds double, double* %135, i64 5
store double 0.000000e+00, double* %139
%140 = getelementptr inbounds double, double* %84, i64 5
store double 0.000000e+00, double* %140
%141 = getelementptr inbounds double, double* %135, i64 6
store double 0.000000e+00, double* %141
%142 = getelementptr inbounds double, double* %84, i64 6
store double 0.000000e+00, double* %142
%143 = getelementptr inbounds double, double* %135, i64 7
store double 0.000000e+00, double* %143
%144 = getelementptr inbounds double, double* %84, i64 7
store double 0.000000e+00, double* %144
%145 = getelementptr inbounds double, double* %135, i64 8
store double 0.000000e+00, double* %145
%146 = getelementptr inbounds double, double* %84, i64 8
store double 0.000000e+00, double* %146
%147 = getelementptr inbounds double, double* %135, i64 9
store double 0.000000e+00, double* %147
%148 = getelementptr inbounds double, double* %84, i64 9
store double 0.000000e+00, double* %148
%149 = getelementptr inbounds double, double* %135, i64 10
store double 0.000000e+00, double* %149
%150 = getelementptr inbounds double, double* %84, i64 10
store double 0.000000e+00, double* %150
%151 = getelementptr inbounds double*, double** %81, i64 4
%152 = load double*, double** %151
%153 = getelementptr inbounds double, double* %152, i64 4
store double 0.000000e+00, double* %153
%154 = getelementptr inbounds double, double* %85, i64 4
store double 0.000000e+00, double* %154
%155 = getelementptr inbounds double, double* %152, i64 5
store double 0.000000e+00, double* %155
%156 = getelementptr inbounds double, double* %85, i64 5
store double 0.000000e+00, double* %156
%157 = getelementptr inbounds double, double* %152, i64 6
store double 0.000000e+00, double* %157
%158 = getelementptr inbounds double, double* %85, i64 6
store double 0.000000e+00, double* %158
%159 = getelementptr inbounds double, double* %152, i64 7
store double 0.000000e+00, double* %159
%160 = getelementptr inbounds double, double* %85, i64 7
store double 0.000000e+00, double* %160
%161 = getelementptr inbounds double, double* %152, i64 8
store double 0.000000e+00, double* %161
%162 = getelementptr inbounds double, double* %85, i64 8
store double 0.000000e+00, double* %162
%163 = getelementptr inbounds double, double* %152, i64 9
store double 0.000000e+00, double* %163
%164 = getelementptr inbounds double, double* %85, i64 9
store double 0.000000e+00, double* %164
%165 = getelementptr inbounds double, double* %152, i64 10
store double 0.000000e+00, double* %165
%166 = getelementptr inbounds double, double* %85, i64 10
store double 0.000000e+00, double* %166
%167 = getelementptr inbounds double*, double** %81, i64 5
%168 = load double*, double** %167
%169 = getelementptr inbounds double, double* %168, i64 5
store double 0.000000e+00, double* %169
%170 = getelementptr inbounds double, double* %86, i64 5
store double 0.000000e+00, double* %170
%171 = getelementptr inbounds double, double* %168, i64 6
store double 0.000000e+00, double* %171
%172 = getelementptr inbounds double, double* %86, i64 6
store double 0.000000e+00, double* %172
%173 = getelementptr inbounds double, double* %168, i64 7
store double 0.000000e+00, double* %173
%174 = getelementptr inbounds double, double* %86, i64 7
store double 0.000000e+00, double* %174
%175 = getelementptr inbounds double, double* %168, i64 8
store double 0.000000e+00, double* %175
%176 = getelementptr inbounds double, double* %86, i64 8
store double 0.000000e+00, double* %176
%177 = getelementptr inbounds double, double* %168, i64 9
store double 0.000000e+00, double* %177
%178 = getelementptr inbounds double, double* %86, i64 9
store double 0.000000e+00, double* %178
%179 = getelementptr inbounds double, double* %168, i64 10
store double 0.000000e+00, double* %179
%180 = getelementptr inbounds double, double* %86, i64 10
store double 0.000000e+00, double* %180
%181 = getelementptr inbounds double*, double** %81, i64 6
%182 = load double*, double** %181
%183 = getelementptr inbounds double, double* %182, i64 6
store double 0.000000e+00, double* %183
%184 = getelementptr inbounds double, double* %87, i64 6
store double 0.000000e+00, double* %184
%185 = getelementptr inbounds double, double* %182, i64 7
store double 0.000000e+00, double* %185
%186 = getelementptr inbounds double, double* %87, i64 7
store double 0.000000e+00, double* %186
%187 = getelementptr inbounds double, double* %182, i64 8
store double 0.000000e+00, double* %187
%188 = getelementptr inbounds double, double* %87, i64 8
store double 0.000000e+00, double* %188
%189 = getelementptr inbounds double, double* %182, i64 9
store double 0.000000e+00, double* %189
%190 = getelementptr inbounds double, double* %87, i64 9
store double 0.000000e+00, double* %190
%191 = getelementptr inbounds double, double* %182, i64 10
store double 0.000000e+00, double* %191
%192 = getelementptr inbounds double, double* %87, i64 10
store double 0.000000e+00, double* %192
%193 = getelementptr inbounds double*, double** %81, i64 7
%194 = load double*, double** %193
%195 = getelementptr inbounds double, double* %194, i64 7
store double 0.000000e+00, double* %195
%196 = getelementptr inbounds double, double* %88, i64 7
store double 0.000000e+00, double* %196
%197 = getelementptr inbounds double, double* %194, i64 8
store double 0.000000e+00, double* %197
%198 = getelementptr inbounds double, double* %88, i64 8
store double 0.000000e+00, double* %198
%199 = getelementptr inbounds double, double* %194, i64 9
store double 0.000000e+00, double* %199
%200 = getelementptr inbounds double, double* %88, i64 9
store double 0.000000e+00, double* %200
%201 = getelementptr inbounds double, double* %194, i64 10
store double 0.000000e+00, double* %201
%202 = getelementptr inbounds double, double* %88, i64 10
store double 0.000000e+00, double* %202
%203 = getelementptr inbounds double*, double** %81, i64 8
%204 = load double*, double** %203
%205 = getelementptr inbounds double, double* %204, i64 8
store double 0.000000e+00, double* %205
%206 = getelementptr inbounds double, double* %89, i64 8
store double 0.000000e+00, double* %206
%207 = getelementptr inbounds double, double* %204, i64 9
store double 0.000000e+00, double* %207
%208 = getelementptr inbounds double, double* %89, i64 9
store double 0.000000e+00, double* %208
%209 = getelementptr inbounds double, double* %204, i64 10
store double 0.000000e+00, double* %209
%210 = getelementptr inbounds double, double* %89, i64 10
store double 0.000000e+00, double* %210
%211 = getelementptr inbounds double*, double** %81, i64 9
%212 = load double*, double** %211
%213 = getelementptr inbounds double, double* %212, i64 9
store double 0.000000e+00, double* %213
%214 = getelementptr inbounds double, double* %90, i64 9
store double 0.000000e+00, double* %214
%215 = getelementptr inbounds double, double* %212, i64 10
store double 0.000000e+00, double* %215
%216 = getelementptr inbounds double, double* %90, i64 10
store double 0.000000e+00, double* %216
%217 = getelementptr inbounds double*, double** %81, i64 10
%218 = load double*, double** %217
%219 = getelementptr inbounds double, double* %218, i64 10
store double 0.000000e+00, double* %219
%220 = getelementptr inbounds double, double* %91, i64 10
store double 0.000000e+00, double* %220
%221 = getelementptr inbounds double*, double** %81, i64 1
%222 = load double*, double** %221
%223 = getelementptr inbounds double, double* %222, i64 1
%224 = bitcast double* %223 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %224
%225 = getelementptr inbounds double*, double** %81, i64 2
%226 = load double*, double** %225
%227 = getelementptr inbounds double, double* %226, i64 1
%228 = bitcast double* %227 to <2 x double>*
store <2 x double> <double 1.000000e+00, double -1.000000e+00>, <2 x double>* %228
%229 = getelementptr inbounds double, double* %226, i64 3
store double 5.000000e-01, double* %229
%230 = getelementptr inbounds double*, double** %81, i64 3
%231 = load double*, double** %230
%232 = getelementptr inbounds double, double* %231, i64 2
%233 = bitcast double* %232 to <2 x double>*
store <2 x double> <double 5.000000e-01, double -5.000000e-01>, <2 x double>* %233
%234 = getelementptr inbounds double, double* %82, i64 1
%235 = bitcast double* %234 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e-01>, <2 x double>* %235
%236 = getelementptr inbounds double, double* %83, i64 1
%237 = bitcast double* %236 to <2 x double>*
store <2 x double> <double 1.000000e-01, double 1.000000e+00>, <2 x double>* %237
%238 = getelementptr inbounds double, double* %83, i64 3
store double 2.000000e-01, double* %238
%239 = getelementptr inbounds double, double* %84, i64 2
%240 = bitcast double* %239 to <2 x double>*
store <2 x double> <double 2.000000e-01, double 1.000000e+00>, <2 x double>* %240
%241 = tail call i32 (i32, double**, double**, ...) bitcast (i32 (...)* @find_Emin to i32 (i32, double**, double**, ...)*)(i32 3, double** %81, double** %42)
%242 = sitofp i32 %241 to double
%243 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), double %242)
tail call void @exit(i32 0)
unreachable
}