#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 atan2(double, double);
int /*<<< orphan*/ memset(double *, int /*<<< orphan*/, int);
int /*<<< orphan*/ sms_fft(int, double *);
double sqrt(double);
int sms_spectrumW(int sizeWindow, double *pWaveform, double *pWindow,
                  int sizeMag, double *pMag, double *pPhase,
                  double *pFftBuffer) {
  int i, it2;
  double fReal, fImag;
  int sizeFft = sizeMag << 1;
  memset(pFftBuffer, 0, sizeFft * sizeof(double));
  for (i = 0; i < sizeWindow; i++)
    pFftBuffer[i] = pWaveform[i] * pWindow[i];
  sms_fft(sizeFft, pFftBuffer);
  for (i = 0; i < sizeMag; i++) {
    it2 = i << 1;
    fReal = pFftBuffer[it2];
    fImag = pFftBuffer[it2 + 1];
    pMag[i] = sqrt(fReal * fReal + fImag * fImag);
    pPhase[i] = atan2(fImag, fReal);
  }
  return sizeFft;
}


x86 assembly (clang, -O0):
<sms_spectrumW>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x1c(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x4c(%rbp)
mov    0x10(%rbp),%rdi
movslq -0x4c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1040 <memset@plt>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    11c8 <sms_spectrumW+0x88>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1187 <sms_spectrumW+0x47>
mov    -0x4c(%rbp),%edi
mov    0x10(%rbp),%rsi
call   1050 <sms_fft@plt>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1271 <sms_spectrumW+0x131>
mov    -0x34(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    0x10(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1060 <sqrt@plt>
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
call   1030 <atan2@plt>
mov    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11db <sms_spectrumW+0x9b>
mov    -0x4c(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sms_spectrumW>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r9,0x20(%rsp)
mov    %r8,%r15
mov    %rdx,%rbp
mov    %rsi,%r12
mov    %edi,%r13d
mov    0x60(%rsp),%r14
lea    (%rcx,%rcx,1),%ebx
mov    %rcx,0x8(%rsp)
mov    %ecx,%edx
shl    $0x4,%edx
mov    %r14,%rdi
xor    %esi,%esi
call   1040 <memset@plt>
test   %r13d,%r13d
jle    1355 <sms_spectrumW+0x215>
mov    %r13d,%eax
cmp    $0x4,%r13d
jae    123c <sms_spectrumW+0xfc>
xor    %ecx,%ecx
mov    %rcx,%rdx
not    %rdx
add    %rax,%rdx
mov    %rax,%rsi
and    $0x3,%rsi
je     11cc <sms_spectrumW+0x8c>
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%r12,%rcx,8),%xmm0
mulsd  0x0(%rbp,%rcx,8),%xmm0
movsd  %xmm0,(%r14,%rcx,8)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rsi
jne    11b0 <sms_spectrumW+0x70>
cmp    $0x3,%rdx
jb     1355 <sms_spectrumW+0x215>
cs nopw 0x0(%rax,%rax,1)
movsd  (%r12,%rcx,8),%xmm0
mulsd  0x0(%rbp,%rcx,8),%xmm0
movsd  %xmm0,(%r14,%rcx,8)
movsd  0x8(%r12,%rcx,8),%xmm0
mulsd  0x8(%rbp,%rcx,8),%xmm0
movsd  %xmm0,0x8(%r14,%rcx,8)
movsd  0x10(%r12,%rcx,8),%xmm0
mulsd  0x10(%rbp,%rcx,8),%xmm0
movsd  %xmm0,0x10(%r14,%rcx,8)
movsd  0x18(%r12,%rcx,8),%xmm0
mulsd  0x18(%rbp,%rcx,8),%xmm0
movsd  %xmm0,0x18(%r14,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rax
jne    11e0 <sms_spectrumW+0xa0>
jmp    1355 <sms_spectrumW+0x215>
mov    %ebx,%r8d
lea    (%r14,%rax,8),%rcx
lea    (%r12,%rax,8),%rdx
cmp    %r14,%rdx
seta   %dil
lea    0x0(,%rax,8),%rdx
add    %rbp,%rdx
cmp    %r12,%rcx
seta   %bl
cmp    %r14,%rdx
seta   %dl
cmp    %rbp,%rcx
seta   %sil
xor    %ecx,%ecx
test   %bl,%dil
jne    1421 <sms_spectrumW+0x2e1>
and    %sil,%dl
mov    %r8d,%ebx
jne    1193 <sms_spectrumW+0x53>
mov    %eax,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     1429 <sms_spectrumW+0x2e9>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %edx,%edx
nopl   0x0(%rax)
movupd (%r12,%rdx,8),%xmm0
movupd 0x10(%r12,%rdx,8),%xmm1
movupd 0x0(%rbp,%rdx,8),%xmm2
mulpd  %xmm0,%xmm2
movupd 0x10(%rbp,%rdx,8),%xmm0
mulpd  %xmm1,%xmm0
movupd %xmm2,(%r14,%rdx,8)
movupd %xmm0,0x10(%r14,%rdx,8)
movupd 0x20(%r12,%rdx,8),%xmm0
movupd 0x30(%r12,%rdx,8),%xmm1
movupd 0x20(%rbp,%rdx,8),%xmm2
mulpd  %xmm0,%xmm2
movupd 0x30(%rbp,%rdx,8),%xmm0
mulpd  %xmm1,%xmm0
movupd %xmm2,0x20(%r14,%rdx,8)
movupd %xmm0,0x30(%r14,%rdx,8)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rdi
jne    12b0 <sms_spectrumW+0x170>
test   $0x1,%sil
je     134c <sms_spectrumW+0x20c>
movupd (%r12,%rdx,8),%xmm0
movupd 0x10(%r12,%rdx,8),%xmm1
movupd 0x0(%rbp,%rdx,8),%xmm2
mulpd  %xmm0,%xmm2
movupd 0x10(%rbp,%rdx,8),%xmm0
mulpd  %xmm1,%xmm0
movupd %xmm2,(%r14,%rdx,8)
movupd %xmm0,0x10(%r14,%rdx,8)
cmp    %rax,%rcx
jne    1193 <sms_spectrumW+0x53>
mov    %ebx,0x14(%rsp)
mov    %ebx,%edi
mov    %r14,%rsi
call   1050 <sms_fft@plt>
mov    0x8(%rsp),%rax
test   %eax,%eax
jle    140e <sms_spectrumW+0x2ce>
mov    %eax,%r13d
add    %r13,%r13
xor    %ebx,%ebx
movabs $0x200000000,%r12
xor    %ebp,%ebp
jmp    13d2 <sms_spectrumW+0x292>
cs nopw 0x0(%rax,%rax,1)
movsd  %xmm1,0x8(%rsp)
movsd  %xmm3,0x18(%rsp)
call   1060 <sqrt@plt>
movsd  0x18(%rsp),%xmm3
movsd  0x8(%rsp),%xmm1
movsd  %xmm0,(%r15,%rbp,4)
movapd %xmm3,%xmm0
call   1030 <atan2@plt>
mov    0x20(%rsp),%rax
movsd  %xmm0,(%rax,%rbp,4)
add    $0x2,%rbp
add    %r12,%rbx
cmp    %rbp,%r13
je     140e <sms_spectrumW+0x2ce>
mov    %rbx,%rax
sar    $0x1d,%rax
movsd  (%r14,%rax,1),%xmm1
lea    0x1(%rbp),%eax
cltq
movsd  (%r14,%rax,8),%xmm3
movapd %xmm3,%xmm2
mulsd  %xmm3,%xmm2
movapd %xmm1,%xmm0
mulsd  %xmm1,%xmm0
addsd  %xmm2,%xmm0
ucomisd 0xbfa(%rip),%xmm0
jb     1390 <sms_spectrumW+0x250>
sqrtsd %xmm0,%xmm0
jmp    13ad <sms_spectrumW+0x26d>
mov    0x14(%rsp),%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %r8d,%ebx
jmp    1193 <sms_spectrumW+0x53>
xor    %edx,%edx
test   $0x1,%sil
jne    131e <sms_spectrumW+0x1de>
jmp    134c <sms_spectrumW+0x20c>

LLVM IR (-O0):
define i32 @sms_spectrumW(i32 %0, double* %1, double* %2, i32 %3, double* %4, double* %5, double* %6) {
%8 = alloca i32
%9 = alloca double*
%10 = alloca double*
%11 = alloca i32
%12 = alloca double*
%13 = alloca double*
%14 = alloca double*
%15 = alloca i32
%16 = alloca i32
%17 = alloca double
%18 = alloca double
%19 = alloca i32
store i32 %0, i32* %8
store double* %1, double** %9
store double* %2, double** %10
store i32 %3, i32* %11
store double* %4, double** %12
store double* %5, double** %13
store double* %6, double** %14
%20 = load i32, i32* %11
%21 = shl i32 %20, 1
store i32 %21, i32* %19
%22 = load double*, double** %14
%23 = load i32, i32* %19
%24 = sext i32 %23 to i64
%25 = mul i64 %24, 8
%26 = trunc i64 %25 to i32
%27 = call i32 @memset(double* %22, i32 0, i32 %26)
store i32 0, i32* %15
br label %28
28: ; preds = %48, %7
%29 = load i32, i32* %15
%30 = load i32, i32* %8
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %51
32: ; preds = %28
%33 = load double*, double** %9
%34 = load i32, i32* %15
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds double, double* %33, i64 %35
%37 = load double, double* %36
%38 = load double*, double** %10
%39 = load i32, i32* %15
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double, double* %38, i64 %40
%42 = load double, double* %41
%43 = fmul double %37, %42
%44 = load double*, double** %14
%45 = load i32, i32* %15
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds double, double* %44, i64 %46
store double %43, double* %47
br label %48
48: ; preds = %32
%49 = load i32, i32* %15
%50 = add nsw i32 %49, 1
store i32 %50, i32* %15
br label %28
51: ; preds = %28
%52 = load i32, i32* %19
%53 = load double*, double** %14
%54 = call i32 @sms_fft(i32 %52, double* %53)
store i32 0, i32* %15
br label %55
55: ; preds = %91, %51
%56 = load i32, i32* %15
%57 = load i32, i32* %11
%58 = icmp slt i32 %56, %57
br i1 %58, label %59, label %94
59: ; preds = %55
%60 = load i32, i32* %15
%61 = shl i32 %60, 1
store i32 %61, i32* %16
%62 = load double*, double** %14
%63 = load i32, i32* %16
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds double, double* %62, i64 %64
%66 = load double, double* %65
store double %66, double* %17
%67 = load double*, double** %14
%68 = load i32, i32* %16
%69 = add nsw i32 %68, 1
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, double* %67, i64 %70
%72 = load double, double* %71
store double %72, double* %18
%73 = load double, double* %17
%74 = load double, double* %17
%75 = load double, double* %18
%76 = load double, double* %18
%77 = fmul double %75, %76
%78 = call double @llvm.fmuladd.f64(double %73, double %74, double %77)
%79 = call double @sqrt(double %78)
%80 = load double*, double** %12
%81 = load i32, i32* %15
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds double, double* %80, i64 %82
store double %79, double* %83
%84 = load double, double* %18
%85 = load double, double* %17
%86 = call double @atan2(double %84, double %85)
%87 = load double*, double** %13
%88 = load i32, i32* %15
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, double* %87, i64 %89
store double %86, double* %90
br label %91
91: ; preds = %59
%92 = load i32, i32* %15
%93 = add nsw i32 %92, 1
store i32 %93, i32* %15
br label %55
94: ; preds = %55
%95 = load i32, i32* %19
ret i32 %95
}

LLVM IR (-O2):
define i32 @sms_spectrumW(i32 %0, double* nocapture %1, double* nocapture %2, i32 %3, double* nocapture writeonly %4, double* nocapture writeonly %5, double* %6) {
%8 = shl i32 %3, 1
%9 = shl i32 %3, 4
%10 = tail call i32 @memset(double* %6, i32 0, i32 %9)
%11 = icmp sgt i32 %0, 0
br i1 %11, label %12, label %154
12: ; preds = %7
%13 = zext i32 %0 to i64
%14 = icmp ult i32 %0, 4
br i1 %14, label %102, label %15
15: ; preds = %12
%16 = getelementptr double, double* %6, i64 %13
%17 = getelementptr double, double* %1, i64 %13
%18 = getelementptr double, double* %2, i64 %13
%19 = icmp ugt double* %17, %6
%20 = icmp ugt double* %16, %1
%21 = and i1 %19, %20
%22 = icmp ugt double* %18, %6
%23 = icmp ugt double* %16, %2
%24 = and i1 %22, %23
%25 = or i1 %21, %24
br i1 %25, label %102, label %26
26: ; preds = %15
%27 = and i64 %13, 4294967292
%28 = add nsw i64 %27, -4
%29 = lshr exact i64 %28, 2
%30 = add nuw nsw i64 %29, 1
%31 = and i64 %30, 1
%32 = icmp eq i64 %28, 0
br i1 %32, label %78, label %33
33: ; preds = %26
%34 = and i64 %30, 9223372036854775806
br label %35
35: ; preds = %35, %33
%36 = phi i64 [ 0, %33 ], [ %75, %35 ]
%37 = phi i64 [ 0, %33 ], [ %76, %35 ]
%38 = getelementptr inbounds double, double* %1, i64 %36
%39 = bitcast double* %38 to <2 x double>*
%40 = load <2 x double>, <2 x double>* %39
%41 = getelementptr inbounds double, double* %38, i64 2
%42 = bitcast double* %41 to <2 x double>*
%43 = load <2 x double>, <2 x double>* %42
%44 = getelementptr inbounds double, double* %2, i64 %36
%45 = bitcast double* %44 to <2 x double>*
%46 = load <2 x double>, <2 x double>* %45
%47 = getelementptr inbounds double, double* %44, i64 2
%48 = bitcast double* %47 to <2 x double>*
%49 = load <2 x double>, <2 x double>* %48
%50 = fmul <2 x double> %40, %46
%51 = fmul <2 x double> %43, %49
%52 = getelementptr inbounds double, double* %6, i64 %36
%53 = bitcast double* %52 to <2 x double>*
store <2 x double> %50, <2 x double>* %53
%54 = getelementptr inbounds double, double* %52, i64 2
%55 = bitcast double* %54 to <2 x double>*
store <2 x double> %51, <2 x double>* %55
%56 = or i64 %36, 4
%57 = getelementptr inbounds double, double* %1, i64 %56
%58 = bitcast double* %57 to <2 x double>*
%59 = load <2 x double>, <2 x double>* %58
%60 = getelementptr inbounds double, double* %57, i64 2
%61 = bitcast double* %60 to <2 x double>*
%62 = load <2 x double>, <2 x double>* %61
%63 = getelementptr inbounds double, double* %2, i64 %56
%64 = bitcast double* %63 to <2 x double>*
%65 = load <2 x double>, <2 x double>* %64
%66 = getelementptr inbounds double, double* %63, i64 2
%67 = bitcast double* %66 to <2 x double>*
%68 = load <2 x double>, <2 x double>* %67
%69 = fmul <2 x double> %59, %65
%70 = fmul <2 x double> %62, %68
%71 = getelementptr inbounds double, double* %6, i64 %56
%72 = bitcast double* %71 to <2 x double>*
store <2 x double> %69, <2 x double>* %72
%73 = getelementptr inbounds double, double* %71, i64 2
%74 = bitcast double* %73 to <2 x double>*
store <2 x double> %70, <2 x double>* %74
%75 = add nuw i64 %36, 8
%76 = add i64 %37, 2
%77 = icmp eq i64 %76, %34
br i1 %77, label %78, label %35
78: ; preds = %35, %26
%79 = phi i64 [ 0, %26 ], [ %75, %35 ]
%80 = icmp eq i64 %31, 0
br i1 %80, label %100, label %81
81: ; preds = %78
%82 = getelementptr inbounds double, double* %1, i64 %79
%83 = bitcast double* %82 to <2 x double>*
%84 = load <2 x double>, <2 x double>* %83
%85 = getelementptr inbounds double, double* %82, i64 2
%86 = bitcast double* %85 to <2 x double>*
%87 = load <2 x double>, <2 x double>* %86
%88 = getelementptr inbounds double, double* %2, i64 %79
%89 = bitcast double* %88 to <2 x double>*
%90 = load <2 x double>, <2 x double>* %89
%91 = getelementptr inbounds double, double* %88, i64 2
%92 = bitcast double* %91 to <2 x double>*
%93 = load <2 x double>, <2 x double>* %92
%94 = fmul <2 x double> %84, %90
%95 = fmul <2 x double> %87, %93
%96 = getelementptr inbounds double, double* %6, i64 %79
%97 = bitcast double* %96 to <2 x double>*
store <2 x double> %94, <2 x double>* %97
%98 = getelementptr inbounds double, double* %96, i64 2
%99 = bitcast double* %98 to <2 x double>*
store <2 x double> %95, <2 x double>* %99
br label %100
100: ; preds = %78, %81
%101 = icmp eq i64 %27, %13
br i1 %101, label %154, label %102
102: ; preds = %15, %12, %100
%103 = phi i64 [ 0, %15 ], [ 0, %12 ], [ %27, %100 ]
%104 = xor i64 %103, -1
%105 = add nsw i64 %104, %13
%106 = and i64 %13, 3
%107 = icmp eq i64 %106, 0
br i1 %107, label %120, label %108
108: ; preds = %102, %108
%109 = phi i64 [ %117, %108 ], [ %103, %102 ]
%110 = phi i64 [ %118, %108 ], [ 0, %102 ]
%111 = getelementptr inbounds double, double* %1, i64 %109
%112 = load double, double* %111
%113 = getelementptr inbounds double, double* %2, i64 %109
%114 = load double, double* %113
%115 = fmul double %112, %114
%116 = getelementptr inbounds double, double* %6, i64 %109
store double %115, double* %116
%117 = add nuw nsw i64 %109, 1
%118 = add i64 %110, 1
%119 = icmp eq i64 %118, %106
br i1 %119, label %120, label %108
120: ; preds = %108, %102
%121 = phi i64 [ %103, %102 ], [ %117, %108 ]
%122 = icmp ult i64 %105, 3
br i1 %122, label %154, label %123
123: ; preds = %120, %123
%124 = phi i64 [ %152, %123 ], [ %121, %120 ]
%125 = getelementptr inbounds double, double* %1, i64 %124
%126 = load double, double* %125
%127 = getelementptr inbounds double, double* %2, i64 %124
%128 = load double, double* %127
%129 = fmul double %126, %128
%130 = getelementptr inbounds double, double* %6, i64 %124
store double %129, double* %130
%131 = add nuw nsw i64 %124, 1
%132 = getelementptr inbounds double, double* %1, i64 %131
%133 = load double, double* %132
%134 = getelementptr inbounds double, double* %2, i64 %131
%135 = load double, double* %134
%136 = fmul double %133, %135
%137 = getelementptr inbounds double, double* %6, i64 %131
store double %136, double* %137
%138 = add nuw nsw i64 %124, 2
%139 = getelementptr inbounds double, double* %1, i64 %138
%140 = load double, double* %139
%141 = getelementptr inbounds double, double* %2, i64 %138
%142 = load double, double* %141
%143 = fmul double %140, %142
%144 = getelementptr inbounds double, double* %6, i64 %138
store double %143, double* %144
%145 = add nuw nsw i64 %124, 3
%146 = getelementptr inbounds double, double* %1, i64 %145
%147 = load double, double* %146
%148 = getelementptr inbounds double, double* %2, i64 %145
%149 = load double, double* %148
%150 = fmul double %147, %149
%151 = getelementptr inbounds double, double* %6, i64 %145
store double %150, double* %151
%152 = add nuw nsw i64 %124, 4
%153 = icmp eq i64 %152, %13
br i1 %153, label %154, label %123
154: ; preds = %120, %123, %100, %7
%155 = tail call i32 @sms_fft(i32 %8, double* %6)
%156 = icmp sgt i32 %3, 0
br i1 %156, label %157, label %179
157: ; preds = %154
%158 = zext i32 %3 to i64
br label %159
159: ; preds = %157, %159
%160 = phi i64 [ 0, %157 ], [ %177, %159 ]
%161 = shl i64 %160, 33
%162 = ashr exact i64 %161, 32
%163 = getelementptr inbounds double, double* %6, i64 %162
%164 = load double, double* %163
%165 = trunc i64 %160 to i32
%166 = shl i32 %165, 1
%167 = or i32 %166, 1
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds double, double* %6, i64 %168
%170 = load double, double* %169
%171 = fmul double %170, %170
%172 = tail call double @llvm.fmuladd.f64(double %164, double %164, double %171)
%173 = tail call double @sqrt(double %172)
%174 = getelementptr inbounds double, double* %4, i64 %160
store double %173, double* %174
%175 = tail call double @atan2(double %170, double %164)
%176 = getelementptr inbounds double, double* %5, i64 %160
store double %175, double* %176
%177 = add nuw nsw i64 %160, 1
%178 = icmp eq i64 %177, %158
br i1 %178, label %179, label %159
179: ; preds = %159, %154
ret i32 %8
}