#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 EXIT_SUCCESS;
double M_PI;
double M_SQRT1_2;
double M_SQRT2;
int cosh(double);
double err_bound(int, double, double, double);
scalar_t__ f(double);
double fabs(scalar_t__);
int /*<<< orphan*/ printf(char *, int, double, double);
scalar_t__ sinc_approx(int, double, double, double);
int main() {
  int i, N;
  double K = 2 * cosh(M_PI);
  double d = M_PI / 3.0;
  double mu = 2.0;
  double s, t;
  double err, maxerr;
  for (N = 2; N <= 140; N += 5) {
    t = 0;
    maxerr = fabs(f(t) - sinc_approx(N, d, mu, t));
    s = 1;
    t = 1;
    err = fabs(f(t) - sinc_approx(N, d, mu, t));
    if (maxerr < err)
      maxerr = err;
    err = fabs(f(-t) - sinc_approx(N, d, mu, -t));
    if (maxerr < err)
      maxerr = err;
    for (i = 1; i <= 100; i++) {
      s *= M_SQRT1_2;
      t *= M_SQRT2;
      err = fabs(f(s) - sinc_approx(N, d, mu, s));
      if (maxerr < err)
        maxerr = err;
      err = fabs(f(-s) - sinc_approx(N, d, mu, -s));
      if (maxerr < err)
        maxerr = err;
      err = fabs(f(t) - sinc_approx(N, d, mu, t));
      if (maxerr < err)
        maxerr = err;
      err = fabs(f(-t) - sinc_approx(N, d, mu, -t));
      if (maxerr < err)
        maxerr = err;
    }
    printf("%d\t%e\t%e\n", N, maxerr, err_bound(N, K, d, mu));
  }
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e6f(%rip),%rax
movsd  (%rax),%xmm0
call   1030 <cosh@plt>
shl    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    0x2e53(%rip),%rax
movsd  (%rax),%xmm0
movsd  0xe67(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe4e(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movl   $0x2,-0xc(%rbp)
cmpl   $0x8c,-0xc(%rbp)
jg     154b <main+0x3eb>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
call   1040 <f@plt>
mov    %rax,-0x58(%rbp)
mov    -0xc(%rbp),%edi
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
call   1080 <sinc_approx@plt>
mov    -0x58(%rbp),%rdi
sub    %rax,%rdi
call   1060 <fabs@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  0xdff(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xdf2(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
call   1040 <f@plt>
mov    %rax,-0x50(%rbp)
mov    -0xc(%rbp),%edi
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
call   1080 <sinc_approx@plt>
mov    -0x50(%rbp),%rdi
sub    %rax,%rdi
call   1060 <fabs@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x48(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1277 <main+0x117>
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1040 <f@plt>
mov    %rax,-0x60(%rbp)
mov    -0xc(%rbp),%edi
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
call   1080 <sinc_approx@plt>
mov    -0x60(%rbp),%rdi
sub    %rax,%rdi
call   1060 <fabs@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x48(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    12f9 <main+0x199>
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x64,-0x8(%rbp)
jg     14f3 <main+0x393>
mov    0x2cbf(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    0x2cb2(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1040 <f@plt>
mov    %rax,-0x68(%rbp)
mov    -0xc(%rbp),%edi
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
call   1080 <sinc_approx@plt>
mov    -0x68(%rbp),%rdi
sub    %rax,%rdi
call   1060 <fabs@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x48(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1388 <main+0x228>
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1040 <f@plt>
mov    %rax,-0x70(%rbp)
mov    -0xc(%rbp),%edi
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
call   1080 <sinc_approx@plt>
mov    -0x70(%rbp),%rdi
sub    %rax,%rdi
call   1060 <fabs@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x48(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    140a <main+0x2aa>
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x38(%rbp),%xmm0
call   1040 <f@plt>
mov    %rax,-0x78(%rbp)
mov    -0xc(%rbp),%edi
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
call   1080 <sinc_approx@plt>
mov    -0x78(%rbp),%rdi
sub    %rax,%rdi
call   1060 <fabs@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x48(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    145e <main+0x2fe>
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1040 <f@plt>
mov    %rax,-0x80(%rbp)
mov    -0xc(%rbp),%edi
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
call   1080 <sinc_approx@plt>
mov    -0x80(%rbp),%rdi
sub    %rax,%rdi
call   1060 <fabs@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x48(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    14e0 <main+0x380>
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
jmp    14e5 <main+0x385>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1300 <main+0x1a0>
mov    -0xc(%rbp),%eax
mov    %eax,-0x8c(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0xc(%rbp),%edi
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
call   1070 <err_bound@plt>
mov    -0x8c(%rbp),%esi
movaps %xmm0,%xmm1
movsd  -0x88(%rbp),%xmm0
ff
lea    0xae0(%rip),%rdi
call   1050 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x5,%eax
mov    %eax,-0xc(%rbp)
jmp    11be <main+0x5e>
mov    0x2a76(%rip),%rax
mov    (%rax),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    0x2e73(%rip),%rbx
movsd  (%rbx),%xmm0
call   1030 <cosh@plt>
add    %eax,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x40(%rsp)
movsd  (%rbx),%xmm0
divsd  0xe67(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    $0x2,%r12d
mov    0x2e24(%rip),%r13
mov    0x2e25(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xorpd  %xmm0,%xmm0
call   1040 <f@plt>
mov    %rax,%r15
xorps  %xmm2,%xmm2
mov    %r12d,%edi
movsd  0x8(%rsp),%xmm0
movsd  0xe28(%rip),%xmm1
call   1080 <sinc_approx@plt>
sub    %rax,%r15
mov    %r15,%rdi
call   1060 <fabs@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0xe12(%rip),%xmm0
call   1040 <f@plt>
mov    %rax,%r15
mov    %r12d,%edi
movsd  0x8(%rsp),%xmm0
movsd  0xdf1(%rip),%xmm1
movsd  0xdf1(%rip),%xmm2
call   1080 <sinc_approx@plt>
sub    %rax,%r15
mov    %r15,%rdi
call   1060 <fabs@plt>
maxsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xdd5(%rip),%xmm0
call   1040 <f@plt>
mov    %rax,%r15
mov    %r12d,%edi
movsd  0x8(%rsp),%xmm0
movsd  0xdac(%rip),%xmm1
movsd  0xdb4(%rip),%xmm2
call   1080 <sinc_approx@plt>
sub    %rax,%r15
mov    %r15,%rdi
call   1060 <fabs@plt>
maxsd  0x10(%rsp),%xmm0
movsd  %xmm0,(%rsp)
mov    $0x64,%ebp
movsd  0xd84(%rip),%xmm1
movaps %xmm1,%xmm0
movaps %xmm1,0x10(%rsp)
movaps %xmm1,0x20(%rsp)
nopl   0x0(%rax)
movapd 0x20(%rsp),%xmm1
mulsd  0x0(%r13),%xmm1
movapd %xmm1,0x20(%rsp)
movapd 0x10(%rsp),%xmm0
mulsd  (%r14),%xmm0
movapd %xmm0,0x10(%rsp)
movapd %xmm1,%xmm0
call   1040 <f@plt>
mov    %rax,%rbx
mov    %r12d,%edi
movsd  0x8(%rsp),%xmm0
movsd  0xd28(%rip),%xmm1
movaps 0x20(%rsp),%xmm2
call   1080 <sinc_approx@plt>
sub    %rax,%rbx
mov    %rbx,%rdi
call   1060 <fabs@plt>
maxsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movaps 0x20(%rsp),%xmm1
movaps 0xd15(%rip),%xmm0
xorps  %xmm0,%xmm1
movaps %xmm1,0x30(%rsp)
movaps %xmm1,%xmm0
call   1040 <f@plt>
mov    %rax,%rbx
mov    %r12d,%edi
movsd  0x8(%rsp),%xmm0
movsd  0xcd9(%rip),%xmm1
movaps 0x30(%rsp),%xmm2
call   1080 <sinc_approx@plt>
sub    %rax,%rbx
mov    %rbx,%rdi
call   1060 <fabs@plt>
maxsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movaps 0x10(%rsp),%xmm0
call   1040 <f@plt>
mov    %rax,%rbx
mov    %r12d,%edi
movsd  0x8(%rsp),%xmm0
movsd  0xc9c(%rip),%xmm1
movaps 0x10(%rsp),%xmm2
call   1080 <sinc_approx@plt>
sub    %rax,%rbx
mov    %rbx,%rdi
call   1060 <fabs@plt>
maxsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movaps 0x10(%rsp),%xmm0
xorps  0xc89(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
call   1040 <f@plt>
mov    %rax,%rbx
mov    %r12d,%edi
movsd  0x8(%rsp),%xmm0
movsd  0xc53(%rip),%xmm1
movaps 0x30(%rsp),%xmm2
call   1080 <sinc_approx@plt>
sub    %rax,%rbx
mov    %rbx,%rdi
call   1060 <fabs@plt>
maxsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
add    $0xffffffff,%ebp
jne    12a0 <main+0x140>
mov    %r12d,%edi
movsd  0x40(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0xc14(%rip),%xmm2
call   1070 <err_bound@plt>
movaps %xmm0,%xmm1
lea    0xc2d(%rip),%rdi
mov    %r12d,%esi
movsd  (%rsp),%xmm0
call   1050 <printf@plt>
lea    0x5(%r12),%eax
cmp    $0x88,%r12d
mov    %eax,%r12d
jb     11c0 <main+0x60>
mov    0x2b9c(%rip),%rax
mov    (%rax),%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@M_PI = global double 0.000000e+00
@M_SQRT1_2 = global double 0.000000e+00
@M_SQRT2 = global double 0.000000e+00
@.str = [10 x i8] c"%d\09%e\09%e\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
store i32 0, i32* %1
%11 = load double, double* @M_PI
%12 = call i32 @cosh(double %11)
%13 = mul nsw i32 2, %12
%14 = sitofp i32 %13 to double
store double %14, double* %4
%15 = load double, double* @M_PI
%16 = fdiv double %15, 3.000000e+00
store double %16, double* %5
store double 2.000000e+00, double* %6
store i32 2, i32* %3
br label %17
17: ; preds = %148, %0
%18 = load i32, i32* %3
%19 = icmp sle i32 %18, 140
br i1 %19, label %20, label %151
20: ; preds = %17
store double 0.000000e+00, double* %8
%21 = load double, double* %8
%22 = call i64 @f(double %21)
%23 = load i32, i32* %3
%24 = load double, double* %5
%25 = load double, double* %6
%26 = load double, double* %8
%27 = call i64 @sinc_approx(i32 %23, double %24, double %25, double %26)
%28 = sub nsw i64 %22, %27
%29 = call double @fabs(i64 %28)
store double %29, double* %10
store double 1.000000e+00, double* %7
store double 1.000000e+00, double* %8
%30 = load double, double* %8
%31 = call i64 @f(double %30)
%32 = load i32, i32* %3
%33 = load double, double* %5
%34 = load double, double* %6
%35 = load double, double* %8
%36 = call i64 @sinc_approx(i32 %32, double %33, double %34, double %35)
%37 = sub nsw i64 %31, %36
%38 = call double @fabs(i64 %37)
store double %38, double* %9
%39 = load double, double* %10
%40 = load double, double* %9
%41 = fcmp olt double %39, %40
br i1 %41, label %42, label %44
42: ; preds = %20
%43 = load double, double* %9
store double %43, double* %10
br label %44
44: ; preds = %42, %20
%45 = load double, double* %8
%46 = fneg double %45
%47 = call i64 @f(double %46)
%48 = load i32, i32* %3
%49 = load double, double* %5
%50 = load double, double* %6
%51 = load double, double* %8
%52 = fneg double %51
%53 = call i64 @sinc_approx(i32 %48, double %49, double %50, double %52)
%54 = sub nsw i64 %47, %53
%55 = call double @fabs(i64 %54)
store double %55, double* %9
%56 = load double, double* %10
%57 = load double, double* %9
%58 = fcmp olt double %56, %57
br i1 %58, label %59, label %61
59: ; preds = %44
%60 = load double, double* %9
store double %60, double* %10
br label %61
61: ; preds = %59, %44
store i32 1, i32* %2
br label %62
62: ; preds = %136, %61
%63 = load i32, i32* %2
%64 = icmp sle i32 %63, 100
br i1 %64, label %65, label %139
65: ; preds = %62
%66 = load double, double* @M_SQRT1_2
%67 = load double, double* %7
%68 = fmul double %67, %66
store double %68, double* %7
%69 = load double, double* @M_SQRT2
%70 = load double, double* %8
%71 = fmul double %70, %69
store double %71, double* %8
%72 = load double, double* %7
%73 = call i64 @f(double %72)
%74 = load i32, i32* %3
%75 = load double, double* %5
%76 = load double, double* %6
%77 = load double, double* %7
%78 = call i64 @sinc_approx(i32 %74, double %75, double %76, double %77)
%79 = sub nsw i64 %73, %78
%80 = call double @fabs(i64 %79)
store double %80, double* %9
%81 = load double, double* %10
%82 = load double, double* %9
%83 = fcmp olt double %81, %82
br i1 %83, label %84, label %86
84: ; preds = %65
%85 = load double, double* %9
store double %85, double* %10
br label %86
86: ; preds = %84, %65
%87 = load double, double* %7
%88 = fneg double %87
%89 = call i64 @f(double %88)
%90 = load i32, i32* %3
%91 = load double, double* %5
%92 = load double, double* %6
%93 = load double, double* %7
%94 = fneg double %93
%95 = call i64 @sinc_approx(i32 %90, double %91, double %92, double %94)
%96 = sub nsw i64 %89, %95
%97 = call double @fabs(i64 %96)
store double %97, double* %9
%98 = load double, double* %10
%99 = load double, double* %9
%100 = fcmp olt double %98, %99
br i1 %100, label %101, label %103
101: ; preds = %86
%102 = load double, double* %9
store double %102, double* %10
br label %103
103: ; preds = %101, %86
%104 = load double, double* %8
%105 = call i64 @f(double %104)
%106 = load i32, i32* %3
%107 = load double, double* %5
%108 = load double, double* %6
%109 = load double, double* %8
%110 = call i64 @sinc_approx(i32 %106, double %107, double %108, double %109)
%111 = sub nsw i64 %105, %110
%112 = call double @fabs(i64 %111)
store double %112, double* %9
%113 = load double, double* %10
%114 = load double, double* %9
%115 = fcmp olt double %113, %114
br i1 %115, label %116, label %118
116: ; preds = %103
%117 = load double, double* %9
store double %117, double* %10
br label %118
118: ; preds = %116, %103
%119 = load double, double* %8
%120 = fneg double %119
%121 = call i64 @f(double %120)
%122 = load i32, i32* %3
%123 = load double, double* %5
%124 = load double, double* %6
%125 = load double, double* %8
%126 = fneg double %125
%127 = call i64 @sinc_approx(i32 %122, double %123, double %124, double %126)
%128 = sub nsw i64 %121, %127
%129 = call double @fabs(i64 %128)
store double %129, double* %9
%130 = load double, double* %10
%131 = load double, double* %9
%132 = fcmp olt double %130, %131
br i1 %132, label %133, label %135
133: ; preds = %118
%134 = load double, double* %9
store double %134, double* %10
br label %135
135: ; preds = %133, %118
br label %136
136: ; preds = %135
%137 = load i32, i32* %2
%138 = add nsw i32 %137, 1
store i32 %138, i32* %2
br label %62
139: ; preds = %62
%140 = load i32, i32* %3
%141 = load double, double* %10
%142 = load i32, i32* %3
%143 = load double, double* %4
%144 = load double, double* %5
%145 = load double, double* %6
%146 = call double @err_bound(i32 %142, double %143, double %144, double %145)
%147 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %140, double %141, double %146)
br label %148
148: ; preds = %139
%149 = load i32, i32* %3
%150 = add nsw i32 %149, 5
store i32 %150, i32* %3
br label %17
151: ; preds = %17
%152 = load i32, i32* @EXIT_SUCCESS
ret i32 %152
}

LLVM IR (-O2):
@M_PI = global double 0.000000e+00
@M_SQRT1_2 = global double 0.000000e+00
@M_SQRT2 = global double 0.000000e+00
@.str = [10 x i8] c"%d\09%e\09%e\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = load double, double* @M_PI
%2 = tail call i32 @cosh(double %1)
%3 = shl nsw i32 %2, 1
%4 = sitofp i32 %3 to double
%5 = load double, double* @M_PI
%6 = fdiv double %5, 3.000000e+00
br label %7
7: ; preds = %0, %62
%8 = phi i32 [ 2, %0 ], [ %65, %62 ]
%9 = tail call i64 @f(double 0.000000e+00)
%10 = tail call i64 @sinc_approx(i32 %8, double %6, double 2.000000e+00, double 0.000000e+00)
%11 = sub nsw i64 %9, %10
%12 = tail call double @fabs(i64 %11)
%13 = tail call i64 @f(double 1.000000e+00)
%14 = tail call i64 @sinc_approx(i32 %8, double %6, double 2.000000e+00, double 1.000000e+00)
%15 = sub nsw i64 %13, %14
%16 = tail call double @fabs(i64 %15)
%17 = fcmp olt double %12, %16
%18 = select i1 %17, double %16, double %12
%19 = tail call i64 @f(double -1.000000e+00)
%20 = tail call i64 @sinc_approx(i32 %8, double %6, double 2.000000e+00, double -1.000000e+00)
%21 = sub nsw i64 %19, %20
%22 = tail call double @fabs(i64 %21)
%23 = fcmp olt double %18, %22
%24 = select i1 %23, double %22, double %18
br label %25
25: ; preds = %7, %25
%26 = phi double [ %24, %7 ], [ %59, %25 ]
%27 = phi double [ 1.000000e+00, %7 ], [ %33, %25 ]
%28 = phi double [ 1.000000e+00, %7 ], [ %31, %25 ]
%29 = phi i32 [ 1, %7 ], [ %60, %25 ]
%30 = load double, double* @M_SQRT1_2
%31 = fmul double %28, %30
%32 = load double, double* @M_SQRT2
%33 = fmul double %27, %32
%34 = tail call i64 @f(double %31)
%35 = tail call i64 @sinc_approx(i32 %8, double %6, double 2.000000e+00, double %31)
%36 = sub nsw i64 %34, %35
%37 = tail call double @fabs(i64 %36)
%38 = fcmp olt double %26, %37
%39 = select i1 %38, double %37, double %26
%40 = fneg double %31
%41 = tail call i64 @f(double %40)
%42 = tail call i64 @sinc_approx(i32 %8, double %6, double 2.000000e+00, double %40)
%43 = sub nsw i64 %41, %42
%44 = tail call double @fabs(i64 %43)
%45 = fcmp olt double %39, %44
%46 = select i1 %45, double %44, double %39
%47 = tail call i64 @f(double %33)
%48 = tail call i64 @sinc_approx(i32 %8, double %6, double 2.000000e+00, double %33)
%49 = sub nsw i64 %47, %48
%50 = tail call double @fabs(i64 %49)
%51 = fcmp olt double %46, %50
%52 = select i1 %51, double %50, double %46
%53 = fneg double %33
%54 = tail call i64 @f(double %53)
%55 = tail call i64 @sinc_approx(i32 %8, double %6, double 2.000000e+00, double %53)
%56 = sub nsw i64 %54, %55
%57 = tail call double @fabs(i64 %56)
%58 = fcmp olt double %52, %57
%59 = select i1 %58, double %57, double %52
%60 = add nuw nsw i32 %29, 1
%61 = icmp eq i32 %60, 101
br i1 %61, label %62, label %25
62: ; preds = %25
%63 = tail call double @err_bound(i32 %8, double %4, double %6, double 2.000000e+00)
%64 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %8, double %59, double %63)
%65 = add nuw nsw i32 %8, 5
%66 = icmp ult i32 %8, 136
br i1 %66, label %7, label %67
67: ; preds = %62
%68 = load i32, i32* @EXIT_SUCCESS
ret i32 %68
}