#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*/ assert(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, void *, void *);
void *realloc(void *, size_t);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  int i;
  const int limit = 7;
  void *ptr[limit];
  for (i = 0; i < limit; ++i) {
    ptr[i] = realloc(0, 100);
  }
  for (i = 0; i < limit; ++i) {
    size_t new_size = i * 1500;
    void *new_ptr = realloc(ptr[i], new_size);
    if (new_size == 0) {
      assert(new_ptr == 0);
      ptr[i] = 0;
    } else if (new_ptr) {
      ptr[i] = new_ptr;
    } else {
      fprintf(stderr,
              "realloc_test: realoc(%p, %zu) returns NULL. Original pointer "
              "untouched.\n",
              ptr[i], new_size);
    }
  }
  for (i = 0; i < limit; ++i) {
    void *before;
    before = ptr[i];
    if (before) {
      ptr[i] = realloc(ptr[i], 0);
      fprintf(stderr, "realloc_test: realoc(%p, 0) returns %p.\n", before,
              ptr[i]);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x7,-0x18(%rbp)
mov    %rsp,%rax
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x7,-0x14(%rbp)
jge    118d <main+0x5d>
xor    %eax,%eax
mov    %eax,%edi
mov    $0x64,%esi
call   1050 <realloc@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
mov    %rcx,-0x70(%rbp,%rax,8)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    115b <main+0x2b>
movl   $0x0,-0x14(%rbp)
cmpl   $0x7,-0x14(%rbp)
jge    1247 <main+0x117>
imul   $0x5dc,-0x14(%rbp),%eax
cltq
mov    %rax,-0x28(%rbp)
movslq -0x14(%rbp),%rax
mov    -0x70(%rbp,%rax,8),%rdi
mov    -0x28(%rbp),%rsi
call   1050 <realloc@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    11f0 <main+0xc0>
cmpq   $0x0,-0x30(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movslq -0x14(%rbp),%rax
movq   $0x0,-0x70(%rbp,%rax,8)
jmp    1234 <main+0x104>
cmpq   $0x0,-0x30(%rbp)
je     120d <main+0xdd>
mov    -0x30(%rbp),%rcx
movslq -0x14(%rbp),%rax
mov    %rcx,-0x70(%rbp,%rax,8)
jmp    122f <main+0xff>
mov    0x2dcc(%rip),%rax
mov    (%rax),%edi
movslq -0x14(%rbp),%rax
mov    -0x70(%rbp,%rax,8),%rdx
mov    -0x28(%rbp),%rcx
lea    0xdd6(%rip),%rsi
call   1040 <fprintf@plt>
jmp    1234 <main+0x104>
jmp    1239 <main+0x109>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1194 <main+0x64>
movl   $0x0,-0x14(%rbp)
cmpl   $0x7,-0x14(%rbp)
jge    12c3 <main+0x193>
movslq -0x14(%rbp),%rax
mov    -0x70(%rbp,%rax,8),%rax
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     12b0 <main+0x180>
movslq -0x14(%rbp),%rax
mov    -0x70(%rbp,%rax,8),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1050 <realloc@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
mov    %rcx,-0x70(%rbp,%rax,8)
mov    0x2d4b(%rip),%rax
mov    (%rax),%edi
mov    -0x38(%rbp),%rdx
movslq -0x14(%rbp),%rax
mov    -0x70(%rbp,%rax,8),%rcx
lea    0xd9e(%rip),%rsi
call   1040 <fprintf@plt>
jmp    12b5 <main+0x185>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    124e <main+0x11e>
movl   $0x0,-0x4(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x40,%rsp
mov    $0x64,%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
mov    %rax,0x8(%rsp)
mov    $0x64,%edi
call   1050 <malloc@plt>
mov    %rax,0x10(%rsp)
mov    $0x64,%edi
call   1050 <malloc@plt>
mov    %rax,0x18(%rsp)
mov    $0x64,%edi
call   1050 <malloc@plt>
mov    %rax,0x20(%rsp)
mov    $0x64,%edi
call   1050 <malloc@plt>
mov    %rax,0x28(%rsp)
mov    $0x64,%edi
call   1050 <malloc@plt>
mov    %rax,0x30(%rsp)
xor    %edi,%edi
call   1030 <assert@plt>
movq   $0x0,(%rsp)
mov    $0x5dc,%esi
mov    %rbx,%rdi
call   1060 <realloc@plt>
test   %rax,%rax
je     11ca <main+0x8a>
mov    %rax,0x8(%rsp)
jmp    11e7 <main+0xa7>
mov    0x2e0f(%rip),%rax
mov    (%rax),%edi
lea    0xe26(%rip),%rsi
mov    $0x5dc,%ecx
mov    %rbx,%rdx
call   1040 <fprintf@plt>
mov    0x10(%rsp),%rbx
mov    $0xbb8,%esi
mov    %rbx,%rdi
call   1060 <realloc@plt>
test   %rax,%rax
je     1205 <main+0xc5>
mov    %rax,0x10(%rsp)
jmp    1222 <main+0xe2>
mov    0x2dd4(%rip),%rax
mov    (%rax),%edi
lea    0xdeb(%rip),%rsi
mov    $0xbb8,%ecx
mov    %rbx,%rdx
call   1040 <fprintf@plt>
mov    0x18(%rsp),%rbx
mov    $0x1194,%esi
mov    %rbx,%rdi
call   1060 <realloc@plt>
test   %rax,%rax
je     1240 <main+0x100>
mov    %rax,0x18(%rsp)
jmp    125d <main+0x11d>
mov    0x2d99(%rip),%rax
mov    (%rax),%edi
lea    0xdb0(%rip),%rsi
mov    $0x1194,%ecx
mov    %rbx,%rdx
call   1040 <fprintf@plt>
mov    0x20(%rsp),%rbx
mov    $0x1770,%esi
mov    %rbx,%rdi
call   1060 <realloc@plt>
test   %rax,%rax
je     127b <main+0x13b>
mov    %rax,0x20(%rsp)
jmp    1298 <main+0x158>
mov    0x2d5e(%rip),%rax
mov    (%rax),%edi
lea    0xd75(%rip),%rsi
mov    $0x1770,%ecx
mov    %rbx,%rdx
call   1040 <fprintf@plt>
mov    0x28(%rsp),%rbx
mov    $0x1d4c,%esi
mov    %rbx,%rdi
call   1060 <realloc@plt>
test   %rax,%rax
je     12b6 <main+0x176>
mov    %rax,0x28(%rsp)
jmp    12d3 <main+0x193>
mov    0x2d23(%rip),%rax
mov    (%rax),%edi
lea    0xd3a(%rip),%rsi
mov    $0x1d4c,%ecx
mov    %rbx,%rdx
call   1040 <fprintf@plt>
mov    0x30(%rsp),%rbx
mov    $0x2328,%esi
mov    %rbx,%rdi
call   1060 <realloc@plt>
test   %rax,%rax
je     12f1 <main+0x1b1>
mov    %rax,0x30(%rsp)
jmp    130e <main+0x1ce>
mov    0x2ce8(%rip),%rax
mov    (%rax),%edi
lea    0xcff(%rip),%rsi
mov    $0x2328,%ecx
mov    %rbx,%rdx
call   1040 <fprintf@plt>
mov    0x8(%rsp),%rbx
test   %rbx,%rbx
je     1342 <main+0x202>
mov    %rbx,%rdi
xor    %esi,%esi
call   1060 <realloc@plt>
mov    %rax,0x8(%rsp)
mov    0x2cb2(%rip),%rcx
mov    (%rcx),%edi
lea    0xd12(%rip),%rsi
mov    %rbx,%rdx
mov    %rax,%rcx
call   1040 <fprintf@plt>
mov    0x10(%rsp),%rbx
test   %rbx,%rbx
je     1376 <main+0x236>
mov    %rbx,%rdi
xor    %esi,%esi
call   1060 <realloc@plt>
mov    %rax,0x10(%rsp)
mov    0x2c7e(%rip),%rcx
mov    (%rcx),%edi
lea    0xcde(%rip),%rsi
mov    %rbx,%rdx
mov    %rax,%rcx
call   1040 <fprintf@plt>
mov    0x18(%rsp),%rbx
test   %rbx,%rbx
je     13aa <main+0x26a>
mov    %rbx,%rdi
xor    %esi,%esi
call   1060 <realloc@plt>
mov    %rax,0x18(%rsp)
mov    0x2c4a(%rip),%rcx
mov    (%rcx),%edi
lea    0xcaa(%rip),%rsi
mov    %rbx,%rdx
mov    %rax,%rcx
call   1040 <fprintf@plt>
mov    0x20(%rsp),%rbx
test   %rbx,%rbx
je     13de <main+0x29e>
mov    %rbx,%rdi
xor    %esi,%esi
call   1060 <realloc@plt>
mov    %rax,0x20(%rsp)
mov    0x2c16(%rip),%rcx
mov    (%rcx),%edi
lea    0xc76(%rip),%rsi
mov    %rbx,%rdx
mov    %rax,%rcx
call   1040 <fprintf@plt>
mov    0x28(%rsp),%rbx
test   %rbx,%rbx
je     1412 <main+0x2d2>
mov    %rbx,%rdi
xor    %esi,%esi
call   1060 <realloc@plt>
mov    %rax,0x28(%rsp)
mov    0x2be2(%rip),%rcx
mov    (%rcx),%edi
lea    0xc42(%rip),%rsi
mov    %rbx,%rdx
mov    %rax,%rcx
call   1040 <fprintf@plt>
mov    0x30(%rsp),%rbx
test   %rbx,%rbx
je     1446 <main+0x306>
mov    %rbx,%rdi
xor    %esi,%esi
call   1060 <realloc@plt>
mov    %rax,0x30(%rsp)
mov    0x2bae(%rip),%rcx
mov    (%rcx),%edi
lea    0xc0e(%rip),%rsi
mov    %rbx,%rdx
mov    %rax,%rcx
call   1040 <fprintf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@stderr = global i32 0
@.str = [73 x i8] c"realloc_test: realoc(%p, %zu) returns NULL. Original pointer untouched.\0A\00"
@.str.1 = [41 x i8] c"realloc_test: realoc(%p, 0) returns %p.\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [7 x i8*]
%4 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 0
%5 = tail call dereferenceable_or_null(100) i8* @malloc(i64 100)
%6 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 1
store i8* %5, i8** %6
%7 = tail call dereferenceable_or_null(100) i8* @malloc(i64 100)
%8 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 2
store i8* %7, i8** %8
%9 = tail call dereferenceable_or_null(100) i8* @malloc(i64 100)
%10 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 3
store i8* %9, i8** %10
%11 = tail call dereferenceable_or_null(100) i8* @malloc(i64 100)
%12 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 4
store i8* %11, i8** %12
%13 = tail call dereferenceable_or_null(100) i8* @malloc(i64 100)
%14 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 5
store i8* %13, i8** %14
%15 = tail call dereferenceable_or_null(100) i8* @malloc(i64 100)
%16 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 6
store i8* %15, i8** %16
%17 = tail call i32 @assert(i32 0)
store i8* null, i8** %4
%18 = tail call dereferenceable_or_null(1500) i8* @realloc(i8* %5, i64 1500)
%19 = icmp eq i8* %18, null
br i1 %19, label %22, label %20
20: ; preds = %2
%21 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 1
store i8* %18, i8** %21
br label %25
22: ; preds = %2
%23 = load i32, i32* @stderr
%24 = tail call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i8* %5, i8* inttoptr (i64 1500 to i8*))
br label %25
25: ; preds = %22, %20
%26 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 2
%27 = load i8*, i8** %26
%28 = tail call dereferenceable_or_null(3000) i8* @realloc(i8* %27, i64 3000)
%29 = icmp eq i8* %28, null
br i1 %29, label %32, label %30
30: ; preds = %25
%31 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 2
store i8* %28, i8** %31
br label %35
32: ; preds = %25
%33 = load i32, i32* @stderr
%34 = tail call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i8* %27, i8* inttoptr (i64 3000 to i8*))
br label %35
35: ; preds = %30, %32
%36 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 3
%37 = load i8*, i8** %36
%38 = tail call dereferenceable_or_null(4500) i8* @realloc(i8* %37, i64 4500)
%39 = icmp eq i8* %38, null
br i1 %39, label %42, label %40
40: ; preds = %35
%41 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 3
store i8* %38, i8** %41
br label %45
42: ; preds = %35
%43 = load i32, i32* @stderr
%44 = tail call i32 @fprintf(i32 %43, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i8* %37, i8* inttoptr (i64 4500 to i8*))
br label %45
45: ; preds = %40, %42
%46 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 4
%47 = load i8*, i8** %46
%48 = tail call dereferenceable_or_null(6000) i8* @realloc(i8* %47, i64 6000)
%49 = icmp eq i8* %48, null
br i1 %49, label %52, label %50
50: ; preds = %45
%51 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 4
store i8* %48, i8** %51
br label %55
52: ; preds = %45
%53 = load i32, i32* @stderr
%54 = tail call i32 @fprintf(i32 %53, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i8* %47, i8* inttoptr (i64 6000 to i8*))
br label %55
55: ; preds = %50, %52
%56 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 5
%57 = load i8*, i8** %56
%58 = tail call dereferenceable_or_null(7500) i8* @realloc(i8* %57, i64 7500)
%59 = icmp eq i8* %58, null
br i1 %59, label %62, label %60
60: ; preds = %55
%61 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 5
store i8* %58, i8** %61
br label %65
62: ; preds = %55
%63 = load i32, i32* @stderr
%64 = tail call i32 @fprintf(i32 %63, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i8* %57, i8* inttoptr (i64 7500 to i8*))
br label %65
65: ; preds = %60, %62
%66 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 6
%67 = load i8*, i8** %66
%68 = tail call dereferenceable_or_null(9000) i8* @realloc(i8* %67, i64 9000)
%69 = icmp eq i8* %68, null
br i1 %69, label %72, label %70
70: ; preds = %65
%71 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 6
store i8* %68, i8** %71
br label %75
72: ; preds = %65
%73 = load i32, i32* @stderr
%74 = tail call i32 @fprintf(i32 %73, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i8* %67, i8* inttoptr (i64 9000 to i8*))
br label %75
75: ; preds = %70, %72
%76 = load i8*, i8** %6
%77 = icmp eq i8* %76, null
br i1 %77, label %82, label %78
78: ; preds = %75
%79 = tail call i8* @realloc(i8* %76, i64 0)
store i8* %79, i8** %6
%80 = load i32, i32* @stderr
%81 = tail call i32 @fprintf(i32 %80, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i8* %76, i8* %79)
br label %82
82: ; preds = %78, %75
%83 = load i8*, i8** %8
%84 = icmp eq i8* %83, null
br i1 %84, label %89, label %85
85: ; preds = %82
%86 = tail call i8* @realloc(i8* %83, i64 0)
store i8* %86, i8** %8
%87 = load i32, i32* @stderr
%88 = tail call i32 @fprintf(i32 %87, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i8* %83, i8* %86)
br label %89
89: ; preds = %85, %82
%90 = load i8*, i8** %10
%91 = icmp eq i8* %90, null
br i1 %91, label %96, label %92
92: ; preds = %89
%93 = tail call i8* @realloc(i8* %90, i64 0)
store i8* %93, i8** %10
%94 = load i32, i32* @stderr
%95 = tail call i32 @fprintf(i32 %94, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i8* %90, i8* %93)
br label %96
96: ; preds = %92, %89
%97 = load i8*, i8** %12
%98 = icmp eq i8* %97, null
br i1 %98, label %103, label %99
99: ; preds = %96
%100 = tail call i8* @realloc(i8* %97, i64 0)
store i8* %100, i8** %12
%101 = load i32, i32* @stderr
%102 = tail call i32 @fprintf(i32 %101, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i8* %97, i8* %100)
br label %103
103: ; preds = %99, %96
%104 = load i8*, i8** %14
%105 = icmp eq i8* %104, null
br i1 %105, label %110, label %106
106: ; preds = %103
%107 = tail call i8* @realloc(i8* %104, i64 0)
store i8* %107, i8** %14
%108 = load i32, i32* @stderr
%109 = tail call i32 @fprintf(i32 %108, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i8* %104, i8* %107)
br label %110
110: ; preds = %106, %103
%111 = load i8*, i8** %16
%112 = icmp eq i8* %111, null
br i1 %112, label %117, label %113
113: ; preds = %110
%114 = tail call i8* @realloc(i8* %111, i64 0)
store i8* %114, i8** %16
%115 = load i32, i32* @stderr
%116 = tail call i32 @fprintf(i32 %115, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i8* %111, i8* %114)
br label %117
117: ; preds = %113, %110
ret i32 0
}