#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 */
scalar_t__ _mymalloc(int, int, char *);
int /*<<< orphan*/ free(double *);
double stirling(int n, int m) {
  double **s, temp;
  int i, j;
  if (n < m)
    return 0.0;
  else if (n == m)
    return 1.0;
  else if (m == 0 && n > 0)
    return 0.0;
  else if (m == 1 && n > 0)
    return 1.0;
  s = (double **)(_mymalloc(
      (m * sizeof(double *)), 24,
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/borismarin/genesis2.4gamma/refs/heads/master/"
      "genesis/src/sprng/TESTS/stirling.c"));
  for (i = 0; i < m; i++)
    s[i] = (double *)(_mymalloc(
        ((n - m + 1) * sizeof(double)), 26,
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/borismarin/genesis2.4gamma/refs/heads/"
        "master/genesis/src/sprng/TESTS/stirling.c"));
  for (j = 0; j <= n - m; j++)
    s[0][j] = 1.0;
  for (i = 1; i < m; i++) {
    s[i][0] = 1.0;
    for (j = 1; j <= n - m; j++)
      s[i][j] = (i + 1) * s[i][j - 1] + s[i - 1][j];
  }
  temp = s[m - 1][n - m];
  for (i = 0; i < m; i++)
    free(s[i]);
  return temp;
}


