#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 */
typedef int /*<<< orphan*/ foo;
typedef int /*<<< orphan*/ bla;

/* Variables and functions */
int /*<<< orphan*/ Rfree(char *, char *);
int /*<<< orphan*/ Rmalloc_stat(char *);
char *Rrealloc(char *, int, char *);
char *Rstrdup(char *, char *);
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ memset(char **, int /*<<< orphan*/, int);
unsigned int rand();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
void Test0(void) {
  unsigned int u;
  int i;
  char *bla[1000];
  unsigned int count = 1000;
  char *foo[20];
  memset(bla, 0, sizeof(bla));
  srand(time(NULL));
  while (count > 0) {
    u = (u + rand()) % 1000;
    if (bla[u] == NULL) {
      bla[u] = Rstrdup(("abcdefg"),
                       "/scratch/repos/new/home/jordi_armengol_estape/"
                       "c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/"
                       "roclick/refs/heads/master/src/rmalloc/rtest.c"
                       ":"
                       "82");
      assert(bla[u] != NULL);
      count--;
    }
  }
  Rmalloc_stat("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/"
               "master/src/rmalloc/rtest.c"
               ":"
               "88");
  for (i = 0; i < sizeof(foo) / sizeof(*foo); i++) {
    foo[i] = Rstrdup(("0123456"),
                     "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                     "outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/"
                     "heads/master/src/rmalloc/rtest.c"
                     ":"
                     "91");
  }
  Rmalloc_stat("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/"
               "master/src/rmalloc/rtest.c"
               ":"
               "94");
  for (i = 1000 - 1; i >= 0; i--) {
    assert(strcmp(bla[i], "abcdefg") == 0);
    bla[i] = Rrealloc((bla[i]), (16),
                      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                      "outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/"
                      "heads/master/src/rmalloc/rtest.c"
                      ":"
                      "98");
    assert(bla[i] != NULL);
    strcpy(bla[i], "ABCDEFGHIJKLMNO");
  }
  Rmalloc_stat("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/"
               "master/src/rmalloc/rtest.c"
               ":"
               "103");
  bla[0][19] = '?';
  for (i = 0; i < sizeof(foo) / sizeof(*foo); i++) {
    Rfree((foo[i]), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/"
                    "heads/master/src/rmalloc/rtest.c"
                    ":"
                    "108");
    foo[i] = Rstrdup(("6543210"),
                     "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                     "outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/"
                     "heads/master/src/rmalloc/rtest.c"
                     ":"
                     "109");
  }
  count = 1000;
  while (count > 0) {
    u = (u + rand()) % 1000;
    if (bla[u] != NULL) {
      assert(strcmp(bla[u], "ABCDEFGHIJKLMNO") == 0);
      Rfree((bla[u]), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                      "outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/"
                      "heads/master/src/rmalloc/rtest.c"
                      ":"
                      "117");
      bla[u] = NULL;
      count--;
    }
  }
  for (i = 0; i < sizeof(foo) / sizeof(*foo); i++) {
    Rfree((foo[i]), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/"
                    "heads/master/src/rmalloc/rtest.c"
                    ":"
                    "124");
  }
}


