#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ free(char *);
char *malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  int i;
  int j;
  char *pointers[10];
  printf("test_checkered_alloc ...");
  for (i = 0; i < 10; i++) {
    pointers[i] = malloc(100);
    if (!pointers[i]) {
      printf("1) expected a pointer for %i\n", i);
      printf("FAIL\n");
      return 1;
    }
    for (j = 0; j < 100; j++) {
      pointers[i][j] = 1;
    }
  }
  for (i = 1; i < 10; i += 2) {
    free(pointers[i]);
  }
  for (i = 1; i < 10; i += 2) {
    pointers[i] = malloc(90);
    if (!pointers[i]) {
      printf("2) expected a pointer for %i\n", i);
      printf("FAIL\n");
      return 1;
    }
    for (j = 0; j < 90; j++) {
      pointers[i][j] = 1;
    }
  }
  printf(" ok");
  for (i = 0; i < 10; i++) {
    free(pointers[i]);
  }
  printf(".\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    11f2 <main+0xc2>
mov    $0x64,%edi
call   1050 <malloc@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
mov    %rcx,-0x60(%rbp,%rax,8)
movslq -0x8(%rbp),%rax
cmpq   $0x0,-0x60(%rbp,%rax,8)
jne    11af <main+0x7f>
mov    -0x8(%rbp),%esi
lea    0xe8b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe9b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1314 <main+0x1e4>
movl   $0x0,-0xc(%rbp)
cmpl   $0x64,-0xc(%rbp)
jge    11df <main+0xaf>
movslq -0x8(%rbp),%rax
mov    -0x60(%rbp,%rax,8),%rax
movslq -0xc(%rbp),%rcx
movb   $0x1,(%rax,%rcx,1)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11b6 <main+0x86>
jmp    11e4 <main+0xb4>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1154 <main+0x24>
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    121f <main+0xef>
movslq -0x8(%rbp),%rax
mov    -0x60(%rbp,%rax,8),%rdi
call   1030 <free@plt>
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x8(%rbp)
jmp    11f9 <main+0xc9>
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    12c4 <main+0x194>
mov    $0x5a,%edi
call   1050 <malloc@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
mov    %rcx,-0x60(%rbp,%rax,8)
movslq -0x8(%rbp),%rax
cmpq   $0x0,-0x60(%rbp,%rax,8)
jne    1281 <main+0x151>
mov    -0x8(%rbp),%esi
lea    0xddd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdc9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1314 <main+0x1e4>
movl   $0x0,-0xc(%rbp)
cmpl   $0x5a,-0xc(%rbp)
jge    12b1 <main+0x181>
movslq -0x8(%rbp),%rax
mov    -0x60(%rbp,%rax,8),%rax
movslq -0xc(%rbp),%rcx
movb   $0x1,(%rax,%rcx,1)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1288 <main+0x158>
jmp    12b6 <main+0x186>
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x8(%rbp)
jmp    1226 <main+0xf6>
lea    0xd90(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    12ff <main+0x1cf>
movslq -0x8(%rbp),%rax
mov    -0x60(%rbp,%rax,8),%rdi
call   1030 <free@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12d9 <main+0x1a9>
lea    0xd59(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%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
lea    0xebb(%rip),%rdi
xor    %ebp,%ebp
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x64,%edi
call   1060 <malloc@plt>
test   %rax,%rax
je     159c <main+0x45c>
mov    %rax,%rbx
movaps 0xe85(%rip),%xmm0
movups %xmm0,0x50(%rax)
movups %xmm0,0x40(%rax)
movups %xmm0,0x30(%rax)
movups %xmm0,0x20(%rax)
movups %xmm0,0x10(%rax)
movups %xmm0,(%rax)
movl   $0x1010101,0x60(%rax)
mov    $0x64,%edi
call   1060 <malloc@plt>
test   %rax,%rax
je     155f <main+0x41f>
mov    %rax,%rbp
movaps 0xe4a(%rip),%xmm0
movups %xmm0,0x50(%rax)
movups %xmm0,0x40(%rax)
movups %xmm0,0x30(%rax)
movups %xmm0,0x20(%rax)
movups %xmm0,0x10(%rax)
movups %xmm0,(%rax)
movl   $0x1010101,0x60(%rax)
mov    $0x64,%edi
call   1060 <malloc@plt>
test   %rax,%rax
je     1566 <main+0x426>
mov    %rax,%r14
movaps 0xe0f(%rip),%xmm0
movups %xmm0,0x50(%rax)
movups %xmm0,0x40(%rax)
movups %xmm0,0x30(%rax)
movups %xmm0,0x20(%rax)
movups %xmm0,0x10(%rax)
movups %xmm0,(%rax)
movl   $0x1010101,0x60(%rax)
mov    $0x64,%edi
call   1060 <malloc@plt>
test   %rax,%rax
je     156d <main+0x42d>
mov    %rax,%r13
movaps 0xdd4(%rip),%xmm0
movups %xmm0,0x50(%rax)
movups %xmm0,0x40(%rax)
movups %xmm0,0x30(%rax)
movups %xmm0,0x20(%rax)
movups %xmm0,0x10(%rax)
movups %xmm0,(%rax)
movl   $0x1010101,0x60(%rax)
mov    $0x64,%edi
call   1060 <malloc@plt>
test   %rax,%rax
je     1574 <main+0x434>
mov    %rax,%r15
movaps 0xd99(%rip),%xmm0
movups %xmm0,0x50(%rax)
movups %xmm0,0x40(%rax)
movups %xmm0,0x30(%rax)
movups %xmm0,0x20(%rax)
movups %xmm0,0x10(%rax)
movups %xmm0,(%rax)
movl   $0x1010101,0x60(%rax)
mov    $0x64,%edi
call   1060 <malloc@plt>
test   %rax,%rax
je     157b <main+0x43b>
mov    %rax,%r12
movaps 0xd5e(%rip),%xmm0
movups %xmm0,0x50(%rax)
movups %xmm0,0x40(%rax)
movups %xmm0,0x30(%rax)
movups %xmm0,0x20(%rax)
movups %xmm0,0x10(%rax)
movups %xmm0,(%rax)
movl   $0x1010101,0x60(%rax)
mov    $0x64,%edi
call   1060 <malloc@plt>
test   %rax,%rax
je     1582 <main+0x442>
movaps 0xd26(%rip),%xmm0
movups %xmm0,0x50(%rax)
movups %xmm0,0x40(%rax)
movups %xmm0,0x30(%rax)
movups %xmm0,0x20(%rax)
movups %xmm0,0x10(%rax)
movups %xmm0,(%rax)
mov    %rax,0x20(%rsp)
movl   $0x1010101,0x60(%rax)
mov    $0x64,%edi
call   1060 <malloc@plt>
test   %rax,%rax
je     1589 <main+0x449>
movaps 0xce9(%rip),%xmm0
movups %xmm0,0x50(%rax)
movups %xmm0,0x40(%rax)
movups %xmm0,0x30(%rax)
movups %xmm0,0x20(%rax)
movups %xmm0,0x10(%rax)
movups %xmm0,(%rax)
mov    %rax,(%rsp)
movl   $0x1010101,0x60(%rax)
mov    $0x64,%edi
call   1060 <malloc@plt>
test   %rax,%rax
je     1590 <main+0x450>
movaps 0xcad(%rip),%xmm0
movups %xmm0,0x50(%rax)
movups %xmm0,0x40(%rax)
movups %xmm0,0x30(%rax)
movups %xmm0,0x20(%rax)
movups %xmm0,0x10(%rax)
movups %xmm0,(%rax)
mov    %rax,0x18(%rsp)
movl   $0x1010101,0x60(%rax)
mov    $0x64,%edi
call   1060 <malloc@plt>
test   %rax,%rax
je     1597 <main+0x457>
movaps 0xc70(%rip),%xmm0
movups %xmm0,0x50(%rax)
movups %xmm0,0x40(%rax)
movups %xmm0,0x30(%rax)
movups %xmm0,0x20(%rax)
movups %xmm0,0x10(%rax)
movups %xmm0,(%rax)
movl   $0x1010101,0x60(%rax)
mov    %rbp,%rdi
mov    %rax,%rbp
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    (%rsp),%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    $0x5a,%edi
call   1060 <malloc@plt>
mov    $0x1,%ebp
mov    $0x1,%esi
test   %rax,%rax
je     15e8 <main+0x4a8>
mov    %rax,%r13
movaps 0xbff(%rip),%xmm0
movups %xmm0,0x4a(%rax)
movups %xmm0,0x40(%rax)
movups %xmm0,0x30(%rax)
movups %xmm0,0x20(%rax)
movups %xmm0,0x10(%rax)
movups %xmm0,(%rax)
mov    $0x5a,%edi
call   1060 <malloc@plt>
test   %rax,%rax
je     15ce <main+0x48e>
mov    %rax,%r12
movaps 0xbcb(%rip),%xmm0
movups %xmm0,0x4a(%rax)
movups %xmm0,0x40(%rax)
movups %xmm0,0x30(%rax)
movups %xmm0,0x20(%rax)
movups %xmm0,0x10(%rax)
movups %xmm0,(%rax)
mov    $0x5a,%edi
call   1060 <malloc@plt>
test   %rax,%rax
je     15d5 <main+0x495>
movaps 0xb9a(%rip),%xmm0
movups %xmm0,0x4a(%rax)
movups %xmm0,0x40(%rax)
movups %xmm0,0x30(%rax)
movups %xmm0,0x20(%rax)
movups %xmm0,0x10(%rax)
mov    %rax,(%rsp)
movups %xmm0,(%rax)
mov    $0x5a,%edi
call   1060 <malloc@plt>
test   %rax,%rax
je     15dc <main+0x49c>
movaps 0xb65(%rip),%xmm0
movups %xmm0,0x4a(%rax)
movups %xmm0,0x40(%rax)
movups %xmm0,0x30(%rax)
movups %xmm0,0x20(%rax)
movups %xmm0,0x10(%rax)
mov    %rax,0x10(%rsp)
movups %xmm0,(%rax)
mov    $0x5a,%edi
call   1060 <malloc@plt>
test   %rax,%rax
je     15e3 <main+0x4a3>
movaps 0xb2f(%rip),%xmm0
movups %xmm0,0x4a(%rax)
movups %xmm0,0x40(%rax)
movups %xmm0,0x30(%rax)
movups %xmm0,0x20(%rax)
movups %xmm0,0x10(%rax)
movups %xmm0,(%rax)
lea    0xb76(%rip),%rdi
xor    %ebp,%ebp
mov    %rax,0x8(%rsp)
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    (%rsp),%rdi
call   1030 <free@plt>
mov    0x20(%rsp),%rdi
call   1030 <free@plt>
mov    0x10(%rsp),%rdi
call   1030 <free@plt>
mov    0x18(%rsp),%rdi
call   1030 <free@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
lea    0xaca(%rip),%rdi
jmp    15b8 <main+0x478>
mov    $0x1,%ebp
jmp    159c <main+0x45c>
mov    $0x2,%ebp
jmp    159c <main+0x45c>
mov    $0x3,%ebp
jmp    159c <main+0x45c>
mov    $0x4,%ebp
jmp    159c <main+0x45c>
mov    $0x5,%ebp
jmp    159c <main+0x45c>
mov    $0x6,%ebp
jmp    159c <main+0x45c>
mov    $0x7,%ebp
jmp    159c <main+0x45c>
mov    $0x8,%ebp
jmp    159c <main+0x45c>
mov    $0x9,%ebp
lea    0xa86(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%ebp
lea    0xab1(%rip),%rdi
call   1040 <puts@plt>
mov    %ebp,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x3,%esi
jmp    15e8 <main+0x4a8>
mov    $0x5,%esi
jmp    15e8 <main+0x4a8>
mov    $0x7,%esi
jmp    15e8 <main+0x4a8>
mov    $0x9,%esi
lea    0xa58(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    15b1 <main+0x471>

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

LLVM IR (-O2):
@.str = [25 x i8] c"test_checkered_alloc ...\00"
@.str.1 = [30 x i8] c"1) expected a pointer for %i\0A\00"
@.str.3 = [30 x i8] c"2) expected a pointer for %i\0A\00"
@.str.4 = [4 x i8] c" ok\00"
@str = [2 x i8] c".\00"
@str.7 = [5 x i8] c"FAIL\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%2 = tail call dereferenceable_or_null(100) i8* @malloc(i32 100)
%3 = icmp eq i8* %2, null
br i1 %3, label %7, label %4
4: ; preds = %0
%5 = tail call dereferenceable_or_null(100) i8* @malloc(i32 100)
%6 = icmp eq i8* %5, null
br i1 %6, label %7, label %10
7: ; preds = %31, %28, %25, %22, %19, %16, %13, %10, %4, %0
%8 = phi i32 [ 0, %0 ], [ 1, %4 ], [ 2, %10 ], [ 3, %13 ], [ 4, %16 ], [ 5, %19 ], [ 6, %22 ], [ 7, %25 ], [ 8, %28 ], [ 9, %31 ]
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %8)
br label %69
10: ; preds = %4
%11 = tail call dereferenceable_or_null(100) i8* @malloc(i32 100)
%12 = icmp eq i8* %11, null
br i1 %12, label %7, label %13
13: ; preds = %10
%14 = tail call dereferenceable_or_null(100) i8* @malloc(i32 100)
%15 = icmp eq i8* %14, null
br i1 %15, label %7, label %16
16: ; preds = %13
%17 = tail call dereferenceable_or_null(100) i8* @malloc(i32 100)
%18 = icmp eq i8* %17, null
br i1 %18, label %7, label %19
19: ; preds = %16
%20 = tail call dereferenceable_or_null(100) i8* @malloc(i32 100)
%21 = icmp eq i8* %20, null
br i1 %21, label %7, label %22
22: ; preds = %19
%23 = tail call dereferenceable_or_null(100) i8* @malloc(i32 100)
%24 = icmp eq i8* %23, null
br i1 %24, label %7, label %25
25: ; preds = %22
%26 = tail call dereferenceable_or_null(100) i8* @malloc(i32 100)
%27 = icmp eq i8* %26, null
br i1 %27, label %7, label %28
28: ; preds = %25
%29 = tail call dereferenceable_or_null(100) i8* @malloc(i32 100)
%30 = icmp eq i8* %29, null
br i1 %30, label %7, label %31
31: ; preds = %28
%32 = tail call dereferenceable_or_null(100) i8* @malloc(i32 100)
%33 = icmp eq i8* %32, null
br i1 %33, label %7, label %34
34: ; preds = %31
%35 = tail call i32 @free(i8* %5)
%36 = tail call i32 @free(i8* %14)
%37 = tail call i32 @free(i8* %20)
%38 = tail call i32 @free(i8* %26)
%39 = tail call i32 @free(i8* %32)
%40 = tail call dereferenceable_or_null(90) i8* @malloc(i32 90)
%41 = icmp eq i8* %40, null
br i1 %41, label %45, label %42
42: ; preds = %34
%43 = tail call dereferenceable_or_null(90) i8* @malloc(i32 90)
%44 = icmp eq i8* %43, null
br i1 %44, label %45, label %48
45: ; preds = %54, %51, %48, %42, %34
%46 = phi i32 [ 1, %34 ], [ 3, %42 ], [ 5, %48 ], [ 7, %51 ], [ 9, %54 ]
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 %46)
br label %69
48: ; preds = %42
%49 = tail call dereferenceable_or_null(90) i8* @malloc(i32 90)
%50 = icmp eq i8* %49, null
br i1 %50, label %45, label %51
51: ; preds = %48
%52 = tail call dereferenceable_or_null(90) i8* @malloc(i32 90)
%53 = icmp eq i8* %52, null
br i1 %53, label %45, label %54
54: ; preds = %51
%55 = tail call dereferenceable_or_null(90) i8* @malloc(i32 90)
%56 = icmp eq i8* %55, null
br i1 %56, label %45, label %57
57: ; preds = %54
%58 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%59 = tail call i32 @free(i8* %2)
%60 = tail call i32 @free(i8* %40)
%61 = tail call i32 @free(i8* %11)
%62 = tail call i32 @free(i8* %43)
%63 = tail call i32 @free(i8* %17)
%64 = tail call i32 @free(i8* %49)
%65 = tail call i32 @free(i8* %23)
%66 = tail call i32 @free(i8* %52)
%67 = tail call i32 @free(i8* %29)
%68 = tail call i32 @free(i8* %55)
br label %69
69: ; preds = %57, %45, %7
%70 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0), %57 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @str.7, i64 0, i64 0), %45 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @str.7, i64 0, i64 0), %7 ]
%71 = phi i32 [ 0, %57 ], [ 1, %45 ], [ 1, %7 ]
%72 = tail call i32 @puts(i8* dereferenceable(1) %70)
ret i32 %71
}