#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 */
int /*<<< orphan*/ fabs(double);
double fmax(double, int /*<<< orphan*/);
int /*<<< orphan*/ print_array(int, double **);
int /*<<< orphan*/ printf(char *, int, double);
int jacobi(int n, double x[n][n], double epsilon) {
  double xnew[n][n];
  double delta;
  int cnt = 0;
  int i, j;
  do {
    delta = 0.0;
    for (i = 1; i < n - 1; i++) {
      for (j = 1; j < n - 1; j++) {
        xnew[i][j] =
            (x[i - 1][j] + x[i][j - 1] + x[i + 1][j] + x[i][j + 1]) / 4.0;
        delta = fmax(delta, fabs(xnew[i][j] - x[i][j]));
      }
    }
    for (i = 1; i < n - 1; i++) {
      for (j = 1; j < n - 1; j++) {
        x[i][j] = xnew[i][j];
      }
    }
    cnt++;
    if (1) {
      printf("Iter %d: (delta=%6.4f)\n", cnt, delta);
      print_array(n, x);
    }
  } while (delta > epsilon);
  return cnt;
}


x86 assembly (clang, -O0):
<jacobi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movsd  %xmm0,-0x18(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,%edx
mov    %rdx,-0x60(%rbp)
mov    %rdx,%rcx
mov    %rdx,%rax
mov    %rax,-0x58(%rbp)
mov    %rsp,%rsi
mov    %rsi,-0x20(%rbp)
imul   %rdx,%rdx
lea    0xf(,%rdx,8),%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x50(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x28(%rbp)
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x3c(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x1,-0x40(%rbp)
mov    -0x40(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    12fe <jacobi+0x1be>
movl   $0x1,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    12eb <jacobi+0x1ab>
mov    -0x60(%rbp),%rdx
mov    -0x50(%rbp),%rax
mov    -0x58(%rbp),%rsi
mov    -0x10(%rbp),%rcx
mov    -0x40(%rbp),%edi
sub    $0x1,%edi
movslq %edi,%rdi
imul   %rdx,%rdi
shl    $0x3,%rdi
add    %rdi,%rcx
movslq -0x44(%rbp),%rdi
movsd  (%rcx,%rdi,8),%xmm0
mov    -0x10(%rbp),%rcx
movslq -0x40(%rbp),%rdi
imul   %rdx,%rdi
shl    $0x3,%rdi
add    %rdi,%rcx
mov    -0x44(%rbp),%edi
sub    $0x1,%edi
movslq %edi,%rdi
addsd  (%rcx,%rdi,8),%xmm0
mov    -0x10(%rbp),%rcx
mov    -0x40(%rbp),%edi
add    $0x1,%edi
movslq %edi,%rdi
imul   %rdx,%rdi
shl    $0x3,%rdi
add    %rdi,%rcx
movslq -0x44(%rbp),%rdi
addsd  (%rcx,%rdi,8),%xmm0
mov    -0x10(%rbp),%rcx
movslq -0x40(%rbp),%rdi
imul   %rdx,%rdi
shl    $0x3,%rdi
add    %rdi,%rcx
mov    -0x44(%rbp),%edi
add    $0x1,%edi
movslq %edi,%rdi
addsd  (%rcx,%rdi,8),%xmm0
movsd  0xd96(%rip),%xmm1
divsd  %xmm1,%xmm0
movslq -0x40(%rbp),%rdi
imul   %rsi,%rdi
shl    $0x3,%rdi
mov    %rax,%rcx
add    %rdi,%rcx
movslq -0x44(%rbp),%rdi
movsd  %xmm0,(%rcx,%rdi,8)
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movslq -0x40(%rbp),%rcx
imul   %rsi,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
imul   %rdx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x44(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
call   1050 <fabs@plt>
movsd  -0x68(%rbp),%xmm0
mov    %eax,%edi
call   1060 <fmax@plt>
movsd  %xmm0,-0x38(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    11c1 <jacobi+0x81>
jmp    12f0 <jacobi+0x1b0>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    11a9 <jacobi+0x69>
movl   $0x1,-0x40(%rbp)
mov    -0x40(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    138f <jacobi+0x24f>
movl   $0x1,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    137c <jacobi+0x23c>
mov    -0x60(%rbp),%rdx
mov    -0x50(%rbp),%rax
mov    -0x58(%rbp),%rsi
movslq -0x40(%rbp),%rcx
imul   %rsi,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
imul   %rdx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    131d <jacobi+0x1dd>
jmp    1381 <jacobi+0x241>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1305 <jacobi+0x1c5>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%esi
movsd  -0x38(%rbp),%xmm0
lea    0xc61(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <print_array@plt>
movsd  -0x38(%rbp),%xmm0
ucomisd -0x18(%rbp),%xmm0
ja     119a <jacobi+0x5a>
mov    -0x3c(%rbp),%eax
mov    -0x20(%rbp),%rcx
mov    %rcx,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<jacobi>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
movsd  %xmm0,-0xa0(%rbp)
ff
mov    %rsi,%r12
mov    %edi,%ecx
mov    %rcx,%rax
imul   %rcx,%rax
mov    %rsp,%rdx
lea    0xf(,%rax,8),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rdx
mov    %rdx,%rsp
lea    -0x1(%rdi),%eax
lea    0x1(%rcx),%rsi
mov    %rsi,-0x70(%rbp)
lea    -0x2(%rdi),%esi
lea    0x0(,%rsi,8),%r13
mov    %rsi,-0x58(%rbp)
and    $0xfffffffe,%esi
mov    %rsi,-0x68(%rbp)
lea    (%r12,%rcx,8),%rsi
add    $0x10,%rsi
mov    %rsi,-0x98(%rbp)
lea    0x0(,%rcx,8),%rsi
mov    %rsi,-0xc8(%rbp)
lea    (%rdx,%rcx,8),%rsi
add    $0x8,%rsi
mov    %rsi,-0x90(%rbp)
mov    %rcx,%r14
shl    $0x4,%r14
lea    (%r12,%r14,1),%rsi
add    $0x8,%rsi
mov    %rsi,-0x88(%rbp)
mov    %rax,-0xd0(%rbp)
lea    -0x8(,%rax,8),%rax
ff
mov    %rax,-0xe0(%rbp)
lea    (%r12,%r14,1),%rax
mov    %rax,-0x60(%rbp)
lea    (%rdx,%r14,1),%rax
mov    %rax,-0xb8(%rbp)
mov    %rdx,-0x78(%rbp)
lea    (%rdx,%rcx,8),%rax
mov    %rax,-0xb0(%rbp)
mov    %rcx,-0x80(%rbp)
lea    (%r12,%rcx,8),%rax
mov    %rax,-0xa8(%rbp)
xor    %ebx,%ebx
mov    %r12,-0x40(%rbp)
mov    %rdi,-0x48(%rbp)
mov    %r13,-0x38(%rbp)
mov    %r14,-0xc0(%rbp)
jmp    1296 <jacobi+0x146>
nop
mov    -0x40(%rbp),%r12
mov    -0x38(%rbp),%r13
mov    -0x50(%rbp),%rbx
movsd  %xmm0,-0x30(%rbp)
add    $0x1,%ebx
mov    %rdi,%r15
lea    0xd9a(%rip),%rdi
mov    %ebx,%esi
call   1040 <printf@plt>
mov    %r15d,%edi
mov    %r12,%rsi
call   1030 <print_array@plt>
mov    %r15,%rdi
movsd  -0x30(%rbp),%xmm0
ucomisd -0xa0(%rbp),%xmm0
ff
jbe    143a <jacobi+0x2ea>
xorpd  %xmm0,%xmm0
cmp    $0x3,%edi
jl     125c <jacobi+0x10c>
mov    %rbx,-0x50(%rbp)
xorpd  %xmm0,%xmm0
mov    $0x1,%eax
mov    %r12,%r13
mov    -0x88(%rbp),%r15
mov    -0x90(%rbp),%rbx
mov    -0x98(%rbp),%r12
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
mov    %rax,-0xd8(%rbp)
xor    %r14d,%r14d
xchg   %ax,%ax
movsd  %xmm0,-0x30(%rbp)
movsd  0x8(%r13,%r14,1),%xmm0
addsd  -0x10(%r12,%r14,1),%xmm0
addsd  (%r15,%r14,1),%xmm0
addsd  (%r12,%r14,1),%xmm0
mulsd  0xcf9(%rip),%xmm0
movsd  %xmm0,(%rbx,%r14,1)
subsd  -0x8(%r12,%r14,1),%xmm0
call   1050 <fabs@plt>
movsd  -0x30(%rbp),%xmm0
mov    %eax,%edi
call   1070 <fmax@plt>
add    $0x8,%r14
cmp    %r14,-0xe0(%rbp)
jne    12e0 <jacobi+0x190>
mov    -0xc8(%rbp),%rax
add    %rax,%r12
add    %rax,%rbx
add    %rax,%r15
add    %rax,%r13
mov    -0xd8(%rbp),%rax
cmp    -0xd0(%rbp),%rax
jne    12d0 <jacobi+0x180>
mov    -0x48(%rbp),%rdi
cmp    $0x3,%edi
jl     1250 <jacobi+0x100>
cmpl   $0x1,-0x58(%rbp)
jne    137a <jacobi+0x22a>
movsd  %xmm0,-0x30(%rbp)
xor    %r14d,%r14d
mov    -0x38(%rbp),%r15
jmp    13e5 <jacobi+0x295>
movsd  %xmm0,-0x30(%rbp)
mov    $0x8,%ebx
xor    %r14d,%r14d
mov    -0x38(%rbp),%r15
mov    -0x68(%rbp),%r12
mov    -0x60(%rbp),%r13
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    -0xb0(%rbp),%rax
lea    (%rax,%rbx,1),%rsi
mov    -0xa8(%rbp),%rax
lea    (%rax,%rbx,1),%rdi
mov    %r15,%rdx
call   1060 <memcpy@plt>
mov    -0xb8(%rbp),%rax
lea    (%rax,%rbx,1),%rsi
lea    (%rbx,%r13,1),%rdi
mov    %r15,%rdx
call   1060 <memcpy@plt>
add    $0x2,%r14
add    -0xc0(%rbp),%rbx
cmp    %r14,%r12
jne    13a0 <jacobi+0x250>
testb  $0x1,-0x58(%rbp)
jne    1404 <jacobi+0x2b4>
mov    -0x40(%rbp),%r12
mov    -0x50(%rbp),%rbx
movsd  -0x30(%rbp),%xmm0
mov    -0x48(%rbp),%rdi
mov    %r15,%r13
jmp    125c <jacobi+0x10c>
imul   -0x80(%rbp),%r14
add    -0x70(%rbp),%r14
mov    -0x78(%rbp),%rax
lea    (%rax,%r14,8),%rsi
mov    -0x40(%rbp),%r12
lea    (%r12,%r14,8),%rdi
mov    %r15,%r13
mov    %r15,%rdx
call   1060 <memcpy@plt>
mov    -0x50(%rbp),%rbx
movsd  -0x30(%rbp),%xmm0
mov    -0x48(%rbp),%rdi
jmp    125c <jacobi+0x10c>
mov    %ebx,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [24 x i8] c"Iter %d: (delta=%6.4f)\0A\00"
define i32 @jacobi(i32 %0, double* %1, double %2) {
%4 = zext i32 %0 to i64
%5 = mul nuw i64 %4, %4
%6 = alloca double, i64 %5
%7 = add i32 %0, -1
%8 = icmp sgt i32 %0, 2
%9 = bitcast double* %1 to double**
%10 = add nuw nsw i64 %4, 1
%11 = add i32 %0, -2
%12 = zext i32 %11 to i64
%13 = shl nuw nsw i64 %12, 3
%14 = zext i32 %7 to i64
%15 = and i64 %12, 1
%16 = icmp eq i32 %11, 1
%17 = and i64 %12, 4294967294
%18 = icmp eq i64 %15, 0
br label %19
19: ; preds = %89, %3
%20 = phi i32 [ 0, %3 ], [ %91, %89 ]
br i1 %8, label %23, label %89
21: ; preds = %59
br i1 %8, label %22, label %89
22: ; preds = %21
br i1 %16, label %80, label %61
23: ; preds = %19, %59
%24 = phi i64 [ %31, %59 ], [ 1, %19 ]
%25 = phi double [ %57, %59 ], [ 0.000000e+00, %19 ]
%26 = add nsw i64 %24, -1
%27 = mul nuw nsw i64 %26, %4
%28 = getelementptr inbounds double, double* %1, i64 %27
%29 = mul nuw nsw i64 %24, %4
%30 = getelementptr inbounds double, double* %1, i64 %29
%31 = add nuw nsw i64 %24, 1
%32 = mul nuw nsw i64 %31, %4
%33 = getelementptr inbounds double, double* %1, i64 %32
%34 = getelementptr inbounds double, double* %6, i64 %29
br label %35
35: ; preds = %23, %35
%36 = phi i64 [ 1, %23 ], [ %47, %35 ]
%37 = phi double [ %25, %23 ], [ %57, %35 ]
%38 = getelementptr inbounds double, double* %28, i64 %36
%39 = load double, double* %38
%40 = add nsw i64 %36, -1
%41 = getelementptr inbounds double, double* %30, i64 %40
%42 = load double, double* %41
%43 = fadd double %39, %42
%44 = getelementptr inbounds double, double* %33, i64 %36
%45 = load double, double* %44
%46 = fadd double %43, %45
%47 = add nuw nsw i64 %36, 1
%48 = getelementptr inbounds double, double* %30, i64 %47
%49 = load double, double* %48
%50 = fadd double %46, %49
%51 = fmul double %50, 2.500000e-01
%52 = getelementptr inbounds double, double* %34, i64 %36
store double %51, double* %52
%53 = getelementptr inbounds double, double* %30, i64 %36
%54 = load double, double* %53
%55 = fsub double %51, %54
%56 = tail call i32 @fabs(double %55)
%57 = tail call double @fmax(double %37, i32 %56)
%58 = icmp eq i64 %47, %14
br i1 %58, label %59, label %35
59: ; preds = %35
%60 = icmp eq i64 %31, %14
br i1 %60, label %21, label %23
61: ; preds = %22, %61
%62 = phi i64 [ %77, %61 ], [ 0, %22 ]
%63 = phi i64 [ %78, %61 ], [ 0, %22 ]
%64 = mul nuw nsw i64 %62, %4
%65 = add nuw nsw i64 %10, %64
%66 = getelementptr double, double* %6, i64 %65
%67 = bitcast double* %66 to i8*
%68 = getelementptr double, double* %1, i64 %65
%69 = bitcast double* %68 to i8*
%70 = or i64 %62, 1
%71 = mul nuw nsw i64 %70, %4
%72 = add nuw nsw i64 %10, %71
%73 = getelementptr double, double* %6, i64 %72
%74 = bitcast double* %73 to i8*
%75 = getelementptr double, double* %1, i64 %72
%76 = bitcast double* %75 to i8*
%77 = add nuw nsw i64 %62, 2
%78 = add i64 %63, 2
%79 = icmp eq i64 %78, %17
br i1 %79, label %80, label %61
80: ; preds = %61, %22
%81 = phi i64 [ 0, %22 ], [ %77, %61 ]
br i1 %18, label %89, label %82
82: ; preds = %80
%83 = mul nuw nsw i64 %81, %4
%84 = add nuw nsw i64 %10, %83
%85 = getelementptr double, double* %6, i64 %84
%86 = bitcast double* %85 to i8*
%87 = getelementptr double, double* %1, i64 %84
%88 = bitcast double* %87 to i8*
br label %89
89: ; preds = %82, %80, %19, %21
%90 = phi double [ %57, %21 ], [ 0.000000e+00, %19 ], [ %57, %80 ], [ %57, %82 ]
%91 = add nuw nsw i32 %20, 1
%92 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %91, double %90)
%93 = tail call i32 @print_array(i32 %0, double** %9)
%94 = fcmp ogt double %90, %2
br i1 %94, label %19, label %95
95: ; preds = %89
ret i32 %91
}