#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*/ exit(int);
double f_eval(double, double);
int /*<<< orphan*/ free(double **);
double **matrix_alloc(int, int);
double norm_h_eval(double, int, double **, double **);
int /*<<< orphan*/ printf(char *);
int jacobi(double h, int n, double *x, double *y, double **u) {
  int i, j, k;
  double norm, **u_prev;
  u_prev = matrix_alloc(n + 1, n + 1);
  for (i = 0; i <= n; i++) {
    for (j = 0; j <= n; j++) {
      u_prev[i][j] = u[i][j];
    }
  }
  for (k = 0; k < 100000; k++) {
    for (i = 1; i < n; i++) {
      for (j = 1; j < n; j++) {
        u[i][j] =
            0.25 * (u_prev[i - 1][j] + u_prev[i + 1][j] + u_prev[i][j - 1] +
                    u_prev[i][j + 1] + h * h * f_eval(x[i], y[j]));
      }
    }
    norm = norm_h_eval(h, n, u, u_prev);
    if (norm < 1.0e-5 * h) {
      free(u_prev);
      return (k);
    }
    for (i = 1; i < n; i++) {
      for (j = 1; j < n; j++) {
        u_prev[i][j] = u[i][j];
      }
    }
  }
  printf("Número máximo de iterações atingido.\n");
  free(u_prev);
  exit(1);
}


