#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*/ calculoButterflyLoopBloco(float *, unsigned long,
                                             unsigned long, unsigned long,
                                             double, double, int);
int /*<<< orphan*/ printf(char *, ...);
double sin(double);
void fft(float data[]) {
  unsigned long mmax, j, m, istep, i;
  double wtemp, wr, wpr, wpi, wi, theta;
  mmax = 2;
  istep = mmax << 1;
  theta = 1 * (6.28318530717959 / mmax);
  wtemp = sin(0.5 * theta);
  wpr = -2.0 * wtemp * wtemp;
  wpi = sin(theta);
  wr = 1.0;
  wi = 0.0;
  m = 1;
  while (16 * 2 > mmax) {
    printf(">>> Inicio do while -> mmax:%lu\n", mmax);
    if (16 / mmax >= 2) {
      printf("     processa em thread\n");
      unsigned long tamBloco = 16 / mmax / 2;
      unsigned long blocoAtual;
      for (blocoAtual = 0; blocoAtual < 2; blocoAtual++) {
        printf("     qtdBlocos:%lu\n", blocoAtual);
        calculoButterflyLoopBloco(data, ((16 * 2 / 2) * blocoAtual) + m, mmax,
                                  istep, wr, wi, tamBloco);
      }
    } else {
      printf("     processa na main\n");
      calculoButterflyLoopBloco(data, m, mmax, istep, wr, wi, 16 / mmax);
    }
    wr = (wtemp = wr) * wpr - wi * wpi + wr;
    wi = wi * wpr + wtemp * wpi + wi;
    m += 2;
    printf("     >>> FOR 1 -> m:%lu mmax:%lu\n", m, mmax);
    if (m >= mmax) {
      mmax = istep;
      istep = mmax << 1;
      theta = 1 * (6.28318530717959 / mmax);
      wtemp = sin(0.5 * theta);
      wpr = -2.0 * wtemp * wtemp;
      wpi = sin(theta);
      wr = 1.0;
      wi = 0.0;
      m = 1;
      printf("<<< Final do while -> istep:%lu mmax:%lu\n\n", istep, mmax);
    }
  }
}


