#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 */
scalar_t__ calloc(int, int);
double f(double, double);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, double *);
void Runge_Kutta_4(double h, int n) {
  double *y, *x;
  int i;
  double k1, k2, k3, k4;
  y = (double *)calloc(n + 1, sizeof(double));
  x = (double *)calloc(n + 1, sizeof(double));
  printf("\nValores Iniciais:\n");
  printf("Entre com x0: ");
  scanf("%lf", &x[0]);
  printf("Entre com y(x0): ");
  scanf("%lf", &y[0]);
  printf("\nIteracoes\n");
  for (i = 1; i <= n; i++) {
    x[i] += x[i - 1] + h;
  }
  for (i = 1; i <= n; i++) {
    k1 = h * f(x[i - 1], y[i - 1]);
    k2 = h * f(x[i - 1] + (h / 2), y[i - 1] + (k1 / 2));
    k3 = h * f(x[i - 1] + (h / 2), y[i - 1] + (k2 / 2));
    k4 = h * f(x[i - 1] + h, y[i - 1] + k3);
    y[i] = y[i - 1] + (1.00 / 6.00) * (k1 + 2 * k2 + 2 * k3 + k4);
    printf("y(%lf) = %lf\n", x[i], y[i]);
  }
}


x86 assembly (clang, -O0):
<Runge_Kutta_4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%edi
add    $0x1,%edi
mov    $0x8,%esi
call   1050 <calloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0xc(%rbp),%edi
add    $0x1,%edi
mov    $0x8,%esi
call   1050 <calloc@plt>
mov    %rax,-0x20(%rbp)
lea    0xe91(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rsi
lea    0xe94(%rip),%rdi
call   1060 <scanf@plt>
lea    0xe8c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xe76(%rip),%rdi
call   1060 <scanf@plt>
lea    0xe80(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     121a <Runge_Kutta_4+0xda>
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x8(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11d7 <Runge_Kutta_4+0x97>
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     1424 <Runge_Kutta_4+0x2e4>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
call   1030 <f@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x8(%rbp),%xmm1
movsd  0xd6e(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x30(%rbp),%xmm2
movsd  0xd47(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm1
call   1030 <f@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x8(%rbp),%xmm1
movsd  0xd00(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x38(%rbp),%xmm2
movsd  0xcd9(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm1
call   1030 <f@plt>
movaps %xmm0,%xmm1
movsd  -0x58(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x8(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
addsd  -0x40(%rbp),%xmm1
call   1030 <f@plt>
movaps %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x30(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
addsd  %xmm2,%xmm2
addsd  %xmm0,%xmm2
movsd  -0x40(%rbp),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm2,%xmm0
addsd  -0x48(%rbp),%xmm0
movsd  0xc27(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
lea    0xc46(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1221 <Runge_Kutta_4+0xe1>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Runge_Kutta_4>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x30,%rsp
mov    %edi,%r15d
movsd  %xmm0,0x8(%rsp)
lea    0x1(%r15),%ebp
mov    %ebp,%edi
mov    $0x8,%esi
call   1060 <calloc@plt>
mov    %rax,%r14
mov    %ebp,%edi
mov    $0x8,%esi
call   1060 <calloc@plt>
mov    %rax,%rbx
lea    0xeb5(%rip),%rdi
call   1030 <puts@plt>
lea    0xe76(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe77(%rip),%r12
mov    %r12,%rdi
mov    %rbx,%rsi
call   1070 <scanf@plt>
lea    0xe69(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %r14,%rsi
call   1070 <scanf@plt>
lea    0xe83(%rip),%rdi
call   1030 <puts@plt>
test   %r15d,%r15d
jle    13ba <Runge_Kutta_4+0x26a>
movsd  0x8(%rsp),%xmm1
mov    %ebp,%r12d
movsd  (%rbx),%xmm0
lea    -0x1(%r12),%rdx
lea    -0x2(%r12),%rsi
mov    %edx,%eax
and    $0x3,%eax
mov    $0x1,%ecx
cmp    $0x3,%rsi
jb     125d <Runge_Kutta_4+0x10d>
and    $0xfffffffffffffffc,%rdx
xor    %ecx,%ecx
xchg   %ax,%ax
addsd  %xmm1,%xmm0
addsd  0x8(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rcx,8)
addsd  %xmm1,%xmm0
addsd  0x10(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x10(%rbx,%rcx,8)
addsd  %xmm1,%xmm0
addsd  0x18(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x18(%rbx,%rcx,8)
addsd  %xmm1,%xmm0
addsd  0x20(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x20(%rbx,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rdx
jne    1210 <Runge_Kutta_4+0xc0>
add    $0x1,%rcx
test   %rax,%rax
je     1287 <Runge_Kutta_4+0x137>
lea    (%rbx,%rcx,8),%rcx
xor    %edx,%edx
nopl   0x0(%rax,%rax,1)
addsd  %xmm1,%xmm0
addsd  (%rcx,%rdx,8),%xmm0
movsd  %xmm0,(%rcx,%rdx,8)
add    $0x1,%rdx
cmp    %rdx,%rax
jne    1270 <Runge_Kutta_4+0x120>
test   %r15d,%r15d
jle    13ba <Runge_Kutta_4+0x26a>
movsd  0xd68(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
add    $0xffffffffffffffff,%r12
xor    %ebp,%ebp
lea    0xd84(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rbx,%rbp,8),%xmm0
movsd  (%r14,%rbp,8),%xmm1
call   1040 <f@plt>
movapd %xmm0,%xmm1
mulsd  0x8(%rsp),%xmm1
movsd  %xmm1,0x28(%rsp)
movsd  (%rbx,%rbp,8),%xmm0
addsd  0x10(%rsp),%xmm0
movsd  0xd0d(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  (%r14,%rbp,8),%xmm1
call   1040 <f@plt>
movapd %xmm0,%xmm1
mulsd  0x8(%rsp),%xmm1
movsd  %xmm1,0x20(%rsp)
movsd  (%rbx,%rbp,8),%xmm0
addsd  0x10(%rsp),%xmm0
mulsd  0xcdb(%rip),%xmm1
addsd  (%r14,%rbp,8),%xmm1
call   1040 <f@plt>
movapd %xmm0,%xmm2
movsd  0x8(%rsp),%xmm1
mulsd  %xmm1,%xmm2
movsd  %xmm2,0x18(%rsp)
movsd  (%rbx,%rbp,8),%xmm0
addsd  %xmm1,%xmm0
movsd  (%r14,%rbp,8),%xmm1
addsd  %xmm2,%xmm1
call   1040 <f@plt>
mulsd  0x8(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
addsd  %xmm1,%xmm1
addsd  0x28(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
addsd  %xmm2,%xmm2
addsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
mulsd  0xc7c(%rip),%xmm2
addsd  (%r14,%rbp,8),%xmm2
movsd  %xmm2,0x8(%r14,%rbp,8)
movapd %xmm2,%xmm1
movsd  0x8(%rbx,%rbp,8),%xmm0
mov    %r15,%rdi
mov    $0x2,%al
call   1050 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%r12
jne    12c0 <Runge_Kutta_4+0x170>
add    $0x30,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [20 x i8] c"\0AValores Iniciais:\0A\00"
@.str.1 = [15 x i8] c"Entre com x0: \00"
@.str.2 = [4 x i8] c"%lf\00"
@.str.3 = [18 x i8] c"Entre com y(x0): \00"
@.str.4 = [12 x i8] c"\0AIteracoes\0A\00"
@.str.5 = [14 x i8] c"y(%lf) = %lf\0A\00"
define void @Runge_Kutta_4(double %0, i32 %1) {
%3 = alloca double
%4 = alloca i32
%5 = alloca double*
%6 = alloca double*
%7 = alloca i32
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
store double %0, double* %3
store i32 %1, i32* %4
%12 = load i32, i32* %4
%13 = add nsw i32 %12, 1
%14 = call i64 @calloc(i32 %13, i32 8)
%15 = inttoptr i64 %14 to double*
store double* %15, double** %5
%16 = load i32, i32* %4
%17 = add nsw i32 %16, 1
%18 = call i64 @calloc(i32 %17, i32 8)
%19 = inttoptr i64 %18 to double*
store double* %19, double** %6
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%22 = load double*, double** %6
%23 = getelementptr inbounds double, double* %22, i64 0
%24 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %23)
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%26 = load double*, double** %5
%27 = getelementptr inbounds double, double* %26, i64 0
%28 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %27)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %7
br label %30
30: ; preds = %49, %2
%31 = load i32, i32* %7
%32 = load i32, i32* %4
%33 = icmp sle i32 %31, %32
br i1 %33, label %34, label %52
34: ; preds = %30
%35 = load double*, double** %6
%36 = load i32, i32* %7
%37 = sub nsw i32 %36, 1
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, double* %35, i64 %38
%40 = load double, double* %39
%41 = load double, double* %3
%42 = fadd double %40, %41
%43 = load double*, double** %6
%44 = load i32, i32* %7
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double, double* %43, i64 %45
%47 = load double, double* %46
%48 = fadd double %47, %42
store double %48, double* %46
br label %49
49: ; preds = %34
%50 = load i32, i32* %7
%51 = add nsw i32 %50, 1
store i32 %51, i32* %7
br label %30
52: ; preds = %30
store i32 1, i32* %7
br label %53
53: ; preds = %163, %52
%54 = load i32, i32* %7
%55 = load i32, i32* %4
%56 = icmp sle i32 %54, %55
br i1 %56, label %57, label %166
57: ; preds = %53
%58 = load double, double* %3
%59 = load double*, double** %6
%60 = load i32, i32* %7
%61 = sub nsw i32 %60, 1
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds double, double* %59, i64 %62
%64 = load double, double* %63
%65 = load double*, double** %5
%66 = load i32, i32* %7
%67 = sub nsw i32 %66, 1
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double, double* %65, i64 %68
%70 = load double, double* %69
%71 = call double @f(double %64, double %70)
%72 = fmul double %58, %71
store double %72, double* %8
%73 = load double, double* %3
%74 = load double*, double** %6
%75 = load i32, i32* %7
%76 = sub nsw i32 %75, 1
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double, double* %74, i64 %77
%79 = load double, double* %78
%80 = load double, double* %3
%81 = fdiv double %80, 2.000000e+00
%82 = fadd double %79, %81
%83 = load double*, double** %5
%84 = load i32, i32* %7
%85 = sub nsw i32 %84, 1
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds double, double* %83, i64 %86
%88 = load double, double* %87
%89 = load double, double* %8
%90 = fdiv double %89, 2.000000e+00
%91 = fadd double %88, %90
%92 = call double @f(double %82, double %91)
%93 = fmul double %73, %92
store double %93, double* %9
%94 = load double, double* %3
%95 = load double*, double** %6
%96 = load i32, i32* %7
%97 = sub nsw i32 %96, 1
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds double, double* %95, i64 %98
%100 = load double, double* %99
%101 = load double, double* %3
%102 = fdiv double %101, 2.000000e+00
%103 = fadd double %100, %102
%104 = load double*, double** %5
%105 = load i32, i32* %7
%106 = sub nsw i32 %105, 1
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds double, double* %104, i64 %107
%109 = load double, double* %108
%110 = load double, double* %9
%111 = fdiv double %110, 2.000000e+00
%112 = fadd double %109, %111
%113 = call double @f(double %103, double %112)
%114 = fmul double %94, %113
store double %114, double* %10
%115 = load double, double* %3
%116 = load double*, double** %6
%117 = load i32, i32* %7
%118 = sub nsw i32 %117, 1
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds double, double* %116, i64 %119
%121 = load double, double* %120
%122 = load double, double* %3
%123 = fadd double %121, %122
%124 = load double*, double** %5
%125 = load i32, i32* %7
%126 = sub nsw i32 %125, 1
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds double, double* %124, i64 %127
%129 = load double, double* %128
%130 = load double, double* %10
%131 = fadd double %129, %130
%132 = call double @f(double %123, double %131)
%133 = fmul double %115, %132
store double %133, double* %11
%134 = load double*, double** %5
%135 = load i32, i32* %7
%136 = sub nsw i32 %135, 1
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds double, double* %134, i64 %137
%139 = load double, double* %138
%140 = load double, double* %8
%141 = load double, double* %9
%142 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %141, double %140)
%143 = load double, double* %10
%144 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %143, double %142)
%145 = load double, double* %11
%146 = fadd double %144, %145
%147 = call double @llvm.fmuladd.f64(double 0x3FC5555555555555, double %146, double %139)
%148 = load double*, double** %5
%149 = load i32, i32* %7
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds double, double* %148, i64 %150
store double %147, double* %151
%152 = load double*, double** %6
%153 = load i32, i32* %7
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds double, double* %152, i64 %154
%156 = load double, double* %155
%157 = load double*, double** %5
%158 = load i32, i32* %7
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds double, double* %157, i64 %159
%161 = load double, double* %160
%162 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), double %156, double %161)
br label %163
163: ; preds = %57
%164 = load i32, i32* %7
%165 = add nsw i32 %164, 1
store i32 %165, i32* %7
br label %53
166: ; preds = %53
ret void
}

LLVM IR (-O2):
@.str.1 = [15 x i8] c"Entre com x0: \00"
@.str.2 = [4 x i8] c"%lf\00"
@.str.3 = [18 x i8] c"Entre com y(x0): \00"
@.str.5 = [14 x i8] c"y(%lf) = %lf\0A\00"
@str = [19 x i8] c"\0AValores Iniciais:\00"
@str.6 = [11 x i8] c"\0AIteracoes\00"
define void @Runge_Kutta_4(double %0, i32 %1) {
%3 = add i32 %1, 1
%4 = tail call i64 @calloc(i32 %3, i32 8)
%5 = inttoptr i64 %4 to double*
%6 = tail call i64 @calloc(i32 %3, i32 8)
%7 = inttoptr i64 %6 to double*
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%10 = tail call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %7)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%12 = tail call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %5)
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.6, i64 0, i64 0))
%14 = icmp slt i32 %1, 1
br i1 %14, label %109, label %15
15: ; preds = %2
%16 = zext i32 %3 to i64
%17 = load double, double* %7
%18 = add nsw i64 %16, -1
%19 = add nsw i64 %16, -2
%20 = and i64 %18, 3
%21 = icmp ult i64 %19, 3
br i1 %21, label %24, label %22
22: ; preds = %15
%23 = and i64 %18, -4
br label %43
24: ; preds = %43, %15
%25 = phi double [ %17, %15 ], [ %65, %43 ]
%26 = phi i64 [ 1, %15 ], [ %66, %43 ]
%27 = icmp eq i64 %20, 0
br i1 %27, label %39, label %28
28: ; preds = %24, %28
%29 = phi double [ %35, %28 ], [ %25, %24 ]
%30 = phi i64 [ %36, %28 ], [ %26, %24 ]
%31 = phi i64 [ %37, %28 ], [ 0, %24 ]
%32 = fadd double %29, %0
%33 = getelementptr inbounds double, double* %7, i64 %30
%34 = load double, double* %33
%35 = fadd double %34, %32
store double %35, double* %33
%36 = add nuw nsw i64 %30, 1
%37 = add i64 %31, 1
%38 = icmp eq i64 %37, %20
br i1 %38, label %39, label %28
39: ; preds = %28, %24
br i1 %14, label %109, label %40
40: ; preds = %39
%41 = fmul double %0, 5.000000e-01
%42 = zext i32 %3 to i64
br label %69
43: ; preds = %43, %22
%44 = phi double [ %17, %22 ], [ %65, %43 ]
%45 = phi i64 [ 1, %22 ], [ %66, %43 ]
%46 = phi i64 [ 0, %22 ], [ %67, %43 ]
%47 = fadd double %44, %0
%48 = getelementptr inbounds double, double* %7, i64 %45
%49 = load double, double* %48
%50 = fadd double %49, %47
store double %50, double* %48
%51 = add nuw nsw i64 %45, 1
%52 = fadd double %50, %0
%53 = getelementptr inbounds double, double* %7, i64 %51
%54 = load double, double* %53
%55 = fadd double %54, %52
store double %55, double* %53
%56 = add nuw nsw i64 %45, 2
%57 = fadd double %55, %0
%58 = getelementptr inbounds double, double* %7, i64 %56
%59 = load double, double* %58
%60 = fadd double %59, %57
store double %60, double* %58
%61 = add nuw nsw i64 %45, 3
%62 = fadd double %60, %0
%63 = getelementptr inbounds double, double* %7, i64 %61
%64 = load double, double* %63
%65 = fadd double %64, %62
store double %65, double* %63
%66 = add nuw nsw i64 %45, 4
%67 = add i64 %46, 4
%68 = icmp eq i64 %67, %23
br i1 %68, label %24, label %43
69: ; preds = %40, %69
%70 = phi i64 [ 1, %40 ], [ %107, %69 ]
%71 = add nsw i64 %70, -1
%72 = getelementptr inbounds double, double* %7, i64 %71
%73 = load double, double* %72
%74 = getelementptr inbounds double, double* %5, i64 %71
%75 = load double, double* %74
%76 = tail call double @f(double %73, double %75)
%77 = fmul double %76, %0
%78 = load double, double* %72
%79 = fadd double %41, %78
%80 = load double, double* %74
%81 = fmul double %77, 5.000000e-01
%82 = fadd double %80, %81
%83 = tail call double @f(double %79, double %82)
%84 = fmul double %83, %0
%85 = load double, double* %72
%86 = fadd double %41, %85
%87 = load double, double* %74
%88 = fmul double %84, 5.000000e-01
%89 = fadd double %87, %88
%90 = tail call double @f(double %86, double %89)
%91 = fmul double %90, %0
%92 = load double, double* %72
%93 = fadd double %92, %0
%94 = load double, double* %74
%95 = fadd double %91, %94
%96 = tail call double @f(double %93, double %95)
%97 = fmul double %96, %0
%98 = load double, double* %74
%99 = tail call double @llvm.fmuladd.f64(double %84, double 2.000000e+00, double %77)
%100 = tail call double @llvm.fmuladd.f64(double %91, double 2.000000e+00, double %99)
%101 = fadd double %100, %97
%102 = tail call double @llvm.fmuladd.f64(double %101, double 0x3FC5555555555555, double %98)
%103 = getelementptr inbounds double, double* %5, i64 %70
store double %102, double* %103
%104 = getelementptr inbounds double, double* %7, i64 %70
%105 = load double, double* %104
%106 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), double %105, double %102)
%107 = add nuw nsw i64 %70, 1
%108 = icmp eq i64 %107, %42
br i1 %108, label %109, label %69
109: ; preds = %69, %2, %39
ret void
}