#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 /*<<< orphan*/ read_ana_window(double *);
void window_subband12(short **buffer, int ch) {
  static double x[2][864];
  double *xk;
  double t[12];
  double y[12][64];
  int i, j, k, m;
  static double c[512];
  static int init = 0;
  double c0;
  if (!init) {
    read_ana_window(c);
    printf("done init\n");
    init++;
  }
  xk = x[ch];
  for (i = 863; i >= 384; i--)
    xk[i] = xk[i - 384];
  for (i = 383; i >= 0; i--)
    xk[i] = (double)*(*buffer)++ / 32768;
  for (j = 0; j < 64; j++) {
    for (k = 0; k < 12; k++)
      t[k] = 0;
    for (i = 0; i < 8; i++) {
      m = i * 64 + j;
      c0 = c[m];
      t[0] += c0 * xk[m + 352];
      t[1] += c0 * xk[m + 320];
      t[2] += c0 * xk[m + 288];
      t[3] += c0 * xk[m + 256];
      t[4] += c0 * xk[m + 224];
      t[5] += c0 * xk[m + 192];
      t[6] += c0 * xk[m + 160];
      t[7] += c0 * xk[m + 128];
      t[8] += c0 * xk[m + 96];
      t[9] += c0 * xk[m + 64];
      t[10] += c0 * xk[m + 32];
      t[11] += c0 * xk[m];
    }
    for (i = 0; i < 12; i++) {
      y[i][j] = t[i];
    }
  }
}


