void newton_nle_ad() {
  int N, it;
  double *x, *xi, *f, *J;
  double stop;
  int *p;
  N = 2;
  it = 0;
  x = (double *)malloc(sizeof(double) * N);
  xi = (double *)malloc(sizeof(double) * N);
  f = (double *)malloc(sizeof(double) * N);
  J = (double *)malloc(sizeof(double) * N * N);
  p = (int *)malloc(sizeof(int) * N);
  x[0] = 2;
  x[1] = 3;
  f[0] = x[0] * x[0] + x[1] * x[1] - 2.0;
  f[1] = pow((double)2.7182818284590452353602874713526624977572, x[0] - 1.0) +
         x[1] * x[1] * x[1] - 2.0;
  stop = array_max_abs(f, N);
  while (stop >= 1e-06 && it < 100) {
    f[0] = x[0] * x[0] + x[1] * x[1] - 2.0;
    f[1] = pow((double)2.7182818284590452353602874713526624977572, x[0] - 1.0) +
           x[1] * x[1] * x[1] - 2.0;
    stop = array_max_abs(f, N);
    J[0] = 2 * x[0];
    J[1] = 2 * x[1];
    J[2] = pow((double)2.7182818284590452353602874713526624977572, x[0] - 1.0);
    J[3] = 3 * x[1] * x[1];
    ludecomp(J, N, p);
    linsolve(J, N, f, p, xi);
    msub(x, xi, x, N, N);
    it++;
    printf("Method 1 : Values obtained %lf , %lf after %d Iterations \n", x[0],
           x[1], it);
  }
  printf("Method 1 : Values obtained %lf , %lf after %d Iterations \n", x[0],
         x[1], it);
  free(x);
  free(xi);
  free(f);
  free(J);
  free(p);
}


