#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 */
struct timeval {
  int tv_sec;
  int tv_usec;
};
typedef int i;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fourn(double *, int *, int, int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
scalar_t__ malloc(long);
int /*<<< orphan*/ memset(double *, int /*<<< orphan*/, long);
int /*<<< orphan*/ stderr;
double bench(int npasses, int faedge) {
  int i, j, k, l, m;
  double *fdata;
  static int nsize[] = {0, 0, 0};
  long fanum, fasize;
  double mapbase, mapscale, rmin, rmax, imin, imax;
  fanum = faedge * faedge;
  fasize = ((fanum + 1) * 2 * sizeof(double));
  nsize[1] = nsize[2] = faedge;
  struct timeval t0, t1;
  gettimeofday(&t0, NULL);
  fdata = (double *)malloc(fasize);
  if (fdata == NULL) {
    fprintf(stderr, "Can't allocate data array.\n");
    exit(1);
  }
  memset(fdata, 0, fasize);
  for (i = 0; i < faedge; i++) {
    for (j = 0; j < faedge; j++) {
      if (((i & 15) == 8) || ((j & 15) == 8))
        fdata[1 + (faedge * (i) + (j)) * 2] = 128.0;
    }
  }
  for (i = 0; i < npasses; i++) {
    fourn(fdata, nsize, 2, 1);
    fourn(fdata, nsize, 2, -1);
  }
  {
    double r, ij, ar, ai;
    rmin = 1e10;
    rmax = -1e10;
    imin = 1e10;
    imax = -1e10;
    ar = 0;
    ai = 0;
    for (i = 1; i <= fanum; i += 2) {
      r = fdata[i];
      ij = fdata[i + 1];
      ar += r;
      ai += ij;
      rmin = ((r) <= (rmin) ? (r) : (rmin));
      rmax = ((r) > (rmax) ? (r) : (rmax));
      imin = ((ij) <= (imin) ? (ij) : (imin));
      imax = ((ij) > (imax) ? (ij) : (imax));
    }
    mapbase = rmin;
    mapscale = 255 / (rmax - rmin);
  }
  m = 0;
  for (i = 0; i < faedge; i++) {
    for (j = 0; j < faedge; j++) {
      k = (fdata[1 + (faedge * (i) + (j)) * 2] - mapbase) * mapscale;
      l = (((i & 15) == 8) || ((j & 15) == 8)) ? 255 : 0;
      if (k != l) {
        m++;
        fprintf(stderr, "Wrong answer at (%d,%d)!  Expected %d, got %d.\n", i,
                j, l, k);
      }
    }
  }
  if (m == 0) {
    fprintf(stderr, "%d passes.  No errors in results.\n", npasses);
  } else {
    fprintf(stderr, "%d passes.  %d errors in results.\n", npasses, m);
  }
  gettimeofday(&t1, NULL);
  double t = t1.tv_sec - t0.tv_sec + 1e-6 * (t1.tv_usec - t0.tv_usec);
  return t;
}


x86 assembly (clang, -O0):
<bench>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
cltq
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
shl    $0x1,%rax
shl    $0x3,%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,0x2ec1(%rip)
mov    %eax,0x2eb7(%rip)
lea    -0x70(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <gettimeofday@plt>
mov    -0x38(%rbp),%rdi
call   1070 <malloc@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    11e7 <bench+0x87>
mov    0x2e13(%rip),%rax
mov    (%rax),%edi
lea    0xe52(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
mov    -0x28(%rbp),%rdi
mov    -0x38(%rbp),%rdx
xor    %esi,%esi
call   1050 <memset@plt>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1284 <bench+0x124>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1271 <bench+0x111>
mov    -0xc(%rbp),%eax
and    $0xf,%eax
cmp    $0x8,%eax
je     123a <bench+0xda>
mov    -0x10(%rbp),%eax
and    $0xf,%eax
cmp    $0x8,%eax
jne    125e <bench+0xfe>
mov    -0x28(%rbp),%rax
mov    -0x8(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    -0x10(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xdc7(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    1263 <bench+0x103>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1210 <bench+0xb0>
jmp    1276 <bench+0x116>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11fd <bench+0x9d>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12d9 <bench+0x179>
mov    -0x28(%rbp),%rdi
lea    0x2db2(%rip),%rsi
mov    $0x2,%edx
mov    $0x1,%ecx
call   1030 <fourn@plt>
mov    -0x28(%rbp),%rdi
lea    0x2d98(%rip),%rsi
mov    $0x2,%edx
mov    $0xffffffff,%ecx
call   1030 <fourn@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    128b <bench+0x12b>
movsd  0xd27(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xd12(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xd0d(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xcf8(%rip),%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movl   $0x1,-0xc(%rbp)
movslq -0xc(%rbp),%rax
cmp    -0x30(%rbp),%rax
jg     14a3 <bench+0x343>
mov    -0x28(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x28(%rbp),%rax
mov    -0xc(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
addsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
addsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x80(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     13b7 <bench+0x257>
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
jmp    13c4 <bench+0x264>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0x50(%rbp)
movsd  -0x80(%rbp),%xmm0
ucomisd -0x58(%rbp),%xmm0
jbe    13f3 <bench+0x293>
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
jmp    1400 <bench+0x2a0>
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0x58(%rbp)
movsd  -0x88(%rbp),%xmm1
ff
movsd  -0x60(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     1439 <bench+0x2d9>
movsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0xb8(%rbp)
ff
jmp    1446 <bench+0x2e6>
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0x60(%rbp)
movsd  -0x88(%rbp),%xmm0
ff
ucomisd -0x68(%rbp),%xmm0
jbe    147b <bench+0x31b>
movsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0xc0(%rbp)
ff
jmp    1488 <bench+0x328>
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0x68(%rbp)
mov    -0xc(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0xc(%rbp)
jmp    132a <bench+0x1ca>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x58(%rbp),%xmm1
subsd  -0x50(%rbp),%xmm1
movsd  0xb51(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    15c1 <bench+0x461>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    15ae <bench+0x44e>
mov    -0x28(%rbp),%rax
mov    -0x8(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    -0x10(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x40(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%ecx
and    $0xf,%ecx
mov    $0x1,%al
cmp    $0x8,%ecx
mov    %al,-0xc1(%rbp)
je     154b <bench+0x3eb>
mov    -0x10(%rbp),%eax
and    $0xf,%eax
cmp    $0x8,%eax
sete   %al
mov    %al,-0xc1(%rbp)
mov    -0xc1(%rbp),%dl
xor    %eax,%eax
mov    $0xff,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
je     159b <bench+0x43b>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    0x2a63(%rip),%rax
mov    (%rax),%edi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    -0x14(%rbp),%r9d
lea    0xab0(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
jmp    15a0 <bench+0x440>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    14e9 <bench+0x389>
jmp    15b3 <bench+0x453>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    14d6 <bench+0x376>
cmpl   $0x0,-0x1c(%rbp)
jne    15ea <bench+0x48a>
mov    0x2a0e(%rip),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%edx
lea    0xa96(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
jmp    1607 <bench+0x4a7>
mov    0x29ef(%rip),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%edx
mov    -0x1c(%rbp),%ecx
lea    0xa97(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
lea    -0x78(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <gettimeofday@plt>
mov    -0x78(%rbp),%eax
sub    -0x70(%rbp),%eax
cvtsi2sd %eax,%xmm1
mov    -0x74(%rbp),%eax
sub    -0x6c(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  0x9e8(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bench>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %esi,%r13d
mov    %edi,%r15d
mov    %esi,%r14d
imul   %r14d,%r14d
mov    %r14,%rbx
shl    $0x4,%rbx
add    $0x10,%rbx
mov    %esi,0x2ed0(%rip)
mov    %esi,0x2ec6(%rip)
lea    0x28(%rsp),%rdi
xor    %esi,%esi
call   1040 <gettimeofday@plt>
mov    %rbx,%rdi
call   1070 <malloc@plt>
test   %rax,%rax
je     15bf <bench+0x45f>
mov    %r13d,%ebp
mov    %rax,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
mov    %rax,0x8(%rsp)
call   1050 <memset@plt>
mov    %rbp,%r11
mov    0x8(%rsp),%rdi
test   %r13d,%r13d
jle    1293 <bench+0x133>
mov    %r11d,%eax
and    $0xfffffffe,%eax
lea    0x0(%r13,%r13,1),%r8d
mov    $0x3,%r9d
xor    %ebp,%ebp
movabs $0x4060000000000000,%r10
jmp    1222 <bench+0xc2>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbp,%rcx
imul   %r11,%rcx
add    %ecx,%edx
lea    (%rdx,%rdx,1),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    %r10,(%rdi,%rcx,8)
add    $0x1,%rbp
add    %r8d,%r9d
cmp    %r11,%rbp
je     1293 <bench+0x133>
mov    %ebp,%esi
and    $0xf,%esi
cmp    $0x1,%r13d
jne    1250 <bench+0xf0>
xor    %edx,%edx
test   $0x1,%r11b
je     1216 <bench+0xb6>
cmp    $0x8,%esi
je     1200 <bench+0xa0>
mov    %edx,%ecx
and    $0xf,%ecx
cmp    $0x8,%ecx
jne    1216 <bench+0xb6>
jmp    1200 <bench+0xa0>
cs nopw 0x0(%rax,%rax,1)
mov    %r9d,%ecx
xor    %edx,%edx
jmp    126c <bench+0x10c>
nopw   0x0(%rax,%rax,1)
add    $0x2,%rdx
add    $0x4,%ecx
cmp    %rdx,%rax
je     122f <bench+0xcf>
cmp    $0x8,%esi
je     127b <bench+0x11b>
mov    %edx,%ebx
and    $0xe,%ebx
cmp    $0x8,%ebx
jne    1285 <bench+0x125>
lea    -0x2(%rcx),%ebx
movslq %ebx,%rbx
mov    %r10,(%rdi,%rbx,8)
cmp    $0x8,%esi
jne    1260 <bench+0x100>
movslq %ecx,%rbx
mov    %r10,(%rdi,%rbx,8)
jmp    1260 <bench+0x100>
mov    %r11,0x10(%rsp)
test   %r15d,%r15d
jle    12e3 <bench+0x183>
lea    0x2db0(%rip),%rbx
mov    %r15d,%ebp
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rsi
mov    $0x2,%edx
mov    $0x1,%ecx
call   1030 <fourn@plt>
mov    0x8(%rsp),%rdi
mov    %rbx,%rsi
mov    $0x2,%edx
mov    $0xffffffff,%ecx
call   1030 <fourn@plt>
mov    0x8(%rsp),%rdi
add    $0xffffffff,%ebp
jne    12b0 <bench+0x150>
test   %r14,%r14
je     131b <bench+0x1bb>
add    $0xffffffffffffffff,%r14
mov    %r14,%rdx
shr    %rdx
add    $0x1,%rdx
mov    %edx,%eax
and    $0x3,%eax
cmp    $0x6,%r14
jae    1335 <bench+0x1d5>
movsd  0xcff(%rip),%xmm1
movsd  0xcef(%rip),%xmm0
mov    $0x1,%ecx
jmp    13e9 <bench+0x289>
movsd  0xcdd(%rip),%xmm2
movsd  0xcdd(%rip),%xmm4
mov    0x10(%rsp),%rsi
jmp    1443 <bench+0x2e3>
and    $0xfffffffffffffffc,%rdx
movsd  0xcc7(%rip),%xmm1
movsd  0xcb7(%rip),%xmm0
mov    $0x1,%ecx
xchg   %ax,%ax
movsd  (%rdi,%rcx,8),%xmm3
movsd  0x10(%rdi,%rcx,8),%xmm2
movapd %xmm3,%xmm4
cmplesd %xmm1,%xmm4
movapd %xmm4,%xmm5
andpd  %xmm3,%xmm5
andnpd %xmm1,%xmm4
orpd   %xmm5,%xmm4
maxsd  %xmm0,%xmm3
movapd %xmm2,%xmm0
cmplesd %xmm4,%xmm0
movapd %xmm0,%xmm1
andnpd %xmm4,%xmm1
andpd  %xmm2,%xmm0
orpd   %xmm1,%xmm0
maxsd  %xmm3,%xmm2
movsd  0x20(%rdi,%rcx,8),%xmm3
movapd %xmm3,%xmm4
cmplesd %xmm0,%xmm4
movapd %xmm4,%xmm1
andnpd %xmm0,%xmm1
andpd  %xmm3,%xmm4
orpd   %xmm1,%xmm4
maxsd  %xmm2,%xmm3
movsd  0x30(%rdi,%rcx,8),%xmm0
movapd %xmm0,%xmm1
cmplesd %xmm4,%xmm1
movapd %xmm1,%xmm2
andnpd %xmm4,%xmm2
andpd  %xmm0,%xmm1
orpd   %xmm2,%xmm1
maxsd  %xmm3,%xmm0
add    $0x8,%rcx
add    $0xfffffffffffffffc,%rdx
jne    1350 <bench+0x1f0>
movapd %xmm1,%xmm4
movapd %xmm0,%xmm2
test   %rax,%rax
mov    0x10(%rsp),%rsi
je     1443 <bench+0x2e3>
lea    (%rdi,%rcx,8),%rcx
shl    $0x4,%rax
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%rcx,%rdx,1),%xmm2
movapd %xmm2,%xmm4
cmplesd %xmm1,%xmm4
movapd %xmm4,%xmm3
andpd  %xmm2,%xmm3
andnpd %xmm1,%xmm4
orpd   %xmm3,%xmm4
maxsd  %xmm0,%xmm2
add    $0x10,%rdx
movapd %xmm2,%xmm0
movapd %xmm4,%xmm1
cmp    %rdx,%rax
jne    1410 <bench+0x2b0>
test   %r13d,%r13d
jle    1560 <bench+0x400>
mov    %r15d,0x18(%rsp)
subsd  %xmm4,%xmm2
movsd  0xbb3(%rip),%xmm1
divsd  %xmm2,%xmm1
add    %r13d,%r13d
mov    $0x1,%eax
mov    $0xff,%r12d
xor    %r15d,%r15d
xor    %ebx,%ebx
mov    %r13,0x30(%rsp)
movapd %xmm4,0x40(%rsp)
movsd  %xmm1,0x38(%rsp)
jmp    14a9 <bench+0x349>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r15d
mov    0x30(%rsp),%r13
mov    0x1c(%rsp),%eax
add    %r13d,%eax
cmp    %esi,%r15d
je     1539 <bench+0x3d9>
mov    %r15d,%ebp
and    $0xf,%ebp
mov    %eax,0x1c(%rsp)
mov    %eax,%r13d
xor    %r14d,%r14d
jmp    14cd <bench+0x36d>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r14
add    $0x2,%r13d
cmp    %r14,%rsi
je     1490 <bench+0x330>
mov    %r14d,%eax
and    $0xf,%eax
cmp    $0x8,%eax
mov    $0x0,%r8d
cmove  %r12d,%r8d
movslq %r13d,%rax
movsd  (%rdi,%rax,8),%xmm0
subsd  %xmm4,%xmm0
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%r9d
cmp    $0x8,%ebp
cmove  %r12d,%r8d
cmp    %r9d,%r8d
je     14c0 <bench+0x360>
add    $0x1,%ebx
mov    0x2ad5(%rip),%rax
mov    (%rax),%edi
lea    0xb28(%rip),%rsi
mov    %r15d,%edx
mov    %r14d,%ecx
xor    %eax,%eax
call   1060 <fprintf@plt>
movsd  0x38(%rsp),%xmm1
movapd 0x40(%rsp),%xmm4
mov    0x10(%rsp),%rsi
mov    0x8(%rsp),%rdi
jmp    14c0 <bench+0x360>
test   %ebx,%ebx
mov    0x18(%rsp),%r15d
je     1560 <bench+0x400>
mov    0x2a97(%rip),%rax
mov    (%rax),%edi
lea    0xb3d(%rip),%rsi
mov    %r15d,%edx
mov    %ebx,%ecx
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    157a <bench+0x41a>
mov    0x2a79(%rip),%rax
mov    (%rax),%edi
lea    0xafc(%rip),%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x20(%rsp),%rdi
xor    %esi,%esi
call   1040 <gettimeofday@plt>
mov    0x20(%rsp),%eax
mov    0x24(%rsp),%ecx
sub    0x28(%rsp),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
sub    0x2c(%rsp),%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
mulsd  0xa6c(%rip),%xmm0
addsd  %xmm1,%xmm0
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2a1a(%rip),%rax
mov    (%rax),%edi
lea    0xa51(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
%struct.timeval = type { i32, i32 }
@bench.nsize = internal global [3 x i32] zeroinitializer
@stderr = global i32 0
@.str = [28 x i8] c"Can't allocate data array.\0A\00"
@.str.1 = [48 x i8] c"Wrong answer at (%d,%d)! Expected %d, got %d.\0A\00"
@.str.2 = [35 x i8] c"%d passes. No errors in results.\0A\00"
@.str.3 = [35 x i8] c"%d passes. %d errors in results.\0A\00"
define double @bench(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca double*
%11 = alloca i64
%12 = alloca i64
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca %struct.timeval
%20 = alloca %struct.timeval
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca double
store i32 %0, i32* %3
store i32 %1, i32* %4
%26 = load i32, i32* %4
%27 = load i32, i32* %4
%28 = mul nsw i32 %26, %27
%29 = sext i32 %28 to i64
store i64 %29, i64* %11
%30 = load i64, i64* %11
%31 = add nsw i64 %30, 1
%32 = mul nsw i64 %31, 2
%33 = mul i64 %32, 8
store i64 %33, i64* %12
%34 = load i32, i32* %4
store i32 %34, i32* getelementptr inbounds ([3 x i32], [3 x i32]* @bench.nsize, i64 0, i64 2)
store i32 %34, i32* getelementptr inbounds ([3 x i32], [3 x i32]* @bench.nsize, i64 0, i64 1)
%35 = call i32 @gettimeofday(%struct.timeval* %19, i32* null)
%36 = load i64, i64* %12
%37 = call i64 @malloc(i64 %36)
%38 = inttoptr i64 %37 to double*
store double* %38, double** %10
%39 = load double*, double** %10
%40 = icmp eq double* %39, null
br i1 %40, label %41, label %45
41: ; preds = %2
%42 = load i32, i32* @stderr
%43 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%44 = call i32 @exit(i32 1)
unreachable
45: ; preds = %2
%46 = load double*, double** %10
%47 = load i64, i64* %12
%48 = call i32 @memset(double* %46, i32 0, i64 %47)
store i32 0, i32* %5
br label %49
49: ; preds = %82, %45
%50 = load i32, i32* %5
%51 = load i32, i32* %4
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %85
53: ; preds = %49
store i32 0, i32* %6
br label %54
54: ; preds = %78, %53
%55 = load i32, i32* %6
%56 = load i32, i32* %4
%57 = icmp slt i32 %55, %56
br i1 %57, label %58, label %81
58: ; preds = %54
%59 = load i32, i32* %5
%60 = and i32 %59, 15
%61 = icmp eq i32 %60, 8
br i1 %61, label %66, label %62
62: ; preds = %58
%63 = load i32, i32* %6
%64 = and i32 %63, 15
%65 = icmp eq i32 %64, 8
br i1 %65, label %66, label %77
66: ; preds = %62, %58
%67 = load double*, double** %10
%68 = load i32, i32* %4
%69 = load i32, i32* %5
%70 = mul nsw i32 %68, %69
%71 = load i32, i32* %6
%72 = add nsw i32 %70, %71
%73 = mul nsw i32 %72, 2
%74 = add nsw i32 1, %73
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, double* %67, i64 %75
store double 1.280000e+02, double* %76
br label %77
77: ; preds = %66, %62
br label %78
78: ; preds = %77
%79 = load i32, i32* %6
%80 = add nsw i32 %79, 1
store i32 %80, i32* %6
br label %54
81: ; preds = %54
br label %82
82: ; preds = %81
%83 = load i32, i32* %5
%84 = add nsw i32 %83, 1
store i32 %84, i32* %5
br label %49
85: ; preds = %49
store i32 0, i32* %5
br label %86
86: ; preds = %95, %85
%87 = load i32, i32* %5
%88 = load i32, i32* %3
%89 = icmp slt i32 %87, %88
br i1 %89, label %90, label %98
90: ; preds = %86
%91 = load double*, double** %10
%92 = call i32 @fourn(double* %91, i32* getelementptr inbounds ([3 x i32], [3 x i32]* @bench.nsize, i64 0, i64 0), i32 2, i32 1)
%93 = load double*, double** %10
%94 = call i32 @fourn(double* %93, i32* getelementptr inbounds ([3 x i32], [3 x i32]* @bench.nsize, i64 0, i64 0), i32 2, i32 -1)
br label %95
95: ; preds = %90
%96 = load i32, i32* %5
%97 = add nsw i32 %96, 1
store i32 %97, i32* %5
br label %86
98: ; preds = %86
store double 1.000000e+10, double* %15
store double -1.000000e+10, double* %16
store double 1.000000e+10, double* %17
store double -1.000000e+10, double* %18
store double 0.000000e+00, double* %23
store double 0.000000e+00, double* %24
store i32 1, i32* %5
br label %99
99: ; preds = %158, %98
%100 = load i32, i32* %5
%101 = sext i32 %100 to i64
%102 = load i64, i64* %11
%103 = icmp sle i64 %101, %102
br i1 %103, label %104, label %161
104: ; preds = %99
%105 = load double*, double** %10
%106 = load i32, i32* %5
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds double, double* %105, i64 %107
%109 = load double, double* %108
store double %109, double* %21
%110 = load double*, double** %10
%111 = load i32, i32* %5
%112 = add nsw i32 %111, 1
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds double, double* %110, i64 %113
%115 = load double, double* %114
store double %115, double* %22
%116 = load double, double* %21
%117 = load double, double* %23
%118 = fadd double %117, %116
store double %118, double* %23
%119 = load double, double* %22
%120 = load double, double* %24
%121 = fadd double %120, %119
store double %121, double* %24
%122 = load double, double* %21
%123 = load double, double* %15
%124 = fcmp ole double %122, %123
br i1 %124, label %125, label %127
125: ; preds = %104
%126 = load double, double* %21
br label %129
127: ; preds = %104
%128 = load double, double* %15
br label %129
129: ; preds = %127, %125
%130 = phi double [ %126, %125 ], [ %128, %127 ]
store double %130, double* %15
%131 = load double, double* %21
%132 = load double, double* %16
%133 = fcmp ogt double %131, %132
br i1 %133, label %134, label %136
134: ; preds = %129
%135 = load double, double* %21
br label %138
136: ; preds = %129
%137 = load double, double* %16
br label %138
138: ; preds = %136, %134
%139 = phi double [ %135, %134 ], [ %137, %136 ]
store double %139, double* %16
%140 = load double, double* %22
%141 = load double, double* %17
%142 = fcmp ole double %140, %141
br i1 %142, label %143, label %145
143: ; preds = %138
%144 = load double, double* %22
br label %147
145: ; preds = %138
%146 = load double, double* %17
br label %147
147: ; preds = %145, %143
%148 = phi double [ %144, %143 ], [ %146, %145 ]
store double %148, double* %17
%149 = load double, double* %22
%150 = load double, double* %18
%151 = fcmp ogt double %149, %150
br i1 %151, label %152, label %154
152: ; preds = %147
%153 = load double, double* %22
br label %156
154: ; preds = %147
%155 = load double, double* %18
br label %156
156: ; preds = %154, %152
%157 = phi double [ %153, %152 ], [ %155, %154 ]
store double %157, double* %18
br label %158
158: ; preds = %156
%159 = load i32, i32* %5
%160 = add nsw i32 %159, 2
store i32 %160, i32* %5
br label %99
161: ; preds = %99
%162 = load double, double* %15
store double %162, double* %13
%163 = load double, double* %16
%164 = load double, double* %15
%165 = fsub double %163, %164
%166 = fdiv double 2.550000e+02, %165
store double %166, double* %14
store i32 0, i32* %9
store i32 0, i32* %5
br label %167
167: ; preds = %221, %161
%168 = load i32, i32* %5
%169 = load i32, i32* %4
%170 = icmp slt i32 %168, %169
br i1 %170, label %171, label %224
171: ; preds = %167
store i32 0, i32* %6
br label %172
172: ; preds = %217, %171
%173 = load i32, i32* %6
%174 = load i32, i32* %4
%175 = icmp slt i32 %173, %174
br i1 %175, label %176, label %220
176: ; preds = %172
%177 = load double*, double** %10
%178 = load i32, i32* %4
%179 = load i32, i32* %5
%180 = mul nsw i32 %178, %179
%181 = load i32, i32* %6
%182 = add nsw i32 %180, %181
%183 = mul nsw i32 %182, 2
%184 = add nsw i32 1, %183
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds double, double* %177, i64 %185
%187 = load double, double* %186
%188 = load double, double* %13
%189 = fsub double %187, %188
%190 = load double, double* %14
%191 = fmul double %189, %190
%192 = fptosi double %191 to i32
store i32 %192, i32* %7
%193 = load i32, i32* %5
%194 = and i32 %193, 15
%195 = icmp eq i32 %194, 8
br i1 %195, label %200, label %196
196: ; preds = %176
%197 = load i32, i32* %6
%198 = and i32 %197, 15
%199 = icmp eq i32 %198, 8
br label %200
200: ; preds = %196, %176
%201 = phi i1 [ true, %176 ], [ %199, %196 ]
%202 = zext i1 %201 to i64
%203 = select i1 %201, i32 255, i32 0
store i32 %203, i32* %8
%204 = load i32, i32* %7
%205 = load i32, i32* %8
%206 = icmp ne i32 %204, %205
br i1 %206, label %207, label %216
207: ; preds = %200
%208 = load i32, i32* %9
%209 = add nsw i32 %208, 1
store i32 %209, i32* %9
%210 = load i32, i32* @stderr
%211 = load i32, i32* %5
%212 = load i32, i32* %6
%213 = load i32, i32* %8
%214 = load i32, i32* %7
%215 = call i32 (i32, i8*, ...) @fprintf(i32 %210, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0), i32 %211, i32 %212, i32 %213, i32 %214)
br label %216
216: ; preds = %207, %200
br label %217
217: ; preds = %216
%218 = load i32, i32* %6
%219 = add nsw i32 %218, 1
store i32 %219, i32* %6
br label %172
220: ; preds = %172
br label %221
221: ; preds = %220
%222 = load i32, i32* %5
%223 = add nsw i32 %222, 1
store i32 %223, i32* %5
br label %167
224: ; preds = %167
%225 = load i32, i32* %9
%226 = icmp eq i32 %225, 0
br i1 %226, label %227, label %231
227: ; preds = %224
%228 = load i32, i32* @stderr
%229 = load i32, i32* %3
%230 = call i32 (i32, i8*, ...) @fprintf(i32 %228, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i32 %229)
br label %236
231: ; preds = %224
%232 = load i32, i32* @stderr
%233 = load i32, i32* %3
%234 = load i32, i32* %9
%235 = call i32 (i32, i8*, ...) @fprintf(i32 %232, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 %233, i32 %234)
br label %236
236: ; preds = %231, %227
%237 = call i32 @gettimeofday(%struct.timeval* %20, i32* null)
%238 = getelementptr inbounds %struct.timeval, %struct.timeval* %20, i32 0, i32 0
%239 = load i32, i32* %238
%240 = getelementptr inbounds %struct.timeval, %struct.timeval* %19, i32 0, i32 0
%241 = load i32, i32* %240
%242 = sub nsw i32 %239, %241
%243 = sitofp i32 %242 to double
%244 = getelementptr inbounds %struct.timeval, %struct.timeval* %20, i32 0, i32 1
%245 = load i32, i32* %244
%246 = getelementptr inbounds %struct.timeval, %struct.timeval* %19, i32 0, i32 1
%247 = load i32, i32* %246
%248 = sub nsw i32 %245, %247
%249 = sitofp i32 %248 to double
%250 = call double @llvm.fmuladd.f64(double 0x3EB0C6F7A0B5ED8D, double %249, double %243)
store double %250, double* %25
%251 = load double, double* %25
ret double %251
}

LLVM IR (-O2):
%struct.timeval = type { i32, i32 }
@bench.nsize = internal global [3 x i32] zeroinitializer
@stderr = global i32 0
@.str = [28 x i8] c"Can't allocate data array.\0A\00"
@.str.1 = [48 x i8] c"Wrong answer at (%d,%d)! Expected %d, got %d.\0A\00"
@.str.2 = [35 x i8] c"%d passes. No errors in results.\0A\00"
@.str.3 = [35 x i8] c"%d passes. %d errors in results.\0A\00"
define double @bench(i32 %0, i32 %1) {
%3 = alloca %struct.timeval
%4 = alloca %struct.timeval
%5 = mul nsw i32 %1, %1
%6 = zext i32 %5 to i64
%7 = shl nuw nsw i64 %6, 4
%8 = add nuw nsw i64 %7, 16
store i32 %1, i32* getelementptr inbounds ([3 x i32], [3 x i32]* @bench.nsize, i64 0, i64 2)
store i32 %1, i32* getelementptr inbounds ([3 x i32], [3 x i32]* @bench.nsize, i64 0, i64 1)
%9 = bitcast %struct.timeval* %3 to i8*
%10 = bitcast %struct.timeval* %4 to i8*
%11 = call i32 @gettimeofday(%struct.timeval* %3, i32* null)
%12 = tail call i64 @malloc(i64 %8)
%13 = inttoptr i64 %12 to double*
%14 = icmp eq i64 %12, 0
br i1 %14, label %15, label %19
15: ; preds = %2
%16 = load i32, i32* @stderr
%17 = tail call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%18 = tail call i32 @exit(i32 1)
unreachable
19: ; preds = %2
%20 = tail call i32 @memset(double* %13, i32 0, i64 %8)
%21 = icmp sgt i32 %1, 0
br i1 %21, label %22, label %34
22: ; preds = %19
%23 = zext i32 %1 to i64
%24 = zext i32 %1 to i64
%25 = and i64 %24, 1
%26 = icmp eq i32 %1, 1
%27 = and i64 %24, 4294967294
%28 = icmp eq i64 %25, 0
br label %29
29: ; preds = %75, %22
%30 = phi i64 [ 0, %22 ], [ %76, %75 ]
%31 = and i64 %30, 15
%32 = icmp eq i64 %31, 8
%33 = mul i64 %30, %23
br i1 %26, label %62, label %36
34: ; preds = %75, %19
%35 = icmp sgt i32 %0, 0
br i1 %35, label %88, label %78
36: ; preds = %29, %58
%37 = phi i64 [ %59, %58 ], [ 0, %29 ]
%38 = phi i64 [ %60, %58 ], [ 0, %29 ]
%39 = and i64 %37, 14
%40 = icmp eq i64 %39, 8
%41 = select i1 %32, i1 true, i1 %40
br i1 %41, label %42, label %49
42: ; preds = %36
%43 = add i64 %37, %33
%44 = trunc i64 %43 to i32
%45 = shl nsw i32 %44, 1
%46 = or i32 %45, 1
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds double, double* %13, i64 %47
store double 1.280000e+02, double* %48
br label %49
49: ; preds = %36, %42
br i1 %32, label %50, label %58
50: ; preds = %49
%51 = or i64 %37, 1
%52 = add i64 %51, %33
%53 = trunc i64 %52 to i32
%54 = shl nsw i32 %53, 1
%55 = or i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, double* %13, i64 %56
store double 1.280000e+02, double* %57
br label %58
58: ; preds = %50, %49
%59 = add nuw nsw i64 %37, 2
%60 = add i64 %38, 2
%61 = icmp eq i64 %60, %27
br i1 %61, label %62, label %36
62: ; preds = %58, %29
%63 = phi i64 [ 0, %29 ], [ %59, %58 ]
br i1 %28, label %75, label %64
64: ; preds = %62
%65 = and i64 %63, 15
%66 = icmp eq i64 %65, 8
%67 = select i1 %32, i1 true, i1 %66
br i1 %67, label %68, label %75
68: ; preds = %64
%69 = add i64 %63, %33
%70 = trunc i64 %69 to i32
%71 = shl nsw i32 %70, 1
%72 = or i32 %71, 1
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds double, double* %13, i64 %73
store double 1.280000e+02, double* %74
br label %75
75: ; preds = %64, %68, %62
%76 = add nuw nsw i64 %30, 1
%77 = icmp eq i64 %76, %24
br i1 %77, label %34, label %29
78: ; preds = %88, %34
%79 = icmp eq i32 %5, 0
br i1 %79, label %150, label %80
80: ; preds = %78
%81 = add nsw i64 %6, -1
%82 = lshr i64 %81, 1
%83 = add nuw i64 %82, 1
%84 = and i64 %83, 3
%85 = icmp ult i64 %81, 6
br i1 %85, label %129, label %86
86: ; preds = %80
%87 = and i64 %83, -4
br label %94
88: ; preds = %34, %88
%89 = phi i32 [ %92, %88 ], [ 0, %34 ]
%90 = tail call i32 @fourn(double* %13, i32* getelementptr inbounds ([3 x i32], [3 x i32]* @bench.nsize, i64 0, i64 0), i32 2, i32 1)
%91 = tail call i32 @fourn(double* %13, i32* getelementptr inbounds ([3 x i32], [3 x i32]* @bench.nsize, i64 0, i64 0), i32 2, i32 -1)
%92 = add nuw nsw i32 %89, 1
%93 = icmp eq i32 %92, %0
br i1 %93, label %78, label %88
94: ; preds = %94, %86
%95 = phi i64 [ 1, %86 ], [ %126, %94 ]
%96 = phi double [ -1.000000e+10, %86 ], [ %125, %94 ]
%97 = phi double [ 1.000000e+10, %86 ], [ %123, %94 ]
%98 = phi i64 [ 0, %86 ], [ %127, %94 ]
%99 = getelementptr inbounds double, double* %13, i64 %95
%100 = load double, double* %99
%101 = fcmp ole double %100, %97
%102 = select i1 %101, double %100, double %97
%103 = fcmp ogt double %100, %96
%104 = select i1 %103, double %100, double %96
%105 = add nuw nsw i64 %95, 2
%106 = getelementptr inbounds double, double* %13, i64 %105
%107 = load double, double* %106
%108 = fcmp ole double %107, %102
%109 = select i1 %108, double %107, double %102
%110 = fcmp ogt double %107, %104
%111 = select i1 %110, double %107, double %104
%112 = add nuw nsw i64 %95, 4
%113 = getelementptr inbounds double, double* %13, i64 %112
%114 = load double, double* %113
%115 = fcmp ole double %114, %109
%116 = select i1 %115, double %114, double %109
%117 = fcmp ogt double %114, %111
%118 = select i1 %117, double %114, double %111
%119 = add nuw nsw i64 %95, 6
%120 = getelementptr inbounds double, double* %13, i64 %119
%121 = load double, double* %120
%122 = fcmp ole double %121, %116
%123 = select i1 %122, double %121, double %116
%124 = fcmp ogt double %121, %118
%125 = select i1 %124, double %121, double %118
%126 = add nuw nsw i64 %95, 8
%127 = add i64 %98, 4
%128 = icmp eq i64 %127, %87
br i1 %128, label %129, label %94
129: ; preds = %94, %80
%130 = phi double [ undef, %80 ], [ %123, %94 ]
%131 = phi double [ undef, %80 ], [ %125, %94 ]
%132 = phi i64 [ 1, %80 ], [ %126, %94 ]
%133 = phi double [ -1.000000e+10, %80 ], [ %125, %94 ]
%134 = phi double [ 1.000000e+10, %80 ], [ %123, %94 ]
%135 = icmp eq i64 %84, 0
br i1 %135, label %150, label %136
136: ; preds = %129, %136
%137 = phi i64 [ %147, %136 ], [ %132, %129 ]
%138 = phi double [ %146, %136 ], [ %133, %129 ]
%139 = phi double [ %144, %136 ], [ %134, %129 ]
%140 = phi i64 [ %148, %136 ], [ 0, %129 ]
%141 = getelementptr inbounds double, double* %13, i64 %137
%142 = load double, double* %141
%143 = fcmp ole double %142, %139
%144 = select i1 %143, double %142, double %139
%145 = fcmp ogt double %142, %138
%146 = select i1 %145, double %142, double %138
%147 = add nuw nsw i64 %137, 2
%148 = add i64 %140, 1
%149 = icmp eq i64 %148, %84
br i1 %149, label %150, label %136
150: ; preds = %129, %136, %78
%151 = phi double [ 1.000000e+10, %78 ], [ %130, %129 ], [ %144, %136 ]
%152 = phi double [ -1.000000e+10, %78 ], [ %131, %129 ], [ %146, %136 ]
%153 = fsub double %152, %151
%154 = fdiv double 2.550000e+02, %153
br i1 %21, label %155, label %194
155: ; preds = %150
%156 = zext i32 %1 to i64
br label %157
157: ; preds = %189, %155
%158 = phi i32 [ 0, %155 ], [ %190, %189 ]
%159 = phi i32 [ 0, %155 ], [ %186, %189 ]
%160 = mul nsw i32 %158, %1
%161 = and i32 %158, 15
%162 = icmp eq i32 %161, 8
br label %163
163: ; preds = %157, %185
%164 = phi i64 [ 0, %157 ], [ %187, %185 ]
%165 = phi i32 [ %159, %157 ], [ %186, %185 ]
%166 = trunc i64 %164 to i32
%167 = add nsw i32 %160, %166
%168 = shl nsw i32 %167, 1
%169 = or i32 %168, 1
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds double, double* %13, i64 %170
%172 = load double, double* %171
%173 = fsub double %172, %151
%174 = fmul double %154, %173
%175 = fptosi double %174 to i32
%176 = and i32 %166, 15
%177 = icmp eq i32 %176, 8
%178 = select i1 %162, i1 true, i1 %177
%179 = select i1 %178, i32 255, i32 0
%180 = icmp eq i32 %179, %175
br i1 %180, label %185, label %181
181: ; preds = %163
%182 = add nsw i32 %165, 1
%183 = load i32, i32* @stderr
%184 = tail call i32 (i32, i8*, ...) @fprintf(i32 %183, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0), i32 %158, i32 %166, i32 %179, i32 %175)
br label %185
185: ; preds = %163, %181
%186 = phi i32 [ %182, %181 ], [ %165, %163 ]
%187 = add nuw nsw i64 %164, 1
%188 = icmp eq i64 %187, %156
br i1 %188, label %189, label %163
189: ; preds = %185
%190 = add nuw nsw i32 %158, 1
%191 = icmp eq i32 %190, %1
br i1 %191, label %192, label %157
192: ; preds = %189
%193 = icmp eq i32 %186, 0
br i1 %193, label %194, label %197
194: ; preds = %150, %192
%195 = load i32, i32* @stderr
%196 = tail call i32 (i32, i8*, ...) @fprintf(i32 %195, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i32 %0)
br label %200
197: ; preds = %192
%198 = load i32, i32* @stderr
%199 = tail call i32 (i32, i8*, ...) @fprintf(i32 %198, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 %0, i32 %186)
br label %200
200: ; preds = %197, %194
%201 = call i32 @gettimeofday(%struct.timeval* %4, i32* null)
%202 = getelementptr inbounds %struct.timeval, %struct.timeval* %4, i64 0, i32 0
%203 = load i32, i32* %202
%204 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i64 0, i32 0
%205 = load i32, i32* %204
%206 = sub nsw i32 %203, %205
%207 = sitofp i32 %206 to double
%208 = getelementptr inbounds %struct.timeval, %struct.timeval* %4, i64 0, i32 1
%209 = load i32, i32* %208
%210 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i64 0, i32 1
%211 = load i32, i32* %210
%212 = sub nsw i32 %209, %211
%213 = sitofp i32 %212 to double
%214 = tail call double @llvm.fmuladd.f64(double %213, double 0x3EB0C6F7A0B5ED8D, double %207)
ret double %214
}