#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 */
double cos(double);
double sin(double);
void gen_signal_double(double *data, double scale, int channels, int datalen) {
  int k, ramplen;
  double amp = 0.0;
  ramplen = 1000;
  if (channels == 1) {
    for (k = 0; k < datalen; k++) {
      if (k <= ramplen)
        amp = scale * k / ((double)ramplen);
      else if (k > datalen - ramplen)
        amp = scale * (datalen - k) / ((double)ramplen);
      data[k] = amp * (0.4 * sin(33.3 * 2.0 * 3.14159265358979323846264338 *
                                 ((double)(k + 1)) / ((double)11025)) +
                       0.3 * cos(201.1 * 2.0 * 3.14159265358979323846264338 *
                                 ((double)(k + 1)) / ((double)11025)));
    };
  } else {
    for (k = 0; k < datalen; k++) {
      if (k <= ramplen)
        amp = scale * k / ((double)ramplen);
      else if (k > datalen - ramplen)
        amp = scale * (datalen - k) / ((double)ramplen);
      data[2 * k] =
          amp * (0.4 * sin(33.3 * 2.0 * 3.14159265358979323846264338 *
                           ((double)(k + 1)) / ((double)11025)) +
                 0.3 * cos(201.1 * 2.0 * 3.14159265358979323846264338 *
                           ((double)(k + 1)) / ((double)11025)));
      data[2 * k + 1] =
          amp * (0.4 * sin(55.5 * 2.0 * 3.14159265358979323846264338 *
                           ((double)(k + 1)) / ((double)11025)) +
                 0.3 * cos(201.1 * 2.0 * 3.14159265358979323846264338 *
                           ((double)(k + 1)) / ((double)11025)));
    };
  };
  return;
}