x86 assembly (clang, -O0):
<fft>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
movq   $0x2,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    %rax,%rax
mov    %rax,-0x28(%rbp)
movaps 0xec7(%rip),%xmm1
movq   -0x10(%rbp),%xmm0
punpckldq %xmm1,%xmm0
movapd 0xec6(%rip),%xmm1
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe97(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  0xe73(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xe72(%rip),%xmm0
mulsd  -0x60(%rbp),%xmm0
call   1050 <sin@plt>
movsd  %xmm0,-0x38(%rbp)
movsd  0xe53(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x60(%rbp),%xmm0
call   1050 <sin@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  0xe25(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
movq   $0x1,-0x20(%rbp)
mov    $0x20,%eax
cmp    -0x10(%rbp),%rax
jbe    145b <fft+0x32b>
mov    -0x10(%rbp),%rsi
lea    0xe36(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x10,%eax
xor    %ecx,%ecx
mov    %ecx,%edx
divq   -0x10(%rbp)
cmp    $0x2,%rax
jb     12b4 <fft+0x184>
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x10,%eax
xor    %ecx,%ecx
mov    %ecx,%edx
divq   -0x10(%rbp)
shr    $0x1,%rax
mov    %rax,-0x68(%rbp)
movq   $0x0,-0x70(%rbp)
cmpq   $0x2,-0x70(%rbp)
jae    12af <fft+0x17f>
mov    -0x70(%rbp),%rsi
lea    0xe11(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x70(%rbp),%rsi
shl    $0x4,%rsi
add    -0x20(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x28(%rbp),%rcx
movsd  -0x40(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
mov    -0x68(%rbp),%rax
mov    %eax,%r8d
call   1040 <calculoButterflyLoopBloco@plt>
mov    -0x70(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x70(%rbp)
jmp    1253 <fft+0x123>
jmp    12f7 <fft+0x1c7>
lea    0xdd3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x10(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x28(%rbp),%rcx
movsd  -0x40(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
mov    $0x10,%eax
xor    %edx,%edx
divq   -0x10(%rbp)
mov    -0x78(%rbp),%rdx
mov    %eax,%r8d
call   1040 <calculoButterflyLoopBloco@plt>
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x48(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  -0x50(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm1
mulsd  -0x50(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xd2b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
cmp    -0x10(%rbp),%rax
jb     1456 <fft+0x326>
mov    -0x28(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    %rax,%rax
mov    %rax,-0x28(%rbp)
movaps 0xc77(%rip),%xmm1
movq   -0x10(%rbp),%xmm0
punpckldq %xmm1,%xmm0
movapd 0xc76(%rip),%xmm1
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  0xc47(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  0xc23(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xc22(%rip),%xmm0
mulsd  -0x60(%rbp),%xmm0
call   1050 <sin@plt>
movsd  %xmm0,-0x38(%rbp)
movsd  0xc03(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x60(%rbp),%xmm0
call   1050 <sin@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  0xbd5(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
movq   $0x1,-0x20(%rbp)
mov    -0x28(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xc78(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11f0 <fft+0xc0>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fft>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rdi,0x28(%rsp)
movsd  0xea5(%rip),%xmm0
mov    $0x4,%r14d
mov    $0x1,%r15d
movsd  0xe99(%rip),%xmm1
movsd  0xe99(%rip),%xmm2
movapd %xmm2,0x50(%rsp)
mov    $0x2,%r12d
lea    0xed6(%rip),%rbp
mov    $0x10,%al
movzbl %al,%eax
mov    %ax,0xe(%rsp)
movapd %xmm1,0x40(%rsp)
movapd %xmm0,0x10(%rsp)
jmp    1252 <fft+0x112>
cs nopw 0x0(%rax,%rax,1)
nop
lea    (%r14,%r14,1),%r13
movq   %r14,%xmm0
punpckldq 0xe7f(%rip),%xmm0
subpd  0xe87(%rip),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movsd  0xe3b(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,0x10(%rsp)
mulsd  0xe31(%rip),%xmm0
call   1060 <sin@plt>
movapd %xmm0,%xmm1
mulsd  0xe08(%rip),%xmm1
mulsd  %xmm0,%xmm1
movapd %xmm1,0x40(%rsp)
movsd  0x10(%rsp),%xmm0
call   1060 <sin@plt>
movaps %xmm0,0x50(%rsp)
lea    0xe96(%rip),%rdi
mov    %r13,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%r15d
mov    %r14,%r12
movsd  0xdc1(%rip),%xmm0
movapd %xmm0,0x10(%rsp)
mov    %r13,%r14
cmp    $0x20,%r12
jae    139a <fft+0x25a>
mov    %rbp,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
movzwl 0xe(%rsp),%eax
div    %r12b
mov    %eax,%ebx
movaps 0x10(%rsp),%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
cmp    $0x8,%r12
movaps %xmm1,0x30(%rsp)
movaps %xmm0,0x10(%rsp)
ja     1300 <fft+0x1c0>
lea    0xe6c(%rip),%rdi
call   1030 <puts@plt>
shr    %bl
movzbl %bl,%ebp
lea    0xde4(%rip),%r13
mov    %r13,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x28(%rsp),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r14,%rcx
movaps 0x10(%rsp),%xmm0
movaps 0x30(%rsp),%xmm1
mov    %ebp,%r8d
call   1050 <calculoButterflyLoopBloco@plt>
mov    $0x1,%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x10(%r15),%rsi
mov    %rbx,%rdi
mov    %r12,%rdx
mov    %r14,%rcx
movaps 0x10(%rsp),%xmm0
movaps 0x30(%rsp),%xmm1
mov    %ebp,%r8d
lea    0xd64(%rip),%rbp
jmp    1328 <fft+0x1e8>
xchg   %ax,%ax
lea    0xddb(%rip),%rdi
call   1030 <puts@plt>
movzbl %bl,%r8d
mov    0x28(%rsp),%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r14,%rcx
movaps 0x10(%rsp),%xmm0
movaps 0x30(%rsp),%xmm1
call   1050 <calculoButterflyLoopBloco@plt>
add    $0x2,%r15
lea    0xd5d(%rip),%rdi
mov    %r15,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %r12,%r15
jae    11b0 <fft+0x70>
movapd 0x30(%rsp),%xmm2
xorpd  0xcd4(%rip),%xmm2
movapd 0x50(%rsp),%xmm0
unpcklpd %xmm0,%xmm0
movapd 0x10(%rsp),%xmm1
unpcklpd %xmm1,%xmm2
mulpd  %xmm0,%xmm2
movapd 0x40(%rsp),%xmm0
unpcklpd %xmm0,%xmm0
mulpd  %xmm1,%xmm0
addpd  %xmm2,%xmm0
addpd  %xmm0,%xmm1
movapd %xmm1,0x10(%rsp)
cmp    $0x20,%r12
jb     1252 <fft+0x112>
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [33 x i8] c">>> Inicio do while -> mmax:%lu\0A\00"
@.str.1 = [25 x i8] c" processa em thread\0A\00"
@.str.2 = [20 x i8] c" qtdBlocos:%lu\0A\00"
@.str.3 = [23 x i8] c" processa na main\0A\00"
@.str.4 = [34 x i8] c" >>> FOR 1 -> m:%lu mmax:%lu\0A\00"
@.str.5 = [43 x i8] c"<<< Final do while -> istep:%lu mmax:%lu\0A\0A\00"
define void @fft(float* %0) {
%2 = alloca float*
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca i64
%15 = alloca i64
store float* %0, float** %2
store i64 2, i64* %3
%16 = load i64, i64* %3
%17 = shl i64 %16, 1
store i64 %17, i64* %6
%18 = load i64, i64* %3
%19 = uitofp i64 %18 to double
%20 = fdiv double 0x401921FB54442D1C, %19
%21 = fmul double 1.000000e+00, %20
store double %21, double* %13
%22 = load double, double* %13
%23 = fmul double 5.000000e-01, %22
%24 = call double @sin(double %23)
store double %24, double* %8
%25 = load double, double* %8
%26 = fmul double -2.000000e+00, %25
%27 = load double, double* %8
%28 = fmul double %26, %27
store double %28, double* %10
%29 = load double, double* %13
%30 = call double @sin(double %29)
store double %30, double* %11
store double 1.000000e+00, double* %9
store double 0.000000e+00, double* %12
store i64 1, i64* %5
br label %31
31: ; preds = %125, %1
%32 = load i64, i64* %3
%33 = icmp ugt i64 32, %32
br i1 %33, label %34, label %126
34: ; preds = %31
%35 = load i64, i64* %3
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i64 %35)
%37 = load i64, i64* %3
%38 = udiv i64 16, %37
%39 = icmp uge i64 %38, 2
br i1 %39, label %40, label %67
40: ; preds = %34
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%42 = load i64, i64* %3
%43 = udiv i64 16, %42
%44 = udiv i64 %43, 2
store i64 %44, i64* %14
store i64 0, i64* %15
br label %45
45: ; preds = %63, %40
%46 = load i64, i64* %15
%47 = icmp ult i64 %46, 2
br i1 %47, label %48, label %66
48: ; preds = %45
%49 = load i64, i64* %15
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i64 %49)
%51 = load float*, float** %2
%52 = load i64, i64* %15
%53 = mul i64 16, %52
%54 = load i64, i64* %5
%55 = add i64 %53, %54
%56 = load i64, i64* %3
%57 = load i64, i64* %6
%58 = load double, double* %9
%59 = load double, double* %12
%60 = load i64, i64* %14
%61 = trunc i64 %60 to i32
%62 = call i32 @calculoButterflyLoopBloco(float* %51, i64 %55, i64 %56, i64 %57, double %58, double %59, i32 %61)
br label %63
63: ; preds = %48
%64 = load i64, i64* %15
%65 = add i64 %64, 1
store i64 %65, i64* %15
br label %45
66: ; preds = %45
br label %79
67: ; preds = %34
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%69 = load float*, float** %2
%70 = load i64, i64* %5
%71 = load i64, i64* %3
%72 = load i64, i64* %6
%73 = load double, double* %9
%74 = load double, double* %12
%75 = load i64, i64* %3
%76 = udiv i64 16, %75
%77 = trunc i64 %76 to i32
%78 = call i32 @calculoButterflyLoopBloco(float* %69, i64 %70, i64 %71, i64 %72, double %73, double %74, i32 %77)
br label %79
79: ; preds = %67, %66
%80 = load double, double* %9
store double %80, double* %8
%81 = load double, double* %10
%82 = load double, double* %12
%83 = load double, double* %11
%84 = fmul double %82, %83
%85 = fneg double %84
%86 = call double @llvm.fmuladd.f64(double %80, double %81, double %85)
%87 = load double, double* %9
%88 = fadd double %86, %87
store double %88, double* %9
%89 = load double, double* %12
%90 = load double, double* %10
%91 = load double, double* %8
%92 = load double, double* %11
%93 = fmul double %91, %92
%94 = call double @llvm.fmuladd.f64(double %89, double %90, double %93)
%95 = load double, double* %12
%96 = fadd double %94, %95
store double %96, double* %12
%97 = load i64, i64* %5
%98 = add i64 %97, 2
store i64 %98, i64* %5
%99 = load i64, i64* %5
%100 = load i64, i64* %3
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i64 %99, i64 %100)
%102 = load i64, i64* %5
%103 = load i64, i64* %3
%104 = icmp uge i64 %102, %103
br i1 %104, label %105, label %125
105: ; preds = %79
%106 = load i64, i64* %6
store i64 %106, i64* %3
%107 = load i64, i64* %3
%108 = shl i64 %107, 1
store i64 %108, i64* %6
%109 = load i64, i64* %3
%110 = uitofp i64 %109 to double
%111 = fdiv double 0x401921FB54442D1C, %110
%112 = fmul double 1.000000e+00, %111
store double %112, double* %13
%113 = load double, double* %13
%114 = fmul double 5.000000e-01, %113
%115 = call double @sin(double %114)
store double %115, double* %8
%116 = load double, double* %8
%117 = fmul double -2.000000e+00, %116
%118 = load double, double* %8
%119 = fmul double %117, %118
store double %119, double* %10
%120 = load double, double* %13
%121 = call double @sin(double %120)
store double %121, double* %11
store double 1.000000e+00, double* %9
store double 0.000000e+00, double* %12
store i64 1, i64* %5
%122 = load i64, i64* %6
%123 = load i64, i64* %3
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0), i64 %122, i64 %123)
br label %125
125: ; preds = %105, %79
br label %31
126: ; preds = %31
ret void
}

LLVM IR (-O2):
@.str = [33 x i8] c">>> Inicio do while -> mmax:%lu\0A\00"
@.str.2 = [20 x i8] c" qtdBlocos:%lu\0A\00"
@.str.4 = [34 x i8] c" >>> FOR 1 -> m:%lu mmax:%lu\0A\00"
@.str.5 = [43 x i8] c"<<< Final do while -> istep:%lu mmax:%lu\0A\0A\00"
@str = [22 x i8] c" processa na main\00"
@str.6 = [24 x i8] c" processa em thread\00"
define void @fft(float* %0) {
br label %2
2: ; preds = %1, %55
%3 = phi i64 [ 2, %1 ], [ %60, %55 ]
%4 = phi double [ 0xBCDDCB3B399D747F, %1 ], [ %59, %55 ]
%5 = phi double [ -2.000000e+00, %1 ], [ %58, %55 ]
%6 = phi i64 [ 1, %1 ], [ %57, %55 ]
%7 = phi i64 [ 4, %1 ], [ %56, %55 ]
%8 = phi <2 x double> [ <double 1.000000e+00, double 0.000000e+00>, %1 ], [ %61, %55 ]
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i64 %3)
%10 = trunc i64 %3 to i8
%11 = udiv i8 16, %10
%12 = icmp ult i64 %3, 9
br i1 %12, label %13, label %24
13: ; preds = %2
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.6, i64 0, i64 0))
%15 = lshr i8 %11, 1
%16 = zext i8 %15 to i32
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i64 0)
%18 = extractelement <2 x double> %8, i64 0
%19 = extractelement <2 x double> %8, i64 1
%20 = tail call i32 @calculoButterflyLoopBloco(float* %0, i64 %6, i64 %3, i64 %7, double %18, double %19, i32 %16)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i64 1)
%22 = add i64 %6, 16
%23 = tail call i32 @calculoButterflyLoopBloco(float* %0, i64 %22, i64 %3, i64 %7, double %18, double %19, i32 %16)
br label %30
24: ; preds = %2
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
%26 = zext i8 %11 to i32
%27 = extractelement <2 x double> %8, i64 0
%28 = extractelement <2 x double> %8, i64 1
%29 = tail call i32 @calculoButterflyLoopBloco(float* %0, i64 %6, i64 %3, i64 %7, double %27, double %28, i32 %26)
br label %30
30: ; preds = %13, %24
%31 = extractelement <2 x double> %8, i64 1
%32 = fneg double %31
%33 = insertelement <2 x double> poison, double %4, i64 0
%34 = shufflevector <2 x double> %33, <2 x double> poison, <2 x i32> zeroinitializer
%35 = insertelement <2 x double> poison, double %32, i64 0
%36 = shufflevector <2 x double> %35, <2 x double> %8, <2 x i32> <i32 0, i32 2>
%37 = fmul <2 x double> %34, %36
%38 = insertelement <2 x double> poison, double %5, i64 0
%39 = shufflevector <2 x double> %38, <2 x double> poison, <2 x i32> zeroinitializer
%40 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %8, <2 x double> %39, <2 x double> %37)
%41 = fadd <2 x double> %8, %40
%42 = add i64 %6, 2
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i64 %42, i64 %3)
%44 = icmp ult i64 %42, %3
br i1 %44, label %55, label %45
45: ; preds = %30
%46 = shl i64 %7, 1
%47 = uitofp i64 %7 to double
%48 = fdiv double 0x401921FB54442D1C, %47
%49 = fmul double %48, 5.000000e-01
%50 = tail call double @sin(double %49)
%51 = fmul double %50, -2.000000e+00
%52 = fmul double %50, %51
%53 = tail call double @sin(double %48)
%54 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0), i64 %46, i64 %7)
br label %55
55: ; preds = %45, %30
%56 = phi i64 [ %46, %45 ], [ %7, %30 ]
%57 = phi i64 [ 1, %45 ], [ %42, %30 ]
%58 = phi double [ %52, %45 ], [ %5, %30 ]
%59 = phi double [ %53, %45 ], [ %4, %30 ]
%60 = phi i64 [ %7, %45 ], [ %3, %30 ]
%61 = phi <2 x double> [ <double 1.000000e+00, double 0.000000e+00>, %45 ], [ %41, %30 ]
%62 = icmp ult i64 %60, 32
br i1 %62, label %2, label %63
63: ; preds = %55
ret void
}