#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 */
typedef double FILE;

/* Variables and functions */
int /*<<< orphan*/ assignDirichletCondition(int, double, double *, double *,
                                            double *);
double *backSubstitution(int, double *, double *);
double *fopen(char *, char *);
int /*<<< orphan*/ fprintf(double *, char *, double, double, double, double,
                           double, double);
int /*<<< orphan*/ free(double *);
int lineCount(double *);
int /*<<< orphan*/ localStiffnessMatrix(double **, double **);
int /*<<< orphan*/ localVector(double **, double, double *);
double omp_get_wtime();
int /*<<< orphan*/ printf(char *, double);
double *readMatrixFile(double *, int, int);
double *zeros(int);
double *solvePDE(char fileP[], char fileT[], FILE *result) {
  int vertexSize, globalVertex2, globalVertex, meshSize;
  int tri = 0, i = 0, j = 0;
  double f = -4, g = 1;
  double vertices[3][2] = {{0}};
  double localW[3][3] = {{0}};
  double localB[3] = {1};
  FILE *meshFile = fopen(fileP, "r");
  FILE *vertexFile = fopen(fileT, "r");
  vertexSize = lineCount(vertexFile);
  meshSize = lineCount(meshFile);
  double startIO = omp_get_wtime();
  double *meshPoints = readMatrixFile(meshFile, lineCount(meshFile), 2);
  double *vertexNumbers = readMatrixFile(vertexFile, lineCount(vertexFile), 3);
  double ioTime = omp_get_wtime() - startIO;
  double startZeros = omp_get_wtime();
  double *w = zeros(meshSize * meshSize);
  double *b = zeros(meshSize);
  double zerosTime = omp_get_wtime() - startZeros;
  double startComputation = omp_get_wtime();
  for (tri = 0; tri < vertexSize; tri++) {
    for (i = 0; i < 3; i++) {
      globalVertex = (int)*(vertexNumbers + tri * 3 + i) - 1;
      vertices[i][0] = *(meshPoints + globalVertex * 2 + 0);
      vertices[i][1] = *(meshPoints + globalVertex * 2 + 1);
    }
    localStiffnessMatrix(vertices, localW);
    localVector(vertices, f, localB);
    for (i = 0; i < 3; i++) {
      globalVertex = (int)*(vertexNumbers + tri * 3 + i) - 1;
      b[globalVertex] += localB[i];
      for (j = 0; j < 3; j++) {
        globalVertex2 = (int)*(vertexNumbers + tri * 3 + j) - 1;
        *(w + globalVertex * meshSize + globalVertex2) += localW[i][j];
      }
    }
  }
  double assemblingTime = omp_get_wtime() - startComputation;
  double startDirichlet = omp_get_wtime();
  assignDirichletCondition(meshSize, g, meshPoints, w, b);
  double dirichletTime = omp_get_wtime() - startDirichlet;
  double startSys = omp_get_wtime();
  double *u = backSubstitution(meshSize, w, b);
  double sysTime = omp_get_wtime() - startSys;
  double computationTime = omp_get_wtime() - startComputation;
  printf("Elapsed time for computation: %lf seconds.\n", computationTime);
  printf("Elapsed time for IO: %lf seconds.\n", ioTime);
  printf("Elapsed time for zeros: %lf seconds.\n", zerosTime);
  printf("Elapsed time for assembling: %lf seconds.\n", assemblingTime);
  printf("Elapsed time for dirichlet: %lf seconds.\n", dirichletTime);
  printf("Elapsed time for system: %lf seconds.\n", sysTime);
  fprintf(result, "%lf, %lf, %lf, %lf, %lf, %lf\n", computationTime, ioTime,
          zerosTime, assemblingTime, dirichletTime, sysTime);
  free(meshFile);
  free(vertexFile);
  free(meshPoints);
  free(vertexNumbers);
  free(w);
  free(b);
  free(u);
  return u;
}