x86 assembly (clang, -O0):
<gen_signal_double>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
movl   $0x3e8,-0x20(%rbp)
cmpl   $0x1,-0x14(%rbp)
jne    1271 <gen_signal_double+0x151>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    126c <gen_signal_double+0x14c>
mov    -0x1c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jg     1190 <gen_signal_double+0x70>
movsd  -0x10(%rbp),%xmm0
cvtsi2sdl -0x1c(%rbp),%xmm1
mulsd  %xmm1,%xmm0
cvtsi2sdl -0x20(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    11c7 <gen_signal_double+0xa7>
mov    -0x1c(%rbp),%eax
mov    -0x18(%rbp),%ecx
sub    -0x20(%rbp),%ecx
cmp    %ecx,%eax
jle    11c2 <gen_signal_double+0xa2>
movsd  -0x10(%rbp),%xmm0
mov    -0x18(%rbp),%eax
sub    -0x1c(%rbp),%eax
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
cvtsi2sdl -0x20(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    11c7 <gen_signal_double+0xa7>
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm1
movsd  0xe45(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xe21(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x38(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm1
movsd  0xe09(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xdf5(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1040 <cos@plt>
movsd  -0x38(%rbp),%xmm1
movaps %xmm0,%xmm3
movsd  -0x30(%rbp),%xmm0
movsd  0xdcf(%rip),%xmm2
mulsd  %xmm3,%xmm2
movsd  0xdbb(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1157 <gen_signal_double+0x37>
jmp    1436 <gen_signal_double+0x316>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1431 <gen_signal_double+0x311>
mov    -0x1c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jg     12b1 <gen_signal_double+0x191>
movsd  -0x10(%rbp),%xmm0
cvtsi2sdl -0x1c(%rbp),%xmm1
mulsd  %xmm1,%xmm0
cvtsi2sdl -0x20(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    12e8 <gen_signal_double+0x1c8>
mov    -0x1c(%rbp),%eax
mov    -0x18(%rbp),%ecx
sub    -0x20(%rbp),%ecx
cmp    %ecx,%eax
jle    12e3 <gen_signal_double+0x1c3>
movsd  -0x10(%rbp),%xmm0
mov    -0x18(%rbp),%eax
sub    -0x1c(%rbp),%eax
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
cvtsi2sdl -0x20(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    12e8 <gen_signal_double+0x1c8>
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm1
movsd  0xd24(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xd00(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x58(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm1
movsd  0xce8(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xcd4(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1040 <cos@plt>
movsd  -0x58(%rbp),%xmm1
movaps %xmm0,%xmm3
movsd  -0x50(%rbp),%xmm0
movsd  0xcae(%rip),%xmm2
mulsd  %xmm3,%xmm2
movsd  0xc9a(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm1
movsd  0xc80(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xc64(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x48(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm1
movsd  0xc4c(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xc38(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1040 <cos@plt>
movsd  -0x48(%rbp),%xmm1
movaps %xmm0,%xmm3
movsd  -0x40(%rbp),%xmm0
movsd  0xc12(%rip),%xmm2
mulsd  %xmm3,%xmm2
movsd  0xbfe(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1278 <gen_signal_double+0x158>
jmp    1436 <gen_signal_double+0x316>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gen_signal_double>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x30,%rsp
movsd  %xmm0,0x10(%rsp)
mov    %rdi,%r15
cmp    $0x1,%esi
jne    1221 <gen_signal_double+0x101>
test   %edx,%edx
jle    136c <gen_signal_double+0x24c>
lea    -0x3e8(%rdx),%eax
movslq %eax,%r14
mov    %edx,%r12d
xorpd  %xmm0,%xmm0
xor    %ebx,%ebx
jmp    11fe <gen_signal_double+0xde>
xchg   %ax,%ax
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
mulsd  0x10(%rsp),%xmm0
divsd  0xe8b(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
lea    0x1(%rbx),%r13
xorps  %xmm0,%xmm0
cvtsi2sd %r13d,%xmm0
movsd  %xmm0,0x20(%rsp)
mulsd  0xe73(%rip),%xmm0
movsd  0xe73(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <sin@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x20(%rsp),%xmm0
mulsd  0xe5e(%rip),%xmm0
divsd  0xe4e(%rip),%xmm0
call   1040 <cos@plt>
mulsd  0xe51(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  0xe4b(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x18(%rsp),%xmm0
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%r15,%rbx,8)
mov    %r13,%rbx
add    $0xffffffffffffffff,%r12
je     136c <gen_signal_double+0x24c>
cmp    $0x3e8,%rbx
jbe    1160 <gen_signal_double+0x40>
cmp    %r14,%rbx
jle    1175 <gen_signal_double+0x55>
xorps  %xmm0,%xmm0
cvtsi2sd %r12d,%xmm0
jmp    1167 <gen_signal_double+0x47>
test   %edx,%edx
jle    136c <gen_signal_double+0x24c>
lea    -0x3e8(%rdx),%eax
movslq %eax,%r14
mov    %edx,%r12d
add    $0x8,%r15
xorpd  %xmm0,%xmm0
xor    %ebx,%ebx
jmp    1349 <gen_signal_double+0x229>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
mulsd  0x10(%rsp),%xmm0
divsd  0xd9b(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
add    $0x1,%rbx
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
movsd  %xmm0,0x8(%rsp)
mulsd  0xd84(%rip),%xmm0
movsd  0xd84(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <sin@plt>
movsd  %xmm0,0x28(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  0xd6f(%rip),%xmm0
divsd  0xd5f(%rip),%xmm0
movsd  %xmm0,0x20(%rsp)
call   1040 <cos@plt>
movsd  0xd5c(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd58(%rip),%xmm1
movsd  0x28(%rsp),%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
mulsd  0x18(%rsp),%xmm2
movsd  %xmm2,-0x8(%r15)
movsd  0x8(%rsp),%xmm0
mulsd  0xd38(%rip),%xmm0
divsd  0xd10(%rip),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x20(%rsp),%xmm0
call   1040 <cos@plt>
mulsd  0xd02(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  0xcfc(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x18(%rsp),%xmm0
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%r15)
add    $0x10,%r15
add    $0xffffffffffffffff,%r12
je     136c <gen_signal_double+0x24c>
cmp    $0x3e8,%rbx
jbe    1250 <gen_signal_double+0x130>
cmp    %r14,%rbx
jle    1265 <gen_signal_double+0x145>
xorps  %xmm0,%xmm0
cvtsi2sd %r12d,%xmm0
jmp    1257 <gen_signal_double+0x137>
add    $0x30,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @gen_signal_double(double* %0, double %1, i32 %2, i32 %3) {
%5 = alloca double*
%6 = alloca double
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca double
store double* %0, double** %5
store double %1, double* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
store double 0.000000e+00, double* %11
store i32 1000, i32* %10
%12 = load i32, i32* %7
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %73
14: ; preds = %4
store i32 0, i32* %9
br label %15
15: ; preds = %69, %14
%16 = load i32, i32* %9
%17 = load i32, i32* %8
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %72
19: ; preds = %15
%20 = load i32, i32* %9
%21 = load i32, i32* %10
%22 = icmp sle i32 %20, %21
br i1 %22, label %23, label %31
23: ; preds = %19
%24 = load double, double* %6
%25 = load i32, i32* %9
%26 = sitofp i32 %25 to double
%27 = fmul double %24, %26
%28 = load i32, i32* %10
%29 = sitofp i32 %28 to double
%30 = fdiv double %27, %29
store double %30, double* %11
br label %48
31: ; preds = %19
%32 = load i32, i32* %9
%33 = load i32, i32* %8
%34 = load i32, i32* %10
%35 = sub nsw i32 %33, %34
%36 = icmp sgt i32 %32, %35
br i1 %36, label %37, label %47
37: ; preds = %31
%38 = load double, double* %6
%39 = load i32, i32* %8
%40 = load i32, i32* %9
%41 = sub nsw i32 %39, %40
%42 = sitofp i32 %41 to double
%43 = fmul double %38, %42
%44 = load i32, i32* %10
%45 = sitofp i32 %44 to double
%46 = fdiv double %43, %45
store double %46, double* %11
br label %47
47: ; preds = %37, %31
br label %48
48: ; preds = %47, %23
%49 = load double, double* %11
%50 = load i32, i32* %9
%51 = add nsw i32 %50, 1
%52 = sitofp i32 %51 to double
%53 = fmul double 0x406A275CBD4A2553, %52
%54 = fdiv double %53, 1.102500e+04
%55 = call double @sin(double %54)
%56 = load i32, i32* %9
%57 = add nsw i32 %56, 1
%58 = sitofp i32 %57 to double
%59 = fmul double 0x4093BE31BB185B06, %58
%60 = fdiv double %59, 1.102500e+04
%61 = call double @cos(double %60)
%62 = fmul double 3.000000e-01, %61
%63 = call double @llvm.fmuladd.f64(double 4.000000e-01, double %55, double %62)
%64 = fmul double %49, %63
%65 = load double*, double** %5
%66 = load i32, i32* %9
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, double* %65, i64 %67
store double %64, double* %68
br label %69
69: ; preds = %48
%70 = load i32, i32* %9
%71 = add nsw i32 %70, 1
store i32 %71, i32* %9
br label %15
72: ; preds = %15
br label %155
73: ; preds = %4
store i32 0, i32* %9
br label %74
74: ; preds = %151, %73
%75 = load i32, i32* %9
%76 = load i32, i32* %8
%77 = icmp slt i32 %75, %76
br i1 %77, label %78, label %154
78: ; preds = %74
%79 = load i32, i32* %9
%80 = load i32, i32* %10
%81 = icmp sle i32 %79, %80
br i1 %81, label %82, label %90
82: ; preds = %78
%83 = load double, double* %6
%84 = load i32, i32* %9
%85 = sitofp i32 %84 to double
%86 = fmul double %83, %85
%87 = load i32, i32* %10
%88 = sitofp i32 %87 to double
%89 = fdiv double %86, %88
store double %89, double* %11
br label %107
90: ; preds = %78
%91 = load i32, i32* %9
%92 = load i32, i32* %8
%93 = load i32, i32* %10
%94 = sub nsw i32 %92, %93
%95 = icmp sgt i32 %91, %94
br i1 %95, label %96, label %106
96: ; preds = %90
%97 = load double, double* %6
%98 = load i32, i32* %8
%99 = load i32, i32* %9
%100 = sub nsw i32 %98, %99
%101 = sitofp i32 %100 to double
%102 = fmul double %97, %101
%103 = load i32, i32* %10
%104 = sitofp i32 %103 to double
%105 = fdiv double %102, %104
store double %105, double* %11
br label %106
106: ; preds = %96, %90
br label %107
107: ; preds = %106, %82
%108 = load double, double* %11
%109 = load i32, i32* %9
%110 = add nsw i32 %109, 1
%111 = sitofp i32 %110 to double
%112 = fmul double 0x406A275CBD4A2553, %111
%113 = fdiv double %112, 1.102500e+04
%114 = call double @sin(double %113)
%115 = load i32, i32* %9
%116 = add nsw i32 %115, 1
%117 = sitofp i32 %116 to double
%118 = fmul double 0x4093BE31BB185B06, %117
%119 = fdiv double %118, 1.102500e+04
%120 = call double @cos(double %119)
%121 = fmul double 3.000000e-01, %120
%122 = call double @llvm.fmuladd.f64(double 4.000000e-01, double %114, double %121)
%123 = fmul double %108, %122
%124 = load double*, double** %5
%125 = load i32, i32* %9
%126 = mul nsw i32 2, %125
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds double, double* %124, i64 %127
store double %123, double* %128
%129 = load double, double* %11
%130 = load i32, i32* %9
%131 = add nsw i32 %130, 1
%132 = sitofp i32 %131 to double
%133 = fmul double 0x4075CB77F3131F1B, %132
%134 = fdiv double %133, 1.102500e+04
%135 = call double @sin(double %134)
%136 = load i32, i32* %9
%137 = add nsw i32 %136, 1
%138 = sitofp i32 %137 to double
%139 = fmul double 0x4093BE31BB185B06, %138
%140 = fdiv double %139, 1.102500e+04
%141 = call double @cos(double %140)
%142 = fmul double 3.000000e-01, %141
%143 = call double @llvm.fmuladd.f64(double 4.000000e-01, double %135, double %142)
%144 = fmul double %129, %143
%145 = load double*, double** %5
%146 = load i32, i32* %9
%147 = mul nsw i32 2, %146
%148 = add nsw i32 %147, 1
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds double, double* %145, i64 %149
store double %144, double* %150
br label %151
151: ; preds = %107
%152 = load i32, i32* %9
%153 = add nsw i32 %152, 1
store i32 %153, i32* %9
br label %74
154: ; preds = %74
br label %155
155: ; preds = %154, %72
ret void
}

LLVM IR (-O2):
define void @gen_signal_double(double* nocapture writeonly %0, double %1, i32 %2, i32 %3) {
%5 = icmp eq i32 %2, 1
%6 = icmp sgt i32 %3, 0
br i1 %5, label %12, label %7
7: ; preds = %4
br i1 %6, label %8, label %93
8: ; preds = %7
%9 = add nsw i32 %3, -1000
%10 = sext i32 %9 to i64
%11 = zext i32 %3 to i64
br label %50
12: ; preds = %4
br i1 %6, label %13, label %93
13: ; preds = %12
%14 = add nsw i32 %3, -1000
%15 = sext i32 %14 to i64
%16 = zext i32 %3 to i64
br label %17
17: ; preds = %13, %34
%18 = phi i64 [ 0, %13 ], [ %36, %34 ]
%19 = phi double [ 0.000000e+00, %13 ], [ %35, %34 ]
%20 = icmp ult i64 %18, 1001
br i1 %20, label %21, label %26
21: ; preds = %17
%22 = trunc i64 %18 to i32
%23 = sitofp i32 %22 to double
%24 = fmul double %23, %1
%25 = fdiv double %24, 1.000000e+03
br label %34
26: ; preds = %17
%27 = icmp sgt i64 %18, %15
br i1 %27, label %28, label %34
28: ; preds = %26
%29 = trunc i64 %18 to i32
%30 = sub nsw i32 %3, %29
%31 = sitofp i32 %30 to double
%32 = fmul double %31, %1
%33 = fdiv double %32, 1.000000e+03
br label %34
34: ; preds = %26, %28, %21
%35 = phi double [ %25, %21 ], [ %33, %28 ], [ %19, %26 ]
%36 = add nuw nsw i64 %18, 1
%37 = trunc i64 %36 to i32
%38 = sitofp i32 %37 to double
%39 = fmul double %38, 0x406A275CBD4A2553
%40 = fdiv double %39, 1.102500e+04
%41 = tail call double @sin(double %40)
%42 = fmul double %38, 0x4093BE31BB185B06
%43 = fdiv double %42, 1.102500e+04
%44 = tail call double @cos(double %43)
%45 = fmul double %44, 3.000000e-01
%46 = tail call double @llvm.fmuladd.f64(double %41, double 4.000000e-01, double %45)
%47 = fmul double %35, %46
%48 = getelementptr inbounds double, double* %0, i64 %18
store double %47, double* %48
%49 = icmp eq i64 %36, %16
br i1 %49, label %93, label %17
50: ; preds = %8, %67
%51 = phi i64 [ 0, %8 ], [ %69, %67 ]
%52 = phi double [ 0.000000e+00, %8 ], [ %68, %67 ]
%53 = icmp ult i64 %51, 1001
br i1 %53, label %54, label %59
54: ; preds = %50
%55 = trunc i64 %51 to i32
%56 = sitofp i32 %55 to double
%57 = fmul double %56, %1
%58 = fdiv double %57, 1.000000e+03
br label %67
59: ; preds = %50
%60 = icmp sgt i64 %51, %10
br i1 %60, label %61, label %67
61: ; preds = %59
%62 = trunc i64 %51 to i32
%63 = sub nsw i32 %3, %62
%64 = sitofp i32 %63 to double
%65 = fmul double %64, %1
%66 = fdiv double %65, 1.000000e+03
br label %67
67: ; preds = %59, %61, %54
%68 = phi double [ %58, %54 ], [ %66, %61 ], [ %52, %59 ]
%69 = add nuw nsw i64 %51, 1
%70 = trunc i64 %69 to i32
%71 = sitofp i32 %70 to double
%72 = fmul double %71, 0x406A275CBD4A2553
%73 = fdiv double %72, 1.102500e+04
%74 = tail call double @sin(double %73)
%75 = fmul double %71, 0x4093BE31BB185B06
%76 = fdiv double %75, 1.102500e+04
%77 = tail call double @cos(double %76)
%78 = fmul double %77, 3.000000e-01
%79 = tail call double @llvm.fmuladd.f64(double %74, double 4.000000e-01, double %78)
%80 = fmul double %68, %79
%81 = shl nuw nsw i64 %51, 1
%82 = getelementptr inbounds double, double* %0, i64 %81
store double %80, double* %82
%83 = fmul double %71, 0x4075CB77F3131F1B
%84 = fdiv double %83, 1.102500e+04
%85 = tail call double @sin(double %84)
%86 = tail call double @cos(double %76)
%87 = fmul double %86, 3.000000e-01
%88 = tail call double @llvm.fmuladd.f64(double %85, double 4.000000e-01, double %87)
%89 = fmul double %68, %88
%90 = or i64 %81, 1
%91 = getelementptr inbounds double, double* %0, i64 %90
store double %89, double* %91
%92 = icmp eq i64 %69, %11
br i1 %92, label %93, label %50
93: ; preds = %67, %34, %7, %12
ret void
}