#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 fabs(float);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, float *, float *);
int y(float);
int main() {
  float x0, xn, h, s = 0, s_old = 0, err = 0, err_old = 0;
  float e = .00005;
  float val;
  int i = 0, n = 1, count = 0;
  printf("Enter x0,xn :");
  scanf("%f%f", &x0, &xn);
  val = err - err_old;
  printf("i\tn\tI\t\tabs err\t\t(abs error - old abs error)\n");
  while (!((count > 0) && (val < e))) {
    h = (xn - x0) / n;
    s_old = s;
    s = y(x0) + y(xn) + 4 * y(x0 + h);
    for (i = 3; i <= n - 1; i += 2) {
      s += 4 * y(x0 + i * h) + 2 * y(x0 + (i - 1) * h);
    }
    s *= (h / 3);
    err_old = err;
    err = s - s_old;
    val = fabs(fabs(err) - fabs(err_old));
    if (count >= 2)
      printf("%d\t%d\t%f\t%f\t%f\n", count, n, s, fabs(err), val);
    else if (count == 0)
      printf("%d\t%d\t%f\tNA\t\tNA\n", count, n, s);
    else
      printf("%d\t%d\t%f\t%f\tNA\n", count, n, s, fabs(err));
    count++;
    n++;
  }
  printf("\n\nI = %f\n", s);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  0xe89(%rip),%xmm0
movss  %xmm0,-0x24(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x1,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
lea    0xe70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe70(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1060 <scanf@plt>
movss  -0x1c(%rbp),%xmm0
subss  -0x20(%rbp),%xmm0
movss  %xmm0,-0x28(%rbp)
lea    0xe52(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
cmpl   $0x0,-0x34(%rbp)
mov    %al,-0x35(%rbp)
jle    11f2 <main+0xb2>
movss  -0x28(%rbp),%xmm1
movss  -0x24(%rbp),%xmm0
ucomiss %xmm1,%xmm0
seta   %al
mov    %al,-0x35(%rbp)
mov    -0x35(%rbp),%al
xor    $0xff,%al
test   $0x1,%al
jne    1204 <main+0xc4>
jmp    1435 <main+0x2f5>
movss  -0xc(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
cvtsi2ssl -0x30(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x8(%rbp),%xmm0
call   1050 <y@plt>
mov    %eax,-0x40(%rbp)
movss  -0xc(%rbp),%xmm0
call   1050 <y@plt>
mov    %eax,%ecx
mov    -0x40(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x3c(%rbp)
movss  -0x8(%rbp),%xmm0
addss  -0x10(%rbp),%xmm0
call   1050 <y@plt>
mov    %eax,%ecx
mov    -0x3c(%rbp),%eax
shl    $0x2,%ecx
add    %ecx,%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x14(%rbp)
movl   $0x3,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     12ea <main+0x1aa>
movss  -0x8(%rbp),%xmm1
cvtsi2ssl -0x2c(%rbp),%xmm0
movss  -0x10(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1050 <y@plt>
shl    $0x2,%eax
mov    %eax,-0x44(%rbp)
movss  -0x8(%rbp),%xmm1
mov    -0x2c(%rbp),%eax
sub    $0x1,%eax
cvtsi2ss %eax,%xmm0
movss  -0x10(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1050 <y@plt>
mov    %eax,%ecx
mov    -0x44(%rbp),%eax
shl    $0x1,%ecx
add    %ecx,%eax
cvtsi2ss %eax,%xmm0
addss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x2c(%rbp)
jmp    1270 <main+0x130>
movss  -0x10(%rbp),%xmm0
movss  0xd0d(%rip),%xmm1
divss  %xmm1,%xmm0
mulss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x1c(%rbp),%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x14(%rbp),%xmm0
subss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm0
call   1040 <fabs@plt>
movsd  %xmm0,-0x50(%rbp)
movss  -0x20(%rbp),%xmm0
call   1040 <fabs@plt>
movaps %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1040 <fabs@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x28(%rbp)
cmpl   $0x2,-0x34(%rbp)
jl     13ad <main+0x26d>
mov    -0x34(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x5c(%rbp)
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
movss  -0x1c(%rbp),%xmm0
call   1040 <fabs@plt>
mov    -0x60(%rbp),%esi
mov    -0x5c(%rbp),%edx
movaps %xmm0,%xmm1
movsd  -0x58(%rbp),%xmm0
movss  -0x28(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xca7(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
jmp    141e <main+0x2de>
cmpl   $0x0,-0x34(%rbp)
jne    13d9 <main+0x299>
mov    -0x34(%rbp),%esi
mov    -0x30(%rbp),%edx
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc8b(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    1419 <main+0x2d9>
mov    -0x34(%rbp),%eax
mov    %eax,-0x70(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x6c(%rbp)
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
movss  -0x1c(%rbp),%xmm0
call   1040 <fabs@plt>
mov    -0x70(%rbp),%esi
mov    -0x6c(%rbp),%edx
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
lea    0xc57(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
jmp    141e <main+0x2de>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    11d0 <main+0x90>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc34(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xea3(%rip),%rdi
xor    %r13d,%r13d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xea0(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x24(%rsp),%rdx
call   1070 <scanf@plt>
lea    0xeca(%rip),%rdi
call   1030 <puts@plt>
xorps  %xmm0,%xmm0
mov    $0x1,%r14d
mov    $0x1,%r12b
xorps  %xmm2,%xmm2
jmp    1213 <main+0xc3>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movss  0xc(%rsp),%xmm0
call   1050 <fabs@plt>
movaps %xmm0,%xmm1
movss  0x10(%rsp),%xmm0
xorps  %xmm2,%xmm2
cvtss2sd %xmm0,%xmm2
lea    0xe49(%rip),%rdi
mov    %r13d,%esi
mov    %r14d,%edx
movsd  0x18(%rsp),%xmm0
mov    $0x3,%al
call   1040 <printf@plt>
movss  0x10(%rsp),%xmm3
movss  0x8(%rsp),%xmm0
movss  0xc(%rsp),%xmm2
add    $0x1,%r13d
add    $0x1,%r14d
xor    %r12d,%r12d
movss  0xdfa(%rip),%xmm1
ucomiss %xmm3,%xmm1
ja     13cf <main+0x27f>
movss  %xmm2,0x10(%rsp)
movss  %xmm0,0x18(%rsp)
movss  0x24(%rsp),%xmm2
movss  0x14(%rsp),%xmm0
subss  %xmm0,%xmm2
xorps  %xmm1,%xmm1
cvtsi2ss %r14d,%xmm1
divss  %xmm1,%xmm2
movss  %xmm2,0x8(%rsp)
call   1060 <y@plt>
mov    %eax,%ebx
movss  0x24(%rsp),%xmm0
call   1060 <y@plt>
mov    %eax,%r15d
add    %ebx,%r15d
movss  0x14(%rsp),%xmm0
addss  0x8(%rsp),%xmm0
call   1060 <y@plt>
lea    (%r15,%rax,4),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
cmp    $0x4,%r14d
jb     12e6 <main+0x196>
mov    $0x3,%ebp
movss  %xmm0,0xc(%rsp)
xorps  %xmm0,%xmm0
cvtsi2ss %ebp,%xmm0
mulss  0x8(%rsp),%xmm0
addss  0x14(%rsp),%xmm0
call   1060 <y@plt>
mov    %eax,%ebx
lea    -0x1(%rbp),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
shl    $0x2,%ebx
mulss  0x8(%rsp),%xmm0
addss  0x14(%rsp),%xmm0
call   1060 <y@plt>
lea    (%rbx,%rax,2),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  0xc(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
movss  0xc(%rsp),%xmm0
add    $0x2,%ebp
cmp    %r14d,%ebp
jb     1280 <main+0x130>
movss  0x8(%rsp),%xmm1
divss  0xd0c(%rip),%xmm1
mulss  %xmm0,%xmm1
movss  %xmm1,0x8(%rsp)
movaps %xmm1,%xmm0
subss  0x18(%rsp),%xmm0
movss  %xmm0,0xc(%rsp)
call   1050 <fabs@plt>
movsd  %xmm0,0x18(%rsp)
movss  0x10(%rsp),%xmm0
call   1050 <fabs@plt>
movsd  0x18(%rsp),%xmm1
subsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
call   1050 <fabs@plt>
xorps  %xmm2,%xmm2
cvtsd2ss %xmm0,%xmm2
movss  0x8(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
cmp    $0x2,%r13d
movsd  %xmm1,0x18(%rsp)
movss  %xmm2,0x10(%rsp)
jae    11b0 <main+0x60>
test   $0x1,%r12b
je     1390 <main+0x240>
lea    0xcbb(%rip),%rdi
xor    %esi,%esi
mov    %r14d,%edx
movaps %xmm1,%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
jmp    11e5 <main+0x95>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movss  0xc(%rsp),%xmm0
call   1050 <fabs@plt>
movaps %xmm0,%xmm1
lea    0xc97(%rip),%rdi
mov    %r13d,%esi
mov    %r14d,%edx
movsd  0x18(%rsp),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
movss  0x10(%rsp),%xmm3
movss  0xc(%rsp),%xmm2
movss  0x8(%rsp),%xmm0
jmp    11f7 <main+0xa7>
lea    0xc76(%rip),%rdi
movsd  0x18(%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [14 x i8] c"Enter x0,xn :\00"
@.str.1 = [5 x i8] c"%f%f\00"
@.str.2 = [45 x i8] c"i\09n\09I\09\09abs err\09\09(abs error - old abs error)\0A\00"
@.str.3 = [16 x i8] c"%d\09%d\09%f\09%f\09%f\0A\00"
@.str.4 = [17 x i8] c"%d\09%d\09%f\09NA\09\09NA\0A\00"
@.str.5 = [16 x i8] c"%d\09%d\09%f\09%f\09NA\0A\00"
@.str.6 = [10 x i8] c"\0A\0AI = %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %1
store float 0.000000e+00, float* %5
store float 0.000000e+00, float* %6
store float 0.000000e+00, float* %7
store float 0.000000e+00, float* %8
store float 0x3F0A36E2E0000000, float* %9
store i32 0, i32* %11
store i32 1, i32* %12
store i32 0, i32* %13
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%15 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), float* %2, float* %3)
%16 = load float, float* %7
%17 = load float, float* %8
%18 = fsub float %16, %17
store float %18, float* %10
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0))
br label %20
20: ; preds = %125, %0
%21 = load i32, i32* %13
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %20
%24 = load float, float* %10
%25 = load float, float* %9
%26 = fcmp olt float %24, %25
br label %27
27: ; preds = %23, %20
%28 = phi i1 [ false, %20 ], [ %26, %23 ]
%29 = xor i1 %28, true
br i1 %29, label %30, label %130
30: ; preds = %27
%31 = load float, float* %3
%32 = load float, float* %2
%33 = fsub float %31, %32
%34 = load i32, i32* %12
%35 = sitofp i32 %34 to float
%36 = fdiv float %33, %35
store float %36, float* %4
%37 = load float, float* %5
store float %37, float* %6
%38 = load float, float* %2
%39 = call i32 @y(float %38)
%40 = load float, float* %3
%41 = call i32 @y(float %40)
%42 = add nsw i32 %39, %41
%43 = load float, float* %2
%44 = load float, float* %4
%45 = fadd float %43, %44
%46 = call i32 @y(float %45)
%47 = mul nsw i32 4, %46
%48 = add nsw i32 %42, %47
%49 = sitofp i32 %48 to float
store float %49, float* %5
store i32 3, i32* %11
br label %50
50: ; preds = %75, %30
%51 = load i32, i32* %11
%52 = load i32, i32* %12
%53 = sub nsw i32 %52, 1
%54 = icmp sle i32 %51, %53
br i1 %54, label %55, label %78
55: ; preds = %50
%56 = load float, float* %2
%57 = load i32, i32* %11
%58 = sitofp i32 %57 to float
%59 = load float, float* %4
%60 = call float @llvm.fmuladd.f32(float %58, float %59, float %56)
%61 = call i32 @y(float %60)
%62 = mul nsw i32 4, %61
%63 = load float, float* %2
%64 = load i32, i32* %11
%65 = sub nsw i32 %64, 1
%66 = sitofp i32 %65 to float
%67 = load float, float* %4
%68 = call float @llvm.fmuladd.f32(float %66, float %67, float %63)
%69 = call i32 @y(float %68)
%70 = mul nsw i32 2, %69
%71 = add nsw i32 %62, %70
%72 = sitofp i32 %71 to float
%73 = load float, float* %5
%74 = fadd float %73, %72
store float %74, float* %5
br label %75
75: ; preds = %55
%76 = load i32, i32* %11
%77 = add nsw i32 %76, 2
store i32 %77, i32* %11
br label %50
78: ; preds = %50
%79 = load float, float* %4
%80 = fdiv float %79, 3.000000e+00
%81 = load float, float* %5
%82 = fmul float %81, %80
store float %82, float* %5
%83 = load float, float* %7
store float %83, float* %8
%84 = load float, float* %5
%85 = load float, float* %6
%86 = fsub float %84, %85
store float %86, float* %7
%87 = load float, float* %7
%88 = call double @fabs(float %87)
%89 = load float, float* %8
%90 = call double @fabs(float %89)
%91 = fsub double %88, %90
%92 = fptrunc double %91 to float
%93 = call double @fabs(float %92)
%94 = fptrunc double %93 to float
store float %94, float* %10
%95 = load i32, i32* %13
%96 = icmp sge i32 %95, 2
br i1 %96, label %97, label %107
97: ; preds = %78
%98 = load i32, i32* %13
%99 = load i32, i32* %12
%100 = load float, float* %5
%101 = fpext float %100 to double
%102 = load float, float* %7
%103 = call double @fabs(float %102)
%104 = load float, float* %10
%105 = fpext float %104 to double
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %98, i32 %99, double %101, double %103, double %105)
br label %125
107: ; preds = %78
%108 = load i32, i32* %13
%109 = icmp eq i32 %108, 0
br i1 %109, label %110, label %116
110: ; preds = %107
%111 = load i32, i32* %13
%112 = load i32, i32* %12
%113 = load float, float* %5
%114 = fpext float %113 to double
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %111, i32 %112, double %114)
br label %124
116: ; preds = %107
%117 = load i32, i32* %13
%118 = load i32, i32* %12
%119 = load float, float* %5
%120 = fpext float %119 to double
%121 = load float, float* %7
%122 = call double @fabs(float %121)
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 %117, i32 %118, double %120, double %122)
br label %124
124: ; preds = %116, %110
br label %125
125: ; preds = %124, %97
%126 = load i32, i32* %13
%127 = add nsw i32 %126, 1
store i32 %127, i32* %13
%128 = load i32, i32* %12
%129 = add nsw i32 %128, 1
store i32 %129, i32* %12
br label %20
130: ; preds = %27
%131 = load float, float* %5
%132 = fpext float %131 to double
%133 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), double %132)
ret i32 0
}

LLVM IR (-O2):
@.str = [14 x i8] c"Enter x0,xn :\00"
@.str.1 = [5 x i8] c"%f%f\00"
@.str.3 = [16 x i8] c"%d\09%d\09%f\09%f\09%f\0A\00"
@.str.4 = [17 x i8] c"%d\09%d\09%f\09NA\09\09NA\0A\00"
@.str.5 = [16 x i8] c"%d\09%d\09%f\09%f\09NA\0A\00"
@.str.6 = [10 x i8] c"\0A\0AI = %f\0A\00"
@str = [44 x i8] c"i\09n\09I\09\09abs err\09\09(abs error - old abs error)\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = bitcast float* %1 to i8*
%4 = bitcast float* %2 to i8*
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), float* %1, float* %2)
%7 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str, i64 0, i64 0))
br label %8
8: ; preds = %0, %72
%9 = phi i1 [ true, %0 ], [ false, %72 ]
%10 = phi i32 [ 0, %0 ], [ %73, %72 ]
%11 = phi i32 [ 1, %0 ], [ %74, %72 ]
%12 = phi float [ 0.000000e+00, %0 ], [ %52, %72 ]
%13 = phi float [ 0.000000e+00, %0 ], [ %53, %72 ]
%14 = load float, float* %2
%15 = load float, float* %1
%16 = fsub float %14, %15
%17 = sitofp i32 %11 to float
%18 = fdiv float %16, %17
%19 = call i32 @y(float %15)
%20 = load float, float* %2
%21 = call i32 @y(float %20)
%22 = add nsw i32 %21, %19
%23 = load float, float* %1
%24 = fadd float %18, %23
%25 = call i32 @y(float %24)
%26 = shl nsw i32 %25, 2
%27 = add nsw i32 %22, %26
%28 = sitofp i32 %27 to float
%29 = icmp ugt i32 %11, 3
br i1 %29, label %30, label %49
30: ; preds = %8, %30
%31 = phi i32 [ %47, %30 ], [ 3, %8 ]
%32 = phi float [ %46, %30 ], [ %28, %8 ]
%33 = load float, float* %1
%34 = sitofp i32 %31 to float
%35 = call float @llvm.fmuladd.f32(float %34, float %18, float %33)
%36 = call i32 @y(float %35)
%37 = shl nsw i32 %36, 2
%38 = load float, float* %1
%39 = add nsw i32 %31, -1
%40 = sitofp i32 %39 to float
%41 = call float @llvm.fmuladd.f32(float %40, float %18, float %38)
%42 = call i32 @y(float %41)
%43 = shl nsw i32 %42, 1
%44 = add nsw i32 %43, %37
%45 = sitofp i32 %44 to float
%46 = fadd float %32, %45
%47 = add nuw nsw i32 %31, 2
%48 = icmp ult i32 %47, %11
br i1 %48, label %30, label %49
49: ; preds = %30, %8
%50 = phi float [ %28, %8 ], [ %46, %30 ]
%51 = fdiv float %18, 3.000000e+00
%52 = fmul float %51, %50
%53 = fsub float %52, %12
%54 = call double @fabs(float %53)
%55 = call double @fabs(float %13)
%56 = fsub double %54, %55
%57 = fptrunc double %56 to float
%58 = call double @fabs(float %57)
%59 = fptrunc double %58 to float
%60 = icmp ugt i32 %10, 1
%61 = fpext float %52 to double
br i1 %60, label %62, label %66
62: ; preds = %49
%63 = call double @fabs(float %53)
%64 = fpext float %59 to double
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %10, i32 %11, double %61, double %63, double %64)
br label %72
66: ; preds = %49
br i1 %9, label %67, label %69
67: ; preds = %66
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 %11, double %61)
br label %72
69: ; preds = %66
%70 = call double @fabs(float %53)
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 %10, i32 %11, double %61, double %70)
br label %72
72: ; preds = %67, %69, %62
%73 = add nuw nsw i32 %10, 1
%74 = add nuw nsw i32 %11, 1
%75 = fcmp uge float %59, 0x3F0A36E2E0000000
br i1 %75, label %8, label %76
76: ; preds = %72
%77 = fpext float %52 to double
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), double %77)
ret i32 0
}