x86 assembly (clang, -O0):
<Test0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2010,%rsp
movl   $0x3e8,-0x1f54(%rbp)
lea    -0x1f50(%rbp),%rdi
xor    %esi,%esi
mov    $0x1f40,%edx
call   1060 <memset@plt>
xor    %eax,%eax
mov    %eax,%edi
call   10c0 <time@plt>
mov    %eax,%edi
call   1080 <srand@plt>
cmpl   $0x0,-0x1f54(%rbp)
jbe    127b <Test0+0xcb>
mov    -0x4(%rbp),%eax
mov    %eax,-0x2004(%rbp)
mov    $0x0,%al
call   10d0 <rand@plt>
mov    %eax,%ecx
mov    -0x2004(%rbp),%eax
add    %ecx,%eax
mov    $0x3e8,%ecx
xor    %edx,%edx
div    %ecx
mov    %edx,-0x4(%rbp)
mov    -0x4(%rbp),%eax
cmpq   $0x0,-0x1f50(%rbp,%rax,8)
jne    1276 <Test0+0xc6>
lea    0xdcc(%rip),%rdi
lea    0xdcd(%rip),%rsi
call   1090 <Rstrdup@plt>
mov    %rax,%rcx
mov    -0x4(%rbp),%eax
mov    %rcx,-0x1f50(%rbp,%rax,8)
ff
mov    -0x4(%rbp),%eax
cmpq   $0x0,-0x1f50(%rbp,%rax,8)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   10b0 <assert@plt>
mov    -0x1f54(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1f54(%rbp)
jmp    11e8 <Test0+0x38>
lea    0xe18(%rip),%rdi
call   1070 <Rmalloc_stat@plt>
movl   $0x0,-0x8(%rbp)
movslq -0x8(%rbp),%rax
cmp    $0x14,%rax
jae    12cc <Test0+0x11c>
lea    0xe89(%rip),%rdi
lea    0xe8a(%rip),%rsi
call   1090 <Rstrdup@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
mov    %rcx,-0x2000(%rbp,%rax,8)
ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    128e <Test0+0xde>
lea    0xef3(%rip),%rdi
call   1070 <Rmalloc_stat@plt>
movl   $0x3e7,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     137e <Test0+0x1ce>
movslq -0x8(%rbp),%rax
mov    -0x1f50(%rbp,%rax,8),%rdi
ff
lea    0xd04(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10b0 <assert@plt>
movslq -0x8(%rbp),%rax
mov    -0x1f50(%rbp,%rax,8),%rdi
ff
mov    $0x10,%esi
lea    0xf2e(%rip),%rdx
call   1030 <Rrealloc@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
mov    %rcx,-0x1f50(%rbp,%rax,8)
ff
movslq -0x8(%rbp),%rax
cmpq   $0x0,-0x1f50(%rbp,%rax,8)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   10b0 <assert@plt>
movslq -0x8(%rbp),%rax
mov    -0x1f50(%rbp,%rax,8),%rdi
ff
lea    0xf7f(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    12df <Test0+0x12f>
lea    0xf75(%rip),%rdi
call   1070 <Rmalloc_stat@plt>
mov    -0x1f50(%rbp),%rax
movb   $0x3f,0x13(%rax)
movl   $0x0,-0x8(%rbp)
movslq -0x8(%rbp),%rax
cmp    $0x14,%rax
jae    13f2 <Test0+0x242>
movslq -0x8(%rbp),%rax
mov    -0x2000(%rbp,%rax,8),%rdi
ff
lea    0xfd0(%rip),%rsi
call   1050 <Rfree@plt>
lea    0x1057(%rip),%rdi
lea    0x1058(%rip),%rsi
call   1090 <Rstrdup@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
mov    %rcx,-0x2000(%rbp,%rax,8)
ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    139c <Test0+0x1ec>
movl   $0x3e8,-0x1f54(%rbp)
cmpl   $0x0,-0x1f54(%rbp)
jbe    14a3 <Test0+0x2f3>
mov    -0x4(%rbp),%eax
mov    %eax,-0x2008(%rbp)
mov    $0x0,%al
call   10d0 <rand@plt>
mov    %eax,%ecx
mov    -0x2008(%rbp),%eax
add    %ecx,%eax
mov    $0x3e8,%ecx
xor    %edx,%edx
div    %ecx
mov    %edx,-0x4(%rbp)
mov    -0x4(%rbp),%eax
cmpq   $0x0,-0x1f50(%rbp,%rax,8)
je     149e <Test0+0x2ee>
mov    -0x4(%rbp),%eax
mov    -0x1f50(%rbp,%rax,8),%rdi
ff
lea    0xe97(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10b0 <assert@plt>
mov    -0x4(%rbp),%eax
mov    -0x1f50(%rbp,%rax,8),%rdi
ff
lea    0x1040(%rip),%rsi
call   1050 <Rfree@plt>
mov    -0x4(%rbp),%eax
movq   $0x0,-0x1f50(%rbp,%rax,8)
mov    -0x1f54(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1f54(%rbp)
jmp    13fc <Test0+0x24c>
movl   $0x0,-0x8(%rbp)
movslq -0x8(%rbp),%rax
cmp    $0x14,%rax
jae    14de <Test0+0x32e>
movslq -0x8(%rbp),%rax
mov    -0x2000(%rbp,%rax,8),%rdi
ff
lea    0x1083(%rip),%rsi
call   1050 <Rfree@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    14aa <Test0+0x2fa>
add    $0x2010,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Test0>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x1fe0,%rsp
lea    0xa0(%rsp),%rdi
xor    %esi,%esi
mov    $0x1f40,%edx
call   1060 <memset@plt>
xor    %edi,%edi
call   10c0 <time@plt>
mov    %eax,%edi
call   1080 <srand@plt>
mov    $0x3e8,%ebp
lea    0xe13(%rip),%r14
lea    0xe14(%rip),%r15
jmp    1204 <Test0+0x54>
cs nopw 0x0(%rax,%rax,1)
test   %ebp,%ebp
je     1253 <Test0+0xa3>
xor    %eax,%eax
call   10d0 <rand@plt>
add    %ebx,%eax
imul   $0x10624dd3,%rax,%rcx
shr    $0x26,%rcx
imul   $0x3e8,%ecx,%ecx
mov    %eax,%ebx
sub    %ecx,%ebx
cmpq   $0x0,0xa0(%rsp,%rbx,8)
jne    1200 <Test0+0x50>
mov    %r14,%rdi
mov    %r15,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,0xa0(%rsp,%rbx,8)
xor    %edi,%edi
test   %rax,%rax
setne  %dil
call   10b0 <assert@plt>
add    $0xffffffff,%ebp
jmp    1200 <Test0+0x50>
lea    0xe40(%rip),%rdi
call   1070 <Rmalloc_stat@plt>
lea    0xec6(%rip),%r15
lea    0xec7(%rip),%r14
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,0x8(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,0x10(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,0x18(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,0x20(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,0x28(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,0x30(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,0x38(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,0x40(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,0x48(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,0x50(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,0x58(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,0x60(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,0x68(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,0x70(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,0x78(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,0x80(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,0x88(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,0x90(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,0x98(%rsp)
lea    0xe07(%rip),%rdi
call   1070 <Rmalloc_stat@plt>
mov    $0x3e7,%ebp
lea    0xc30(%rip),%r14
lea    0xe81(%rip),%r15
lea    0xf0c(%rip),%r12
xchg   %ax,%ax
mov    0xa0(%rsp,%rbp,8),%rdi
mov    %r14,%rsi
call   10a0 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10b0 <assert@plt>
mov    0xa0(%rsp,%rbp,8),%rdi
mov    $0x10,%esi
mov    %r15,%rdx
call   1030 <Rrealloc@plt>
mov    %rax,0xa0(%rsp,%rbp,8)
xor    %edi,%edi
test   %rax,%rax
setne  %dil
call   10b0 <assert@plt>
mov    0xa0(%rsp,%rbp,8),%rdi
mov    %r12,%rsi
call   1040 <strcpy@plt>
add    $0xffffffffffffffff,%rbp
jb     13e0 <Test0+0x230>
lea    0xeb4(%rip),%rdi
call   1070 <Rmalloc_stat@plt>
mov    0xa0(%rsp),%rax
movb   $0x3f,0x13(%rax)
xor    %ebp,%ebp
lea    0xf2d(%rip),%r14
lea    0xfb9(%rip),%r15
lea    0xfba(%rip),%r12
xchg   %ax,%ax
mov    (%rsp,%rbp,8),%rdi
mov    %r14,%rsi
call   1050 <Rfree@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1090 <Rstrdup@plt>
mov    %rax,(%rsp,%rbp,8)
add    $0x1,%rbp
cmp    $0x14,%rbp
jne    1470 <Test0+0x2c0>
mov    $0x3e8,%ebp
lea    0xe49(%rip),%r14
lea    0x1013(%rip),%r15
jmp    14b4 <Test0+0x304>
nopw   0x0(%rax,%rax,1)
test   %ebp,%ebp
je     1516 <Test0+0x366>
xor    %eax,%eax
call   10d0 <rand@plt>
add    %ebx,%eax
imul   $0x10624dd3,%rax,%rcx
shr    $0x26,%rcx
imul   $0x3e8,%ecx,%ecx
mov    %eax,%ebx
sub    %ecx,%ebx
mov    0xa0(%rsp,%rbx,8),%rdi
test   %rdi,%rdi
je     14b0 <Test0+0x300>
mov    %r14,%rsi
call   10a0 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10b0 <assert@plt>
mov    0xa0(%rsp,%rbx,8),%rdi
mov    %r15,%rsi
call   1050 <Rfree@plt>
movq   $0x0,0xa0(%rsp,%rbx,8)
add    $0xffffffff,%ebp
jmp    14b0 <Test0+0x300>
mov    (%rsp),%rdi
lea    0x102d(%rip),%rbx
mov    %rbx,%rsi
call   1050 <Rfree@plt>
mov    0x8(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <Rfree@plt>
mov    0x10(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <Rfree@plt>
mov    0x18(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <Rfree@plt>
mov    0x20(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <Rfree@plt>
mov    0x28(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <Rfree@plt>
mov    0x30(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <Rfree@plt>
mov    0x38(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <Rfree@plt>
mov    0x40(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <Rfree@plt>
mov    0x48(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <Rfree@plt>
mov    0x50(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <Rfree@plt>
mov    0x58(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <Rfree@plt>
mov    0x60(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <Rfree@plt>
mov    0x68(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <Rfree@plt>
mov    0x70(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <Rfree@plt>
mov    0x78(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <Rfree@plt>
mov    0x80(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <Rfree@plt>
mov    0x88(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <Rfree@plt>
mov    0x90(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <Rfree@plt>
mov    0x98(%rsp),%rdi
mov    %rbx,%rsi
call   1050 <Rfree@plt>
add    $0x1fe0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [8 x i8] c"abcdefg\00"
@.str.1 = [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:82\00"
@.str.2 = [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:88\00"
@.str.3 = [8 x i8] c"0123456\00"
@.str.4 = [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:91\00"
@.str.5 = [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:94\00"
@.str.6 = [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:98\00"
@.str.7 = [16 x i8] c"ABCDEFGHIJKLMNO\00"
@.str.8 = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:103\00"
@.str.9 = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:108\00"
@.str.10 = [8 x i8] c"6543210\00"
@.str.11 = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:109\00"
@.str.12 = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:117\00"
@.str.13 = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:124\00"
define void @Test0() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [1000 x i8*]
%4 = alloca i32
%5 = alloca [20 x i8*]
store i32 1000, i32* %4
%6 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %3, i64 0, i64 0
%7 = call i32 @memset(i8** %6, i32 0, i32 8000)
%8 = call i32 @time(i32* null)
%9 = call i32 @srand(i32 %8)
br label %10
10: ; preds = %37, %0
%11 = load i32, i32* %4
%12 = icmp ugt i32 %11, 0
br i1 %12, label %13, label %38
13: ; preds = %10
%14 = load i32, i32* %1
%15 = call i32 (...) @rand()
%16 = add i32 %14, %15
%17 = urem i32 %16, 1000
store i32 %17, i32* %1
%18 = load i32, i32* %1
%19 = zext i32 %18 to i64
%20 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %3, i64 0, i64 %19
%21 = load i8*, i8** %20
%22 = icmp eq i8* %21, null
br i1 %22, label %23, label %37
23: ; preds = %13
%24 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.1, i64 0, i64 0))
%25 = load i32, i32* %1
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %3, i64 0, i64 %26
store i8* %24, i8** %27
%28 = load i32, i32* %1
%29 = zext i32 %28 to i64
%30 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %3, i64 0, i64 %29
%31 = load i8*, i8** %30
%32 = icmp ne i8* %31, null
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 %33)
%35 = load i32, i32* %4
%36 = add i32 %35, -1
store i32 %36, i32* %4
br label %37
37: ; preds = %23, %13
br label %10
38: ; preds = %10
%39 = call i32 @Rmalloc_stat(i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %2
br label %40
40: ; preds = %49, %38
%41 = load i32, i32* %2
%42 = sext i32 %41 to i64
%43 = icmp ult i64 %42, 20
br i1 %43, label %44, label %52
44: ; preds = %40
%45 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%46 = load i32, i32* %2
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [20 x i8*], [20 x i8*]* %5, i64 0, i64 %47
store i8* %45, i8** %48
br label %49
49: ; preds = %44
%50 = load i32, i32* %2
%51 = add nsw i32 %50, 1
store i32 %51, i32* %2
br label %40
52: ; preds = %40
%53 = call i32 @Rmalloc_stat(i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.5, i64 0, i64 0))
store i32 999, i32* %2
br label %54
54: ; preds = %86, %52
%55 = load i32, i32* %2
%56 = icmp sge i32 %55, 0
br i1 %56, label %57, label %89
57: ; preds = %54
%58 = load i32, i32* %2
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %3, i64 0, i64 %59
%61 = load i8*, i8** %60
%62 = call i64 @strcmp(i8* %61, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
%64 = zext i1 %63 to i32
%65 = call i32 @assert(i32 %64)
%66 = load i32, i32* %2
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %3, i64 0, i64 %67
%69 = load i8*, i8** %68
%70 = call i8* @Rrealloc(i8* %69, i32 16, i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.6, i64 0, i64 0))
%71 = load i32, i32* %2
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %3, i64 0, i64 %72
store i8* %70, i8** %73
%74 = load i32, i32* %2
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %3, i64 0, i64 %75
%77 = load i8*, i8** %76
%78 = icmp ne i8* %77, null
%79 = zext i1 %78 to i32
%80 = call i32 @assert(i32 %79)
%81 = load i32, i32* %2
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %3, i64 0, i64 %82
%84 = load i8*, i8** %83
%85 = call i32 @strcpy(i8* %84, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
br label %86
86: ; preds = %57
%87 = load i32, i32* %2
%88 = add nsw i32 %87, -1
store i32 %88, i32* %2
br label %54
89: ; preds = %54
%90 = call i32 @Rmalloc_stat(i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.8, i64 0, i64 0))
%91 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %3, i64 0, i64 0
%92 = load i8*, i8** %91
%93 = getelementptr inbounds i8, i8* %92, i64 19
store i8 63, i8* %93
store i32 0, i32* %2
br label %94
94: ; preds = %108, %89
%95 = load i32, i32* %2
%96 = sext i32 %95 to i64
%97 = icmp ult i64 %96, 20
br i1 %97, label %98, label %111
98: ; preds = %94
%99 = load i32, i32* %2
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [20 x i8*], [20 x i8*]* %5, i64 0, i64 %100
%102 = load i8*, i8** %101
%103 = call i32 @Rfree(i8* %102, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.9, i64 0, i64 0))
%104 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.11, i64 0, i64 0))
%105 = load i32, i32* %2
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [20 x i8*], [20 x i8*]* %5, i64 0, i64 %106
store i8* %104, i8** %107
br label %108
108: ; preds = %98
%109 = load i32, i32* %2
%110 = add nsw i32 %109, 1
store i32 %110, i32* %2
br label %94
111: ; preds = %94
store i32 1000, i32* %4
br label %112
112: ; preds = %144, %111
%113 = load i32, i32* %4
%114 = icmp ugt i32 %113, 0
br i1 %114, label %115, label %145
115: ; preds = %112
%116 = load i32, i32* %1
%117 = call i32 (...) @rand()
%118 = add i32 %116, %117
%119 = urem i32 %118, 1000
store i32 %119, i32* %1
%120 = load i32, i32* %1
%121 = zext i32 %120 to i64
%122 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %3, i64 0, i64 %121
%123 = load i8*, i8** %122
%124 = icmp ne i8* %123, null
br i1 %124, label %125, label %144
125: ; preds = %115
%126 = load i32, i32* %1
%127 = zext i32 %126 to i64
%128 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %3, i64 0, i64 %127
%129 = load i8*, i8** %128
%130 = call i64 @strcmp(i8* %129, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%131 = icmp eq i64 %130, 0
%132 = zext i1 %131 to i32
%133 = call i32 @assert(i32 %132)
%134 = load i32, i32* %1
%135 = zext i32 %134 to i64
%136 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %3, i64 0, i64 %135
%137 = load i8*, i8** %136
%138 = call i32 @Rfree(i8* %137, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.12, i64 0, i64 0))
%139 = load i32, i32* %1
%140 = zext i32 %139 to i64
%141 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %3, i64 0, i64 %140
store i8* null, i8** %141
%142 = load i32, i32* %4
%143 = add i32 %142, -1
store i32 %143, i32* %4
br label %144
144: ; preds = %125, %115
br label %112
145: ; preds = %112
store i32 0, i32* %2
br label %146
146: ; preds = %156, %145
%147 = load i32, i32* %2
%148 = sext i32 %147 to i64
%149 = icmp ult i64 %148, 20
br i1 %149, label %150, label %159
150: ; preds = %146
%151 = load i32, i32* %2
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [20 x i8*], [20 x i8*]* %5, i64 0, i64 %152
%154 = load i8*, i8** %153
%155 = call i32 @Rfree(i8* %154, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
br label %156
156: ; preds = %150
%157 = load i32, i32* %2
%158 = add nsw i32 %157, 1
store i32 %158, i32* %2
br label %146
159: ; preds = %146
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"abcdefg\00"
@.str.1 = [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:82\00"
@.str.2 = [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:88\00"
@.str.3 = [8 x i8] c"0123456\00"
@.str.4 = [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:91\00"
@.str.5 = [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:94\00"
@.str.6 = [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:98\00"
@.str.7 = [16 x i8] c"ABCDEFGHIJKLMNO\00"
@.str.8 = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:103\00"
@.str.9 = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:108\00"
@.str.10 = [8 x i8] c"6543210\00"
@.str.11 = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:109\00"
@.str.12 = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:117\00"
@.str.13 = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:124\00"
define void @Test0() {
%1 = alloca [1000 x i8*]
%2 = alloca [20 x i8*]
%3 = bitcast [1000 x i8*]* %1 to i8*
%4 = bitcast [20 x i8*]* %2 to i8*
%5 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %1, i64 0, i64 0
%6 = call i32 @memset(i8** %5, i32 0, i32 8000)
%7 = call i32 @time(i32* null)
%8 = call i32 @srand(i32 %7)
br label %9
9: ; preds = %0, %25
%10 = phi i32 [ 1000, %0 ], [ %26, %25 ]
%11 = phi i32 [ undef, %0 ], [ %14, %25 ]
%12 = call i32 (...) @rand()
%13 = add i32 %12, %11
%14 = urem i32 %13, 1000
%15 = zext i32 %14 to i64
%16 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %1, i64 0, i64 %15
%17 = load i8*, i8** %16
%18 = icmp eq i8* %17, null
br i1 %18, label %19, label %25
19: ; preds = %9
%20 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.1, i64 0, i64 0))
store i8* %20, i8** %16
%21 = icmp ne i8* %20, null
%22 = zext i1 %21 to i32
%23 = call i32 @assert(i32 %22)
%24 = add i32 %10, -1
br label %25
25: ; preds = %19, %9
%26 = phi i32 [ %24, %19 ], [ %10, %9 ]
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %9
28: ; preds = %25
%29 = call i32 @Rmalloc_stat(i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.2, i64 0, i64 0))
%30 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%31 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 0
store i8* %30, i8** %31
%32 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%33 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 1
store i8* %32, i8** %33
%34 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%35 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 2
store i8* %34, i8** %35
%36 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%37 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 3
store i8* %36, i8** %37
%38 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%39 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 4
store i8* %38, i8** %39
%40 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%41 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 5
store i8* %40, i8** %41
%42 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%43 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 6
store i8* %42, i8** %43
%44 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%45 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 7
store i8* %44, i8** %45
%46 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%47 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 8
store i8* %46, i8** %47
%48 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%49 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 9
store i8* %48, i8** %49
%50 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%51 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 10
store i8* %50, i8** %51
%52 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%53 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 11
store i8* %52, i8** %53
%54 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%55 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 12
store i8* %54, i8** %55
%56 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%57 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 13
store i8* %56, i8** %57
%58 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%59 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 14
store i8* %58, i8** %59
%60 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%61 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 15
store i8* %60, i8** %61
%62 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%63 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 16
store i8* %62, i8** %63
%64 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%65 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 17
store i8* %64, i8** %65
%66 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%67 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 18
store i8* %66, i8** %67
%68 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.4, i64 0, i64 0))
%69 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 19
store i8* %68, i8** %69
%70 = call i32 @Rmalloc_stat(i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.5, i64 0, i64 0))
br label %71
71: ; preds = %28, %71
%72 = phi i64 [ 999, %28 ], [ %86, %71 ]
%73 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %1, i64 0, i64 %72
%74 = load i8*, i8** %73
%75 = call i64 @strcmp(i8* %74, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%76 = icmp eq i64 %75, 0
%77 = zext i1 %76 to i32
%78 = call i32 @assert(i32 %77)
%79 = load i8*, i8** %73
%80 = call i8* @Rrealloc(i8* %79, i32 16, i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.6, i64 0, i64 0))
store i8* %80, i8** %73
%81 = icmp ne i8* %80, null
%82 = zext i1 %81 to i32
%83 = call i32 @assert(i32 %82)
%84 = load i8*, i8** %73
%85 = call i32 @strcpy(i8* %84, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%86 = add nsw i64 %72, -1
%87 = icmp eq i64 %72, 0
br i1 %87, label %88, label %71
88: ; preds = %71
%89 = call i32 @Rmalloc_stat(i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.8, i64 0, i64 0))
%90 = load i8*, i8** %5
%91 = getelementptr inbounds i8, i8* %90, i64 19
store i8 63, i8* %91
br label %92
92: ; preds = %88, %92
%93 = phi i64 [ 0, %88 ], [ %98, %92 ]
%94 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 %93
%95 = load i8*, i8** %94
%96 = call i32 @Rfree(i8* %95, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.9, i64 0, i64 0))
%97 = call i8* @Rstrdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.11, i64 0, i64 0))
store i8* %97, i8** %94
%98 = add nuw nsw i64 %93, 1
%99 = icmp eq i64 %98, 20
br i1 %99, label %100, label %92
100: ; preds = %92, %118
%101 = phi i32 [ %119, %118 ], [ 1000, %92 ]
%102 = phi i32 [ %105, %118 ], [ %14, %92 ]
%103 = call i32 (...) @rand()
%104 = add i32 %103, %102
%105 = urem i32 %104, 1000
%106 = zext i32 %105 to i64
%107 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %1, i64 0, i64 %106
%108 = load i8*, i8** %107
%109 = icmp eq i8* %108, null
br i1 %109, label %118, label %110
110: ; preds = %100
%111 = call i64 @strcmp(i8* %108, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%112 = icmp eq i64 %111, 0
%113 = zext i1 %112 to i32
%114 = call i32 @assert(i32 %113)
%115 = load i8*, i8** %107
%116 = call i32 @Rfree(i8* %115, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.12, i64 0, i64 0))
store i8* null, i8** %107
%117 = add i32 %101, -1
br label %118
118: ; preds = %110, %100
%119 = phi i32 [ %117, %110 ], [ %101, %100 ]
%120 = icmp eq i32 %119, 0
br i1 %120, label %121, label %100
121: ; preds = %118
%122 = load i8*, i8** %31
%123 = call i32 @Rfree(i8* %122, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
%124 = load i8*, i8** %33
%125 = call i32 @Rfree(i8* %124, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
%126 = load i8*, i8** %35
%127 = call i32 @Rfree(i8* %126, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
%128 = load i8*, i8** %37
%129 = call i32 @Rfree(i8* %128, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
%130 = load i8*, i8** %39
%131 = call i32 @Rfree(i8* %130, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
%132 = load i8*, i8** %41
%133 = call i32 @Rfree(i8* %132, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
%134 = load i8*, i8** %43
%135 = call i32 @Rfree(i8* %134, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
%136 = load i8*, i8** %45
%137 = call i32 @Rfree(i8* %136, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
%138 = load i8*, i8** %47
%139 = call i32 @Rfree(i8* %138, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
%140 = load i8*, i8** %49
%141 = call i32 @Rfree(i8* %140, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
%142 = load i8*, i8** %51
%143 = call i32 @Rfree(i8* %142, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
%144 = load i8*, i8** %53
%145 = call i32 @Rfree(i8* %144, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
%146 = load i8*, i8** %55
%147 = call i32 @Rfree(i8* %146, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
%148 = load i8*, i8** %57
%149 = call i32 @Rfree(i8* %148, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
%150 = load i8*, i8** %59
%151 = call i32 @Rfree(i8* %150, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
%152 = load i8*, i8** %61
%153 = call i32 @Rfree(i8* %152, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
%154 = load i8*, i8** %63
%155 = call i32 @Rfree(i8* %154, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
%156 = load i8*, i8** %65
%157 = call i32 @Rfree(i8* %156, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
%158 = load i8*, i8** %67
%159 = call i32 @Rfree(i8* %158, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
%160 = load i8*, i8** %69
%161 = call i32 @Rfree(i8* %160, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.13, i64 0, i64 0))
ret void
}