#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 int y;
typedef int x;
typedef int j;
typedef int i;

/* Variables and functions */
int EXIT_SUCCESS;
int atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ free(float *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
double seconds();
int main(int argc, char **argv) {
  int x_max, y_max, z_max;
  int i, j, k, t;
  int x, y, z;
  double t1, t2, nFlops;
  float *__restrict__ u_0_0 = NULL;
  float *__restrict__ u_0_1 = NULL;
  float alpha, beta;
  const int T_MAX = 5;
  if (argc != 4) {
    printf("Wrong number of parameters.\n", argv[0]);
    exit(-1);
  }
  x_max = atoi(argv[1]);
  y_max = atoi(argv[2]);
  z_max = atoi(argv[3]);
  u_0_0 = (float *)malloc(x_max * y_max * z_max * sizeof(float));
  u_0_1 = (float *)malloc(x_max * y_max * z_max * sizeof(float));
  alpha = 1.f / (float)x_max;
  beta = 2.f / (float)y_max;
#pragma omp parallel for private(k, j, i)
  for (k = 0; k < z_max; k++) {
    for (j = 0; j < y_max; j++) {
      for (i = 0; i < x_max; i++) {
        u_0_0[((i) + x_max * ((j) + y_max * (k)))] =
            1. + i * 0.1 + j * 0.01 + k * 0.001;
        u_0_1[((i) + x_max * ((j) + y_max * (k)))] =
            2. + i * 0.1 + j * 0.01 + k * 0.001;
      }
    }
  }
  t1 = seconds();
  for (t = 0; t < T_MAX; t++) {
#pragma omp parallel for private(z, y, x)
    for (z = 1; z < z_max - 1; z++) {
      for (y = 1; y < y_max - 1; y++) {
        for (x = 1; x < x_max - 1; x++) {
          u_0_1[((x) + x_max * ((y) + y_max * (z)))] =
              alpha * u_0_0[((x) + x_max * ((y) + y_max * (z)))] +
              beta * (u_0_0[((x + 1) + x_max * ((y) + y_max * (z)))] +
                      u_0_0[((x - 1) + x_max * ((y) + y_max * (z)))] +
                      u_0_0[((x) + x_max * ((y + 1) + y_max * (z)))] +
                      u_0_0[((x) + x_max * ((y - 1) + y_max * (z)))] +
                      u_0_0[((x) + x_max * ((y) + y_max * (z + 1)))] +
                      u_0_0[((x) + x_max * ((y) + y_max * (z - 1)))]);
        }
      }
    }
    float *tmp = u_0_0;
    u_0_0 = u_0_1;
    u_0_1 = tmp;
  }
  t2 = seconds();
  nFlops = (double)(x_max - 2) * (double)(y_max - 2) * (double)(z_max - 2) *
           T_MAX * 8.0;
  printf("FLOPs in stencil code:      %e\n", nFlops);
  printf("Time spent in stencil code: %f\n", t2 - t1);
  printf("Performance in GFlop/s:     %f\n", nFlops / (1e9 * (t2 - t1)));
  free(u_0_0);
  free(u_0_1);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x58(%rbp)
movq   $0x0,-0x60(%rbp)
movl   $0x5,-0x6c(%rbp)
cmpl   $0x4,-0x8(%rbp)
je     11b9 <main+0x59>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xea0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1070 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1070 <atoi@plt>
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1070 <atoi@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x14(%rbp),%eax
imul   -0x18(%rbp),%eax
imul   -0x1c(%rbp),%eax
cltq
shl    $0x2,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x58(%rbp)
mov    -0x14(%rbp),%eax
imul   -0x18(%rbp),%eax
imul   -0x1c(%rbp),%eax
cltq
shl    $0x2,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x60(%rbp)
cvtsi2ssl -0x14(%rbp),%xmm1
movss  0xdd6(%rip),%xmm0
divss  %xmm1,%xmm0
movss  %xmm0,-0x64(%rbp)
cvtsi2ssl -0x18(%rbp),%xmm1
movss  0xdbc(%rip),%xmm0
divss  %xmm1,%xmm0
movss  %xmm0,-0x68(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1396 <main+0x236>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1383 <main+0x223>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1370 <main+0x210>
cvtsi2sdl -0x20(%rbp),%xmm0
movsd  0xd9d(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xda1(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsi2sdl -0x24(%rbp),%xmm1
movsd  0xd78(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
cvtsi2sdl -0x28(%rbp),%xmm0
movsd  0xd5b(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x58(%rbp),%rax
mov    -0x20(%rbp),%ecx
mov    -0x14(%rbp),%edx
mov    -0x24(%rbp),%esi
mov    -0x18(%rbp),%edi
imul   -0x28(%rbp),%edi
add    %edi,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
cvtsi2sdl -0x20(%rbp),%xmm0
movsd  0xd2f(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd2b(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsi2sdl -0x24(%rbp),%xmm1
movsd  0xd0a(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
cvtsi2sdl -0x28(%rbp),%xmm0
movsd  0xced(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x60(%rbp),%rax
mov    -0x20(%rbp),%ecx
mov    -0x14(%rbp),%edx
mov    -0x24(%rbp),%esi
mov    -0x18(%rbp),%edi
imul   -0x28(%rbp),%edi
add    %edi,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    127a <main+0x11a>
jmp    1375 <main+0x215>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1267 <main+0x107>
jmp    1388 <main+0x228>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1254 <main+0xf4>
mov    $0x0,%al
call   1040 <seconds@plt>
movsd  %xmm0,-0x40(%rbp)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x5,-0x2c(%rbp)
jge    159f <main+0x43f>
movl   $0x1,-0x38(%rbp)
mov    -0x38(%rbp),%eax
mov    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1579 <main+0x419>
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1566 <main+0x406>
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1553 <main+0x3f3>
movss  -0x64(%rbp),%xmm0
mov    -0x58(%rbp),%rax
mov    -0x30(%rbp),%ecx
mov    -0x14(%rbp),%edx
mov    -0x34(%rbp),%esi
mov    -0x18(%rbp),%edi
imul   -0x38(%rbp),%edi
add    %edi,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x68(%rbp),%xmm1
mov    -0x58(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    $0x1,%ecx
mov    -0x14(%rbp),%edx
mov    -0x34(%rbp),%esi
mov    -0x18(%rbp),%edi
imul   -0x38(%rbp),%edi
add    %edi,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm3
mov    -0x58(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    -0x14(%rbp),%edx
mov    -0x34(%rbp),%esi
mov    -0x18(%rbp),%edi
imul   -0x38(%rbp),%edi
add    %edi,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
addss  (%rax,%rcx,4),%xmm3
mov    -0x58(%rbp),%rax
mov    -0x30(%rbp),%ecx
mov    -0x14(%rbp),%edx
mov    -0x34(%rbp),%esi
add    $0x1,%esi
mov    -0x18(%rbp),%edi
imul   -0x38(%rbp),%edi
add    %edi,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
addss  (%rax,%rcx,4),%xmm3
mov    -0x58(%rbp),%rax
mov    -0x30(%rbp),%ecx
mov    -0x14(%rbp),%edx
mov    -0x34(%rbp),%esi
sub    $0x1,%esi
mov    -0x18(%rbp),%edi
imul   -0x38(%rbp),%edi
add    %edi,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
addss  (%rax,%rcx,4),%xmm3
mov    -0x58(%rbp),%rax
mov    -0x30(%rbp),%ecx
mov    -0x14(%rbp),%edx
mov    -0x34(%rbp),%esi
mov    -0x18(%rbp),%edi
mov    -0x38(%rbp),%r8d
add    $0x1,%r8d
imul   %r8d,%edi
add    %edi,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
addss  (%rax,%rcx,4),%xmm3
mov    -0x58(%rbp),%rax
mov    -0x30(%rbp),%ecx
mov    -0x14(%rbp),%edx
mov    -0x34(%rbp),%esi
mov    -0x18(%rbp),%edi
mov    -0x38(%rbp),%r8d
sub    $0x1,%r8d
imul   %r8d,%edi
add    %edi,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
addss  (%rax,%rcx,4),%xmm3
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x60(%rbp),%rax
mov    -0x30(%rbp),%ecx
mov    -0x14(%rbp),%edx
mov    -0x34(%rbp),%esi
mov    -0x18(%rbp),%edi
imul   -0x38(%rbp),%edi
add    %edi,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    13ea <main+0x28a>
jmp    1558 <main+0x3f8>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    13d2 <main+0x272>
jmp    156b <main+0x40b>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    13ba <main+0x25a>
mov    -0x58(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x78(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    13a9 <main+0x249>
mov    $0x0,%al
call   1040 <seconds@plt>
movsd  %xmm0,-0x48(%rbp)
mov    -0x14(%rbp),%eax
sub    $0x2,%eax
cvtsi2sd %eax,%xmm0
mov    -0x18(%rbp),%eax
sub    $0x2,%eax
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x1c(%rbp),%eax
sub    $0x2,%eax
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xa3f(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xa2b(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
lea    0xa6b(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  -0x48(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
lea    0xa73(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  -0x50(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
subsd  -0x40(%rbp),%xmm2
movsd  0x9d8(%rip),%xmm1
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
lea    0xa66(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
mov    0x2981(%rip),%rax
mov    (%rax),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
cmp    $0x4,%edi
jne    18c2 <main+0x752>
mov    %rsi,%rbp
mov    0x8(%rsi),%rdi
call   1080 <atoi@plt>
mov    %eax,%r12d
mov    0x10(%rbp),%rdi
call   1080 <atoi@plt>
mov    %eax,%r15d
mov    0x18(%rbp),%rdi
call   1080 <atoi@plt>
mov    %eax,%ebx
mov    %r12d,%ebp
imul   %r15d,%ebp
imul   %eax,%ebp
shl    $0x2,%ebp
mov    %ebp,%edi
call   1070 <malloc@plt>
mov    %rax,%r14
mov    %ebp,%edi
mov    %rbx,%rbp
call   1070 <malloc@plt>
mov    %r12,%rbx
cvtsi2ss %ebx,%xmm2
cvtsi2ss %r15d,%xmm3
mov    %rax,%r13
movss  0xe18(%rip),%xmm0
movss  0xe14(%rip),%xmm1
test   %ebp,%ebp
mov    %r14,0x10(%rsp)
mov    %r12,0x80(%rsp)
mov    %r15,0x70(%rsp)
mov    %rbp,0x50(%rsp)
jle    156c <main+0x3fc>
movss  %xmm3,0xc(%rsp)
movss  %xmm2,0x28(%rsp)
movslq %ebx,%rax
movslq %r15d,%rcx
mov    %ebp,%edx
mov    %rdx,0x68(%rsp)
mov    %r15d,%r15d
mov    %ebx,%edx
mov    %rcx,0xa8(%rsp)
imul   %rax,%rcx
mov    %edx,%esi
and    $0xfffffffc,%esi
mov    %rsi,0x78(%rsp)
mov    %rcx,0x58(%rsp)
lea    0x0(,%rcx,4),%rcx
mov    %rcx,0x60(%rsp)
mov    %rax,0x30(%rsp)
lea    0x0(,%rax,4),%r12
lea    0x0(,%rdx,4),%rax
and    $0xfffffffffffffff0,%rax
xor    %ecx,%ecx
mov    %rcx,0x20(%rsp)
movsd  0xe03(%rip),%xmm3
movsd  0xe03(%rip),%xmm4
movsd  0xe03(%rip),%xmm5
movsd  0xe03(%rip),%xmm6
movsd  0xe02(%rip),%xmm9
movapd 0xd79(%rip),%xmm11
movapd 0xd80(%rip),%xmm10
movapd 0xda7(%rip),%xmm13
mov    %r14,0x18(%rsp)
mov    %r13,0x38(%rsp)
mov    %r14,%rcx
jmp    12fb <main+0x18b>
nopl   0x0(%rax,%rax,1)
mov    0x20(%rsp),%rdi
add    $0x1,%rdi
mov    0x60(%rsp),%rsi
add    %rsi,0x38(%rsp)
add    %rsi,0x18(%rsp)
mov    %rdi,%rsi
mov    %rdi,0x20(%rsp)
cmp    0x68(%rsp),%rdi
je     153f <main+0x3cf>
cmpl   $0x0,0x70(%rsp)
jle    12d0 <main+0x160>
mov    0x58(%rsp),%r9
mov    0x20(%rsp),%rsi
imul   %rsi,%r9
lea    (%r9,%rdx,1),%r10
xorps  %xmm0,%xmm0
cvtsi2sd %esi,%xmm0
movapd %xmm0,0x40(%rsp)
unpcklpd %xmm0,%xmm0
movapd %xmm0,0x90(%rsp)
mov    0x18(%rsp),%rdi
mov    0x38(%rsp),%r8
xor    %r11d,%r11d
jmp    134f <main+0x1df>
nopl   (%rax)
add    $0x1,%r11
add    %r12,%r8
add    %r12,%rdi
cmp    %r15,%r11
je     12d0 <main+0x160>
test   %ebx,%ebx
jle    1340 <main+0x1d0>
xorps  %xmm8,%xmm8
cvtsi2sd %r11d,%xmm8
cmp    $0x4,%ebx
jae    1370 <main+0x200>
xor    %ebp,%ebp
jmp    14e0 <main+0x370>
nopl   0x0(%rax,%rax,1)
mov    %r11,%rbx
imul   0x30(%rsp),%rbx
lea    (%r9,%rbx,1),%rbp
add    %r10,%rbx
lea    (%rcx,%rbp,4),%r14
lea    0x0(,%rbx,4),%rsi
add    %r13,%rsi
cmp    %rsi,%r14
jae    13b7 <main+0x247>
lea    (%rcx,%rbx,4),%rbx
lea    0x0(,%rbp,4),%rsi
add    %r13,%rsi
cmp    %rbx,%rsi
jae    13b7 <main+0x247>
xor    %ebp,%ebp
mov    0x80(%rsp),%rbx
jmp    14e0 <main+0x370>
movapd %xmm8,%xmm5
unpcklpd %xmm8,%xmm5
xor    %ebp,%ebp
movapd %xmm10,%xmm15
movdqa 0xc3f(%rip),%xmm10
movapd 0x90(%rsp),%xmm6
nopw   0x0(%rax,%rax,1)
cvtdq2pd %xmm10,%xmm14
pshufd $0xee,%xmm10,%xmm7
cvtdq2pd %xmm7,%xmm12
mulpd  %xmm11,%xmm12
movapd %xmm12,%xmm7
addpd  %xmm15,%xmm7
mulpd  %xmm11,%xmm14
movapd %xmm11,%xmm0
movapd %xmm14,%xmm11
addpd  %xmm15,%xmm11
movapd %xmm5,%xmm9
mulpd  0xc1f(%rip),%xmm9
addpd  %xmm9,%xmm11
addpd  %xmm9,%xmm7
movapd %xmm6,%xmm1
mulpd  0xc19(%rip),%xmm1
addpd  %xmm1,%xmm11
cvtpd2ps %xmm11,%xmm2
movapd %xmm0,%xmm11
addpd  %xmm1,%xmm7
cvtpd2ps %xmm7,%xmm7
unpcklpd %xmm7,%xmm2
movupd %xmm2,(%rdi,%rbp,1)
addpd  %xmm13,%xmm12
addpd  %xmm13,%xmm14
addpd  %xmm9,%xmm14
addpd  %xmm9,%xmm12
addpd  %xmm1,%xmm14
cvtpd2ps %xmm14,%xmm2
addpd  %xmm1,%xmm12
cvtpd2ps %xmm12,%xmm1
unpcklpd %xmm1,%xmm2
movupd %xmm2,(%r8,%rbp,1)
paddd  0xbde(%rip),%xmm10
add    $0x10,%rbp
cmp    %rbp,%rax
jne    13e0 <main+0x270>
mov    0x78(%rsp),%rcx
mov    %rcx,%rbp
cmp    %rdx,%rcx
mov    0x10(%rsp),%rcx
mov    0x80(%rsp),%rbx
movsd  0xbd1(%rip),%xmm5
movsd  0xbd1(%rip),%xmm6
movsd  0xbd0(%rip),%xmm9
movapd %xmm15,%xmm10
je     1340 <main+0x1d0>
nopl   0x0(%rax,%rax,1)
xorps  %xmm1,%xmm1
cvtsi2sd %ebp,%xmm1
mulsd  %xmm3,%xmm1
movapd %xmm1,%xmm2
addsd  %xmm4,%xmm2
movapd %xmm8,%xmm7
mulsd  %xmm5,%xmm7
addsd  %xmm7,%xmm2
movapd 0x40(%rsp),%xmm0
mulsd  %xmm6,%xmm0
addsd  %xmm0,%xmm2
cvtsd2ss %xmm2,%xmm2
addsd  %xmm9,%xmm1
addsd  %xmm7,%xmm1
addsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  %xmm2,(%rdi,%rbp,4)
movss  %xmm0,(%r8,%rbp,4)
add    $0x1,%rbp
cmp    %rbp,%rdx
jne    14e0 <main+0x370>
jmp    1340 <main+0x1d0>
mov    0x70(%rsp),%r15
mov    0x50(%rsp),%rbp
movss  0xaaf(%rip),%xmm0
movss  0xaab(%rip),%xmm1
mov    0x30(%rsp),%r12
movss  0x28(%rsp),%xmm2
movss  0xc(%rsp),%xmm3
jmp    157a <main+0x40a>
movslq %ebx,%r12
movslq %r15d,%rax
mov    %rax,0xa8(%rsp)
divss  %xmm2,%xmm0
movss  %xmm0,0xc(%rsp)
divss  %xmm3,%xmm1
movss  %xmm1,0x8c(%rsp)
xor    %eax,%eax
mov    %rax,0x28(%rsp)
xor    %eax,%eax
call   1050 <seconds@plt>
movss  0x8c(%rsp),%xmm3
movss  0xc(%rsp),%xmm2
movsd  %xmm0,0xb0(%rsp)
lea    -0x1(%rbp),%edx
lea    -0x1(%r15),%eax
mov    %rax,0x78(%rsp)
lea    -0x1(%rbx),%eax
mov    %r12,%rcx
shl    $0x20,%rcx
mov    %rcx,0x90(%rsp)
lea    0x0(,%r12,4),%rcx
mov    %rcx,0x20(%rsp)
lea    -0x4(,%rax,4),%rdi
ff
mov    %rbx,%rsi
mov    %r12,0x30(%rsp)
mov    %rdx,0x58(%rsp)
jmp    1619 <main+0x4a9>
nopl   0x0(%rax)
mov    0x28(%rsp),%rax
add    $0x1,%eax
mov    %rbp,%r13
mov    %rax,0x28(%rsp)
cmp    $0x5,%eax
je     17e5 <main+0x675>
mov    0x10(%rsp),%rbp
mov    %r13,0x10(%rsp)
cmpl   $0x3,0x50(%rsp)
jl     1600 <main+0x490>
lea    0x4(%rbp),%rax
mov    %rax,0x18(%rsp)
lea    0x8(%rbp),%rax
mov    %rax,0x68(%rsp)
mov    0x10(%rsp),%rax
add    $0x4,%rax
mov    %rax,0x60(%rsp)
mov    $0x1,%ecx
jmp    167c <main+0x50c>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x38(%rsp),%rax
mov    %rax,%rcx
mov    0x70(%rsp),%r15
mov    0x30(%rsp),%r12
mov    0x58(%rsp),%rdx
cmp    %rdx,%rax
je     1600 <main+0x490>
cmp    $0x2,%r15d
jle    17d0 <main+0x660>
mov    %rcx,%rdx
mov    0xa8(%rsp),%rax
imul   %rax,%rdx
lea    0x1(%rcx),%rbx
mov    %rbx,0x38(%rsp)
imul   %rax,%rbx
add    $0xffffffffffffffff,%rcx
imul   %rax,%rcx
mov    %esi,%eax
imul   %edx,%eax
mov    %eax,0x40(%rsp)
lea    0x2(%rdx),%r10d
add    $0x1,%rdx
mov    0x90(%rsp),%rax
imul   %rdx,%rax
add    $0x1,%rcx
imul   %r12,%rcx
mov    0x18(%rsp),%r8
lea    (%r8,%rcx,4),%r11
add    $0x1,%rbx
imul   %r12,%rbx
lea    (%r8,%rbx,4),%r14
imul   %esi,%r10d
imul   %r12,%rdx
mov    0x68(%rsp),%rcx
lea    (%rcx,%rdx,4),%r8
mov    0x60(%rsp),%rcx
lea    (%rcx,%rdx,4),%r13
mov    $0x1,%r9d
jmp    1747 <main+0x5d7>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%r9
add    0x90(%rsp),%rax
mov    0x20(%rsp),%rcx
add    %rcx,%r11
add    %rcx,%r14
mov    0x80(%rsp),%rsi
add    %esi,0x40(%rsp)
add    %esi,%r10d
add    %rcx,%r8
add    %rcx,%r13
cmp    0x78(%rsp),%r9
je     1660 <main+0x4f0>
cmp    $0x3,%esi
movabs $0x100000000,%r15
jl     1710 <main+0x5a0>
movslq 0x40(%rsp),%rcx
mov    0x18(%rsp),%rsi
lea    (%rsi,%rcx,4),%rcx
movslq %r10d,%rdx
lea    (%rsi,%rdx,4),%r12
xor    %ebx,%ebx
mov    %rax,%rsi
movss  (%r8,%rbx,1),%xmm0
mov    %rsi,%rdx
sar    $0x1e,%rdx
addss  0x0(%rbp,%rdx,1),%xmm0
addss  (%r12,%rbx,1),%xmm0
addss  (%rcx,%rbx,1),%xmm0
addss  (%r14,%rbx,1),%xmm0
addss  (%r11,%rbx,1),%xmm0
mulss  %xmm3,%xmm0
movss  -0x4(%r8,%rbx,1),%xmm1
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x0(%r13,%rbx,1)
add    %r15,%rsi
add    $0x4,%rbx
cmp    %rbx,%rdi
jne    1770 <main+0x600>
jmp    1710 <main+0x5a0>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%rcx
mov    %rcx,%rax
cmp    %rdx,%rax
jne    167c <main+0x50c>
jmp    1600 <main+0x490>
xor    %eax,%eax
mov    %rsi,%rbx
call   1050 <seconds@plt>
movsd  %xmm0,0x40(%rsp)
add    $0xfffffffe,%ebx
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
add    $0xfffffffe,%r15d
xorps  %xmm1,%xmm1
cvtsi2sd %r15d,%xmm1
mulsd  %xmm0,%xmm1
mov    0x50(%rsp),%rax
add    $0xfffffffe,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  %xmm1,%xmm0
mulsd  0x87e(%rip),%xmm0
mulsd  0x87e(%rip),%xmm0
movsd  %xmm0,0x90(%rsp)
lea    0x87e(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x40(%rsp),%xmm0
subsd  0xb0(%rsp),%xmm0
movsd  %xmm0,0x40(%rsp)
lea    0x87b(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x40(%rsp),%xmm1
mulsd  0x83e(%rip),%xmm1
movsd  0x90(%rsp),%xmm0
divsd  %xmm1,%xmm0
lea    0x872(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    0x10(%rsp),%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    0x2732(%rip),%rax
mov    (%rax),%eax
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x857(%rip),%rdi
call   1040 <puts@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>

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

LLVM IR (-O2):
@.str.1 = [32 x i8] c"FLOPs in stencil code: %e\0A\00"
@.str.2 = [32 x i8] c"Time spent in stencil code: %f\0A\00"
@.str.3 = [32 x i8] c"Performance in GFlop/s: %f\0A\00"
@EXIT_SUCCESS = global i32 0
@str = [28 x i8] c"Wrong number of parameters.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 4
br i1 %3, label %7, label %4
4: ; preds = %2
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @exit(i32 -1)
unreachable
7: ; preds = %2
%8 = getelementptr inbounds i8*, i8** %1, i64 1
%9 = load i8*, i8** %8
%10 = tail call i32 @atoi(i8* %9)
%11 = getelementptr inbounds i8*, i8** %1, i64 2
%12 = load i8*, i8** %11
%13 = tail call i32 @atoi(i8* %12)
%14 = getelementptr inbounds i8*, i8** %1, i64 3
%15 = load i8*, i8** %14
%16 = tail call i32 @atoi(i8* %15)
%17 = shl i32 %10, 2
%18 = mul i32 %17, %13
%19 = mul i32 %18, %16
%20 = tail call i64 @malloc(i32 %19)
%21 = inttoptr i64 %20 to float*
%22 = tail call i64 @malloc(i32 %19)
%23 = inttoptr i64 %22 to float*
%24 = sitofp i32 %10 to float
%25 = fdiv float 1.000000e+00, %24
%26 = sitofp i32 %13 to float
%27 = fdiv float 2.000000e+00, %26
%28 = icmp sgt i32 %16, 0
br i1 %28, label %32, label %29
29: ; preds = %7
%30 = sext i32 %10 to i64
%31 = sext i32 %13 to i64
br label %121
32: ; preds = %7
%33 = icmp sgt i32 %13, 0
%34 = icmp sgt i32 %10, 0
%35 = sext i32 %10 to i64
%36 = sext i32 %13 to i64
%37 = zext i32 %16 to i64
%38 = zext i32 %13 to i64
%39 = zext i32 %10 to i64
%40 = mul nsw i64 %36, %35
%41 = icmp ult i32 %10, 4
%42 = and i64 %39, 4294967292
%43 = icmp eq i64 %42, %39
br label %44
44: ; preds = %32, %118
%45 = phi i64 [ 0, %32 ], [ %119, %118 ]
%46 = mul i64 %40, %45
%47 = add i64 %46, %39
br i1 %33, label %48, label %118
48: ; preds = %44
%49 = trunc i64 %45 to i32
%50 = sitofp i32 %49 to double
%51 = mul nsw i64 %45, %36
%52 = insertelement <4 x double> poison, double %50, i64 0
%53 = shufflevector <4 x double> %52, <4 x double> poison, <4 x i32> zeroinitializer
br label %54
54: ; preds = %48, %115
%55 = phi i64 [ 0, %48 ], [ %116, %115 ]
%56 = mul i64 %55, %35
%57 = add i64 %46, %56
%58 = getelementptr float, float* %21, i64 %57
%59 = add i64 %47, %56
%60 = getelementptr float, float* %21, i64 %59
%61 = getelementptr float, float* %23, i64 %57
%62 = getelementptr float, float* %23, i64 %59
br i1 %34, label %63, label %115
63: ; preds = %54
%64 = trunc i64 %55 to i32
%65 = sitofp i32 %64 to double
%66 = add nsw i64 %55, %51
%67 = mul nsw i64 %66, %35
br i1 %41, label %96, label %68
68: ; preds = %63
%69 = icmp ult float* %58, %62
%70 = icmp ult float* %61, %60
%71 = and i1 %69, %70
br i1 %71, label %96, label %72
72: ; preds = %68
%73 = insertelement <4 x double> poison, double %65, i64 0
%74 = shufflevector <4 x double> %73, <4 x double> poison, <4 x i32> zeroinitializer
br label %75
75: ; preds = %75, %72
%76 = phi i64 [ 0, %72 ], [ %92, %75 ]
%77 = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %72 ], [ %93, %75 ]
%78 = sitofp <4 x i32> %77 to <4 x double>
%79 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %78, <4 x double> <double 1.000000e-01, double 1.000000e-01, double 1.000000e-01, double 1.000000e-01>, <4 x double> <double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00>)
%80 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %74, <4 x double> <double 1.000000e-02, double 1.000000e-02, double 1.000000e-02, double 1.000000e-02>, <4 x double> %79)
%81 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %53, <4 x double> <double 1.000000e-03, double 1.000000e-03, double 1.000000e-03, double 1.000000e-03>, <4 x double> %80)
%82 = fptrunc <4 x double> %81 to <4 x float>
%83 = add nsw i64 %76, %67
%84 = getelementptr inbounds float, float* %21, i64 %83
%85 = bitcast float* %84 to <4 x float>*
store <4 x float> %82, <4 x float>* %85
%86 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %78, <4 x double> <double 1.000000e-01, double 1.000000e-01, double 1.000000e-01, double 1.000000e-01>, <4 x double> <double 2.000000e+00, double 2.000000e+00, double 2.000000e+00, double 2.000000e+00>)
%87 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %74, <4 x double> <double 1.000000e-02, double 1.000000e-02, double 1.000000e-02, double 1.000000e-02>, <4 x double> %86)
%88 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %53, <4 x double> <double 1.000000e-03, double 1.000000e-03, double 1.000000e-03, double 1.000000e-03>, <4 x double> %87)
%89 = fptrunc <4 x double> %88 to <4 x float>
%90 = getelementptr inbounds float, float* %23, i64 %83
%91 = bitcast float* %90 to <4 x float>*
store <4 x float> %89, <4 x float>* %91
%92 = add nuw i64 %76, 4
%93 = add <4 x i32> %77, <i32 4, i32 4, i32 4, i32 4>
%94 = icmp eq i64 %92, %42
br i1 %94, label %95, label %75
95: ; preds = %75
br i1 %43, label %115, label %96
96: ; preds = %68, %63, %95
%97 = phi i64 [ 0, %68 ], [ 0, %63 ], [ %42, %95 ]
br label %98
98: ; preds = %96, %98
%99 = phi i64 [ %113, %98 ], [ %97, %96 ]
%100 = trunc i64 %99 to i32
%101 = sitofp i32 %100 to double
%102 = tail call double @llvm.fmuladd.f64(double %101, double 1.000000e-01, double 1.000000e+00)
%103 = tail call double @llvm.fmuladd.f64(double %65, double 1.000000e-02, double %102)
%104 = tail call double @llvm.fmuladd.f64(double %50, double 1.000000e-03, double %103)
%105 = fptrunc double %104 to float
%106 = add nsw i64 %99, %67
%107 = getelementptr inbounds float, float* %21, i64 %106
store float %105, float* %107
%108 = tail call double @llvm.fmuladd.f64(double %101, double 1.000000e-01, double 2.000000e+00)
%109 = tail call double @llvm.fmuladd.f64(double %65, double 1.000000e-02, double %108)
%110 = tail call double @llvm.fmuladd.f64(double %50, double 1.000000e-03, double %109)
%111 = fptrunc double %110 to float
%112 = getelementptr inbounds float, float* %23, i64 %106
store float %111, float* %112
%113 = add nuw nsw i64 %99, 1
%114 = icmp eq i64 %113, %39
br i1 %114, label %115, label %98
115: ; preds = %98, %95, %54
%116 = add nuw nsw i64 %55, 1
%117 = icmp eq i64 %116, %38
br i1 %117, label %118, label %54
118: ; preds = %115, %44
%119 = add nuw nsw i64 %45, 1
%120 = icmp eq i64 %119, %37
br i1 %120, label %121, label %44
121: ; preds = %118, %29
%122 = phi i64 [ %31, %29 ], [ %36, %118 ]
%123 = phi i64 [ %30, %29 ], [ %35, %118 ]
%124 = tail call double (...) @seconds()
%125 = add i32 %16, -1
%126 = icmp sgt i32 %16, 2
%127 = add i32 %13, -1
%128 = icmp sgt i32 %13, 2
%129 = add i32 %10, -1
%130 = icmp sgt i32 %10, 2
%131 = zext i32 %125 to i64
%132 = zext i32 %127 to i64
%133 = zext i32 %129 to i64
br label %134
134: ; preds = %121, %208
%135 = phi i32 [ 0, %121 ], [ %209, %208 ]
%136 = phi float* [ %23, %121 ], [ %137, %208 ]
%137 = phi float* [ %21, %121 ], [ %136, %208 ]
br i1 %126, label %138, label %208
138: ; preds = %134, %205
%139 = phi i64 [ %206, %205 ], [ 1, %134 ]
br i1 %128, label %142, label %140
140: ; preds = %138
%141 = add nuw nsw i64 %139, 1
br label %205
142: ; preds = %138
%143 = mul nsw i64 %139, %122
%144 = add nuw nsw i64 %139, 1
%145 = mul nsw i64 %144, %122
%146 = add nsw i64 %139, -1
%147 = mul nsw i64 %146, %122
%148 = trunc i64 %143 to i32
br label %149
149: ; preds = %142, %202
%150 = phi i64 [ 1, %142 ], [ %203, %202 ]
br i1 %130, label %151, label %202
151: ; preds = %149
%152 = add nsw i64 %150, %143
%153 = mul nsw i64 %152, %123
%154 = trunc i64 %150 to i32
%155 = add i32 %154, %148
%156 = add i32 %155, 1
%157 = mul nsw i32 %156, %10
%158 = add i32 %155, -1
%159 = mul nsw i32 %158, %10
%160 = add nsw i64 %150, %145
%161 = mul nsw i64 %160, %123
%162 = add nsw i64 %150, %147
%163 = mul nsw i64 %162, %123
%164 = sext i32 %157 to i64
%165 = sext i32 %159 to i64
br label %166
166: ; preds = %151, %166
%167 = phi i64 [ 1, %151 ], [ %171, %166 ]
%168 = add nsw i64 %167, %153
%169 = getelementptr inbounds float, float* %137, i64 %168
%170 = load float, float* %169
%171 = add nuw nsw i64 %167, 1
%172 = add nsw i64 %171, %153
%173 = getelementptr inbounds float, float* %137, i64 %172
%174 = load float, float* %173
%175 = add i64 %167, %153
%176 = shl i64 %175, 32
%177 = add i64 %176, -4294967296
%178 = ashr exact i64 %177, 32
%179 = getelementptr inbounds float, float* %137, i64 %178
%180 = load float, float* %179
%181 = fadd float %174, %180
%182 = add nsw i64 %167, %164
%183 = getelementptr inbounds float, float* %137, i64 %182
%184 = load float, float* %183
%185 = fadd float %181, %184
%186 = add nsw i64 %167, %165
%187 = getelementptr inbounds float, float* %137, i64 %186
%188 = load float, float* %187
%189 = fadd float %185, %188
%190 = add nsw i64 %167, %161
%191 = getelementptr inbounds float, float* %137, i64 %190
%192 = load float, float* %191
%193 = fadd float %189, %192
%194 = add nsw i64 %167, %163
%195 = getelementptr inbounds float, float* %137, i64 %194
%196 = load float, float* %195
%197 = fadd float %193, %196
%198 = fmul float %27, %197
%199 = tail call float @llvm.fmuladd.f32(float %25, float %170, float %198)
%200 = getelementptr inbounds float, float* %136, i64 %168
store float %199, float* %200
%201 = icmp eq i64 %171, %133
br i1 %201, label %202, label %166
202: ; preds = %166, %149
%203 = add nuw nsw i64 %150, 1
%204 = icmp eq i64 %203, %132
br i1 %204, label %205, label %149
205: ; preds = %202, %140
%206 = phi i64 [ %141, %140 ], [ %144, %202 ]
%207 = icmp eq i64 %206, %131
br i1 %207, label %208, label %138
208: ; preds = %205, %134
%209 = add nuw nsw i32 %135, 1
%210 = icmp eq i32 %209, 5
br i1 %210, label %211, label %134
211: ; preds = %208
%212 = tail call double (...) @seconds()
%213 = add nsw i32 %10, -2
%214 = sitofp i32 %213 to double
%215 = add nsw i32 %13, -2
%216 = sitofp i32 %215 to double
%217 = fmul double %214, %216
%218 = add nsw i32 %16, -2
%219 = sitofp i32 %218 to double
%220 = fmul double %217, %219
%221 = fmul double %220, 5.000000e+00
%222 = fmul double %221, 8.000000e+00
%223 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), double %222)
%224 = fsub double %212, %124
%225 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), double %224)
%226 = fmul double %224, 1.000000e+09
%227 = fdiv double %222, %226
%228 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), double %227)
%229 = tail call i32 @free(float* %136)
%230 = tail call i32 @free(float* %137)
%231 = load i32, i32* @EXIT_SUCCESS
ret i32 %231
}