#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*/ abort();
int fact(int);
scalar_t__ malloc(int);
int main() {
  int *s, *g, *w, *v, *gw, *gv, *wv, *gwv, i, n = 10;
  s = (int *)malloc(sizeof(int) * n);
  g = (int *)malloc(sizeof(int) * n);
  w = (int *)malloc(sizeof(int) * n);
  v = (int *)malloc(sizeof(int) * n);
  gw = (int *)malloc(sizeof(int) * n);
  gv = (int *)malloc(sizeof(int) * n);
  wv = (int *)malloc(sizeof(int) * n);
  gwv = (int *)malloc(sizeof(int) * n);
#pragma acc parallel loop async copyout(s [0:n]) seq
  for (i = 0; i < n; i++)
    s[i] = fact(i);
#pragma acc parallel loop async copyout(g [0:n]) gang
  for (i = 0; i < n; i++)
    g[i] = fact(i);
#pragma acc parallel loop async copyout(w [0:n]) worker
  for (i = 0; i < n; i++)
    w[i] = fact(i);
#pragma acc parallel loop async copyout(v [0:n]) vector
  for (i = 0; i < n; i++)
    v[i] = fact(i);
#pragma acc parallel loop async copyout(gw [0:n]) gang worker
  for (i = 0; i < n; i++)
    gw[i] = fact(i);
#pragma acc parallel loop async copyout(gv [0:n]) gang vector
  for (i = 0; i < n; i++)
    gv[i] = fact(i);
#pragma acc parallel loop async copyout(wv [0:n]) worker vector
  for (i = 0; i < n; i++)
    wv[i] = fact(i);
#pragma acc parallel loop async copyout(gwv [0:n]) gang worker vector
  for (i = 0; i < n; i++)
    gwv[i] = fact(i);
#pragma acc wait
  for (i = 0; i < n; i++)
    if (s[i] != fact(i))
      abort();
  for (i = 0; i < n; i++)
    if (g[i] != s[i])
      abort();
  for (i = 0; i < n; i++)
    if (w[i] != s[i])
      abort();
  for (i = 0; i < n; i++)
    if (v[i] != s[i])
      abort();
  for (i = 0; i < n; i++)
    if (gw[i] != s[i])
      abort();
  for (i = 0; i < n; i++)
    if (gv[i] != s[i])
      abort();
  for (i = 0; i < n; i++)
    if (wv[i] != s[i])
      abort();
  for (i = 0; i < n; i++)
    if (gwv[i] != s[i])
      abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xa,-0x50(%rbp)
movslq -0x50(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x10(%rbp)
movslq -0x50(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x18(%rbp)
movslq -0x50(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x20(%rbp)
movslq -0x50(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x28(%rbp)
movslq -0x50(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x30(%rbp)
movslq -0x50(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x38(%rbp)
movslq -0x50(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x40(%rbp)
movslq -0x50(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    1214 <main+0xe4>
mov    -0x4c(%rbp),%edi
call   1050 <fact@plt>
mov    %eax,%edx
mov    -0x10(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    11e5 <main+0xb5>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    124a <main+0x11a>
mov    -0x4c(%rbp),%edi
call   1050 <fact@plt>
mov    %eax,%edx
mov    -0x18(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    121b <main+0xeb>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    1280 <main+0x150>
mov    -0x4c(%rbp),%edi
call   1050 <fact@plt>
mov    %eax,%edx
mov    -0x20(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1251 <main+0x121>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    12b6 <main+0x186>
mov    -0x4c(%rbp),%edi
call   1050 <fact@plt>
mov    %eax,%edx
mov    -0x28(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1287 <main+0x157>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    12ec <main+0x1bc>
mov    -0x4c(%rbp),%edi
call   1050 <fact@plt>
mov    %eax,%edx
mov    -0x30(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    12bd <main+0x18d>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    1322 <main+0x1f2>
mov    -0x4c(%rbp),%edi
call   1050 <fact@plt>
mov    %eax,%edx
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    12f3 <main+0x1c3>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    1358 <main+0x228>
mov    -0x4c(%rbp),%edi
call   1050 <fact@plt>
mov    %eax,%edx
mov    -0x40(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1329 <main+0x1f9>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    138e <main+0x25e>
mov    -0x4c(%rbp),%edi
call   1050 <fact@plt>
mov    %eax,%edx
mov    -0x48(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    135f <main+0x22f>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    13de <main+0x2ae>
mov    -0x10(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x54(%rbp)
mov    -0x4c(%rbp),%edi
call   1050 <fact@plt>
mov    %eax,%ecx
mov    -0x54(%rbp),%eax
cmp    %ecx,%eax
je     13cb <main+0x29b>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    13d0 <main+0x2a0>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1395 <main+0x265>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    1427 <main+0x2f7>
mov    -0x18(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x10(%rbp),%rcx
movslq -0x4c(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
je     1414 <main+0x2e4>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    1419 <main+0x2e9>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    13e5 <main+0x2b5>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    1470 <main+0x340>
mov    -0x20(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x10(%rbp),%rcx
movslq -0x4c(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
je     145d <main+0x32d>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    1462 <main+0x332>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    142e <main+0x2fe>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    14b9 <main+0x389>
mov    -0x28(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x10(%rbp),%rcx
movslq -0x4c(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
je     14a6 <main+0x376>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    14ab <main+0x37b>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1477 <main+0x347>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    1502 <main+0x3d2>
mov    -0x30(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x10(%rbp),%rcx
movslq -0x4c(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
je     14ef <main+0x3bf>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    14f4 <main+0x3c4>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    14c0 <main+0x390>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    154b <main+0x41b>
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x10(%rbp),%rcx
movslq -0x4c(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
je     1538 <main+0x408>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    153d <main+0x40d>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1509 <main+0x3d9>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    1594 <main+0x464>
mov    -0x40(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x10(%rbp),%rcx
movslq -0x4c(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
je     1581 <main+0x451>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    1586 <main+0x456>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1552 <main+0x422>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    15dd <main+0x4ad>
mov    -0x48(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x10(%rbp),%rcx
movslq -0x4c(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
je     15ca <main+0x49a>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    15cf <main+0x49f>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    159b <main+0x46b>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    $0x28,%edi
call   1040 <malloc@plt>
mov    %rax,%r14
mov    $0x28,%edi
call   1040 <malloc@plt>
mov    %rax,%r15
mov    $0x28,%edi
call   1040 <malloc@plt>
mov    %rax,%r13
mov    $0x28,%edi
call   1040 <malloc@plt>
mov    %rax,%r12
mov    $0x28,%edi
call   1040 <malloc@plt>
mov    %rax,%rbp
mov    $0x28,%edi
call   1040 <malloc@plt>
mov    %rax,%rbx
mov    $0x28,%edi
call   1040 <malloc@plt>
mov    %rax,0x8(%rsp)
mov    $0x28,%edi
call   1040 <malloc@plt>
mov    %rax,(%rsp)
xor    %edi,%edi
call   1050 <fact@plt>
mov    %eax,(%r14)
mov    $0x1,%edi
call   1050 <fact@plt>
mov    %eax,0x4(%r14)
mov    $0x2,%edi
call   1050 <fact@plt>
mov    %eax,0x8(%r14)
mov    $0x3,%edi
call   1050 <fact@plt>
mov    %eax,0xc(%r14)
mov    $0x4,%edi
call   1050 <fact@plt>
mov    %eax,0x10(%r14)
mov    $0x5,%edi
call   1050 <fact@plt>
mov    %eax,0x14(%r14)
mov    $0x6,%edi
call   1050 <fact@plt>
mov    %eax,0x18(%r14)
mov    $0x7,%edi
call   1050 <fact@plt>
mov    %eax,0x1c(%r14)
mov    $0x8,%edi
call   1050 <fact@plt>
mov    %eax,0x20(%r14)
mov    $0x9,%edi
call   1050 <fact@plt>
mov    %eax,0x24(%r14)
xor    %edi,%edi
call   1050 <fact@plt>
mov    %eax,(%r15)
mov    $0x1,%edi
call   1050 <fact@plt>
mov    %eax,0x4(%r15)
mov    $0x2,%edi
call   1050 <fact@plt>
mov    %eax,0x8(%r15)
mov    $0x3,%edi
call   1050 <fact@plt>
mov    %eax,0xc(%r15)
mov    $0x4,%edi
call   1050 <fact@plt>
mov    %eax,0x10(%r15)
mov    $0x5,%edi
call   1050 <fact@plt>
mov    %eax,0x14(%r15)
mov    $0x6,%edi
call   1050 <fact@plt>
mov    %eax,0x18(%r15)
mov    $0x7,%edi
call   1050 <fact@plt>
mov    %eax,0x1c(%r15)
mov    $0x8,%edi
call   1050 <fact@plt>
mov    %eax,0x20(%r15)
mov    $0x9,%edi
call   1050 <fact@plt>
mov    %eax,0x24(%r15)
xor    %edi,%edi
call   1050 <fact@plt>
mov    %eax,0x0(%r13)
mov    $0x1,%edi
call   1050 <fact@plt>
mov    %eax,0x4(%r13)
mov    $0x2,%edi
call   1050 <fact@plt>
mov    %eax,0x8(%r13)
mov    $0x3,%edi
call   1050 <fact@plt>
mov    %eax,0xc(%r13)
mov    $0x4,%edi
call   1050 <fact@plt>
mov    %eax,0x10(%r13)
mov    $0x5,%edi
call   1050 <fact@plt>
mov    %eax,0x14(%r13)
mov    $0x6,%edi
call   1050 <fact@plt>
mov    %eax,0x18(%r13)
mov    $0x7,%edi
call   1050 <fact@plt>
mov    %eax,0x1c(%r13)
mov    $0x8,%edi
call   1050 <fact@plt>
mov    %eax,0x20(%r13)
mov    $0x9,%edi
call   1050 <fact@plt>
mov    %eax,0x24(%r13)
xor    %edi,%edi
call   1050 <fact@plt>
mov    %eax,(%r12)
mov    $0x1,%edi
call   1050 <fact@plt>
mov    %eax,0x4(%r12)
mov    $0x2,%edi
call   1050 <fact@plt>
mov    %eax,0x8(%r12)
mov    $0x3,%edi
call   1050 <fact@plt>
mov    %eax,0xc(%r12)
mov    $0x4,%edi
call   1050 <fact@plt>
mov    %eax,0x10(%r12)
mov    $0x5,%edi
call   1050 <fact@plt>
mov    %eax,0x14(%r12)
mov    $0x6,%edi
call   1050 <fact@plt>
mov    %eax,0x18(%r12)
mov    $0x7,%edi
call   1050 <fact@plt>
mov    %eax,0x1c(%r12)
mov    $0x8,%edi
call   1050 <fact@plt>
mov    %eax,0x20(%r12)
mov    $0x9,%edi
call   1050 <fact@plt>
mov    %r12,0x20(%rsp)
mov    %eax,0x24(%r12)
xor    %edi,%edi
call   1050 <fact@plt>
mov    %eax,0x0(%rbp)
mov    $0x1,%edi
call   1050 <fact@plt>
mov    %eax,0x4(%rbp)
mov    $0x2,%edi
call   1050 <fact@plt>
mov    %eax,0x8(%rbp)
mov    $0x3,%edi
call   1050 <fact@plt>
mov    %eax,0xc(%rbp)
mov    $0x4,%edi
call   1050 <fact@plt>
mov    %eax,0x10(%rbp)
mov    $0x5,%edi
call   1050 <fact@plt>
mov    %eax,0x14(%rbp)
mov    $0x6,%edi
call   1050 <fact@plt>
mov    %eax,0x18(%rbp)
mov    $0x7,%edi
call   1050 <fact@plt>
mov    %eax,0x1c(%rbp)
mov    $0x8,%edi
call   1050 <fact@plt>
mov    %eax,0x20(%rbp)
mov    $0x9,%edi
call   1050 <fact@plt>
mov    %rbp,0x18(%rsp)
mov    %eax,0x24(%rbp)
xor    %edi,%edi
call   1050 <fact@plt>
mov    %eax,(%rbx)
mov    $0x1,%edi
call   1050 <fact@plt>
mov    %eax,0x4(%rbx)
mov    $0x2,%edi
call   1050 <fact@plt>
mov    %eax,0x8(%rbx)
mov    $0x3,%edi
call   1050 <fact@plt>
mov    %eax,0xc(%rbx)
mov    $0x4,%edi
call   1050 <fact@plt>
mov    %eax,0x10(%rbx)
mov    $0x5,%edi
call   1050 <fact@plt>
mov    %eax,0x14(%rbx)
mov    $0x6,%edi
call   1050 <fact@plt>
mov    %eax,0x18(%rbx)
mov    $0x7,%edi
call   1050 <fact@plt>
mov    %eax,0x1c(%rbx)
mov    $0x8,%edi
call   1050 <fact@plt>
mov    %eax,0x20(%rbx)
mov    $0x9,%edi
call   1050 <fact@plt>
mov    %rbx,0x10(%rsp)
mov    %eax,0x24(%rbx)
xor    %edi,%edi
call   1050 <fact@plt>
mov    0x8(%rsp),%rbx
mov    %eax,(%rbx)
mov    $0x1,%edi
call   1050 <fact@plt>
mov    %eax,0x4(%rbx)
mov    $0x2,%edi
call   1050 <fact@plt>
mov    %eax,0x8(%rbx)
mov    $0x3,%edi
call   1050 <fact@plt>
mov    %eax,0xc(%rbx)
mov    $0x4,%edi
call   1050 <fact@plt>
mov    %eax,0x10(%rbx)
mov    $0x5,%edi
call   1050 <fact@plt>
mov    %eax,0x14(%rbx)
mov    $0x6,%edi
call   1050 <fact@plt>
mov    %eax,0x18(%rbx)
mov    $0x7,%edi
call   1050 <fact@plt>
mov    %eax,0x1c(%rbx)
mov    $0x8,%edi
call   1050 <fact@plt>
mov    %eax,0x20(%rbx)
mov    $0x9,%edi
call   1050 <fact@plt>
mov    %eax,0x24(%rbx)
xor    %edi,%edi
call   1050 <fact@plt>
mov    (%rsp),%rbx
mov    %eax,(%rbx)
mov    $0x1,%edi
call   1050 <fact@plt>
mov    %eax,0x4(%rbx)
mov    $0x2,%edi
call   1050 <fact@plt>
mov    %eax,0x8(%rbx)
mov    $0x3,%edi
call   1050 <fact@plt>
mov    %eax,0xc(%rbx)
mov    $0x4,%edi
call   1050 <fact@plt>
mov    %eax,0x10(%rbx)
mov    $0x5,%edi
call   1050 <fact@plt>
mov    %eax,0x14(%rbx)
mov    $0x6,%edi
call   1050 <fact@plt>
mov    %eax,0x18(%rbx)
mov    $0x7,%edi
call   1050 <fact@plt>
mov    %eax,0x1c(%rbx)
mov    $0x8,%edi
call   1050 <fact@plt>
mov    %eax,0x20(%rbx)
mov    $0x9,%edi
call   1050 <fact@plt>
mov    %eax,0x24(%rbx)
mov    (%r14),%ebx
xor    %edi,%edi
call   1050 <fact@plt>
cmp    %eax,%ebx
jne    195a <main+0x82a>
mov    0x4(%r14),%ebx
mov    $0x1,%edi
call   1050 <fact@plt>
cmp    %eax,%ebx
jne    195a <main+0x82a>
mov    0x8(%r14),%ebx
mov    $0x2,%edi
call   1050 <fact@plt>
cmp    %eax,%ebx
jne    195a <main+0x82a>
mov    0xc(%r14),%ebx
mov    $0x3,%edi
call   1050 <fact@plt>
cmp    %eax,%ebx
jne    195a <main+0x82a>
mov    0x10(%r14),%ebx
mov    $0x4,%edi
call   1050 <fact@plt>
cmp    %eax,%ebx
jne    195a <main+0x82a>
mov    0x14(%r14),%ebx
mov    $0x5,%edi
call   1050 <fact@plt>
cmp    %eax,%ebx
jne    195a <main+0x82a>
mov    0x18(%r14),%ebx
mov    $0x6,%edi
call   1050 <fact@plt>
cmp    %eax,%ebx
jne    195a <main+0x82a>
mov    0x1c(%r14),%ebx
mov    $0x7,%edi
call   1050 <fact@plt>
cmp    %eax,%ebx
jne    195a <main+0x82a>
mov    0x20(%r14),%ebx
mov    $0x8,%edi
call   1050 <fact@plt>
cmp    %eax,%ebx
jne    195a <main+0x82a>
mov    0x24(%r14),%ebx
mov    $0x9,%edi
call   1050 <fact@plt>
cmp    %eax,%ebx
jne    195a <main+0x82a>
mov    (%r15),%r8d
cmp    (%r14),%r8d
jne    195a <main+0x82a>
mov    0x4(%r15),%r9d
cmp    0x4(%r14),%r9d
jne    195a <main+0x82a>
mov    0x8(%r15),%r10d
cmp    0x8(%r14),%r10d
jne    195a <main+0x82a>
mov    0xc(%r15),%r11d
cmp    0xc(%r14),%r11d
jne    195a <main+0x82a>
mov    0x10(%r15),%r12d
cmp    0x10(%r14),%r12d
jne    195a <main+0x82a>
mov    0x14(%r15),%ebx
cmp    0x14(%r14),%ebx
jne    195a <main+0x82a>
mov    0x18(%r15),%eax
cmp    0x18(%r14),%eax
jne    195a <main+0x82a>
mov    0x1c(%r15),%ecx
cmp    0x1c(%r14),%ecx
jne    195a <main+0x82a>
mov    0x20(%r15),%edx
cmp    0x20(%r14),%edx
jne    195a <main+0x82a>
mov    0x24(%r15),%ebp
cmp    0x24(%r14),%ebp
jne    195a <main+0x82a>
cmp    %r8d,0x0(%r13)
jne    195a <main+0x82a>
cmp    %r9d,0x4(%r13)
jne    195a <main+0x82a>
cmp    %r10d,0x8(%r13)
jne    195a <main+0x82a>
cmp    %r11d,0xc(%r13)
jne    195a <main+0x82a>
cmp    %r12d,0x10(%r13)
jne    195a <main+0x82a>
cmp    %ebx,0x14(%r13)
jne    195a <main+0x82a>
cmp    %eax,0x18(%r13)
jne    195a <main+0x82a>
cmp    %ecx,0x1c(%r13)
jne    195a <main+0x82a>
cmp    %edx,0x20(%r13)
jne    195a <main+0x82a>
cmp    %ebp,0x24(%r13)
jne    195a <main+0x82a>
mov    0x20(%rsp),%rsi
cmp    %r8d,(%rsi)
jne    195a <main+0x82a>
cmp    %r9d,0x4(%rsi)
jne    195a <main+0x82a>
cmp    %r10d,0x8(%rsi)
jne    195a <main+0x82a>
cmp    %r11d,0xc(%rsi)
jne    195a <main+0x82a>
cmp    %r12d,0x10(%rsi)
jne    195a <main+0x82a>
cmp    %ebx,0x14(%rsi)
jne    195a <main+0x82a>
cmp    %eax,0x18(%rsi)
jne    195a <main+0x82a>
cmp    %ecx,0x1c(%rsi)
jne    195a <main+0x82a>
cmp    %edx,0x20(%rsi)
jne    195a <main+0x82a>
cmp    %ebp,0x24(%rsi)
jne    195a <main+0x82a>
mov    0x18(%rsp),%rsi
cmp    %r8d,(%rsi)
jne    195a <main+0x82a>
cmp    %r9d,0x4(%rsi)
jne    195a <main+0x82a>
cmp    %r10d,0x8(%rsi)
jne    195a <main+0x82a>
cmp    %r11d,0xc(%rsi)
jne    195a <main+0x82a>
cmp    %r12d,0x10(%rsi)
jne    195a <main+0x82a>
cmp    %ebx,0x14(%rsi)
jne    195a <main+0x82a>
cmp    %eax,0x18(%rsi)
jne    195a <main+0x82a>
cmp    %ecx,0x1c(%rsi)
jne    195a <main+0x82a>
cmp    %edx,0x20(%rsi)
jne    195a <main+0x82a>
cmp    %ebp,0x24(%rsi)
jne    195a <main+0x82a>
mov    0x10(%rsp),%rdi
cmp    %r8d,(%rdi)
mov    0x8(%rsp),%rsi
jne    195a <main+0x82a>
cmp    %r9d,0x4(%rdi)
jne    195a <main+0x82a>
cmp    %r10d,0x8(%rdi)
jne    195a <main+0x82a>
cmp    %r11d,0xc(%rdi)
jne    195a <main+0x82a>
cmp    %r12d,0x10(%rdi)
jne    195a <main+0x82a>
cmp    %ebx,0x14(%rdi)
jne    195a <main+0x82a>
cmp    %eax,0x18(%rdi)
jne    195a <main+0x82a>
cmp    %ecx,0x1c(%rdi)
jne    195a <main+0x82a>
cmp    %edx,0x20(%rdi)
jne    195a <main+0x82a>
cmp    %ebp,0x24(%rdi)
jne    195a <main+0x82a>
cmp    %r8d,(%rsi)
jne    195a <main+0x82a>
cmp    %r9d,0x4(%rsi)
jne    195a <main+0x82a>
cmp    %r10d,0x8(%rsi)
jne    195a <main+0x82a>
cmp    %r11d,0xc(%rsi)
jne    195a <main+0x82a>
cmp    %r12d,0x10(%rsi)
jne    195a <main+0x82a>
cmp    %ebx,0x14(%rsi)
jne    195a <main+0x82a>
cmp    %eax,0x18(%rsi)
jne    195a <main+0x82a>
cmp    %ecx,0x1c(%rsi)
jne    195a <main+0x82a>
cmp    %edx,0x20(%rsi)
jne    195a <main+0x82a>
cmp    %ebp,0x24(%rsi)
jne    195a <main+0x82a>
mov    (%rsp),%rsi
cmp    %r8d,(%rsi)
jne    195a <main+0x82a>
cmp    %r9d,0x4(%rsi)
jne    195a <main+0x82a>
cmp    %r10d,0x8(%rsi)
jne    195a <main+0x82a>
cmp    %r11d,0xc(%rsi)
jne    195a <main+0x82a>
cmp    %r12d,0x10(%rsi)
jne    195a <main+0x82a>
cmp    %ebx,0x14(%rsi)
jne    195a <main+0x82a>
cmp    %eax,0x18(%rsi)
jne    195a <main+0x82a>
cmp    %ecx,0x1c(%rsi)
jne    195a <main+0x82a>
cmp    %edx,0x20(%rsi)
jne    195a <main+0x82a>
cmp    %ebp,0x24(%rsi)
jne    195a <main+0x82a>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %1
store i32 10, i32* %11
%12 = load i32, i32* %11
%13 = sext i32 %12 to i64
%14 = mul i64 4, %13
%15 = trunc i64 %14 to i32
%16 = call i64 @malloc(i32 %15)
%17 = inttoptr i64 %16 to i32*
store i32* %17, i32** %2
%18 = load i32, i32* %11
%19 = sext i32 %18 to i64
%20 = mul i64 4, %19
%21 = trunc i64 %20 to i32
%22 = call i64 @malloc(i32 %21)
%23 = inttoptr i64 %22 to i32*
store i32* %23, i32** %3
%24 = load i32, i32* %11
%25 = sext i32 %24 to i64
%26 = mul i64 4, %25
%27 = trunc i64 %26 to i32
%28 = call i64 @malloc(i32 %27)
%29 = inttoptr i64 %28 to i32*
store i32* %29, i32** %4
%30 = load i32, i32* %11
%31 = sext i32 %30 to i64
%32 = mul i64 4, %31
%33 = trunc i64 %32 to i32
%34 = call i64 @malloc(i32 %33)
%35 = inttoptr i64 %34 to i32*
store i32* %35, i32** %5
%36 = load i32, i32* %11
%37 = sext i32 %36 to i64
%38 = mul i64 4, %37
%39 = trunc i64 %38 to i32
%40 = call i64 @malloc(i32 %39)
%41 = inttoptr i64 %40 to i32*
store i32* %41, i32** %6
%42 = load i32, i32* %11
%43 = sext i32 %42 to i64
%44 = mul i64 4, %43
%45 = trunc i64 %44 to i32
%46 = call i64 @malloc(i32 %45)
%47 = inttoptr i64 %46 to i32*
store i32* %47, i32** %7
%48 = load i32, i32* %11
%49 = sext i32 %48 to i64
%50 = mul i64 4, %49
%51 = trunc i64 %50 to i32
%52 = call i64 @malloc(i32 %51)
%53 = inttoptr i64 %52 to i32*
store i32* %53, i32** %8
%54 = load i32, i32* %11
%55 = sext i32 %54 to i64
%56 = mul i64 4, %55
%57 = trunc i64 %56 to i32
%58 = call i64 @malloc(i32 %57)
%59 = inttoptr i64 %58 to i32*
store i32* %59, i32** %9
store i32 0, i32* %10
br label %60
60: ; preds = %71, %0
%61 = load i32, i32* %10
%62 = load i32, i32* %11
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %74
64: ; preds = %60
%65 = load i32, i32* %10
%66 = call i32 @fact(i32 %65)
%67 = load i32*, i32** %2
%68 = load i32, i32* %10
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, i32* %67, i64 %69
store i32 %66, i32* %70
br label %71
71: ; preds = %64
%72 = load i32, i32* %10
%73 = add nsw i32 %72, 1
store i32 %73, i32* %10
br label %60
74: ; preds = %60
store i32 0, i32* %10
br label %75
75: ; preds = %86, %74
%76 = load i32, i32* %10
%77 = load i32, i32* %11
%78 = icmp slt i32 %76, %77
br i1 %78, label %79, label %89
79: ; preds = %75
%80 = load i32, i32* %10
%81 = call i32 @fact(i32 %80)
%82 = load i32*, i32** %3
%83 = load i32, i32* %10
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, i32* %82, i64 %84
store i32 %81, i32* %85
br label %86
86: ; preds = %79
%87 = load i32, i32* %10
%88 = add nsw i32 %87, 1
store i32 %88, i32* %10
br label %75
89: ; preds = %75
store i32 0, i32* %10
br label %90
90: ; preds = %101, %89
%91 = load i32, i32* %10
%92 = load i32, i32* %11
%93 = icmp slt i32 %91, %92
br i1 %93, label %94, label %104
94: ; preds = %90
%95 = load i32, i32* %10
%96 = call i32 @fact(i32 %95)
%97 = load i32*, i32** %4
%98 = load i32, i32* %10
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i32, i32* %97, i64 %99
store i32 %96, i32* %100
br label %101
101: ; preds = %94
%102 = load i32, i32* %10
%103 = add nsw i32 %102, 1
store i32 %103, i32* %10
br label %90
104: ; preds = %90
store i32 0, i32* %10
br label %105
105: ; preds = %116, %104
%106 = load i32, i32* %10
%107 = load i32, i32* %11
%108 = icmp slt i32 %106, %107
br i1 %108, label %109, label %119
109: ; preds = %105
%110 = load i32, i32* %10
%111 = call i32 @fact(i32 %110)
%112 = load i32*, i32** %5
%113 = load i32, i32* %10
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i32, i32* %112, i64 %114
store i32 %111, i32* %115
br label %116
116: ; preds = %109
%117 = load i32, i32* %10
%118 = add nsw i32 %117, 1
store i32 %118, i32* %10
br label %105
119: ; preds = %105
store i32 0, i32* %10
br label %120
120: ; preds = %131, %119
%121 = load i32, i32* %10
%122 = load i32, i32* %11
%123 = icmp slt i32 %121, %122
br i1 %123, label %124, label %134
124: ; preds = %120
%125 = load i32, i32* %10
%126 = call i32 @fact(i32 %125)
%127 = load i32*, i32** %6
%128 = load i32, i32* %10
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i32, i32* %127, i64 %129
store i32 %126, i32* %130
br label %131
131: ; preds = %124
%132 = load i32, i32* %10
%133 = add nsw i32 %132, 1
store i32 %133, i32* %10
br label %120
134: ; preds = %120
store i32 0, i32* %10
br label %135
135: ; preds = %146, %134
%136 = load i32, i32* %10
%137 = load i32, i32* %11
%138 = icmp slt i32 %136, %137
br i1 %138, label %139, label %149
139: ; preds = %135
%140 = load i32, i32* %10
%141 = call i32 @fact(i32 %140)
%142 = load i32*, i32** %7
%143 = load i32, i32* %10
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds i32, i32* %142, i64 %144
store i32 %141, i32* %145
br label %146
146: ; preds = %139
%147 = load i32, i32* %10
%148 = add nsw i32 %147, 1
store i32 %148, i32* %10
br label %135
149: ; preds = %135
store i32 0, i32* %10
br label %150
150: ; preds = %161, %149
%151 = load i32, i32* %10
%152 = load i32, i32* %11
%153 = icmp slt i32 %151, %152
br i1 %153, label %154, label %164
154: ; preds = %150
%155 = load i32, i32* %10
%156 = call i32 @fact(i32 %155)
%157 = load i32*, i32** %8
%158 = load i32, i32* %10
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds i32, i32* %157, i64 %159
store i32 %156, i32* %160
br label %161
161: ; preds = %154
%162 = load i32, i32* %10
%163 = add nsw i32 %162, 1
store i32 %163, i32* %10
br label %150
164: ; preds = %150
store i32 0, i32* %10
br label %165
165: ; preds = %176, %164
%166 = load i32, i32* %10
%167 = load i32, i32* %11
%168 = icmp slt i32 %166, %167
br i1 %168, label %169, label %179
169: ; preds = %165
%170 = load i32, i32* %10
%171 = call i32 @fact(i32 %170)
%172 = load i32*, i32** %9
%173 = load i32, i32* %10
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds i32, i32* %172, i64 %174
store i32 %171, i32* %175
br label %176
176: ; preds = %169
%177 = load i32, i32* %10
%178 = add nsw i32 %177, 1
store i32 %178, i32* %10
br label %165
179: ; preds = %165
store i32 0, i32* %10
br label %180
180: ; preds = %196, %179
%181 = load i32, i32* %10
%182 = load i32, i32* %11
%183 = icmp slt i32 %181, %182
br i1 %183, label %184, label %199
184: ; preds = %180
%185 = load i32*, i32** %2
%186 = load i32, i32* %10
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds i32, i32* %185, i64 %187
%189 = load i32, i32* %188
%190 = load i32, i32* %10
%191 = call i32 @fact(i32 %190)
%192 = icmp ne i32 %189, %191
br i1 %192, label %193, label %195
193: ; preds = %184
%194 = call i32 (...) @abort()
unreachable
195: ; preds = %184
br label %196
196: ; preds = %195
%197 = load i32, i32* %10
%198 = add nsw i32 %197, 1
store i32 %198, i32* %10
br label %180
199: ; preds = %180
store i32 0, i32* %10
br label %200
200: ; preds = %219, %199
%201 = load i32, i32* %10
%202 = load i32, i32* %11
%203 = icmp slt i32 %201, %202
br i1 %203, label %204, label %222
204: ; preds = %200
%205 = load i32*, i32** %3
%206 = load i32, i32* %10
%207 = sext i32 %206 to i64
%208 = getelementptr inbounds i32, i32* %205, i64 %207
%209 = load i32, i32* %208
%210 = load i32*, i32** %2
%211 = load i32, i32* %10
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds i32, i32* %210, i64 %212
%214 = load i32, i32* %213
%215 = icmp ne i32 %209, %214
br i1 %215, label %216, label %218
216: ; preds = %204
%217 = call i32 (...) @abort()
unreachable
218: ; preds = %204
br label %219
219: ; preds = %218
%220 = load i32, i32* %10
%221 = add nsw i32 %220, 1
store i32 %221, i32* %10
br label %200
222: ; preds = %200
store i32 0, i32* %10
br label %223
223: ; preds = %242, %222
%224 = load i32, i32* %10
%225 = load i32, i32* %11
%226 = icmp slt i32 %224, %225
br i1 %226, label %227, label %245
227: ; preds = %223
%228 = load i32*, i32** %4
%229 = load i32, i32* %10
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds i32, i32* %228, i64 %230
%232 = load i32, i32* %231
%233 = load i32*, i32** %2
%234 = load i32, i32* %10
%235 = sext i32 %234 to i64
%236 = getelementptr inbounds i32, i32* %233, i64 %235
%237 = load i32, i32* %236
%238 = icmp ne i32 %232, %237
br i1 %238, label %239, label %241
239: ; preds = %227
%240 = call i32 (...) @abort()
unreachable
241: ; preds = %227
br label %242
242: ; preds = %241
%243 = load i32, i32* %10
%244 = add nsw i32 %243, 1
store i32 %244, i32* %10
br label %223
245: ; preds = %223
store i32 0, i32* %10
br label %246
246: ; preds = %265, %245
%247 = load i32, i32* %10
%248 = load i32, i32* %11
%249 = icmp slt i32 %247, %248
br i1 %249, label %250, label %268
250: ; preds = %246
%251 = load i32*, i32** %5
%252 = load i32, i32* %10
%253 = sext i32 %252 to i64
%254 = getelementptr inbounds i32, i32* %251, i64 %253
%255 = load i32, i32* %254
%256 = load i32*, i32** %2
%257 = load i32, i32* %10
%258 = sext i32 %257 to i64
%259 = getelementptr inbounds i32, i32* %256, i64 %258
%260 = load i32, i32* %259
%261 = icmp ne i32 %255, %260
br i1 %261, label %262, label %264
262: ; preds = %250
%263 = call i32 (...) @abort()
unreachable
264: ; preds = %250
br label %265
265: ; preds = %264
%266 = load i32, i32* %10
%267 = add nsw i32 %266, 1
store i32 %267, i32* %10
br label %246
268: ; preds = %246
store i32 0, i32* %10
br label %269
269: ; preds = %288, %268
%270 = load i32, i32* %10
%271 = load i32, i32* %11
%272 = icmp slt i32 %270, %271
br i1 %272, label %273, label %291
273: ; preds = %269
%274 = load i32*, i32** %6
%275 = load i32, i32* %10
%276 = sext i32 %275 to i64
%277 = getelementptr inbounds i32, i32* %274, i64 %276
%278 = load i32, i32* %277
%279 = load i32*, i32** %2
%280 = load i32, i32* %10
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds i32, i32* %279, i64 %281
%283 = load i32, i32* %282
%284 = icmp ne i32 %278, %283
br i1 %284, label %285, label %287
285: ; preds = %273
%286 = call i32 (...) @abort()
unreachable
287: ; preds = %273
br label %288
288: ; preds = %287
%289 = load i32, i32* %10
%290 = add nsw i32 %289, 1
store i32 %290, i32* %10
br label %269
291: ; preds = %269
store i32 0, i32* %10
br label %292
292: ; preds = %311, %291
%293 = load i32, i32* %10
%294 = load i32, i32* %11
%295 = icmp slt i32 %293, %294
br i1 %295, label %296, label %314
296: ; preds = %292
%297 = load i32*, i32** %7
%298 = load i32, i32* %10
%299 = sext i32 %298 to i64
%300 = getelementptr inbounds i32, i32* %297, i64 %299
%301 = load i32, i32* %300
%302 = load i32*, i32** %2
%303 = load i32, i32* %10
%304 = sext i32 %303 to i64
%305 = getelementptr inbounds i32, i32* %302, i64 %304
%306 = load i32, i32* %305
%307 = icmp ne i32 %301, %306
br i1 %307, label %308, label %310
308: ; preds = %296
%309 = call i32 (...) @abort()
unreachable
310: ; preds = %296
br label %311
311: ; preds = %310
%312 = load i32, i32* %10
%313 = add nsw i32 %312, 1
store i32 %313, i32* %10
br label %292
314: ; preds = %292
store i32 0, i32* %10
br label %315
315: ; preds = %334, %314
%316 = load i32, i32* %10
%317 = load i32, i32* %11
%318 = icmp slt i32 %316, %317
br i1 %318, label %319, label %337
319: ; preds = %315
%320 = load i32*, i32** %8
%321 = load i32, i32* %10
%322 = sext i32 %321 to i64
%323 = getelementptr inbounds i32, i32* %320, i64 %322
%324 = load i32, i32* %323
%325 = load i32*, i32** %2
%326 = load i32, i32* %10
%327 = sext i32 %326 to i64
%328 = getelementptr inbounds i32, i32* %325, i64 %327
%329 = load i32, i32* %328
%330 = icmp ne i32 %324, %329
br i1 %330, label %331, label %333
331: ; preds = %319
%332 = call i32 (...) @abort()
unreachable
333: ; preds = %319
br label %334
334: ; preds = %333
%335 = load i32, i32* %10
%336 = add nsw i32 %335, 1
store i32 %336, i32* %10
br label %315
337: ; preds = %315
store i32 0, i32* %10
br label %338
338: ; preds = %357, %337
%339 = load i32, i32* %10
%340 = load i32, i32* %11
%341 = icmp slt i32 %339, %340
br i1 %341, label %342, label %360
342: ; preds = %338
%343 = load i32*, i32** %9
%344 = load i32, i32* %10
%345 = sext i32 %344 to i64
%346 = getelementptr inbounds i32, i32* %343, i64 %345
%347 = load i32, i32* %346
%348 = load i32*, i32** %2
%349 = load i32, i32* %10
%350 = sext i32 %349 to i64
%351 = getelementptr inbounds i32, i32* %348, i64 %350
%352 = load i32, i32* %351
%353 = icmp ne i32 %347, %352
br i1 %353, label %354, label %356
354: ; preds = %342
%355 = call i32 (...) @abort()
unreachable
356: ; preds = %342
br label %357
357: ; preds = %356
%358 = load i32, i32* %10
%359 = add nsw i32 %358, 1
store i32 %359, i32* %10
br label %338
360: ; preds = %338
ret i32 0
}

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