x86 assembly (clang, -O0):
<jacobi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %edi,-0xc(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0xc(%rbp),%edi
add    $0x1,%edi
mov    -0xc(%rbp),%esi
add    $0x1,%esi
call   1070 <matrix_alloc@plt>
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     1202 <jacobi+0xa2>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     11ef <jacobi+0x8f>
mov    -0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    11ab <jacobi+0x4b>
jmp    11f4 <jacobi+0x94>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1198 <jacobi+0x38>
movl   $0x0,-0x34(%rbp)
cmpl   $0x186a0,-0x34(%rbp)
jge    13fa <jacobi+0x29a>
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    132e <jacobi+0x1ce>
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    131b <jacobi+0x1bb>
mov    -0x48(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x48(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
call   1060 <f_eval@plt>
movsd  -0x58(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x50(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xd14(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1230 <jacobi+0xd0>
jmp    1320 <jacobi+0x1c0>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    121d <jacobi+0xbd>
movsd  -0x8(%rbp),%xmm0
mov    -0xc(%rbp),%edi
mov    -0x28(%rbp),%rsi
mov    -0x48(%rbp),%rdx
call   1040 <norm_h_eval@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm1
movsd  0xcab(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1376 <jacobi+0x216>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    -0x34(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    13e7 <jacobi+0x287>
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    13d4 <jacobi+0x274>
mov    -0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1390 <jacobi+0x230>
jmp    13d9 <jacobi+0x279>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    137d <jacobi+0x21d>
jmp    13ec <jacobi+0x28c>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1209 <jacobi+0xa9>
lea    0xc0f(%rip),%rdi
call   1050 <printf@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    $0x1,%edi
call   1080 <exit@plt>

x86 assembly (clang, -O2):
<jacobi>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %rcx,%r13
mov    %rdx,0x90(%rsp)
mov    %rsi,0x88(%rsp)
mov    %edi,%r12d
movsd  %xmm0,0x10(%rsp)
lea    0x1(%r12),%ebx
mov    %ebx,%edi
mov    %ebx,%esi
call   1070 <matrix_alloc@plt>
mov    %rax,%r14
test   %r12d,%r12d
mov    %rax,0x18(%rsp)
js     139c <jacobi+0x23c>
mov    %ebx,%eax
mov    %eax,%r8d
and    $0xfffffffc,%r8d
lea    -0x4(%r8),%rcx
mov    %rcx,0x28(%rsp)
mov    %rcx,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %edx,%r15d
and    $0x3,%r15d
movabs $0x7ffffffffffffffc,%rcx
ff ff 7f
and    %rcx,%rdx
mov    %rdx,0x20(%rsp)
mov    %eax,%r10d
and    $0x3,%r10d
mov    %r15,0x8(%rsp)
shl    $0x5,%r15
xor    %r9d,%r9d
jmp    1212 <jacobi+0xb2>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r9
cmp    %rax,%r9
mov    0x18(%rsp),%r14
je     139c <jacobi+0x23c>
mov    0x0(%r13,%r9,8),%rcx
mov    (%r14,%r9,8),%rbp
cmp    $0x4,%ebx
jb     1241 <jacobi+0xe1>
lea    (%rcx,%rax,8),%rdx
cmp    %rdx,%rbp
jae    12d0 <jacobi+0x170>
lea    0x0(,%rax,8),%rdx
add    %rbp,%rdx
cmp    %rdx,%rcx
jae    12d0 <jacobi+0x170>
xor    %r11d,%r11d
mov    %r11,%rdx
not    %rdx
add    %rax,%rdx
test   %r10,%r10
je     1277 <jacobi+0x117>
mov    %r10,%rdi
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%rcx,%r11,8),%xmm0
movsd  %xmm0,0x0(%rbp,%r11,8)
add    $0x1,%r11
add    $0xffffffffffffffff,%rdi
jne    1260 <jacobi+0x100>
cmp    $0x3,%rdx
jb     1200 <jacobi+0xa0>
nopl   (%rax)
movsd  (%rcx,%r11,8),%xmm0
movsd  %xmm0,0x0(%rbp,%r11,8)
movsd  0x8(%rcx,%r11,8),%xmm0
movsd  %xmm0,0x8(%rbp,%r11,8)
movsd  0x10(%rcx,%r11,8),%xmm0
movsd  %xmm0,0x10(%rbp,%r11,8)
movsd  0x18(%rcx,%r11,8),%xmm0
movsd  %xmm0,0x18(%rbp,%r11,8)
add    $0x4,%r11
cmp    %r11,%rax
jne    1280 <jacobi+0x120>
jmp    1200 <jacobi+0xa0>
cs nopw 0x0(%rax,%rax,1)
nop
cmpq   $0xc,0x28(%rsp)
jae    12dc <jacobi+0x17c>
xor    %edx,%edx
jmp    1349 <jacobi+0x1e9>
mov    0x20(%rsp),%rdi
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups (%rcx,%rdx,8),%xmm0
movups 0x10(%rcx,%rdx,8),%xmm1
movups %xmm0,0x0(%rbp,%rdx,8)
movups %xmm1,0x10(%rbp,%rdx,8)
movups 0x20(%rcx,%rdx,8),%xmm0
movups 0x30(%rcx,%rdx,8),%xmm1
movups %xmm0,0x20(%rbp,%rdx,8)
movups %xmm1,0x30(%rbp,%rdx,8)
movups 0x40(%rcx,%rdx,8),%xmm0
movups 0x50(%rcx,%rdx,8),%xmm1
movups %xmm0,0x40(%rbp,%rdx,8)
movups %xmm1,0x50(%rbp,%rdx,8)
movups 0x60(%rcx,%rdx,8),%xmm0
movups 0x70(%rcx,%rdx,8),%xmm1
movups %xmm0,0x60(%rbp,%rdx,8)
movups %xmm1,0x70(%rbp,%rdx,8)
add    $0x10,%rdx
add    $0xfffffffffffffffc,%rdi
jne    12f0 <jacobi+0x190>
cmpq   $0x0,0x8(%rsp)
je     138b <jacobi+0x22b>
lea    0x10(,%rdx,8),%rdi
add    %rbp,%rdi
lea    (%rcx,%rdx,8),%rdx
add    $0x10,%rdx
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
movups -0x10(%rdx,%rsi,1),%xmm0
movups (%rdx,%rsi,1),%xmm1
movups %xmm0,-0x10(%rdi,%rsi,1)
movups %xmm1,(%rdi,%rsi,1)
add    $0x20,%rsi
cmp    %rsi,%r15
jne    1370 <jacobi+0x210>
mov    %r8,%r11
cmp    %rax,%r8
je     1200 <jacobi+0xa0>
jmp    1244 <jacobi+0xe4>
movsd  0x10(%rsp),%xmm0
movapd %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x20(%rsp)
movsd  0xc48(%rip),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x30(%rsp)
mov    %r12d,%ebx
lea    -0x1(%rbx),%rbp
lea    -0x5(%rbx),%r15
mov    %r15,%rax
shr    $0x2,%rax
add    $0x1,%rax
mov    %rbp,%rcx
and    $0xfffffffffffffffc,%rcx
mov    %rcx,0x78(%rsp)
add    $0x1,%rcx
mov    %rcx,0x70(%rsp)
mov    %eax,%ecx
and    $0x3,%ecx
mov    %rcx,0x50(%rsp)
movabs $0x7ffffffffffffffc,%rcx
ff ff 7f
and    %rcx,%rax
mov    %rax,0x68(%rsp)
xor    %eax,%eax
mov    %r13,0x48(%rsp)
mov    %r12,0x60(%rsp)
mov    %rbx,0x80(%rsp)
mov    %rbp,0x40(%rsp)
mov    %r15,0x58(%rsp)
jmp    1467 <jacobi+0x307>
nopl   0x0(%rax)
movsd  0x10(%rsp),%xmm0
mov    %r12d,%edi
mov    %r13,%rsi
mov    %r14,%rdx
call   1050 <norm_h_eval@plt>
movsd  0x30(%rsp),%xmm1
ucomisd %xmm0,%xmm1
ja     172c <jacobi+0x5cc>
mov    0x38(%rsp),%rax
add    $0x1,%eax
cmp    $0x186a0,%eax
je     174b <jacobi+0x5eb>
cmp    $0x2,%r12d
mov    %rax,0x38(%rsp)
jl     1430 <jacobi+0x2d0>
mov    $0x1,%r12d
nopl   0x0(%rax,%rax,1)
lea    0x1(%r12),%rax
mov    %rax,0x8(%rsp)
xor    %r15d,%r15d
mov    0x48(%rsp),%rbp
mov    0x88(%rsp),%rbx
mov    0x18(%rsp),%r14
mov    0x40(%rsp),%r13
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    -0x8(%r14,%r12,8),%rax
mov    (%r14,%r12,8),%rcx
movsd  0x8(%rax,%r15,8),%xmm0
mov    0x8(%rsp),%rax
mov    (%r14,%rax,8),%rax
addsd  0x8(%rax,%r15,8),%xmm0
addsd  (%rcx,%r15,8),%xmm0
addsd  0x10(%rcx,%r15,8),%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  (%rbx,%r12,8),%xmm0
mov    0x90(%rsp),%rax
movsd  0x8(%rax,%r15,8),%xmm1
call   1060 <f_eval@plt>
mulsd  0x20(%rsp),%xmm0
addsd  0x28(%rsp),%xmm0
mulsd  0xaf7(%rip),%xmm0
mov    0x0(%rbp,%r12,8),%rax
movsd  %xmm0,0x8(%rax,%r15,8)
add    $0x1,%r15
cmp    %r15,%r13
jne    14b0 <jacobi+0x350>
mov    0x8(%rsp),%rax
mov    %rax,%r12
mov    0x80(%rsp),%rbx
cmp    %rbx,%rax
jne    1480 <jacobi+0x320>
movsd  0x10(%rsp),%xmm0
mov    0x60(%rsp),%r12
mov    %r12d,%edi
mov    0x48(%rsp),%r13
mov    %r13,%rsi
mov    0x18(%rsp),%r14
mov    %r14,%rdx
call   1050 <norm_h_eval@plt>
movsd  0x30(%rsp),%xmm1
ucomisd %xmm0,%xmm1
mov    0x40(%rsp),%rbp
mov    0x58(%rsp),%r15
mov    0x50(%rsp),%r9
ja     172c <jacobi+0x5cc>
cmp    $0x2,%r12d
jl     1454 <jacobi+0x2f4>
mov    $0x1,%r8d
jmp    15ad <jacobi+0x44d>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%r8
cmp    %rbx,%r8
je     1454 <jacobi+0x2f4>
mov    0x0(%r13,%r8,8),%rcx
mov    (%r14,%r8,8),%rdx
mov    $0x1,%esi
cmp    $0x4,%rbp
jb     16b0 <jacobi+0x550>
lea    0x8(%rdx),%rax
lea    (%rcx,%rbx,8),%rsi
cmp    %rsi,%rax
jae    15e8 <jacobi+0x488>
lea    (%rdx,%rbx,8),%rax
lea    0x8(%rcx),%rdi
mov    $0x1,%esi
cmp    %rax,%rdi
jb     16b0 <jacobi+0x550>
cmp    $0xc,%r15
jae    15f2 <jacobi+0x492>
xor    %esi,%esi
jmp    165e <jacobi+0x4fe>
mov    0x68(%rsp),%rdi
xor    %esi,%esi
nopl   0x0(%rax)
movups 0x8(%rcx,%rsi,8),%xmm0
movups 0x18(%rcx,%rsi,8),%xmm1
movups %xmm0,0x8(%rdx,%rsi,8)
movups %xmm1,0x18(%rdx,%rsi,8)
movups 0x28(%rcx,%rsi,8),%xmm0
movups 0x38(%rcx,%rsi,8),%xmm1
movups %xmm0,0x28(%rdx,%rsi,8)
movups %xmm1,0x38(%rdx,%rsi,8)
movups 0x48(%rcx,%rsi,8),%xmm0
movups 0x58(%rcx,%rsi,8),%xmm1
movups %xmm0,0x48(%rdx,%rsi,8)
movups %xmm1,0x58(%rdx,%rsi,8)
movupd 0x68(%rcx,%rsi,8),%xmm0
movupd 0x78(%rcx,%rsi,8),%xmm1
movupd %xmm0,0x68(%rdx,%rsi,8)
movupd %xmm1,0x78(%rdx,%rsi,8)
add    $0x10,%rsi
add    $0xfffffffffffffffc,%rdi
jne    1600 <jacobi+0x4a0>
test   %r9,%r9
je     169c <jacobi+0x53c>
mov    %r9,%rax
cs nopw 0x0(%rax,%rax,1)
lea    0x0(,%rsi,8),%rdi
or     $0x8,%rdi
movupd (%rcx,%rdi,1),%xmm0
movupd 0x10(%rcx,%rdi,1),%xmm1
movupd %xmm0,(%rdx,%rdi,1)
movupd %xmm1,0x10(%rdx,%rdi,1)
add    $0x4,%rsi
add    $0xffffffffffffffff,%rax
jne    1670 <jacobi+0x510>
mov    0x70(%rsp),%rsi
cmp    0x78(%rsp),%rbp
je     15a0 <jacobi+0x440>
nopl   0x0(%rax)
mov    %ebx,%eax
sub    %esi,%eax
mov    %rsi,%rdi
not    %rdi
add    %rbx,%rdi
and    $0x3,%rax
je     16e4 <jacobi+0x584>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%rcx,%rsi,8),%xmm0
movsd  %xmm0,(%rdx,%rsi,8)
add    $0x1,%rsi
add    $0xffffffffffffffff,%rax
jne    16d0 <jacobi+0x570>
cmp    $0x3,%rdi
jb     15a0 <jacobi+0x440>
xchg   %ax,%ax
movsd  (%rcx,%rsi,8),%xmm0
movsd  %xmm0,(%rdx,%rsi,8)
movsd  0x8(%rcx,%rsi,8),%xmm0
movsd  %xmm0,0x8(%rdx,%rsi,8)
movsd  0x10(%rcx,%rsi,8),%xmm0
movsd  %xmm0,0x10(%rdx,%rsi,8)
movsd  0x18(%rcx,%rsi,8),%xmm0
movsd  %xmm0,0x18(%rdx,%rsi,8)
add    $0x4,%rsi
cmp    %rsi,%rbx
jne    16f0 <jacobi+0x590>
jmp    15a0 <jacobi+0x440>
mov    %r14,%rdi
call   1030 <free@plt>
mov    0x38(%rsp),%rax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x8be(%rip),%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    $0x1,%edi
call   1080 <exit@plt>

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

LLVM IR (-O2):
@str = [41 x i8] c"N\C3\BAmero m\C3\A1ximo de itera\C3\A7\C3\B5es atingido.\00"
define i32 @jacobi(double %0, i32 %1, double* nocapture %2, double* nocapture %3, double** %4) {
%6 = add i32 %1, 1
%7 = tail call double** @matrix_alloc(i32 %6, i32 %6)
%8 = icmp slt i32 %1, 0
br i1 %8, label %121, label %9
9: ; preds = %5
%10 = zext i32 %6 to i64
%11 = and i64 %10, 4294967292
%12 = add nsw i64 %11, -4
%13 = lshr exact i64 %12, 2
%14 = add nuw nsw i64 %13, 1
%15 = icmp ult i32 %6, 4
%16 = and i64 %10, 4294967292
%17 = and i64 %14, 3
%18 = icmp ult i64 %12, 12
%19 = and i64 %14, 9223372036854775804
%20 = icmp eq i64 %17, 0
%21 = icmp eq i64 %16, %10
%22 = and i64 %10, 3
%23 = icmp eq i64 %22, 0
br label %24
24: ; preds = %158, %9
%25 = phi i64 [ 0, %9 ], [ %159, %158 ]
%26 = getelementptr inbounds double*, double** %4, i64 %25
%27 = load double*, double** %26
%28 = getelementptr inbounds double*, double** %7, i64 %25
%29 = load double*, double** %28
br i1 %15, label %105, label %30
30: ; preds = %24
%31 = getelementptr double, double* %29, i64 %10
%32 = getelementptr double, double* %27, i64 %10
%33 = icmp ult double* %29, %32
%34 = icmp ult double* %27, %31
%35 = and i1 %33, %34
br i1 %35, label %105, label %36
36: ; preds = %30
br i1 %18, label %86, label %37
37: ; preds = %36, %37
%38 = phi i64 [ %83, %37 ], [ 0, %36 ]
%39 = phi i64 [ %84, %37 ], [ 0, %36 ]
%40 = getelementptr inbounds double, double* %27, i64 %38
%41 = bitcast double* %40 to <2 x double>*
%42 = load <2 x double>, <2 x double>* %41
%43 = getelementptr inbounds double, double* %40, i64 2
%44 = bitcast double* %43 to <2 x double>*
%45 = load <2 x double>, <2 x double>* %44
%46 = getelementptr inbounds double, double* %29, i64 %38
%47 = bitcast double* %46 to <2 x double>*
store <2 x double> %42, <2 x double>* %47
%48 = getelementptr inbounds double, double* %46, i64 2
%49 = bitcast double* %48 to <2 x double>*
store <2 x double> %45, <2 x double>* %49
%50 = or i64 %38, 4
%51 = getelementptr inbounds double, double* %27, i64 %50
%52 = bitcast double* %51 to <2 x double>*
%53 = load <2 x double>, <2 x double>* %52
%54 = getelementptr inbounds double, double* %51, i64 2
%55 = bitcast double* %54 to <2 x double>*
%56 = load <2 x double>, <2 x double>* %55
%57 = getelementptr inbounds double, double* %29, i64 %50
%58 = bitcast double* %57 to <2 x double>*
store <2 x double> %53, <2 x double>* %58
%59 = getelementptr inbounds double, double* %57, i64 2
%60 = bitcast double* %59 to <2 x double>*
store <2 x double> %56, <2 x double>* %60
%61 = or i64 %38, 8
%62 = getelementptr inbounds double, double* %27, i64 %61
%63 = bitcast double* %62 to <2 x double>*
%64 = load <2 x double>, <2 x double>* %63
%65 = getelementptr inbounds double, double* %62, i64 2
%66 = bitcast double* %65 to <2 x double>*
%67 = load <2 x double>, <2 x double>* %66
%68 = getelementptr inbounds double, double* %29, i64 %61
%69 = bitcast double* %68 to <2 x double>*
store <2 x double> %64, <2 x double>* %69
%70 = getelementptr inbounds double, double* %68, i64 2
%71 = bitcast double* %70 to <2 x double>*
store <2 x double> %67, <2 x double>* %71
%72 = or i64 %38, 12
%73 = getelementptr inbounds double, double* %27, i64 %72
%74 = bitcast double* %73 to <2 x double>*
%75 = load <2 x double>, <2 x double>* %74
%76 = getelementptr inbounds double, double* %73, i64 2
%77 = bitcast double* %76 to <2 x double>*
%78 = load <2 x double>, <2 x double>* %77
%79 = getelementptr inbounds double, double* %29, i64 %72
%80 = bitcast double* %79 to <2 x double>*
store <2 x double> %75, <2 x double>* %80
%81 = getelementptr inbounds double, double* %79, i64 2
%82 = bitcast double* %81 to <2 x double>*
store <2 x double> %78, <2 x double>* %82
%83 = add nuw i64 %38, 16
%84 = add nuw i64 %39, 4
%85 = icmp eq i64 %84, %19
br i1 %85, label %86, label %37
86: ; preds = %37, %36
%87 = phi i64 [ 0, %36 ], [ %83, %37 ]
br i1 %20, label %104, label %88
88: ; preds = %86, %88
%89 = phi i64 [ %101, %88 ], [ %87, %86 ]
%90 = phi i64 [ %102, %88 ], [ 0, %86 ]
%91 = getelementptr inbounds double, double* %27, i64 %89
%92 = bitcast double* %91 to <2 x double>*
%93 = load <2 x double>, <2 x double>* %92
%94 = getelementptr inbounds double, double* %91, i64 2
%95 = bitcast double* %94 to <2 x double>*
%96 = load <2 x double>, <2 x double>* %95
%97 = getelementptr inbounds double, double* %29, i64 %89
%98 = bitcast double* %97 to <2 x double>*
store <2 x double> %93, <2 x double>* %98
%99 = getelementptr inbounds double, double* %97, i64 2
%100 = bitcast double* %99 to <2 x double>*
store <2 x double> %96, <2 x double>* %100
%101 = add nuw i64 %89, 4
%102 = add i64 %90, 1
%103 = icmp eq i64 %102, %17
br i1 %103, label %104, label %88
104: ; preds = %88, %86
br i1 %21, label %158, label %105
105: ; preds = %30, %24, %104
%106 = phi i64 [ 0, %30 ], [ 0, %24 ], [ %16, %104 ]
%107 = xor i64 %106, -1
%108 = add nsw i64 %107, %10
br i1 %23, label %118, label %109
109: ; preds = %105, %109
%110 = phi i64 [ %115, %109 ], [ %106, %105 ]
%111 = phi i64 [ %116, %109 ], [ 0, %105 ]
%112 = getelementptr inbounds double, double* %27, i64 %110
%113 = load double, double* %112
%114 = getelementptr inbounds double, double* %29, i64 %110
store double %113, double* %114
%115 = add nuw nsw i64 %110, 1
%116 = add i64 %111, 1
%117 = icmp eq i64 %116, %22
br i1 %117, label %118, label %109
118: ; preds = %109, %105
%119 = phi i64 [ %106, %105 ], [ %115, %109 ]
%120 = icmp ult i64 %108, 3
br i1 %120, label %158, label %139
121: ; preds = %158, %5
%122 = icmp sgt i32 %1, 1
%123 = fmul double %0, %0
%124 = fmul double %0, 1.000000e-05
%125 = zext i32 %1 to i64
%126 = zext i32 %1 to i64
%127 = add nsw i64 %125, -1
%128 = add nsw i64 %125, -5
%129 = lshr i64 %128, 2
%130 = add nuw nsw i64 %129, 1
%131 = icmp ult i64 %127, 4
%132 = and i64 %127, -4
%133 = or i64 %132, 1
%134 = and i64 %130, 3
%135 = icmp ult i64 %128, 12
%136 = and i64 %130, 9223372036854775804
%137 = icmp eq i64 %134, 0
%138 = icmp eq i64 %127, %132
br label %161
139: ; preds = %118, %139
%140 = phi i64 [ %156, %139 ], [ %119, %118 ]
%141 = getelementptr inbounds double, double* %27, i64 %140
%142 = load double, double* %141
%143 = getelementptr inbounds double, double* %29, i64 %140
store double %142, double* %143
%144 = add nuw nsw i64 %140, 1
%145 = getelementptr inbounds double, double* %27, i64 %144
%146 = load double, double* %145
%147 = getelementptr inbounds double, double* %29, i64 %144
store double %146, double* %147
%148 = add nuw nsw i64 %140, 2
%149 = getelementptr inbounds double, double* %27, i64 %148
%150 = load double, double* %149
%151 = getelementptr inbounds double, double* %29, i64 %148
store double %150, double* %151
%152 = add nuw nsw i64 %140, 3
%153 = getelementptr inbounds double, double* %27, i64 %152
%154 = load double, double* %153
%155 = getelementptr inbounds double, double* %29, i64 %152
store double %154, double* %155
%156 = add nuw nsw i64 %140, 4
%157 = icmp eq i64 %156, %10
br i1 %157, label %158, label %139
158: ; preds = %118, %139, %104
%159 = add nuw nsw i64 %25, 1
%160 = icmp eq i64 %159, %10
br i1 %160, label %121, label %24
161: ; preds = %121, %336
%162 = phi i32 [ 0, %121 ], [ %337, %336 ]
br i1 %122, label %163, label %204
163: ; preds = %161, %199
%164 = phi i64 [ %167, %199 ], [ 1, %161 ]
%165 = add nsw i64 %164, -1
%166 = getelementptr inbounds double*, double** %7, i64 %165
%167 = add nuw nsw i64 %164, 1
%168 = getelementptr inbounds double*, double** %7, i64 %167
%169 = getelementptr inbounds double*, double** %7, i64 %164
%170 = getelementptr inbounds double, double* %2, i64 %164
%171 = getelementptr inbounds double*, double** %4, i64 %164
br label %172
172: ; preds = %163, %172
%173 = phi i64 [ 1, %163 ], [ %186, %172 ]
%174 = load double*, double** %166
%175 = getelementptr inbounds double, double* %174, i64 %173
%176 = load double, double* %175
%177 = load double*, double** %168
%178 = getelementptr inbounds double, double* %177, i64 %173
%179 = load double, double* %178
%180 = fadd double %176, %179
%181 = load double*, double** %169
%182 = add nsw i64 %173, -1
%183 = getelementptr inbounds double, double* %181, i64 %182
%184 = load double, double* %183
%185 = fadd double %180, %184
%186 = add nuw nsw i64 %173, 1
%187 = getelementptr inbounds double, double* %181, i64 %186
%188 = load double, double* %187
%189 = fadd double %185, %188
%190 = load double, double* %170
%191 = getelementptr inbounds double, double* %3, i64 %173
%192 = load double, double* %191
%193 = tail call double @f_eval(double %190, double %192)
%194 = tail call double @llvm.fmuladd.f64(double %123, double %193, double %189)
%195 = fmul double %194, 2.500000e-01
%196 = load double*, double** %171
%197 = getelementptr inbounds double, double* %196, i64 %173
store double %195, double* %197
%198 = icmp eq i64 %186, %125
br i1 %198, label %199, label %172
199: ; preds = %172
%200 = icmp eq i64 %167, %125
br i1 %200, label %201, label %163
201: ; preds = %199
%202 = tail call double @norm_h_eval(double %0, i32 %1, double** %4, double** %7)
%203 = fcmp olt double %202, %124
br i1 %203, label %208, label %207
204: ; preds = %161
%205 = tail call double @norm_h_eval(double %0, i32 %1, double** %4, double** %7)
%206 = fcmp olt double %205, %124
br i1 %206, label %208, label %336
207: ; preds = %201
br i1 %122, label %210, label %336
208: ; preds = %204, %201
%209 = tail call i32 @free(double** %7)
ret i32 %162
210: ; preds = %207, %333
%211 = phi i64 [ %334, %333 ], [ 1, %207 ]
%212 = getelementptr inbounds double*, double** %4, i64 %211
%213 = load double*, double** %212
%214 = getelementptr inbounds double*, double** %7, i64 %211
%215 = load double*, double** %214
br i1 %131, label %295, label %216
216: ; preds = %210
%217 = getelementptr double, double* %215, i64 1
%218 = getelementptr double, double* %215, i64 %125
%219 = getelementptr double, double* %213, i64 1
%220 = getelementptr double, double* %213, i64 %125
%221 = icmp ult double* %217, %220
%222 = icmp ult double* %219, %218
%223 = and i1 %221, %222
br i1 %223, label %295, label %224
224: ; preds = %216
br i1 %135, label %275, label %225
225: ; preds = %224, %225
%226 = phi i64 [ %272, %225 ], [ 0, %224 ]
%227 = phi i64 [ %273, %225 ], [ 0, %224 ]
%228 = or i64 %226, 1
%229 = getelementptr inbounds double, double* %213, i64 %228
%230 = bitcast double* %229 to <2 x double>*
%231 = load <2 x double>, <2 x double>* %230
%232 = getelementptr inbounds double, double* %229, i64 2
%233 = bitcast double* %232 to <2 x double>*
%234 = load <2 x double>, <2 x double>* %233
%235 = getelementptr inbounds double, double* %215, i64 %228
%236 = bitcast double* %235 to <2 x double>*
store <2 x double> %231, <2 x double>* %236
%237 = getelementptr inbounds double, double* %235, i64 2
%238 = bitcast double* %237 to <2 x double>*
store <2 x double> %234, <2 x double>* %238
%239 = or i64 %226, 5
%240 = getelementptr inbounds double, double* %213, i64 %239
%241 = bitcast double* %240 to <2 x double>*
%242 = load <2 x double>, <2 x double>* %241
%243 = getelementptr inbounds double, double* %240, i64 2
%244 = bitcast double* %243 to <2 x double>*
%245 = load <2 x double>, <2 x double>* %244
%246 = getelementptr inbounds double, double* %215, i64 %239
%247 = bitcast double* %246 to <2 x double>*
store <2 x double> %242, <2 x double>* %247
%248 = getelementptr inbounds double, double* %246, i64 2
%249 = bitcast double* %248 to <2 x double>*
store <2 x double> %245, <2 x double>* %249
%250 = or i64 %226, 9
%251 = getelementptr inbounds double, double* %213, i64 %250
%252 = bitcast double* %251 to <2 x double>*
%253 = load <2 x double>, <2 x double>* %252
%254 = getelementptr inbounds double, double* %251, i64 2
%255 = bitcast double* %254 to <2 x double>*
%256 = load <2 x double>, <2 x double>* %255
%257 = getelementptr inbounds double, double* %215, i64 %250
%258 = bitcast double* %257 to <2 x double>*
store <2 x double> %253, <2 x double>* %258
%259 = getelementptr inbounds double, double* %257, i64 2
%260 = bitcast double* %259 to <2 x double>*
store <2 x double> %256, <2 x double>* %260
%261 = or i64 %226, 13
%262 = getelementptr inbounds double, double* %213, i64 %261
%263 = bitcast double* %262 to <2 x double>*
%264 = load <2 x double>, <2 x double>* %263
%265 = getelementptr inbounds double, double* %262, i64 2
%266 = bitcast double* %265 to <2 x double>*
%267 = load <2 x double>, <2 x double>* %266
%268 = getelementptr inbounds double, double* %215, i64 %261
%269 = bitcast double* %268 to <2 x double>*
store <2 x double> %264, <2 x double>* %269
%270 = getelementptr inbounds double, double* %268, i64 2
%271 = bitcast double* %270 to <2 x double>*
store <2 x double> %267, <2 x double>* %271
%272 = add nuw i64 %226, 16
%273 = add nuw i64 %227, 4
%274 = icmp eq i64 %273, %136
br i1 %274, label %275, label %225
275: ; preds = %225, %224
%276 = phi i64 [ 0, %224 ], [ %272, %225 ]
br i1 %137, label %294, label %277
277: ; preds = %275, %277
%278 = phi i64 [ %291, %277 ], [ %276, %275 ]
%279 = phi i64 [ %292, %277 ], [ 0, %275 ]
%280 = or i64 %278, 1
%281 = getelementptr inbounds double, double* %213, i64 %280
%282 = bitcast double* %281 to <2 x double>*
%283 = load <2 x double>, <2 x double>* %282
%284 = getelementptr inbounds double, double* %281, i64 2
%285 = bitcast double* %284 to <2 x double>*
%286 = load <2 x double>, <2 x double>* %285
%287 = getelementptr inbounds double, double* %215, i64 %280
%288 = bitcast double* %287 to <2 x double>*
store <2 x double> %283, <2 x double>* %288
%289 = getelementptr inbounds double, double* %287, i64 2
%290 = bitcast double* %289 to <2 x double>*
store <2 x double> %286, <2 x double>* %290
%291 = add nuw i64 %278, 4
%292 = add i64 %279, 1
%293 = icmp eq i64 %292, %134
br i1 %293, label %294, label %277
294: ; preds = %277, %275
br i1 %138, label %333, label %295
295: ; preds = %216, %210, %294
%296 = phi i64 [ 1, %216 ], [ 1, %210 ], [ %133, %294 ]
%297 = sub nsw i64 %126, %296
%298 = xor i64 %296, -1
%299 = add nsw i64 %298, %126
%300 = and i64 %297, 3
%301 = icmp eq i64 %300, 0
br i1 %301, label %311, label %302
302: ; preds = %295, %302
%303 = phi i64 [ %308, %302 ], [ %296, %295 ]
%304 = phi i64 [ %309, %302 ], [ 0, %295 ]
%305 = getelementptr inbounds double, double* %213, i64 %303
%306 = load double, double* %305
%307 = getelementptr inbounds double, double* %215, i64 %303
store double %306, double* %307
%308 = add nuw nsw i64 %303, 1
%309 = add i64 %304, 1
%310 = icmp eq i64 %309, %300
br i1 %310, label %311, label %302
311: ; preds = %302, %295
%312 = phi i64 [ %296, %295 ], [ %308, %302 ]
%313 = icmp ult i64 %299, 3
br i1 %313, label %333, label %314
314: ; preds = %311, %314
%315 = phi i64 [ %331, %314 ], [ %312, %311 ]
%316 = getelementptr inbounds double, double* %213, i64 %315
%317 = load double, double* %316
%318 = getelementptr inbounds double, double* %215, i64 %315
store double %317, double* %318
%319 = add nuw nsw i64 %315, 1
%320 = getelementptr inbounds double, double* %213, i64 %319
%321 = load double, double* %320
%322 = getelementptr inbounds double, double* %215, i64 %319
store double %321, double* %322
%323 = add nuw nsw i64 %315, 2
%324 = getelementptr inbounds double, double* %213, i64 %323
%325 = load double, double* %324
%326 = getelementptr inbounds double, double* %215, i64 %323
store double %325, double* %326
%327 = add nuw nsw i64 %315, 3
%328 = getelementptr inbounds double, double* %213, i64 %327
%329 = load double, double* %328
%330 = getelementptr inbounds double, double* %215, i64 %327
store double %329, double* %330
%331 = add nuw nsw i64 %315, 4
%332 = icmp eq i64 %331, %126
br i1 %332, label %333, label %314
333: ; preds = %311, %314, %294
%334 = add nuw nsw i64 %211, 1
%335 = icmp eq i64 %334, %126
br i1 %335, label %336, label %210
336: ; preds = %333, %204, %207
%337 = add nuw nsw i32 %162, 1
%338 = icmp eq i32 %337, 100000
br i1 %338, label %339, label %161
339: ; preds = %336
%340 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str, i64 0, i64 0))
%341 = tail call i32 @free(double** %7)
%342 = tail call i32 @exit(i32 1)
unreachable
}