x86 assembly (clang, -O0):
<stirling>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0xc(%rbp)
mov    %esi,-0x10(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1147 <stirling+0x27>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1389 <stirling+0x269>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    1165 <stirling+0x45>
movsd  0xea5(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1389 <stirling+0x269>
cmpl   $0x0,-0x10(%rbp)
jne    1186 <stirling+0x66>
cmpl   $0x0,-0xc(%rbp)
jle    1186 <stirling+0x66>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1389 <stirling+0x269>
cmpl   $0x1,-0x10(%rbp)
jne    11ac <stirling+0x8c>
cmpl   $0x0,-0xc(%rbp)
jle    11ac <stirling+0x8c>
movsd  0xe5e(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1389 <stirling+0x269>
jmp    11b1 <stirling+0x91>
jmp    11b6 <stirling+0x96>
jmp    11bb <stirling+0x9b>
movslq -0x10(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
mov    $0x18,%esi
lea    0xe37(%rip),%rdx
call   1040 <_mymalloc@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    122c <stirling+0x10c>
mov    -0xc(%rbp),%eax
sub    -0x10(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
mov    $0x1a,%esi
lea    0xdfe(%rip),%rdx
call   1040 <_mymalloc@plt>
mov    %rax,%rdx
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11e1 <stirling+0xc1>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    -0x10(%rbp),%ecx
cmp    %ecx,%eax
jg     126a <stirling+0x14a>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movslq -0x28(%rbp),%rcx
movsd  0xda9(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1233 <stirling+0x113>
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1329 <stirling+0x209>
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  0xd6f(%rip),%xmm0
movsd  %xmm0,(%rax)
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    -0x10(%rbp),%ecx
cmp    %ecx,%eax
jg     1316 <stirling+0x1f6>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    129c <stirling+0x17c>
jmp    131b <stirling+0x1fb>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1271 <stirling+0x151>
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0xc(%rbp),%ecx
sub    -0x10(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    137f <stirling+0x25f>
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1354 <stirling+0x234>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stirling>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xorpd  %xmm0,%xmm0
mov    %edi,%r12d
sub    %esi,%r12d
jl     1457 <stirling+0x337>
movsd  0xebd(%rip),%xmm1
jne    114e <stirling+0x2e>
movapd %xmm1,%xmm0
jmp    1457 <stirling+0x337>
mov    %esi,%ebx
test   %edi,%edi
jle    115c <stirling+0x3c>
test   %ebx,%ebx
je     1457 <stirling+0x337>
test   %edi,%edi
jle    116d <stirling+0x4d>
movapd %xmm1,%xmm0
cmp    $0x1,%ebx
je     1457 <stirling+0x337>
lea    0x0(,%rbx,8),%edi
lea    0xea5(%rip),%rdx
mov    $0x18,%esi
call   1040 <_mymalloc@plt>
mov    %rax,%r15
mov    %ebx,%r13d
mov    %rbx,(%rsp)
test   %ebx,%ebx
jle    11cc <stirling+0xac>
lea    0x8(,%r12,8),%ebp
xor    %r14d,%r14d
lea    0xe7b(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
nop
mov    %ebp,%edi
mov    $0x1a,%esi
mov    %rbx,%rdx
call   1040 <_mymalloc@plt>
mov    %rax,(%r15,%r14,8)
add    $0x1,%r14
cmp    %r14,%r13
jne    11b0 <stirling+0x90>
test   %r12d,%r12d
mov    (%rsp),%r9
js     130d <stirling+0x1ed>
mov    (%r15),%rax
lea    0x1(%r12),%ecx
cmp    $0x4,%ecx
jae    11ed <stirling+0xcd>
xor    %edx,%edx
jmp    12e9 <stirling+0x1c9>
mov    %ecx,%edx
and    $0xfffffffc,%edx
lea    -0x4(%rdx),%rbp
mov    %rbp,%rdi
shr    $0x2,%rdi
add    $0x1,%rdi
mov    %edi,%esi
and    $0x7,%esi
cmp    $0x1c,%rbp
jae    1213 <stirling+0xf3>
xor    %ebp,%ebp
jmp    12b5 <stirling+0x195>
and    $0xfffffffffffffff8,%rdi
xor    %ebp,%ebp
movapd 0xdef(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movupd %xmm0,(%rax,%rbp,8)
movupd %xmm0,0x10(%rax,%rbp,8)
movupd %xmm0,0x20(%rax,%rbp,8)
movupd %xmm0,0x30(%rax,%rbp,8)
movupd %xmm0,0x40(%rax,%rbp,8)
movupd %xmm0,0x50(%rax,%rbp,8)
movupd %xmm0,0x60(%rax,%rbp,8)
movupd %xmm0,0x70(%rax,%rbp,8)
movupd %xmm0,0x80(%rax,%rbp,8)
movupd %xmm0,0x90(%rax,%rbp,8)
movupd %xmm0,0xa0(%rax,%rbp,8)
movupd %xmm0,0xb0(%rax,%rbp,8)
movupd %xmm0,0xc0(%rax,%rbp,8)
movupd %xmm0,0xd0(%rax,%rbp,8)
movupd %xmm0,0xe0(%rax,%rbp,8)
movupd %xmm0,0xf0(%rax,%rbp,8)
add    $0x20,%rbp
add    $0xfffffffffffffff8,%rdi
jne    1230 <stirling+0x110>
test   %rsi,%rsi
je     12e4 <stirling+0x1c4>
lea    (%rax,%rbp,8),%rdi
add    $0x10,%rdi
shl    $0x5,%rsi
xor    %ebp,%ebp
movapd 0xd40(%rip),%xmm0
movupd %xmm0,-0x10(%rdi,%rbp,1)
movupd %xmm0,(%rdi,%rbp,1)
add    $0x20,%rbp
cmp    %rbp,%rsi
jne    12d0 <stirling+0x1b0>
cmp    %rcx,%rdx
je     130d <stirling+0x1ed>
movabs $0x3ff0000000000000,%rsi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rsi,(%rax,%rdx,8)
add    $0x1,%rdx
cmp    %rdx,%rcx
jne    1300 <stirling+0x1e0>
cmp    $0x2,%r9d
jl     141d <stirling+0x2fd>
lea    0x1(%r12),%eax
lea    -0x1(%rax),%rcx
add    $0xfffffffffffffffe,%rax
mov    %ecx,%edx
and    $0x3,%edx
and    $0xfffffffffffffffc,%rcx
mov    $0x1,%edi
movabs $0x3ff0000000000000,%r8
movsd  0xcbc(%rip),%xmm0
jmp    1359 <stirling+0x239>
cs nopw 0x0(%rax,%rax,1)
cmp    %r13,%rdi
je     141d <stirling+0x2fd>
mov    %rdi,%rsi
add    $0x1,%rdi
mov    (%r15,%rsi,8),%rbp
mov    %r8,0x0(%rbp)
test   %r12d,%r12d
jle    1350 <stirling+0x230>
xorps  %xmm1,%xmm1
cvtsi2sd %edi,%xmm1
mov    -0x8(%r15,%rsi,8),%rbx
mov    $0x1,%esi
movapd %xmm0,%xmm2
cmp    $0x3,%rax
jb     13dd <stirling+0x2bd>
movapd %xmm0,%xmm2
xor    %esi,%esi
xchg   %ax,%ax
mulsd  %xmm1,%xmm2
addsd  0x8(%rbx,%rsi,8),%xmm2
movsd  %xmm2,0x8(%rbp,%rsi,8)
mulsd  %xmm1,%xmm2
addsd  0x10(%rbx,%rsi,8),%xmm2
movsd  %xmm2,0x10(%rbp,%rsi,8)
mulsd  %xmm1,%xmm2
addsd  0x18(%rbx,%rsi,8),%xmm2
movsd  %xmm2,0x18(%rbp,%rsi,8)
mulsd  %xmm1,%xmm2
addsd  0x20(%rbx,%rsi,8),%xmm2
movsd  %xmm2,0x20(%rbp,%rsi,8)
add    $0x4,%rsi
cmp    %rsi,%rcx
jne    1390 <stirling+0x270>
add    $0x1,%rsi
test   %rdx,%rdx
je     1350 <stirling+0x230>
lea    0x0(%rbp,%rsi,8),%rbp
lea    (%rbx,%rsi,8),%rsi
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mulsd  %xmm1,%xmm2
addsd  (%rsi,%rbx,8),%xmm2
movsd  %xmm2,0x0(%rbp,%rbx,8)
add    $0x1,%rbx
cmp    %rbx,%rdx
jne    1400 <stirling+0x2e0>
jmp    1350 <stirling+0x230>
movslq %r9d,%rax
mov    -0x8(%r15,%rax,8),%rax
movslq %r12d,%rcx
movsd  (%rax,%rcx,8),%xmm0
test   %r9d,%r9d
jle    1457 <stirling+0x337>
movsd  %xmm0,(%rsp)
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    (%r15,%rbx,8),%rdi
call   1030 <free@plt>
add    $0x1,%rbx
cmp    %rbx,%r13
jne    1440 <stirling+0x320>
movsd  (%rsp),%xmm0
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [170 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/borismarin/genesis2.4gamma/refs/heads/master/genesis/src/sprng/TESTS/stirling.c\00"
define double @stirling(i32 %0, i32 %1) {
%3 = alloca double
%4 = alloca i32
%5 = alloca i32
%6 = alloca double**
%7 = alloca double
%8 = alloca i32
%9 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%10 = load i32, i32* %4
%11 = load i32, i32* %5
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %2
store double 0.000000e+00, double* %3
br label %168
14: ; preds = %2
%15 = load i32, i32* %4
%16 = load i32, i32* %5
%17 = icmp eq i32 %15, %16
br i1 %17, label %18, label %19
18: ; preds = %14
store double 1.000000e+00, double* %3
br label %168
19: ; preds = %14
%20 = load i32, i32* %5
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %26
22: ; preds = %19
%23 = load i32, i32* %4
%24 = icmp sgt i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %22
store double 0.000000e+00, double* %3
br label %168
26: ; preds = %22, %19
%27 = load i32, i32* %5
%28 = icmp eq i32 %27, 1
br i1 %28, label %29, label %33
29: ; preds = %26
%30 = load i32, i32* %4
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %29
store double 1.000000e+00, double* %3
br label %168
33: ; preds = %29, %26
br label %34
34: ; preds = %33
br label %35
35: ; preds = %34
br label %36
36: ; preds = %35
%37 = load i32, i32* %5
%38 = sext i32 %37 to i64
%39 = mul i64 %38, 8
%40 = trunc i64 %39 to i32
%41 = call i64 @_mymalloc(i32 %40, i32 24, i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str, i64 0, i64 0))
%42 = inttoptr i64 %41 to double**
store double** %42, double*** %6
store i32 0, i32* %8
br label %43
43: ; preds = %61, %36
%44 = load i32, i32* %8
%45 = load i32, i32* %5
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %64
47: ; preds = %43
%48 = load i32, i32* %4
%49 = load i32, i32* %5
%50 = sub nsw i32 %48, %49
%51 = add nsw i32 %50, 1
%52 = sext i32 %51 to i64
%53 = mul i64 %52, 8
%54 = trunc i64 %53 to i32
%55 = call i64 @_mymalloc(i32 %54, i32 26, i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str, i64 0, i64 0))
%56 = inttoptr i64 %55 to double*
%57 = load double**, double*** %6
%58 = load i32, i32* %8
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds double*, double** %57, i64 %59
store double* %56, double** %60
br label %61
61: ; preds = %47
%62 = load i32, i32* %8
%63 = add nsw i32 %62, 1
store i32 %63, i32* %8
br label %43
64: ; preds = %43
store i32 0, i32* %9
br label %65
65: ; preds = %78, %64
%66 = load i32, i32* %9
%67 = load i32, i32* %4
%68 = load i32, i32* %5
%69 = sub nsw i32 %67, %68
%70 = icmp sle i32 %66, %69
br i1 %70, label %71, label %81
71: ; preds = %65
%72 = load double**, double*** %6
%73 = getelementptr inbounds double*, double** %72, i64 0
%74 = load double*, double** %73
%75 = load i32, i32* %9
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds double, double* %74, i64 %76
store double 1.000000e+00, double* %77
br label %78
78: ; preds = %71
%79 = load i32, i32* %9
%80 = add nsw i32 %79, 1
store i32 %80, i32* %9
br label %65
81: ; preds = %65
store i32 1, i32* %8
br label %82
82: ; preds = %136, %81
%83 = load i32, i32* %8
%84 = load i32, i32* %5
%85 = icmp slt i32 %83, %84
br i1 %85, label %86, label %139
86: ; preds = %82
%87 = load double**, double*** %6
%88 = load i32, i32* %8
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double*, double** %87, i64 %89
%91 = load double*, double** %90
%92 = getelementptr inbounds double, double* %91, i64 0
store double 1.000000e+00, double* %92
store i32 1, i32* %9
br label %93
93: ; preds = %132, %86
%94 = load i32, i32* %9
%95 = load i32, i32* %4
%96 = load i32, i32* %5
%97 = sub nsw i32 %95, %96
%98 = icmp sle i32 %94, %97
br i1 %98, label %99, label %135
99: ; preds = %93
%100 = load i32, i32* %8
%101 = add nsw i32 %100, 1
%102 = sitofp i32 %101 to double
%103 = load double**, double*** %6
%104 = load i32, i32* %8
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds double*, double** %103, i64 %105
%107 = load double*, double** %106
%108 = load i32, i32* %9
%109 = sub nsw i32 %108, 1
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds double, double* %107, i64 %110
%112 = load double, double* %111
%113 = load double**, double*** %6
%114 = load i32, i32* %8
%115 = sub nsw i32 %114, 1
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds double*, double** %113, i64 %116
%118 = load double*, double** %117
%119 = load i32, i32* %9
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds double, double* %118, i64 %120
%122 = load double, double* %121
%123 = call double @llvm.fmuladd.f64(double %102, double %112, double %122)
%124 = load double**, double*** %6
%125 = load i32, i32* %8
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds double*, double** %124, i64 %126
%128 = load double*, double** %127
%129 = load i32, i32* %9
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds double, double* %128, i64 %130
store double %123, double* %131
br label %132
132: ; preds = %99
%133 = load i32, i32* %9
%134 = add nsw i32 %133, 1
store i32 %134, i32* %9
br label %93
135: ; preds = %93
br label %136
136: ; preds = %135
%137 = load i32, i32* %8
%138 = add nsw i32 %137, 1
store i32 %138, i32* %8
br label %82
139: ; preds = %82
%140 = load double**, double*** %6
%141 = load i32, i32* %5
%142 = sub nsw i32 %141, 1
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds double*, double** %140, i64 %143
%145 = load double*, double** %144
%146 = load i32, i32* %4
%147 = load i32, i32* %5
%148 = sub nsw i32 %146, %147
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds double, double* %145, i64 %149
%151 = load double, double* %150
store double %151, double* %7
store i32 0, i32* %8
br label %152
152: ; preds = %163, %139
%153 = load i32, i32* %8
%154 = load i32, i32* %5
%155 = icmp slt i32 %153, %154
br i1 %155, label %156, label %166
156: ; preds = %152
%157 = load double**, double*** %6
%158 = load i32, i32* %8
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds double*, double** %157, i64 %159
%161 = load double*, double** %160
%162 = call i32 @free(double* %161)
br label %163
163: ; preds = %156
%164 = load i32, i32* %8
%165 = add nsw i32 %164, 1
store i32 %165, i32* %8
br label %152
166: ; preds = %152
%167 = load double, double* %7
store double %167, double* %3
br label %168
168: ; preds = %166, %32, %25, %18, %13
%169 = load double, double* %3
ret double %169
}

LLVM IR (-O2):
@.str = [170 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/borismarin/genesis2.4gamma/refs/heads/master/genesis/src/sprng/TESTS/stirling.c\00"
define double @stirling(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, %1
br i1 %3, label %198, label %4
4: ; preds = %2
%5 = icmp eq i32 %0, %1
br i1 %5, label %198, label %6
6: ; preds = %4
%7 = icmp eq i32 %1, 0
%8 = icmp sgt i32 %0, 0
%9 = and i1 %8, %7
br i1 %9, label %198, label %10
10: ; preds = %6
%11 = icmp eq i32 %1, 1
%12 = and i1 %8, %11
br i1 %12, label %198, label %13
13: ; preds = %10
%14 = shl i32 %1, 3
%15 = tail call i64 @_mymalloc(i32 %14, i32 24, i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str, i64 0, i64 0))
%16 = inttoptr i64 %15 to double**
%17 = icmp sgt i32 %1, 0
%18 = sub nsw i32 %0, %1
br i1 %17, label %19, label %23
19: ; preds = %13
%20 = shl i32 %18, 3
%21 = add i32 %20, 8
%22 = zext i32 %1 to i64
br label %102
23: ; preds = %102, %13
%24 = icmp slt i32 %18, 0
br i1 %24, label %109, label %25
25: ; preds = %23
%26 = load double*, double** %16
%27 = add i32 %0, 1
%28 = sub i32 %27, %1
%29 = zext i32 %28 to i64
%30 = icmp ult i32 %28, 4
br i1 %30, label %100, label %31
31: ; preds = %25
%32 = and i64 %29, 4294967292
%33 = add nsw i64 %32, -4
%34 = lshr exact i64 %33, 2
%35 = add nuw nsw i64 %34, 1
%36 = and i64 %35, 7
%37 = icmp ult i64 %33, 28
br i1 %37, label %85, label %38
38: ; preds = %31
%39 = and i64 %35, 9223372036854775800
br label %40
40: ; preds = %40, %38
%41 = phi i64 [ 0, %38 ], [ %82, %40 ]
%42 = phi i64 [ 0, %38 ], [ %83, %40 ]
%43 = getelementptr inbounds double, double* %26, i64 %41
%44 = bitcast double* %43 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %44
%45 = getelementptr inbounds double, double* %43, i64 2
%46 = bitcast double* %45 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %46
%47 = or i64 %41, 4
%48 = getelementptr inbounds double, double* %26, i64 %47
%49 = bitcast double* %48 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %49
%50 = getelementptr inbounds double, double* %48, i64 2
%51 = bitcast double* %50 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %51
%52 = or i64 %41, 8
%53 = getelementptr inbounds double, double* %26, i64 %52
%54 = bitcast double* %53 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %54
%55 = getelementptr inbounds double, double* %53, i64 2
%56 = bitcast double* %55 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %56
%57 = or i64 %41, 12
%58 = getelementptr inbounds double, double* %26, i64 %57
%59 = bitcast double* %58 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %59
%60 = getelementptr inbounds double, double* %58, i64 2
%61 = bitcast double* %60 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %61
%62 = or i64 %41, 16
%63 = getelementptr inbounds double, double* %26, i64 %62
%64 = bitcast double* %63 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %64
%65 = getelementptr inbounds double, double* %63, i64 2
%66 = bitcast double* %65 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %66
%67 = or i64 %41, 20
%68 = getelementptr inbounds double, double* %26, i64 %67
%69 = bitcast double* %68 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %69
%70 = getelementptr inbounds double, double* %68, i64 2
%71 = bitcast double* %70 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %71
%72 = or i64 %41, 24
%73 = getelementptr inbounds double, double* %26, i64 %72
%74 = bitcast double* %73 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %74
%75 = getelementptr inbounds double, double* %73, i64 2
%76 = bitcast double* %75 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %76
%77 = or i64 %41, 28
%78 = getelementptr inbounds double, double* %26, i64 %77
%79 = bitcast double* %78 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %79
%80 = getelementptr inbounds double, double* %78, i64 2
%81 = bitcast double* %80 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %81
%82 = add nuw i64 %41, 32
%83 = add i64 %42, 8
%84 = icmp eq i64 %83, %39
br i1 %84, label %85, label %40
85: ; preds = %40, %31
%86 = phi i64 [ 0, %31 ], [ %82, %40 ]
%87 = icmp eq i64 %36, 0
br i1 %87, label %98, label %88
88: ; preds = %85, %88
%89 = phi i64 [ %95, %88 ], [ %86, %85 ]
%90 = phi i64 [ %96, %88 ], [ 0, %85 ]
%91 = getelementptr inbounds double, double* %26, i64 %89
%92 = bitcast double* %91 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %92
%93 = getelementptr inbounds double, double* %91, i64 2
%94 = bitcast double* %93 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %94
%95 = add nuw i64 %89, 4
%96 = add i64 %90, 1
%97 = icmp eq i64 %96, %36
br i1 %97, label %98, label %88
98: ; preds = %88, %85
%99 = icmp eq i64 %32, %29
br i1 %99, label %109, label %100
100: ; preds = %25, %98
%101 = phi i64 [ 0, %25 ], [ %32, %98 ]
br label %123
102: ; preds = %19, %102
%103 = phi i64 [ 0, %19 ], [ %107, %102 ]
%104 = tail call i64 @_mymalloc(i32 %21, i32 26, i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str, i64 0, i64 0))
%105 = inttoptr i64 %104 to double*
%106 = getelementptr inbounds double*, double** %16, i64 %103
store double* %105, double** %106
%107 = add nuw nsw i64 %103, 1
%108 = icmp eq i64 %107, %22
br i1 %108, label %23, label %102
109: ; preds = %123, %98, %23
%110 = icmp sgt i32 %1, 1
br i1 %110, label %111, label %181
111: ; preds = %109
%112 = icmp slt i32 %18, 1
%113 = add i32 %0, 1
%114 = sub i32 %113, %1
%115 = zext i32 %1 to i64
%116 = zext i32 %114 to i64
%117 = add nsw i64 %116, -1
%118 = add nsw i64 %116, -2
%119 = and i64 %117, 3
%120 = icmp ult i64 %118, 3
%121 = and i64 %117, -4
%122 = icmp eq i64 %119, 0
br label %128
123: ; preds = %100, %123
%124 = phi i64 [ %126, %123 ], [ %101, %100 ]
%125 = getelementptr inbounds double, double* %26, i64 %124
store double 1.000000e+00, double* %125
%126 = add nuw nsw i64 %124, 1
%127 = icmp eq i64 %126, %29
br i1 %127, label %109, label %123
128: ; preds = %111, %179
%129 = phi i64 [ 1, %111 ], [ %132, %179 ]
%130 = getelementptr inbounds double*, double** %16, i64 %129
%131 = load double*, double** %130
store double 1.000000e+00, double* %131
%132 = add nuw nsw i64 %129, 1
br i1 %112, label %179, label %133
133: ; preds = %128
%134 = trunc i64 %132 to i32
%135 = sitofp i32 %134 to double
%136 = add nsw i64 %129, -1
%137 = getelementptr inbounds double*, double** %16, i64 %136
%138 = load double*, double** %137
br i1 %120, label %165, label %139
139: ; preds = %133, %139
%140 = phi double [ %160, %139 ], [ 1.000000e+00, %133 ]
%141 = phi i64 [ %162, %139 ], [ 1, %133 ]
%142 = phi i64 [ %163, %139 ], [ 0, %133 ]
%143 = getelementptr inbounds double, double* %138, i64 %141
%144 = load double, double* %143
%145 = tail call double @llvm.fmuladd.f64(double %135, double %140, double %144)
%146 = getelementptr inbounds double, double* %131, i64 %141
store double %145, double* %146
%147 = add nuw nsw i64 %141, 1
%148 = getelementptr inbounds double, double* %138, i64 %147
%149 = load double, double* %148
%150 = tail call double @llvm.fmuladd.f64(double %135, double %145, double %149)
%151 = getelementptr inbounds double, double* %131, i64 %147
store double %150, double* %151
%152 = add nuw nsw i64 %141, 2
%153 = getelementptr inbounds double, double* %138, i64 %152
%154 = load double, double* %153
%155 = tail call double @llvm.fmuladd.f64(double %135, double %150, double %154)
%156 = getelementptr inbounds double, double* %131, i64 %152
store double %155, double* %156
%157 = add nuw nsw i64 %141, 3
%158 = getelementptr inbounds double, double* %138, i64 %157
%159 = load double, double* %158
%160 = tail call double @llvm.fmuladd.f64(double %135, double %155, double %159)
%161 = getelementptr inbounds double, double* %131, i64 %157
store double %160, double* %161
%162 = add nuw nsw i64 %141, 4
%163 = add i64 %142, 4
%164 = icmp eq i64 %163, %121
br i1 %164, label %165, label %139
165: ; preds = %139, %133
%166 = phi double [ 1.000000e+00, %133 ], [ %160, %139 ]
%167 = phi i64 [ 1, %133 ], [ %162, %139 ]
br i1 %122, label %179, label %168
168: ; preds = %165, %168
%169 = phi double [ %174, %168 ], [ %166, %165 ]
%170 = phi i64 [ %176, %168 ], [ %167, %165 ]
%171 = phi i64 [ %177, %168 ], [ 0, %165 ]
%172 = getelementptr inbounds double, double* %138, i64 %170
%173 = load double, double* %172
%174 = tail call double @llvm.fmuladd.f64(double %135, double %169, double %173)
%175 = getelementptr inbounds double, double* %131, i64 %170
store double %174, double* %175
%176 = add nuw nsw i64 %170, 1
%177 = add i64 %171, 1
%178 = icmp eq i64 %177, %119
br i1 %178, label %179, label %168
179: ; preds = %165, %168, %128
%180 = icmp eq i64 %132, %115
br i1 %180, label %181, label %128
181: ; preds = %179, %109
%182 = add nsw i32 %1, -1
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds double*, double** %16, i64 %183
%185 = load double*, double** %184
%186 = sext i32 %18 to i64
%187 = getelementptr inbounds double, double* %185, i64 %186
%188 = load double, double* %187
br i1 %17, label %189, label %198
189: ; preds = %181
%190 = zext i32 %1 to i64
br label %191
191: ; preds = %189, %191
%192 = phi i64 [ 0, %189 ], [ %196, %191 ]
%193 = getelementptr inbounds double*, double** %16, i64 %192
%194 = load double*, double** %193
%195 = tail call i32 @free(double* %194)
%196 = add nuw nsw i64 %192, 1
%197 = icmp eq i64 %196, %190
br i1 %197, label %198, label %191
198: ; preds = %191, %181, %10, %6, %4, %2
%199 = phi double [ 0.000000e+00, %2 ], [ 1.000000e+00, %4 ], [ 0.000000e+00, %6 ], [ 1.000000e+00, %10 ], [ %188, %181 ], [ %188, %191 ]
ret double %199
}