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

/* Variables and functions */
double atof(char *);
int atoi(char *);
int /*<<< orphan*/ exit(int);
double log(double);
int /*<<< orphan*/ *openfile_or_exit(char *, char *, int);
int pow(int, double);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ read_slap(int /*<<< orphan*/ *, unsigned int *,
                             unsigned int *, unsigned int **, unsigned int **);
int /*<<< orphan*/ read_slap_w(int /*<<< orphan*/ *, unsigned int *,
                               unsigned int *, unsigned int **, unsigned int **,
                               double **);
int main(int argc, char *argv[]) {
  if (argc < 6) {
    printf("Usage: %s <layer1> <layer2> <overlapping network> <N nodes> <b1> "
           "<b2>\n",
           argv[0]);
    exit(1);
  }
  FILE *filein0, *filein1, *filein, *fileout;
  unsigned int N0, K0, N1, K1, N, K;
  unsigned int *J_slap0, *r_slap0, *J_slap1, *r_slap1, *J_slap, *r_slap;
  double *w_slap;
  int i, j;
  double c_i, d_i, f_i, f_i_2;
  double alpha = (atof(argv[5]));
  double beta = (atof(argv[6]));
  int ov;
  int deg0, deg1;
  double degM, part, f_j, f_j_2;
  double degMrid, maxdegM = 200.0;
  double num1, num2, den, h;
  int number_nodes = (atoi(argv[4]));
  double M = 2.0;
  filein0 = openfile_or_exit(argv[1], "r", 2);
  read_slap(filein0, &K0, &N0, &J_slap0, &r_slap0);
  filein1 = openfile_or_exit(argv[2], "r", 2);
  read_slap(filein1, &K1, &N1, &J_slap1, &r_slap1);
  filein = openfile_or_exit(argv[3], "r", 2);
  read_slap_w(filein, &K, &N, &J_slap, &r_slap, &w_slap);
  int r_slap0_n[N + 1], r_slap1_n[N + 1];
  for (i = 0; i <= N; i++) {
    if (i <= N0) {
      r_slap0_n[i] = r_slap0[i];
    } else {
      r_slap0_n[i] = r_slap0[N0];
    }
    if (i <= N1) {
      r_slap1_n[i] = r_slap1[i];
    } else {
      r_slap1_n[i] = r_slap1[N1];
    }
  }
  double c_i_vec[N];
  double d_i_vec[N];
  double f_i_vec[N];
  for (i = 0; i < N; i++) {
    c_i = 0;
    d_i = 0;
    for (j = r_slap[i]; j < r_slap[i + 1]; j++) {
      ov = w_slap[j];
      deg0 = r_slap0_n[J_slap[j] + 1] - r_slap0_n[J_slap[j]];
      deg1 = r_slap1_n[J_slap[j] + 1] - r_slap1_n[J_slap[j]];
      degM = (deg0 + deg1) * 1.0;
      part = (M / (M - 1)) *
             (1 - (pow((deg0 / degM), 2)) - (pow((deg1 / degM), 2)));
      if (deg0 > 0.0000000001) {
        f_j = pow(deg0, alpha);
      } else {
        f_j = 0;
      }
      if (deg1 > 0.0000000001) {
        f_j_2 = pow(deg1, beta);
      } else {
        f_j_2 = 0;
      }
      c_i += ov * f_j * f_j_2;
      if (deg0 > 0.0000000001 && deg1 > 0.0000000001) {
        d_i += ov * f_j * f_j_2 * log((ov * f_j * f_j_2));
      }
    }
    c_i_vec[i] = c_i;
    d_i_vec[i] = d_i;
    deg0 = r_slap0_n[i + 1] - r_slap0_n[i];
    deg1 = r_slap1_n[i + 1] - r_slap1_n[i];
    degM = (deg0 + deg1) * 1.0;
    part =
        (M / (M - 1)) * (1 - (pow((deg0 / degM), 2)) - (pow((deg1 / degM), 2)));
    if (deg0 > 0.0000000001) {
      f_i = pow(deg0, alpha);
    } else {
      f_i = 0;
    }
    if (deg1 > 0.0000000001) {
      f_i_2 = pow(deg1, beta);
    } else {
      f_i_2 = 0;
    }
    f_i_vec[i] = f_i * f_i_2;
  }
  num1 = 0;
  num2 = 0;
  den = 0;
  for (i = 0; i < N; i++) {
    if (c_i_vec[i] > 0.0) {
      num1 += f_i_vec[i] * c_i_vec[i] * log(c_i_vec[i]);
    }
    num2 = num2 + f_i_vec[i] * d_i_vec[i];
    den = den + f_i_vec[i] * c_i_vec[i];
  }
  h = (num1 - num2) / den;
  printf("%f %f %f\n", h, alpha, beta);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1c0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x6,-0x8(%rbp)
jge    11d2 <main+0x42>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe57(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rdi
call   1040 <atof@plt>
movsd  %xmm0,-0xb0(%rbp)
ff
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%rdi
call   1040 <atof@plt>
movsd  %xmm0,-0xb8(%rbp)
ff
movabs $0x4069000000000000,%rax
mov    %rax,-0xf8(%rbp)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x11c(%rbp)
movabs $0x4000000000000000,%rax
mov    %rax,-0x128(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe1f(%rip),%rsi
mov    %rsi,-0x178(%rbp)
mov    $0x2,%edx
mov    %edx,-0x16c(%rbp)
call   1030 <openfile_or_exit@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    -0x38(%rbp),%rsi
lea    -0x34(%rbp),%rdx
lea    -0x50(%rbp),%rcx
lea    -0x58(%rbp),%r8
call   10b0 <read_slap@plt>
mov    -0x178(%rbp),%rsi
mov    -0x16c(%rbp),%edx
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1030 <openfile_or_exit@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
lea    -0x40(%rbp),%rsi
lea    -0x3c(%rbp),%rdx
lea    -0x60(%rbp),%rcx
lea    -0x68(%rbp),%r8
call   10b0 <read_slap@plt>
mov    -0x178(%rbp),%rsi
mov    -0x16c(%rbp),%edx
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1030 <openfile_or_exit@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
lea    -0x48(%rbp),%rsi
lea    -0x44(%rbp),%rdx
lea    -0x70(%rbp),%rcx
lea    -0x78(%rbp),%r8
lea    -0x80(%rbp),%r9
call   1060 <read_slap_w@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %rsp,%rcx
mov    %rcx,-0x130(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x168(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x138(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x160(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x140(%rbp)
movl   $0x0,-0x84(%rbp)
mov    -0x84(%rbp),%eax
cmp    -0x44(%rbp),%eax
ja     1410 <main+0x280>
mov    -0x84(%rbp),%eax
cmp    -0x34(%rbp),%eax
ja     138e <main+0x1fe>
mov    -0x168(%rbp),%rax
mov    -0x58(%rbp),%rcx
movslq -0x84(%rbp),%rdx
mov    (%rcx,%rdx,4),%edx
movslq -0x84(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
jmp    13a9 <main+0x219>
mov    -0x168(%rbp),%rax
mov    -0x58(%rbp),%rcx
mov    -0x34(%rbp),%edx
mov    (%rcx,%rdx,4),%edx
movslq -0x84(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x84(%rbp),%eax
cmp    -0x3c(%rbp),%eax
ja     13dc <main+0x24c>
mov    -0x160(%rbp),%rax
mov    -0x68(%rbp),%rcx
movslq -0x84(%rbp),%rdx
mov    (%rcx,%rdx,4),%edx
movslq -0x84(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
jmp    13f7 <main+0x267>
mov    -0x160(%rbp),%rax
mov    -0x68(%rbp),%rcx
mov    -0x3c(%rbp),%edx
mov    (%rcx,%rdx,4),%edx
movslq -0x84(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
jmp    13fc <main+0x26c>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    134c <main+0x1bc>
mov    -0x44(%rbp),%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x190(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x148(%rbp)
mov    -0x44(%rbp),%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x188(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x150(%rbp)
mov    -0x44(%rbp),%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x180(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x158(%rbp)
movl   $0x0,-0x84(%rbp)
mov    -0x84(%rbp),%eax
cmp    -0x44(%rbp),%eax
jae    1998 <main+0x808>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x78(%rbp),%rax
movslq -0x84(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x88(%rbp)
mov    -0x88(%rbp),%eax
mov    -0x78(%rbp),%rcx
mov    -0x84(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rdx
cmp    (%rcx,%rdx,4),%eax
jae    1790 <main+0x600>
mov    -0x160(%rbp),%rcx
mov    -0x168(%rbp),%rdx
mov    -0x80(%rbp),%rax
movslq -0x88(%rbp),%rsi
cvttsd2si (%rax,%rsi,8),%eax
mov    %eax,-0xbc(%rbp)
mov    -0x70(%rbp),%rax
movslq -0x88(%rbp),%rsi
mov    (%rax,%rsi,4),%eax
add    $0x1,%eax
mov    %eax,%eax
mov    (%rdx,%rax,4),%eax
mov    -0x70(%rbp),%rsi
movslq -0x88(%rbp),%rdi
mov    (%rsi,%rdi,4),%esi
sub    (%rdx,%rsi,4),%eax
mov    %eax,-0xc0(%rbp)
mov    -0x70(%rbp),%rax
movslq -0x88(%rbp),%rdx
mov    (%rax,%rdx,4),%eax
add    $0x1,%eax
mov    %eax,%eax
mov    (%rcx,%rax,4),%eax
mov    -0x70(%rbp),%rdx
movslq -0x88(%rbp),%rsi
mov    (%rdx,%rsi,4),%edx
sub    (%rcx,%rdx,4),%eax
mov    %eax,-0xc4(%rbp)
mov    -0xc0(%rbp),%eax
add    -0xc4(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  0xa96(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x128(%rbp),%xmm0
ff
movsd  -0x128(%rbp),%xmm1
ff
movsd  0xa72(%rip),%xmm2
subsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x1a0(%rbp)
ff
cvtsi2sdl -0xc0(%rbp),%xmm0
ff
divsd  -0xd0(%rbp),%xmm0
ff
cvttsd2si %xmm0,%edi
movsd  0xa3e(%rip),%xmm0
call   1080 <pow@plt>
mov    %eax,%ecx
mov    $0x1,%eax
sub    %ecx,%eax
mov    %eax,-0x194(%rbp)
cvtsi2sdl -0xc4(%rbp),%xmm0
ff
divsd  -0xd0(%rbp),%xmm0
ff
cvttsd2si %xmm0,%edi
movsd  0xa0e(%rip),%xmm0
call   1080 <pow@plt>
movsd  -0x1a0(%rbp),%xmm0
ff
mov    %eax,%ecx
mov    -0x194(%rbp),%eax
sub    %ecx,%eax
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
cvtsi2sdl -0xc0(%rbp),%xmm0
ff
movsd  0x9cf(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    165f <main+0x4cf>
mov    -0xc0(%rbp),%edi
movsd  -0xb0(%rbp),%xmm0
ff
call   1080 <pow@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
jmp    166a <main+0x4da>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
cvtsi2sdl -0xc4(%rbp),%xmm0
ff
movsd  0x986(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    16a8 <main+0x518>
mov    -0xc4(%rbp),%edi
movsd  -0xb8(%rbp),%xmm0
ff
call   1080 <pow@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
jmp    16b3 <main+0x523>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
cvtsi2sdl -0xbc(%rbp),%xmm0
ff
mulsd  -0xe0(%rbp),%xmm0
ff
movsd  -0xe8(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
cvtsi2sdl -0xc0(%rbp),%xmm0
ff
movsd  0x90d(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1777 <main+0x5e7>
cvtsi2sdl -0xc4(%rbp),%xmm0
ff
movsd  0x8f3(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1777 <main+0x5e7>
cvtsi2sdl -0xbc(%rbp),%xmm0
ff
mulsd  -0xe0(%rbp),%xmm0
ff
mulsd  -0xe8(%rbp),%xmm0
ff
movsd  %xmm0,-0x1a8(%rbp)
ff
cvtsi2sdl -0xbc(%rbp),%xmm0
ff
mulsd  -0xe0(%rbp),%xmm0
ff
mulsd  -0xe8(%rbp),%xmm0
ff
call   1070 <log@plt>
movaps %xmm0,%xmm2
movsd  -0x1a8(%rbp),%xmm0
ff
movsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
jmp    177c <main+0x5ec>
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    14c5 <main+0x335>
mov    -0x160(%rbp),%rcx
mov    -0x168(%rbp),%rdx
mov    -0x188(%rbp),%rax
mov    -0x190(%rbp),%rsi
movsd  -0x90(%rbp),%xmm0
ff
movslq -0x84(%rbp),%rdi
movsd  %xmm0,(%rsi,%rdi,8)
movsd  -0x98(%rbp),%xmm0
ff
movslq -0x84(%rbp),%rsi
movsd  %xmm0,(%rax,%rsi,8)
mov    -0x84(%rbp),%eax
add    $0x1,%eax
cltq
mov    (%rdx,%rax,4),%eax
movslq -0x84(%rbp),%rsi
sub    (%rdx,%rsi,4),%eax
mov    %eax,-0xc0(%rbp)
mov    -0x84(%rbp),%eax
add    $0x1,%eax
cltq
mov    (%rcx,%rax,4),%eax
movslq -0x84(%rbp),%rdx
sub    (%rcx,%rdx,4),%eax
mov    %eax,-0xc4(%rbp)
mov    -0xc0(%rbp),%eax
add    -0xc4(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  0x7e8(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x128(%rbp),%xmm0
ff
movsd  -0x128(%rbp),%xmm1
ff
movsd  0x7c4(%rip),%xmm2
subsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x1b8(%rbp)
ff
cvtsi2sdl -0xc0(%rbp),%xmm0
ff
divsd  -0xd0(%rbp),%xmm0
ff
cvttsd2si %xmm0,%edi
movsd  0x790(%rip),%xmm0
call   1080 <pow@plt>
mov    %eax,%ecx
mov    $0x1,%eax
sub    %ecx,%eax
mov    %eax,-0x1ac(%rbp)
cvtsi2sdl -0xc4(%rbp),%xmm0
ff
divsd  -0xd0(%rbp),%xmm0
ff
cvttsd2si %xmm0,%edi
movsd  0x760(%rip),%xmm0
call   1080 <pow@plt>
movsd  -0x1b8(%rbp),%xmm0
ff
mov    %eax,%ecx
mov    -0x1ac(%rbp),%eax
sub    %ecx,%eax
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
cvtsi2sdl -0xc0(%rbp),%xmm0
ff
movsd  0x721(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    190d <main+0x77d>
mov    -0xc0(%rbp),%edi
movsd  -0xb0(%rbp),%xmm0
ff
call   1080 <pow@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
jmp    1918 <main+0x788>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
cvtsi2sdl -0xc4(%rbp),%xmm0
ff
movsd  0x6d8(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1956 <main+0x7c6>
mov    -0xc4(%rbp),%edi
movsd  -0xb8(%rbp),%xmm0
ff
call   1080 <pow@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
jmp    1961 <main+0x7d1>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x180(%rbp),%rax
movsd  -0xa0(%rbp),%xmm0
ff
mulsd  -0xa8(%rbp),%xmm0
ff
movslq -0x84(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    148c <main+0x2fc>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
movl   $0x0,-0x84(%rbp)
mov    -0x84(%rbp),%eax
cmp    -0x44(%rbp),%eax
jae    1add <main+0x94d>
mov    -0x190(%rbp),%rax
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1a54 <main+0x8c4>
mov    -0x190(%rbp),%rax
mov    -0x180(%rbp),%rcx
movslq -0x84(%rbp),%rdx
movsd  (%rcx,%rdx,8),%xmm0
movslq -0x84(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x1c0(%rbp)
ff
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1070 <log@plt>
movaps %xmm0,%xmm2
movsd  -0x1c0(%rbp),%xmm0
ff
movsd  -0x100(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
mov    -0x190(%rbp),%rax
mov    -0x180(%rbp),%rcx
mov    -0x188(%rbp),%rdx
movsd  -0x108(%rbp),%xmm1
ff
movslq -0x84(%rbp),%rsi
movsd  (%rcx,%rsi,8),%xmm0
movslq -0x84(%rbp),%rsi
movsd  (%rdx,%rsi,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0x110(%rbp),%xmm1
ff
movslq -0x84(%rbp),%rdx
movsd  (%rcx,%rdx,8),%xmm0
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    19c3 <main+0x833>
movsd  -0x100(%rbp),%xmm0
ff
subsd  -0x108(%rbp),%xmm0
ff
divsd  -0x110(%rbp),%xmm0
ff
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0x118(%rbp),%xmm0
ff
movsd  -0xb0(%rbp),%xmm1
ff
movsd  -0xb8(%rbp),%xmm2
ff
lea    0x545(%rip),%rdi
mov    $0x3,%al
call   1050 <printf@plt>
mov    -0x130(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe8,%rsp
mov    %rsi,%rbx
cmp    $0x5,%edi
jle    179b <main+0x61b>
mov    0x28(%rbx),%rdi
call   1040 <atof@plt>
movsd  %xmm0,-0x60(%rbp)
mov    0x30(%rbx),%rdi
call   1040 <atof@plt>
movsd  %xmm0,-0x58(%rbp)
mov    0x8(%rbx),%rdi
lea    0xe98(%rip),%r14
mov    %r14,%rsi
mov    $0x2,%edx
call   1030 <openfile_or_exit@plt>
lea    -0xf4(%rbp),%rsi
lea    -0x68(%rbp),%rdx
lea    -0x108(%rbp),%rcx
lea    -0xe8(%rbp),%r8
mov    %rax,%rdi
call   10a0 <read_slap@plt>
mov    0x10(%rbx),%rdi
mov    %r14,%rsi
mov    $0x2,%edx
call   1030 <openfile_or_exit@plt>
lea    -0xf0(%rbp),%rsi
lea    -0x64(%rbp),%rdx
lea    -0x100(%rbp),%rcx
lea    -0xe0(%rbp),%r8
mov    %rax,%rdi
call   10a0 <read_slap@plt>
mov    0x18(%rbx),%rdi
mov    %r14,%rsi
mov    $0x2,%edx
call   1030 <openfile_or_exit@plt>
lea    -0xec(%rbp),%rsi
lea    -0x34(%rbp),%rdx
lea    -0xd8(%rbp),%rcx
lea    -0xa8(%rbp),%r8
lea    -0xd0(%rbp),%r9
mov    %rax,%rdi
call   1060 <read_slap_w@plt>
mov    %rsp,%r14
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %rsp,%r13
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r13
mov    %r13,%rsp
mov    -0x34(%rbp),%r8d
lea    0x1(%r8),%r9d
mov    %rsp,%r12
lea    0xf(,%r9,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r12
mov    %r12,%rsp
mov    -0x68(%rbp),%edx
mov    -0x64(%rbp),%esi
mov    -0xe8(%rbp),%r11
mov    -0xe0(%rbp),%rbx
test   %r8,%r8
je     178a <main+0x60a>
mov    %r9d,%r10d
and    $0xfffffffe,%r10d
mov    $0x1,%ecx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rcx,%rax
lea    -0x1(%rcx),%rdi
cmp    %rdx,%rdi
mov    %rdi,%rcx
cmova  %rdx,%rcx
mov    (%r11,%rcx,4),%ecx
mov    %ecx,-0x4(%r13,%rax,4)
cmp    %rsi,%rdi
cmova  %rsi,%rdi
mov    (%rbx,%rdi,4),%ecx
cmp    %rdx,%rax
mov    %rax,%rdi
cmova  %rdx,%rdi
mov    %ecx,-0x4(%r12,%rax,4)
mov    (%r11,%rdi,4),%ecx
mov    %ecx,0x0(%r13,%rax,4)
cmp    %rsi,%rax
mov    %rax,%rcx
cmova  %rsi,%rcx
mov    (%rbx,%rcx,4),%ecx
mov    %ecx,(%r12,%rax,4)
lea    0x2(%rax),%rcx
add    $0x1,%rax
cmp    %r10,%rax
jne    12d0 <main+0x150>
add    $0xffffffffffffffff,%rcx
test   $0x1,%r9b
je     1352 <main+0x1d2>
cmp    %rdx,%rcx
cmovbe %rcx,%rdx
cmp    %rsi,%rcx
cmovbe %rcx,%rsi
mov    (%r11,%rdx,4),%eax
mov    %eax,0x0(%r13,%rcx,4)
mov    (%rbx,%rsi,4),%eax
mov    %eax,(%r12,%rcx,4)
mov    %rsp,%rcx
lea    0xf(,%r8,8),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rcx
mov    %rcx,-0x98(%rbp)
mov    %rcx,%rsp
mov    %rsp,%rcx
sub    %rax,%rcx
mov    %rcx,-0x90(%rbp)
mov    %rcx,%rsp
mov    %rsp,%rcx
sub    %rax,%rcx
mov    %rcx,-0x88(%rbp)
mov    %rcx,%rsp
movsd  0xc6a(%rip),%xmm1
test   %r8,%r8
je     175a <main+0x5da>
mov    %r14,-0xc8(%rbp)
xor    %ecx,%ecx
mov    %r12,-0xc0(%rbp)
jmp    13ea <main+0x26a>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mulsd  %xmm0,%xmm1
mov    -0x88(%rbp),%rax
mov    -0xa0(%rbp),%rcx
movsd  %xmm1,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
mov    -0x80(%rbp),%rdx
mov    %rdx,%rcx
cmp    %rax,%rdx
jae    167f <main+0x4ff>
mov    -0xa8(%rbp),%rax
movslq (%rax,%rcx,4),%r15
lea    0x1(%rcx),%rdx
mov    %rdx,-0x80(%rbp)
xorpd  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorpd  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    %rcx,-0xa0(%rbp)
cmp    0x4(%rax,%rcx,4),%r15d
jae    15a0 <main+0x420>
xorpd  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
xorpd  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
jmp    147b <main+0x2fb>
cs nopw 0x0(%rax,%rax,1)
nop
xorps  %xmm0,%xmm0
cvtsi2sd %r12d,%xmm0
mulsd  %xmm0,%xmm1
mulsd  0xbbc(%rip),%xmm1
movsd  -0x50(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
add    $0x1,%r15
mov    -0xa8(%rbp),%rax
mov    -0x80(%rbp),%rcx
cmp    %r15d,(%rax,%rcx,4)
jbe    15a0 <main+0x420>
mov    -0xd0(%rbp),%rax
cvttsd2si (%rax,%r15,8),%r12d
mov    -0xd8(%rbp),%rax
mov    (%rax,%r15,4),%eax
lea    0x1(%rax),%ecx
mov    0x0(%r13,%rcx,4),%ebx
sub    0x0(%r13,%rax,4),%ebx
mov    -0xc0(%rbp),%rdx
mov    (%rdx,%rcx,4),%r14d
sub    (%rdx,%rax,4),%r14d
lea    (%r14,%rbx,1),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  %xmm1,-0x30(%rbp)
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
movsd  0xb32(%rip),%xmm0
call   1080 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %r14d,%xmm0
divsd  -0x30(%rbp),%xmm0
cvttsd2si %xmm0,%edi
movsd  0xb14(%rip),%xmm0
call   1080 <pow@plt>
xorpd  %xmm1,%xmm1
test   %ebx,%ebx
jle    1514 <main+0x394>
mov    %ebx,%edi
movsd  -0x60(%rbp),%xmm0
call   1080 <pow@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
test   %r14d,%r14d
jle    1440 <main+0x2c0>
mov    %r14d,%edi
movsd  -0x58(%rbp),%xmm0
movsd  %xmm1,-0x30(%rbp)
call   1080 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
xorps  %xmm1,%xmm1
cvtsi2sd %r12d,%xmm1
movsd  -0x30(%rbp),%xmm2
mulsd  %xmm1,%xmm2
movsd  %xmm2,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm1
mulsd  %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
test   %ebx,%ebx
jle    1462 <main+0x2e2>
test   %r14d,%r14d
jle    1462 <main+0x2e2>
movapd %xmm1,%xmm0
movsd  %xmm1,-0x30(%rbp)
call   1070 <log@plt>
mulsd  -0x30(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,-0x40(%rbp)
jmp    1462 <main+0x2e2>
nopw   0x0(%rax,%rax,1)
mov    -0x98(%rbp),%rax
mov    -0xa0(%rbp),%rcx
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x80(%rbp),%rax
mov    0x0(%r13,%rax,4),%ebx
sub    0x0(%r13,%rcx,4),%ebx
mov    -0xc0(%rbp),%r12
mov    (%r12,%rax,4),%r14d
sub    (%r12,%rcx,4),%r14d
lea    (%r14,%rbx,1),%eax
xorps  %xmm2,%xmm2
cvtsi2sd %eax,%xmm2
movsd  %xmm2,-0x30(%rbp)
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
mov    -0x90(%rbp),%rax
movsd  -0x40(%rbp),%xmm1
movsd  %xmm1,(%rax,%rcx,8)
divsd  %xmm2,%xmm0
cvttsd2si %xmm0,%edi
movsd  0x9fb(%rip),%xmm0
call   1080 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %r14d,%xmm0
divsd  -0x30(%rbp),%xmm0
cvttsd2si %xmm0,%edi
movsd  0x9dd(%rip),%xmm0
call   1080 <pow@plt>
xorpd  %xmm0,%xmm0
xorpd  %xmm1,%xmm1
test   %ebx,%ebx
jle    1653 <main+0x4d3>
mov    %ebx,%edi
movsd  -0x60(%rbp),%xmm0
call   1080 <pow@plt>
xorpd  %xmm0,%xmm0
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
test   %r14d,%r14d
jle    13c0 <main+0x240>
mov    %r14d,%edi
movsd  -0x58(%rbp),%xmm0
movsd  %xmm1,-0x30(%rbp)
call   1080 <pow@plt>
movsd  -0x30(%rbp),%xmm1
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
jmp    13c0 <main+0x240>
test   %eax,%eax
mov    -0xc8(%rbp),%r14
movsd  0x970(%rip),%xmm1
je     175a <main+0x5da>
xorpd  %xmm2,%xmm2
xorpd  %xmm0,%xmm0
xor    %ebx,%ebx
xorpd  %xmm1,%xmm1
jmp    16d3 <main+0x553>
cs nopw 0x0(%rax,%rax,1)
unpcklpd %xmm4,%xmm4
mov    -0x90(%rbp),%rcx
movhpd (%rcx,%rbx,8),%xmm3
mulpd  %xmm4,%xmm3
addpd  %xmm3,%xmm2
add    $0x1,%rbx
mov    %eax,%ecx
cmp    %rcx,%rbx
jae    174a <main+0x5ca>
mov    -0x98(%rbp),%rcx
movsd  (%rcx,%rbx,8),%xmm3
ucomisd %xmm0,%xmm3
mov    -0x88(%rbp),%rcx
movsd  (%rcx,%rbx,8),%xmm4
jbe    16b0 <main+0x530>
movapd %xmm3,%xmm0
mulsd  %xmm4,%xmm0
movsd  %xmm0,-0x40(%rbp)
movapd %xmm3,%xmm0
movsd  %xmm1,-0x30(%rbp)
movapd %xmm2,-0x50(%rbp)
movapd %xmm3,-0x80(%rbp)
movapd %xmm4,-0xc0(%rbp)
ff
call   1070 <log@plt>
movapd -0xc0(%rbp),%xmm4
ff
movapd -0x80(%rbp),%xmm3
movapd -0x50(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm1
mulsd  -0x40(%rbp),%xmm0
addsd  %xmm0,%xmm1
xorpd  %xmm0,%xmm0
mov    -0x34(%rbp),%eax
jmp    16b0 <main+0x530>
movapd %xmm2,%xmm0
unpckhpd %xmm2,%xmm0
subsd  %xmm0,%xmm1
divsd  %xmm2,%xmm1
lea    0x900(%rip),%rdi
movapd %xmm1,%xmm0
movsd  -0x60(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm2
mov    $0x3,%al
call   1050 <printf@plt>
mov    %r14,%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %ecx,%ecx
test   $0x1,%r9b
jne    1334 <main+0x1b4>
jmp    1352 <main+0x1d2>
mov    (%rbx),%rsi
lea    0x873(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [71 x i8] c"Usage: %s <layer1> <layer2> <overlapping network> <N nodes> <b1> <b2>\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [10 x i8] c"%f %f %f\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 i32*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32*
%17 = alloca i32*
%18 = alloca i32*
%19 = alloca i32*
%20 = alloca i32*
%21 = alloca i32*
%22 = alloca double*
%23 = alloca i32
%24 = alloca i32
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
%30 = alloca double
%31 = alloca i32
%32 = alloca i32
%33 = alloca i32
%34 = alloca double
%35 = alloca double
%36 = alloca double
%37 = alloca double
%38 = alloca double
%39 = alloca double
%40 = alloca double
%41 = alloca double
%42 = alloca double
%43 = alloca double
%44 = alloca i32
%45 = alloca double
%46 = alloca i8*
%47 = alloca i64
%48 = alloca i64
%49 = alloca i64
%50 = alloca i64
%51 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%52 = load i32, i32* %4
%53 = icmp slt i32 %52, 6
br i1 %53, label %54, label %60
54: ; preds = %2
%55 = load i8**, i8*** %5
%56 = getelementptr inbounds i8*, i8** %55, i64 0
%57 = load i8*, i8** %56
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* %57)
%59 = call i32 @exit(i32 1)
unreachable
60: ; preds = %2
%61 = load i8**, i8*** %5
%62 = getelementptr inbounds i8*, i8** %61, i64 5
%63 = load i8*, i8** %62
%64 = call double @atof(i8* %63)
store double %64, double* %29
%65 = load i8**, i8*** %5
%66 = getelementptr inbounds i8*, i8** %65, i64 6
%67 = load i8*, i8** %66
%68 = call double @atof(i8* %67)
store double %68, double* %30
store double 2.000000e+02, double* %39
%69 = load i8**, i8*** %5
%70 = getelementptr inbounds i8*, i8** %69, i64 4
%71 = load i8*, i8** %70
%72 = call i32 @atoi(i8* %71)
store i32 %72, i32* %44
store double 2.000000e+00, double* %45
%73 = load i8**, i8*** %5
%74 = getelementptr inbounds i8*, i8** %73, i64 1
%75 = load i8*, i8** %74
%76 = call i32* @openfile_or_exit(i8* %75, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 2)
store i32* %76, i32** %6
%77 = load i32*, i32** %6
%78 = call i32 @read_slap(i32* %77, i32* %11, i32* %10, i32** %16, i32** %17)
%79 = load i8**, i8*** %5
%80 = getelementptr inbounds i8*, i8** %79, i64 2
%81 = load i8*, i8** %80
%82 = call i32* @openfile_or_exit(i8* %81, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 2)
store i32* %82, i32** %7
%83 = load i32*, i32** %7
%84 = call i32 @read_slap(i32* %83, i32* %13, i32* %12, i32** %18, i32** %19)
%85 = load i8**, i8*** %5
%86 = getelementptr inbounds i8*, i8** %85, i64 3
%87 = load i8*, i8** %86
%88 = call i32* @openfile_or_exit(i8* %87, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 2)
store i32* %88, i32** %8
%89 = load i32*, i32** %8
%90 = call i32 @read_slap_w(i32* %89, i32* %15, i32* %14, i32** %20, i32** %21, double** %22)
%91 = load i32, i32* %14
%92 = add i32 %91, 1
%93 = zext i32 %92 to i64
%94 = call i8* @llvm.stacksave()
store i8* %94, i8** %46
%95 = alloca i32, i64 %93
store i64 %93, i64* %47
%96 = load i32, i32* %14
%97 = add i32 %96, 1
%98 = zext i32 %97 to i64
%99 = alloca i32, i64 %98
store i64 %98, i64* %48
store i32 0, i32* %23
br label %100
100: ; preds = %149, %60
%101 = load i32, i32* %23
%102 = load i32, i32* %14
%103 = icmp ule i32 %101, %102
br i1 %103, label %104, label %152
104: ; preds = %100
%105 = load i32, i32* %23
%106 = load i32, i32* %10
%107 = icmp ule i32 %105, %106
br i1 %107, label %108, label %117
108: ; preds = %104
%109 = load i32*, i32** %17
%110 = load i32, i32* %23
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i32, i32* %109, i64 %111
%113 = load i32, i32* %112
%114 = load i32, i32* %23
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i32, i32* %95, i64 %115
store i32 %113, i32* %116
br label %126
117: ; preds = %104
%118 = load i32*, i32** %17
%119 = load i32, i32* %10
%120 = zext i32 %119 to i64
%121 = getelementptr inbounds i32, i32* %118, i64 %120
%122 = load i32, i32* %121
%123 = load i32, i32* %23
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i32, i32* %95, i64 %124
store i32 %122, i32* %125
br label %126
126: ; preds = %117, %108
%127 = load i32, i32* %23
%128 = load i32, i32* %12
%129 = icmp ule i32 %127, %128
br i1 %129, label %130, label %139
130: ; preds = %126
%131 = load i32*, i32** %19
%132 = load i32, i32* %23
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i32, i32* %131, i64 %133
%135 = load i32, i32* %134
%136 = load i32, i32* %23
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds i32, i32* %99, i64 %137
store i32 %135, i32* %138
br label %148
139: ; preds = %126
%140 = load i32*, i32** %19
%141 = load i32, i32* %12
%142 = zext i32 %141 to i64
%143 = getelementptr inbounds i32, i32* %140, i64 %142
%144 = load i32, i32* %143
%145 = load i32, i32* %23
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds i32, i32* %99, i64 %146
store i32 %144, i32* %147
br label %148
148: ; preds = %139, %130
br label %149
149: ; preds = %148
%150 = load i32, i32* %23
%151 = add nsw i32 %150, 1
store i32 %151, i32* %23
br label %100
152: ; preds = %100
%153 = load i32, i32* %14
%154 = zext i32 %153 to i64
%155 = alloca double, i64 %154
store i64 %154, i64* %49
%156 = load i32, i32* %14
%157 = zext i32 %156 to i64
%158 = alloca double, i64 %157
store i64 %157, i64* %50
%159 = load i32, i32* %14
%160 = zext i32 %159 to i64
%161 = alloca double, i64 %160
store i64 %160, i64* %51
store i32 0, i32* %23
br label %162
162: ; preds = %383, %152
%163 = load i32, i32* %23
%164 = load i32, i32* %14
%165 = icmp ult i32 %163, %164
br i1 %165, label %166, label %386
166: ; preds = %162
store double 0.000000e+00, double* %25
store double 0.000000e+00, double* %26
%167 = load i32*, i32** %21
%168 = load i32, i32* %23
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds i32, i32* %167, i64 %169
%171 = load i32, i32* %170
store i32 %171, i32* %24
br label %172
172: ; preds = %300, %166
%173 = load i32, i32* %24
%174 = load i32*, i32** %21
%175 = load i32, i32* %23
%176 = add nsw i32 %175, 1
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds i32, i32* %174, i64 %177
%179 = load i32, i32* %178
%180 = icmp ult i32 %173, %179
br i1 %180, label %181, label %303
181: ; preds = %172
%182 = load double*, double** %22
%183 = load i32, i32* %24
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds double, double* %182, i64 %184
%186 = load double, double* %185
%187 = fptosi double %186 to i32
store i32 %187, i32* %31
%188 = load i32*, i32** %20
%189 = load i32, i32* %24
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds i32, i32* %188, i64 %190
%192 = load i32, i32* %191
%193 = add i32 %192, 1
%194 = zext i32 %193 to i64
%195 = getelementptr inbounds i32, i32* %95, i64 %194
%196 = load i32, i32* %195
%197 = load i32*, i32** %20
%198 = load i32, i32* %24
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds i32, i32* %197, i64 %199
%201 = load i32, i32* %200
%202 = zext i32 %201 to i64
%203 = getelementptr inbounds i32, i32* %95, i64 %202
%204 = load i32, i32* %203
%205 = sub nsw i32 %196, %204
store i32 %205, i32* %32
%206 = load i32*, i32** %20
%207 = load i32, i32* %24
%208 = sext i32 %207 to i64
%209 = getelementptr inbounds i32, i32* %206, i64 %208
%210 = load i32, i32* %209
%211 = add i32 %210, 1
%212 = zext i32 %211 to i64
%213 = getelementptr inbounds i32, i32* %99, i64 %212
%214 = load i32, i32* %213
%215 = load i32*, i32** %20
%216 = load i32, i32* %24
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds i32, i32* %215, i64 %217
%219 = load i32, i32* %218
%220 = zext i32 %219 to i64
%221 = getelementptr inbounds i32, i32* %99, i64 %220
%222 = load i32, i32* %221
%223 = sub nsw i32 %214, %222
store i32 %223, i32* %33
%224 = load i32, i32* %32
%225 = load i32, i32* %33
%226 = add nsw i32 %224, %225
%227 = sitofp i32 %226 to double
%228 = fmul double %227, 1.000000e+00
store double %228, double* %34
%229 = load double, double* %45
%230 = load double, double* %45
%231 = fsub double %230, 1.000000e+00
%232 = fdiv double %229, %231
%233 = load i32, i32* %32
%234 = sitofp i32 %233 to double
%235 = load double, double* %34
%236 = fdiv double %234, %235
%237 = fptosi double %236 to i32
%238 = call i32 @pow(i32 %237, double 2.000000e+00)
%239 = sub nsw i32 1, %238
%240 = load i32, i32* %33
%241 = sitofp i32 %240 to double
%242 = load double, double* %34
%243 = fdiv double %241, %242
%244 = fptosi double %243 to i32
%245 = call i32 @pow(i32 %244, double 2.000000e+00)
%246 = sub nsw i32 %239, %245
%247 = sitofp i32 %246 to double
%248 = fmul double %232, %247
store double %248, double* %35
%249 = load i32, i32* %32
%250 = sitofp i32 %249 to double
%251 = fcmp ogt double %250, 1.000000e-10
br i1 %251, label %252, label %257
252: ; preds = %181
%253 = load i32, i32* %32
%254 = load double, double* %29
%255 = call i32 @pow(i32 %253, double %254)
%256 = sitofp i32 %255 to double
store double %256, double* %36
br label %258
257: ; preds = %181
store double 0.000000e+00, double* %36
br label %258
258: ; preds = %257, %252
%259 = load i32, i32* %33
%260 = sitofp i32 %259 to double
%261 = fcmp ogt double %260, 1.000000e-10
br i1 %261, label %262, label %267
262: ; preds = %258
%263 = load i32, i32* %33
%264 = load double, double* %30
%265 = call i32 @pow(i32 %263, double %264)
%266 = sitofp i32 %265 to double
store double %266, double* %37
br label %268
267: ; preds = %258
store double 0.000000e+00, double* %37
br label %268
268: ; preds = %267, %262
%269 = load i32, i32* %31
%270 = sitofp i32 %269 to double
%271 = load double, double* %36
%272 = fmul double %270, %271
%273 = load double, double* %37
%274 = load double, double* %25
%275 = call double @llvm.fmuladd.f64(double %272, double %273, double %274)
store double %275, double* %25
%276 = load i32, i32* %32
%277 = sitofp i32 %276 to double
%278 = fcmp ogt double %277, 1.000000e-10
br i1 %278, label %279, label %299
279: ; preds = %268
%280 = load i32, i32* %33
%281 = sitofp i32 %280 to double
%282 = fcmp ogt double %281, 1.000000e-10
br i1 %282, label %283, label %299
283: ; preds = %279
%284 = load i32, i32* %31
%285 = sitofp i32 %284 to double
%286 = load double, double* %36
%287 = fmul double %285, %286
%288 = load double, double* %37
%289 = fmul double %287, %288
%290 = load i32, i32* %31
%291 = sitofp i32 %290 to double
%292 = load double, double* %36
%293 = fmul double %291, %292
%294 = load double, double* %37
%295 = fmul double %293, %294
%296 = call double @log(double %295)
%297 = load double, double* %26
%298 = call double @llvm.fmuladd.f64(double %289, double %296, double %297)
store double %298, double* %26
br label %299
299: ; preds = %283, %279, %268
br label %300
300: ; preds = %299
%301 = load i32, i32* %24
%302 = add nsw i32 %301, 1
store i32 %302, i32* %24
br label %172
303: ; preds = %172
%304 = load double, double* %25
%305 = load i32, i32* %23
%306 = sext i32 %305 to i64
%307 = getelementptr inbounds double, double* %155, i64 %306
store double %304, double* %307
%308 = load double, double* %26
%309 = load i32, i32* %23
%310 = sext i32 %309 to i64
%311 = getelementptr inbounds double, double* %158, i64 %310
store double %308, double* %311
%312 = load i32, i32* %23
%313 = add nsw i32 %312, 1
%314 = sext i32 %313 to i64
%315 = getelementptr inbounds i32, i32* %95, i64 %314
%316 = load i32, i32* %315
%317 = load i32, i32* %23
%318 = sext i32 %317 to i64
%319 = getelementptr inbounds i32, i32* %95, i64 %318
%320 = load i32, i32* %319
%321 = sub nsw i32 %316, %320
store i32 %321, i32* %32
%322 = load i32, i32* %23
%323 = add nsw i32 %322, 1
%324 = sext i32 %323 to i64
%325 = getelementptr inbounds i32, i32* %99, i64 %324
%326 = load i32, i32* %325
%327 = load i32, i32* %23
%328 = sext i32 %327 to i64
%329 = getelementptr inbounds i32, i32* %99, i64 %328
%330 = load i32, i32* %329
%331 = sub nsw i32 %326, %330
store i32 %331, i32* %33
%332 = load i32, i32* %32
%333 = load i32, i32* %33
%334 = add nsw i32 %332, %333
%335 = sitofp i32 %334 to double
%336 = fmul double %335, 1.000000e+00
store double %336, double* %34
%337 = load double, double* %45
%338 = load double, double* %45
%339 = fsub double %338, 1.000000e+00
%340 = fdiv double %337, %339
%341 = load i32, i32* %32
%342 = sitofp i32 %341 to double
%343 = load double, double* %34
%344 = fdiv double %342, %343
%345 = fptosi double %344 to i32
%346 = call i32 @pow(i32 %345, double 2.000000e+00)
%347 = sub nsw i32 1, %346
%348 = load i32, i32* %33
%349 = sitofp i32 %348 to double
%350 = load double, double* %34
%351 = fdiv double %349, %350
%352 = fptosi double %351 to i32
%353 = call i32 @pow(i32 %352, double 2.000000e+00)
%354 = sub nsw i32 %347, %353
%355 = sitofp i32 %354 to double
%356 = fmul double %340, %355
store double %356, double* %35
%357 = load i32, i32* %32
%358 = sitofp i32 %357 to double
%359 = fcmp ogt double %358, 1.000000e-10
br i1 %359, label %360, label %365
360: ; preds = %303
%361 = load i32, i32* %32
%362 = load double, double* %29
%363 = call i32 @pow(i32 %361, double %362)
%364 = sitofp i32 %363 to double
store double %364, double* %27
br label %366
365: ; preds = %303
store double 0.000000e+00, double* %27
br label %366
366: ; preds = %365, %360
%367 = load i32, i32* %33
%368 = sitofp i32 %367 to double
%369 = fcmp ogt double %368, 1.000000e-10
br i1 %369, label %370, label %375
370: ; preds = %366
%371 = load i32, i32* %33
%372 = load double, double* %30
%373 = call i32 @pow(i32 %371, double %372)
%374 = sitofp i32 %373 to double
store double %374, double* %28
br label %376
375: ; preds = %366
store double 0.000000e+00, double* %28
br label %376
376: ; preds = %375, %370
%377 = load double, double* %27
%378 = load double, double* %28
%379 = fmul double %377, %378
%380 = load i32, i32* %23
%381 = sext i32 %380 to i64
%382 = getelementptr inbounds double, double* %161, i64 %381
store double %379, double* %382
br label %383
383: ; preds = %376
%384 = load i32, i32* %23
%385 = add nsw i32 %384, 1
store i32 %385, i32* %23
br label %162
386: ; preds = %162
store double 0.000000e+00, double* %40
store double 0.000000e+00, double* %41
store double 0.000000e+00, double* %42
store i32 0, i32* %23
br label %387
387: ; preds = %435, %386
%388 = load i32, i32* %23
%389 = load i32, i32* %14
%390 = icmp ult i32 %388, %389
br i1 %390, label %391, label %438
391: ; preds = %387
%392 = load i32, i32* %23
%393 = sext i32 %392 to i64
%394 = getelementptr inbounds double, double* %155, i64 %393
%395 = load double, double* %394
%396 = fcmp ogt double %395, 0.000000e+00
br i1 %396, label %397, label %414
397: ; preds = %391
%398 = load i32, i32* %23
%399 = sext i32 %398 to i64
%400 = getelementptr inbounds double, double* %161, i64 %399
%401 = load double, double* %400
%402 = load i32, i32* %23
%403 = sext i32 %402 to i64
%404 = getelementptr inbounds double, double* %155, i64 %403
%405 = load double, double* %404
%406 = fmul double %401, %405
%407 = load i32, i32* %23
%408 = sext i32 %407 to i64
%409 = getelementptr inbounds double, double* %155, i64 %408
%410 = load double, double* %409
%411 = call double @log(double %410)
%412 = load double, double* %40
%413 = call double @llvm.fmuladd.f64(double %406, double %411, double %412)
store double %413, double* %40
br label %414
414: ; preds = %397, %391
%415 = load double, double* %41
%416 = load i32, i32* %23
%417 = sext i32 %416 to i64
%418 = getelementptr inbounds double, double* %161, i64 %417
%419 = load double, double* %418
%420 = load i32, i32* %23
%421 = sext i32 %420 to i64
%422 = getelementptr inbounds double, double* %158, i64 %421
%423 = load double, double* %422
%424 = call double @llvm.fmuladd.f64(double %419, double %423, double %415)
store double %424, double* %41
%425 = load double, double* %42
%426 = load i32, i32* %23
%427 = sext i32 %426 to i64
%428 = getelementptr inbounds double, double* %161, i64 %427
%429 = load double, double* %428
%430 = load i32, i32* %23
%431 = sext i32 %430 to i64
%432 = getelementptr inbounds double, double* %155, i64 %431
%433 = load double, double* %432
%434 = call double @llvm.fmuladd.f64(double %429, double %433, double %425)
store double %434, double* %42
br label %435
435: ; preds = %414
%436 = load i32, i32* %23
%437 = add nsw i32 %436, 1
store i32 %437, i32* %23
br label %387
438: ; preds = %387
%439 = load double, double* %40
%440 = load double, double* %41
%441 = fsub double %439, %440
%442 = load double, double* %42
%443 = fdiv double %441, %442
store double %443, double* %43
%444 = load double, double* %43
%445 = load double, double* %29
%446 = load double, double* %30
%447 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), double %444, double %445, double %446)
%448 = load i8*, i8** %46
%449 = load i32, i32* %3
ret i32 %449
}

LLVM IR (-O2):
@.str = [71 x i8] c"Usage: %s <layer1> <layer2> <overlapping network> <N nodes> <b1> <b2>\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [10 x i8] c"%f %f %f\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%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 double*
%16 = icmp slt i32 %0, 6
br i1 %16, label %17, label %21
17: ; preds = %2
%18 = load i8*, i8** %1
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* %18)
%20 = tail call i32 @exit(i32 1)
unreachable
21: ; preds = %2
%22 = bitcast i32* %3 to i8*
%23 = bitcast i32* %4 to i8*
%24 = bitcast i32* %5 to i8*
%25 = bitcast i32* %6 to i8*
%26 = bitcast i32* %7 to i8*
%27 = bitcast i32* %8 to i8*
%28 = bitcast i32** %9 to i8*
%29 = bitcast i32** %10 to i8*
%30 = bitcast i32** %11 to i8*
%31 = bitcast i32** %12 to i8*
%32 = bitcast i32** %13 to i8*
%33 = bitcast i32** %14 to i8*
%34 = bitcast double** %15 to i8*
%35 = getelementptr inbounds i8*, i8** %1, i64 5
%36 = load i8*, i8** %35
%37 = tail call double @atof(i8* %36)
%38 = getelementptr inbounds i8*, i8** %1, i64 6
%39 = load i8*, i8** %38
%40 = tail call double @atof(i8* %39)
%41 = getelementptr inbounds i8*, i8** %1, i64 1
%42 = load i8*, i8** %41
%43 = tail call i32* @openfile_or_exit(i8* %42, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 2)
%44 = call i32 @read_slap(i32* %43, i32* %4, i32* %3, i32** %9, i32** %10)
%45 = getelementptr inbounds i8*, i8** %1, i64 2
%46 = load i8*, i8** %45
%47 = call i32* @openfile_or_exit(i8* %46, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 2)
%48 = call i32 @read_slap(i32* %47, i32* %6, i32* %5, i32** %11, i32** %12)
%49 = getelementptr inbounds i8*, i8** %1, i64 3
%50 = load i8*, i8** %49
%51 = call i32* @openfile_or_exit(i8* %50, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 2)
%52 = call i32 @read_slap_w(i32* %51, i32* %8, i32* %7, i32** %13, i32** %14, double** %15)
%53 = load i32, i32* %7
%54 = add i32 %53, 1
%55 = zext i32 %54 to i64
%56 = call i8* @llvm.stacksave()
%57 = alloca i32, i64 %55
%58 = load i32, i32* %7
%59 = add i32 %58, 1
%60 = zext i32 %59 to i64
%61 = alloca i32, i64 %60
%62 = load i32, i32* %3
%63 = load i32, i32* %5
%64 = load i32*, i32** %10
%65 = zext i32 %62 to i64
%66 = load i32*, i32** %12
%67 = zext i32 %63 to i64
%68 = and i64 %60, 1
%69 = icmp eq i32 %58, 0
br i1 %69, label %99, label %70
70: ; preds = %21
%71 = and i64 %60, 4294967294
br label %72
72: ; preds = %72, %70
%73 = phi i64 [ 0, %70 ], [ %96, %72 ]
%74 = phi i64 [ 0, %70 ], [ %97, %72 ]
%75 = icmp ugt i64 %73, %65
%76 = select i1 %75, i64 %65, i64 %73
%77 = getelementptr inbounds i32, i32* %64, i64 %76
%78 = load i32, i32* %77
%79 = getelementptr inbounds i32, i32* %57, i64 %73
store i32 %78, i32* %79
%80 = icmp ugt i64 %73, %67
%81 = select i1 %80, i64 %67, i64 %73
%82 = getelementptr inbounds i32, i32* %66, i64 %81
%83 = load i32, i32* %82
%84 = getelementptr inbounds i32, i32* %61, i64 %73
store i32 %83, i32* %84
%85 = or i64 %73, 1
%86 = icmp ugt i64 %85, %65
%87 = select i1 %86, i64 %65, i64 %85
%88 = getelementptr inbounds i32, i32* %64, i64 %87
%89 = load i32, i32* %88
%90 = getelementptr inbounds i32, i32* %57, i64 %85
store i32 %89, i32* %90
%91 = icmp ugt i64 %85, %67
%92 = select i1 %91, i64 %67, i64 %85
%93 = getelementptr inbounds i32, i32* %66, i64 %92
%94 = load i32, i32* %93
%95 = getelementptr inbounds i32, i32* %61, i64 %85
store i32 %94, i32* %95
%96 = add nuw nsw i64 %73, 2
%97 = add i64 %74, 2
%98 = icmp eq i64 %97, %71
br i1 %98, label %99, label %72
99: ; preds = %72, %21
%100 = phi i64 [ 0, %21 ], [ %96, %72 ]
%101 = icmp eq i64 %68, 0
br i1 %101, label %113, label %102
102: ; preds = %99
%103 = icmp ugt i64 %100, %65
%104 = select i1 %103, i64 %65, i64 %100
%105 = getelementptr inbounds i32, i32* %64, i64 %104
%106 = load i32, i32* %105
%107 = getelementptr inbounds i32, i32* %57, i64 %100
store i32 %106, i32* %107
%108 = icmp ugt i64 %100, %67
%109 = select i1 %108, i64 %67, i64 %100
%110 = getelementptr inbounds i32, i32* %66, i64 %109
%111 = load i32, i32* %110
%112 = getelementptr inbounds i32, i32* %61, i64 %100
store i32 %111, i32* %112
br label %113
113: ; preds = %99, %102
%114 = zext i32 %58 to i64
%115 = alloca double, i64 %114
%116 = alloca double, i64 %114
%117 = alloca double, i64 %114
%118 = icmp eq i32 %58, 0
br i1 %118, label %272, label %121
119: ; preds = %232
%120 = icmp eq i32 %236, 0
br i1 %120, label %272, label %239
121: ; preds = %113, %232
%122 = phi i64 [ %126, %232 ], [ 0, %113 ]
%123 = load i32*, i32** %14
%124 = getelementptr inbounds i32, i32* %123, i64 %122
%125 = load i32, i32* %124
%126 = add nuw nsw i64 %122, 1
%127 = getelementptr inbounds i32, i32* %123, i64 %126
%128 = load i32, i32* %127
%129 = icmp ult i32 %125, %128
br i1 %129, label %130, label %197
130: ; preds = %121
%131 = sext i32 %125 to i64
br label %132
132: ; preds = %130, %188
%133 = phi i64 [ %131, %130 ], [ %191, %188 ]
%134 = phi double [ 0.000000e+00, %130 ], [ %189, %188 ]
%135 = phi double [ 0.000000e+00, %130 ], [ %190, %188 ]
%136 = load double*, double** %15
%137 = getelementptr inbounds double, double* %136, i64 %133
%138 = load double, double* %137
%139 = fptosi double %138 to i32
%140 = load i32*, i32** %13
%141 = getelementptr inbounds i32, i32* %140, i64 %133
%142 = load i32, i32* %141
%143 = add i32 %142, 1
%144 = zext i32 %143 to i64
%145 = getelementptr inbounds i32, i32* %57, i64 %144
%146 = load i32, i32* %145
%147 = zext i32 %142 to i64
%148 = getelementptr inbounds i32, i32* %57, i64 %147
%149 = load i32, i32* %148
%150 = sub nsw i32 %146, %149
%151 = getelementptr inbounds i32, i32* %61, i64 %144
%152 = load i32, i32* %151
%153 = getelementptr inbounds i32, i32* %61, i64 %147
%154 = load i32, i32* %153
%155 = sub nsw i32 %152, %154
%156 = add nsw i32 %155, %150
%157 = sitofp i32 %156 to double
%158 = sitofp i32 %150 to double
%159 = fdiv double %158, %157
%160 = fptosi double %159 to i32
%161 = call i32 @pow(i32 %160, double 2.000000e+00)
%162 = sitofp i32 %155 to double
%163 = fdiv double %162, %157
%164 = fptosi double %163 to i32
%165 = call i32 @pow(i32 %164, double 2.000000e+00)
%166 = icmp sgt i32 %150, 0
br i1 %166, label %167, label %170
167: ; preds = %132
%168 = call i32 @pow(i32 %150, double %37)
%169 = sitofp i32 %168 to double
br label %170
170: ; preds = %132, %167
%171 = phi double [ %169, %167 ], [ 0.000000e+00, %132 ]
%172 = icmp sgt i32 %155, 0
br i1 %172, label %177, label %173
173: ; preds = %170
%174 = sitofp i32 %139 to double
%175 = fmul double %171, %174
%176 = call double @llvm.fmuladd.f64(double %175, double 0.000000e+00, double %134)
br label %188
177: ; preds = %170
%178 = call i32 @pow(i32 %155, double %40)
%179 = sitofp i32 %178 to double
%180 = sitofp i32 %139 to double
%181 = fmul double %171, %180
%182 = call double @llvm.fmuladd.f64(double %181, double %179, double %134)
%183 = select i1 %166, i1 %172, i1 false
br i1 %183, label %184, label %188
184: ; preds = %177
%185 = fmul double %181, %179
%186 = call double @log(double %185)
%187 = call double @llvm.fmuladd.f64(double %185, double %186, double %135)
br label %188
188: ; preds = %173, %177, %184
%189 = phi double [ %182, %184 ], [ %182, %177 ], [ %176, %173 ]
%190 = phi double [ %187, %184 ], [ %135, %177 ], [ %135, %173 ]
%191 = add nsw i64 %133, 1
%192 = load i32*, i32** %14
%193 = getelementptr inbounds i32, i32* %192, i64 %126
%194 = load i32, i32* %193
%195 = trunc i64 %191 to i32
%196 = icmp ugt i32 %194, %195
br i1 %196, label %132, label %197
197: ; preds = %188, %121
%198 = phi double [ 0.000000e+00, %121 ], [ %190, %188 ]
%199 = phi double [ 0.000000e+00, %121 ], [ %189, %188 ]
%200 = getelementptr inbounds double, double* %115, i64 %122
store double %199, double* %200
%201 = getelementptr inbounds double, double* %116, i64 %122
store double %198, double* %201
%202 = getelementptr inbounds i32, i32* %57, i64 %126
%203 = load i32, i32* %202
%204 = getelementptr inbounds i32, i32* %57, i64 %122
%205 = load i32, i32* %204
%206 = sub nsw i32 %203, %205
%207 = getelementptr inbounds i32, i32* %61, i64 %126
%208 = load i32, i32* %207
%209 = getelementptr inbounds i32, i32* %61, i64 %122
%210 = load i32, i32* %209
%211 = sub nsw i32 %208, %210
%212 = add nsw i32 %211, %206
%213 = sitofp i32 %212 to double
%214 = sitofp i32 %206 to double
%215 = fdiv double %214, %213
%216 = fptosi double %215 to i32
%217 = call i32 @pow(i32 %216, double 2.000000e+00)
%218 = sitofp i32 %211 to double
%219 = fdiv double %218, %213
%220 = fptosi double %219 to i32
%221 = call i32 @pow(i32 %220, double 2.000000e+00)
%222 = icmp sgt i32 %206, 0
br i1 %222, label %223, label %226
223: ; preds = %197
%224 = call i32 @pow(i32 %206, double %37)
%225 = sitofp i32 %224 to double
br label %226
226: ; preds = %197, %223
%227 = phi double [ %225, %223 ], [ 0.000000e+00, %197 ]
%228 = icmp sgt i32 %211, 0
br i1 %228, label %229, label %232
229: ; preds = %226
%230 = call i32 @pow(i32 %211, double %40)
%231 = sitofp i32 %230 to double
br label %232
232: ; preds = %226, %229
%233 = phi double [ %231, %229 ], [ 0.000000e+00, %226 ]
%234 = fmul double %227, %233
%235 = getelementptr inbounds double, double* %117, i64 %122
store double %234, double* %235
%236 = load i32, i32* %7
%237 = zext i32 %236 to i64
%238 = icmp ult i64 %126, %237
br i1 %238, label %121, label %119
239: ; preds = %119, %254
%240 = phi i32 [ %255, %254 ], [ %236, %119 ]
%241 = phi i64 [ %264, %254 ], [ 0, %119 ]
%242 = phi double [ %256, %254 ], [ 0.000000e+00, %119 ]
%243 = phi <2 x double> [ %263, %254 ], [ zeroinitializer, %119 ]
%244 = getelementptr inbounds double, double* %115, i64 %241
%245 = load double, double* %244
%246 = fcmp ogt double %245, 0.000000e+00
%247 = getelementptr inbounds double, double* %117, i64 %241
%248 = load double, double* %247
br i1 %246, label %249, label %254
249: ; preds = %239
%250 = fmul double %245, %248
%251 = call double @log(double %245)
%252 = call double @llvm.fmuladd.f64(double %250, double %251, double %242)
%253 = load i32, i32* %7
br label %254
254: ; preds = %239, %249
%255 = phi i32 [ %253, %249 ], [ %240, %239 ]
%256 = phi double [ %252, %249 ], [ %242, %239 ]
%257 = getelementptr inbounds double, double* %116, i64 %241
%258 = load double, double* %257
%259 = insertelement <2 x double> poison, double %248, i64 0
%260 = shufflevector <2 x double> %259, <2 x double> poison, <2 x i32> zeroinitializer
%261 = insertelement <2 x double> poison, double %245, i64 0
%262 = insertelement <2 x double> %261, double %258, i64 1
%263 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %260, <2 x double> %262, <2 x double> %243)
%264 = add nuw nsw i64 %241, 1
%265 = zext i32 %255 to i64
%266 = icmp ult i64 %264, %265
br i1 %266, label %239, label %267
267: ; preds = %254
%268 = extractelement <2 x double> %263, i64 1
%269 = fsub double %256, %268
%270 = extractelement <2 x double> %263, i64 0
%271 = fdiv double %269, %270
br label %272
272: ; preds = %113, %267, %119
%273 = phi double [ %271, %267 ], [ 0x7FF8000000000000, %119 ], [ 0x7FF8000000000000, %113 ]
%274 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), double %273, double %37, double %40)
ret i32 0
}