#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 array_max_abs(double *, int);
int /*<<< orphan*/ free(double *);
int /*<<< orphan*/ hessian_fd(double (*)(double *, int), double *, int,
                              double *);
int /*<<< orphan*/ jacobian_fd(double (*)(double *, int), double *, int,
                               double *);
int /*<<< orphan*/ linsolve_lower(double *, int, double *, double *);
int /*<<< orphan*/ madd(double *, double *, double *, int, int);
scalar_t__ malloc(int);
int /*<<< orphan*/ modelhess2(double *, int, double *);
int /*<<< orphan*/ msub(double *, double *, double *, int, int);
int /*<<< orphan*/ printf(char *, double, double, int);
int /*<<< orphan*/ scale(double *, int, int, double);
void newton_fd(double (*funcpt)(double *, int), double *xi, int N, double *x) {
  int it, i;
  double *jac, *hess, *L, *xf;
  double stop, result;
  jac = (double *)malloc(sizeof(double) * N);
  xf = (double *)malloc(sizeof(double) * N);
  hess = (double *)malloc(sizeof(double) * N * N);
  L = (double *)malloc(sizeof(double) * N * N);
  it = 0;
  stop = 1.0;
  while (stop > 1e-05 && it < 100) {
    jacobian_fd(funcpt, xi, N, jac);
    hessian_fd(funcpt, xi, N, hess);
    modelhess2(hess, N, L);
    scale(jac, 1, N, -1.0);
    linsolve_lower(L, N, jac, x);
    madd(x, xi, x, 1, N);
    msub(x, xi, xf, 1, N);
    stop = array_max_abs(xf, N);
    for (i = 0; i < N; ++i) {
      xi[i] = x[i];
    }
    it++;
    printf("Values obtained %lf , %lf after %d Iterations \n", x[0], x[1], it);
  }
  free(jac);
  free(hess);
  free(xf);
  free(L);
}


