#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 /*<<< orphan*/ free_ivector(int *, int, int);
int /*<<< orphan*/ free_matrix(float **, int, int, int, int);
int /*<<< orphan*/ free_vector(float *, int, int);
int *ivector(int, int);
float **matrix(int, int, int, int);
float stub1(int, float);
float stub2(int, float);
float stub3(int, int, float, float);
float stub4(int, int, float, float);
float stub5(int, int, float, float);
float *vector(int, int);
void voltra(int n, int m, float t0, float h, float *t, float **f,
            float (*g)(int, float), float (*ak)(int, int, float, float)) {
  void lubksb(float **a, int n, int *indx, float b[]);
  void ludcmp(float **a, int n, int *indx, float *d);
  int i, j, k, l, *indx;
  float d, sum, **a, *b;
  indx = ivector(1, m);
  a = matrix(1, m, 1, m);
  b = vector(1, m);
  t[1] = t0;
  for (k = 1; k <= m; k++)
    f[k][1] = (*g)(k, t[1]);
  for (i = 2; i <= n; i++) {
    t[i] = t[i - 1] + h;
    for (k = 1; k <= m; k++) {
      sum = (*g)(k, t[i]);
      for (l = 1; l <= m; l++) {
        sum += 0.5 * h * (*ak)(k, l, t[i], t[1]) * f[l][1];
        for (j = 2; j < i; j++)
          sum += h * (*ak)(k, l, t[i], t[j]) * f[l][j];
        a[k][l] = (k == l) - 0.5 * h * (*ak)(k, l, t[i], t[i]);
      }
      b[k] = sum;
    }
    ludcmp(a, m, indx, &d);
    lubksb(a, m, indx, b);
    for (k = 1; k <= m; k++)
      f[k][i] = b[k];
  }
  free_vector(b, 1, m);
  free_matrix(a, 1, m, 1, m);
  free_ivector(indx, 1, m);
}


