#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 */

/* Variables and functions */
int get_mtx_index(int, int, int);
void calculate_E_discriminative_contributions_multi(
    long double *E, long double *E_2, long double *E_3, long double *E_4,
    long double *E_num, long double *E_num_2, long double *E_num_3,
    long double *E_num_4, long double *E_den, long double *E_den_2,
    long double *E_den_3, long double *E_den_4, long double *emissions,
    long double *emissions_2, long double *emissions_3,
    long double *emissions_4, long double *transitions, int nr_v, int a_size,
    int a_size_2, int a_size_3, int a_size_4, long double *emiss_prior_scalers,
    long double *emiss_prior_scalers_2, long double *emiss_prior_scalers_3,
    long double *emiss_prior_scalers_4, int rd, int nr_alphabets,
    int opt_alpha) {
  int v, w;
  int a;
  int x, y, y_2, y_3, y_4;
  long double rowsum, dist_tot;
  long double E_divider, E_divider_2, E_divider_3, E_divider_4, max_T_den;
  long double max_E_den, max_E_den_2, max_E_den_3, max_E_den_4;
  long double E_limiter, E_limiter_2, E_limiter_3, E_limiter_4, T_limiter;
  static long double DIVIDER_SCALER = 10.0;
  long double *E_cur, *E_cur_num, *E_cur_den, *emissions_cur;
  int a_size_cur;
  if (opt_alpha == 1) {
    E_cur = E;
    E_cur_num = E_num;
    E_cur_den = E_den;
    emissions_cur = emissions;
    a_size_cur = a_size;
  }
  if (opt_alpha == 2) {
    E_cur = E_2;
    E_cur_num = E_num_2;
    E_cur_den = E_den_2;
    emissions_cur = emissions_2;
    a_size_cur = a_size_2;
  }
  if (opt_alpha == 1) {
    E_cur = E_3;
    E_cur_num = E_num_3;
    E_cur_den = E_den_3;
    emissions_cur = emissions_3;
    a_size_cur = a_size_3;
  }
  if (opt_alpha == 1) {
    E_cur = E_4;
    E_cur_num = E_num_4;
    E_cur_den = E_den_4;
    emissions_cur = emissions_4;
    a_size_cur = a_size_4;
  }
  for (v = 1; v < nr_v - 1; v++) {
    for (a = 0; a < a_size_cur; a++) {
      y = get_mtx_index(v, a, a_size_cur);
      *(E_cur + y) = *(emissions_cur + y);
    }
  }
  for (v = 1; v < nr_v - 1; v++) {
    dist_tot = 0.0;
    for (a = 0; a < a_size_cur; a++) {
      y = get_mtx_index(v, a, a_size_cur);
      dist_tot += *(E_cur_den + y);
    }
    if (dist_tot > 0.0) {
      for (a = 0; a < a_size_cur; a++) {
        y = get_mtx_index(v, a, a_size_cur);
      }
    }
    dist_tot = 0.0;
    for (a = 0; a < a_size_cur; a++) {
      y = get_mtx_index(v, a, a_size_cur);
      dist_tot += *(E_cur_num + y);
    }
    if (dist_tot > 0.0) {
      for (a = 0; a < a_size_cur; a++) {
        y = get_mtx_index(v, a, a_size_cur);
      }
    }
  }
  E_divider = 1.0;
  for (v = 1; v < nr_v - 1; v++) {
    for (a = 0; a < a_size_cur; a++) {
      y = get_mtx_index(v, a, a_size_cur);
      E_limiter = *(E_cur + y);
      if (*(E_cur + y) > (1.0 - *(E_cur + y))) {
        E_limiter = 1.0 - *(E_cur + y);
      }
      if (*(E_cur + y) != 0.0 &&
          (*(E_cur_den + y) - *(E_cur_num + y)) / E_limiter > E_divider) {
        E_divider = (*(E_cur_den + y) - *(E_cur_num + y)) / E_limiter;
      }
    }
  }
  E_divider = E_divider * DIVIDER_SCALER;
  for (v = 1; v < nr_v - 1; v++) {
    for (a = 0; a < a_size_cur; a++) {
      y = get_mtx_index(v, a, a_size_cur);
      *(E_cur + y) += (*(E_cur_num + y) - *(E_cur_den + y)) /
                      (E_divider * *(emiss_prior_scalers + v));
      if (*(E_cur + y) < 0.0) {
        *(E_cur + y) = 0.0;
      }
    }
  }
  for (v = 1; v < nr_v - 1; v++) {
    rowsum = 0.0;
    for (a = 0; a < a_size_cur; a++) {
      y = get_mtx_index(v, a, a_size_cur);
      rowsum += *(emissions_cur + y);
    }
    if (rowsum != 0.0) {
      for (a = 0; a < a_size_cur; a++) {
        y = get_mtx_index(v, a, a_size_cur);
        *(emissions_cur + y) = *(emissions_cur + y) / rowsum;
      }
    }
  }
}