x86 assembly (clang, -O0):
<newton_nle_ad>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x2,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movslq -0x4(%rbp),%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x10(%rbp)
movslq -0x4(%rbp),%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x18(%rbp)
movslq -0x4(%rbp),%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x20(%rbp)
movslq -0x4(%rbp),%rdi
shl    $0x3,%rdi
movslq -0x4(%rbp),%rax
imul   %rax,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x28(%rbp)
movslq -0x4(%rbp),%rdi
shl    $0x2,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movsd  0xe01(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  0xe09(%rip),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x10(%rbp),%rax
mulsd  0x8(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xdba(%rip),%xmm1
subsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
movsd  0xdae(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xd9a(%rip),%xmm0
call   1090 <pow@plt>
movaps %xmm0,%xmm1
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xd5f(%rip),%xmm1
subsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x20(%rbp),%rdi
mov    -0x4(%rbp),%esi
mov    $0x0,%al
call   10a0 <array_max_abs@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
xor    %eax,%eax
movsd  0xd4c(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x39(%rbp)
jb     12eb <newton_nle_ad+0x16b>
cmpl   $0x64,-0x8(%rbp)
setl   %al
mov    %al,-0x39(%rbp)
mov    -0x39(%rbp),%al
test   $0x1,%al
jne    12fb <newton_nle_ad+0x17b>
jmp    14a1 <newton_nle_ad+0x321>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x10(%rbp),%rax
mulsd  0x8(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xcd3(%rip),%xmm1
subsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
movsd  0xcc7(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xcb3(%rip),%xmm0
call   1090 <pow@plt>
movaps %xmm0,%xmm1
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xc78(%rip),%xmm1
subsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x20(%rbp),%rdi
mov    -0x4(%rbp),%esi
mov    $0x0,%al
call   10a0 <array_max_abs@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movsd  0xc48(%rip),%xmm0
mulsd  (%rax),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  0xc30(%rip),%xmm0
mulsd  0x8(%rax),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
movsd  0xc22(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xc0e(%rip),%xmm0
call   1090 <pow@plt>
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
movsd  0xc04(%rip),%xmm0
mulsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x28(%rbp),%rdi
mov    -0x4(%rbp),%esi
mov    -0x38(%rbp),%rdx
mov    $0x0,%al
call   1080 <ludecomp@plt>
mov    -0x28(%rbp),%rdi
mov    -0x4(%rbp),%esi
mov    -0x20(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    -0x18(%rbp),%r8
mov    $0x0,%al
call   1060 <linsolve@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x4(%rbp),%ecx
mov    -0x4(%rbp),%r8d
mov    $0x0,%al
call   1040 <msub@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x8(%rbp),%esi
lea    0xb93(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
jmp    12c5 <newton_nle_ad+0x145>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x8(%rbp),%esi
lea    0xb6c(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<newton_nle_ad>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    $0x10,%edi
call   1070 <malloc@plt>
mov    %rax,%r15
mov    $0x10,%edi
call   1070 <malloc@plt>
mov    %rax,0x20(%rsp)
mov    $0x10,%edi
call   1070 <malloc@plt>
mov    %rax,%rbp
mov    $0x20,%edi
call   1070 <malloc@plt>
mov    %rax,%r12
mov    $0x8,%edi
call   1070 <malloc@plt>
mov    %rax,0x10(%rsp)
movaps 0xe26(%rip),%xmm0
movups %xmm0,(%r15)
movaps 0xe2b(%rip),%xmm0
movups %xmm0,0x0(%rbp)
xor    %r14d,%r14d
mov    %rbp,0x18(%rsp)
mov    %rbp,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   10a0 <array_max_abs@plt>
movsd  0xe18(%rip),%xmm1
movsd  0xe18(%rip),%xmm2
test   %eax,%eax
jle    136a <newton_nle_ad+0x1ea>
xor    %r13d,%r13d
mov    0x10(%rsp),%rbx
mulsd  %xmm2,%xmm2
movapd %xmm1,%xmm0
mulsd  %xmm1,%xmm0
addsd  %xmm2,%xmm0
movsd  0xdf8(%rip),%xmm2
addsd  %xmm2,%xmm0
mov    0x18(%rsp),%rbp
movsd  %xmm0,0x0(%rbp)
movsd  0xdea(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xde6(%rip),%xmm0
call   1090 <pow@plt>
movsd  0x8(%r15),%xmm1
movapd %xmm1,%xmm2
mulsd  %xmm1,%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
addsd  0xdb3(%rip),%xmm2
movsd  %xmm2,0x8(%rbp)
mov    %rbp,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   10a0 <array_max_abs@plt>
mov    %eax,0xc(%rsp)
movupd (%r15),%xmm1
movapd %xmm1,%xmm0
addpd  %xmm1,%xmm0
movupd %xmm0,(%r12)
addsd  0xd88(%rip),%xmm1
movsd  0xd88(%rip),%xmm0
call   1090 <pow@plt>
movsd  %xmm0,0x10(%r12)
movsd  0x8(%r15),%xmm0
movapd %xmm0,%xmm1
mulsd  0xd52(%rip),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%r12)
mov    %r12,%rdi
mov    $0x2,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1080 <ludecomp@plt>
mov    %r12,%rdi
mov    $0x2,%esi
mov    %rbp,%rdx
mov    %rbx,%rcx
mov    0x20(%rsp),%rbp
mov    %rbp,%r8
xor    %eax,%eax
call   1060 <linsolve@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    $0x2,%ecx
mov    $0x2,%r8d
xor    %eax,%eax
call   1040 <msub@plt>
lea    0x1(%r13),%r14d
movsd  (%r15),%xmm0
movsd  0x8(%r15),%xmm1
lea    0xd07(%rip),%rdi
mov    %r14d,%esi
mov    $0x2,%al
call   1050 <printf@plt>
movsd  (%r15),%xmm1
movsd  0x8(%r15),%xmm2
cmpl   $0x0,0xc(%rsp)
jle    136a <newton_nle_ad+0x1ea>
cmp    $0x63,%r13d
mov    %r14d,%r13d
jb     1220 <newton_nle_ad+0xa0>
lea    0xcd7(%rip),%rdi
movapd %xmm1,%xmm0
movapd %xmm2,%xmm1
mov    %r14d,%esi
mov    $0x2,%al
call   1050 <printf@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    0x20(%rsp),%rdi
call   1030 <free@plt>
mov    0x18(%rsp),%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    0x10(%rsp),%rdi
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>

LLVM IR (-O0):
@.str = [59 x i8] c"Method 1 : Values obtained %lf , %lf after %d Iterations \0A\00"
define void @newton_nle_ad() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca double*
%4 = alloca double*
%5 = alloca double*
%6 = alloca double*
%7 = alloca double
%8 = alloca i32*
store i32 2, i32* %1
store i32 0, i32* %2
%9 = load i32, i32* %1
%10 = sext i32 %9 to i64
%11 = mul i64 8, %10
%12 = call i8* @malloc(i64 %11)
%13 = bitcast i8* %12 to double*
store double* %13, double** %3
%14 = load i32, i32* %1
%15 = sext i32 %14 to i64
%16 = mul i64 8, %15
%17 = call i8* @malloc(i64 %16)
%18 = bitcast i8* %17 to double*
store double* %18, double** %4
%19 = load i32, i32* %1
%20 = sext i32 %19 to i64
%21 = mul i64 8, %20
%22 = call i8* @malloc(i64 %21)
%23 = bitcast i8* %22 to double*
store double* %23, double** %5
%24 = load i32, i32* %1
%25 = sext i32 %24 to i64
%26 = mul i64 8, %25
%27 = load i32, i32* %1
%28 = sext i32 %27 to i64
%29 = mul i64 %26, %28
%30 = call i8* @malloc(i64 %29)
%31 = bitcast i8* %30 to double*
store double* %31, double** %6
%32 = load i32, i32* %1
%33 = sext i32 %32 to i64
%34 = mul i64 4, %33
%35 = call i8* @malloc(i64 %34)
%36 = bitcast i8* %35 to i32*
store i32* %36, i32** %8
%37 = load double*, double** %3
%38 = getelementptr inbounds double, double* %37, i64 0
store double 2.000000e+00, double* %38
%39 = load double*, double** %3
%40 = getelementptr inbounds double, double* %39, i64 1
store double 3.000000e+00, double* %40
%41 = load double*, double** %3
%42 = getelementptr inbounds double, double* %41, i64 0
%43 = load double, double* %42
%44 = load double*, double** %3
%45 = getelementptr inbounds double, double* %44, i64 0
%46 = load double, double* %45
%47 = load double*, double** %3
%48 = getelementptr inbounds double, double* %47, i64 1
%49 = load double, double* %48
%50 = load double*, double** %3
%51 = getelementptr inbounds double, double* %50, i64 1
%52 = load double, double* %51
%53 = fmul double %49, %52
%54 = call double @llvm.fmuladd.f64(double %43, double %46, double %53)
%55 = fsub double %54, 2.000000e+00
%56 = load double*, double** %5
%57 = getelementptr inbounds double, double* %56, i64 0
store double %55, double* %57
%58 = load double*, double** %3
%59 = getelementptr inbounds double, double* %58, i64 0
%60 = load double, double* %59
%61 = fsub double %60, 1.000000e+00
%62 = call double @pow(double 0x4005BF0A8B145769, double %61)
%63 = load double*, double** %3
%64 = getelementptr inbounds double, double* %63, i64 1
%65 = load double, double* %64
%66 = load double*, double** %3
%67 = getelementptr inbounds double, double* %66, i64 1
%68 = load double, double* %67
%69 = fmul double %65, %68
%70 = load double*, double** %3
%71 = getelementptr inbounds double, double* %70, i64 1
%72 = load double, double* %71
%73 = call double @llvm.fmuladd.f64(double %69, double %72, double %62)
%74 = fsub double %73, 2.000000e+00
%75 = load double*, double** %5
%76 = getelementptr inbounds double, double* %75, i64 1
store double %74, double* %76
%77 = load double*, double** %5
%78 = load i32, i32* %1
%79 = call i32 (double*, i32, ...) bitcast (i32 (...)* @array_max_abs to i32 (double*, i32, ...)*)(double* %77, i32 %78)
%80 = sitofp i32 %79 to double
store double %80, double* %7
br label %81
81: ; preds = %89, %0
%82 = load double, double* %7
%83 = fcmp oge double %82, 0x3EB0C6F7A0B5ED8D
br i1 %83, label %84, label %87
84: ; preds = %81
%85 = load i32, i32* %2
%86 = icmp slt i32 %85, 100
br label %87
87: ; preds = %84, %81
%88 = phi i1 [ false, %81 ], [ %86, %84 ]
br i1 %88, label %89, label %185
89: ; preds = %87
%90 = load double*, double** %3
%91 = getelementptr inbounds double, double* %90, i64 0
%92 = load double, double* %91
%93 = load double*, double** %3
%94 = getelementptr inbounds double, double* %93, i64 0
%95 = load double, double* %94
%96 = load double*, double** %3
%97 = getelementptr inbounds double, double* %96, i64 1
%98 = load double, double* %97
%99 = load double*, double** %3
%100 = getelementptr inbounds double, double* %99, i64 1
%101 = load double, double* %100
%102 = fmul double %98, %101
%103 = call double @llvm.fmuladd.f64(double %92, double %95, double %102)
%104 = fsub double %103, 2.000000e+00
%105 = load double*, double** %5
%106 = getelementptr inbounds double, double* %105, i64 0
store double %104, double* %106
%107 = load double*, double** %3
%108 = getelementptr inbounds double, double* %107, i64 0
%109 = load double, double* %108
%110 = fsub double %109, 1.000000e+00
%111 = call double @pow(double 0x4005BF0A8B145769, double %110)
%112 = load double*, double** %3
%113 = getelementptr inbounds double, double* %112, i64 1
%114 = load double, double* %113
%115 = load double*, double** %3
%116 = getelementptr inbounds double, double* %115, i64 1
%117 = load double, double* %116
%118 = fmul double %114, %117
%119 = load double*, double** %3
%120 = getelementptr inbounds double, double* %119, i64 1
%121 = load double, double* %120
%122 = call double @llvm.fmuladd.f64(double %118, double %121, double %111)
%123 = fsub double %122, 2.000000e+00
%124 = load double*, double** %5
%125 = getelementptr inbounds double, double* %124, i64 1
store double %123, double* %125
%126 = load double*, double** %5
%127 = load i32, i32* %1
%128 = call i32 (double*, i32, ...) bitcast (i32 (...)* @array_max_abs to i32 (double*, i32, ...)*)(double* %126, i32 %127)
%129 = sitofp i32 %128 to double
store double %129, double* %7
%130 = load double*, double** %3
%131 = getelementptr inbounds double, double* %130, i64 0
%132 = load double, double* %131
%133 = fmul double 2.000000e+00, %132
%134 = load double*, double** %6
%135 = getelementptr inbounds double, double* %134, i64 0
store double %133, double* %135
%136 = load double*, double** %3
%137 = getelementptr inbounds double, double* %136, i64 1
%138 = load double, double* %137
%139 = fmul double 2.000000e+00, %138
%140 = load double*, double** %6
%141 = getelementptr inbounds double, double* %140, i64 1
store double %139, double* %141
%142 = load double*, double** %3
%143 = getelementptr inbounds double, double* %142, i64 0
%144 = load double, double* %143
%145 = fsub double %144, 1.000000e+00
%146 = call double @pow(double 0x4005BF0A8B145769, double %145)
%147 = load double*, double** %6
%148 = getelementptr inbounds double, double* %147, i64 2
store double %146, double* %148
%149 = load double*, double** %3
%150 = getelementptr inbounds double, double* %149, i64 1
%151 = load double, double* %150
%152 = fmul double 3.000000e+00, %151
%153 = load double*, double** %3
%154 = getelementptr inbounds double, double* %153, i64 1
%155 = load double, double* %154
%156 = fmul double %152, %155
%157 = load double*, double** %6
%158 = getelementptr inbounds double, double* %157, i64 3
store double %156, double* %158
%159 = load double*, double** %6
%160 = load i32, i32* %1
%161 = load i32*, i32** %8
%162 = call i32 (double*, i32, i32*, ...) bitcast (i32 (...)* @ludecomp to i32 (double*, i32, i32*, ...)*)(double* %159, i32 %160, i32* %161)
%163 = load double*, double** %6
%164 = load i32, i32* %1
%165 = load double*, double** %5
%166 = load i32*, i32** %8
%167 = load double*, double** %4
%168 = call i32 (double*, i32, double*, i32*, double*, ...) bitcast (i32 (...)* @linsolve to i32 (double*, i32, double*, i32*, double*, ...)*)(double* %163, i32 %164, double* %165, i32* %166, double* %167)
%169 = load double*, double** %3
%170 = load double*, double** %4
%171 = load double*, double** %3
%172 = load i32, i32* %1
%173 = load i32, i32* %1
%174 = call i32 (double*, double*, double*, i32, i32, ...) bitcast (i32 (...)* @msub to i32 (double*, double*, double*, i32, i32, ...)*)(double* %169, double* %170, double* %171, i32 %172, i32 %173)
%175 = load i32, i32* %2
%176 = add nsw i32 %175, 1
store i32 %176, i32* %2
%177 = load double*, double** %3
%178 = getelementptr inbounds double, double* %177, i64 0
%179 = load double, double* %178
%180 = load double*, double** %3
%181 = getelementptr inbounds double, double* %180, i64 1
%182 = load double, double* %181
%183 = load i32, i32* %2
%184 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0), double %179, double %182, i32 %183)
br label %81
185: ; preds = %87
%186 = load double*, double** %3
%187 = getelementptr inbounds double, double* %186, i64 0
%188 = load double, double* %187
%189 = load double*, double** %3
%190 = getelementptr inbounds double, double* %189, i64 1
%191 = load double, double* %190
%192 = load i32, i32* %2
%193 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0), double %188, double %191, i32 %192)
%194 = load double*, double** %3
%195 = bitcast double* %194 to i8*
%196 = load double*, double** %4
%197 = bitcast double* %196 to i8*
%198 = load double*, double** %5
%199 = bitcast double* %198 to i8*
%200 = load double*, double** %6
%201 = bitcast double* %200 to i8*
%202 = load i32*, i32** %8
%203 = bitcast i32* %202 to i8*
ret void
}

LLVM IR (-O2):
@.str = [59 x i8] c"Method 1 : Values obtained %lf , %lf after %d Iterations \0A\00"
define void @newton_nle_ad() {
%1 = tail call dereferenceable_or_null(16) i8* @malloc(i64 16)
%2 = bitcast i8* %1 to double*
%3 = tail call dereferenceable_or_null(16) i8* @malloc(i64 16)
%4 = bitcast i8* %3 to double*
%5 = tail call dereferenceable_or_null(16) i8* @malloc(i64 16)
%6 = bitcast i8* %5 to double*
%7 = tail call dereferenceable_or_null(32) i8* @malloc(i64 32)
%8 = bitcast i8* %7 to double*
%9 = tail call dereferenceable_or_null(8) i8* @malloc(i64 8)
%10 = bitcast i8* %9 to i32*
%11 = getelementptr inbounds double, double* %2, i64 1
%12 = bitcast i8* %1 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 3.000000e+00>, <2 x double>* %12
%13 = getelementptr inbounds double, double* %6, i64 1
%14 = bitcast i8* %5 to <2 x double>*
store <2 x double> <double 1.100000e+01, double 0x403BB7E151628AED>, <2 x double>* %14
%15 = tail call i32 (double*, i32, ...) bitcast (i32 (...)* @array_max_abs to i32 (double*, i32, ...)*)(double* %6, i32 2)
%16 = icmp sgt i32 %15, 0
br i1 %16, label %17, label %56
17: ; preds = %0
%18 = getelementptr inbounds double, double* %8, i64 2
%19 = getelementptr inbounds double, double* %8, i64 3
%20 = bitcast i8* %1 to <2 x double>*
%21 = bitcast i8* %7 to <2 x double>*
br label %22
22: ; preds = %22, %17
%23 = phi double [ 3.000000e+00, %17 ], [ %55, %22 ]
%24 = phi double [ 2.000000e+00, %17 ], [ %54, %22 ]
%25 = phi i32 [ 0, %17 ], [ %47, %22 ]
%26 = fmul double %23, %23
%27 = tail call double @llvm.fmuladd.f64(double %24, double %24, double %26)
%28 = fadd double %27, -2.000000e+00
store double %28, double* %6
%29 = fadd double %24, -1.000000e+00
%30 = tail call double @pow(double 0x4005BF0A8B145769, double %29)
%31 = load double, double* %11
%32 = fmul double %31, %31
%33 = tail call double @llvm.fmuladd.f64(double %32, double %31, double %30)
%34 = fadd double %33, -2.000000e+00
store double %34, double* %13
%35 = tail call i32 (double*, i32, ...) bitcast (i32 (...)* @array_max_abs to i32 (double*, i32, ...)*)(double* %6, i32 2)
%36 = load <2 x double>, <2 x double>* %20
%37 = fmul <2 x double> %36, <double 2.000000e+00, double 2.000000e+00>
store <2 x double> %37, <2 x double>* %21
%38 = extractelement <2 x double> %36, i64 0
%39 = fadd double %38, -1.000000e+00
%40 = tail call double @pow(double 0x4005BF0A8B145769, double %39)
store double %40, double* %18
%41 = load double, double* %11
%42 = fmul double %41, 3.000000e+00
%43 = fmul double %41, %42
store double %43, double* %19
%44 = tail call i32 (double*, i32, i32*, ...) bitcast (i32 (...)* @ludecomp to i32 (double*, i32, i32*, ...)*)(double* %8, i32 2, i32* %10)
%45 = tail call i32 (double*, i32, double*, i32*, double*, ...) bitcast (i32 (...)* @linsolve to i32 (double*, i32, double*, i32*, double*, ...)*)(double* %8, i32 2, double* %6, i32* %10, double* %4)
%46 = tail call i32 (double*, double*, double*, i32, i32, ...) bitcast (i32 (...)* @msub to i32 (double*, double*, double*, i32, i32, ...)*)(double* %2, double* %4, double* %2, i32 2, i32 2)
%47 = add nuw nsw i32 %25, 1
%48 = load double, double* %2
%49 = load double, double* %11
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0), double %48, double %49, i32 %47)
%51 = icmp sgt i32 %35, 0
%52 = icmp ult i32 %25, 99
%53 = and i1 %51, %52
%54 = load double, double* %2
%55 = load double, double* %11
br i1 %53, label %22, label %56
56: ; preds = %22, %0
%57 = phi double [ 3.000000e+00, %0 ], [ %55, %22 ]
%58 = phi double [ 2.000000e+00, %0 ], [ %54, %22 ]
%59 = phi i32 [ 0, %0 ], [ %47, %22 ]
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0), double %58, double %57, i32 %59)
tail call void @free(i8* %1)
tail call void @free(i8* %3)
tail call void @free(i8* %5)
tail call void @free(i8* %7)
tail call void @free(i8* %9)
ret void
}