#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(int);
double sin(int);
int kff_synthese_einzelpunkt_s(double lambda, char winkelmass,
                               double **leg_func, int mindeg, int maxdeg,
                               double **c_lm, double **s_lm, double *f) {
  double fzw;
  int l;
  int m;
  int sig_alt;
  int sig_alt_st;
  *f = 0.;
  mindeg = (mindeg < 0) ? 0 : mindeg;
  if (winkelmass == 'A')
    lambda *= (3.141592653589793 / 180.0);
  if (mindeg % 2 == 0)
    sig_alt_st = -1;
  else
    sig_alt_st = 1;
  for (l = mindeg; l <= maxdeg; l++) {
    sig_alt_st = -sig_alt_st;
    sig_alt = sig_alt_st;
    if (sig_alt == -1) {
      fzw = -leg_func[l][0] * c_lm[l][0];
    } else {
      fzw = leg_func[l][0] * c_lm[l][0];
    }
    for (m = 1; m <= l; m++) {
      sig_alt = -sig_alt;
      if (sig_alt == -1) {
        fzw -= (leg_func[l][m] *
                (c_lm[l][m] * cos(m * lambda) + s_lm[l][m] * sin(m * lambda)));
      } else {
        fzw += (leg_func[l][m] *
                (c_lm[l][m] * cos(m * lambda) + s_lm[l][m] * sin(m * lambda)));
      }
    }
    *f += fzw;
  }
  return 0;
}