x86 assembly (clang, -O0):
<voltra>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
movss  %xmm1,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%esi
mov    $0x1,%edi
call   10a0 <ivector@plt>
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%esi
mov    -0x8(%rbp),%ecx
mov    $0x1,%edx
mov    %edx,%edi
call   1070 <matrix@plt>
mov    %rax,-0x58(%rbp)
mov    -0x8(%rbp),%esi
mov    $0x1,%edi
call   1080 <vector@plt>
mov    %rax,-0x60(%rbp)
movss  -0xc(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,0x4(%rax)
movl   $0x1,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     1235 <voltra+0xb5>
mov    -0x28(%rbp),%rax
mov    -0x3c(%rbp),%edi
mov    -0x18(%rbp),%rcx
movss  0x4(%rcx),%xmm0
call   *%rax
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movss  %xmm0,0x4(%rax)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11f8 <voltra+0x78>
movl   $0x2,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     14f8 <voltra+0x378>
mov    -0x18(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
addss  -0x10(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movl   $0x1,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     147a <voltra+0x2fa>
mov    -0x28(%rbp),%rax
mov    -0x3c(%rbp),%edi
mov    -0x18(%rbp),%rcx
movslq -0x34(%rbp),%rdx
movss  (%rcx,%rdx,4),%xmm0
call   *%rax
movss  %xmm0,-0x50(%rbp)
movl   $0x1,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     145a <voltra+0x2da>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xd42(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x30(%rbp),%rax
mov    -0x3c(%rbp),%edi
mov    -0x40(%rbp),%esi
mov    -0x18(%rbp),%rcx
movslq -0x34(%rbp),%rdx
movss  (%rcx,%rdx,4),%xmm0
mov    -0x18(%rbp),%rcx
movss  0x4(%rcx),%xmm1
call   *%rax
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movss  0x4(%rax),%xmm1
cvtss2sd %xmm1,%xmm2
movss  -0x50(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x50(%rbp)
movl   $0x2,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    13ac <voltra+0x22c>
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x6c(%rbp)
mov    -0x30(%rbp),%rax
mov    -0x3c(%rbp),%edi
mov    -0x40(%rbp),%esi
mov    -0x18(%rbp),%rcx
movslq -0x34(%rbp),%rdx
movss  (%rcx,%rdx,4),%xmm0
mov    -0x18(%rbp),%rcx
movslq -0x38(%rbp),%rdx
movss  (%rcx,%rdx,4),%xmm1
call   *%rax
movaps %xmm0,%xmm1
movss  -0x6c(%rbp),%xmm0
mulss  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x50(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x50(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    132f <voltra+0x1af>
mov    -0x3c(%rbp),%eax
cmp    -0x40(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x80(%rbp)
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xc2c(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x30(%rbp),%rax
mov    -0x3c(%rbp),%edi
mov    -0x40(%rbp),%esi
mov    -0x18(%rbp),%rcx
movslq -0x34(%rbp),%rdx
movss  (%rcx,%rdx,4),%xmm0
mov    -0x18(%rbp),%rcx
movslq -0x34(%rbp),%rdx
movss  (%rcx,%rdx,4),%xmm1
call   *%rax
movsd  -0x80(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x78(%rbp),%xmm0
cvtss2sd %xmm2,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x58(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    12a1 <voltra+0x121>
movss  -0x50(%rbp),%xmm0
mov    -0x60(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1273 <voltra+0xf3>
mov    -0x58(%rbp),%rdi
mov    -0x8(%rbp),%esi
mov    -0x48(%rbp),%rdx
lea    -0x4c(%rbp),%rcx
call   1030 <ludcmp@plt>
mov    -0x58(%rbp),%rdi
mov    -0x8(%rbp),%esi
mov    -0x48(%rbp),%rdx
mov    -0x60(%rbp),%rcx
call   1060 <lubksb@plt>
movl   $0x1,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     14e5 <voltra+0x365>
mov    -0x60(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    14a9 <voltra+0x329>
jmp    14ea <voltra+0x36a>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    123c <voltra+0xbc>
mov    -0x60(%rbp),%rdi
mov    -0x8(%rbp),%edx
mov    $0x1,%esi
call   1050 <free_vector@plt>
mov    -0x58(%rbp),%rdi
mov    -0x8(%rbp),%edx
mov    -0x8(%rbp),%r8d
mov    $0x1,%ecx
mov    %ecx,%esi
call   1040 <free_matrix@plt>
mov    -0x48(%rbp),%rdi
mov    -0x8(%rbp),%edx
mov    $0x1,%esi
call   1090 <free_ivector@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<voltra>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
mov    %r9,%r13
mov    %r8,%r12
mov    %rcx,%r14
mov    %rdx,%rbp
movss  %xmm1,0xc(%rsp)
movss  %xmm0,0x8(%rsp)
mov    %esi,%ebx
mov    %rdi,0x10(%rsp)
mov    $0x1,%edi
call   10a0 <ivector@plt>
mov    %rax,0x38(%rsp)
mov    $0x1,%edi
mov    %ebx,%esi
mov    $0x1,%edx
mov    %ebx,%ecx
call   1070 <matrix@plt>
mov    %rax,0x20(%rsp)
mov    $0x1,%edi
mov    %ebx,%esi
call   1080 <vector@plt>
movss  0x8(%rsp),%xmm0
mov    %rax,0x18(%rsp)
movss  %xmm0,0x4(%rbp)
mov    %rbx,0x30(%rsp)
test   %ebx,%ebx
mov    %r14,%rbx
jle    124d <voltra+0xcd>
mov    0x30(%rsp),%rax
lea    0x1(%rax),%r14d
mov    $0x1,%edi
call   *%r12
mov    0x8(%rbx),%rax
movss  %xmm0,0x4(%rax)
cmp    $0x2,%r14d
je     124d <voltra+0xcd>
mov    $0x2,%r15d
cs nopw 0x0(%rax,%rax,1)
nop
movss  0x4(%rbp),%xmm0
mov    %r15d,%edi
call   *%r12
mov    (%rbx,%r15,8),%rax
movss  %xmm0,0x4(%rax)
add    $0x1,%r15
cmp    %r15,%r14
jne    1230 <voltra+0xb0>
mov    %r12,0x58(%rsp)
cmpl   $0x2,0x10(%rsp)
movss  0xc(%rsp),%xmm1
mov    0x18(%rsp),%r14
mov    0x30(%rsp),%r15
jge    12b7 <voltra+0x137>
mov    %r14,%rdi
mov    $0x1,%esi
mov    %r15d,%edx
call   1050 <free_vector@plt>
mov    0x20(%rsp),%rdi
mov    $0x1,%esi
mov    %r15d,%edx
mov    $0x1,%ecx
mov    %r15d,%r8d
call   1040 <free_matrix@plt>
mov    0x38(%rsp),%rdi
mov    $0x1,%esi
mov    %r15d,%edx
call   1090 <free_ivector@plt>
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
mulsd  0xd3a(%rip),%xmm0
movapd 0xd42(%rip),%xmm2
movapd %xmm0,0xa0(%rsp)
xorpd  %xmm0,%xmm2
movapd %xmm2,0x90(%rsp)
lea    0x1(%r15),%ecx
mov    0x10(%rsp),%rax
add    $0x1,%eax
mov    %rax,0x10(%rsp)
lea    -0x1(%rcx),%rax
mov    %rcx,0x60(%rsp)
add    $0xfffffffffffffffe,%rcx
mov    %rcx,0x70(%rsp)
mov    %eax,%ecx
and    $0x3,%ecx
mov    %rcx,0x78(%rsp)
and    $0xfffffffffffffffc,%rax
mov    %rax,0x80(%rsp)
mov    $0x2,%r12d
xor    %r8d,%r8d
mov    %r13,0x28(%rsp)
jmp    138f <voltra+0x20f>
nopl   (%rax)
mov    %r14,%r12
mov    0x20(%rsp),%r14
mov    %r14,%rdi
mov    %r15d,%esi
mov    %r15,%r13
mov    0x38(%rsp),%r15
mov    %r15,%rdx
lea    0x54(%rsp),%rcx
call   1030 <ludcmp@plt>
mov    %r14,%rdi
mov    %r13d,%esi
mov    %r15,%rdx
mov    %r13,%r15
mov    0x18(%rsp),%r14
mov    0x28(%rsp),%r13
mov    %r14,%rcx
call   1060 <lubksb@plt>
mov    0x40(%rsp),%r8
movss  0xc(%rsp),%xmm1
add    $0x1,%r12
add    $0x4,%r8
cmp    0x10(%rsp),%r12
je     1269 <voltra+0xe9>
mov    %r8,0x40(%rsp)
movss  -0x4(%rbp,%r12,4),%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,0x0(%rbp,%r12,4)
test   %r15d,%r15d
mov    %r12,%r14
jle    1330 <voltra+0x1b0>
mov    $0x1,%r12d
mov    0x58(%rsp),%rax
mov    %r14,0x48(%rsp)
xchg   %ax,%ax
mov    %r12d,%edi
call   *%rax
movss  %xmm0,0x8(%rsp)
mov    $0x1,%r15d
mov    %r12,0x68(%rsp)
jmp    143e <voltra+0x2be>
nopl   0x0(%rax,%rax,1)
movsd  %xmm0,0x88(%rsp)
mov    0x48(%rsp),%r14
movss  0x0(%rbp,%r14,4),%xmm0
mov    %r12d,%edi
mov    %r15d,%esi
movaps %xmm0,%xmm1
mov    0x28(%rsp),%r13
call   *%r13
cvtss2sd %xmm0,%xmm0
mulsd  0x90(%rsp),%xmm0
addsd  0x88(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    0x20(%rsp),%rax
mov    (%rax,%r12,8),%rax
movss  %xmm0,(%rax,%r15,4)
add    $0x1,%r15
cmp    0x60(%rsp),%r15
je     1530 <voltra+0x3b0>
movss  0x0(%rbp,%r14,4),%xmm0
movss  0x4(%rbp),%xmm1
mov    %r12d,%edi
mov    %r15d,%esi
call   *%r13
cvtss2sd %xmm0,%xmm0
mulsd  0xa0(%rsp),%xmm0
mov    (%rbx,%r15,8),%rax
movss  0x4(%rax),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  %xmm0,%xmm1
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
cmp    $0x3,%r14
jb     1500 <voltra+0x380>
mov    %r14,%r12
mov    %rbx,%r13
xor    %ebx,%ebx
mov    0x40(%rsp),%r14
cs nopw 0x0(%rax,%rax,1)
movss  %xmm0,0x8(%rsp)
movss  0x0(%rbp,%r12,4),%xmm0
movss  0x8(%rbp,%rbx,1),%xmm1
mov    0x68(%rsp),%rdi
mov    %r15d,%esi
call   *0x28(%rsp)
mulss  0xc(%rsp),%xmm0
mov    0x0(%r13,%r15,8),%rax
mulss  0x8(%rax,%rbx,1),%xmm0
movss  0x8(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x8(%rsp)
movss  0x8(%rsp),%xmm0
add    $0x4,%rbx
cmp    %rbx,%r14
jne    14a0 <voltra+0x320>
jmp    1503 <voltra+0x383>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%r13
movss  %xmm0,0x8(%rsp)
mov    %r13,%rbx
movsd  0xaf4(%rip),%xmm0
mov    0x68(%rsp),%r12
cmp    %r15,%r12
je     13e0 <voltra+0x260>
xorps  %xmm0,%xmm0
jmp    13e0 <voltra+0x260>
nopw   0x0(%rax,%rax,1)
mov    0x18(%rsp),%rax
movss  0x8(%rsp),%xmm0
movss  %xmm0,(%rax,%r12,4)
add    $0x1,%r12
cmp    0x60(%rsp),%r12
je     1560 <voltra+0x3e0>
movss  0x0(%rbp,%r14,4),%xmm0
mov    0x58(%rsp),%rax
jmp    13c0 <voltra+0x240>
nopl   (%rax)
mov    %r14,%r12
mov    0x20(%rsp),%r14
mov    %r14,%rdi
mov    0x30(%rsp),%r13
mov    %r13d,%esi
mov    0x38(%rsp),%r15
mov    %r15,%rdx
lea    0x54(%rsp),%rcx
call   1030 <ludcmp@plt>
mov    %r14,%rdi
mov    %r13d,%esi
mov    %r15,%rdx
mov    %r13,%r15
mov    0x18(%rsp),%r14
mov    0x28(%rsp),%r13
mov    %r14,%rcx
call   1060 <lubksb@plt>
test   %r15d,%r15d
movss  0xc(%rsp),%xmm1
mov    0x80(%rsp),%rdx
mov    0x78(%rsp),%rdi
mov    0x40(%rsp),%r8
jle    137c <voltra+0x1fc>
mov    $0x1,%eax
cmpq   $0x3,0x70(%rsp)
jb     1631 <voltra+0x4b1>
xor    %eax,%eax
mov    0x48(%rsp),%rsi
nopl   0x0(%rax,%rax,1)
movss  0x4(%r14,%rax,4),%xmm0
mov    0x8(%rbx,%rax,8),%rcx
movss  %xmm0,(%rcx,%rsi,4)
movss  0x8(%r14,%rax,4),%xmm0
mov    0x10(%rbx,%rax,8),%rcx
movss  %xmm0,(%rcx,%rsi,4)
movss  0xc(%r14,%rax,4),%xmm0
mov    0x18(%rbx,%rax,8),%rcx
movss  %xmm0,(%rcx,%rsi,4)
movss  0x10(%r14,%rax,4),%xmm0
mov    0x20(%rbx,%rax,8),%rcx
movss  %xmm0,(%rcx,%rsi,4)
add    $0x4,%rax
cmp    %rax,%rdx
jne    15e0 <voltra+0x460>
add    $0x1,%rax
test   %rdi,%rdi
mov    0x48(%rsp),%r12
je     137c <voltra+0x1fc>
lea    (%rbx,%rax,8),%rcx
lea    (%r14,%rax,4),%rax
xor    %edx,%edx
nopl   0x0(%rax)
movss  (%rax,%rdx,4),%xmm0
mov    (%rcx,%rdx,8),%rsi
movss  %xmm0,(%rsi,%r12,4)
add    $0x1,%rdx
cmp    %rdx,%rdi
jne    1650 <voltra+0x4d0>
jmp    137c <voltra+0x1fc>

LLVM IR (-O0):
define void @voltra(i32 %0, i32 %1, float %2, float %3, float* %4, float** %5, float (i32, float)* %6, float (i32, i32, float, float)* %7) {
%9 = alloca i32
%10 = alloca i32
%11 = alloca float
%12 = alloca float
%13 = alloca float*
%14 = alloca float**
%15 = alloca float (i32, float)*
%16 = alloca float (i32, i32, float, float)*
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32*
%22 = alloca float
%23 = alloca float
%24 = alloca float**
%25 = alloca float*
store i32 %0, i32* %9
store i32 %1, i32* %10
store float %2, float* %11
store float %3, float* %12
store float* %4, float** %13
store float** %5, float*** %14
store float (i32, float)* %6, float (i32, float)** %15
store float (i32, i32, float, float)* %7, float (i32, i32, float, float)** %16
%26 = load i32, i32* %10
%27 = call i32* @ivector(i32 1, i32 %26)
store i32* %27, i32** %21
%28 = load i32, i32* %10
%29 = load i32, i32* %10
%30 = call float** @matrix(i32 1, i32 %28, i32 1, i32 %29)
store float** %30, float*** %24
%31 = load i32, i32* %10
%32 = call float* @vector(i32 1, i32 %31)
store float* %32, float** %25
%33 = load float, float* %11
%34 = load float*, float** %13
%35 = getelementptr inbounds float, float* %34, i64 1
store float %33, float* %35
store i32 1, i32* %19
br label %36
36: ; preds = %53, %8
%37 = load i32, i32* %19
%38 = load i32, i32* %10
%39 = icmp sle i32 %37, %38
br i1 %39, label %40, label %56
40: ; preds = %36
%41 = load float (i32, float)*, float (i32, float)** %15
%42 = load i32, i32* %19
%43 = load float*, float** %13
%44 = getelementptr inbounds float, float* %43, i64 1
%45 = load float, float* %44
%46 = call float %41(i32 %42, float %45)
%47 = load float**, float*** %14
%48 = load i32, i32* %19
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds float*, float** %47, i64 %49
%51 = load float*, float** %50
%52 = getelementptr inbounds float, float* %51, i64 1
store float %46, float* %52
br label %53
53: ; preds = %40
%54 = load i32, i32* %19
%55 = add nsw i32 %54, 1
store i32 %55, i32* %19
br label %36
56: ; preds = %36
store i32 2, i32* %17
br label %57
57: ; preds = %233, %56
%58 = load i32, i32* %17
%59 = load i32, i32* %9
%60 = icmp sle i32 %58, %59
br i1 %60, label %61, label %236
61: ; preds = %57
%62 = load float*, float** %13
%63 = load i32, i32* %17
%64 = sub nsw i32 %63, 1
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds float, float* %62, i64 %65
%67 = load float, float* %66
%68 = load float, float* %12
%69 = fadd float %67, %68
%70 = load float*, float** %13
%71 = load i32, i32* %17
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds float, float* %70, i64 %72
store float %69, float* %73
store i32 1, i32* %19
br label %74
74: ; preds = %200, %61
%75 = load i32, i32* %19
%76 = load i32, i32* %10
%77 = icmp sle i32 %75, %76
br i1 %77, label %78, label %203
78: ; preds = %74
%79 = load float (i32, float)*, float (i32, float)** %15
%80 = load i32, i32* %19
%81 = load float*, float** %13
%82 = load i32, i32* %17
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds float, float* %81, i64 %83
%85 = load float, float* %84
%86 = call float %79(i32 %80, float %85)
store float %86, float* %23
store i32 1, i32* %20
br label %87
87: ; preds = %191, %78
%88 = load i32, i32* %20
%89 = load i32, i32* %10
%90 = icmp sle i32 %88, %89
br i1 %90, label %91, label %194
91: ; preds = %87
%92 = load float, float* %12
%93 = fpext float %92 to double
%94 = fmul double 5.000000e-01, %93
%95 = load float (i32, i32, float, float)*, float (i32, i32, float, float)** %16
%96 = load i32, i32* %19
%97 = load i32, i32* %20
%98 = load float*, float** %13
%99 = load i32, i32* %17
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds float, float* %98, i64 %100
%102 = load float, float* %101
%103 = load float*, float** %13
%104 = getelementptr inbounds float, float* %103, i64 1
%105 = load float, float* %104
%106 = call float %95(i32 %96, i32 %97, float %102, float %105)
%107 = fpext float %106 to double
%108 = fmul double %94, %107
%109 = load float**, float*** %14
%110 = load i32, i32* %20
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds float*, float** %109, i64 %111
%113 = load float*, float** %112
%114 = getelementptr inbounds float, float* %113, i64 1
%115 = load float, float* %114
%116 = fpext float %115 to double
%117 = load float, float* %23
%118 = fpext float %117 to double
%119 = call double @llvm.fmuladd.f64(double %108, double %116, double %118)
%120 = fptrunc double %119 to float
store float %120, float* %23
store i32 2, i32* %18
br label %121
121: ; preds = %153, %91
%122 = load i32, i32* %18
%123 = load i32, i32* %17
%124 = icmp slt i32 %122, %123
br i1 %124, label %125, label %156
125: ; preds = %121
%126 = load float, float* %12
%127 = load float (i32, i32, float, float)*, float (i32, i32, float, float)** %16
%128 = load i32, i32* %19
%129 = load i32, i32* %20
%130 = load float*, float** %13
%131 = load i32, i32* %17
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds float, float* %130, i64 %132
%134 = load float, float* %133
%135 = load float*, float** %13
%136 = load i32, i32* %18
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds float, float* %135, i64 %137
%139 = load float, float* %138
%140 = call float %127(i32 %128, i32 %129, float %134, float %139)
%141 = fmul float %126, %140
%142 = load float**, float*** %14
%143 = load i32, i32* %20
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds float*, float** %142, i64 %144
%146 = load float*, float** %145
%147 = load i32, i32* %18
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds float, float* %146, i64 %148
%150 = load float, float* %149
%151 = load float, float* %23
%152 = call float @llvm.fmuladd.f32(float %141, float %150, float %151)
store float %152, float* %23
br label %153
153: ; preds = %125
%154 = load i32, i32* %18
%155 = add nsw i32 %154, 1
store i32 %155, i32* %18
br label %121
156: ; preds = %121
%157 = load i32, i32* %19
%158 = load i32, i32* %20
%159 = icmp eq i32 %157, %158
%160 = zext i1 %159 to i32
%161 = sitofp i32 %160 to double
%162 = load float, float* %12
%163 = fpext float %162 to double
%164 = fmul double 5.000000e-01, %163
%165 = load float (i32, i32, float, float)*, float (i32, i32, float, float)** %16
%166 = load i32, i32* %19
%167 = load i32, i32* %20
%168 = load float*, float** %13
%169 = load i32, i32* %17
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds float, float* %168, i64 %170
%172 = load float, float* %171
%173 = load float*, float** %13
%174 = load i32, i32* %17
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds float, float* %173, i64 %175
%177 = load float, float* %176
%178 = call float %165(i32 %166, i32 %167, float %172, float %177)
%179 = fpext float %178 to double
%180 = fneg double %164
%181 = call double @llvm.fmuladd.f64(double %180, double %179, double %161)
%182 = fptrunc double %181 to float
%183 = load float**, float*** %24
%184 = load i32, i32* %19
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds float*, float** %183, i64 %185
%187 = load float*, float** %186
%188 = load i32, i32* %20
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds float, float* %187, i64 %189
store float %182, float* %190
br label %191
191: ; preds = %156
%192 = load i32, i32* %20
%193 = add nsw i32 %192, 1
store i32 %193, i32* %20
br label %87
194: ; preds = %87
%195 = load float, float* %23
%196 = load float*, float** %25
%197 = load i32, i32* %19
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds float, float* %196, i64 %198
store float %195, float* %199
br label %200
200: ; preds = %194
%201 = load i32, i32* %19
%202 = add nsw i32 %201, 1
store i32 %202, i32* %19
br label %74
203: ; preds = %74
%204 = load float**, float*** %24
%205 = load i32, i32* %10
%206 = load i32*, i32** %21
%207 = load float**, float*** %24
%208 = load i32, i32* %10
%209 = load i32*, i32** %21
%210 = load float*, float** %25
store i32 1, i32* %19
br label %211
211: ; preds = %229, %203
%212 = load i32, i32* %19
%213 = load i32, i32* %10
%214 = icmp sle i32 %212, %213
br i1 %214, label %215, label %232
215: ; preds = %211
%216 = load float*, float** %25
%217 = load i32, i32* %19
%218 = sext i32 %217 to i64
%219 = getelementptr inbounds float, float* %216, i64 %218
%220 = load float, float* %219
%221 = load float**, float*** %14
%222 = load i32, i32* %19
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds float*, float** %221, i64 %223
%225 = load float*, float** %224
%226 = load i32, i32* %17
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds float, float* %225, i64 %227
store float %220, float* %228
br label %229
229: ; preds = %215
%230 = load i32, i32* %19
%231 = add nsw i32 %230, 1
store i32 %231, i32* %19
br label %211
232: ; preds = %211
br label %233
233: ; preds = %232
%234 = load i32, i32* %17
%235 = add nsw i32 %234, 1
store i32 %235, i32* %17
br label %57
236: ; preds = %57
%237 = load float*, float** %25
%238 = load i32, i32* %10
%239 = call i32 @free_vector(float* %237, i32 1, i32 %238)
%240 = load float**, float*** %24
%241 = load i32, i32* %10
%242 = load i32, i32* %10
%243 = call i32 @free_matrix(float** %240, i32 1, i32 %241, i32 1, i32 %242)
%244 = load i32*, i32** %21
%245 = load i32, i32* %10
%246 = call i32 @free_ivector(i32* %244, i32 1, i32 %245)
ret void
}

LLVM IR (-O2):
define void @voltra(i32 %0, i32 %1, float %2, float %3, float* nocapture %4, float** nocapture %5, float (i32, float)* nocapture %6, float (i32, i32, float, float)* nocapture %7) {
%9 = alloca float
%10 = bitcast float* %9 to i8*
%11 = tail call i32* @ivector(i32 1, i32 %1)
%12 = tail call float** @matrix(i32 1, i32 %1, i32 1, i32 %1)
%13 = tail call float* @vector(i32 1, i32 %1)
%14 = getelementptr inbounds float, float* %4, i64 1
store float %2, float* %14
%15 = icmp slt i32 %1, 1
br i1 %15, label %24, label %16
16: ; preds = %8
%17 = add nuw i32 %1, 1
%18 = zext i32 %17 to i64
%19 = tail call float %6(i32 1, float %2)
%20 = getelementptr inbounds float*, float** %5, i64 1
%21 = load float*, float** %20
%22 = getelementptr inbounds float, float* %21, i64 1
store float %19, float* %22
%23 = icmp eq i32 %17, 2
br i1 %23, label %24, label %40
24: ; preds = %40, %16, %8
%25 = icmp slt i32 %0, 2
br i1 %25, label %163, label %26
26: ; preds = %24
%27 = fpext float %3 to double
%28 = fmul double %27, 5.000000e-01
%29 = fneg double %28
%30 = add i32 %1, 1
%31 = add nuw i32 %0, 1
%32 = zext i32 %31 to i64
%33 = zext i32 %30 to i64
%34 = add nsw i64 %33, -1
%35 = add nsw i64 %33, -2
%36 = and i64 %34, 3
%37 = icmp ult i64 %35, 3
%38 = and i64 %34, -4
%39 = icmp eq i64 %36, 0
br label %50
40: ; preds = %16, %40
%41 = phi i64 [ %48, %40 ], [ 2, %16 ]
%42 = load float, float* %14
%43 = trunc i64 %41 to i32
%44 = tail call float %6(i32 %43, float %42)
%45 = getelementptr inbounds float*, float** %5, i64 %41
%46 = load float*, float** %45
%47 = getelementptr inbounds float, float* %46, i64 1
store float %44, float* %47
%48 = add nuw nsw i64 %41, 1
%49 = icmp eq i64 %48, %18
br i1 %49, label %24, label %40
50: ; preds = %26, %160
%51 = phi i64 [ 2, %26 ], [ %161, %160 ]
%52 = add nsw i64 %51, -1
%53 = getelementptr inbounds float, float* %4, i64 %52
%54 = load float, float* %53
%55 = fadd float %54, %3
%56 = getelementptr inbounds float, float* %4, i64 %51
store float %55, float* %56
br i1 %15, label %146, label %57
57: ; preds = %50
%58 = icmp ugt i64 %51, 2
br label %59
59: ; preds = %57, %113
%60 = phi float [ %55, %57 ], [ %114, %113 ]
%61 = phi i64 [ 1, %57 ], [ %111, %113 ]
%62 = trunc i64 %61 to i32
%63 = call float %6(i32 %62, float %60)
%64 = getelementptr inbounds float*, float** %12, i64 %61
br label %65
65: ; preds = %59, %96
%66 = phi i64 [ 1, %59 ], [ %107, %96 ]
%67 = phi float [ %63, %59 ], [ %97, %96 ]
%68 = load float, float* %56
%69 = load float, float* %14
%70 = trunc i64 %66 to i32
%71 = call float %7(i32 %62, i32 %70, float %68, float %69)
%72 = fpext float %71 to double
%73 = fmul double %28, %72
%74 = getelementptr inbounds float*, float** %5, i64 %66
%75 = load float*, float** %74
%76 = getelementptr inbounds float, float* %75, i64 1
%77 = load float, float* %76
%78 = fpext float %77 to double
%79 = fpext float %67 to double
%80 = call double @llvm.fmuladd.f64(double %73, double %78, double %79)
%81 = fptrunc double %80 to float
br i1 %58, label %82, label %96
82: ; preds = %65, %82
%83 = phi i64 [ %94, %82 ], [ 2, %65 ]
%84 = phi float [ %93, %82 ], [ %81, %65 ]
%85 = load float, float* %56
%86 = getelementptr inbounds float, float* %4, i64 %83
%87 = load float, float* %86
%88 = call float %7(i32 %62, i32 %70, float %85, float %87)
%89 = fmul float %88, %3
%90 = load float*, float** %74
%91 = getelementptr inbounds float, float* %90, i64 %83
%92 = load float, float* %91
%93 = call float @llvm.fmuladd.f32(float %89, float %92, float %84)
%94 = add nuw nsw i64 %83, 1
%95 = icmp eq i64 %94, %51
br i1 %95, label %96, label %82
96: ; preds = %82, %65
%97 = phi float [ %81, %65 ], [ %93, %82 ]
%98 = icmp eq i64 %61, %66
%99 = uitofp i1 %98 to double
%100 = load float, float* %56
%101 = call float %7(i32 %62, i32 %70, float %100, float %100)
%102 = fpext float %101 to double
%103 = call double @llvm.fmuladd.f64(double %29, double %102, double %99)
%104 = fptrunc double %103 to float
%105 = load float*, float** %64
%106 = getelementptr inbounds float, float* %105, i64 %66
store float %104, float* %106
%107 = add nuw nsw i64 %66, 1
%108 = icmp eq i64 %107, %33
br i1 %108, label %109, label %65
109: ; preds = %96
%110 = getelementptr inbounds float, float* %13, i64 %61
store float %97, float* %110
%111 = add nuw nsw i64 %61, 1
%112 = icmp eq i64 %111, %33
br i1 %112, label %115, label %113
113: ; preds = %109
%114 = load float, float* %56
br label %59
115: ; preds = %109
br i1 %15, label %160, label %116
116: ; preds = %115
br i1 %37, label %147, label %117
117: ; preds = %116, %117
%118 = phi i64 [ %143, %117 ], [ 1, %116 ]
%119 = phi i64 [ %144, %117 ], [ 0, %116 ]
%120 = getelementptr inbounds float, float* %13, i64 %118
%121 = load float, float* %120
%122 = getelementptr inbounds float*, float** %5, i64 %118
%123 = load float*, float** %122
%124 = getelementptr inbounds float, float* %123, i64 %51
store float %121, float* %124
%125 = add nuw nsw i64 %118, 1
%126 = getelementptr inbounds float, float* %13, i64 %125
%127 = load float, float* %126
%128 = getelementptr inbounds float*, float** %5, i64 %125
%129 = load float*, float** %128
%130 = getelementptr inbounds float, float* %129, i64 %51
store float %127, float* %130
%131 = add nuw nsw i64 %118, 2
%132 = getelementptr inbounds float, float* %13, i64 %131
%133 = load float, float* %132
%134 = getelementptr inbounds float*, float** %5, i64 %131
%135 = load float*, float** %134
%136 = getelementptr inbounds float, float* %135, i64 %51
store float %133, float* %136
%137 = add nuw nsw i64 %118, 3
%138 = getelementptr inbounds float, float* %13, i64 %137
%139 = load float, float* %138
%140 = getelementptr inbounds float*, float** %5, i64 %137
%141 = load float*, float** %140
%142 = getelementptr inbounds float, float* %141, i64 %51
store float %139, float* %142
%143 = add nuw nsw i64 %118, 4
%144 = add i64 %119, 4
%145 = icmp eq i64 %144, %38
br i1 %145, label %147, label %117
146: ; preds = %50
br label %160
147: ; preds = %117, %116
%148 = phi i64 [ 1, %116 ], [ %143, %117 ]
br i1 %39, label %160, label %149
149: ; preds = %147, %149
%150 = phi i64 [ %157, %149 ], [ %148, %147 ]
%151 = phi i64 [ %158, %149 ], [ 0, %147 ]
%152 = getelementptr inbounds float, float* %13, i64 %150
%153 = load float, float* %152
%154 = getelementptr inbounds float*, float** %5, i64 %150
%155 = load float*, float** %154
%156 = getelementptr inbounds float, float* %155, i64 %51
store float %153, float* %156
%157 = add nuw nsw i64 %150, 1
%158 = add i64 %151, 1
%159 = icmp eq i64 %158, %36
br i1 %159, label %160, label %149
160: ; preds = %147, %149, %146, %115
%161 = add nuw nsw i64 %51, 1
%162 = icmp eq i64 %161, %32
br i1 %162, label %163, label %50
163: ; preds = %160, %24
%164 = call i32 @free_vector(float* %13, i32 1, i32 %1)
%165 = call i32 @free_matrix(float** %12, i32 1, i32 %1, i32 1, i32 %1)
%166 = call i32 @free_ivector(i32* %11, i32 1, i32 %1)
ret void
}