void FSMPLX(double *p, double *y, int *na, double *ftol, double *atol,
            double (*funk)(), int *itmax, int *iter, int *iflag) {
  double *pr;
  int *lista;
  int ndim = *na;
  int ilo, ihi, i;
  if (!(pr = (double *)malloc(ndim * sizeof(double))) ||
      !(lista = (int *)malloc(ndim * sizeof(int)))) {
    printf("FSMPLX: Error - not enough memory\n");
    *iflag = 0;
    return;
  }
  for (i = 0; i < ndim; i++) {
    *(pr + i) = *(p + i);
    *(lista + i) = i;
  }
  *iflag = simplx(p, y, ndim, pr, *na, *ftol, *atol, lista, funk, *itmax, iter,
                  &ilo, &ihi);
  for (i = 0; i < ndim; i++) {
    *(p + i) = *(p + ilo * ndim + i);
  }
  free(pr);
  free(lista);
}


x86 assembly (clang, -O0):
<FSMPLX>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x80,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
mov    %r8,-0x38(%rbp)
mov    %r9,-0x40(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
movslq -0x54(%rbp),%rdi
shl    $0x3,%rdi
call   1060 <malloc@plt>
mov    %rax,-0x48(%rbp)
cmp    $0x0,%rax
je     11b1 <FSMPLX+0x71>
movslq -0x54(%rbp),%rdi
shl    $0x2,%rdi
call   1060 <malloc@plt>
mov    %rax,-0x50(%rbp)
cmp    $0x0,%rax
jne    11ce <FSMPLX+0x8e>
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x20(%rbp),%rax
movl   $0x0,(%rax)
jmp    12db <FSMPLX+0x19b>
movl   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x54(%rbp),%eax
jge    1217 <FSMPLX+0xd7>
mov    -0x18(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x60(%rbp),%edx
mov    -0x50(%rbp),%rax
movslq -0x60(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    11d5 <FSMPLX+0x95>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x54(%rbp),%edx
mov    -0x48(%rbp),%rcx
mov    -0x28(%rbp),%rax
mov    (%rax),%r8d
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x50(%rbp),%r9
mov    -0x40(%rbp),%r14
mov    0x10(%rbp),%rax
mov    (%rax),%ebx
mov    0x18(%rbp),%r11
lea    -0x58(%rbp),%r10
lea    -0x5c(%rbp),%rax
mov    %r14,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
mov    $0x2,%al
call   1050 <simplx@plt>
mov    %eax,%ecx
mov    0x20(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x54(%rbp),%eax
jge    12c9 <FSMPLX+0x189>
mov    -0x18(%rbp),%rax
mov    -0x58(%rbp),%ecx
imul   -0x54(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x60(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    1284 <FSMPLX+0x144>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
add    $0x80,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<FSMPLX>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r9,%rbp
mov    %r8,0x10(%rsp)
mov    %rcx,0x8(%rsp)
mov    %rsi,0x18(%rsp)
mov    %rdi,%r15
mov    0x80(%rsp),%r12
movslq (%rdx),%r13
lea    0x0(,%r13,8),%rdi
call   1070 <malloc@plt>
test   %rax,%rax
je     11ff <FSMPLX+0xaf>
mov    %rax,%r14
lea    0x0(,%r13,4),%rdi
call   1070 <malloc@plt>
test   %rax,%rax
je     11ff <FSMPLX+0xaf>
mov    %rax,%rbx
mov    %rbp,0x28(%rsp)
mov    0x78(%rsp),%rbp
mov    0x70(%rsp),%rcx
mov    %r13d,%r12d
test   %r12d,%r12d
mov    %r14,0x30(%rsp)
jle    1218 <FSMPLX+0xc8>
lea    0x0(,%r12,8),%rdx
mov    %r14,%rdi
mov    %r15,%rsi
call   1060 <memcpy@plt>
cmp    $0x8,%r13d
jae    1279 <FSMPLX+0x129>
xor    %eax,%eax
mov    0x18(%rsp),%rsi
mov    %r14,%rcx
mov    0x10(%rsp),%r9
mov    0x8(%rsp),%r10
mov    0x70(%rsp),%r11
jmp    1400 <FSMPLX+0x2b0>
lea    0xe8a(%rip),%rdi
call   1040 <puts@plt>
movl   $0x0,(%r12)
jmp    15f5 <FSMPLX+0x4a5>
mov    0x8(%rsp),%rax
movsd  (%rax),%xmm0
mov    0x10(%rsp),%rax
movsd  (%rax),%xmm1
mov    (%rcx),%r10d
sub    $0x8,%rsp
lea    0x2c(%rsp),%r11
lea    0xc(%rsp),%rbp
mov    %r15,%rdi
mov    0x20(%rsp),%rsi
mov    %r13d,%edx
mov    %r14,%rcx
mov    %r12d,%r8d
mov    %rbx,%r9
mov    $0x2,%al
push   %r11
push   %rbp
push   0x90(%rsp)
push   %r10
push   0x50(%rsp)
call   1050 <simplx@plt>
add    $0x30,%rsp
mov    0x80(%rsp),%rcx
mov    %eax,(%rcx)
jmp    15e3 <FSMPLX+0x493>
mov    %r12d,%eax
and    $0xfffffff8,%eax
lea    -0x8(%rax),%rsi
mov    %rsi,%rdx
shr    $0x3,%rdx
add    $0x1,%rdx
mov    %edx,%r8d
and    $0x3,%r8d
cmp    $0x18,%rsi
jae    12c1 <FSMPLX+0x171>
movdqa 0xd5d(%rip),%xmm0
xor    %edi,%edi
mov    0x18(%rsp),%rsi
mov    %r14,%rcx
mov    0x10(%rsp),%r9
mov    0x8(%rsp),%r10
mov    0x70(%rsp),%r11
jmp    13a8 <FSMPLX+0x258>
and    $0xfffffffffffffffc,%rdx
movdqa 0xd33(%rip),%xmm0
xor    %edi,%edi
movdqa 0xd38(%rip),%xmm8
movdqa 0xd3f(%rip),%xmm9
movdqa 0xd46(%rip),%xmm10
movdqa 0xd4e(%rip),%xmm4
movdqa 0xd56(%rip),%xmm5
movdqa 0xd5e(%rip),%xmm6
movdqa 0xd66(%rip),%xmm7
movdqa 0xd6e(%rip),%xmm1
mov    0x18(%rsp),%rsi
mov    %r14,%rcx
mov    0x10(%rsp),%r9
mov    0x8(%rsp),%r10
mov    0x70(%rsp),%r11
nopl   0x0(%rax)
movdqa %xmm0,%xmm2
paddd  %xmm8,%xmm2
movdqu %xmm0,(%rbx,%rdi,4)
movdqu %xmm2,0x10(%rbx,%rdi,4)
movdqa %xmm0,%xmm2
paddd  %xmm9,%xmm2
movdqa %xmm0,%xmm3
paddd  %xmm10,%xmm3
movdqu %xmm2,0x20(%rbx,%rdi,4)
movdqu %xmm3,0x30(%rbx,%rdi,4)
movdqa %xmm0,%xmm2
paddd  %xmm4,%xmm2
movdqa %xmm0,%xmm3
paddd  %xmm5,%xmm3
movdqu %xmm2,0x40(%rbx,%rdi,4)
movdqu %xmm3,0x50(%rbx,%rdi,4)
movdqa %xmm0,%xmm2
paddd  %xmm6,%xmm2
movdqa %xmm0,%xmm3
paddd  %xmm7,%xmm3
movdqu %xmm2,0x60(%rbx,%rdi,4)
movdqu %xmm3,0x70(%rbx,%rdi,4)
add    $0x20,%rdi
paddd  %xmm1,%xmm0
add    $0xfffffffffffffffc,%rdx
jne    1330 <FSMPLX+0x1e0>
test   %r8,%r8
je     13f0 <FSMPLX+0x2a0>
lea    (%rbx,%rdi,4),%rdx
add    $0x10,%rdx
shl    $0x5,%r8
xor    %edi,%edi
movdqa 0xc4d(%rip),%xmm1
movdqa 0xc55(%rip),%xmm2
nopl   0x0(%rax,%rax,1)
movdqa %xmm0,%xmm3
paddd  %xmm1,%xmm3
movdqu %xmm0,-0x10(%rdx,%rdi,1)
movdqu %xmm3,(%rdx,%rdi,1)
paddd  %xmm2,%xmm0
add    $0x20,%rdi
cmp    %rdi,%r8
jne    13d0 <FSMPLX+0x280>
cmp    %r12,%rax
je     140c <FSMPLX+0x2bc>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %eax,(%rbx,%rax,4)
add    $0x1,%rax
cmp    %rax,%r12
jne    1400 <FSMPLX+0x2b0>
movsd  (%r10),%xmm0
movsd  (%r9),%xmm1
mov    (%r11),%r10d
sub    $0x8,%rsp
lea    0x2c(%rsp),%r11
lea    0xc(%rsp),%r14
mov    %r15,%rdi
mov    %r12d,%edx
mov    %r13d,%r8d
mov    %rbx,%r9
mov    $0x2,%al
push   %r11
push   %r14
push   %rbp
push   %r10
push   0x50(%rsp)
call   1050 <simplx@plt>
add    $0x30,%rsp
mov    0x80(%rsp),%rcx
mov    %eax,(%rcx)
test   %r12d,%r12d
jle    15e3 <FSMPLX+0x493>
movslq 0x4(%rsp),%rcx
movslq %r12d,%rax
imul   %rcx,%rax
cmp    $0x4,%r13d
jb     1490 <FSMPLX+0x340>
lea    (%rax,%r12,1),%rcx
lea    (%r15,%rcx,8),%rcx
cmp    %r15,%rcx
jbe    1519 <FSMPLX+0x3c9>
lea    (%r15,%rax,8),%rcx
lea    (%r15,%r12,8),%rdx
cmp    %rdx,%rcx
jae    1519 <FSMPLX+0x3c9>
xor    %ecx,%ecx
mov    %rcx,%rdx
not    %rdx
add    %r12,%rdx
mov    %r12,%rsi
and    $0x3,%rsi
je     14c9 <FSMPLX+0x379>
lea    (%r15,%rcx,8),%rdi
neg    %rsi
xor    %ebp,%ebp
nopl   (%rax)
movsd  (%rdi,%rax,8),%xmm0
movsd  %xmm0,(%rdi)
add    $0xffffffffffffffff,%rbp
add    $0x8,%rdi
cmp    %rbp,%rsi
jne    14b0 <FSMPLX+0x360>
sub    %rbp,%rcx
cmp    $0x3,%rdx
jb     15e3 <FSMPLX+0x493>
sub    %rcx,%r12
lea    (%r15,%rcx,8),%rcx
add    $0x18,%rcx
xchg   %ax,%ax
movsd  -0x18(%rcx,%rax,8),%xmm0
movsd  %xmm0,-0x18(%rcx)
movsd  -0x10(%rcx,%rax,8),%xmm0
movsd  %xmm0,-0x10(%rcx)
movsd  -0x8(%rcx,%rax,8),%xmm0
movsd  %xmm0,-0x8(%rcx)
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,(%rcx)
add    $0x20,%rcx
add    $0xfffffffffffffffc,%r12
jne    14e0 <FSMPLX+0x390>
jmp    15e3 <FSMPLX+0x493>
mov    %r12d,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdi
mov    %rdi,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
mov    %esi,%edx
and    $0x3,%edx
cmp    $0xc,%rdi
jae    153d <FSMPLX+0x3ed>
xor    %edi,%edi
jmp    15b1 <FSMPLX+0x461>
and    $0xfffffffffffffffc,%rsi
lea    (%r15,%rax,8),%rbp
add    $0x70,%rbp
xor    %edi,%edi
nopl   0x0(%rax,%rax,1)
movups -0x70(%rbp,%rdi,8),%xmm0
movups -0x60(%rbp,%rdi,8),%xmm1
movups %xmm0,(%r15,%rdi,8)
movups %xmm1,0x10(%r15,%rdi,8)
movups -0x50(%rbp,%rdi,8),%xmm0
movups -0x40(%rbp,%rdi,8),%xmm1
movups %xmm0,0x20(%r15,%rdi,8)
movups %xmm1,0x30(%r15,%rdi,8)
movups -0x30(%rbp,%rdi,8),%xmm0
movups -0x20(%rbp,%rdi,8),%xmm1
movups %xmm0,0x40(%r15,%rdi,8)
movups %xmm1,0x50(%r15,%rdi,8)
movups -0x10(%rbp,%rdi,8),%xmm0
movups 0x0(%rbp,%rdi,8),%xmm1
movups %xmm0,0x60(%r15,%rdi,8)
movups %xmm1,0x70(%r15,%rdi,8)
add    $0x10,%rdi
add    $0xfffffffffffffffc,%rsi
jne    1550 <FSMPLX+0x400>
test   %rdx,%rdx
je     15da <FSMPLX+0x48a>
lea    (%r15,%rdi,8),%rsi
add    $0x10,%rsi
xchg   %ax,%ax
movups -0x10(%rsi,%rax,8),%xmm0
movups (%rsi,%rax,8),%xmm1
movups %xmm0,-0x10(%rsi)
movups %xmm1,(%rsi)
add    $0x20,%rsi
add    $0xffffffffffffffff,%rdx
jne    15c0 <FSMPLX+0x470>
cmp    %r12,%rcx
jne    1492 <FSMPLX+0x342>
mov    0x30(%rsp),%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [35 x i8] c"FSMPLX: Error - not enough memory\0A\00"
define void @FSMPLX(double* %0, double* %1, i32* %2, double* %3, double* %4, double (...)* %5, i32* %6, i32* %7, i32* %8) {
%10 = alloca double*
%11 = alloca double*
%12 = alloca i32*
%13 = alloca double*
%14 = alloca double*
%15 = alloca double (...)*
%16 = alloca i32*
%17 = alloca i32*
%18 = alloca i32*
%19 = alloca double*
%20 = alloca i32*
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
store double* %0, double** %10
store double* %1, double** %11
store i32* %2, i32** %12
store double* %3, double** %13
store double* %4, double** %14
store double (...)* %5, double (...)** %15
store i32* %6, i32** %16
store i32* %7, i32** %17
store i32* %8, i32** %18
%25 = load i32*, i32** %12
%26 = load i32, i32* %25
store i32 %26, i32* %21
%27 = load i32, i32* %21
%28 = sext i32 %27 to i64
%29 = mul i64 %28, 8
%30 = call i8* @malloc(i64 %29)
%31 = bitcast i8* %30 to double*
store double* %31, double** %19
%32 = icmp ne double* %31, null
br i1 %32, label %33, label %40
33: ; preds = %9
%34 = load i32, i32* %21
%35 = sext i32 %34 to i64
%36 = mul i64 %35, 4
%37 = call i8* @malloc(i64 %36)
%38 = bitcast i8* %37 to i32*
store i32* %38, i32** %20
%39 = icmp ne i32* %38, null
br i1 %39, label %43, label %40
40: ; preds = %33, %9
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%42 = load i32*, i32** %18
store i32 0, i32* %42
br label %111
43: ; preds = %33
store i32 0, i32* %24
br label %44
44: ; preds = %63, %43
%45 = load i32, i32* %24
%46 = load i32, i32* %21
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %66
48: ; preds = %44
%49 = load double*, double** %10
%50 = load i32, i32* %24
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds double, double* %49, i64 %51
%53 = load double, double* %52
%54 = load double*, double** %19
%55 = load i32, i32* %24
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, double* %54, i64 %56
store double %53, double* %57
%58 = load i32, i32* %24
%59 = load i32*, i32** %20
%60 = load i32, i32* %24
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, i32* %59, i64 %61
store i32 %58, i32* %62
br label %63
63: ; preds = %48
%64 = load i32, i32* %24
%65 = add nsw i32 %64, 1
store i32 %65, i32* %24
br label %44
66: ; preds = %44
%67 = load double*, double** %10
%68 = load double*, double** %11
%69 = load i32, i32* %21
%70 = load double*, double** %19
%71 = load i32*, i32** %12
%72 = load i32, i32* %71
%73 = load double*, double** %13
%74 = load double, double* %73
%75 = load double*, double** %14
%76 = load double, double* %75
%77 = load i32*, i32** %20
%78 = load double (...)*, double (...)** %15
%79 = load i32*, i32** %16
%80 = load i32, i32* %79
%81 = load i32*, i32** %17
%82 = call i32 (double*, double*, i32, double*, i32, double, double, i32*, double (...)*, i32, i32*, i32*, i32*, ...) bitcast (i32 (...)* @simplx to i32 (double*, double*, i32, double*, i32, double, double, i32*, double (...)*, i32, i32*, i32*, i32*, ...)*)(double* %67, double* %68, i32 %69, double* %70, i32 %72, double %74, double %76, i32* %77, double (...)* %78, i32 %80, i32* %81, i32* %22, i32* %23)
%83 = load i32*, i32** %18
store i32 %82, i32* %83
store i32 0, i32* %24
br label %84
84: ; preds = %103, %66
%85 = load i32, i32* %24
%86 = load i32, i32* %21
%87 = icmp slt i32 %85, %86
br i1 %87, label %88, label %106
88: ; preds = %84
%89 = load double*, double** %10
%90 = load i32, i32* %22
%91 = load i32, i32* %21
%92 = mul nsw i32 %90, %91
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds double, double* %89, i64 %93
%95 = load i32, i32* %24
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds double, double* %94, i64 %96
%98 = load double, double* %97
%99 = load double*, double** %10
%100 = load i32, i32* %24
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds double, double* %99, i64 %101
store double %98, double* %102
br label %103
103: ; preds = %88
%104 = load i32, i32* %24
%105 = add nsw i32 %104, 1
store i32 %105, i32* %24
br label %84
106: ; preds = %84
%107 = load double*, double** %19
%108 = bitcast double* %107 to i8*
%109 = load i32*, i32** %20
%110 = bitcast i32* %109 to i8*
br label %111
111: ; preds = %106, %40
ret void
}

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