#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);
int pow(double, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, double *);
int sqrt(double);
void Euller(double h, int n) {
  double *y, *x;
  int i;
  y = (double *)calloc(n + 1, sizeof(double));
  x = (double *)calloc(n, 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++) {
    y[i] = y[i - 1] + h * ((1 + 2 * x[i - 1]) * sqrt(y[i - 1])) +
           (2 * sqrt(y[i - 1]) +
            (1 / (2 * sqrt(y[i - 1])) + (2 * x[i - 1]) / (2 * sqrt(y[i - 1]))) *
                ((1 + 2 * x[i - 1]) * sqrt(y[i - 1]))) *
               pow(h, 2) / 2;
    printf("y%d = %lf\n", i, y[i]);
  }
}


x86 assembly (clang, -O0):
<Euller>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%edi
add    $0x1,%edi
mov    $0x8,%esi
call   1040 <calloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0xc(%rbp),%edi
mov    $0x8,%esi
call   1040 <calloc@plt>
mov    %rax,-0x20(%rbp)
lea    0xe81(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rsi
lea    0xe84(%rip),%rdi
call   1050 <scanf@plt>
lea    0xe7c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xe66(%rip),%rdi
call   1050 <scanf@plt>
lea    0xe70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    122a <Euller+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    11e7 <Euller+0x97>
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     1430 <Euller+0x2e0>
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  %xmm0,%xmm0
movsd  0xd8c(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1070 <sqrt@plt>
movsd  -0x78(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm1
cvtsi2sd %eax,%xmm3
mulsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1070 <sqrt@plt>
shl    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1070 <sqrt@plt>
mov    %eax,%ecx
shl    $0x1,%ecx
mov    $0x1,%eax
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xcdb(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1070 <sqrt@plt>
movsd  -0x60(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm0
shl    $0x1,%eax
cvtsi2sd %eax,%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  %xmm0,%xmm0
movsd  0xc86(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1070 <sqrt@plt>
movsd  -0x50(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
cvtsi2sd %eax,%xmm3
mulsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x2,%edi
call   1060 <pow@plt>
movsd  -0x38(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm0
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm1
movsd  0xc11(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%esi
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xc3a(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1231 <Euller+0xe1>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Euller>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %edi,%r12d
movsd  %xmm0,0x18(%rsp)
lea    0x1(%r12),%r15d
mov    %r15d,%edi
mov    $0x8,%esi
call   1050 <calloc@plt>
mov    %rax,%r14
mov    %r12d,%edi
mov    $0x8,%esi
call   1050 <calloc@plt>
mov    %rax,%rbx
lea    0xe9d(%rip),%rdi
call   1030 <puts@plt>
lea    0xe61(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe62(%rip),%rbp
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1060 <scanf@plt>
lea    0xe54(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
call   1060 <scanf@plt>
lea    0xe6b(%rip),%rdi
call   1030 <puts@plt>
movsd  0x18(%rsp),%xmm1
cmp    $0x2,%r12d
jl     12a7 <Euller+0x147>
mov    %r12d,%esi
movsd  (%rbx),%xmm0
lea    -0x1(%rsi),%rdx
add    $0xfffffffffffffffe,%rsi
mov    %edx,%eax
and    $0x3,%eax
mov    $0x1,%ecx
cmp    $0x3,%rsi
jb     127d <Euller+0x11d>
and    $0xfffffffffffffffc,%rdx
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
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    1230 <Euller+0xd0>
add    $0x1,%rcx
test   %rax,%rax
je     12a7 <Euller+0x147>
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    1290 <Euller+0x130>
test   %r12d,%r12d
jle    1423 <Euller+0x2c3>
mov    %r15d,%r12d
mov    $0x1,%ebp
xor    %r13d,%r13d
lea    0xd73(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  -0x8(%r14,%rbp,8),%xmm1
movsd  %xmm1,(%rsp)
movsd  -0x8(%rbx,%rbp,8),%xmm2
addsd  %xmm2,%xmm2
movsd  0xd12(%rip),%xmm0
addsd  %xmm0,%xmm2
movsd  %xmm2,0x10(%rsp)
movaps %xmm1,%xmm0
call   1080 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x10(%rsp),%xmm0
mulsd  0x18(%rsp),%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  -0x8(%r14,%rbp,8),%xmm0
call   1080 <sqrt@plt>
add    %eax,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  -0x8(%r14,%rbp,8),%xmm0
call   1080 <sqrt@plt>
lea    (%rax,%rax,1),%ecx
add    $0x1,%ecx
add    %eax,%eax
cmp    $0x3,%ecx
cmovae %r13d,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  -0x8(%rbx,%rbp,8),%xmm0
addsd  %xmm0,%xmm0
movsd  %xmm0,(%rsp)
movsd  -0x8(%r14,%rbp,8),%xmm0
call   1080 <sqrt@plt>
add    %eax,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
addsd  0x8(%rsp),%xmm1
movsd  %xmm1,(%rsp)
movsd  -0x8(%rbx,%rbp,8),%xmm0
addsd  %xmm0,%xmm0
addsd  0xc55(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  -0x8(%r14,%rbp,8),%xmm0
call   1080 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x8(%rsp),%xmm0
mulsd  (%rsp),%xmm0
addsd  0x20(%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x18(%rsp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  (%rsp),%xmm0
mulsd  0xc0a(%rip),%xmm0
addsd  0x10(%rsp),%xmm0
movsd  %xmm0,(%r14,%rbp,8)
mov    %r15,%rdi
mov    %ebp,%esi
mov    $0x1,%al
call   1040 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%r12
jne    12d0 <Euller+0x170>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
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 = [11 x i8] c"y%d = %lf\0A\00"
define void @Euller(double %0, i32 %1) {
%3 = alloca double
%4 = alloca i32
%5 = alloca double*
%6 = alloca double*
%7 = alloca i32
store double %0, double* %3
store i32 %1, i32* %4
%8 = load i32, i32* %4
%9 = add nsw i32 %8, 1
%10 = call i64 @calloc(i32 %9, i32 8)
%11 = inttoptr i64 %10 to double*
store double* %11, double** %5
%12 = load i32, i32* %4
%13 = call i64 @calloc(i32 %12, i32 8)
%14 = inttoptr i64 %13 to double*
store double* %14, double** %6
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%17 = load double*, double** %6
%18 = getelementptr inbounds double, double* %17, i64 0
%19 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %18)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%21 = load double*, double** %5
%22 = getelementptr inbounds double, double* %21, i64 0
%23 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %22)
%24 = 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 %25
25: ; preds = %44, %2
%26 = load i32, i32* %7
%27 = load i32, i32* %4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %47
29: ; preds = %25
%30 = load double*, double** %6
%31 = load i32, i32* %7
%32 = sub nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, double* %30, i64 %33
%35 = load double, double* %34
%36 = load double, double* %3
%37 = fadd double %35, %36
%38 = load double*, double** %6
%39 = load i32, i32* %7
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double, double* %38, i64 %40
%42 = load double, double* %41
%43 = fadd double %42, %37
store double %43, double* %41
br label %44
44: ; preds = %29
%45 = load i32, i32* %7
%46 = add nsw i32 %45, 1
store i32 %46, i32* %7
br label %25
47: ; preds = %25
store i32 1, i32* %7
br label %48
48: ; preds = %148, %47
%49 = load i32, i32* %7
%50 = load i32, i32* %4
%51 = icmp sle i32 %49, %50
br i1 %51, label %52, label %151
52: ; preds = %48
%53 = load double*, double** %5
%54 = load i32, i32* %7
%55 = sub nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, double* %53, i64 %56
%58 = load double, double* %57
%59 = load double, double* %3
%60 = load double*, double** %6
%61 = load i32, i32* %7
%62 = sub nsw i32 %61, 1
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, double* %60, i64 %63
%65 = load double, double* %64
%66 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %65, double 1.000000e+00)
%67 = load double*, double** %5
%68 = load i32, i32* %7
%69 = sub nsw i32 %68, 1
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, double* %67, i64 %70
%72 = load double, double* %71
%73 = call i32 @sqrt(double %72)
%74 = sitofp i32 %73 to double
%75 = fmul double %66, %74
%76 = call double @llvm.fmuladd.f64(double %59, double %75, double %58)
%77 = load double*, double** %5
%78 = load i32, i32* %7
%79 = sub nsw i32 %78, 1
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds double, double* %77, i64 %80
%82 = load double, double* %81
%83 = call i32 @sqrt(double %82)
%84 = mul nsw i32 2, %83
%85 = sitofp i32 %84 to double
%86 = load double*, double** %5
%87 = load i32, i32* %7
%88 = sub nsw i32 %87, 1
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, double* %86, i64 %89
%91 = load double, double* %90
%92 = call i32 @sqrt(double %91)
%93 = mul nsw i32 2, %92
%94 = sdiv i32 1, %93
%95 = sitofp i32 %94 to double
%96 = load double*, double** %6
%97 = load i32, i32* %7
%98 = sub nsw i32 %97, 1
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds double, double* %96, i64 %99
%101 = load double, double* %100
%102 = fmul double 2.000000e+00, %101
%103 = load double*, double** %5
%104 = load i32, i32* %7
%105 = sub nsw i32 %104, 1
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds double, double* %103, i64 %106
%108 = load double, double* %107
%109 = call i32 @sqrt(double %108)
%110 = mul nsw i32 2, %109
%111 = sitofp i32 %110 to double
%112 = fdiv double %102, %111
%113 = fadd double %95, %112
%114 = load double*, double** %6
%115 = load i32, i32* %7
%116 = sub nsw i32 %115, 1
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds double, double* %114, i64 %117
%119 = load double, double* %118
%120 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %119, double 1.000000e+00)
%121 = load double*, double** %5
%122 = load i32, i32* %7
%123 = sub nsw i32 %122, 1
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds double, double* %121, i64 %124
%126 = load double, double* %125
%127 = call i32 @sqrt(double %126)
%128 = sitofp i32 %127 to double
%129 = fmul double %120, %128
%130 = call double @llvm.fmuladd.f64(double %113, double %129, double %85)
%131 = load double, double* %3
%132 = call i32 @pow(double %131, i32 2)
%133 = sitofp i32 %132 to double
%134 = fmul double %130, %133
%135 = fdiv double %134, 2.000000e+00
%136 = fadd double %76, %135
%137 = load double*, double** %5
%138 = load i32, i32* %7
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds double, double* %137, i64 %139
store double %136, double* %140
%141 = load i32, i32* %7
%142 = load double*, double** %5
%143 = load i32, i32* %7
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds double, double* %142, i64 %144
%146 = load double, double* %145
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i32 %141, double %146)
br label %148
148: ; preds = %52
%149 = load i32, i32* %7
%150 = add nsw i32 %149, 1
store i32 %150, i32* %7
br label %48
151: ; preds = %48
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 = [11 x i8] c"y%d = %lf\0A\00"
@str = [19 x i8] c"\0AValores Iniciais:\00"
@str.6 = [11 x i8] c"\0AIteracoes\00"
define void @Euller(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 %1, 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 sgt i32 %1, 1
br i1 %14, label %15, label %39
15: ; preds = %2
%16 = zext i32 %1 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 = %24, %28, %2
%40 = icmp slt i32 %1, 1
br i1 %40, label %117, label %41
41: ; preds = %39
%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 = %41, %69
%70 = phi i64 [ 1, %41 ], [ %115, %69 ]
%71 = add nsw i64 %70, -1
%72 = getelementptr inbounds double, double* %5, i64 %71
%73 = load double, double* %72
%74 = getelementptr inbounds double, double* %7, i64 %71
%75 = load double, double* %74
%76 = tail call double @llvm.fmuladd.f64(double %75, double 2.000000e+00, double 1.000000e+00)
%77 = tail call i32 @sqrt(double %73)
%78 = sitofp i32 %77 to double
%79 = fmul double %76, %78
%80 = tail call double @llvm.fmuladd.f64(double %0, double %79, double %73)
%81 = load double, double* %72
%82 = tail call i32 @sqrt(double %81)
%83 = shl nsw i32 %82, 1
%84 = sitofp i32 %83 to double
%85 = load double, double* %72
%86 = tail call i32 @sqrt(double %85)
%87 = shl nsw i32 %86, 1
%88 = or i32 %87, 1
%89 = icmp ult i32 %88, 3
%90 = select i1 %89, i32 %87, i32 0
%91 = sitofp i32 %90 to double
%92 = load double, double* %74
%93 = fmul double %92, 2.000000e+00
%94 = load double, double* %72
%95 = tail call i32 @sqrt(double %94)
%96 = shl nsw i32 %95, 1
%97 = sitofp i32 %96 to double
%98 = fdiv double %93, %97
%99 = fadd double %98, %91
%100 = load double, double* %74
%101 = tail call double @llvm.fmuladd.f64(double %100, double 2.000000e+00, double 1.000000e+00)
%102 = load double, double* %72
%103 = tail call i32 @sqrt(double %102)
%104 = sitofp i32 %103 to double
%105 = fmul double %101, %104
%106 = tail call double @llvm.fmuladd.f64(double %99, double %105, double %84)
%107 = tail call i32 @pow(double %0, i32 2)
%108 = sitofp i32 %107 to double
%109 = fmul double %106, %108
%110 = fmul double %109, 5.000000e-01
%111 = fadd double %80, %110
%112 = getelementptr inbounds double, double* %5, i64 %70
store double %111, double* %112
%113 = trunc i64 %70 to i32
%114 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i32 %113, double %111)
%115 = add nuw nsw i64 %70, 1
%116 = icmp eq i64 %115, %42
br i1 %116, label %117, label %69
117: ; preds = %69, %39
ret void
}