x86 assembly (clang, -O0):
<solvePDE>:
push   %rbp
mov    %rsp,%rbp
sub    $0x190,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
movsd  0xe04(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xdef(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
lea    -0x80(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   10a0 <memset@plt>
lea    -0xd0(%rbp),%rdi
xor    %esi,%esi
mov    $0x48,%edx
call   10a0 <memset@plt>
mov    0xdd0(%rip),%rax
mov    %rax,-0xf0(%rbp)
mov    0xdca(%rip),%rax
mov    %rax,-0xe8(%rbp)
mov    0xdc4(%rip),%rax
mov    %rax,-0xe0(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xdba(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0xf8(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xda3(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x100(%rbp)
mov    -0x100(%rbp),%rdi
call   10f0 <lineCount@plt>
mov    %eax,-0x1c(%rbp)
mov    -0xf8(%rbp),%rdi
call   10f0 <lineCount@plt>
mov    %eax,-0x28(%rbp)
mov    $0x0,%al
call   1050 <omp_get_wtime@plt>
movsd  %xmm0,-0x108(%rbp)
ff
mov    -0xf8(%rbp),%rax
mov    %rax,-0x190(%rbp)
mov    -0xf8(%rbp),%rdi
call   10f0 <lineCount@plt>
mov    -0x190(%rbp),%rdi
mov    %eax,%esi
mov    $0x2,%edx
call   1040 <readMatrixFile@plt>
mov    %rax,-0x110(%rbp)
mov    -0x100(%rbp),%rax
mov    %rax,-0x188(%rbp)
mov    -0x100(%rbp),%rdi
call   10f0 <lineCount@plt>
mov    -0x188(%rbp),%rdi
mov    %eax,%esi
mov    $0x3,%edx
call   1040 <readMatrixFile@plt>
mov    %rax,-0x118(%rbp)
mov    $0x0,%al
call   1050 <omp_get_wtime@plt>
subsd  -0x108(%rbp),%xmm0
ff
movsd  %xmm0,-0x120(%rbp)
ff
mov    $0x0,%al
call   1050 <omp_get_wtime@plt>
movsd  %xmm0,-0x128(%rbp)
ff
mov    -0x28(%rbp),%edi
imul   -0x28(%rbp),%edi
call   10e0 <zeros@plt>
mov    %rax,-0x130(%rbp)
mov    -0x28(%rbp),%edi
call   10e0 <zeros@plt>
mov    %rax,-0x138(%rbp)
mov    $0x0,%al
call   1050 <omp_get_wtime@plt>
subsd  -0x128(%rbp),%xmm0
ff
movsd  %xmm0,-0x140(%rbp)
ff
mov    $0x0,%al
call   1050 <omp_get_wtime@plt>
movsd  %xmm0,-0x148(%rbp)
ff
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1562 <solvePDE+0x392>
movl   $0x0,-0x30(%rbp)
cmpl   $0x3,-0x30(%rbp)
jge    143c <solvePDE+0x26c>
mov    -0x118(%rbp),%rax
imul   $0x3,-0x2c(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x30(%rbp),%rcx
cvttsd2si (%rax,%rcx,8),%eax
sub    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x110(%rbp),%rax
mov    -0x24(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movslq -0x30(%rbp),%rcx
lea    -0x80(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movsd  %xmm0,(%rax)
mov    -0x110(%rbp),%rax
mov    -0x24(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
movsd  0x8(%rax,%rcx,8),%xmm0
movslq -0x30(%rbp),%rcx
lea    -0x80(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movsd  %xmm0,0x8(%rax)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    13ae <solvePDE+0x1de>
lea    -0x80(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
call   1080 <localStiffnessMatrix@plt>
lea    -0x80(%rbp),%rdi
movsd  -0x40(%rbp),%xmm0
lea    -0xf0(%rbp),%rsi
call   1060 <localVector@plt>
movl   $0x0,-0x30(%rbp)
cmpl   $0x3,-0x30(%rbp)
jge    154f <solvePDE+0x37f>
mov    -0x118(%rbp),%rax
imul   $0x3,-0x2c(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x30(%rbp),%rcx
cvttsd2si (%rax,%rcx,8),%eax
sub    $0x1,%eax
mov    %eax,-0x24(%rbp)
movslq -0x30(%rbp),%rax
movsd  -0xf0(%rbp,%rax,8),%xmm0
ff ff
mov    -0x138(%rbp),%rax
movslq -0x24(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x34(%rbp)
cmpl   $0x3,-0x34(%rbp)
jge    153c <solvePDE+0x36c>
mov    -0x118(%rbp),%rax
imul   $0x3,-0x2c(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
cvttsd2si (%rax,%rcx,8),%eax
sub    $0x1,%eax
mov    %eax,-0x20(%rbp)
movslq -0x30(%rbp),%rcx
lea    -0xd0(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x130(%rbp),%rax
mov    -0x24(%rbp),%ecx
imul   -0x28(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x20(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    14bf <solvePDE+0x2ef>
jmp    1541 <solvePDE+0x371>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1468 <solvePDE+0x298>
jmp    1554 <solvePDE+0x384>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    139b <solvePDE+0x1cb>
mov    $0x0,%al
call   1050 <omp_get_wtime@plt>
subsd  -0x148(%rbp),%xmm0
ff
movsd  %xmm0,-0x150(%rbp)
ff
mov    $0x0,%al
call   1050 <omp_get_wtime@plt>
movsd  %xmm0,-0x158(%rbp)
ff
mov    -0x28(%rbp),%edi
movsd  -0x48(%rbp),%xmm0
mov    -0x110(%rbp),%rsi
mov    -0x130(%rbp),%rdx
mov    -0x138(%rbp),%rcx
call   10c0 <assignDirichletCondition@plt>
mov    $0x0,%al
call   1050 <omp_get_wtime@plt>
subsd  -0x158(%rbp),%xmm0
ff
movsd  %xmm0,-0x160(%rbp)
ff
mov    $0x0,%al
call   1050 <omp_get_wtime@plt>
movsd  %xmm0,-0x168(%rbp)
ff
mov    -0x28(%rbp),%edi
mov    -0x130(%rbp),%rsi
mov    -0x138(%rbp),%rdx
call   1070 <backSubstitution@plt>
mov    %rax,-0x170(%rbp)
mov    $0x0,%al
call   1050 <omp_get_wtime@plt>
subsd  -0x168(%rbp),%xmm0
ff
movsd  %xmm0,-0x178(%rbp)
ff
mov    $0x0,%al
call   1050 <omp_get_wtime@plt>
subsd  -0x148(%rbp),%xmm0
ff
movsd  %xmm0,-0x180(%rbp)
ff
movsd  -0x180(%rbp),%xmm0
ff
lea    0xa00(%rip),%rdi
call   1090 <printf@plt>
movsd  -0x120(%rbp),%xmm0
ff
lea    0xa18(%rip),%rdi
call   1090 <printf@plt>
movsd  -0x140(%rbp),%xmm0
ff
lea    0xa27(%rip),%rdi
call   1090 <printf@plt>
movsd  -0x150(%rbp),%xmm0
ff
lea    0xa39(%rip),%rdi
call   1090 <printf@plt>
movsd  -0x160(%rbp),%xmm0
ff
lea    0xa50(%rip),%rdi
call   1090 <printf@plt>
movsd  -0x178(%rbp),%xmm0
ff
lea    0xa66(%rip),%rdi
call   1090 <printf@plt>
mov    -0x18(%rbp),%rdi
movsd  -0x180(%rbp),%xmm0
ff
movsd  -0x120(%rbp),%xmm1
ff
movsd  -0x140(%rbp),%xmm2
ff
movsd  -0x150(%rbp),%xmm3
ff
movsd  -0x160(%rbp),%xmm4
ff
movsd  -0x178(%rbp),%xmm5
ff
lea    0xa4d(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0xf8(%rbp),%rdi
call   1030 <free@plt>
mov    -0x100(%rbp),%rdi
call   1030 <free@plt>
mov    -0x110(%rbp),%rdi
call   1030 <free@plt>
mov    -0x118(%rbp),%rdi
call   1030 <free@plt>
mov    -0x130(%rbp),%rdi
call   1030 <free@plt>
mov    -0x138(%rbp),%rdi
call   1030 <free@plt>
mov    -0x170(%rbp),%rdi
call   1030 <free@plt>
mov    -0x170(%rbp),%rax
add    $0x190,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<solvePDE>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf8,%rsp
mov    %rdx,0x60(%rsp)
mov    %rsi,%r14
xorps  %xmm0,%xmm0
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movq   $0x0,0xb0(%rsp)
mov    0xdfc(%rip),%rax
mov    %rax,0x40(%rsp)
movapd 0xddf(%rip),%xmm0
movapd %xmm0,0x30(%rsp)
lea    0xdea(%rip),%rbp
mov    %rbp,%rsi
call   10c0 <fopen@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    %rbp,%rsi
call   10c0 <fopen@plt>
mov    %rax,%rbp
mov    %rax,%rdi
call   10e0 <lineCount@plt>
mov    %eax,%r12d
mov    %rbx,%rdi
call   10e0 <lineCount@plt>
mov    %eax,%r13d
xor    %eax,%eax
call   1050 <omp_get_wtime@plt>
movsd  %xmm0,(%rsp)
mov    %rbx,%rdi
call   10e0 <lineCount@plt>
mov    %rbx,0x58(%rsp)
mov    %rbx,%rdi
mov    %eax,%esi
mov    $0x2,%edx
call   1040 <readMatrixFile@plt>
mov    %rax,%r14
mov    %rbp,%rdi
call   10e0 <lineCount@plt>
mov    %rbp,0x50(%rsp)
mov    %rbp,%rdi
mov    %eax,%esi
mov    $0x3,%edx
call   1040 <readMatrixFile@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   1050 <omp_get_wtime@plt>
subsd  (%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
xor    %eax,%eax
call   1050 <omp_get_wtime@plt>
movsd  %xmm0,(%rsp)
mov    %r13d,%edi
imul   %r13d,%edi
call   10d0 <zeros@plt>
mov    %rax,%r15
mov    %r13d,%edi
call   10d0 <zeros@plt>
mov    %rax,%rbp
xor    %eax,%eax
call   1050 <omp_get_wtime@plt>
subsd  (%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
xor    %eax,%eax
call   1050 <omp_get_wtime@plt>
movsd  %xmm0,0x18(%rsp)
test   %r12d,%r12d
jle    157f <solvePDE+0x3bf>
mov    %r12d,%eax
shl    $0x3,%rax
lea    (%rax,%rax,2),%rax
mov    %rax,(%rsp)
xor    %r12d,%r12d
mov    %rbx,0x68(%rsp)
xchg   %ax,%ax
cvttsd2si (%rbx,%r12,1),%eax
add    %eax,%eax
add    $0xfffffffe,%eax
cltq
movsd  (%r14,%rax,8),%xmm0
movsd  %xmm0,0xc0(%rsp)
movsd  0x8(%r14,%rax,8),%xmm0
movsd  %xmm0,0xc8(%rsp)
cvttsd2si 0x8(%rbx,%r12,1),%eax
lea    -0x2(%rax,%rax,1),%eax
cltq
movsd  (%r14,%rax,8),%xmm0
movsd  %xmm0,0xd0(%rsp)
movsd  0x8(%r14,%rax,8),%xmm0
movsd  %xmm0,0xd8(%rsp)
cvttsd2si 0x10(%rbx,%r12,1),%eax
lea    -0x2(%rax,%rax,1),%eax
cltq
movsd  (%r14,%rax,8),%xmm0
movsd  %xmm0,0xe0(%rsp)
movsd  0x8(%r14,%rax,8),%xmm0
movsd  %xmm0,0xe8(%rsp)
mov    %rbp,%rbx
lea    0xc0(%rsp),%rbp
mov    %rbp,%rdi
lea    0x70(%rsp),%rsi
call   1080 <localStiffnessMatrix@plt>
mov    %rbp,%rdi
mov    %rbx,%rbp
mov    0x68(%rsp),%rbx
movsd  0xc21(%rip),%xmm0
lea    0x30(%rsp),%rsi
call   1060 <localVector@plt>
cvttsd2si (%rbx,%r12,1),%eax
movsd  0x30(%rsp),%xmm0
movslq %eax,%rcx
addsd  -0x8(%rbp,%rcx,8),%xmm0
add    $0xffffffff,%eax
movsd  %xmm0,-0x8(%rbp,%rcx,8)
imul   %r13d,%eax
cltq
lea    (%r15,%rax,8),%rax
cvttsd2si (%rbx,%r12,1),%ecx
movsd  0x70(%rsp),%xmm0
movslq %ecx,%rcx
addsd  -0x8(%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x8(%rax,%rcx,8)
cvttsd2si 0x8(%rbx,%r12,1),%ecx
movsd  0x78(%rsp),%xmm0
movslq %ecx,%rcx
addsd  -0x8(%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x8(%rax,%rcx,8)
cvttsd2si 0x10(%rbx,%r12,1),%ecx
movsd  0x80(%rsp),%xmm0
movslq %ecx,%rcx
addsd  -0x8(%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x8(%rax,%rcx,8)
cvttsd2si 0x8(%rbx,%r12,1),%eax
movsd  0x38(%rsp),%xmm0
movslq %eax,%rcx
addsd  -0x8(%rbp,%rcx,8),%xmm0
add    $0xffffffff,%eax
movsd  %xmm0,-0x8(%rbp,%rcx,8)
imul   %r13d,%eax
cltq
lea    (%r15,%rax,8),%rax
cvttsd2si (%rbx,%r12,1),%ecx
movsd  0x88(%rsp),%xmm0
movslq %ecx,%rcx
addsd  -0x8(%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x8(%rax,%rcx,8)
cvttsd2si 0x8(%rbx,%r12,1),%ecx
movsd  0x90(%rsp),%xmm0
movslq %ecx,%rcx
addsd  -0x8(%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x8(%rax,%rcx,8)
cvttsd2si 0x10(%rbx,%r12,1),%ecx
movsd  0x98(%rsp),%xmm0
movslq %ecx,%rcx
addsd  -0x8(%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x8(%rax,%rcx,8)
cvttsd2si 0x10(%rbx,%r12,1),%eax
movsd  0x40(%rsp),%xmm0
movslq %eax,%rcx
addsd  -0x8(%rbp,%rcx,8),%xmm0
add    $0xffffffff,%eax
movsd  %xmm0,-0x8(%rbp,%rcx,8)
imul   %r13d,%eax
cltq
lea    (%r15,%rax,8),%rax
cvttsd2si (%rbx,%r12,1),%ecx
movsd  0xa0(%rsp),%xmm0
movslq %ecx,%rcx
addsd  -0x8(%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x8(%rax,%rcx,8)
cvttsd2si 0x8(%rbx,%r12,1),%ecx
movsd  0xa8(%rsp),%xmm0
movslq %ecx,%rcx
addsd  -0x8(%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x8(%rax,%rcx,8)
cvttsd2si 0x10(%rbx,%r12,1),%ecx
movsd  0xb0(%rsp),%xmm0
movslq %ecx,%rcx
addsd  -0x8(%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x8(%rax,%rcx,8)
add    $0x18,%r12
cmp    %r12,(%rsp)
jne    1330 <solvePDE+0x170>
xor    %eax,%eax
call   1050 <omp_get_wtime@plt>
subsd  0x18(%rsp),%xmm0
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <omp_get_wtime@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0xa62(%rip),%xmm0
mov    %r13d,%edi
mov    %r14,%rsi
mov    %r15,%rdx
mov    %rbp,%rcx
call   10b0 <assignDirichletCondition@plt>
xor    %eax,%eax
call   1050 <omp_get_wtime@plt>
subsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
xor    %eax,%eax
call   1050 <omp_get_wtime@plt>
movsd  %xmm0,0x8(%rsp)
mov    %r13d,%edi
mov    %r15,%rsi
mov    %rbp,%rdx
call   1070 <backSubstitution@plt>
mov    %rax,%r12
xor    %eax,%eax
call   1050 <omp_get_wtime@plt>
subsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <omp_get_wtime@plt>
subsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
lea    0xa15(%rip),%rdi
call   1090 <printf@plt>
lea    0xa35(%rip),%rdi
movsd  0x28(%rsp),%xmm0
call   1090 <printf@plt>
lea    0xa46(%rip),%rdi
movsd  0x20(%rsp),%xmm0
call   1090 <printf@plt>
lea    0xa5a(%rip),%rdi
movsd  (%rsp),%xmm0
call   1090 <printf@plt>
lea    0xa74(%rip),%rdi
movsd  0x10(%rsp),%xmm0
call   1090 <printf@plt>
lea    0xa8c(%rip),%rdi
movsd  0x8(%rsp),%xmm0
call   1090 <printf@plt>
lea    0xaa1(%rip),%rsi
mov    0x60(%rsp),%rdi
movsd  0x18(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
movsd  (%rsp),%xmm3
movsd  0x10(%rsp),%xmm4
movsd  0x8(%rsp),%xmm5
call   10a0 <fprintf@plt>
mov    0x58(%rsp),%rdi
call   1030 <free@plt>
mov    0x50(%rsp),%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    %r12,%rax
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.solvePDE.localB = [3 x double] [double 1.000000e+00, double 0.000000e+00, double 0.000000e+00]
@.str = [2 x i8] c"r\00"
@.str.1 = [44 x i8] c"Elapsed time for computation: %lf seconds.\0A\00"
@.str.2 = [35 x i8] c"Elapsed time for IO: %lf seconds.\0A\00"
@.str.3 = [38 x i8] c"Elapsed time for zeros: %lf seconds.\0A\00"
@.str.4 = [43 x i8] c"Elapsed time for assembling: %lf seconds.\0A\00"
@.str.5 = [42 x i8] c"Elapsed time for dirichlet: %lf seconds.\0A\00"
@.str.6 = [39 x i8] c"Elapsed time for system: %lf seconds.\0A\00"
@.str.7 = [30 x i8] c"%lf, %lf, %lf, %lf, %lf, %lf\0A\00"
define double* @solvePDE(i8* %0, i8* %1, double* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca double*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca double
%15 = alloca double
%16 = alloca [3 x [2 x double]]
%17 = alloca [3 x [3 x double]]
%18 = alloca [3 x double]
%19 = alloca double*
%20 = alloca double*
%21 = alloca double
%22 = alloca double*
%23 = alloca double*
%24 = alloca double
%25 = alloca double
%26 = alloca double*
%27 = alloca double*
%28 = alloca double
%29 = alloca double
%30 = alloca double
%31 = alloca double
%32 = alloca double
%33 = alloca double
%34 = alloca double*
%35 = alloca double
%36 = alloca double
store i8* %0, i8** %4
store i8* %1, i8** %5
store double* %2, double** %6
store i32 0, i32* %11
store i32 0, i32* %12
store i32 0, i32* %13
store double -4.000000e+00, double* %14
store double 1.000000e+00, double* %15
%37 = bitcast [3 x [2 x double]]* %16 to i8*
%38 = bitcast [3 x [3 x double]]* %17 to i8*
%39 = bitcast [3 x double]* %18 to i8*
%40 = load i8*, i8** %4
%41 = call double* @fopen(i8* %40, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store double* %41, double** %19
%42 = load i8*, i8** %5
%43 = call double* @fopen(i8* %42, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store double* %43, double** %20
%44 = load double*, double** %20
%45 = call i32 @lineCount(double* %44)
store i32 %45, i32* %7
%46 = load double*, double** %19
%47 = call i32 @lineCount(double* %46)
store i32 %47, i32* %10
%48 = call double (...) @omp_get_wtime()
store double %48, double* %21
%49 = load double*, double** %19
%50 = load double*, double** %19
%51 = call i32 @lineCount(double* %50)
%52 = call double* @readMatrixFile(double* %49, i32 %51, i32 2)
store double* %52, double** %22
%53 = load double*, double** %20
%54 = load double*, double** %20
%55 = call i32 @lineCount(double* %54)
%56 = call double* @readMatrixFile(double* %53, i32 %55, i32 3)
store double* %56, double** %23
%57 = call double (...) @omp_get_wtime()
%58 = load double, double* %21
%59 = fsub double %57, %58
store double %59, double* %24
%60 = call double (...) @omp_get_wtime()
store double %60, double* %25
%61 = load i32, i32* %10
%62 = load i32, i32* %10
%63 = mul nsw i32 %61, %62
%64 = call double* @zeros(i32 %63)
store double* %64, double** %26
%65 = load i32, i32* %10
%66 = call double* @zeros(i32 %65)
store double* %66, double** %27
%67 = call double (...) @omp_get_wtime()
%68 = load double, double* %25
%69 = fsub double %67, %68
store double %69, double* %28
%70 = call double (...) @omp_get_wtime()
store double %70, double* %29
store i32 0, i32* %11
br label %71
71: ; preds = %193, %3
%72 = load i32, i32* %11
%73 = load i32, i32* %7
%74 = icmp slt i32 %72, %73
br i1 %74, label %75, label %196
75: ; preds = %71
store i32 0, i32* %12
br label %76
76: ; preds = %113, %75
%77 = load i32, i32* %12
%78 = icmp slt i32 %77, 3
br i1 %78, label %79, label %116
79: ; preds = %76
%80 = load double*, double** %23
%81 = load i32, i32* %11
%82 = mul nsw i32 %81, 3
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds double, double* %80, i64 %83
%85 = load i32, i32* %12
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds double, double* %84, i64 %86
%88 = load double, double* %87
%89 = fptosi double %88 to i32
%90 = sub nsw i32 %89, 1
store i32 %90, i32* %9
%91 = load double*, double** %22
%92 = load i32, i32* %9
%93 = mul nsw i32 %92, 2
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, double* %91, i64 %94
%96 = getelementptr inbounds double, double* %95, i64 0
%97 = load double, double* %96
%98 = load i32, i32* %12
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [3 x [2 x double]], [3 x [2 x double]]* %16, i64 0, i64 %99
%101 = getelementptr inbounds [2 x double], [2 x double]* %100, i64 0, i64 0
store double %97, double* %101
%102 = load double*, double** %22
%103 = load i32, i32* %9
%104 = mul nsw i32 %103, 2
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds double, double* %102, i64 %105
%107 = getelementptr inbounds double, double* %106, i64 1
%108 = load double, double* %107
%109 = load i32, i32* %12
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [3 x [2 x double]], [3 x [2 x double]]* %16, i64 0, i64 %110
%112 = getelementptr inbounds [2 x double], [2 x double]* %111, i64 0, i64 1
store double %108, double* %112
br label %113
113: ; preds = %79
%114 = load i32, i32* %12
%115 = add nsw i32 %114, 1
store i32 %115, i32* %12
br label %76
116: ; preds = %76
%117 = getelementptr inbounds [3 x [2 x double]], [3 x [2 x double]]* %16, i64 0, i64 0
%118 = bitcast [2 x double]* %117 to double**
%119 = getelementptr inbounds [3 x [3 x double]], [3 x [3 x double]]* %17, i64 0, i64 0
%120 = bitcast [3 x double]* %119 to double**
%121 = call i32 @localStiffnessMatrix(double** %118, double** %120)
%122 = getelementptr inbounds [3 x [2 x double]], [3 x [2 x double]]* %16, i64 0, i64 0
%123 = bitcast [2 x double]* %122 to double**
%124 = load double, double* %14
%125 = getelementptr inbounds [3 x double], [3 x double]* %18, i64 0, i64 0
%126 = call i32 @localVector(double** %123, double %124, double* %125)
store i32 0, i32* %12
br label %127
127: ; preds = %189, %116
%128 = load i32, i32* %12
%129 = icmp slt i32 %128, 3
br i1 %129, label %130, label %192
130: ; preds = %127
%131 = load double*, double** %23
%132 = load i32, i32* %11
%133 = mul nsw i32 %132, 3
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds double, double* %131, i64 %134
%136 = load i32, i32* %12
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds double, double* %135, i64 %137
%139 = load double, double* %138
%140 = fptosi double %139 to i32
%141 = sub nsw i32 %140, 1
store i32 %141, i32* %9
%142 = load i32, i32* %12
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [3 x double], [3 x double]* %18, i64 0, i64 %143
%145 = load double, double* %144
%146 = load double*, double** %27
%147 = load i32, i32* %9
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds double, double* %146, i64 %148
%150 = load double, double* %149
%151 = fadd double %150, %145
store double %151, double* %149
store i32 0, i32* %13
br label %152
152: ; preds = %185, %130
%153 = load i32, i32* %13
%154 = icmp slt i32 %153, 3
br i1 %154, label %155, label %188
155: ; preds = %152
%156 = load double*, double** %23
%157 = load i32, i32* %11
%158 = mul nsw i32 %157, 3
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds double, double* %156, i64 %159
%161 = load i32, i32* %13
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds double, double* %160, i64 %162
%164 = load double, double* %163
%165 = fptosi double %164 to i32
%166 = sub nsw i32 %165, 1
store i32 %166, i32* %8
%167 = load i32, i32* %12
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds [3 x [3 x double]], [3 x [3 x double]]* %17, i64 0, i64 %168
%170 = load i32, i32* %13
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [3 x double], [3 x double]* %169, i64 0, i64 %171
%173 = load double, double* %172
%174 = load double*, double** %26
%175 = load i32, i32* %9
%176 = load i32, i32* %10
%177 = mul nsw i32 %175, %176
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds double, double* %174, i64 %178
%180 = load i32, i32* %8
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds double, double* %179, i64 %181
%183 = load double, double* %182
%184 = fadd double %183, %173
store double %184, double* %182
br label %185
185: ; preds = %155
%186 = load i32, i32* %13
%187 = add nsw i32 %186, 1
store i32 %187, i32* %13
br label %152
188: ; preds = %152
br label %189
189: ; preds = %188
%190 = load i32, i32* %12
%191 = add nsw i32 %190, 1
store i32 %191, i32* %12
br label %127
192: ; preds = %127
br label %193
193: ; preds = %192
%194 = load i32, i32* %11
%195 = add nsw i32 %194, 1
store i32 %195, i32* %11
br label %71
196: ; preds = %71
%197 = call double (...) @omp_get_wtime()
%198 = load double, double* %29
%199 = fsub double %197, %198
store double %199, double* %30
%200 = call double (...) @omp_get_wtime()
store double %200, double* %31
%201 = load i32, i32* %10
%202 = load double, double* %15
%203 = load double*, double** %22
%204 = load double*, double** %26
%205 = load double*, double** %27
%206 = call i32 @assignDirichletCondition(i32 %201, double %202, double* %203, double* %204, double* %205)
%207 = call double (...) @omp_get_wtime()
%208 = load double, double* %31
%209 = fsub double %207, %208
store double %209, double* %32
%210 = call double (...) @omp_get_wtime()
store double %210, double* %33
%211 = load i32, i32* %10
%212 = load double*, double** %26
%213 = load double*, double** %27
%214 = call double* @backSubstitution(i32 %211, double* %212, double* %213)
store double* %214, double** %34
%215 = call double (...) @omp_get_wtime()
%216 = load double, double* %33
%217 = fsub double %215, %216
store double %217, double* %35
%218 = call double (...) @omp_get_wtime()
%219 = load double, double* %29
%220 = fsub double %218, %219
store double %220, double* %36
%221 = load double, double* %36
%222 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0), double %221)
%223 = load double, double* %24
%224 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), double %223)
%225 = load double, double* %28
%226 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0), double %225)
%227 = load double, double* %30
%228 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), double %227)
%229 = load double, double* %32
%230 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0), double %229)
%231 = load double, double* %35
%232 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0), double %231)
%233 = load double*, double** %6
%234 = load double, double* %36
%235 = load double, double* %24
%236 = load double, double* %28
%237 = load double, double* %30
%238 = load double, double* %32
%239 = load double, double* %35
%240 = call i32 @fprintf(double* %233, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), double %234, double %235, double %236, double %237, double %238, double %239)
%241 = load double*, double** %19
%242 = call i32 @free(double* %241)
%243 = load double*, double** %20
%244 = call i32 @free(double* %243)
%245 = load double*, double** %22
%246 = call i32 @free(double* %245)
%247 = load double*, double** %23
%248 = call i32 @free(double* %247)
%249 = load double*, double** %26
%250 = call i32 @free(double* %249)
%251 = load double*, double** %27
%252 = call i32 @free(double* %251)
%253 = load double*, double** %34
%254 = call i32 @free(double* %253)
%255 = load double*, double** %34
ret double* %255
}

LLVM IR (-O2):
@__const.solvePDE.localB = [3 x double] [double 1.000000e+00, double 0.000000e+00, double 0.000000e+00]
@.str = [2 x i8] c"r\00"
@.str.1 = [44 x i8] c"Elapsed time for computation: %lf seconds.\0A\00"
@.str.2 = [35 x i8] c"Elapsed time for IO: %lf seconds.\0A\00"
@.str.3 = [38 x i8] c"Elapsed time for zeros: %lf seconds.\0A\00"
@.str.4 = [43 x i8] c"Elapsed time for assembling: %lf seconds.\0A\00"
@.str.5 = [42 x i8] c"Elapsed time for dirichlet: %lf seconds.\0A\00"
@.str.6 = [39 x i8] c"Elapsed time for system: %lf seconds.\0A\00"
@.str.7 = [30 x i8] c"%lf, %lf, %lf, %lf, %lf, %lf\0A\00"
define double* @solvePDE(i8* nocapture %0, i8* nocapture %1, double* nocapture %2) {
%4 = alloca [3 x [2 x double]]
%5 = alloca [3 x [3 x double]]
%6 = alloca [3 x double]
%7 = bitcast [3 x [2 x double]]* %4 to i8*
%8 = bitcast [3 x [3 x double]]* %5 to i8*
%9 = bitcast [3 x double]* %6 to i8*
%10 = tail call double* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%11 = tail call double* @fopen(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%12 = tail call i32 @lineCount(double* %11)
%13 = tail call i32 @lineCount(double* %10)
%14 = tail call double (...) @omp_get_wtime()
%15 = tail call i32 @lineCount(double* %10)
%16 = tail call double* @readMatrixFile(double* %10, i32 %15, i32 2)
%17 = tail call i32 @lineCount(double* %11)
%18 = tail call double* @readMatrixFile(double* %11, i32 %17, i32 3)
%19 = tail call double (...) @omp_get_wtime()
%20 = fsub double %19, %14
%21 = tail call double (...) @omp_get_wtime()
%22 = mul nsw i32 %13, %13
%23 = tail call double* @zeros(i32 %22)
%24 = tail call double* @zeros(i32 %13)
%25 = tail call double (...) @omp_get_wtime()
%26 = fsub double %25, %21
%27 = tail call double (...) @omp_get_wtime()
%28 = icmp sgt i32 %12, 0
br i1 %28, label %29, label %193
29: ; preds = %3
%30 = bitcast [3 x [2 x double]]* %4 to double**
%31 = bitcast [3 x [3 x double]]* %5 to double**
%32 = getelementptr inbounds [3 x double], [3 x double]* %6, i64 0, i64 0
%33 = zext i32 %12 to i64
%34 = getelementptr inbounds [3 x [2 x double]], [3 x [2 x double]]* %4, i64 0, i64 0, i64 0
%35 = getelementptr inbounds [3 x [2 x double]], [3 x [2 x double]]* %4, i64 0, i64 0, i64 1
%36 = getelementptr inbounds [3 x [2 x double]], [3 x [2 x double]]* %4, i64 0, i64 1, i64 0
%37 = getelementptr inbounds [3 x [2 x double]], [3 x [2 x double]]* %4, i64 0, i64 1, i64 1
%38 = getelementptr inbounds [3 x [2 x double]], [3 x [2 x double]]* %4, i64 0, i64 2, i64 0
%39 = getelementptr inbounds [3 x [2 x double]], [3 x [2 x double]]* %4, i64 0, i64 2, i64 1
%40 = getelementptr inbounds [3 x [3 x double]], [3 x [3 x double]]* %5, i64 0, i64 0, i64 0
%41 = getelementptr inbounds [3 x [3 x double]], [3 x [3 x double]]* %5, i64 0, i64 0, i64 1
%42 = getelementptr inbounds [3 x [3 x double]], [3 x [3 x double]]* %5, i64 0, i64 0, i64 2
%43 = getelementptr inbounds [3 x double], [3 x double]* %6, i64 0, i64 1
%44 = getelementptr inbounds [3 x [3 x double]], [3 x [3 x double]]* %5, i64 0, i64 1, i64 0
%45 = getelementptr inbounds [3 x [3 x double]], [3 x [3 x double]]* %5, i64 0, i64 1, i64 1
%46 = getelementptr inbounds [3 x [3 x double]], [3 x [3 x double]]* %5, i64 0, i64 1, i64 2
%47 = getelementptr inbounds [3 x double], [3 x double]* %6, i64 0, i64 2
%48 = getelementptr inbounds [3 x [3 x double]], [3 x [3 x double]]* %5, i64 0, i64 2, i64 0
%49 = getelementptr inbounds [3 x [3 x double]], [3 x [3 x double]]* %5, i64 0, i64 2, i64 1
%50 = getelementptr inbounds [3 x [3 x double]], [3 x [3 x double]]* %5, i64 0, i64 2, i64 2
br label %51
51: ; preds = %29, %51
%52 = phi i64 [ 0, %29 ], [ %191, %51 ]
%53 = mul nuw nsw i64 %52, 3
%54 = getelementptr inbounds double, double* %18, i64 %53
%55 = load double, double* %54
%56 = fptosi double %55 to i32
%57 = shl i32 %56, 1
%58 = add i32 %57, -2
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds double, double* %16, i64 %59
%61 = load double, double* %60
store double %61, double* %34
%62 = getelementptr inbounds double, double* %60, i64 1
%63 = load double, double* %62
store double %63, double* %35
%64 = getelementptr inbounds double, double* %54, i64 1
%65 = load double, double* %64
%66 = fptosi double %65 to i32
%67 = shl i32 %66, 1
%68 = add i32 %67, -2
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds double, double* %16, i64 %69
%71 = load double, double* %70
store double %71, double* %36
%72 = getelementptr inbounds double, double* %70, i64 1
%73 = load double, double* %72
store double %73, double* %37
%74 = getelementptr inbounds double, double* %54, i64 2
%75 = load double, double* %74
%76 = fptosi double %75 to i32
%77 = shl i32 %76, 1
%78 = add i32 %77, -2
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds double, double* %16, i64 %79
%81 = load double, double* %80
store double %81, double* %38
%82 = getelementptr inbounds double, double* %80, i64 1
%83 = load double, double* %82
store double %83, double* %39
%84 = call i32 @localStiffnessMatrix(double** %30, double** %31)
%85 = call i32 @localVector(double** %30, double -4.000000e+00, double* %32)
%86 = load double, double* %54
%87 = fptosi double %86 to i32
%88 = add nsw i32 %87, -1
%89 = load double, double* %32
%90 = sext i32 %88 to i64
%91 = getelementptr inbounds double, double* %24, i64 %90
%92 = load double, double* %91
%93 = fadd double %89, %92
store double %93, double* %91
%94 = mul nsw i32 %88, %13
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds double, double* %23, i64 %95
%97 = load double, double* %54
%98 = fptosi double %97 to i32
%99 = add nsw i32 %98, -1
%100 = load double, double* %40
%101 = sext i32 %99 to i64
%102 = getelementptr inbounds double, double* %96, i64 %101
%103 = load double, double* %102
%104 = fadd double %100, %103
store double %104, double* %102
%105 = load double, double* %64
%106 = fptosi double %105 to i32
%107 = add nsw i32 %106, -1
%108 = load double, double* %41
%109 = sext i32 %107 to i64
%110 = getelementptr inbounds double, double* %96, i64 %109
%111 = load double, double* %110
%112 = fadd double %108, %111
store double %112, double* %110
%113 = load double, double* %74
%114 = fptosi double %113 to i32
%115 = add nsw i32 %114, -1
%116 = load double, double* %42
%117 = sext i32 %115 to i64
%118 = getelementptr inbounds double, double* %96, i64 %117
%119 = load double, double* %118
%120 = fadd double %116, %119
store double %120, double* %118
%121 = load double, double* %64
%122 = fptosi double %121 to i32
%123 = add nsw i32 %122, -1
%124 = load double, double* %43
%125 = sext i32 %123 to i64
%126 = getelementptr inbounds double, double* %24, i64 %125
%127 = load double, double* %126
%128 = fadd double %124, %127
store double %128, double* %126
%129 = mul nsw i32 %123, %13
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds double, double* %23, i64 %130
%132 = load double, double* %54
%133 = fptosi double %132 to i32
%134 = add nsw i32 %133, -1
%135 = load double, double* %44
%136 = sext i32 %134 to i64
%137 = getelementptr inbounds double, double* %131, i64 %136
%138 = load double, double* %137
%139 = fadd double %135, %138
store double %139, double* %137
%140 = load double, double* %64
%141 = fptosi double %140 to i32
%142 = add nsw i32 %141, -1
%143 = load double, double* %45
%144 = sext i32 %142 to i64
%145 = getelementptr inbounds double, double* %131, i64 %144
%146 = load double, double* %145
%147 = fadd double %143, %146
store double %147, double* %145
%148 = load double, double* %74
%149 = fptosi double %148 to i32
%150 = add nsw i32 %149, -1
%151 = load double, double* %46
%152 = sext i32 %150 to i64
%153 = getelementptr inbounds double, double* %131, i64 %152
%154 = load double, double* %153
%155 = fadd double %151, %154
store double %155, double* %153
%156 = load double, double* %74
%157 = fptosi double %156 to i32
%158 = add nsw i32 %157, -1
%159 = load double, double* %47
%160 = sext i32 %158 to i64
%161 = getelementptr inbounds double, double* %24, i64 %160
%162 = load double, double* %161
%163 = fadd double %159, %162
store double %163, double* %161
%164 = mul nsw i32 %158, %13
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds double, double* %23, i64 %165
%167 = load double, double* %54
%168 = fptosi double %167 to i32
%169 = add nsw i32 %168, -1
%170 = load double, double* %48
%171 = sext i32 %169 to i64
%172 = getelementptr inbounds double, double* %166, i64 %171
%173 = load double, double* %172
%174 = fadd double %170, %173
store double %174, double* %172
%175 = load double, double* %64
%176 = fptosi double %175 to i32
%177 = add nsw i32 %176, -1
%178 = load double, double* %49
%179 = sext i32 %177 to i64
%180 = getelementptr inbounds double, double* %166, i64 %179
%181 = load double, double* %180
%182 = fadd double %178, %181
store double %182, double* %180
%183 = load double, double* %74
%184 = fptosi double %183 to i32
%185 = add nsw i32 %184, -1
%186 = load double, double* %50
%187 = sext i32 %185 to i64
%188 = getelementptr inbounds double, double* %166, i64 %187
%189 = load double, double* %188
%190 = fadd double %186, %189
store double %190, double* %188
%191 = add nuw nsw i64 %52, 1
%192 = icmp eq i64 %191, %33
br i1 %192, label %193, label %51
193: ; preds = %51, %3
%194 = call double (...) @omp_get_wtime()
%195 = fsub double %194, %27
%196 = call double (...) @omp_get_wtime()
%197 = call i32 @assignDirichletCondition(i32 %13, double 1.000000e+00, double* %16, double* %23, double* %24)
%198 = call double (...) @omp_get_wtime()
%199 = fsub double %198, %196
%200 = call double (...) @omp_get_wtime()
%201 = call double* @backSubstitution(i32 %13, double* %23, double* %24)
%202 = call double (...) @omp_get_wtime()
%203 = fsub double %202, %200
%204 = call double (...) @omp_get_wtime()
%205 = fsub double %204, %27
%206 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0), double %205)
%207 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), double %20)
%208 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0), double %26)
%209 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), double %195)
%210 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0), double %199)
%211 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0), double %203)
%212 = call i32 @fprintf(double* %2, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), double %205, double %20, double %26, double %195, double %199, double %203)
%213 = call i32 @free(double* %10)
%214 = call i32 @free(double* %11)
%215 = call i32 @free(double* %16)
%216 = call i32 @free(double* %18)
%217 = call i32 @free(double* %23)
%218 = call i32 @free(double* %24)
%219 = call i32 @free(double* %201)
ret double* %201
}