x86 assembly (clang, -O0):
<calculate_E_discriminative_contributions_multi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x180,%rsp
mov    0xc0(%rbp),%eax
mov    0xb8(%rbp),%eax
mov    0xb0(%rbp),%eax
mov    0xa8(%rbp),%rax
mov    0xa0(%rbp),%rax
mov    0x98(%rbp),%rax
mov    0x90(%rbp),%rax
mov    0x88(%rbp),%eax
mov    0x80(%rbp),%eax
mov    0x78(%rbp),%eax
mov    0x70(%rbp),%eax
mov    0x68(%rbp),%eax
mov    0x60(%rbp),%rax
mov    0x58(%rbp),%rax
mov    0x50(%rbp),%rax
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
cmpl   $0x1,0xc0(%rbp)
jne    11e4 <calculate_E_discriminative_contributions_multi+0xd4>
mov    -0x8(%rbp),%rax
mov    %rax,-0x158(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x160(%rbp)
mov    0x20(%rbp),%rax
mov    %rax,-0x168(%rbp)
mov    0x40(%rbp),%rax
mov    %rax,-0x170(%rbp)
mov    0x70(%rbp),%eax
mov    %eax,-0x174(%rbp)
cmpl   $0x2,0xc0(%rbp)
jne    1226 <calculate_E_discriminative_contributions_multi+0x116>
mov    -0x10(%rbp),%rax
mov    %rax,-0x158(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x160(%rbp)
mov    0x28(%rbp),%rax
mov    %rax,-0x168(%rbp)
mov    0x48(%rbp),%rax
mov    %rax,-0x170(%rbp)
mov    0x78(%rbp),%eax
mov    %eax,-0x174(%rbp)
cmpl   $0x1,0xc0(%rbp)
jne    126b <calculate_E_discriminative_contributions_multi+0x15b>
mov    -0x18(%rbp),%rax
mov    %rax,-0x158(%rbp)
mov    0x10(%rbp),%rax
mov    %rax,-0x160(%rbp)
mov    0x30(%rbp),%rax
mov    %rax,-0x168(%rbp)
mov    0x50(%rbp),%rax
mov    %rax,-0x170(%rbp)
mov    0x80(%rbp),%eax
mov    %eax,-0x174(%rbp)
cmpl   $0x1,0xc0(%rbp)
jne    12b0 <calculate_E_discriminative_contributions_multi+0x1a0>
mov    -0x20(%rbp),%rax
mov    %rax,-0x158(%rbp)
mov    0x18(%rbp),%rax
mov    %rax,-0x160(%rbp)
mov    0x38(%rbp),%rax
mov    %rax,-0x168(%rbp)
mov    0x58(%rbp),%rax
mov    %rax,-0x170(%rbp)
mov    0x88(%rbp),%eax
mov    %eax,-0x174(%rbp)
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    0x68(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    132f <calculate_E_discriminative_contributions_multi+0x21f>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x174(%rbp),%eax
jge    131c <calculate_E_discriminative_contributions_multi+0x20c>
mov    -0x34(%rbp),%edi
mov    -0x3c(%rbp),%esi
mov    -0x174(%rbp),%edx
call   1030 <get_mtx_index@plt>
mov    %eax,-0x44(%rbp)
mov    -0x170(%rbp),%rax
movslq -0x44(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rax,%rcx,1)
mov    -0x158(%rbp),%rax
fstpt  (%rax,%rcx,1)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    12cf <calculate_E_discriminative_contributions_multi+0x1bf>
jmp    1321 <calculate_E_discriminative_contributions_multi+0x211>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12b7 <calculate_E_discriminative_contributions_multi+0x1a7>
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    0x68(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    14ae <calculate_E_discriminative_contributions_multi+0x39e>
fldz
fstpt  -0x70(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x174(%rbp),%eax
jge    139e <calculate_E_discriminative_contributions_multi+0x28e>
mov    -0x34(%rbp),%edi
mov    -0x3c(%rbp),%esi
mov    -0x174(%rbp),%edx
call   1030 <get_mtx_index@plt>
mov    %eax,-0x44(%rbp)
mov    -0x168(%rbp),%rax
movslq -0x44(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rax,%rcx,1)
fldt   -0x70(%rbp)
faddp  %st,%st(1)
fstpt  -0x70(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1353 <calculate_E_discriminative_contributions_multi+0x243>
fldt   -0x70(%rbp)
fldz
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jbe    13f1 <calculate_E_discriminative_contributions_multi+0x2e1>
jmp    13b4 <calculate_E_discriminative_contributions_multi+0x2a4>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x174(%rbp),%eax
jge    13ec <calculate_E_discriminative_contributions_multi+0x2dc>
mov    -0x34(%rbp),%edi
mov    -0x3c(%rbp),%esi
mov    -0x174(%rbp),%edx
call   1030 <get_mtx_index@plt>
mov    %eax,-0x44(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    13bb <calculate_E_discriminative_contributions_multi+0x2ab>
jmp    13f1 <calculate_E_discriminative_contributions_multi+0x2e1>
fldz
fstpt  -0x70(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x174(%rbp),%eax
jge    1448 <calculate_E_discriminative_contributions_multi+0x338>
mov    -0x34(%rbp),%edi
mov    -0x3c(%rbp),%esi
mov    -0x174(%rbp),%edx
call   1030 <get_mtx_index@plt>
mov    %eax,-0x44(%rbp)
mov    -0x160(%rbp),%rax
movslq -0x44(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rax,%rcx,1)
fldt   -0x70(%rbp)
faddp  %st,%st(1)
fstpt  -0x70(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    13fd <calculate_E_discriminative_contributions_multi+0x2ed>
fldt   -0x70(%rbp)
fldz
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jbe    149b <calculate_E_discriminative_contributions_multi+0x38b>
jmp    145e <calculate_E_discriminative_contributions_multi+0x34e>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x174(%rbp),%eax
jge    1496 <calculate_E_discriminative_contributions_multi+0x386>
mov    -0x34(%rbp),%edi
mov    -0x3c(%rbp),%esi
mov    -0x174(%rbp),%edx
call   1030 <get_mtx_index@plt>
mov    %eax,-0x44(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1465 <calculate_E_discriminative_contributions_multi+0x355>
jmp    149b <calculate_E_discriminative_contributions_multi+0x38b>
jmp    14a0 <calculate_E_discriminative_contributions_multi+0x390>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1336 <calculate_E_discriminative_contributions_multi+0x226>
fld1
fstpt  -0x80(%rbp)
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    0x68(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1604 <calculate_E_discriminative_contributions_multi+0x4f4>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x174(%rbp),%eax
jge    15f1 <calculate_E_discriminative_contributions_multi+0x4e1>
mov    -0x34(%rbp),%edi
mov    -0x3c(%rbp),%esi
mov    -0x174(%rbp),%edx
call   1030 <get_mtx_index@plt>
mov    %eax,-0x44(%rbp)
mov    -0x158(%rbp),%rax
movslq -0x44(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rax,%rcx,1)
fstpt  -0x110(%rbp)
mov    -0x158(%rbp),%rax
movslq -0x44(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rax,%rcx,1)
fld1
fsub   %st(1),%st
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jbe    1550 <calculate_E_discriminative_contributions_multi+0x440>
jmp    1534 <calculate_E_discriminative_contributions_multi+0x424>
mov    -0x158(%rbp),%rax
movslq -0x44(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rax,%rcx,1)
fld1
fsubp  %st,%st(1)
fstpt  -0x110(%rbp)
mov    -0x158(%rbp),%rax
movslq -0x44(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rax,%rcx,1)
fldz
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jne    157b <calculate_E_discriminative_contributions_multi+0x46b>
jp     157b <calculate_E_discriminative_contributions_multi+0x46b>
jmp    15de <calculate_E_discriminative_contributions_multi+0x4ce>
mov    -0x168(%rbp),%rax
movslq -0x44(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rax,%rcx,1)
mov    -0x160(%rbp),%rax
fldt   (%rax,%rcx,1)
fsubrp %st,%st(1)
fldt   -0x110(%rbp)
fdivrp %st,%st(1)
fldt   -0x80(%rbp)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jbe    15de <calculate_E_discriminative_contributions_multi+0x4ce>
jmp    15b5 <calculate_E_discriminative_contributions_multi+0x4a5>
mov    -0x168(%rbp),%rax
movslq -0x44(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rax,%rcx,1)
mov    -0x160(%rbp),%rax
fldt   (%rax,%rcx,1)
fsubrp %st,%st(1)
fldt   -0x110(%rbp)
fdivrp %st,%st(1)
fstpt  -0x80(%rbp)
jmp    15e3 <calculate_E_discriminative_contributions_multi+0x4d3>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    14d2 <calculate_E_discriminative_contributions_multi+0x3c2>
jmp    15f6 <calculate_E_discriminative_contributions_multi+0x4e6>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    14ba <calculate_E_discriminative_contributions_multi+0x3aa>
fldt   -0x80(%rbp)
fldt   0x2a23(%rip)
fmulp  %st,%st(1)
fstpt  -0x80(%rbp)
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    0x68(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    16f7 <calculate_E_discriminative_contributions_multi+0x5e7>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x174(%rbp),%eax
jge    16e4 <calculate_E_discriminative_contributions_multi+0x5d4>
mov    -0x34(%rbp),%edi
mov    -0x3c(%rbp),%esi
mov    -0x174(%rbp),%edx
call   1030 <get_mtx_index@plt>
mov    %eax,-0x44(%rbp)
mov    -0x160(%rbp),%rax
movslq -0x44(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rax,%rcx,1)
mov    -0x168(%rbp),%rax
fldt   (%rax,%rcx,1)
fsubrp %st,%st(1)
fldt   -0x80(%rbp)
mov    0x90(%rbp),%rax
movslq -0x34(%rbp),%rdx
shl    $0x4,%rdx
fldt   (%rax,%rdx,1)
fmulp  %st,%st(1)
fdivrp %st,%st(1)
mov    -0x158(%rbp),%rax
fldt   (%rax,%rcx,1)
faddp  %st,%st(1)
fstpt  (%rax,%rcx,1)
mov    -0x158(%rbp),%rax
movslq -0x44(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rax,%rcx,1)
fldz
fucomip %st(1),%st
fstp   %st(0)
jbe    16d1 <calculate_E_discriminative_contributions_multi+0x5c1>
jmp    16bd <calculate_E_discriminative_contributions_multi+0x5ad>
mov    -0x158(%rbp),%rax
movslq -0x44(%rbp),%rcx
shl    $0x4,%rcx
fldz
fstpt  (%rax,%rcx,1)
jmp    16d6 <calculate_E_discriminative_contributions_multi+0x5c6>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1631 <calculate_E_discriminative_contributions_multi+0x521>
jmp    16e9 <calculate_E_discriminative_contributions_multi+0x5d9>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1619 <calculate_E_discriminative_contributions_multi+0x509>
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    0x68(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    17ec <calculate_E_discriminative_contributions_multi+0x6dc>
fldz
fstpt  -0x60(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x174(%rbp),%eax
jge    1766 <calculate_E_discriminative_contributions_multi+0x656>
mov    -0x34(%rbp),%edi
mov    -0x3c(%rbp),%esi
mov    -0x174(%rbp),%edx
call   1030 <get_mtx_index@plt>
mov    %eax,-0x44(%rbp)
mov    -0x170(%rbp),%rax
movslq -0x44(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rax,%rcx,1)
fldt   -0x60(%rbp)
faddp  %st,%st(1)
fstpt  -0x60(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    171b <calculate_E_discriminative_contributions_multi+0x60b>
fldt   -0x60(%rbp)
fldz
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jne    1782 <calculate_E_discriminative_contributions_multi+0x672>
jp     1782 <calculate_E_discriminative_contributions_multi+0x672>
jmp    17d9 <calculate_E_discriminative_contributions_multi+0x6c9>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x174(%rbp),%eax
jge    17d4 <calculate_E_discriminative_contributions_multi+0x6c4>
mov    -0x34(%rbp),%edi
mov    -0x3c(%rbp),%esi
mov    -0x174(%rbp),%edx
call   1030 <get_mtx_index@plt>
mov    %eax,-0x44(%rbp)
mov    -0x170(%rbp),%rax
movslq -0x44(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rax,%rcx,1)
fldt   -0x60(%rbp)
fdivrp %st,%st(1)
fstpt  (%rax,%rcx,1)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1789 <calculate_E_discriminative_contributions_multi+0x679>
jmp    17d9 <calculate_E_discriminative_contributions_multi+0x6c9>
jmp    17de <calculate_E_discriminative_contributions_multi+0x6ce>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    16fe <calculate_E_discriminative_contributions_multi+0x5ee>
add    $0x180,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calculate_E_discriminative_contributions_multi>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    0x130(%rsp),%eax
cmp    $0x2,%eax
jne    114a <calculate_E_discriminative_contributions_multi+0x3a>
mov    0xe8(%rsp),%r13d
mov    0xb8(%rsp),%r14
mov    0x98(%rsp),%rdx
mov    %rsi,%r15
mov    %r9,%r8
jmp    1165 <calculate_E_discriminative_contributions_multi+0x55>
mov    %rdi,%r15
mov    0xe0(%rsp),%r13d
mov    0xb0(%rsp),%r14
mov    0x90(%rsp),%rdx
mov    0xd8(%rsp),%esi
cmp    $0x1,%eax
jne    1194 <calculate_E_discriminative_contributions_multi+0x84>
mov    0xf8(%rsp),%r13d
mov    0xc8(%rsp),%r14
mov    0xa8(%rsp),%rdx
mov    0x88(%rsp),%r8
mov    %rcx,%r15
mov    %rdx,0x30(%rsp)
mov    %r8,0x28(%rsp)
cmp    $0x3,%esi
fldz
jl     1581 <calculate_E_discriminative_contributions_multi+0x471>
fstp   %st(0)
lea    -0x1(%rsi),%r12d
mov    $0x1,%ebp
jmp    11c8 <calculate_E_discriminative_contributions_multi+0xb8>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%ebp
cmp    %r12d,%ebp
je     11f4 <calculate_E_discriminative_contributions_multi+0xe4>
test   %r13d,%r13d
jle    11c0 <calculate_E_discriminative_contributions_multi+0xb0>
xor    %ebx,%ebx
nop
mov    %ebp,%edi
mov    %ebx,%esi
mov    %r13d,%edx
call   1030 <get_mtx_index@plt>
cltq
shl    $0x4,%rax
fldt   (%r14,%rax,1)
fstpt  (%r15,%rax,1)
add    $0x1,%ebx
cmp    %ebx,%r13d
jne    11d0 <calculate_E_discriminative_contributions_multi+0xc0>
jmp    11c0 <calculate_E_discriminative_contributions_multi+0xb0>
mov    0xd8(%rsp),%eax
cmp    $0x3,%eax
fldz
jl     1581 <calculate_E_discriminative_contributions_multi+0x471>
fstp   %st(0)
mov    %r12d,0xc(%rsp)
mov    $0x1,%r12d
fldz
fstpt  (%rsp)
jmp    122f <calculate_E_discriminative_contributions_multi+0x11f>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r12d
cmp    0xc(%rsp),%r12d
je     131a <calculate_E_discriminative_contributions_multi+0x20a>
test   %r13d,%r13d
jle    1220 <calculate_E_discriminative_contributions_multi+0x110>
xor    %ebp,%ebp
fldt   (%rsp)
mov    0x30(%rsp),%rbx
xchg   %ax,%ax
fstpt  0x10(%rsp)
mov    %r12d,%edi
mov    %ebp,%esi
mov    %r13d,%edx
call   1030 <get_mtx_index@plt>
fldt   0x10(%rsp)
cltq
shl    $0x4,%rax
fldt   (%rbx,%rax,1)
faddp  %st,%st(1)
add    $0x1,%ebp
cmp    %ebp,%r13d
jne    1240 <calculate_E_discriminative_contributions_multi+0x130>
fldt   (%rsp)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jbe    1295 <calculate_E_discriminative_contributions_multi+0x185>
test   %r13d,%r13d
jle    1295 <calculate_E_discriminative_contributions_multi+0x185>
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
mov    %r12d,%edi
mov    %ebx,%esi
mov    %r13d,%edx
call   1030 <get_mtx_index@plt>
add    $0x1,%ebx
cmp    %ebx,%r13d
jne    1280 <calculate_E_discriminative_contributions_multi+0x170>
test   %r13d,%r13d
jle    1220 <calculate_E_discriminative_contributions_multi+0x110>
xor    %ebp,%ebp
fldt   (%rsp)
mov    0x28(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
fstpt  0x10(%rsp)
mov    %r12d,%edi
mov    %ebp,%esi
mov    %r13d,%edx
call   1030 <get_mtx_index@plt>
fldt   0x10(%rsp)
cltq
shl    $0x4,%rax
fldt   (%rbx,%rax,1)
faddp  %st,%st(1)
add    $0x1,%ebp
cmp    %ebp,%r13d
jne    12b0 <calculate_E_discriminative_contributions_multi+0x1a0>
fldt   (%rsp)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jbe    1220 <calculate_E_discriminative_contributions_multi+0x110>
test   %r13d,%r13d
jle    1220 <calculate_E_discriminative_contributions_multi+0x110>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r12d,%edi
mov    %ebx,%esi
mov    %r13d,%edx
call   1030 <get_mtx_index@plt>
add    $0x1,%ebx
cmp    %ebx,%r13d
jne    1300 <calculate_E_discriminative_contributions_multi+0x1f0>
jmp    1220 <calculate_E_discriminative_contributions_multi+0x110>
mov    0xd8(%rsp),%eax
cmp    $0x3,%eax
fldz
jl     1581 <calculate_E_discriminative_contributions_multi+0x471>
fstp   %st(0)
fld1
mov    $0x1,%r12d
fldz
fstpt  0x10(%rsp)
fld    %st(0)
fstpt  (%rsp)
fstpt  0x1c(%rsp)
mov    0x28(%rsp),%rbx
jmp    135b <calculate_E_discriminative_contributions_multi+0x24b>
nopl   0x0(%rax)
add    $0x1,%r12d
cmp    0xc(%rsp),%r12d
je     13d3 <calculate_E_discriminative_contributions_multi+0x2c3>
test   %r13d,%r13d
jle    1350 <calculate_E_discriminative_contributions_multi+0x240>
xor    %ebp,%ebp
jmp    1380 <calculate_E_discriminative_contributions_multi+0x270>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
fstp   %st(1)
fstp   %st(0)
fldz
fstp   %st(0)
add    $0x1,%ebp
cmp    %ebp,%r13d
je     1350 <calculate_E_discriminative_contributions_multi+0x240>
mov    %r12d,%edi
mov    %ebp,%esi
mov    %r13d,%edx
call   1030 <get_mtx_index@plt>
cltq
shl    $0x4,%rax
fldt   (%r15,%rax,1)
fldt   (%rsp)
fsub   %st(1),%st
fldt   0x10(%rsp)
fxch   %st(2)
fucomi %st(2),%st
fstp   %st(2)
jne    13aa <calculate_E_discriminative_contributions_multi+0x29a>
jnp    1370 <calculate_E_discriminative_contributions_multi+0x260>
fxch   %st(1)
fucomi %st(1),%st
fcmovnbe %st(1),%st
fstp   %st(1)
mov    0x30(%rsp),%rcx
fldt   (%rcx,%rax,1)
fldt   (%rbx,%rax,1)
fsubrp %st,%st(1)
fdivp  %st,%st(1)
fldt   0x1c(%rsp)
fxch   %st(1)
fucomi %st(1),%st
fstp   %st(1)
jbe    1376 <calculate_E_discriminative_contributions_multi+0x266>
fstpt  0x1c(%rsp)
jmp    1374 <calculate_E_discriminative_contributions_multi+0x264>
fldt   0x1c(%rsp)
fmuls  0xc23(%rip)
mov    0xd8(%rsp),%eax
cmp    $0x3,%eax
mov    0xc(%rsp),%eax
jl     1581 <calculate_E_discriminative_contributions_multi+0x471>
mov    %r14,0x38(%rsp)
mov    %eax,%eax
mov    %rax,0x40(%rsp)
mov    $0x1,%r12d
fstpt  0x1c(%rsp)
mov    0x28(%rsp),%rbx
mov    0x30(%rsp),%r14
jmp    142b <calculate_E_discriminative_contributions_multi+0x31b>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%r12
cmp    0x40(%rsp),%r12
je     149a <calculate_E_discriminative_contributions_multi+0x38a>
test   %r13d,%r13d
fldt   0x10(%rsp)
fstp   %st(0)
jle    1420 <calculate_E_discriminative_contributions_multi+0x310>
mov    %r12,%rax
shl    $0x4,%rax
add    0x100(%rsp),%rax
mov    %rax,(%rsp)
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    %r12d,%edi
mov    %ebp,%esi
mov    %r13d,%edx
call   1030 <get_mtx_index@plt>
fldt   0x1c(%rsp)
cltq
shl    $0x4,%rax
fldt   (%rbx,%rax,1)
fldt   (%r14,%rax,1)
fsubrp %st,%st(1)
mov    (%rsp),%rsi
fldt   (%rsi)
fmulp  %st,%st(2)
fdivp  %st,%st(1)
fldt   (%r15,%rax,1)
faddp  %st,%st(1)
fldt   0x10(%rsp)
fucomi %st(1),%st
fxch   %st(1)
fcmovnbe %st(1),%st
fstp   %st(1)
fstpt  (%r15,%rax,1)
add    $0x1,%ebp
cmp    %ebp,%r13d
jne    1450 <calculate_E_discriminative_contributions_multi+0x340>
jmp    1420 <calculate_E_discriminative_contributions_multi+0x310>
mov    0xd8(%rsp),%eax
cmp    $0x3,%eax
mov    0xc(%rsp),%r12d
mov    0x38(%rsp),%r14
fldz
jl     1581 <calculate_E_discriminative_contributions_multi+0x471>
fstp   %st(0)
mov    $0x1,%r15d
fldz
jmp    14e1 <calculate_E_discriminative_contributions_multi+0x3d1>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
fstp   %st(0)
add    $0x1,%r15d
cmp    %r12d,%r15d
fldz
je     1581 <calculate_E_discriminative_contributions_multi+0x471>
fstp   %st(0)
test   %r13d,%r13d
fldz
jle    14d0 <calculate_E_discriminative_contributions_multi+0x3c0>
fstp   %st(0)
xor    %ebp,%ebp
fldt   0x10(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
fstpt  (%rsp)
mov    %r15d,%edi
mov    %ebp,%esi
mov    %r13d,%edx
call   1030 <get_mtx_index@plt>
fldt   (%rsp)
cltq
shl    $0x4,%rax
fldt   (%r14,%rax,1)
faddp  %st,%st(1)
add    $0x1,%ebp
cmp    %ebp,%r13d
jne    1500 <calculate_E_discriminative_contributions_multi+0x3f0>
fldt   0x10(%rsp)
fxch   %st(1)
fucomi %st(1),%st
fstp   %st(1)
jne    1535 <calculate_E_discriminative_contributions_multi+0x425>
jnp    14d0 <calculate_E_discriminative_contributions_multi+0x3c0>
test   %r13d,%r13d
jle    14d0 <calculate_E_discriminative_contributions_multi+0x3c0>
xor    %ebx,%ebx
fstpt  (%rsp)
fldz
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
fstp   %st(0)
mov    %r15d,%edi
mov    %ebx,%esi
mov    %r13d,%edx
call   1030 <get_mtx_index@plt>
fldt   (%rsp)
cltq
shl    $0x4,%rax
fldt   (%r14,%rax,1)
fdivp  %st,%st(1)
fstpt  (%r14,%rax,1)
add    $0x1,%ebx
cmp    %ebx,%r13d
fldz
jne    1550 <calculate_E_discriminative_contributions_multi+0x440>
jmp    14d0 <calculate_E_discriminative_contributions_multi+0x3c0>
fstp   %st(0)
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @calculate_E_discriminative_contributions_multi(x86_fp80* nocapture %0, x86_fp80* nocapture %1, x86_fp80* nocapture %2, x86_fp80* nocapture %3, x86_fp80* nocapture %4, x86_fp80* nocapture %5, x86_fp80* nocapture %6, x86_fp80* nocapture %7, x86_fp80* nocapture %8, x86_fp80* nocapture %9, x86_fp80* nocapture %10, x86_fp80* nocapture %11, x86_fp80* nocapture %12, x86_fp80* nocapture %13, x86_fp80* nocapture %14, x86_fp80* nocapture %15, x86_fp80* nocapture readnone %16, i32 %17, i32 %18, i32 %19, i32 %20, i32 %21, x86_fp80* nocapture %22, x86_fp80* nocapture readnone %23, x86_fp80* nocapture readnone %24, x86_fp80* nocapture readnone %25, i32 %26, i32 %27, i32 %28) {
%30 = icmp eq i32 %28, 1
%31 = icmp eq i32 %28, 2
br i1 %31, label %32, label %33
32: ; preds = %29
br label %33
33: ; preds = %32, %29
%34 = phi x86_fp80* [ %1, %32 ], [ %0, %29 ]
%35 = phi x86_fp80* [ %5, %32 ], [ %4, %29 ]
%36 = phi x86_fp80* [ %9, %32 ], [ %8, %29 ]
%37 = phi x86_fp80* [ %13, %32 ], [ %12, %29 ]
%38 = phi i32 [ %19, %32 ], [ %18, %29 ]
br i1 %30, label %39, label %40
39: ; preds = %33
br label %40
40: ; preds = %33, %39
%41 = phi x86_fp80* [ %3, %39 ], [ %34, %33 ]
%42 = phi x86_fp80* [ %7, %39 ], [ %35, %33 ]
%43 = phi x86_fp80* [ %11, %39 ], [ %36, %33 ]
%44 = phi x86_fp80* [ %15, %39 ], [ %37, %33 ]
%45 = phi i32 [ %21, %39 ], [ %38, %33 ]
%46 = add i32 %17, -1
%47 = icmp sgt i32 %17, 2
br i1 %47, label %48, label %207
48: ; preds = %40
%49 = icmp sgt i32 %45, 0
br label %50
50: ; preds = %48, %65
%51 = phi i32 [ 1, %48 ], [ %66, %65 ]
br i1 %49, label %56, label %65
52: ; preds = %65
br i1 %47, label %53, label %207
53: ; preds = %52
%54 = icmp sgt i32 %45, 0
%55 = icmp slt i32 %45, 1
br label %68
56: ; preds = %50, %56
%57 = phi i32 [ %63, %56 ], [ 0, %50 ]
%58 = tail call i32 @get_mtx_index(i32 %51, i32 %57, i32 %45)
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds x86_fp80, x86_fp80* %44, i64 %59
%61 = load x86_fp80, x86_fp80* %60
%62 = getelementptr inbounds x86_fp80, x86_fp80* %41, i64 %59
store x86_fp80 %61, x86_fp80* %62
%63 = add nuw nsw i32 %57, 1
%64 = icmp eq i32 %63, %45
br i1 %64, label %65, label %56
65: ; preds = %56, %50
%66 = add nuw nsw i32 %51, 1
%67 = icmp eq i32 %66, %46
br i1 %67, label %52, label %50
68: ; preds = %53, %110
%69 = phi i32 [ 1, %53 ], [ %111, %110 ]
br i1 %54, label %73, label %110
70: ; preds = %110
br i1 %47, label %71, label %207
71: ; preds = %70
%72 = icmp sgt i32 %45, 0
br label %113
73: ; preds = %68, %73
%74 = phi i32 [ %81, %73 ], [ 0, %68 ]
%75 = phi x86_fp80 [ %80, %73 ], [ 0xK00000000000000000000, %68 ]
%76 = tail call i32 @get_mtx_index(i32 %69, i32 %74, i32 %45)
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds x86_fp80, x86_fp80* %43, i64 %77
%79 = load x86_fp80, x86_fp80* %78
%80 = fadd x86_fp80 %75, %79
%81 = add nuw nsw i32 %74, 1
%82 = icmp eq i32 %81, %45
br i1 %82, label %83, label %73
83: ; preds = %73
%84 = fcmp ule x86_fp80 %80, 0xK00000000000000000000
%85 = or i1 %84, %55
br i1 %85, label %91, label %86
86: ; preds = %83, %86
%87 = phi i32 [ %89, %86 ], [ 0, %83 ]
%88 = tail call i32 @get_mtx_index(i32 %69, i32 %87, i32 %45)
%89 = add nuw nsw i32 %87, 1
%90 = icmp eq i32 %89, %45
br i1 %90, label %91, label %86
91: ; preds = %86, %83
br i1 %54, label %92, label %110
92: ; preds = %91, %92
%93 = phi i32 [ %100, %92 ], [ 0, %91 ]
%94 = phi x86_fp80 [ %99, %92 ], [ 0xK00000000000000000000, %91 ]
%95 = tail call i32 @get_mtx_index(i32 %69, i32 %93, i32 %45)
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds x86_fp80, x86_fp80* %42, i64 %96
%98 = load x86_fp80, x86_fp80* %97
%99 = fadd x86_fp80 %94, %98
%100 = add nuw nsw i32 %93, 1
%101 = icmp eq i32 %100, %45
br i1 %101, label %102, label %92
102: ; preds = %92
%103 = fcmp ule x86_fp80 %99, 0xK00000000000000000000
%104 = or i1 %103, %55
br i1 %104, label %110, label %105
105: ; preds = %102, %105
%106 = phi i32 [ %108, %105 ], [ 0, %102 ]
%107 = tail call i32 @get_mtx_index(i32 %69, i32 %106, i32 %45)
%108 = add nuw nsw i32 %106, 1
%109 = icmp eq i32 %108, %45
br i1 %109, label %110, label %105
110: ; preds = %105, %68, %91, %102
%111 = add nuw nsw i32 %69, 1
%112 = icmp eq i32 %111, %46
br i1 %112, label %70, label %68
113: ; preds = %71, %140
%114 = phi i32 [ 1, %71 ], [ %142, %140 ]
%115 = phi x86_fp80 [ 0xK3FFF8000000000000000, %71 ], [ %141, %140 ]
br i1 %72, label %116, label %140
116: ; preds = %113, %136
%117 = phi i32 [ %138, %136 ], [ 0, %113 ]
%118 = phi x86_fp80 [ %137, %136 ], [ %115, %113 ]
%119 = tail call i32 @get_mtx_index(i32 %114, i32 %117, i32 %45)
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds x86_fp80, x86_fp80* %41, i64 %120
%122 = load x86_fp80, x86_fp80* %121
%123 = fsub x86_fp80 0xK3FFF8000000000000000, %122
%124 = fcmp une x86_fp80 %122, 0xK00000000000000000000
br i1 %124, label %125, label %136
125: ; preds = %116
%126 = fcmp ogt x86_fp80 %122, %123
%127 = select i1 %126, x86_fp80 %123, x86_fp80 %122
%128 = getelementptr inbounds x86_fp80, x86_fp80* %43, i64 %120
%129 = load x86_fp80, x86_fp80* %128
%130 = getelementptr inbounds x86_fp80, x86_fp80* %42, i64 %120
%131 = load x86_fp80, x86_fp80* %130
%132 = fsub x86_fp80 %129, %131
%133 = fdiv x86_fp80 %132, %127
%134 = fcmp ogt x86_fp80 %133, %118
br i1 %134, label %135, label %136
135: ; preds = %125
br label %136
136: ; preds = %116, %125, %135
%137 = phi x86_fp80 [ %133, %135 ], [ %118, %125 ], [ %118, %116 ]
%138 = add nuw nsw i32 %117, 1
%139 = icmp eq i32 %138, %45
br i1 %139, label %140, label %116
140: ; preds = %136, %113
%141 = phi x86_fp80 [ %115, %113 ], [ %137, %136 ]
%142 = add nuw nsw i32 %114, 1
%143 = icmp eq i32 %142, %46
br i1 %143, label %144, label %113
144: ; preds = %140
%145 = fmul x86_fp80 %141, 0xK4002A000000000000000
br i1 %47, label %146, label %207
146: ; preds = %144
%147 = icmp sgt i32 %45, 0
%148 = zext i32 %46 to i64
br label %149
149: ; preds = %146, %177
%150 = phi i64 [ 1, %146 ], [ %178, %177 ]
br i1 %147, label %151, label %177
151: ; preds = %149
%152 = getelementptr inbounds x86_fp80, x86_fp80* %22, i64 %150
%153 = trunc i64 %150 to i32
br label %158
154: ; preds = %177
br i1 %47, label %155, label %207
155: ; preds = %154
%156 = icmp sgt i32 %45, 0
%157 = icmp slt i32 %45, 1
br label %180
158: ; preds = %151, %158
%159 = phi i32 [ 0, %151 ], [ %175, %158 ]
%160 = tail call i32 @get_mtx_index(i32 %153, i32 %159, i32 %45)
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds x86_fp80, x86_fp80* %42, i64 %161
%163 = load x86_fp80, x86_fp80* %162
%164 = getelementptr inbounds x86_fp80, x86_fp80* %43, i64 %161
%165 = load x86_fp80, x86_fp80* %164
%166 = fsub x86_fp80 %163, %165
%167 = load x86_fp80, x86_fp80* %152
%168 = fmul x86_fp80 %145, %167
%169 = fdiv x86_fp80 %166, %168
%170 = getelementptr inbounds x86_fp80, x86_fp80* %41, i64 %161
%171 = load x86_fp80, x86_fp80* %170
%172 = fadd x86_fp80 %171, %169
%173 = fcmp olt x86_fp80 %172, 0xK00000000000000000000
%174 = select i1 %173, x86_fp80 0xK00000000000000000000, x86_fp80 %172
store x86_fp80 %174, x86_fp80* %170
%175 = add nuw nsw i32 %159, 1
%176 = icmp eq i32 %175, %45
br i1 %176, label %177, label %158
177: ; preds = %158, %149
%178 = add nuw nsw i64 %150, 1
%179 = icmp eq i64 %178, %148
br i1 %179, label %154, label %149
180: ; preds = %155, %204
%181 = phi i32 [ 1, %155 ], [ %205, %204 ]
br i1 %156, label %182, label %204
182: ; preds = %180, %182
%183 = phi i32 [ %190, %182 ], [ 0, %180 ]
%184 = phi x86_fp80 [ %189, %182 ], [ 0xK00000000000000000000, %180 ]
%185 = tail call i32 @get_mtx_index(i32 %181, i32 %183, i32 %45)
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds x86_fp80, x86_fp80* %44, i64 %186
%188 = load x86_fp80, x86_fp80* %187
%189 = fadd x86_fp80 %184, %188
%190 = add nuw nsw i32 %183, 1
%191 = icmp eq i32 %190, %45
br i1 %191, label %192, label %182
192: ; preds = %182
%193 = fcmp oeq x86_fp80 %189, 0xK00000000000000000000
%194 = or i1 %193, %157
br i1 %194, label %204, label %195
195: ; preds = %192, %195
%196 = phi i32 [ %202, %195 ], [ 0, %192 ]
%197 = tail call i32 @get_mtx_index(i32 %181, i32 %196, i32 %45)
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds x86_fp80, x86_fp80* %44, i64 %198
%200 = load x86_fp80, x86_fp80* %199
%201 = fdiv x86_fp80 %200, %189
store x86_fp80 %201, x86_fp80* %199
%202 = add nuw nsw i32 %196, 1
%203 = icmp eq i32 %202, %45
br i1 %203, label %204, label %195
204: ; preds = %195, %180, %192
%205 = add nuw nsw i32 %181, 1
%206 = icmp eq i32 %205, %46
br i1 %206, label %207, label %180
207: ; preds = %204, %40, %52, %70, %144, %154
ret void
}