x86 assembly (clang, -O0):
<newton_fd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x30(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x48(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
movslq -0x14(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x38(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
movslq -0x14(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x24(%rbp)
movsd  0xdce(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
xor    %eax,%eax
movsd  0xdc2(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x59(%rbp)
jbe    125d <newton_fd+0xad>
cmpl   $0x64,-0x24(%rbp)
setl   %al
mov    %al,-0x59(%rbp)
mov    -0x59(%rbp),%al
test   $0x1,%al
jne    126d <newton_fd+0xbd>
jmp    1380 <newton_fd+0x1d0>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x30(%rbp),%rcx
call   1090 <jacobian_fd@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x38(%rbp),%rcx
call   10b0 <hessian_fd@plt>
mov    -0x38(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x40(%rbp),%rdx
call   1070 <modelhess2@plt>
mov    -0x30(%rbp),%rdi
mov    -0x14(%rbp),%edx
mov    $0x1,%esi
movsd  0xd57(%rip),%xmm0
call   10a0 <scale@plt>
mov    -0x40(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x30(%rbp),%rdx
mov    -0x20(%rbp),%rcx
call   1060 <linsolve_lower@plt>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x14(%rbp),%r8d
mov    $0x1,%ecx
call   10c0 <madd@plt>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x48(%rbp),%rdx
mov    -0x14(%rbp),%r8d
mov    $0x1,%ecx
call   1040 <msub@plt>
mov    -0x48(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   10d0 <array_max_abs@plt>
movsd  %xmm0,-0x50(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1352 <newton_fd+0x1a2>
mov    -0x20(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    131e <newton_fd+0x16e>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x24(%rbp),%esi
lea    0xca2(%rip),%rdi
call   1050 <printf@plt>
jmp    1237 <newton_fd+0x87>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<newton_fd>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %rcx,%rbx
mov    %edx,%r14d
mov    %rsi,%r15
mov    %rdi,0x70(%rsp)
lea    0x0(,%r14,8),%r12d
mov    %r12d,%edi
call   1080 <malloc@plt>
mov    %rax,0x28(%rsp)
mov    %r12d,%edi
call   1080 <malloc@plt>
mov    %rax,0x30(%rsp)
imul   %r14d,%r12d
mov    %r12d,%edi
call   1080 <malloc@plt>
mov    %rax,0x20(%rsp)
mov    %r12d,%edi
call   1080 <malloc@plt>
mov    %r14d,%r13d
lea    (%rbx,%r13,8),%rcx
mov    %r13d,%edx
and    $0xfffffffc,%edx
mov    %rdx,0x60(%rsp)
add    $0xfffffffffffffffc,%rdx
mov    %rdx,0x58(%rsp)
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
cmp    %r15,%rcx
seta   %cl
lea    (%r15,%r13,8),%rdx
cmp    %rbx,%rdx
seta   %dl
mov    %rax,0x18(%rsp)
and    %cl,%dl
mov    %dl,0xf(%rsp)
mov    %esi,%eax
and    $0x3,%eax
and    $0xfffffffffffffffc,%rsi
mov    %rsi,0x38(%rsp)
mov    %r13d,%ecx
and    $0x3,%ecx
mov    %rcx,0x68(%rsp)
lea    0x10(%r15),%rcx
mov    %rcx,0x48(%rsp)
lea    0x10(%rbx),%rcx
mov    %rcx,0x40(%rsp)
mov    %rax,0x50(%rsp)
shl    $0x5,%rax
mov    %rax,0x10(%rsp)
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
mov    %rax,0x80(%rsp)
mov    0x70(%rsp),%rbp
mov    %rbp,%rdi
mov    %r15,%rsi
mov    %r14d,%edx
mov    0x28(%rsp),%r12
mov    %r12,%rcx
call   1090 <jacobian_fd@plt>
mov    %rbp,%rdi
mov    %r15,%rsi
mov    %r14d,%edx
mov    0x20(%rsp),%rbp
mov    %rbp,%rcx
call   10b0 <hessian_fd@plt>
mov    %rbp,%rdi
mov    %r14d,%esi
mov    0x18(%rsp),%rbp
mov    %rbp,%rdx
call   1070 <modelhess2@plt>
mov    %r12,%rdi
mov    $0x1,%esi
mov    %r14d,%edx
movsd  0xd11(%rip),%xmm0
call   10a0 <scale@plt>
mov    %rbp,%rdi
mov    %r14d,%esi
mov    %r12,%rdx
mov    %rbx,%rcx
call   1060 <linsolve_lower@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
mov    $0x1,%ecx
mov    %r14d,%r8d
call   10c0 <madd@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    0x30(%rsp),%rbp
mov    %rbp,%rdx
mov    $0x1,%ecx
mov    %r14d,%r8d
call   1040 <msub@plt>
mov    %rbp,%rdi
mov    0x80(%rsp),%rbp
mov    %r14d,%esi
call   10d0 <array_max_abs@plt>
movsd  %xmm0,0x78(%rsp)
test   %r14d,%r14d
jle    14ab <newton_fd+0x2fb>
cmp    $0x4,%r14d
setb   %al
or     0xf(%rsp),%al
je     1370 <newton_fd+0x1c0>
xor    %eax,%eax
jmp    143a <newton_fd+0x28a>
nopl   0x0(%rax)
cmpq   $0xc,0x58(%rsp)
jae    1381 <newton_fd+0x1d1>
xor    %eax,%eax
mov    0x10(%rsp),%rsi
jmp    13f2 <newton_fd+0x242>
mov    0x38(%rsp),%rcx
xor    %eax,%eax
mov    0x10(%rsp),%rsi
nopl   (%rax)
movups (%rbx,%rax,8),%xmm0
movups 0x10(%rbx,%rax,8),%xmm1
movups %xmm0,(%r15,%rax,8)
movups %xmm1,0x10(%r15,%rax,8)
movups 0x20(%rbx,%rax,8),%xmm0
movups 0x30(%rbx,%rax,8),%xmm1
movups %xmm0,0x20(%r15,%rax,8)
movups %xmm1,0x30(%r15,%rax,8)
movups 0x40(%rbx,%rax,8),%xmm0
movups 0x50(%rbx,%rax,8),%xmm1
movups %xmm0,0x40(%r15,%rax,8)
movups %xmm1,0x50(%r15,%rax,8)
movupd 0x60(%rbx,%rax,8),%xmm0
movups 0x70(%rbx,%rax,8),%xmm1
movupd %xmm0,0x60(%r15,%rax,8)
movups %xmm1,0x70(%r15,%rax,8)
add    $0x10,%rax
add    $0xfffffffffffffffc,%rcx
jne    1390 <newton_fd+0x1e0>
cmpq   $0x0,0x50(%rsp)
je     142d <newton_fd+0x27d>
mov    0x48(%rsp),%rcx
lea    (%rcx,%rax,8),%rcx
mov    0x40(%rsp),%rdx
lea    (%rdx,%rax,8),%rax
xor    %edx,%edx
xchg   %ax,%ax
movupd -0x10(%rax,%rdx,1),%xmm0
movups (%rax,%rdx,1),%xmm1
movupd %xmm0,-0x10(%rcx,%rdx,1)
movups %xmm1,(%rcx,%rdx,1)
add    $0x20,%rdx
cmp    %rdx,%rsi
jne    1410 <newton_fd+0x260>
mov    0x60(%rsp),%rcx
mov    %rcx,%rax
cmp    %r13,%rcx
je     14ab <newton_fd+0x2fb>
mov    %rax,%rcx
not    %rcx
add    %r13,%rcx
mov    0x68(%rsp),%rdx
test   %rdx,%rdx
je     1465 <newton_fd+0x2b5>
nopl   (%rax)
movsd  (%rbx,%rax,8),%xmm0
movsd  %xmm0,(%r15,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%rdx
jne    1450 <newton_fd+0x2a0>
cmp    $0x3,%rcx
jb     14ab <newton_fd+0x2fb>
nopl   0x0(%rax,%rax,1)
movsd  (%rbx,%rax,8),%xmm0
movsd  %xmm0,(%r15,%rax,8)
movsd  0x8(%rbx,%rax,8),%xmm0
movsd  %xmm0,0x8(%r15,%rax,8)
movsd  0x10(%rbx,%rax,8),%xmm0
movsd  %xmm0,0x10(%r15,%rax,8)
movsd  0x18(%rbx,%rax,8),%xmm0
movsd  %xmm0,0x18(%r15,%rax,8)
add    $0x4,%rax
cmp    %rax,%r13
jne    1470 <newton_fd+0x2c0>
lea    0x1(%rbp),%r12d
movsd  (%rbx),%xmm0
movsd  0x8(%rbx),%xmm1
lea    0xb51(%rip),%rdi
mov    %r12d,%esi
call   1050 <printf@plt>
movsd  0x78(%rsp),%xmm0
ucomisd 0xb33(%rip),%xmm0
jbe    14e3 <newton_fd+0x333>
cmp    $0x63,%ebp
mov    %r12d,%eax
jb     1290 <newton_fd+0xe0>
mov    0x28(%rsp),%rdi
call   1030 <free@plt>
mov    0x20(%rsp),%rdi
call   1030 <free@plt>
mov    0x30(%rsp),%rdi
call   1030 <free@plt>
mov    0x18(%rsp),%rdi
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>

LLVM IR (-O0):
@.str = [48 x i8] c"Values obtained %lf , %lf after %d Iterations \0A\00"
define void @newton_fd(double (double*, i32)* %0, double* %1, i32 %2, double* %3) {
%5 = alloca double (double*, i32)*
%6 = alloca double*
%7 = alloca i32
%8 = alloca double*
%9 = alloca i32
%10 = alloca i32
%11 = alloca double*
%12 = alloca double*
%13 = alloca double*
%14 = alloca double*
%15 = alloca double
%16 = alloca double
store double (double*, i32)* %0, double (double*, i32)** %5
store double* %1, double** %6
store i32 %2, i32* %7
store double* %3, double** %8
%17 = load i32, i32* %7
%18 = sext i32 %17 to i64
%19 = mul i64 8, %18
%20 = trunc i64 %19 to i32
%21 = call i64 @malloc(i32 %20)
%22 = inttoptr i64 %21 to double*
store double* %22, double** %11
%23 = load i32, i32* %7
%24 = sext i32 %23 to i64
%25 = mul i64 8, %24
%26 = trunc i64 %25 to i32
%27 = call i64 @malloc(i32 %26)
%28 = inttoptr i64 %27 to double*
store double* %28, double** %14
%29 = load i32, i32* %7
%30 = sext i32 %29 to i64
%31 = mul i64 8, %30
%32 = load i32, i32* %7
%33 = sext i32 %32 to i64
%34 = mul i64 %31, %33
%35 = trunc i64 %34 to i32
%36 = call i64 @malloc(i32 %35)
%37 = inttoptr i64 %36 to double*
store double* %37, double** %12
%38 = load i32, i32* %7
%39 = sext i32 %38 to i64
%40 = mul i64 8, %39
%41 = load i32, i32* %7
%42 = sext i32 %41 to i64
%43 = mul i64 %40, %42
%44 = trunc i64 %43 to i32
%45 = call i64 @malloc(i32 %44)
%46 = inttoptr i64 %45 to double*
store double* %46, double** %13
store i32 0, i32* %9
store double 1.000000e+00, double* %15
br label %47
47: ; preds = %108, %4
%48 = load double, double* %15
%49 = fcmp ogt double %48, 1.000000e-05
br i1 %49, label %50, label %53
50: ; preds = %47
%51 = load i32, i32* %9
%52 = icmp slt i32 %51, 100
br label %53
53: ; preds = %50, %47
%54 = phi i1 [ false, %47 ], [ %52, %50 ]
br i1 %54, label %55, label %119
55: ; preds = %53
%56 = load double (double*, i32)*, double (double*, i32)** %5
%57 = load double*, double** %6
%58 = load i32, i32* %7
%59 = load double*, double** %11
%60 = call i32 @jacobian_fd(double (double*, i32)* %56, double* %57, i32 %58, double* %59)
%61 = load double (double*, i32)*, double (double*, i32)** %5
%62 = load double*, double** %6
%63 = load i32, i32* %7
%64 = load double*, double** %12
%65 = call i32 @hessian_fd(double (double*, i32)* %61, double* %62, i32 %63, double* %64)
%66 = load double*, double** %12
%67 = load i32, i32* %7
%68 = load double*, double** %13
%69 = call i32 @modelhess2(double* %66, i32 %67, double* %68)
%70 = load double*, double** %11
%71 = load i32, i32* %7
%72 = call i32 @scale(double* %70, i32 1, i32 %71, double -1.000000e+00)
%73 = load double*, double** %13
%74 = load i32, i32* %7
%75 = load double*, double** %11
%76 = load double*, double** %8
%77 = call i32 @linsolve_lower(double* %73, i32 %74, double* %75, double* %76)
%78 = load double*, double** %8
%79 = load double*, double** %6
%80 = load double*, double** %8
%81 = load i32, i32* %7
%82 = call i32 @madd(double* %78, double* %79, double* %80, i32 1, i32 %81)
%83 = load double*, double** %8
%84 = load double*, double** %6
%85 = load double*, double** %14
%86 = load i32, i32* %7
%87 = call i32 @msub(double* %83, double* %84, double* %85, i32 1, i32 %86)
%88 = load double*, double** %14
%89 = load i32, i32* %7
%90 = call double @array_max_abs(double* %88, i32 %89)
store double %90, double* %15
store i32 0, i32* %10
br label %91
91: ; preds = %105, %55
%92 = load i32, i32* %10
%93 = load i32, i32* %7
%94 = icmp slt i32 %92, %93
br i1 %94, label %95, label %108
95: ; preds = %91
%96 = load double*, double** %8
%97 = load i32, i32* %10
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds double, double* %96, i64 %98
%100 = load double, double* %99
%101 = load double*, double** %6
%102 = load i32, i32* %10
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds double, double* %101, i64 %103
store double %100, double* %104
br label %105
105: ; preds = %95
%106 = load i32, i32* %10
%107 = add nsw i32 %106, 1
store i32 %107, i32* %10
br label %91
108: ; preds = %91
%109 = load i32, i32* %9
%110 = add nsw i32 %109, 1
store i32 %110, i32* %9
%111 = load double*, double** %8
%112 = getelementptr inbounds double, double* %111, i64 0
%113 = load double, double* %112
%114 = load double*, double** %8
%115 = getelementptr inbounds double, double* %114, i64 1
%116 = load double, double* %115
%117 = load i32, i32* %9
%118 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), double %113, double %116, i32 %117)
br label %47
119: ; preds = %53
%120 = load double*, double** %11
%121 = call i32 @free(double* %120)
%122 = load double*, double** %12
%123 = call i32 @free(double* %122)
%124 = load double*, double** %14
%125 = call i32 @free(double* %124)
%126 = load double*, double** %13
%127 = call i32 @free(double* %126)
ret void
}

LLVM IR (-O2):
@.str = [48 x i8] c"Values obtained %lf , %lf after %d Iterations \0A\00"
define void @newton_fd(double (double*, i32)* %0, double* %1, i32 %2, double* %3) {
%5 = shl i32 %2, 3
%6 = tail call i64 @malloc(i32 %5)
%7 = inttoptr i64 %6 to double*
%8 = tail call i64 @malloc(i32 %5)
%9 = inttoptr i64 %8 to double*
%10 = mul i32 %5, %2
%11 = tail call i64 @malloc(i32 %10)
%12 = inttoptr i64 %11 to double*
%13 = tail call i64 @malloc(i32 %10)
%14 = inttoptr i64 %13 to double*
%15 = icmp sgt i32 %2, 0
%16 = getelementptr inbounds double, double* %3, i64 1
%17 = zext i32 %2 to i64
%18 = getelementptr double, double* %1, i64 %17
%19 = getelementptr double, double* %3, i64 %17
%20 = and i64 %17, 4294967292
%21 = add nsw i64 %20, -4
%22 = lshr exact i64 %21, 2
%23 = add nuw nsw i64 %22, 1
%24 = icmp ult i32 %2, 4
%25 = icmp ugt double* %19, %1
%26 = icmp ugt double* %18, %3
%27 = and i1 %25, %26
%28 = and i64 %17, 4294967292
%29 = and i64 %23, 3
%30 = icmp ult i64 %21, 12
%31 = and i64 %23, 9223372036854775804
%32 = icmp eq i64 %29, 0
%33 = icmp eq i64 %28, %17
%34 = and i64 %17, 3
%35 = icmp eq i64 %34, 0
br label %36
36: ; preds = %4, %152
%37 = phi i32 [ 0, %4 ], [ %153, %152 ]
%38 = tail call i32 @jacobian_fd(double (double*, i32)* %0, double* %1, i32 %2, double* %7)
%39 = tail call i32 @hessian_fd(double (double*, i32)* %0, double* %1, i32 %2, double* %12)
%40 = tail call i32 @modelhess2(double* %12, i32 %2, double* %14)
%41 = tail call i32 @scale(double* %7, i32 1, i32 %2, double -1.000000e+00)
%42 = tail call i32 @linsolve_lower(double* %14, i32 %2, double* %7, double* %3)
%43 = tail call i32 @madd(double* %3, double* %1, double* %3, i32 1, i32 %2)
%44 = tail call i32 @msub(double* %3, double* %1, double* %9, i32 1, i32 %2)
%45 = tail call double @array_max_abs(double* %9, i32 %2)
br i1 %15, label %46, label %152
46: ; preds = %36
%47 = or i1 %24, %27
br i1 %47, label %117, label %48
48: ; preds = %46
br i1 %30, label %98, label %49
49: ; preds = %48, %49
%50 = phi i64 [ %95, %49 ], [ 0, %48 ]
%51 = phi i64 [ %96, %49 ], [ 0, %48 ]
%52 = getelementptr inbounds double, double* %3, i64 %50
%53 = bitcast double* %52 to <2 x double>*
%54 = load <2 x double>, <2 x double>* %53
%55 = getelementptr inbounds double, double* %52, i64 2
%56 = bitcast double* %55 to <2 x double>*
%57 = load <2 x double>, <2 x double>* %56
%58 = getelementptr inbounds double, double* %1, i64 %50
%59 = bitcast double* %58 to <2 x double>*
store <2 x double> %54, <2 x double>* %59
%60 = getelementptr inbounds double, double* %58, i64 2
%61 = bitcast double* %60 to <2 x double>*
store <2 x double> %57, <2 x double>* %61
%62 = or i64 %50, 4
%63 = getelementptr inbounds double, double* %3, i64 %62
%64 = bitcast double* %63 to <2 x double>*
%65 = load <2 x double>, <2 x double>* %64
%66 = getelementptr inbounds double, double* %63, i64 2
%67 = bitcast double* %66 to <2 x double>*
%68 = load <2 x double>, <2 x double>* %67
%69 = getelementptr inbounds double, double* %1, i64 %62
%70 = bitcast double* %69 to <2 x double>*
store <2 x double> %65, <2 x double>* %70
%71 = getelementptr inbounds double, double* %69, i64 2
%72 = bitcast double* %71 to <2 x double>*
store <2 x double> %68, <2 x double>* %72
%73 = or i64 %50, 8
%74 = getelementptr inbounds double, double* %3, i64 %73
%75 = bitcast double* %74 to <2 x double>*
%76 = load <2 x double>, <2 x double>* %75
%77 = getelementptr inbounds double, double* %74, i64 2
%78 = bitcast double* %77 to <2 x double>*
%79 = load <2 x double>, <2 x double>* %78
%80 = getelementptr inbounds double, double* %1, i64 %73
%81 = bitcast double* %80 to <2 x double>*
store <2 x double> %76, <2 x double>* %81
%82 = getelementptr inbounds double, double* %80, i64 2
%83 = bitcast double* %82 to <2 x double>*
store <2 x double> %79, <2 x double>* %83
%84 = or i64 %50, 12
%85 = getelementptr inbounds double, double* %3, i64 %84
%86 = bitcast double* %85 to <2 x double>*
%87 = load <2 x double>, <2 x double>* %86
%88 = getelementptr inbounds double, double* %85, i64 2
%89 = bitcast double* %88 to <2 x double>*
%90 = load <2 x double>, <2 x double>* %89
%91 = getelementptr inbounds double, double* %1, i64 %84
%92 = bitcast double* %91 to <2 x double>*
store <2 x double> %87, <2 x double>* %92
%93 = getelementptr inbounds double, double* %91, i64 2
%94 = bitcast double* %93 to <2 x double>*
store <2 x double> %90, <2 x double>* %94
%95 = add nuw i64 %50, 16
%96 = add nuw i64 %51, 4
%97 = icmp eq i64 %96, %31
br i1 %97, label %98, label %49
98: ; preds = %49, %48
%99 = phi i64 [ 0, %48 ], [ %95, %49 ]
br i1 %32, label %116, label %100
100: ; preds = %98, %100
%101 = phi i64 [ %113, %100 ], [ %99, %98 ]
%102 = phi i64 [ %114, %100 ], [ 0, %98 ]
%103 = getelementptr inbounds double, double* %3, i64 %101
%104 = bitcast double* %103 to <2 x double>*
%105 = load <2 x double>, <2 x double>* %104
%106 = getelementptr inbounds double, double* %103, i64 2
%107 = bitcast double* %106 to <2 x double>*
%108 = load <2 x double>, <2 x double>* %107
%109 = getelementptr inbounds double, double* %1, i64 %101
%110 = bitcast double* %109 to <2 x double>*
store <2 x double> %105, <2 x double>* %110
%111 = getelementptr inbounds double, double* %109, i64 2
%112 = bitcast double* %111 to <2 x double>*
store <2 x double> %108, <2 x double>* %112
%113 = add nuw i64 %101, 4
%114 = add i64 %102, 1
%115 = icmp eq i64 %114, %29
br i1 %115, label %116, label %100
116: ; preds = %100, %98
br i1 %33, label %152, label %117
117: ; preds = %46, %116
%118 = phi i64 [ 0, %46 ], [ %28, %116 ]
%119 = xor i64 %118, -1
%120 = add nsw i64 %119, %17
br i1 %35, label %130, label %121
121: ; preds = %117, %121
%122 = phi i64 [ %127, %121 ], [ %118, %117 ]
%123 = phi i64 [ %128, %121 ], [ 0, %117 ]
%124 = getelementptr inbounds double, double* %3, i64 %122
%125 = load double, double* %124
%126 = getelementptr inbounds double, double* %1, i64 %122
store double %125, double* %126
%127 = add nuw nsw i64 %122, 1
%128 = add i64 %123, 1
%129 = icmp eq i64 %128, %34
br i1 %129, label %130, label %121
130: ; preds = %121, %117
%131 = phi i64 [ %118, %117 ], [ %127, %121 ]
%132 = icmp ult i64 %120, 3
br i1 %132, label %152, label %133
133: ; preds = %130, %133
%134 = phi i64 [ %150, %133 ], [ %131, %130 ]
%135 = getelementptr inbounds double, double* %3, i64 %134
%136 = load double, double* %135
%137 = getelementptr inbounds double, double* %1, i64 %134
store double %136, double* %137
%138 = add nuw nsw i64 %134, 1
%139 = getelementptr inbounds double, double* %3, i64 %138
%140 = load double, double* %139
%141 = getelementptr inbounds double, double* %1, i64 %138
store double %140, double* %141
%142 = add nuw nsw i64 %134, 2
%143 = getelementptr inbounds double, double* %3, i64 %142
%144 = load double, double* %143
%145 = getelementptr inbounds double, double* %1, i64 %142
store double %144, double* %145
%146 = add nuw nsw i64 %134, 3
%147 = getelementptr inbounds double, double* %3, i64 %146
%148 = load double, double* %147
%149 = getelementptr inbounds double, double* %1, i64 %146
store double %148, double* %149
%150 = add nuw nsw i64 %134, 4
%151 = icmp eq i64 %150, %17
br i1 %151, label %152, label %133
152: ; preds = %130, %133, %116, %36
%153 = add nuw nsw i32 %37, 1
%154 = load double, double* %3
%155 = load double, double* %16
%156 = tail call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), double %154, double %155, i32 %153)
%157 = fcmp ogt double %45, 1.000000e-05
%158 = icmp ult i32 %37, 99
%159 = and i1 %157, %158
br i1 %159, label %36, label %160
160: ; preds = %152
%161 = tail call i32 @free(double* %7)
%162 = tail call i32 @free(double* %12)
%163 = tail call i32 @free(double* %9)
%164 = tail call i32 @free(double* %14)
ret void
}