#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*/ printf(char *, char *);
int /*<<< orphan*/ strcmp(char *, char *);
int test_clone();
int test_concatination();
int test_copy();
int test_createEmpty();
int test_createFull();
int test_emptyDestroy();
int test_initialSizeOfAllocation();
int test_strchrappend();
int main(int argc, char **argv) {
  printf("\nTest case:\t%s\n", "test_createEmpty");
  if (argv[1] == NULL)
    test_createEmpty();
  else if (!strcmp(argv[1], "test_createEmpty"))
    return test_createEmpty();
  ;
  printf("\nTest case:\t%s\n", "test_createFull");
  if (argv[1] == NULL)
    test_createFull();
  else if (!strcmp(argv[1], "test_createFull"))
    return test_createFull();
  ;
  printf("\nTest case:\t%s\n", "test_concatination");
  if (argv[1] == NULL)
    test_concatination();
  else if (!strcmp(argv[1], "test_concatination"))
    return test_concatination();
  ;
  printf("\nTest case:\t%s\n", "test_copy");
  if (argv[1] == NULL)
    test_copy();
  else if (!strcmp(argv[1], "test_copy"))
    return test_copy();
  ;
  printf("\nTest case:\t%s\n", "test_clone");
  if (argv[1] == NULL)
    test_clone();
  else if (!strcmp(argv[1], "test_clone"))
    return test_clone();
  ;
  printf("\nTest case:\t%s\n", "test_strchrappend");
  if (argv[1] == NULL)
    test_strchrappend();
  else if (!strcmp(argv[1], "test_strchrappend"))
    return test_strchrappend();
  ;
  printf("\nTest case:\t%s\n", "test_emptyDestroy");
  if (argv[1] == NULL)
    test_emptyDestroy();
  else if (!strcmp(argv[1], "test_emptyDestroy"))
    return test_emptyDestroy();
  ;
  printf("\nTest case:\t%s\n", "test_initialSizeOfAllocation");
  if (argv[1] == NULL)
    test_initialSizeOfAllocation();
  else if (!strcmp(argv[1], "test_initialSizeOfAllocation"))
    return test_initialSizeOfAllocation();
  ;
  return -1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe43(%rip),%rdi
lea    0xe4c(%rip),%rsi
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x8(%rax)
jne    11e4 <main+0x44>
mov    $0x0,%al
call   1030 <test_createEmpty@plt>
jmp    1215 <main+0x75>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe1d(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1210 <main+0x70>
mov    $0x0,%al
call   1030 <test_createEmpty@plt>
mov    %eax,-0x4(%rbp)
jmp    14b5 <main+0x315>
jmp    1215 <main+0x75>
lea    0xde4(%rip),%rdi
lea    0xdfe(%rip),%rsi
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x8(%rax)
jne    1243 <main+0xa3>
mov    $0x0,%al
call   1060 <test_createFull@plt>
jmp    1274 <main+0xd4>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdcf(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    126f <main+0xcf>
mov    $0x0,%al
call   1060 <test_createFull@plt>
mov    %eax,-0x4(%rbp)
jmp    14b5 <main+0x315>
jmp    1274 <main+0xd4>
lea    0xd85(%rip),%rdi
lea    0xdaf(%rip),%rsi
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x8(%rax)
jne    12a2 <main+0x102>
mov    $0x0,%al
call   1090 <test_concatination@plt>
jmp    12d3 <main+0x133>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd80(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    12ce <main+0x12e>
mov    $0x0,%al
call   1090 <test_concatination@plt>
mov    %eax,-0x4(%rbp)
jmp    14b5 <main+0x315>
jmp    12d3 <main+0x133>
lea    0xd26(%rip),%rdi
lea    0xd63(%rip),%rsi
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x8(%rax)
jne    1301 <main+0x161>
mov    $0x0,%al
call   1040 <test_copy@plt>
jmp    1332 <main+0x192>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd34(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    132d <main+0x18d>
mov    $0x0,%al
call   1040 <test_copy@plt>
mov    %eax,-0x4(%rbp)
jmp    14b5 <main+0x315>
jmp    1332 <main+0x192>
lea    0xcc7(%rip),%rdi
lea    0xd0e(%rip),%rsi
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x8(%rax)
jne    1360 <main+0x1c0>
mov    $0x0,%al
call   1080 <test_clone@plt>
jmp    1391 <main+0x1f1>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xcdf(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    138c <main+0x1ec>
mov    $0x0,%al
call   1080 <test_clone@plt>
mov    %eax,-0x4(%rbp)
jmp    14b5 <main+0x315>
jmp    1391 <main+0x1f1>
lea    0xc68(%rip),%rdi
lea    0xcba(%rip),%rsi
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x8(%rax)
jne    13bf <main+0x21f>
mov    $0x0,%al
call   10c0 <test_strchrappend@plt>
jmp    13f0 <main+0x250>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc8b(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    13eb <main+0x24b>
mov    $0x0,%al
call   10c0 <test_strchrappend@plt>
mov    %eax,-0x4(%rbp)
jmp    14b5 <main+0x315>
jmp    13f0 <main+0x250>
lea    0xc09(%rip),%rdi
lea    0xc6d(%rip),%rsi
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x8(%rax)
jne    141e <main+0x27e>
mov    $0x0,%al
call   10a0 <test_emptyDestroy@plt>
jmp    144f <main+0x2af>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc3e(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    144a <main+0x2aa>
mov    $0x0,%al
call   10a0 <test_emptyDestroy@plt>
mov    %eax,-0x4(%rbp)
jmp    14b5 <main+0x315>
jmp    144f <main+0x2af>
lea    0xbaa(%rip),%rdi
lea    0xc20(%rip),%rsi
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x8(%rax)
jne    147d <main+0x2dd>
mov    $0x0,%al
call   10b0 <test_initialSizeOfAllocation@plt>
jmp    14ae <main+0x30e>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xbf1(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    14a9 <main+0x309>
mov    $0x0,%al
call   10b0 <test_initialSizeOfAllocation@plt>
mov    %eax,-0x4(%rbp)
jmp    14b5 <main+0x315>
jmp    14ae <main+0x30e>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    %rsi,%rbx
lea    0xe55(%rip),%rdi
lea    0xe5e(%rip),%rsi
call   1050 <printf@plt>
mov    0x8(%rbx),%rdi
test   %rdi,%rdi
je     11d8 <main+0x38>
lea    0xe49(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    11df <main+0x3f>
xor    %eax,%eax
pop    %rbx
jmp    1030 <test_createEmpty@plt>
xor    %eax,%eax
call   1030 <test_createEmpty@plt>
lea    0xe1a(%rip),%rdi
lea    0xe34(%rip),%rsi
call   1050 <printf@plt>
mov    0x8(%rbx),%rdi
test   %rdi,%rdi
je     1213 <main+0x73>
lea    0xe1f(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    121a <main+0x7a>
xor    %eax,%eax
pop    %rbx
jmp    1060 <test_createFull@plt>
xor    %eax,%eax
call   1060 <test_createFull@plt>
lea    0xddf(%rip),%rdi
lea    0xe09(%rip),%rsi
call   1050 <printf@plt>
mov    0x8(%rbx),%rdi
test   %rdi,%rdi
je     124e <main+0xae>
lea    0xdf4(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    1255 <main+0xb5>
xor    %eax,%eax
pop    %rbx
jmp    1090 <test_concatination@plt>
xor    %eax,%eax
call   1090 <test_concatination@plt>
lea    0xda4(%rip),%rdi
lea    0xde1(%rip),%rsi
call   1050 <printf@plt>
mov    0x8(%rbx),%rdi
test   %rdi,%rdi
je     1289 <main+0xe9>
lea    0xdcc(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    1290 <main+0xf0>
xor    %eax,%eax
pop    %rbx
jmp    1040 <test_copy@plt>
xor    %eax,%eax
call   1040 <test_copy@plt>
lea    0xd69(%rip),%rdi
lea    0xdb0(%rip),%rsi
call   1050 <printf@plt>
mov    0x8(%rbx),%rdi
test   %rdi,%rdi
je     12c4 <main+0x124>
lea    0xd9b(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    12cb <main+0x12b>
xor    %eax,%eax
pop    %rbx
jmp    1080 <test_clone@plt>
xor    %eax,%eax
call   1080 <test_clone@plt>
lea    0xd2e(%rip),%rdi
lea    0xd80(%rip),%rsi
call   1050 <printf@plt>
mov    0x8(%rbx),%rdi
test   %rdi,%rdi
je     12ff <main+0x15f>
lea    0xd6b(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    1306 <main+0x166>
xor    %eax,%eax
pop    %rbx
jmp    10c0 <test_strchrappend@plt>
xor    %eax,%eax
call   10c0 <test_strchrappend@plt>
lea    0xcf3(%rip),%rdi
lea    0xd57(%rip),%rsi
call   1050 <printf@plt>
mov    0x8(%rbx),%rdi
test   %rdi,%rdi
je     133a <main+0x19a>
lea    0xd42(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    1341 <main+0x1a1>
xor    %eax,%eax
pop    %rbx
jmp    10a0 <test_emptyDestroy@plt>
xor    %eax,%eax
call   10a0 <test_emptyDestroy@plt>
lea    0xcb8(%rip),%rdi
lea    0xd2e(%rip),%rsi
call   1050 <printf@plt>
mov    0x8(%rbx),%rdi
test   %rdi,%rdi
je     1375 <main+0x1d5>
lea    0xd19(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    137c <main+0x1dc>
xor    %eax,%eax
pop    %rbx
jmp    10b0 <test_initialSizeOfAllocation@plt>
xor    %eax,%eax
call   10b0 <test_initialSizeOfAllocation@plt>
mov    $0xffffffff,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [16 x i8] c"\0ATest case:\09%s\0A\00"
@.str.1 = [17 x i8] c"test_createEmpty\00"
@.str.2 = [16 x i8] c"test_createFull\00"
@.str.3 = [19 x i8] c"test_concatination\00"
@.str.4 = [10 x i8] c"test_copy\00"
@.str.5 = [11 x i8] c"test_clone\00"
@.str.6 = [18 x i8] c"test_strchrappend\00"
@.str.7 = [18 x i8] c"test_emptyDestroy\00"
@.str.8 = [29 x i8] c"test_initialSizeOfAllocation\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%7 = load i8**, i8*** %5
%8 = getelementptr inbounds i8*, i8** %7, i64 1
%9 = load i8*, i8** %8
%10 = icmp eq i8* %9, null
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 (...) @test_createEmpty()
br label %22
13: ; preds = %2
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 1
%16 = load i8*, i8** %15
%17 = call i32 @strcmp(i8* %16, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%18 = icmp ne i32 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %13
%20 = call i32 (...) @test_createEmpty()
store i32 %20, i32* %3
br label %142
21: ; preds = %13
br label %22
22: ; preds = %21, %11
%23 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 1
%26 = load i8*, i8** %25
%27 = icmp eq i8* %26, null
br i1 %27, label %28, label %30
28: ; preds = %22
%29 = call i32 (...) @test_createFull()
br label %39
30: ; preds = %22
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 1
%33 = load i8*, i8** %32
%34 = call i32 @strcmp(i8* %33, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%35 = icmp ne i32 %34, 0
br i1 %35, label %38, label %36
36: ; preds = %30
%37 = call i32 (...) @test_createFull()
store i32 %37, i32* %3
br label %142
38: ; preds = %30
br label %39
39: ; preds = %38, %28
%40 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%41 = load i8**, i8*** %5
%42 = getelementptr inbounds i8*, i8** %41, i64 1
%43 = load i8*, i8** %42
%44 = icmp eq i8* %43, null
br i1 %44, label %45, label %47
45: ; preds = %39
%46 = call i32 (...) @test_concatination()
br label %56
47: ; preds = %39
%48 = load i8**, i8*** %5
%49 = getelementptr inbounds i8*, i8** %48, i64 1
%50 = load i8*, i8** %49
%51 = call i32 @strcmp(i8* %50, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%52 = icmp ne i32 %51, 0
br i1 %52, label %55, label %53
53: ; preds = %47
%54 = call i32 (...) @test_concatination()
store i32 %54, i32* %3
br label %142
55: ; preds = %47
br label %56
56: ; preds = %55, %45
%57 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%58 = load i8**, i8*** %5
%59 = getelementptr inbounds i8*, i8** %58, i64 1
%60 = load i8*, i8** %59
%61 = icmp eq i8* %60, null
br i1 %61, label %62, label %64
62: ; preds = %56
%63 = call i32 (...) @test_copy()
br label %73
64: ; preds = %56
%65 = load i8**, i8*** %5
%66 = getelementptr inbounds i8*, i8** %65, i64 1
%67 = load i8*, i8** %66
%68 = call i32 @strcmp(i8* %67, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%69 = icmp ne i32 %68, 0
br i1 %69, label %72, label %70
70: ; preds = %64
%71 = call i32 (...) @test_copy()
store i32 %71, i32* %3
br label %142
72: ; preds = %64
br label %73
73: ; preds = %72, %62
%74 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%75 = load i8**, i8*** %5
%76 = getelementptr inbounds i8*, i8** %75, i64 1
%77 = load i8*, i8** %76
%78 = icmp eq i8* %77, null
br i1 %78, label %79, label %81
79: ; preds = %73
%80 = call i32 (...) @test_clone()
br label %90
81: ; preds = %73
%82 = load i8**, i8*** %5
%83 = getelementptr inbounds i8*, i8** %82, i64 1
%84 = load i8*, i8** %83
%85 = call i32 @strcmp(i8* %84, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%86 = icmp ne i32 %85, 0
br i1 %86, label %89, label %87
87: ; preds = %81
%88 = call i32 (...) @test_clone()
store i32 %88, i32* %3
br label %142
89: ; preds = %81
br label %90
90: ; preds = %89, %79
%91 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%92 = load i8**, i8*** %5
%93 = getelementptr inbounds i8*, i8** %92, i64 1
%94 = load i8*, i8** %93
%95 = icmp eq i8* %94, null
br i1 %95, label %96, label %98
96: ; preds = %90
%97 = call i32 (...) @test_strchrappend()
br label %107
98: ; preds = %90
%99 = load i8**, i8*** %5
%100 = getelementptr inbounds i8*, i8** %99, i64 1
%101 = load i8*, i8** %100
%102 = call i32 @strcmp(i8* %101, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%103 = icmp ne i32 %102, 0
br i1 %103, label %106, label %104
104: ; preds = %98
%105 = call i32 (...) @test_strchrappend()
store i32 %105, i32* %3
br label %142
106: ; preds = %98
br label %107
107: ; preds = %106, %96
%108 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%109 = load i8**, i8*** %5
%110 = getelementptr inbounds i8*, i8** %109, i64 1
%111 = load i8*, i8** %110
%112 = icmp eq i8* %111, null
br i1 %112, label %113, label %115
113: ; preds = %107
%114 = call i32 (...) @test_emptyDestroy()
br label %124
115: ; preds = %107
%116 = load i8**, i8*** %5
%117 = getelementptr inbounds i8*, i8** %116, i64 1
%118 = load i8*, i8** %117
%119 = call i32 @strcmp(i8* %118, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%120 = icmp ne i32 %119, 0
br i1 %120, label %123, label %121
121: ; preds = %115
%122 = call i32 (...) @test_emptyDestroy()
store i32 %122, i32* %3
br label %142
123: ; preds = %115
br label %124
124: ; preds = %123, %113
%125 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0))
%126 = load i8**, i8*** %5
%127 = getelementptr inbounds i8*, i8** %126, i64 1
%128 = load i8*, i8** %127
%129 = icmp eq i8* %128, null
br i1 %129, label %130, label %132
130: ; preds = %124
%131 = call i32 (...) @test_initialSizeOfAllocation()
br label %141
132: ; preds = %124
%133 = load i8**, i8*** %5
%134 = getelementptr inbounds i8*, i8** %133, i64 1
%135 = load i8*, i8** %134
%136 = call i32 @strcmp(i8* %135, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0))
%137 = icmp ne i32 %136, 0
br i1 %137, label %140, label %138
138: ; preds = %132
%139 = call i32 (...) @test_initialSizeOfAllocation()
store i32 %139, i32* %3
br label %142
140: ; preds = %132
br label %141
141: ; preds = %140, %130
store i32 -1, i32* %3
br label %142
142: ; preds = %141, %138, %121, %104, %87, %70, %53, %36, %19
%143 = load i32, i32* %3
ret i32 %143
}

LLVM IR (-O2):
@.str = [16 x i8] c"\0ATest case:\09%s\0A\00"
@.str.1 = [17 x i8] c"test_createEmpty\00"
@.str.2 = [16 x i8] c"test_createFull\00"
@.str.3 = [19 x i8] c"test_concatination\00"
@.str.4 = [10 x i8] c"test_copy\00"
@.str.5 = [11 x i8] c"test_clone\00"
@.str.6 = [18 x i8] c"test_strchrappend\00"
@.str.7 = [18 x i8] c"test_emptyDestroy\00"
@.str.8 = [29 x i8] c"test_initialSizeOfAllocation\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%4 = getelementptr inbounds i8*, i8** %1, i64 1
%5 = load i8*, i8** %4
%6 = icmp eq i8* %5, null
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 (...) @test_createEmpty()
br label %14
9: ; preds = %2
%10 = tail call i32 @strcmp(i8* %5, i8* dereferenceable(17) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = tail call i32 (...) @test_createEmpty()
br label %91
14: ; preds = %9, %7
%15 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%16 = load i8*, i8** %4
%17 = icmp eq i8* %16, null
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = tail call i32 (...) @test_createFull()
br label %25
20: ; preds = %14
%21 = tail call i32 @strcmp(i8* %16, i8* dereferenceable(16) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = tail call i32 (...) @test_createFull()
br label %91
25: ; preds = %20, %18
%26 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%27 = load i8*, i8** %4
%28 = icmp eq i8* %27, null
br i1 %28, label %29, label %31
29: ; preds = %25
%30 = tail call i32 (...) @test_concatination()
br label %36
31: ; preds = %25
%32 = tail call i32 @strcmp(i8* %27, i8* dereferenceable(19) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = tail call i32 (...) @test_concatination()
br label %91
36: ; preds = %31, %29
%37 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%38 = load i8*, i8** %4
%39 = icmp eq i8* %38, null
br i1 %39, label %40, label %42
40: ; preds = %36
%41 = tail call i32 (...) @test_copy()
br label %47
42: ; preds = %36
%43 = tail call i32 @strcmp(i8* %38, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = tail call i32 (...) @test_copy()
br label %91
47: ; preds = %42, %40
%48 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%49 = load i8*, i8** %4
%50 = icmp eq i8* %49, null
br i1 %50, label %51, label %53
51: ; preds = %47
%52 = tail call i32 (...) @test_clone()
br label %58
53: ; preds = %47
%54 = tail call i32 @strcmp(i8* %49, i8* dereferenceable(11) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %53
%57 = tail call i32 (...) @test_clone()
br label %91
58: ; preds = %53, %51
%59 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%60 = load i8*, i8** %4
%61 = icmp eq i8* %60, null
br i1 %61, label %62, label %64
62: ; preds = %58
%63 = tail call i32 (...) @test_strchrappend()
br label %69
64: ; preds = %58
%65 = tail call i32 @strcmp(i8* %60, i8* dereferenceable(18) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%66 = icmp eq i32 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %64
%68 = tail call i32 (...) @test_strchrappend()
br label %91
69: ; preds = %64, %62
%70 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%71 = load i8*, i8** %4
%72 = icmp eq i8* %71, null
br i1 %72, label %73, label %75
73: ; preds = %69
%74 = tail call i32 (...) @test_emptyDestroy()
br label %80
75: ; preds = %69
%76 = tail call i32 @strcmp(i8* %71, i8* dereferenceable(18) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%77 = icmp eq i32 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %75
%79 = tail call i32 (...) @test_emptyDestroy()
br label %91
80: ; preds = %75, %73
%81 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0))
%82 = load i8*, i8** %4
%83 = icmp eq i8* %82, null
br i1 %83, label %84, label %86
84: ; preds = %80
%85 = tail call i32 (...) @test_initialSizeOfAllocation()
br label %91
86: ; preds = %80
%87 = tail call i32 @strcmp(i8* %82, i8* dereferenceable(29) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0))
%88 = icmp eq i32 %87, 0
br i1 %88, label %89, label %91
89: ; preds = %86
%90 = tail call i32 (...) @test_initialSizeOfAllocation()
br label %91
91: ; preds = %84, %86, %89, %78, %67, %56, %45, %34, %23, %12
%92 = phi i32 [ %90, %89 ], [ %79, %78 ], [ %68, %67 ], [ %57, %56 ], [ %46, %45 ], [ %35, %34 ], [ %24, %23 ], [ %13, %12 ], [ -1, %86 ], [ -1, %84 ]
ret i32 %92
}