x86 assembly (clang, -O0):
<kff_synthese_einzelpunkt_s>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %dil,%al
mov    0x10(%rbp),%rdi
movsd  %xmm0,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %ecx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
cmpl   $0x0,-0x1c(%rbp)
jge    116b <kff_synthese_einzelpunkt_s+0x4b>
xor    %eax,%eax
mov    %eax,-0x4c(%rbp)
jmp    1171 <kff_synthese_einzelpunkt_s+0x51>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
movsbl -0x9(%rbp),%eax
cmp    $0x41,%eax
jne    1196 <kff_synthese_einzelpunkt_s+0x76>
movsd  0xe74(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
mov    -0x1c(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11b6 <kff_synthese_einzelpunkt_s+0x96>
movl   $0xffffffff,-0x48(%rbp)
jmp    11bd <kff_synthese_einzelpunkt_s+0x9d>
movl   $0x1,-0x48(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jg     1428 <kff_synthese_einzelpunkt_s+0x308>
xor    %eax,%eax
sub    -0x48(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x48(%rbp),%eax
mov    %eax,-0x44(%rbp)
cmpl   $0xffffffff,-0x44(%rbp)
jne    1228 <kff_synthese_einzelpunkt_s+0x108>
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  (%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    124d <kff_synthese_einzelpunkt_s+0x12d>
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  (%rax),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x1,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jg     1409 <kff_synthese_einzelpunkt_s+0x2e9>
xor    %eax,%eax
sub    -0x44(%rbp),%eax
mov    %eax,-0x44(%rbp)
cmpl   $0xffffffff,-0x44(%rbp)
jne    133c <kff_synthese_einzelpunkt_s+0x21c>
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
cvtsi2sdl -0x40(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <cos@plt>
movsd  %xmm0,-0x60(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
cvtsi2sdl -0x40(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <sin@plt>
movsd  -0x70(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm3
movaps %xmm0,%xmm4
movsd  -0x58(%rbp),%xmm0
mulsd  %xmm4,%xmm1
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  -0x38(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    13f6 <kff_synthese_einzelpunkt_s+0x2d6>
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
cvtsi2sdl -0x40(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <cos@plt>
movsd  %xmm0,-0x80(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
cvtsi2sdl -0x40(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <sin@plt>
movsd  -0x90(%rbp),%xmm1
ff
movsd  -0x88(%rbp),%xmm2
ff
movsd  -0x80(%rbp),%xmm3
movaps %xmm0,%xmm4
movsd  -0x78(%rbp),%xmm0
mulsd  %xmm4,%xmm1
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    13fb <kff_synthese_einzelpunkt_s+0x2db>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1254 <kff_synthese_einzelpunkt_s+0x134>
movsd  -0x38(%rbp),%xmm0
mov    0x10(%rbp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11c3 <kff_synthese_einzelpunkt_s+0xa3>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kff_synthese_einzelpunkt_s>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %r9,0x48(%rsp)
mov    %r8,0x10(%rsp)
mov    %rcx,0x8(%rsp)
mov    %rsi,%rbx
movapd %xmm0,%xmm2
mov    0xa0(%rsp),%rsi
movq   $0x0,(%rsi)
xor    %eax,%eax
test   %edx,%edx
cmovns %edx,%eax
cmp    $0x41,%dil
jne    1168 <kff_synthese_einzelpunkt_s+0x48>
mulsd  0xe98(%rip),%xmm2
cmp    0x8(%rsp),%eax
jle    117f <kff_synthese_einzelpunkt_s+0x5f>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %eax,%r13d
and    $0x1,%eax
mov    0x8(%rsp),%rcx
add    $0x1,%ecx
mov    %rcx,0x8(%rsp)
cmp    $0x1,%eax
sbb    %ecx,%ecx
or     $0x1,%ecx
neg    %eax
sbb    %r12d,%r12d
or     $0x1,%r12d
mov    %r13,%r15
neg    %r15
xorpd  %xmm0,%xmm0
movsd  %xmm2,0x20(%rsp)
jmp    11f6 <kff_synthese_einzelpunkt_s+0xd6>
cs nopw 0x0(%rax,%rax,1)
nop
mov    0xa0(%rsp),%rsi
movsd  (%rsi),%xmm0
mov    0x1c(%rsp),%r12d
mov    0x18(%rsp),%edx
addsd  %xmm3,%xmm0
movsd  %xmm0,(%rsi)
add    $0x1,%r13
add    $0xffffffffffffffff,%r15
mov    %r12d,%ecx
mov    %edx,%r12d
cmp    0x8(%rsp),%r13
je     116e <kff_synthese_einzelpunkt_s+0x4e>
mov    %ecx,%edx
mov    (%rbx,%r13,8),%rax
movsd  (%rax),%xmm1
cmp    $0xffffffff,%r12d
je     1220 <kff_synthese_einzelpunkt_s+0x100>
mov    0x10(%rsp),%rax
mov    (%rax,%r13,8),%rax
movsd  (%rax),%xmm3
jmp    1239 <kff_synthese_einzelpunkt_s+0x119>
cs nopw 0x0(%rax,%rax,1)
nop
xorpd  0xde8(%rip),%xmm1
mov    0x10(%rsp),%rax
mov    (%rax,%r13,8),%rax
movapd %xmm1,%xmm3
movsd  (%rax),%xmm1
mulsd  %xmm1,%xmm3
test   %r13,%r13
je     11d5 <kff_synthese_einzelpunkt_s+0xb5>
mov    %edx,0x18(%rsp)
mov    $0x1,%r14d
mov    %r12d,0x1c(%rsp)
jmp    12b1 <kff_synthese_einzelpunkt_s+0x191>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  0x20(%rsp),%xmm2
movsd  0x40(%rsp),%xmm3
movapd 0x50(%rsp),%xmm1
movsd  0x38(%rsp),%xmm4
movsd  0x30(%rsp),%xmm5
movsd  0x28(%rsp),%xmm6
neg    %r12d
mulsd  %xmm0,%xmm6
mulsd  %xmm5,%xmm4
addsd  %xmm6,%xmm4
mulsd  %xmm1,%xmm4
addsd  %xmm4,%xmm3
lea    (%r15,%r14,1),%rax
add    $0x1,%rax
add    $0x1,%r14
cmp    $0x1,%rax
je     11c0 <kff_synthese_einzelpunkt_s+0xa0>
movsd  %xmm3,0x40(%rsp)
mov    (%rbx,%r13,8),%rax
movsd  (%rax,%r14,8),%xmm0
movaps %xmm0,0x50(%rsp)
mov    0x10(%rsp),%rax
mov    (%rax,%r13,8),%rax
xorps  %xmm0,%xmm0
cvtsi2sd %r14d,%xmm0
movsd  (%rax,%r14,8),%xmm1
movsd  %xmm1,0x38(%rsp)
mulsd  %xmm2,%xmm0
cvttsd2si %xmm0,%ebp
mov    %ebp,%edi
call   1040 <cos@plt>
movsd  %xmm0,0x30(%rsp)
mov    0x48(%rsp),%rax
mov    (%rax,%r13,8),%rax
movsd  (%rax,%r14,8),%xmm0
movsd  %xmm0,0x28(%rsp)
mov    %ebp,%edi
call   1030 <sin@plt>
cmp    $0x1,%r12d
jne    1260 <kff_synthese_einzelpunkt_s+0x140>
movapd 0x50(%rsp),%xmm1
xorpd  0xce4(%rip),%xmm1
movsd  0x20(%rsp),%xmm2
movsd  0x40(%rsp),%xmm3
jmp    1272 <kff_synthese_einzelpunkt_s+0x152>

LLVM IR (-O0):
define i32 @kff_synthese_einzelpunkt_s(double %0, i8 signext %1, double** %2, i32 %3, i32 %4, double** %5, double** %6, double* %7) {
%9 = alloca double
%10 = alloca i8
%11 = alloca double**
%12 = alloca i32
%13 = alloca i32
%14 = alloca double**
%15 = alloca double**
%16 = alloca double*
%17 = alloca double
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
store double %0, double* %9
store i8 %1, i8* %10
store double** %2, double*** %11
store i32 %3, i32* %12
store i32 %4, i32* %13
store double** %5, double*** %14
store double** %6, double*** %15
store double* %7, double** %16
%22 = load double*, double** %16
store double 0.000000e+00, double* %22
%23 = load i32, i32* %12
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %8
br label %28
26: ; preds = %8
%27 = load i32, i32* %12
br label %28
28: ; preds = %26, %25
%29 = phi i32 [ 0, %25 ], [ %27, %26 ]
store i32 %29, i32* %12
%30 = load i8, i8* %10
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 65
br i1 %32, label %33, label %36
33: ; preds = %28
%34 = load double, double* %9
%35 = fmul double %34, 0x3F91DF46A2529D39
store double %35, double* %9
br label %36
36: ; preds = %33, %28
%37 = load i32, i32* %12
%38 = srem i32 %37, 2
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %41
40: ; preds = %36
store i32 -1, i32* %21
br label %42
41: ; preds = %36
store i32 1, i32* %21
br label %42
42: ; preds = %41, %40
%43 = load i32, i32* %12
store i32 %43, i32* %18
br label %44
44: ; preds = %195, %42
%45 = load i32, i32* %18
%46 = load i32, i32* %13
%47 = icmp sle i32 %45, %46
br i1 %47, label %48, label %198
48: ; preds = %44
%49 = load i32, i32* %21
%50 = sub nsw i32 0, %49
store i32 %50, i32* %21
%51 = load i32, i32* %21
store i32 %51, i32* %20
%52 = load i32, i32* %20
%53 = icmp eq i32 %52, -1
br i1 %53, label %54, label %71
54: ; preds = %48
%55 = load double**, double*** %11
%56 = load i32, i32* %18
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds double*, double** %55, i64 %57
%59 = load double*, double** %58
%60 = getelementptr inbounds double, double* %59, i64 0
%61 = load double, double* %60
%62 = fneg double %61
%63 = load double**, double*** %14
%64 = load i32, i32* %18
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds double*, double** %63, i64 %65
%67 = load double*, double** %66
%68 = getelementptr inbounds double, double* %67, i64 0
%69 = load double, double* %68
%70 = fmul double %62, %69
store double %70, double* %17
br label %87
71: ; preds = %48
%72 = load double**, double*** %11
%73 = load i32, i32* %18
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds double*, double** %72, i64 %74
%76 = load double*, double** %75
%77 = getelementptr inbounds double, double* %76, i64 0
%78 = load double, double* %77
%79 = load double**, double*** %14
%80 = load i32, i32* %18
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double*, double** %79, i64 %81
%83 = load double*, double** %82
%84 = getelementptr inbounds double, double* %83, i64 0
%85 = load double, double* %84
%86 = fmul double %78, %85
store double %86, double* %17
br label %87
87: ; preds = %71, %54
store i32 1, i32* %19
br label %88
88: ; preds = %187, %87
%89 = load i32, i32* %19
%90 = load i32, i32* %18
%91 = icmp sle i32 %89, %90
br i1 %91, label %92, label %190
92: ; preds = %88
%93 = load i32, i32* %20
%94 = sub nsw i32 0, %93
store i32 %94, i32* %20
%95 = load i32, i32* %20
%96 = icmp eq i32 %95, -1
br i1 %96, label %97, label %142
97: ; preds = %92
%98 = load double**, double*** %11
%99 = load i32, i32* %18
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds double*, double** %98, i64 %100
%102 = load double*, double** %101
%103 = load i32, i32* %19
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds double, double* %102, i64 %104
%106 = load double, double* %105
%107 = load double**, double*** %14
%108 = load i32, i32* %18
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds double*, double** %107, i64 %109
%111 = load double*, double** %110
%112 = load i32, i32* %19
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds double, double* %111, i64 %113
%115 = load double, double* %114
%116 = load i32, i32* %19
%117 = sitofp i32 %116 to double
%118 = load double, double* %9
%119 = fmul double %117, %118
%120 = fptosi double %119 to i32
%121 = call double @cos(i32 %120)
%122 = load double**, double*** %15
%123 = load i32, i32* %18
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds double*, double** %122, i64 %124
%126 = load double*, double** %125
%127 = load i32, i32* %19
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds double, double* %126, i64 %128
%130 = load double, double* %129
%131 = load i32, i32* %19
%132 = sitofp i32 %131 to double
%133 = load double, double* %9
%134 = fmul double %132, %133
%135 = fptosi double %134 to i32
%136 = call double @sin(i32 %135)
%137 = fmul double %130, %136
%138 = call double @llvm.fmuladd.f64(double %115, double %121, double %137)
%139 = load double, double* %17
%140 = fneg double %106
%141 = call double @llvm.fmuladd.f64(double %140, double %138, double %139)
store double %141, double* %17
br label %186
142: ; preds = %92
%143 = load double**, double*** %11
%144 = load i32, i32* %18
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds double*, double** %143, i64 %145
%147 = load double*, double** %146
%148 = load i32, i32* %19
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds double, double* %147, i64 %149
%151 = load double, double* %150
%152 = load double**, double*** %14
%153 = load i32, i32* %18
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds double*, double** %152, i64 %154
%156 = load double*, double** %155
%157 = load i32, i32* %19
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds double, double* %156, i64 %158
%160 = load double, double* %159
%161 = load i32, i32* %19
%162 = sitofp i32 %161 to double
%163 = load double, double* %9
%164 = fmul double %162, %163
%165 = fptosi double %164 to i32
%166 = call double @cos(i32 %165)
%167 = load double**, double*** %15
%168 = load i32, i32* %18
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds double*, double** %167, i64 %169
%171 = load double*, double** %170
%172 = load i32, i32* %19
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds double, double* %171, i64 %173
%175 = load double, double* %174
%176 = load i32, i32* %19
%177 = sitofp i32 %176 to double
%178 = load double, double* %9
%179 = fmul double %177, %178
%180 = fptosi double %179 to i32
%181 = call double @sin(i32 %180)
%182 = fmul double %175, %181
%183 = call double @llvm.fmuladd.f64(double %160, double %166, double %182)
%184 = load double, double* %17
%185 = call double @llvm.fmuladd.f64(double %151, double %183, double %184)
store double %185, double* %17
br label %186
186: ; preds = %142, %97
br label %187
187: ; preds = %186
%188 = load i32, i32* %19
%189 = add nsw i32 %188, 1
store i32 %189, i32* %19
br label %88
190: ; preds = %88
%191 = load double, double* %17
%192 = load double*, double** %16
%193 = load double, double* %192
%194 = fadd double %193, %191
store double %194, double* %192
br label %195
195: ; preds = %190
%196 = load i32, i32* %18
%197 = add nsw i32 %196, 1
store i32 %197, i32* %18
br label %44
198: ; preds = %44
ret i32 0
}

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