x86 assembly (clang, -O0):
<window_subband12>:
push   %rbp
mov    %rsp,%rbp
sub    $0x18a0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,0x7507(%rip)
jne    1166 <window_subband12+0x46>
lea    0x64fa(%rip),%rdi
call   1040 <read_ana_window@plt>
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
mov    0x74e3(%rip),%eax
add    $0x1,%eax
mov    %eax,0x74da(%rip)
movslq -0xc(%rbp),%rcx
lea    0x2ecf(%rip),%rax
imul   $0x1b00,%rcx,%rcx
add    %rcx,%rax
mov    %rax,-0x18(%rbp)
movl   $0x35f,-0x1884(%rbp)
cmpl   $0x180,-0x1884(%rbp)
jl     11d5 <window_subband12+0xb5>
mov    -0x18(%rbp),%rax
mov    -0x1884(%rbp),%ecx
sub    $0x180,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x1884(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1884(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1884(%rbp)
jmp    1189 <window_subband12+0x69>
movl   $0x17f,-0x1884(%rbp)
cmpl   $0x0,-0x1884(%rbp)
jl     1234 <window_subband12+0x114>
mov    -0x8(%rbp),%rcx
mov    (%rcx),%rax
mov    %rax,%rdx
add    $0x2,%rdx
mov    %rdx,(%rcx)
movswl (%rax),%eax
cvtsi2sd %eax,%xmm0
movsd  0xdf4(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x1884(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1884(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1884(%rbp)
jmp    11df <window_subband12+0xbf>
movl   $0x0,-0x1888(%rbp)
cmpl   $0x40,-0x1888(%rbp)
jge    159a <window_subband12+0x47a>
movl   $0x0,-0x188c(%rbp)
cmpl   $0xc,-0x188c(%rbp)
jge    1286 <window_subband12+0x166>
movslq -0x188c(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x80(%rbp,%rax,8)
mov    -0x188c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x188c(%rbp)
jmp    1255 <window_subband12+0x135>
movl   $0x0,-0x1884(%rbp)
cmpl   $0x8,-0x1884(%rbp)
jge    1528 <window_subband12+0x408>
mov    -0x1884(%rbp),%eax
shl    $0x6,%eax
add    -0x1888(%rbp),%eax
mov    %eax,-0x1890(%rbp)
movslq -0x1890(%rbp),%rcx
lea    0x6380(%rip),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x1898(%rbp)
ff
movsd  -0x1898(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
mov    -0x1890(%rbp),%ecx
add    $0x160,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x80(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x1898(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
mov    -0x1890(%rbp),%ecx
add    $0x140,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x78(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x1898(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
mov    -0x1890(%rbp),%ecx
add    $0x120,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x1898(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
mov    -0x1890(%rbp),%ecx
add    $0x100,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x1898(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
mov    -0x1890(%rbp),%ecx
add    $0xe0,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x1898(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
mov    -0x1890(%rbp),%ecx
add    $0xc0,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x1898(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x1890(%rbp),%ecx
add    $0xa0,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x1898(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
mov    -0x1890(%rbp),%ecx
add    $0x80,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x1898(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
mov    -0x1890(%rbp),%ecx
add    $0x60,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x1898(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
mov    -0x1890(%rbp),%ecx
add    $0x40,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x1898(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
mov    -0x1890(%rbp),%ecx
add    $0x20,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x30(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x1898(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
movslq -0x1890(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x28(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x1884(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1884(%rbp)
jmp    1290 <window_subband12+0x170>
movl   $0x0,-0x1884(%rbp)
cmpl   $0xc,-0x1884(%rbp)
jge    1581 <window_subband12+0x461>
movslq -0x1884(%rbp),%rax
movsd  -0x80(%rbp,%rax,8),%xmm0
movslq -0x1884(%rbp),%rcx
lea    -0x1880(%rbp),%rax
shl    $0x9,%rcx
add    %rcx,%rax
movslq -0x1888(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1884(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1884(%rbp)
jmp    1532 <window_subband12+0x412>
jmp    1586 <window_subband12+0x466>
mov    -0x1888(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1888(%rbp)
jmp    123e <window_subband12+0x11e>
add    $0x18a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<window_subband12>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
cmpl   $0x0,0x7511(%rip)
jne    1150 <window_subband12+0x30>
lea    0x6508(%rip),%rdi
call   1040 <read_ana_window@plt>
lea    0xecc(%rip),%rdi
call   1030 <puts@plt>
addl   $0x1,0x74f0(%rip)
movslq %ebp,%rax
imul   $0x1b00,%rax,%rcx
lea    0x2edf(%rip),%rax
add    %rcx,%rax
mov    $0x1d8,%ecx
nopl   0x0(%rax)
movaps (%rax,%rcx,8),%xmm0
movapd 0x10(%rax,%rcx,8),%xmm1
movapd 0x20(%rax,%rcx,8),%xmm2
movaps 0x30(%rax,%rcx,8),%xmm3
movaps %xmm3,0xc30(%rax,%rcx,8)
movapd %xmm2,0xc20(%rax,%rcx,8)
movapd %xmm1,0xc10(%rax,%rcx,8)
movaps %xmm0,0xc00(%rax,%rcx,8)
add    $0xfffffffffffffff8,%rcx
cmp    $0xfffffffffffffff8,%rcx
jne    1170 <window_subband12+0x50>
mov    (%rbx),%rcx
lea    0xc(%rcx),%rdx
mov    $0x180,%esi
movapd 0xe3b(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nop
movd   -0xc(%rdx),%xmm1
movd   -0x8(%rdx),%xmm2
pshuflw $0x60,%xmm1,%xmm1
psrad  $0x10,%xmm1
cvtdq2pd %xmm1,%xmm1
pshuflw $0x60,%xmm2,%xmm2
psrad  $0x10,%xmm2
cvtdq2pd %xmm2,%xmm2
mulpd  %xmm0,%xmm1
mulpd  %xmm0,%xmm2
shufpd $0x1,%xmm1,%xmm1
movapd %xmm1,-0x10(%rax,%rsi,8)
shufpd $0x1,%xmm2,%xmm2
movapd %xmm2,-0x20(%rax,%rsi,8)
movd   -0x4(%rdx),%xmm1
movd   (%rdx),%xmm2
pshuflw $0x60,%xmm1,%xmm1
psrad  $0x10,%xmm1
cvtdq2pd %xmm1,%xmm1
pshuflw $0x60,%xmm2,%xmm2
psrad  $0x10,%xmm2
cvtdq2pd %xmm2,%xmm2
mulpd  %xmm0,%xmm1
mulpd  %xmm0,%xmm2
shufpd $0x1,%xmm1,%xmm1
movapd %xmm1,-0x30(%rax,%rsi,8)
shufpd $0x1,%xmm2,%xmm2
movapd %xmm2,-0x40(%rax,%rsi,8)
add    $0x10,%rdx
add    $0xfffffffffffffff8,%rsi
jne    11d0 <window_subband12+0xb0>
add    $0x300,%rcx
mov    %rcx,(%rbx)
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@window_subband12.x = internal global [2 x [864 x double]] zeroinitializer
@window_subband12.c = internal global [512 x double] zeroinitializer
@window_subband12.init = internal global i32 0
@.str = [11 x i8] c"done init\0A\00"
define void @window_subband12(i16** %0, i32 %1) {
%3 = alloca i16**
%4 = alloca i32
%5 = alloca double*
%6 = alloca [12 x double]
%7 = alloca [12 x [64 x double]]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca double
store i16** %0, i16*** %3
store i32 %1, i32* %4
%13 = load i32, i32* @window_subband12.init
%14 = icmp ne i32 %13, 0
br i1 %14, label %20, label %15
15: ; preds = %2
%16 = call i32 @read_ana_window(double* getelementptr inbounds ([512 x double], [512 x double]* @window_subband12.c, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%18 = load i32, i32* @window_subband12.init
%19 = add nsw i32 %18, 1
store i32 %19, i32* @window_subband12.init
br label %20
20: ; preds = %15, %2
%21 = load i32, i32* %4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [2 x [864 x double]], [2 x [864 x double]]* @window_subband12.x, i64 0, i64 %22
%24 = getelementptr inbounds [864 x double], [864 x double]* %23, i64 0, i64 0
store double* %24, double** %5
store i32 863, i32* %8
br label %25
25: ; preds = %39, %20
%26 = load i32, i32* %8
%27 = icmp sge i32 %26, 384
br i1 %27, label %28, label %42
28: ; preds = %25
%29 = load double*, double** %5
%30 = load i32, i32* %8
%31 = sub nsw i32 %30, 384
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds double, double* %29, i64 %32
%34 = load double, double* %33
%35 = load double*, double** %5
%36 = load i32, i32* %8
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds double, double* %35, i64 %37
store double %34, double* %38
br label %39
39: ; preds = %28
%40 = load i32, i32* %8
%41 = add nsw i32 %40, -1
store i32 %41, i32* %8
br label %25
42: ; preds = %25
store i32 383, i32* %8
br label %43
43: ; preds = %57, %42
%44 = load i32, i32* %8
%45 = icmp sge i32 %44, 0
br i1 %45, label %46, label %60
46: ; preds = %43
%47 = load i16**, i16*** %3
%48 = load i16*, i16** %47
%49 = getelementptr inbounds i16, i16* %48, i32 1
store i16* %49, i16** %47
%50 = load i16, i16* %48
%51 = sitofp i16 %50 to double
%52 = fdiv double %51, 3.276800e+04
%53 = load double*, double** %5
%54 = load i32, i32* %8
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, double* %53, i64 %55
store double %52, double* %56
br label %57
57: ; preds = %46
%58 = load i32, i32* %8
%59 = add nsw i32 %58, -1
store i32 %59, i32* %8
br label %43
60: ; preds = %43
store i32 0, i32* %9
br label %61
61: ; preds = %229, %60
%62 = load i32, i32* %9
%63 = icmp slt i32 %62, 64
br i1 %63, label %64, label %232
64: ; preds = %61
store i32 0, i32* %10
br label %65
65: ; preds = %72, %64
%66 = load i32, i32* %10
%67 = icmp slt i32 %66, 12
br i1 %67, label %68, label %75
68: ; preds = %65
%69 = load i32, i32* %10
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [12 x double], [12 x double]* %6, i64 0, i64 %70
store double 0.000000e+00, double* %71
br label %72
72: ; preds = %68
%73 = load i32, i32* %10
%74 = add nsw i32 %73, 1
store i32 %74, i32* %10
br label %65
75: ; preds = %65
store i32 0, i32* %8
br label %76
76: ; preds = %207, %75
%77 = load i32, i32* %8
%78 = icmp slt i32 %77, 8
br i1 %78, label %79, label %210
79: ; preds = %76
%80 = load i32, i32* %8
%81 = mul nsw i32 %80, 64
%82 = load i32, i32* %9
%83 = add nsw i32 %81, %82
store i32 %83, i32* %11
%84 = load i32, i32* %11
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [512 x double], [512 x double]* @window_subband12.c, i64 0, i64 %85
%87 = load double, double* %86
store double %87, double* %12
%88 = load double, double* %12
%89 = load double*, double** %5
%90 = load i32, i32* %11
%91 = add nsw i32 %90, 352
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds double, double* %89, i64 %92
%94 = load double, double* %93
%95 = getelementptr inbounds [12 x double], [12 x double]* %6, i64 0, i64 0
%96 = load double, double* %95
%97 = call double @llvm.fmuladd.f64(double %88, double %94, double %96)
store double %97, double* %95
%98 = load double, double* %12
%99 = load double*, double** %5
%100 = load i32, i32* %11
%101 = add nsw i32 %100, 320
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds double, double* %99, i64 %102
%104 = load double, double* %103
%105 = getelementptr inbounds [12 x double], [12 x double]* %6, i64 0, i64 1
%106 = load double, double* %105
%107 = call double @llvm.fmuladd.f64(double %98, double %104, double %106)
store double %107, double* %105
%108 = load double, double* %12
%109 = load double*, double** %5
%110 = load i32, i32* %11
%111 = add nsw i32 %110, 288
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds double, double* %109, i64 %112
%114 = load double, double* %113
%115 = getelementptr inbounds [12 x double], [12 x double]* %6, i64 0, i64 2
%116 = load double, double* %115
%117 = call double @llvm.fmuladd.f64(double %108, double %114, double %116)
store double %117, double* %115
%118 = load double, double* %12
%119 = load double*, double** %5
%120 = load i32, i32* %11
%121 = add nsw i32 %120, 256
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds double, double* %119, i64 %122
%124 = load double, double* %123
%125 = getelementptr inbounds [12 x double], [12 x double]* %6, i64 0, i64 3
%126 = load double, double* %125
%127 = call double @llvm.fmuladd.f64(double %118, double %124, double %126)
store double %127, double* %125
%128 = load double, double* %12
%129 = load double*, double** %5
%130 = load i32, i32* %11
%131 = add nsw i32 %130, 224
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds double, double* %129, i64 %132
%134 = load double, double* %133
%135 = getelementptr inbounds [12 x double], [12 x double]* %6, i64 0, i64 4
%136 = load double, double* %135
%137 = call double @llvm.fmuladd.f64(double %128, double %134, double %136)
store double %137, double* %135
%138 = load double, double* %12
%139 = load double*, double** %5
%140 = load i32, i32* %11
%141 = add nsw i32 %140, 192
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds double, double* %139, i64 %142
%144 = load double, double* %143
%145 = getelementptr inbounds [12 x double], [12 x double]* %6, i64 0, i64 5
%146 = load double, double* %145
%147 = call double @llvm.fmuladd.f64(double %138, double %144, double %146)
store double %147, double* %145
%148 = load double, double* %12
%149 = load double*, double** %5
%150 = load i32, i32* %11
%151 = add nsw i32 %150, 160
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds double, double* %149, i64 %152
%154 = load double, double* %153
%155 = getelementptr inbounds [12 x double], [12 x double]* %6, i64 0, i64 6
%156 = load double, double* %155
%157 = call double @llvm.fmuladd.f64(double %148, double %154, double %156)
store double %157, double* %155
%158 = load double, double* %12
%159 = load double*, double** %5
%160 = load i32, i32* %11
%161 = add nsw i32 %160, 128
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds double, double* %159, i64 %162
%164 = load double, double* %163
%165 = getelementptr inbounds [12 x double], [12 x double]* %6, i64 0, i64 7
%166 = load double, double* %165
%167 = call double @llvm.fmuladd.f64(double %158, double %164, double %166)
store double %167, double* %165
%168 = load double, double* %12
%169 = load double*, double** %5
%170 = load i32, i32* %11
%171 = add nsw i32 %170, 96
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds double, double* %169, i64 %172
%174 = load double, double* %173
%175 = getelementptr inbounds [12 x double], [12 x double]* %6, i64 0, i64 8
%176 = load double, double* %175
%177 = call double @llvm.fmuladd.f64(double %168, double %174, double %176)
store double %177, double* %175
%178 = load double, double* %12
%179 = load double*, double** %5
%180 = load i32, i32* %11
%181 = add nsw i32 %180, 64
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds double, double* %179, i64 %182
%184 = load double, double* %183
%185 = getelementptr inbounds [12 x double], [12 x double]* %6, i64 0, i64 9
%186 = load double, double* %185
%187 = call double @llvm.fmuladd.f64(double %178, double %184, double %186)
store double %187, double* %185
%188 = load double, double* %12
%189 = load double*, double** %5
%190 = load i32, i32* %11
%191 = add nsw i32 %190, 32
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds double, double* %189, i64 %192
%194 = load double, double* %193
%195 = getelementptr inbounds [12 x double], [12 x double]* %6, i64 0, i64 10
%196 = load double, double* %195
%197 = call double @llvm.fmuladd.f64(double %188, double %194, double %196)
store double %197, double* %195
%198 = load double, double* %12
%199 = load double*, double** %5
%200 = load i32, i32* %11
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds double, double* %199, i64 %201
%203 = load double, double* %202
%204 = getelementptr inbounds [12 x double], [12 x double]* %6, i64 0, i64 11
%205 = load double, double* %204
%206 = call double @llvm.fmuladd.f64(double %198, double %203, double %205)
store double %206, double* %204
br label %207
207: ; preds = %79
%208 = load i32, i32* %8
%209 = add nsw i32 %208, 1
store i32 %209, i32* %8
br label %76
210: ; preds = %76
store i32 0, i32* %8
br label %211
211: ; preds = %225, %210
%212 = load i32, i32* %8
%213 = icmp slt i32 %212, 12
br i1 %213, label %214, label %228
214: ; preds = %211
%215 = load i32, i32* %8
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds [12 x double], [12 x double]* %6, i64 0, i64 %216
%218 = load double, double* %217
%219 = load i32, i32* %8
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds [12 x [64 x double]], [12 x [64 x double]]* %7, i64 0, i64 %220
%222 = load i32, i32* %9
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds [64 x double], [64 x double]* %221, i64 0, i64 %223
store double %218, double* %224
br label %225
225: ; preds = %214
%226 = load i32, i32* %8
%227 = add nsw i32 %226, 1
store i32 %227, i32* %8
br label %211
228: ; preds = %211
br label %229
229: ; preds = %228
%230 = load i32, i32* %9
%231 = add nsw i32 %230, 1
store i32 %231, i32* %9
br label %61
232: ; preds = %61
ret void
}

LLVM IR (-O2):
@window_subband12.x = internal unnamed_addr global [2 x [864 x double]] zeroinitializer
@window_subband12.c = internal global [512 x double] zeroinitializer
@window_subband12.init = internal unnamed_addr global i32 0
@str = [10 x i8] c"done init\00"
define void @window_subband12(i16** nocapture %0, i32 %1) {
%3 = load i32, i32* @window_subband12.init
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %10
5: ; preds = %2
%6 = tail call i32 @read_ana_window(double* getelementptr inbounds ([512 x double], [512 x double]* @window_subband12.c, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
%8 = load i32, i32* @window_subband12.init
%9 = add nsw i32 %8, 1
store i32 %9, i32* @window_subband12.init
br label %10
10: ; preds = %5, %2
%11 = sext i32 %1 to i64
br label %12
12: ; preds = %12, %10
%13 = phi i64 [ 0, %10 ], [ %42, %12 ]
%14 = sub nuw nsw i64 863, %13
%15 = sub nuw nsw i64 479, %13
%16 = getelementptr inbounds [2 x [864 x double]], [2 x [864 x double]]* @window_subband12.x, i64 0, i64 %11, i64 %15
%17 = getelementptr inbounds double, double* %16, i64 -1
%18 = bitcast double* %17 to <2 x double>*
%19 = load <2 x double>, <2 x double>* %18
%20 = getelementptr inbounds double, double* %16, i64 -3
%21 = bitcast double* %20 to <2 x double>*
%22 = load <2 x double>, <2 x double>* %21
%23 = getelementptr inbounds [2 x [864 x double]], [2 x [864 x double]]* @window_subband12.x, i64 0, i64 %11, i64 %14
%24 = getelementptr inbounds double, double* %23, i64 -1
%25 = bitcast double* %24 to <2 x double>*
store <2 x double> %19, <2 x double>* %25
%26 = getelementptr inbounds double, double* %23, i64 -3
%27 = bitcast double* %26 to <2 x double>*
store <2 x double> %22, <2 x double>* %27
%28 = sub nsw i64 859, %13
%29 = sub nsw i64 475, %13
%30 = getelementptr inbounds [2 x [864 x double]], [2 x [864 x double]]* @window_subband12.x, i64 0, i64 %11, i64 %29
%31 = getelementptr inbounds double, double* %30, i64 -1
%32 = bitcast double* %31 to <2 x double>*
%33 = load <2 x double>, <2 x double>* %32
%34 = getelementptr inbounds double, double* %30, i64 -3
%35 = bitcast double* %34 to <2 x double>*
%36 = load <2 x double>, <2 x double>* %35
%37 = getelementptr inbounds [2 x [864 x double]], [2 x [864 x double]]* @window_subband12.x, i64 0, i64 %11, i64 %28
%38 = getelementptr inbounds double, double* %37, i64 -1
%39 = bitcast double* %38 to <2 x double>*
store <2 x double> %33, <2 x double>* %39
%40 = getelementptr inbounds double, double* %37, i64 -3
%41 = bitcast double* %40 to <2 x double>*
store <2 x double> %36, <2 x double>* %41
%42 = add nuw nsw i64 %13, 8
%43 = icmp eq i64 %42, 480
br i1 %43, label %44, label %12
44: ; preds = %12
%45 = load i16*, i16** %0
br label %46
46: ; preds = %46, %44
%47 = phi i64 [ 0, %44 ], [ %85, %46 ]
%48 = sub nuw nsw i64 383, %47
%49 = getelementptr i16, i16* %45, i64 %47
%50 = bitcast i16* %49 to <2 x i16>*
%51 = load <2 x i16>, <2 x i16>* %50
%52 = getelementptr i16, i16* %49, i64 2
%53 = bitcast i16* %52 to <2 x i16>*
%54 = load <2 x i16>, <2 x i16>* %53
%55 = sitofp <2 x i16> %51 to <2 x double>
%56 = sitofp <2 x i16> %54 to <2 x double>
%57 = fmul <2 x double> %55, <double 0x3F00000000000000, double 0x3F00000000000000>
%58 = fmul <2 x double> %56, <double 0x3F00000000000000, double 0x3F00000000000000>
%59 = getelementptr inbounds [2 x [864 x double]], [2 x [864 x double]]* @window_subband12.x, i64 0, i64 %11, i64 %48
%60 = shufflevector <2 x double> %57, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%61 = getelementptr inbounds double, double* %59, i64 -1
%62 = bitcast double* %61 to <2 x double>*
store <2 x double> %60, <2 x double>* %62
%63 = shufflevector <2 x double> %58, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%64 = getelementptr inbounds double, double* %59, i64 -3
%65 = bitcast double* %64 to <2 x double>*
store <2 x double> %63, <2 x double>* %65
%66 = or i64 %47, 4
%67 = sub nsw i64 379, %47
%68 = getelementptr i16, i16* %45, i64 %66
%69 = bitcast i16* %68 to <2 x i16>*
%70 = load <2 x i16>, <2 x i16>* %69
%71 = getelementptr i16, i16* %68, i64 2
%72 = bitcast i16* %71 to <2 x i16>*
%73 = load <2 x i16>, <2 x i16>* %72
%74 = sitofp <2 x i16> %70 to <2 x double>
%75 = sitofp <2 x i16> %73 to <2 x double>
%76 = fmul <2 x double> %74, <double 0x3F00000000000000, double 0x3F00000000000000>
%77 = fmul <2 x double> %75, <double 0x3F00000000000000, double 0x3F00000000000000>
%78 = getelementptr inbounds [2 x [864 x double]], [2 x [864 x double]]* @window_subband12.x, i64 0, i64 %11, i64 %67
%79 = shufflevector <2 x double> %76, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%80 = getelementptr inbounds double, double* %78, i64 -1
%81 = bitcast double* %80 to <2 x double>*
store <2 x double> %79, <2 x double>* %81
%82 = shufflevector <2 x double> %77, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%83 = getelementptr inbounds double, double* %78, i64 -3
%84 = bitcast double* %83 to <2 x double>*
store <2 x double> %82, <2 x double>* %84
%85 = add nuw nsw i64 %47, 8
%86 = icmp eq i64 %85, 384
br i1 %86, label %87, label %46
87: ; preds = %46
%88 = getelementptr i16, i16* %45, i64 384
store i16* %88, i16** %0
ret void
}