int main(int argc, char *argv[]) {
  int gridSize2, gridSize3, gridSize4;
  double temp, maxdiff, timestamp = 0;
  int gridSize = 24, numIters = 10, finIter = 4;
  switch (argc) {
  case 4:
    finIter = atoi(argv[3]);
  case 3:
    numIters = atoi(argv[2]);
  case 2:
    gridSize = atoi(argv[1]);
  }
  gridSize2 = 2 * gridSize + 1;
  gridSize3 = 2 * gridSize2 + 1;
  gridSize4 = 2 * gridSize3 + 1;
  printf("gridSize: %d\n", gridSize);
  printf("numIters: %d\n", numIters);
  printf("finIter: %d\n", finIter);
  double **grid = (double **)malloc((gridSize + 2) * sizeof(double *));
  double **new = (double **)malloc((gridSize + 2) * sizeof(double *));
  double **grid2 = (double **)malloc((gridSize2 + 2) * sizeof(double *));
  double **new2 = (double **)malloc((gridSize2 + 2) * sizeof(double *));
  double **grid3 = (double **)malloc((gridSize3 + 2) * sizeof(double *));
  double **new3 = (double **)malloc((gridSize3 + 2) * sizeof(double *));
  double **grid4 = (double **)malloc((gridSize4 + 2) * sizeof(double *));
  double **new4 = (double **)malloc((gridSize4 + 2) * sizeof(double *));
  for (int i = 0; i < gridSize + 2; i++) {
    grid[i] = (double *)malloc((gridSize + 2) * sizeof(double));
    new[i] = (double *)malloc((gridSize + 2) * sizeof(double));
  }
  for (int i = 0; i < gridSize2 + 2; i++) {
    grid2[i] = (double *)malloc((gridSize2 + 2) * sizeof(double));
    new2[i] = (double *)malloc((gridSize2 + 2) * sizeof(double));
  }
  for (int i = 0; i < gridSize3 + 2; i++) {
    grid3[i] = (double *)malloc((gridSize3 + 2) * sizeof(double));
    new3[i] = (double *)malloc((gridSize3 + 2) * sizeof(double));
  }
  for (int i = 0; i < gridSize4 + 2; i++) {
    grid4[i] = (double *)malloc((gridSize4 + 2) * sizeof(double));
    new4[i] = (double *)malloc((gridSize4 + 2) * sizeof(double));
  }
  for (int i = 0; i < gridSize + 2; i++) {
    grid[0][i] = 1;
    new[0][i] = 1;
    grid[gridSize + 1][i] = 1;
    new[gridSize + 1][i] = 1;
    grid[i][0] = 1;
    new[i][0] = 1;
    grid[i][gridSize + 1] = 1;
    new[i][gridSize + 1] = 1;
  }
  for (int i = 0; i < gridSize2 + 2; i++) {
    grid2[0][i] = 1;
    new2[0][i] = 1;
    grid2[gridSize2 + 1][i] = 1;
    new2[gridSize2 + 1][i] = 1;
    grid2[i][0] = 1;
    new2[i][0] = 1;
    grid2[i][gridSize2 + 1] = 1;
    new2[i][gridSize2 + 1] = 1;
  }
  for (int i = 0; i < gridSize3 + 2; i++) {
    grid3[0][i] = 1;
    new3[0][i] = 1;
    grid3[gridSize3 + 1][i] = 1;
    new3[gridSize3 + 1][i] = 1;
    grid3[i][0] = 1;
    new3[i][0] = 1;
    grid3[i][gridSize3 + 1] = 1;
    new3[i][gridSize3 + 1] = 1;
  }
  for (int i = 0; i < gridSize4 + 2; i++) {
    grid4[0][i] = 1;
    new4[0][i] = 1;
    grid4[gridSize4 + 1][i] = 1;
    new4[gridSize4 + 1][i] = 1;
    grid4[i][0] = 1;
    new4[i][0] = 1;
    grid4[i][gridSize4 + 1] = 1;
    new4[i][gridSize4 + 1] = 1;
  }
  for (int i = 1; i < gridSize4 + 1; i++) {
    for (int j = 1; j < gridSize4 + 1; j++) {
      grid4[i][j] = 0;
    }
  }
  timestamp -= omp_get_wtime();
  jacobi(grid4, new4, gridSize4, finIter);
  restriction(grid4, grid3, gridSize3);
  jacobi(grid3, new3, gridSize3, finIter);
  restriction(grid3, grid2, gridSize2);
  jacobi(grid2, new2, gridSize2, finIter);
  restriction(grid2, grid, gridSize);
  jacobi(grid, new, gridSize, numIters);
  interpolation(grid, grid2, gridSize, gridSize2);
  jacobi(grid2, new2, gridSize2, finIter);
  interpolation(grid2, grid3, gridSize2, gridSize3);
  jacobi(grid3, new3, gridSize3, finIter);
  interpolation(grid3, grid4, gridSize3, gridSize4);
  jacobi(grid4, new4, gridSize4, finIter);
  timestamp += omp_get_wtime();
  gridprint(grid4, gridSize4);
  printf("Maximum final error: %f\n",
         1.0 - grid4[(gridSize4 + 1) / 2][(gridSize4 + 1) / 2]);
  printf("Jacobi iterations runtime: %f seconds\n", timestamp);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x38(%rbp)
movl   $0x18,-0x3c(%rbp)
movl   $0xa,-0x40(%rbp)
movl   $0x4,-0x44(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xb4(%rbp)
sub    $0x2,%eax
je     1229 <main+0x99>
jmp    11dd <main+0x4d>
mov    -0xb4(%rbp),%eax
sub    $0x3,%eax
je     1217 <main+0x87>
jmp    11f1 <main+0x61>
mov    -0xb4(%rbp),%eax
sub    $0x4,%eax
jne    123b <main+0xab>
jmp    1205 <main+0x75>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
mov    $0x0,%al
call   1090 <atoi@plt>
mov    %eax,-0x44(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    $0x0,%al
call   1090 <atoi@plt>
mov    %eax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    $0x0,%al
call   1090 <atoi@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x3c(%rbp),%esi
lea    0xd9f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x40(%rbp),%esi
lea    0xd9c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x44(%rbp),%esi
lea    0xd99(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x3c(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1080 <malloc@plt>
mov    %rax,-0x50(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1080 <malloc@plt>
mov    %rax,-0x58(%rbp)
mov    -0x14(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1080 <malloc@plt>
mov    %rax,-0x60(%rbp)
mov    -0x14(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1080 <malloc@plt>
mov    %rax,-0x68(%rbp)
mov    -0x18(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1080 <malloc@plt>
mov    %rax,-0x70(%rbp)
mov    -0x18(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1080 <malloc@plt>
mov    %rax,-0x78(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1080 <malloc@plt>
mov    %rax,-0x80(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1080 <malloc@plt>
mov    %rax,-0x88(%rbp)
movl   $0x0,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
mov    -0x3c(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    13bf <main+0x22f>
mov    -0x3c(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1080 <malloc@plt>
mov    %rax,%rdx
mov    -0x50(%rbp),%rax
movslq -0x8c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1080 <malloc@plt>
mov    %rax,%rdx
mov    -0x58(%rbp),%rax
movslq -0x8c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    134f <main+0x1bf>
movl   $0x0,-0x90(%rbp)
mov    -0x90(%rbp),%eax
mov    -0x14(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    1439 <main+0x2a9>
mov    -0x14(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1080 <malloc@plt>
mov    %rax,%rdx
mov    -0x60(%rbp),%rax
movslq -0x90(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x14(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1080 <malloc@plt>
mov    %rax,%rdx
mov    -0x68(%rbp),%rax
movslq -0x90(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x90(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x90(%rbp)
jmp    13c9 <main+0x239>
movl   $0x0,-0x94(%rbp)
mov    -0x94(%rbp),%eax
mov    -0x18(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    14b3 <main+0x323>
mov    -0x18(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1080 <malloc@plt>
mov    %rax,%rdx
mov    -0x70(%rbp),%rax
movslq -0x94(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1080 <malloc@plt>
mov    %rax,%rdx
mov    -0x78(%rbp),%rax
movslq -0x94(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    1443 <main+0x2b3>
movl   $0x0,-0x98(%rbp)
mov    -0x98(%rbp),%eax
mov    -0x1c(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    1530 <main+0x3a0>
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1080 <malloc@plt>
mov    %rax,%rdx
mov    -0x80(%rbp),%rax
movslq -0x98(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1080 <malloc@plt>
mov    %rax,%rdx
mov    -0x88(%rbp),%rax
movslq -0x98(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x98(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x98(%rbp)
jmp    14bd <main+0x32d>
movl   $0x0,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
mov    -0x3c(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    1662 <main+0x4d2>
mov    -0x50(%rbp),%rax
mov    (%rax),%rax
movslq -0x9c(%rbp),%rcx
movsd  0xa9c(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x58(%rbp),%rax
mov    (%rax),%rax
movslq -0x9c(%rbp),%rcx
movsd  0xa81(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x50(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x9c(%rbp),%rcx
movsd  0xa5c(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x58(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x9c(%rbp),%rcx
movsd  0xa37(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x50(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  0xa1b(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x58(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  0xa00(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x50(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  0x9dc(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x58(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  0x9b7(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    153a <main+0x3aa>
movl   $0x0,-0xa0(%rbp)
mov    -0xa0(%rbp),%eax
mov    -0x14(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    1794 <main+0x604>
mov    -0x60(%rbp),%rax
mov    (%rax),%rax
movslq -0xa0(%rbp),%rcx
movsd  0x96a(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x68(%rbp),%rax
mov    (%rax),%rax
movslq -0xa0(%rbp),%rcx
movsd  0x94f(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x60(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xa0(%rbp),%rcx
movsd  0x92a(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x68(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xa0(%rbp),%rcx
movsd  0x905(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x60(%rbp),%rax
movslq -0xa0(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  0x8e9(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x68(%rbp),%rax
movslq -0xa0(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  0x8ce(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x60(%rbp),%rax
movslq -0xa0(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  0x8aa(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x68(%rbp),%rax
movslq -0xa0(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  0x885(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0xa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa0(%rbp)
jmp    166c <main+0x4dc>
movl   $0x0,-0xa4(%rbp)
mov    -0xa4(%rbp),%eax
mov    -0x18(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    18c6 <main+0x736>
mov    -0x70(%rbp),%rax
mov    (%rax),%rax
movslq -0xa4(%rbp),%rcx
movsd  0x838(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x78(%rbp),%rax
mov    (%rax),%rax
movslq -0xa4(%rbp),%rcx
movsd  0x81d(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x70(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xa4(%rbp),%rcx
movsd  0x7f8(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x78(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xa4(%rbp),%rcx
movsd  0x7d3(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x70(%rbp),%rax
movslq -0xa4(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  0x7b7(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x78(%rbp),%rax
movslq -0xa4(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  0x79c(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x70(%rbp),%rax
movslq -0xa4(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  0x778(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x78(%rbp),%rax
movslq -0xa4(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  0x753(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    179e <main+0x60e>
movl   $0x0,-0xa8(%rbp)
mov    -0xa8(%rbp),%eax
mov    -0x1c(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    1a04 <main+0x874>
mov    -0x80(%rbp),%rax
mov    (%rax),%rax
movslq -0xa8(%rbp),%rcx
movsd  0x706(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x88(%rbp),%rax
mov    (%rax),%rax
movslq -0xa8(%rbp),%rcx
movsd  0x6e8(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x80(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xa8(%rbp),%rcx
movsd  0x6c3(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x88(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xa8(%rbp),%rcx
movsd  0x69b(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x80(%rbp),%rax
movslq -0xa8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  0x67f(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x88(%rbp),%rax
movslq -0xa8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  0x661(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x80(%rbp),%rax
movslq -0xa8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  0x63d(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x88(%rbp),%rax
movslq -0xa8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  0x615(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0xa8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa8(%rbp)
jmp    18d0 <main+0x740>
movl   $0x1,-0xac(%rbp)
mov    -0xac(%rbp),%eax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    1a8b <main+0x8fb>
movl   $0x1,-0xb0(%rbp)
mov    -0xb0(%rbp),%eax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    1a72 <main+0x8e2>
mov    -0x80(%rbp),%rax
movslq -0xac(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xb0(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0xb0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb0(%rbp)
jmp    1a2c <main+0x89c>
jmp    1a77 <main+0x8e7>
mov    -0xac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xac(%rbp)
jmp    1a0e <main+0x87e>
mov    $0x0,%al
call   1040 <omp_get_wtime@plt>
cvtsi2sd %eax,%xmm1
movsd  -0x38(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x80(%rbp),%rdi
mov    -0x88(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x44(%rbp),%ecx
mov    $0x0,%al
call   1030 <jacobi@plt>
mov    -0x80(%rbp),%rdi
mov    -0x70(%rbp),%rsi
mov    -0x18(%rbp),%edx
mov    $0x0,%al
call   1070 <restriction@plt>
mov    -0x70(%rbp),%rdi
mov    -0x78(%rbp),%rsi
mov    -0x18(%rbp),%edx
mov    -0x44(%rbp),%ecx
mov    $0x0,%al
call   1030 <jacobi@plt>
mov    -0x70(%rbp),%rdi
mov    -0x60(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    $0x0,%al
call   1070 <restriction@plt>
mov    -0x60(%rbp),%rdi
mov    -0x68(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x44(%rbp),%ecx
mov    $0x0,%al
call   1030 <jacobi@plt>
mov    -0x60(%rbp),%rdi
mov    -0x50(%rbp),%rsi
mov    -0x3c(%rbp),%edx
mov    $0x0,%al
call   1070 <restriction@plt>
mov    -0x50(%rbp),%rdi
mov    -0x58(%rbp),%rsi
mov    -0x3c(%rbp),%edx
mov    -0x40(%rbp),%ecx
mov    $0x0,%al
call   1030 <jacobi@plt>
mov    -0x50(%rbp),%rdi
mov    -0x60(%rbp),%rsi
mov    -0x3c(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    $0x0,%al
call   1060 <interpolation@plt>
mov    -0x60(%rbp),%rdi
mov    -0x68(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x44(%rbp),%ecx
mov    $0x0,%al
call   1030 <jacobi@plt>
mov    -0x60(%rbp),%rdi
mov    -0x70(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    $0x0,%al
call   1060 <interpolation@plt>
mov    -0x70(%rbp),%rdi
mov    -0x78(%rbp),%rsi
mov    -0x18(%rbp),%edx
mov    -0x44(%rbp),%ecx
mov    $0x0,%al
call   1030 <jacobi@plt>
mov    -0x70(%rbp),%rdi
mov    -0x80(%rbp),%rsi
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%ecx
mov    $0x0,%al
call   1060 <interpolation@plt>
mov    -0x80(%rbp),%rdi
mov    -0x88(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x44(%rbp),%ecx
mov    $0x0,%al
call   1030 <jacobi@plt>
mov    $0x0,%al
call   1040 <omp_get_wtime@plt>
cvtsi2sd %eax,%xmm0
addsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x80(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    $0x0,%al
call   10b0 <gridprint@plt>
mov    -0x80(%rbp),%rax
mov    %rax,-0xc8(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xc8(%rbp),%rax
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0xc0(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xc0(%rbp),%rax
movslq %ecx,%rcx
movsd  0x3d9(%rip),%xmm0
subsd  (%rax,%rcx,8),%xmm0
lea    0x3fe(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  -0x38(%rbp),%xmm0
lea    0x404(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %rsi,%r15
mov    $0xa,%ebp
mov    $0x4,%r14d
cmp    $0x2,%edi
je     11ee <main+0x4e>
cmp    $0x3,%edi
je     11e1 <main+0x41>
mov    $0x18,%ebx
cmp    $0x4,%edi
jne    11fb <main+0x5b>
mov    0x18(%r15),%rdi
xor    %eax,%eax
call   10a0 <atoi@plt>
mov    %eax,%r14d
mov    0x10(%r15),%rdi
xor    %eax,%eax
call   10a0 <atoi@plt>
mov    %eax,%ebp
mov    0x8(%r15),%rdi
xor    %eax,%eax
call   10a0 <atoi@plt>
mov    %eax,%ebx
lea    (%rbx,%rbx,1),%r15d
lea    (%r15,%r15,1),%eax
add    $0x2,%eax
mov    %rax,0x8(%rsp)
lea    0xdf6(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdf4(%rip),%rdi
mov    %ebp,0x68(%rsp)
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdee(%rip),%rdi
mov    %r14d,0x6c(%rsp)
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x2(%rbx),%eax
mov    %eax,0x34(%rsp)
movslq %ebx,%rax
mov    %rax,0x20(%rsp)
lea    0x10(,%rax,8),%r13
mov    %r13,%rdi
call   1090 <malloc@plt>
mov    %rax,0x18(%rsp)
mov    %r13,%rdi
call   1090 <malloc@plt>
mov    %rax,%rbp
mov    %rbx,0x78(%rsp)
lea    (%rbx,%rbx,1),%eax
add    $0x3,%eax
mov    %eax,0x38(%rsp)
movslq %eax,%r12
shl    $0x3,%r12
mov    %r12,%rdi
call   1090 <malloc@plt>
mov    %rax,0x60(%rsp)
mov    %r12,%rdi
call   1090 <malloc@plt>
mov    %rax,0x28(%rsp)
mov    %r15,0x70(%rsp)
lea    (%r15,%r15,1),%eax
add    $0x5,%eax
mov    %eax,0x4(%rsp)
movslq %eax,%r14
shl    $0x3,%r14
mov    %r14,%rdi
call   1090 <malloc@plt>
mov    %rax,0x48(%rsp)
mov    %r14,%rdi
call   1090 <malloc@plt>
mov    %rax,0x40(%rsp)
mov    0x8(%rsp),%rax
add    %eax,%eax
add    $0x5,%eax
mov    %eax,(%rsp)
movslq %eax,%rbx
shl    $0x3,%rbx
mov    %rbx,%rdi
call   1090 <malloc@plt>
mov    %rax,0x10(%rsp)
mov    %rbx,0x58(%rsp)
mov    %rbx,%rdi
call   1090 <malloc@plt>
mov    %rax,0x50(%rsp)
cmpl   $0xffffffff,0x20(%rsp)
jl     1347 <main+0x1a7>
mov    0x34(%rsp),%ebx
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
mov    %r13,%rdi
call   1090 <malloc@plt>
mov    0x18(%rsp),%rcx
mov    %rax,(%rcx,%r15,8)
mov    %r13,%rdi
call   1090 <malloc@plt>
mov    %rax,0x0(%rbp,%r15,8)
add    $0x1,%r15
cmp    %r15,%rbx
jne    1320 <main+0x180>
mov    %rbp,0x20(%rsp)
mov    0x38(%rsp),%eax
mov    %eax,%r13d
test   %eax,%eax
mov    0x60(%rsp),%r15
mov    0x28(%rsp),%rbp
jle    1392 <main+0x1f2>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r12,%rdi
call   1090 <malloc@plt>
mov    %rax,(%r15,%rbx,8)
mov    %r12,%rdi
call   1090 <malloc@plt>
mov    %rax,0x0(%rbp,%rbx,8)
add    $0x1,%rbx
cmp    %rbx,%r13
jne    1370 <main+0x1d0>
mov    0x4(%rsp),%eax
mov    %eax,%r12d
test   %eax,%eax
mov    0x48(%rsp),%r15
mov    0x40(%rsp),%rbp
jle    13d2 <main+0x232>
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    %r14,%rdi
call   1090 <malloc@plt>
mov    %rax,(%r15,%rbx,8)
mov    %r14,%rdi
call   1090 <malloc@plt>
mov    %rax,0x0(%rbp,%rbx,8)
add    $0x1,%rbx
cmp    %rbx,%r12
jne    13b0 <main+0x210>
mov    %r12,0x80(%rsp)
mov    (%rsp),%eax
mov    %eax,%r15d
test   %eax,%eax
mov    0x10(%rsp),%rbp
mov    0x50(%rsp),%r12
mov    0x58(%rsp),%r14
jle    1422 <main+0x282>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14,%rdi
call   1090 <malloc@plt>
mov    %rax,0x0(%rbp,%rbx,8)
mov    %r14,%rdi
call   1090 <malloc@plt>
mov    %rax,(%r12,%rbx,8)
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1400 <main+0x260>
mov    %r15,0x58(%rsp)
movabs $0x3ff0000000000000,%rax
mov    0x78(%rsp),%r15
cmp    $0xffffffff,%r15d
mov    0x60(%rsp),%r11
mov    %r12,%r14
mov    0x80(%rsp),%r12
jl     14ce <main+0x32e>
mov    0x18(%rsp),%rcx
mov    (%rcx),%r8
mov    0x20(%rsp),%rdx
mov    (%rdx),%r9
lea    0x1(%r15),%esi
mov    (%rcx,%rsi,8),%r10
mov    (%rdx,%rsi,8),%rbp
mov    0x34(%rsp),%edx
cmp    $0x2,%edx
mov    $0x1,%ecx
cmovge %edx,%ecx
lea    -0x8(,%rcx,8),%rbx
ff
xor    %ecx,%ecx
mov    %r9,%rdx
mov    %r8,%rdi
nopl   0x0(%rax,%rax,1)
mov    %rax,(%r8,%rcx,1)
mov    %rax,(%r9,%rcx,1)
mov    %rax,(%r10,%rcx,1)
mov    %rax,0x0(%rbp,%rcx,1)
mov    %rax,(%rdi)
mov    %rax,(%rdx)
mov    %rax,(%rdi,%rsi,8)
mov    %rax,(%rdx,%rsi,8)
cmp    %rcx,%rbx
je     14ce <main+0x32e>
mov    0x18(%rsp),%rdx
mov    0x8(%rdx,%rcx,1),%rdi
mov    0x20(%rsp),%rdx
mov    0x8(%rdx,%rcx,1),%rdx
add    $0x8,%rcx
jmp    1490 <main+0x2f0>
cmpl   $0x0,0x38(%rsp)
mov    0x48(%rsp),%r10
jle    1549 <main+0x3a9>
mov    (%r11),%r8
mov    0x28(%rsp),%rcx
mov    (%rcx),%r9
mov    0x70(%rsp),%rsi
add    $0x2,%esi
mov    (%r11,%rsi,8),%rdi
mov    (%rcx,%rsi,8),%rbp
add    $0xffffffffffffffff,%r13
xor    %ebx,%ebx
mov    %r9,%rdx
mov    %r8,%rcx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rax,(%r8,%rbx,8)
mov    %rax,(%r9,%rbx,8)
mov    %rax,(%rdi,%rbx,8)
mov    %rax,0x0(%rbp,%rbx,8)
mov    %rax,(%rcx)
mov    %rax,(%rdx)
mov    %rax,(%rcx,%rsi,8)
mov    %rax,(%rdx,%rsi,8)
cmp    %rbx,%r13
je     1549 <main+0x3a9>
mov    0x8(%r11,%rbx,8),%rcx
mov    0x28(%rsp),%rdx
mov    0x8(%rdx,%rbx,8),%rdx
add    $0x1,%rbx
jmp    1510 <main+0x370>
cmpl   $0x0,0x4(%rsp)
mov    0x10(%rsp),%r13
mov    0x40(%rsp),%r11
jle    15b4 <main+0x414>
mov    (%r10),%r8
mov    (%r11),%r9
mov    0x8(%rsp),%rsi
add    $0x2,%esi
mov    (%r10,%rsi,8),%rdi
mov    (%r11,%rsi,8),%rbp
add    $0xffffffffffffffff,%r12
xor    %ebx,%ebx
mov    %r9,%rdx
mov    %r8,%rcx
nopl   0x0(%rax)
mov    %rax,(%r8,%rbx,8)
mov    %rax,(%r9,%rbx,8)
mov    %rax,(%rdi,%rbx,8)
mov    %rax,0x0(%rbp,%rbx,8)
mov    %rax,(%rcx)
mov    %rax,(%rdx)
mov    %rax,(%rcx,%rsi,8)
mov    %rax,(%rdx,%rsi,8)
cmp    %rbx,%r12
je     15b4 <main+0x414>
mov    0x8(%r10,%rbx,8),%rcx
mov    0x8(%r11,%rbx,8),%rdx
add    $0x1,%rbx
jmp    1580 <main+0x3e0>
mov    0x8(%rsp),%r10
lea    (%r10,%r10,1),%r8d
add    $0x2,%r8d
cmpl   $0x0,(%rsp)
jle    1629 <main+0x489>
mov    0x0(%r13),%r9
mov    (%r14),%r11
mov    %r14,%rdx
lea    0x2(%r8),%r14d
mov    0x0(%r13,%r14,8),%rdi
mov    (%rdx,%r14,8),%rbp
mov    0x58(%rsp),%rcx
add    $0xffffffffffffffff,%rcx
xor    %ebx,%ebx
mov    %r11,%rsi
mov    %r9,%rdx
nop
mov    %rax,(%r9,%rbx,8)
mov    %rax,(%r11,%rbx,8)
mov    %rax,(%rdi,%rbx,8)
mov    %rax,0x0(%rbp,%rbx,8)
mov    %rax,(%rdx)
mov    %rax,(%rsi)
mov    %rax,(%rdx,%r14,8)
mov    %rax,(%rsi,%r14,8)
cmp    %rbx,%rcx
je     162d <main+0x48d>
mov    0x8(%r13,%rbx,8),%rdx
mov    0x50(%rsp),%rsi
mov    0x8(%rsi,%rbx,8),%rsi
add    $0x1,%rbx
jmp    15f0 <main+0x450>
lea    0x2(%r8),%r14d
lea    (%r15,%r15,1),%eax
add    $0x1,%eax
mov    %eax,0x4(%rsp)
mov    0x70(%rsp),%rax
lea    0x3(%rax,%rax,1),%eax
mov    %eax,(%rsp)
lea    (%r10,%r10,1),%eax
add    $0x3,%eax
mov    %eax,0x8(%rsp)
cmp    $0x7ffffffd,%r8d
ja     1781 <main+0x5e1>
cmp    $0x3,%r14d
mov    $0x2,%eax
cmovge %r14d,%eax
lea    -0x2(%rax),%ecx
lea    0x8(,%rcx,8),%r13
lea    -0x1(%rax),%rbp
add    $0xfffffffffffffffe,%rax
mov    %ebp,%ecx
and    $0x7,%ecx
mov    $0x1,%r12d
cmp    $0x7,%rax
jb     174c <main+0x5ac>
mov    %rcx,%r15
and    $0xfffffffffffffff8,%rbp
xor    %r12d,%r12d
mov    0x10(%rsp),%rbx
mov    0x8(%rbx,%r12,8),%rdi
add    $0x8,%rdi
xor    %esi,%esi
mov    %r13,%rdx
call   1070 <memset@plt>
mov    0x10(%rbx,%r12,8),%rdi
add    $0x8,%rdi
xor    %esi,%esi
mov    %r13,%rdx
call   1070 <memset@plt>
mov    0x18(%rbx,%r12,8),%rdi
add    $0x8,%rdi
xor    %esi,%esi
mov    %r13,%rdx
call   1070 <memset@plt>
mov    0x20(%rbx,%r12,8),%rdi
add    $0x8,%rdi
xor    %esi,%esi
mov    %r13,%rdx
call   1070 <memset@plt>
mov    0x28(%rbx,%r12,8),%rdi
add    $0x8,%rdi
xor    %esi,%esi
mov    %r13,%rdx
call   1070 <memset@plt>
mov    0x30(%rbx,%r12,8),%rdi
add    $0x8,%rdi
xor    %esi,%esi
mov    %r13,%rdx
call   1070 <memset@plt>
mov    0x38(%rbx,%r12,8),%rdi
add    $0x8,%rdi
xor    %esi,%esi
mov    %r13,%rdx
call   1070 <memset@plt>
mov    0x40(%rbx,%r12,8),%rdi
add    $0x8,%rdi
xor    %esi,%esi
mov    %r13,%rdx
call   1070 <memset@plt>
add    $0x8,%r12
cmp    %r12,%rbp
jne    16a0 <main+0x500>
add    $0x1,%r12
mov    %r15,%rcx
test   %rcx,%rcx
je     1781 <main+0x5e1>
mov    0x10(%rsp),%rax
lea    (%rax,%r12,8),%r15
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    (%r15,%rbx,8),%rdi
add    $0x8,%rdi
xor    %esi,%esi
mov    %r13,%rdx
mov    %rcx,%rbp
call   1070 <memset@plt>
mov    %rbp,%rcx
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    1760 <main+0x5c0>
xor    %eax,%eax
call   1040 <omp_get_wtime@plt>
cvtsi2sd %eax,%xmm0
xorpd  %xmm1,%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x38(%rsp)
mov    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    0x50(%rsp),%rsi
mov    0x8(%rsp),%edx
mov    0x6c(%rsp),%r13d
mov    %r13d,%ecx
xor    %eax,%eax
call   1030 <jacobi@plt>
mov    %rbx,%rdi
mov    0x48(%rsp),%rbx
mov    %rbx,%rsi
mov    (%rsp),%ebp
mov    %ebp,%edx
xor    %eax,%eax
call   1080 <restriction@plt>
mov    %rbx,%rdi
mov    0x40(%rsp),%rsi
mov    %ebp,%edx
mov    %r13d,%ecx
xor    %eax,%eax
call   1030 <jacobi@plt>
mov    %rbx,%rdi
mov    0x60(%rsp),%r15
mov    %r15,%rsi
mov    0x4(%rsp),%r12d
mov    %r12d,%edx
xor    %eax,%eax
call   1080 <restriction@plt>
mov    %r15,%rdi
mov    0x28(%rsp),%rsi
mov    %r12d,%edx
mov    %r13d,%ecx
xor    %eax,%eax
call   1030 <jacobi@plt>
mov    %r15,%rdi
mov    0x18(%rsp),%rbx
mov    %rbx,%rsi
mov    0x78(%rsp),%rbp
mov    %ebp,%edx
xor    %eax,%eax
call   1080 <restriction@plt>
mov    %rbx,%rdi
mov    0x20(%rsp),%rsi
mov    %ebp,%edx
mov    0x68(%rsp),%ecx
xor    %eax,%eax
call   1030 <jacobi@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %ebp,%edx
mov    %r12d,%ecx
xor    %eax,%eax
call   1060 <interpolation@plt>
mov    %r15,%rdi
mov    0x28(%rsp),%rsi
mov    %r12d,%edx
mov    %r13d,%ecx
xor    %eax,%eax
call   1030 <jacobi@plt>
mov    %r15,%rdi
mov    0x48(%rsp),%rbp
mov    %rbp,%rsi
mov    %r12d,%edx
mov    (%rsp),%ebx
mov    %ebx,%ecx
xor    %eax,%eax
call   1060 <interpolation@plt>
mov    %rbp,%rdi
mov    0x40(%rsp),%rsi
mov    %ebx,%edx
mov    %r13d,%ecx
xor    %eax,%eax
call   1030 <jacobi@plt>
mov    %rbp,%rdi
mov    0x10(%rsp),%rbp
mov    %rbp,%rsi
mov    %ebx,%edx
mov    0x8(%rsp),%ebx
mov    %ebx,%ecx
xor    %eax,%eax
call   1060 <interpolation@plt>
mov    %rbp,%rdi
mov    0x50(%rsp),%rsi
mov    %ebx,%edx
mov    %r13d,%ecx
xor    %eax,%eax
call   1030 <jacobi@plt>
xor    %eax,%eax
call   1040 <omp_get_wtime@plt>
cvtsi2sd %eax,%xmm0
addsd  0x38(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
mov    %rbp,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   10c0 <gridprint@plt>
mov    %r14d,%eax
shr    $0x1f,%eax
add    %r14d,%eax
sar    %eax
cltq
mov    0x0(%rbp,%rax,8),%rcx
movsd  0x6fe(%rip),%xmm0
subsd  (%rcx,%rax,8),%xmm0
lea    0x723(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0x72e(%rip),%rdi
movsd  0x18(%rsp),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
xor    %edi,%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"gridSize: %d\0A\00"
@.str.1 = [14 x i8] c"numIters: %d\0A\00"
@.str.2 = [13 x i8] c"finIter: %d\0A\00"
@.str.3 = [25 x i8] c"Maximum final error: %f\0A\00"
@.str.4 = [39 x i8] c"Jacobi iterations runtime: %f seconds\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca double**
%16 = alloca double**
%17 = alloca double**
%18 = alloca double**
%19 = alloca double**
%20 = alloca double**
%21 = alloca double**
%22 = alloca double**
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32
%31 = alloca i32
%32 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store double 0.000000e+00, double* %11
store i32 24, i32* %12
store i32 10, i32* %13
store i32 4, i32* %14
%33 = load i32, i32* %4
switch i32 %33, label %49 [
i32 4, label %34
i32 3, label %39
i32 2, label %44
]
34: ; preds = %2
%35 = load i8**, i8*** %5
%36 = getelementptr inbounds i8*, i8** %35, i64 3
%37 = load i8*, i8** %36
%38 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %37)
store i32 %38, i32* %14
br label %39
39: ; preds = %2, %34
%40 = load i8**, i8*** %5
%41 = getelementptr inbounds i8*, i8** %40, i64 2
%42 = load i8*, i8** %41
%43 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %42)
store i32 %43, i32* %13
br label %44
44: ; preds = %2, %39
%45 = load i8**, i8*** %5
%46 = getelementptr inbounds i8*, i8** %45, i64 1
%47 = load i8*, i8** %46
%48 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %47)
store i32 %48, i32* %12
br label %49
49: ; preds = %44, %2
%50 = load i32, i32* %12
%51 = mul nsw i32 2, %50
%52 = add nsw i32 %51, 1
store i32 %52, i32* %6
%53 = load i32, i32* %6
%54 = mul nsw i32 2, %53
%55 = add nsw i32 %54, 1
store i32 %55, i32* %7
%56 = load i32, i32* %7
%57 = mul nsw i32 2, %56
%58 = add nsw i32 %57, 1
store i32 %58, i32* %8
%59 = load i32, i32* %12
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %59)
%61 = load i32, i32* %13
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %61)
%63 = load i32, i32* %14
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %63)
%65 = load i32, i32* %12
%66 = add nsw i32 %65, 2
%67 = sext i32 %66 to i64
%68 = mul i64 %67, 8
%69 = call i8* @malloc(i64 %68)
%70 = bitcast i8* %69 to double**
store double** %70, double*** %15
%71 = load i32, i32* %12
%72 = add nsw i32 %71, 2
%73 = sext i32 %72 to i64
%74 = mul i64 %73, 8
%75 = call i8* @malloc(i64 %74)
%76 = bitcast i8* %75 to double**
store double** %76, double*** %16
%77 = load i32, i32* %6
%78 = add nsw i32 %77, 2
%79 = sext i32 %78 to i64
%80 = mul i64 %79, 8
%81 = call i8* @malloc(i64 %80)
%82 = bitcast i8* %81 to double**
store double** %82, double*** %17
%83 = load i32, i32* %6
%84 = add nsw i32 %83, 2
%85 = sext i32 %84 to i64
%86 = mul i64 %85, 8
%87 = call i8* @malloc(i64 %86)
%88 = bitcast i8* %87 to double**
store double** %88, double*** %18
%89 = load i32, i32* %7
%90 = add nsw i32 %89, 2
%91 = sext i32 %90 to i64
%92 = mul i64 %91, 8
%93 = call i8* @malloc(i64 %92)
%94 = bitcast i8* %93 to double**
store double** %94, double*** %19
%95 = load i32, i32* %7
%96 = add nsw i32 %95, 2
%97 = sext i32 %96 to i64
%98 = mul i64 %97, 8
%99 = call i8* @malloc(i64 %98)
%100 = bitcast i8* %99 to double**
store double** %100, double*** %20
%101 = load i32, i32* %8
%102 = add nsw i32 %101, 2
%103 = sext i32 %102 to i64
%104 = mul i64 %103, 8
%105 = call i8* @malloc(i64 %104)
%106 = bitcast i8* %105 to double**
store double** %106, double*** %21
%107 = load i32, i32* %8
%108 = add nsw i32 %107, 2
%109 = sext i32 %108 to i64
%110 = mul i64 %109, 8
%111 = call i8* @malloc(i64 %110)
%112 = bitcast i8* %111 to double**
store double** %112, double*** %22
store i32 0, i32* %23
br label %113
113: ; preds = %139, %49
%114 = load i32, i32* %23
%115 = load i32, i32* %12
%116 = add nsw i32 %115, 2
%117 = icmp slt i32 %114, %116
br i1 %117, label %118, label %142
118: ; preds = %113
%119 = load i32, i32* %12
%120 = add nsw i32 %119, 2
%121 = sext i32 %120 to i64
%122 = mul i64 %121, 8
%123 = call i8* @malloc(i64 %122)
%124 = bitcast i8* %123 to double*
%125 = load double**, double*** %15
%126 = load i32, i32* %23
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds double*, double** %125, i64 %127
store double* %124, double** %128
%129 = load i32, i32* %12
%130 = add nsw i32 %129, 2
%131 = sext i32 %130 to i64
%132 = mul i64 %131, 8
%133 = call i8* @malloc(i64 %132)
%134 = bitcast i8* %133 to double*
%135 = load double**, double*** %16
%136 = load i32, i32* %23
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds double*, double** %135, i64 %137
store double* %134, double** %138
br label %139
139: ; preds = %118
%140 = load i32, i32* %23
%141 = add nsw i32 %140, 1
store i32 %141, i32* %23
br label %113
142: ; preds = %113
store i32 0, i32* %24
br label %143
143: ; preds = %169, %142
%144 = load i32, i32* %24
%145 = load i32, i32* %6
%146 = add nsw i32 %145, 2
%147 = icmp slt i32 %144, %146
br i1 %147, label %148, label %172
148: ; preds = %143
%149 = load i32, i32* %6
%150 = add nsw i32 %149, 2
%151 = sext i32 %150 to i64
%152 = mul i64 %151, 8
%153 = call i8* @malloc(i64 %152)
%154 = bitcast i8* %153 to double*
%155 = load double**, double*** %17
%156 = load i32, i32* %24
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds double*, double** %155, i64 %157
store double* %154, double** %158
%159 = load i32, i32* %6
%160 = add nsw i32 %159, 2
%161 = sext i32 %160 to i64
%162 = mul i64 %161, 8
%163 = call i8* @malloc(i64 %162)
%164 = bitcast i8* %163 to double*
%165 = load double**, double*** %18
%166 = load i32, i32* %24
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds double*, double** %165, i64 %167
store double* %164, double** %168
br label %169
169: ; preds = %148
%170 = load i32, i32* %24
%171 = add nsw i32 %170, 1
store i32 %171, i32* %24
br label %143
172: ; preds = %143
store i32 0, i32* %25
br label %173
173: ; preds = %199, %172
%174 = load i32, i32* %25
%175 = load i32, i32* %7
%176 = add nsw i32 %175, 2
%177 = icmp slt i32 %174, %176
br i1 %177, label %178, label %202
178: ; preds = %173
%179 = load i32, i32* %7
%180 = add nsw i32 %179, 2
%181 = sext i32 %180 to i64
%182 = mul i64 %181, 8
%183 = call i8* @malloc(i64 %182)
%184 = bitcast i8* %183 to double*
%185 = load double**, double*** %19
%186 = load i32, i32* %25
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds double*, double** %185, i64 %187
store double* %184, double** %188
%189 = load i32, i32* %7
%190 = add nsw i32 %189, 2
%191 = sext i32 %190 to i64
%192 = mul i64 %191, 8
%193 = call i8* @malloc(i64 %192)
%194 = bitcast i8* %193 to double*
%195 = load double**, double*** %20
%196 = load i32, i32* %25
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds double*, double** %195, i64 %197
store double* %194, double** %198
br label %199
199: ; preds = %178
%200 = load i32, i32* %25
%201 = add nsw i32 %200, 1
store i32 %201, i32* %25
br label %173
202: ; preds = %173
store i32 0, i32* %26
br label %203
203: ; preds = %229, %202
%204 = load i32, i32* %26
%205 = load i32, i32* %8
%206 = add nsw i32 %205, 2
%207 = icmp slt i32 %204, %206
br i1 %207, label %208, label %232
208: ; preds = %203
%209 = load i32, i32* %8
%210 = add nsw i32 %209, 2
%211 = sext i32 %210 to i64
%212 = mul i64 %211, 8
%213 = call i8* @malloc(i64 %212)
%214 = bitcast i8* %213 to double*
%215 = load double**, double*** %21
%216 = load i32, i32* %26
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds double*, double** %215, i64 %217
store double* %214, double** %218
%219 = load i32, i32* %8
%220 = add nsw i32 %219, 2
%221 = sext i32 %220 to i64
%222 = mul i64 %221, 8
%223 = call i8* @malloc(i64 %222)
%224 = bitcast i8* %223 to double*
%225 = load double**, double*** %22
%226 = load i32, i32* %26
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds double*, double** %225, i64 %227
store double* %224, double** %228
br label %229
229: ; preds = %208
%230 = load i32, i32* %26
%231 = add nsw i32 %230, 1
store i32 %231, i32* %26
br label %203
232: ; preds = %203
store i32 0, i32* %27
br label %233
233: ; preds = %299, %232
%234 = load i32, i32* %27
%235 = load i32, i32* %12
%236 = add nsw i32 %235, 2
%237 = icmp slt i32 %234, %236
br i1 %237, label %238, label %302
238: ; preds = %233
%239 = load double**, double*** %15
%240 = getelementptr inbounds double*, double** %239, i64 0
%241 = load double*, double** %240
%242 = load i32, i32* %27
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds double, double* %241, i64 %243
store double 1.000000e+00, double* %244
%245 = load double**, double*** %16
%246 = getelementptr inbounds double*, double** %245, i64 0
%247 = load double*, double** %246
%248 = load i32, i32* %27
%249 = sext i32 %248 to i64
%250 = getelementptr inbounds double, double* %247, i64 %249
store double 1.000000e+00, double* %250
%251 = load double**, double*** %15
%252 = load i32, i32* %12
%253 = add nsw i32 %252, 1
%254 = sext i32 %253 to i64
%255 = getelementptr inbounds double*, double** %251, i64 %254
%256 = load double*, double** %255
%257 = load i32, i32* %27
%258 = sext i32 %257 to i64
%259 = getelementptr inbounds double, double* %256, i64 %258
store double 1.000000e+00, double* %259
%260 = load double**, double*** %16
%261 = load i32, i32* %12
%262 = add nsw i32 %261, 1
%263 = sext i32 %262 to i64
%264 = getelementptr inbounds double*, double** %260, i64 %263
%265 = load double*, double** %264
%266 = load i32, i32* %27
%267 = sext i32 %266 to i64
%268 = getelementptr inbounds double, double* %265, i64 %267
store double 1.000000e+00, double* %268
%269 = load double**, double*** %15
%270 = load i32, i32* %27
%271 = sext i32 %270 to i64
%272 = getelementptr inbounds double*, double** %269, i64 %271
%273 = load double*, double** %272
%274 = getelementptr inbounds double, double* %273, i64 0
store double 1.000000e+00, double* %274
%275 = load double**, double*** %16
%276 = load i32, i32* %27
%277 = sext i32 %276 to i64
%278 = getelementptr inbounds double*, double** %275, i64 %277
%279 = load double*, double** %278
%280 = getelementptr inbounds double, double* %279, i64 0
store double 1.000000e+00, double* %280
%281 = load double**, double*** %15
%282 = load i32, i32* %27
%283 = sext i32 %282 to i64
%284 = getelementptr inbounds double*, double** %281, i64 %283
%285 = load double*, double** %284
%286 = load i32, i32* %12
%287 = add nsw i32 %286, 1
%288 = sext i32 %287 to i64
%289 = getelementptr inbounds double, double* %285, i64 %288
store double 1.000000e+00, double* %289
%290 = load double**, double*** %16
%291 = load i32, i32* %27
%292 = sext i32 %291 to i64
%293 = getelementptr inbounds double*, double** %290, i64 %292
%294 = load double*, double** %293
%295 = load i32, i32* %12
%296 = add nsw i32 %295, 1
%297 = sext i32 %296 to i64
%298 = getelementptr inbounds double, double* %294, i64 %297
store double 1.000000e+00, double* %298
br label %299
299: ; preds = %238
%300 = load i32, i32* %27
%301 = add nsw i32 %300, 1
store i32 %301, i32* %27
br label %233
302: ; preds = %233
store i32 0, i32* %28
br label %303
303: ; preds = %369, %302
%304 = load i32, i32* %28
%305 = load i32, i32* %6
%306 = add nsw i32 %305, 2
%307 = icmp slt i32 %304, %306
br i1 %307, label %308, label %372
308: ; preds = %303
%309 = load double**, double*** %17
%310 = getelementptr inbounds double*, double** %309, i64 0
%311 = load double*, double** %310
%312 = load i32, i32* %28
%313 = sext i32 %312 to i64
%314 = getelementptr inbounds double, double* %311, i64 %313
store double 1.000000e+00, double* %314
%315 = load double**, double*** %18
%316 = getelementptr inbounds double*, double** %315, i64 0
%317 = load double*, double** %316
%318 = load i32, i32* %28
%319 = sext i32 %318 to i64
%320 = getelementptr inbounds double, double* %317, i64 %319
store double 1.000000e+00, double* %320
%321 = load double**, double*** %17
%322 = load i32, i32* %6
%323 = add nsw i32 %322, 1
%324 = sext i32 %323 to i64
%325 = getelementptr inbounds double*, double** %321, i64 %324
%326 = load double*, double** %325
%327 = load i32, i32* %28
%328 = sext i32 %327 to i64
%329 = getelementptr inbounds double, double* %326, i64 %328
store double 1.000000e+00, double* %329
%330 = load double**, double*** %18
%331 = load i32, i32* %6
%332 = add nsw i32 %331, 1
%333 = sext i32 %332 to i64
%334 = getelementptr inbounds double*, double** %330, i64 %333
%335 = load double*, double** %334
%336 = load i32, i32* %28
%337 = sext i32 %336 to i64
%338 = getelementptr inbounds double, double* %335, i64 %337
store double 1.000000e+00, double* %338
%339 = load double**, double*** %17
%340 = load i32, i32* %28
%341 = sext i32 %340 to i64
%342 = getelementptr inbounds double*, double** %339, i64 %341
%343 = load double*, double** %342
%344 = getelementptr inbounds double, double* %343, i64 0
store double 1.000000e+00, double* %344
%345 = load double**, double*** %18
%346 = load i32, i32* %28
%347 = sext i32 %346 to i64
%348 = getelementptr inbounds double*, double** %345, i64 %347
%349 = load double*, double** %348
%350 = getelementptr inbounds double, double* %349, i64 0
store double 1.000000e+00, double* %350
%351 = load double**, double*** %17
%352 = load i32, i32* %28
%353 = sext i32 %352 to i64
%354 = getelementptr inbounds double*, double** %351, i64 %353
%355 = load double*, double** %354
%356 = load i32, i32* %6
%357 = add nsw i32 %356, 1
%358 = sext i32 %357 to i64
%359 = getelementptr inbounds double, double* %355, i64 %358
store double 1.000000e+00, double* %359
%360 = load double**, double*** %18
%361 = load i32, i32* %28
%362 = sext i32 %361 to i64
%363 = getelementptr inbounds double*, double** %360, i64 %362
%364 = load double*, double** %363
%365 = load i32, i32* %6
%366 = add nsw i32 %365, 1
%367 = sext i32 %366 to i64
%368 = getelementptr inbounds double, double* %364, i64 %367
store double 1.000000e+00, double* %368
br label %369
369: ; preds = %308
%370 = load i32, i32* %28
%371 = add nsw i32 %370, 1
store i32 %371, i32* %28
br label %303
372: ; preds = %303
store i32 0, i32* %29
br label %373
373: ; preds = %439, %372
%374 = load i32, i32* %29
%375 = load i32, i32* %7
%376 = add nsw i32 %375, 2
%377 = icmp slt i32 %374, %376
br i1 %377, label %378, label %442
378: ; preds = %373
%379 = load double**, double*** %19
%380 = getelementptr inbounds double*, double** %379, i64 0
%381 = load double*, double** %380
%382 = load i32, i32* %29
%383 = sext i32 %382 to i64
%384 = getelementptr inbounds double, double* %381, i64 %383
store double 1.000000e+00, double* %384
%385 = load double**, double*** %20
%386 = getelementptr inbounds double*, double** %385, i64 0
%387 = load double*, double** %386
%388 = load i32, i32* %29
%389 = sext i32 %388 to i64
%390 = getelementptr inbounds double, double* %387, i64 %389
store double 1.000000e+00, double* %390
%391 = load double**, double*** %19
%392 = load i32, i32* %7
%393 = add nsw i32 %392, 1
%394 = sext i32 %393 to i64
%395 = getelementptr inbounds double*, double** %391, i64 %394
%396 = load double*, double** %395
%397 = load i32, i32* %29
%398 = sext i32 %397 to i64
%399 = getelementptr inbounds double, double* %396, i64 %398
store double 1.000000e+00, double* %399
%400 = load double**, double*** %20
%401 = load i32, i32* %7
%402 = add nsw i32 %401, 1
%403 = sext i32 %402 to i64
%404 = getelementptr inbounds double*, double** %400, i64 %403
%405 = load double*, double** %404
%406 = load i32, i32* %29
%407 = sext i32 %406 to i64
%408 = getelementptr inbounds double, double* %405, i64 %407
store double 1.000000e+00, double* %408
%409 = load double**, double*** %19
%410 = load i32, i32* %29
%411 = sext i32 %410 to i64
%412 = getelementptr inbounds double*, double** %409, i64 %411
%413 = load double*, double** %412
%414 = getelementptr inbounds double, double* %413, i64 0
store double 1.000000e+00, double* %414
%415 = load double**, double*** %20
%416 = load i32, i32* %29
%417 = sext i32 %416 to i64
%418 = getelementptr inbounds double*, double** %415, i64 %417
%419 = load double*, double** %418
%420 = getelementptr inbounds double, double* %419, i64 0
store double 1.000000e+00, double* %420
%421 = load double**, double*** %19
%422 = load i32, i32* %29
%423 = sext i32 %422 to i64
%424 = getelementptr inbounds double*, double** %421, i64 %423
%425 = load double*, double** %424
%426 = load i32, i32* %7
%427 = add nsw i32 %426, 1
%428 = sext i32 %427 to i64
%429 = getelementptr inbounds double, double* %425, i64 %428
store double 1.000000e+00, double* %429
%430 = load double**, double*** %20
%431 = load i32, i32* %29
%432 = sext i32 %431 to i64
%433 = getelementptr inbounds double*, double** %430, i64 %432
%434 = load double*, double** %433
%435 = load i32, i32* %7
%436 = add nsw i32 %435, 1
%437 = sext i32 %436 to i64
%438 = getelementptr inbounds double, double* %434, i64 %437
store double 1.000000e+00, double* %438
br label %439
439: ; preds = %378
%440 = load i32, i32* %29
%441 = add nsw i32 %440, 1
store i32 %441, i32* %29
br label %373
442: ; preds = %373
store i32 0, i32* %30
br label %443
443: ; preds = %509, %442
%444 = load i32, i32* %30
%445 = load i32, i32* %8
%446 = add nsw i32 %445, 2
%447 = icmp slt i32 %444, %446
br i1 %447, label %448, label %512
448: ; preds = %443
%449 = load double**, double*** %21
%450 = getelementptr inbounds double*, double** %449, i64 0
%451 = load double*, double** %450
%452 = load i32, i32* %30
%453 = sext i32 %452 to i64
%454 = getelementptr inbounds double, double* %451, i64 %453
store double 1.000000e+00, double* %454
%455 = load double**, double*** %22
%456 = getelementptr inbounds double*, double** %455, i64 0
%457 = load double*, double** %456
%458 = load i32, i32* %30
%459 = sext i32 %458 to i64
%460 = getelementptr inbounds double, double* %457, i64 %459
store double 1.000000e+00, double* %460
%461 = load double**, double*** %21
%462 = load i32, i32* %8
%463 = add nsw i32 %462, 1
%464 = sext i32 %463 to i64
%465 = getelementptr inbounds double*, double** %461, i64 %464
%466 = load double*, double** %465
%467 = load i32, i32* %30
%468 = sext i32 %467 to i64
%469 = getelementptr inbounds double, double* %466, i64 %468
store double 1.000000e+00, double* %469
%470 = load double**, double*** %22
%471 = load i32, i32* %8
%472 = add nsw i32 %471, 1
%473 = sext i32 %472 to i64
%474 = getelementptr inbounds double*, double** %470, i64 %473
%475 = load double*, double** %474
%476 = load i32, i32* %30
%477 = sext i32 %476 to i64
%478 = getelementptr inbounds double, double* %475, i64 %477
store double 1.000000e+00, double* %478
%479 = load double**, double*** %21
%480 = load i32, i32* %30
%481 = sext i32 %480 to i64
%482 = getelementptr inbounds double*, double** %479, i64 %481
%483 = load double*, double** %482
%484 = getelementptr inbounds double, double* %483, i64 0
store double 1.000000e+00, double* %484
%485 = load double**, double*** %22
%486 = load i32, i32* %30
%487 = sext i32 %486 to i64
%488 = getelementptr inbounds double*, double** %485, i64 %487
%489 = load double*, double** %488
%490 = getelementptr inbounds double, double* %489, i64 0
store double 1.000000e+00, double* %490
%491 = load double**, double*** %21
%492 = load i32, i32* %30
%493 = sext i32 %492 to i64
%494 = getelementptr inbounds double*, double** %491, i64 %493
%495 = load double*, double** %494
%496 = load i32, i32* %8
%497 = add nsw i32 %496, 1
%498 = sext i32 %497 to i64
%499 = getelementptr inbounds double, double* %495, i64 %498
store double 1.000000e+00, double* %499
%500 = load double**, double*** %22
%501 = load i32, i32* %30
%502 = sext i32 %501 to i64
%503 = getelementptr inbounds double*, double** %500, i64 %502
%504 = load double*, double** %503
%505 = load i32, i32* %8
%506 = add nsw i32 %505, 1
%507 = sext i32 %506 to i64
%508 = getelementptr inbounds double, double* %504, i64 %507
store double 1.000000e+00, double* %508
br label %509
509: ; preds = %448
%510 = load i32, i32* %30
%511 = add nsw i32 %510, 1
store i32 %511, i32* %30
br label %443
512: ; preds = %443
store i32 1, i32* %31
br label %513
513: ; preds = %537, %512
%514 = load i32, i32* %31
%515 = load i32, i32* %8
%516 = add nsw i32 %515, 1
%517 = icmp slt i32 %514, %516
br i1 %517, label %518, label %540
518: ; preds = %513
store i32 1, i32* %32
br label %519
519: ; preds = %533, %518
%520 = load i32, i32* %32
%521 = load i32, i32* %8
%522 = add nsw i32 %521, 1
%523 = icmp slt i32 %520, %522
br i1 %523, label %524, label %536
524: ; preds = %519
%525 = load double**, double*** %21
%526 = load i32, i32* %31
%527 = sext i32 %526 to i64
%528 = getelementptr inbounds double*, double** %525, i64 %527
%529 = load double*, double** %528
%530 = load i32, i32* %32
%531 = sext i32 %530 to i64
%532 = getelementptr inbounds double, double* %529, i64 %531
store double 0.000000e+00, double* %532
br label %533
533: ; preds = %524
%534 = load i32, i32* %32
%535 = add nsw i32 %534, 1
store i32 %535, i32* %32
br label %519
536: ; preds = %519
br label %537
537: ; preds = %536
%538 = load i32, i32* %31
%539 = add nsw i32 %538, 1
store i32 %539, i32* %31
br label %513
540: ; preds = %513
%541 = call i32 (...) @omp_get_wtime()
%542 = sitofp i32 %541 to double
%543 = load double, double* %11
%544 = fsub double %543, %542
store double %544, double* %11
%545 = load double**, double*** %21
%546 = load double**, double*** %22
%547 = load i32, i32* %8
%548 = load i32, i32* %14
%549 = call i32 (double**, double**, i32, i32, ...) bitcast (i32 (...)* @jacobi to i32 (double**, double**, i32, i32, ...)*)(double** %545, double** %546, i32 %547, i32 %548)
%550 = load double**, double*** %21
%551 = load double**, double*** %19
%552 = load i32, i32* %7
%553 = call i32 (double**, double**, i32, ...) bitcast (i32 (...)* @restriction to i32 (double**, double**, i32, ...)*)(double** %550, double** %551, i32 %552)
%554 = load double**, double*** %19
%555 = load double**, double*** %20
%556 = load i32, i32* %7
%557 = load i32, i32* %14
%558 = call i32 (double**, double**, i32, i32, ...) bitcast (i32 (...)* @jacobi to i32 (double**, double**, i32, i32, ...)*)(double** %554, double** %555, i32 %556, i32 %557)
%559 = load double**, double*** %19
%560 = load double**, double*** %17
%561 = load i32, i32* %6
%562 = call i32 (double**, double**, i32, ...) bitcast (i32 (...)* @restriction to i32 (double**, double**, i32, ...)*)(double** %559, double** %560, i32 %561)
%563 = load double**, double*** %17
%564 = load double**, double*** %18
%565 = load i32, i32* %6
%566 = load i32, i32* %14
%567 = call i32 (double**, double**, i32, i32, ...) bitcast (i32 (...)* @jacobi to i32 (double**, double**, i32, i32, ...)*)(double** %563, double** %564, i32 %565, i32 %566)
%568 = load double**, double*** %17
%569 = load double**, double*** %15
%570 = load i32, i32* %12
%571 = call i32 (double**, double**, i32, ...) bitcast (i32 (...)* @restriction to i32 (double**, double**, i32, ...)*)(double** %568, double** %569, i32 %570)
%572 = load double**, double*** %15
%573 = load double**, double*** %16
%574 = load i32, i32* %12
%575 = load i32, i32* %13
%576 = call i32 (double**, double**, i32, i32, ...) bitcast (i32 (...)* @jacobi to i32 (double**, double**, i32, i32, ...)*)(double** %572, double** %573, i32 %574, i32 %575)
%577 = load double**, double*** %15
%578 = load double**, double*** %17
%579 = load i32, i32* %12
%580 = load i32, i32* %6
%581 = call i32 (double**, double**, i32, i32, ...) bitcast (i32 (...)* @interpolation to i32 (double**, double**, i32, i32, ...)*)(double** %577, double** %578, i32 %579, i32 %580)
%582 = load double**, double*** %17
%583 = load double**, double*** %18
%584 = load i32, i32* %6
%585 = load i32, i32* %14
%586 = call i32 (double**, double**, i32, i32, ...) bitcast (i32 (...)* @jacobi to i32 (double**, double**, i32, i32, ...)*)(double** %582, double** %583, i32 %584, i32 %585)
%587 = load double**, double*** %17
%588 = load double**, double*** %19
%589 = load i32, i32* %6
%590 = load i32, i32* %7
%591 = call i32 (double**, double**, i32, i32, ...) bitcast (i32 (...)* @interpolation to i32 (double**, double**, i32, i32, ...)*)(double** %587, double** %588, i32 %589, i32 %590)
%592 = load double**, double*** %19
%593 = load double**, double*** %20
%594 = load i32, i32* %7
%595 = load i32, i32* %14
%596 = call i32 (double**, double**, i32, i32, ...) bitcast (i32 (...)* @jacobi to i32 (double**, double**, i32, i32, ...)*)(double** %592, double** %593, i32 %594, i32 %595)
%597 = load double**, double*** %19
%598 = load double**, double*** %21
%599 = load i32, i32* %7
%600 = load i32, i32* %8
%601 = call i32 (double**, double**, i32, i32, ...) bitcast (i32 (...)* @interpolation to i32 (double**, double**, i32, i32, ...)*)(double** %597, double** %598, i32 %599, i32 %600)
%602 = load double**, double*** %21
%603 = load double**, double*** %22
%604 = load i32, i32* %8
%605 = load i32, i32* %14
%606 = call i32 (double**, double**, i32, i32, ...) bitcast (i32 (...)* @jacobi to i32 (double**, double**, i32, i32, ...)*)(double** %602, double** %603, i32 %604, i32 %605)
%607 = call i32 (...) @omp_get_wtime()
%608 = sitofp i32 %607 to double
%609 = load double, double* %11
%610 = fadd double %609, %608
store double %610, double* %11
%611 = load double**, double*** %21
%612 = load i32, i32* %8
%613 = call i32 (double**, i32, ...) bitcast (i32 (...)* @gridprint to i32 (double**, i32, ...)*)(double** %611, i32 %612)
%614 = load double**, double*** %21
%615 = load i32, i32* %8
%616 = add nsw i32 %615, 1
%617 = sdiv i32 %616, 2
%618 = sext i32 %617 to i64
%619 = getelementptr inbounds double*, double** %614, i64 %618
%620 = load double*, double** %619
%621 = load i32, i32* %8
%622 = add nsw i32 %621, 1
%623 = sdiv i32 %622, 2
%624 = sext i32 %623 to i64
%625 = getelementptr inbounds double, double* %620, i64 %624
%626 = load double, double* %625
%627 = fsub double 1.000000e+00, %626
%628 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), double %627)
%629 = load double, double* %11
%630 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), double %629)
unreachable
}

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