#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 */
float M_PI;
double atan(double);
double cos(double);
int /*<<< orphan*/ printf(char *, ...);
double sin(double);
int main() {
  unsigned int n = 16;
  double theta = M_PI / 3.0f;
  double r = 1.8f;
  double xf = r * cos(theta);
  double yf = r * sin(theta);
  double sintab[n];
  double inv_2_n = 1.0;
  unsigned int i;
  for (i = 0; i < n; i++) {
    sintab[i] = atan(inv_2_n);
    inv_2_n *= 0.5;
  }
  double k_inv = 0.6072529350088812561694467525049282631123908521500897724;
  double x = xf;
  double y = yf;
  double z = 0.0;
  double v = 1.0;
  double d, tx, ty, tz;
  printf("   n           x            y            z         -d*An\n");
  printf("init %12.8f %12.8f %12.8f %12.8f\n", x, y, z, 0.0);
  for (i = 0; i < n; i++) {
    d = (y >= 0.0) ? -1 : 1;
    tx = x - d * v * y;
    ty = y + d * v * x;
    tz = z - d * sintab[i];
    x = tx;
    y = ty;
    z = tz;
    v *= 0.5;
    printf("%4u %12.8f %12.8f %12.8f %12.8f\n", i, x, y, z, d * sintab[i]);
  }
  double r_hat = x * k_inv;
  double theta_hat = z;
  printf("res :%12.8f %12.8f\n", r_hat, theta_hat);
  printf("true:%12.8f %12.8f\n", r, theta);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x10,-0x8(%rbp)
mov    0x2e88(%rip),%rax
movss  (%rax),%xmm0
movss  0xeac(%rip),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
movabs $0x3ffcccccc0000000,%rax
cc fc 3f
mov    %rax,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
call   1060 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0xb8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0xb0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x8(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x30(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xa8(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x38(%rbp)
movsd  0xdf1(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    1260 <main+0x120>
movsd  -0x40(%rbp),%xmm0
call   1050 <atan@plt>
mov    -0xa8(%rbp),%rax
mov    -0x44(%rbp),%ecx
movsd  %xmm0,(%rax,%rcx,8)
movsd  0xdc8(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    121b <main+0xdb>
movsd  0xda0(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0xd6f(%rip),%xmm0
movsd  %xmm0,-0x70(%rbp)
lea    0xd7f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x58(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm2
lea    0xd9c(%rip),%rdi
xorps  %xmm3,%xmm3
mov    $0x4,%al
call   1030 <printf@plt>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    1406 <main+0x2c6>
mov    -0xa8(%rbp),%rax
movsd  -0x60(%rbp),%xmm0
xorps  %xmm1,%xmm1
mov    $0x1,%ecx
mov    $0xffffffff,%edx
ucomisd %xmm1,%xmm0
cmovae %edx,%ecx
cvtsi2sd %ecx,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x58(%rbp),%xmm1
movsd  -0x78(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movq   %xmm0,%rcx
movabs $0x8000000000000000,%rdx
xor    %rdx,%rcx
movq   %rcx,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x60(%rbp),%xmm1
movsd  -0x78(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x68(%rbp),%xmm1
movsd  -0x78(%rbp),%xmm0
mov    -0x44(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm2
movq   %xmm0,%rcx
movabs $0x8000000000000000,%rdx
xor    %rdx,%rcx
movq   %rcx,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x60(%rbp)
movsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x68(%rbp)
movsd  0xc4f(%rip),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x44(%rbp),%esi
movsd  -0x58(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm3
mov    -0x44(%rbp),%ecx
mulsd  (%rax,%rcx,8),%xmm3
lea    0xc87(%rip),%rdi
mov    $0x4,%al
call   1030 <printf@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    12cb <main+0x18b>
movsd  -0x58(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm1
ff
lea    0xc5d(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movsd  -0x18(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
lea    0xc59(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0xb0,%rsp
mov    0x2e85(%rip),%rax
movss  (%rax),%xmm0
divss  0xe91(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x18(%rsp)
call   1070 <cos@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x18(%rsp),%xmm0
call   1050 <sin@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0xe6b(%rip),%xmm0
call   1060 <atan@plt>
movsd  0xe66(%rip),%xmm0
call   1060 <atan@plt>
movaps 0xefa(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movsd  0xe55(%rip),%xmm0
call   1060 <atan@plt>
movsd  0xe50(%rip),%xmm0
call   1060 <atan@plt>
movaps 0xee4(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movsd  0xe3f(%rip),%xmm0
call   1060 <atan@plt>
movsd  0xe3a(%rip),%xmm0
call   1060 <atan@plt>
movaps 0xece(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movsd  0xe29(%rip),%xmm0
call   1060 <atan@plt>
movsd  0xe24(%rip),%xmm0
call   1060 <atan@plt>
movaps 0xeb8(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movsd  0xe13(%rip),%xmm0
call   1060 <atan@plt>
movsd  0xe0e(%rip),%xmm0
call   1060 <atan@plt>
movaps 0xea2(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movsd  0xdfd(%rip),%xmm0
call   1060 <atan@plt>
movsd  0xdf8(%rip),%xmm0
call   1060 <atan@plt>
movaps 0xe8c(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movsd  0xde4(%rip),%xmm0
call   1060 <atan@plt>
movsd  0xddf(%rip),%xmm0
call   1060 <atan@plt>
movaps 0xe73(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movsd  0xdcb(%rip),%xmm0
call   1060 <atan@plt>
movsd  0xdc6(%rip),%xmm0
call   1060 <atan@plt>
movaps 0xe5a(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movsd  0xdb2(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0x10(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
lea    0xeae(%rip),%rdi
call   1030 <puts@plt>
lea    0xe37(%rip),%rdi
xorpd  %xmm2,%xmm2
xorps  %xmm3,%xmm3
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
mov    $0x4,%al
call   1040 <printf@plt>
movsd  0xcdd(%rip),%xmm0
movsd  0xd5d(%rip),%xmm3
xor    %ebx,%ebx
lea    0xdf4(%rip),%r15
lea    0xe1f(%rip),%r14
xorpd  %xmm2,%xmm2
nopw   0x0(%rax,%rax,1)
movsd  0x10(%rsp),%xmm4
xor    %eax,%eax
ucomisd 0xd40(%rip),%xmm4
setae  %al
movsd  (%r15,%rax,8),%xmm5
movsd  %xmm0,0x28(%rsp)
movapd %xmm0,%xmm1
mulsd  %xmm5,%xmm1
movapd %xmm1,%xmm6
mulsd  %xmm4,%xmm6
movsd  0x8(%rsp),%xmm0
mulsd  %xmm0,%xmm1
subsd  %xmm6,%xmm0
addsd  %xmm4,%xmm1
mulsd  %xmm5,%xmm3
subsd  %xmm3,%xmm2
mov    %r14,%rdi
mov    %ebx,%esi
movsd  %xmm0,0x8(%rsp)
movsd  %xmm1,0x10(%rsp)
movsd  %xmm2,0x20(%rsp)
mov    $0x4,%al
call   1040 <printf@plt>
cmp    $0xf,%rbx
je     13e0 <main+0x290>
movsd  0x28(%rsp),%xmm0
mulsd  0xc45(%rip),%xmm0
movsd  0x38(%rsp,%rbx,8),%xmm3
add    $0x1,%rbx
movsd  0x20(%rsp),%xmm2
jmp    1350 <main+0x200>
movsd  0x8(%rsp),%xmm0
mulsd  0xcaa(%rip),%xmm0
lea    0xd8e(%rip),%rdi
movsd  0x20(%rsp),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
lea    0xd8e(%rip),%rdi
movsd  0xc77(%rip),%xmm0
movsd  0x18(%rsp),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@M_PI = global float 0.000000e+00
@.str = [58 x i8] c" n x y z -d*An\0A\00"
@.str.1 = [34 x i8] c"init %12.8f %12.8f %12.8f %12.8f\0A\00"
@.str.2 = [33 x i8] c"%4u %12.8f %12.8f %12.8f %12.8f\0A\00"
@.str.3 = [20 x i8] c"res :%12.8f %12.8f\0A\00"
@.str.4 = [20 x i8] c"true:%12.8f %12.8f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca i8*
%8 = alloca i64
%9 = alloca double
%10 = alloca i32
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
store i32 0, i32* %1
store i32 16, i32* %2
%22 = load float, float* @M_PI
%23 = fdiv float %22, 3.000000e+00
%24 = fpext float %23 to double
store double %24, double* %3
store double 0x3FFCCCCCC0000000, double* %4
%25 = load double, double* %4
%26 = load double, double* %3
%27 = call double @cos(double %26)
%28 = fmul double %25, %27
store double %28, double* %5
%29 = load double, double* %4
%30 = load double, double* %3
%31 = call double @sin(double %30)
%32 = fmul double %29, %31
store double %32, double* %6
%33 = load i32, i32* %2
%34 = zext i32 %33 to i64
%35 = call i8* @llvm.stacksave()
store i8* %35, i8** %7
%36 = alloca double, i64 %34
store i64 %34, i64* %8
store double 1.000000e+00, double* %9
store i32 0, i32* %10
br label %37
37: ; preds = %49, %0
%38 = load i32, i32* %10
%39 = load i32, i32* %2
%40 = icmp ult i32 %38, %39
br i1 %40, label %41, label %52
41: ; preds = %37
%42 = load double, double* %9
%43 = call double @atan(double %42)
%44 = load i32, i32* %10
%45 = zext i32 %44 to i64
%46 = getelementptr inbounds double, double* %36, i64 %45
store double %43, double* %46
%47 = load double, double* %9
%48 = fmul double %47, 5.000000e-01
store double %48, double* %9
br label %49
49: ; preds = %41
%50 = load i32, i32* %10
%51 = add i32 %50, 1
store i32 %51, i32* %10
br label %37
52: ; preds = %37
store double 0x3FE36E9DB5086BCB, double* %11
%53 = load double, double* %5
store double %53, double* %12
%54 = load double, double* %6
store double %54, double* %13
store double 0.000000e+00, double* %14
store double 1.000000e+00, double* %15
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0))
%56 = load double, double* %12
%57 = load double, double* %13
%58 = load double, double* %14
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), double %56, double %57, double %58, double 0.000000e+00)
store i32 0, i32* %10
br label %60
60: ; preds = %107, %52
%61 = load i32, i32* %10
%62 = load i32, i32* %2
%63 = icmp ult i32 %61, %62
br i1 %63, label %64, label %110
64: ; preds = %60
%65 = load double, double* %13
%66 = fcmp oge double %65, 0.000000e+00
%67 = zext i1 %66 to i64
%68 = select i1 %66, i32 -1, i32 1
%69 = sitofp i32 %68 to double
store double %69, double* %16
%70 = load double, double* %12
%71 = load double, double* %16
%72 = load double, double* %15
%73 = fmul double %71, %72
%74 = load double, double* %13
%75 = fneg double %73
%76 = call double @llvm.fmuladd.f64(double %75, double %74, double %70)
store double %76, double* %17
%77 = load double, double* %13
%78 = load double, double* %16
%79 = load double, double* %15
%80 = fmul double %78, %79
%81 = load double, double* %12
%82 = call double @llvm.fmuladd.f64(double %80, double %81, double %77)
store double %82, double* %18
%83 = load double, double* %14
%84 = load double, double* %16
%85 = load i32, i32* %10
%86 = zext i32 %85 to i64
%87 = getelementptr inbounds double, double* %36, i64 %86
%88 = load double, double* %87
%89 = fneg double %84
%90 = call double @llvm.fmuladd.f64(double %89, double %88, double %83)
store double %90, double* %19
%91 = load double, double* %17
store double %91, double* %12
%92 = load double, double* %18
store double %92, double* %13
%93 = load double, double* %19
store double %93, double* %14
%94 = load double, double* %15
%95 = fmul double %94, 5.000000e-01
store double %95, double* %15
%96 = load i32, i32* %10
%97 = load double, double* %12
%98 = load double, double* %13
%99 = load double, double* %14
%100 = load double, double* %16
%101 = load i32, i32* %10
%102 = zext i32 %101 to i64
%103 = getelementptr inbounds double, double* %36, i64 %102
%104 = load double, double* %103
%105 = fmul double %100, %104
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %96, double %97, double %98, double %99, double %105)
br label %107
107: ; preds = %64
%108 = load i32, i32* %10
%109 = add i32 %108, 1
store i32 %109, i32* %10
br label %60
110: ; preds = %60
%111 = load double, double* %12
%112 = load double, double* %11
%113 = fmul double %111, %112
store double %113, double* %20
%114 = load double, double* %14
store double %114, double* %21
%115 = load double, double* %20
%116 = load double, double* %21
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), double %115, double %116)
%118 = load double, double* %4
%119 = load double, double* %3
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), double %118, double %119)
store i32 0, i32* %1
%121 = load i8*, i8** %7
%122 = load i32, i32* %1
ret i32 %122
}

LLVM IR (-O2):
@M_PI = global float 0.000000e+00
@.str.1 = [34 x i8] c"init %12.8f %12.8f %12.8f %12.8f\0A\00"
@.str.2 = [33 x i8] c"%4u %12.8f %12.8f %12.8f %12.8f\0A\00"
@.str.3 = [20 x i8] c"res :%12.8f %12.8f\0A\00"
@.str.4 = [20 x i8] c"true:%12.8f %12.8f\0A\00"
@str = [57 x i8] c" n x y z -d*An\00"
define i32 @main() {
%1 = load float, float* @M_PI
%2 = fdiv float %1, 3.000000e+00
%3 = fpext float %2 to double
%4 = tail call double @cos(double %3)
%5 = tail call double @sin(double %3)
%6 = alloca [16 x double]
%7 = tail call double @atan(double 1.000000e+00)
%8 = tail call double @atan(double 5.000000e-01)
%9 = bitcast [16 x double]* %6 to <2 x double>*
store <2 x double> <double 0x3FE921FB54442D18, double 0x3FDDAC670561BB4F>, <2 x double>* %9
%10 = tail call double @atan(double 2.500000e-01)
%11 = getelementptr inbounds [16 x double], [16 x double]* %6, i64 0, i64 2
%12 = tail call double @atan(double 1.250000e-01)
%13 = bitcast double* %11 to <2 x double>*
store <2 x double> <double 0x3FCF5B75F92C80DD, double 0x3FBFD5BA9AAC2F6E>, <2 x double>* %13
%14 = tail call double @atan(double 6.250000e-02)
%15 = getelementptr inbounds [16 x double], [16 x double]* %6, i64 0, i64 4
%16 = tail call double @atan(double 3.125000e-02)
%17 = bitcast double* %15 to <2 x double>*
store <2 x double> <double 0x3FAFF55BB72CFDEA, double 0x3F9FFD55BBA97625>, <2 x double>* %17
%18 = tail call double @atan(double 1.562500e-02)
%19 = getelementptr inbounds [16 x double], [16 x double]* %6, i64 0, i64 6
%20 = tail call double @atan(double 7.812500e-03)
%21 = bitcast double* %19 to <2 x double>*
store <2 x double> <double 0x3F8FFF555BBB729B, double 0x3F7FFFD555BBBA97>, <2 x double>* %21
%22 = tail call double @atan(double 3.906250e-03)
%23 = getelementptr inbounds [16 x double], [16 x double]* %6, i64 0, i64 8
%24 = tail call double @atan(double 0x3F60000000000000)
%25 = bitcast double* %23 to <2 x double>*
store <2 x double> <double 0x3F6FFFF5555BBBB7, double 0x3F5FFFFD5555BBBC>, <2 x double>* %25
%26 = tail call double @atan(double 0x3F50000000000000)
%27 = getelementptr inbounds [16 x double], [16 x double]* %6, i64 0, i64 10
%28 = tail call double @atan(double 0x3F40000000000000)
%29 = bitcast double* %27 to <2 x double>*
store <2 x double> <double 0x3F4FFFFF55555BBC, double 0x3F3FFFFFD55555BC>, <2 x double>* %29
%30 = tail call double @atan(double 0x3F30000000000000)
%31 = getelementptr inbounds [16 x double], [16 x double]* %6, i64 0, i64 12
%32 = tail call double @atan(double 0x3F20000000000000)
%33 = bitcast double* %31 to <2 x double>*
store <2 x double> <double 0x3F2FFFFFF555555C, double 0x3F1FFFFFFD555556>, <2 x double>* %33
%34 = tail call double @atan(double 0x3F10000000000000)
%35 = getelementptr inbounds [16 x double], [16 x double]* %6, i64 0, i64 14
%36 = tail call double @atan(double 0x3F00000000000000)
%37 = bitcast double* %35 to <2 x double>*
store <2 x double> <double 0x3F0FFFFFFF555555, double 0x3EFFFFFFFFD55555>, <2 x double>* %37
%38 = fmul double %4, 0x3FFCCCCCC0000000
%39 = fmul double %5, 0x3FFCCCCCC0000000
%40 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str, i64 0, i64 0))
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), double %38, double %39, double 0.000000e+00, double 0.000000e+00)
br label %42
42: ; preds = %62, %0
%43 = phi double [ 0x3FE921FB54442D18, %0 ], [ %65, %62 ]
%44 = phi i64 [ 0, %0 ], [ %60, %62 ]
%45 = phi double [ %38, %0 ], [ %53, %62 ]
%46 = phi double [ %39, %0 ], [ %54, %62 ]
%47 = phi double [ 0.000000e+00, %0 ], [ %56, %62 ]
%48 = phi double [ 1.000000e+00, %0 ], [ %63, %62 ]
%49 = fcmp oge double %46, 0.000000e+00
%50 = select i1 %49, double -1.000000e+00, double 1.000000e+00
%51 = fmul double %48, %50
%52 = fneg double %51
%53 = tail call double @llvm.fmuladd.f64(double %52, double %46, double %45)
%54 = tail call double @llvm.fmuladd.f64(double %51, double %45, double %46)
%55 = fneg double %50
%56 = tail call double @llvm.fmuladd.f64(double %55, double %43, double %47)
%57 = fmul double %50, %43
%58 = trunc i64 %44 to i32
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %58, double %53, double %54, double %56, double %57)
%60 = add nuw nsw i64 %44, 1
%61 = icmp eq i64 %60, 16
br i1 %61, label %66, label %62
62: ; preds = %42
%63 = fmul double %48, 5.000000e-01
%64 = getelementptr inbounds [16 x double], [16 x double]* %6, i64 0, i64 %60
%65 = load double, double* %64
br label %42
66: ; preds = %42
%67 = fmul double %53, 0x3FE36E9DB5086BCB
%68 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), double %67, double %56)
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), double 0x3FFCCCCCC0000000, double %3)
ret i32 0
}