int main(int argc, char *argv[]) {
  char **strvec1;
  char **strvec2;
  char **strvec3;
  char *str1;
  char *str2;
  char *str3;
  int i;
  assert(strvec1 = strvec_new());
  assert(strvec_push_str(&strvec1, "test1"));
  assert(strvec_push_str(&strvec1, "test2"));
  assert(strvec_length(strvec1) == 2);
  display_mallinfo();
  assert(strvec2 = strvec_new());
  assert(strvec_push_str(&strvec2, "test3"));
  assert(strvec_push_str(&strvec2, "test4"));
  assert(strvec_push_str(&strvec2, "test5"));
  assert(strvec_push_str(&strvec2, "test6"));
  assert(strvec_push_str(&strvec2, "test7"));
  assert(strvec_length(strvec2) == 5);
  display_mallinfo();
  assert(strvec_push_strvec(&strvec1, strvec2));
  assert(strvec_push_strvec(&strvec2, strvec1));
  assert(strvec_length(strvec1) == 7);
  assert(str1 = strvec_to_str(strvec1));
  assert(str3 = strdup(str1));
  assert(strvec3 = strvec_from_str(str3));
  assert(str2 = strvec_to_str(strvec3));
  display_mallinfo();
  for (i = 0; i < 1000000; i++) {
    strvec_push_str(&strvec3, "yeah");
  }
  assert(strvec_length(strvec3) == 1000000 + 7);
  display_mallinfo();
  malloc_stats();
  free(str1);
  free(str2);
  free(str3);
  free(strvec1);
  free(strvec2);
  free(strvec3);
  display_mallinfo();
  malloc_stats();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   10c0 <strvec_new@plt>
movslq %eax,%rdi
mov    %rdi,-0x18(%rbp)
mov    $0x0,%al
call   1080 <assert@plt>
lea    -0x18(%rbp),%rdi
lea    0xe1a(%rip),%rsi
mov    $0x0,%al
call   1070 <strvec_push_str@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1080 <assert@plt>
lea    -0x18(%rbp),%rdi
lea    0xe05(%rip),%rsi
mov    $0x0,%al
call   1070 <strvec_push_str@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1080 <assert@plt>
mov    -0x18(%rbp),%rdi
mov    $0x0,%al
call   1040 <strvec_length@plt>
cmp    $0x2,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1080 <assert@plt>
mov    $0x0,%al
call   1050 <display_mallinfo@plt>
mov    $0x0,%al
call   10c0 <strvec_new@plt>
movslq %eax,%rdi
mov    %rdi,-0x20(%rbp)
mov    $0x0,%al
call   1080 <assert@plt>
lea    -0x20(%rbp),%rdi
lea    0xdb7(%rip),%rsi
mov    $0x0,%al
call   1070 <strvec_push_str@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1080 <assert@plt>
lea    -0x20(%rbp),%rdi
lea    0xda2(%rip),%rsi
mov    $0x0,%al
call   1070 <strvec_push_str@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1080 <assert@plt>
lea    -0x20(%rbp),%rdi
lea    0xd8d(%rip),%rsi
mov    $0x0,%al
call   1070 <strvec_push_str@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1080 <assert@plt>
lea    -0x20(%rbp),%rdi
lea    0xd78(%rip),%rsi
mov    $0x0,%al
call   1070 <strvec_push_str@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1080 <assert@plt>
lea    -0x20(%rbp),%rdi
lea    0xd63(%rip),%rsi
mov    $0x0,%al
call   1070 <strvec_push_str@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1080 <assert@plt>
mov    -0x20(%rbp),%rdi
mov    $0x0,%al
call   1040 <strvec_length@plt>
cmp    $0x5,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1080 <assert@plt>
mov    $0x0,%al
call   1050 <display_mallinfo@plt>
mov    -0x20(%rbp),%rsi
lea    -0x18(%rbp),%rdi
mov    $0x0,%al
call   1060 <strvec_push_strvec@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1080 <assert@plt>
mov    -0x18(%rbp),%rsi
lea    -0x20(%rbp),%rdi
mov    $0x0,%al
call   1060 <strvec_push_strvec@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1080 <assert@plt>
mov    -0x18(%rbp),%rdi
mov    $0x0,%al
call   1040 <strvec_length@plt>
cmp    $0x7,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1080 <assert@plt>
mov    -0x18(%rbp),%rdi
mov    $0x0,%al
call   1090 <strvec_to_str@plt>
movslq %eax,%rdi
mov    %rdi,-0x30(%rbp)
mov    $0x0,%al
call   1080 <assert@plt>
mov    -0x30(%rbp),%rdi
call   10d0 <strdup@plt>
mov    %rax,%rdi
mov    %rdi,-0x40(%rbp)
mov    $0x0,%al
call   1080 <assert@plt>
mov    -0x40(%rbp),%rdi
mov    $0x0,%al
call   10b0 <strvec_from_str@plt>
movslq %eax,%rdi
mov    %rdi,-0x28(%rbp)
mov    $0x0,%al
call   1080 <assert@plt>
mov    -0x28(%rbp),%rdi
mov    $0x0,%al
call   1090 <strvec_to_str@plt>
movslq %eax,%rdi
mov    %rdi,-0x38(%rbp)
mov    $0x0,%al
call   1080 <assert@plt>
mov    $0x0,%al
call   1050 <display_mallinfo@plt>
movl   $0x0,-0x44(%rbp)
cmpl   $0xf4240,-0x44(%rbp)
jge    13df <main+0x22f>
lea    -0x28(%rbp),%rdi
lea    0xc60(%rip),%rsi
mov    $0x0,%al
call   1070 <strvec_push_str@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    13b2 <main+0x202>
mov    -0x28(%rbp),%rdi
mov    $0x0,%al
call   1040 <strvec_length@plt>
cmp    $0xf4247,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1080 <assert@plt>
mov    $0x0,%al
call   1050 <display_mallinfo@plt>
mov    $0x0,%al
call   10a0 <malloc_stats@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    $0x0,%al
call   1050 <display_mallinfo@plt>
mov    $0x0,%al
call   10a0 <malloc_stats@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
xor    %eax,%eax
call   10c0 <strvec_new@plt>
movslq %eax,%rdi
mov    %rdi,(%rsp)
xor    %eax,%eax
call   1080 <assert@plt>
lea    0xe26(%rip),%rsi
mov    %rsp,%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1070 <strvec_push_str@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1080 <assert@plt>
lea    0xe0f(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1070 <strvec_push_str@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1080 <assert@plt>
mov    (%rsp),%rdi
xor    %eax,%eax
call   1040 <strvec_length@plt>
xor    %edi,%edi
cmp    $0x2,%eax
sete   %dil
xor    %eax,%eax
call   1080 <assert@plt>
xor    %eax,%eax
call   1050 <display_mallinfo@plt>
xor    %eax,%eax
call   10c0 <strvec_new@plt>
movslq %eax,%rdi
mov    %rdi,0x8(%rsp)
xor    %eax,%eax
call   1080 <assert@plt>
lea    0xdc3(%rip),%rsi
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <strvec_push_str@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1080 <assert@plt>
lea    0xdaa(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <strvec_push_str@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1080 <assert@plt>
lea    0xd96(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <strvec_push_str@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1080 <assert@plt>
lea    0xd82(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <strvec_push_str@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1080 <assert@plt>
lea    0xd6e(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <strvec_push_str@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1080 <assert@plt>
mov    0x8(%rsp),%rdi
xor    %eax,%eax
call   1040 <strvec_length@plt>
xor    %edi,%edi
cmp    $0x5,%eax
sete   %dil
xor    %eax,%eax
call   1080 <assert@plt>
xor    %eax,%eax
call   1050 <display_mallinfo@plt>
mov    0x8(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <strvec_push_strvec@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1080 <assert@plt>
mov    (%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <strvec_push_strvec@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1080 <assert@plt>
mov    (%rsp),%rdi
xor    %eax,%eax
call   1040 <strvec_length@plt>
xor    %edi,%edi
cmp    $0x7,%eax
sete   %dil
xor    %eax,%eax
call   1080 <assert@plt>
mov    (%rsp),%rdi
xor    %eax,%eax
call   1090 <strvec_to_str@plt>
movslq %eax,%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1080 <assert@plt>
mov    %r14,%rdi
call   10d0 <strdup@plt>
mov    %rax,%r15
mov    %rax,%rdi
xor    %eax,%eax
call   1080 <assert@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   10b0 <strvec_from_str@plt>
movslq %eax,%rbx
mov    %rbx,0x10(%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   1080 <assert@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1090 <strvec_to_str@plt>
movslq %eax,%r12
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <assert@plt>
xor    %eax,%eax
call   1050 <display_mallinfo@plt>
mov    $0xf4240,%ebp
lea    0xc81(%rip),%r13
lea    0x10(%rsp),%rbx
xchg   %ax,%ax
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1070 <strvec_push_str@plt>
add    $0xffffffff,%ebp
jne    13b0 <main+0x200>
mov    0x10(%rsp),%rdi
xor    %eax,%eax
call   1040 <strvec_length@plt>
xor    %edi,%edi
cmp    $0xf4247,%eax
sete   %dil
xor    %eax,%eax
call   1080 <assert@plt>
xor    %eax,%eax
call   1050 <display_mallinfo@plt>
xor    %eax,%eax
call   10a0 <malloc_stats@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    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    0x10(%rsp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
call   1050 <display_mallinfo@plt>
xor    %eax,%eax
call   10a0 <malloc_stats@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"test1\00"
@.str.1 = [6 x i8] c"test2\00"
@.str.2 = [6 x i8] c"test3\00"
@.str.3 = [6 x i8] c"test4\00"
@.str.4 = [6 x i8] c"test5\00"
@.str.5 = [6 x i8] c"test6\00"
@.str.6 = [6 x i8] c"test7\00"
@.str.7 = [5 x i8] c"yeah\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8**
%7 = alloca i8**
%8 = alloca i8**
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = call i32 (...) @strvec_new()
%14 = sext i32 %13 to i64
%15 = inttoptr i64 %14 to i8**
store i8** %15, i8*** %6
%16 = call i32 (i8**, ...) bitcast (i32 (...)* @assert to i32 (i8**, ...)*)(i8** %15)
%17 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%18 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %17)
%19 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%20 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %19)
%21 = load i8**, i8*** %6
%22 = call i32 (i8**, ...) bitcast (i32 (...)* @strvec_length to i32 (i8**, ...)*)(i8** %21)
%23 = icmp eq i32 %22, 2
%24 = zext i1 %23 to i32
%25 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %24)
%26 = call i32 (...) @display_mallinfo()
%27 = call i32 (...) @strvec_new()
%28 = sext i32 %27 to i64
%29 = inttoptr i64 %28 to i8**
store i8** %29, i8*** %7
%30 = call i32 (i8**, ...) bitcast (i32 (...)* @assert to i32 (i8**, ...)*)(i8** %29)
%31 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%32 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %31)
%33 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%34 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %33)
%35 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%36 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %35)
%37 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%38 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %37)
%39 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%40 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %39)
%41 = load i8**, i8*** %7
%42 = call i32 (i8**, ...) bitcast (i32 (...)* @strvec_length to i32 (i8**, ...)*)(i8** %41)
%43 = icmp eq i32 %42, 5
%44 = zext i1 %43 to i32
%45 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %44)
%46 = call i32 (...) @display_mallinfo()
%47 = load i8**, i8*** %7
%48 = call i32 (i8***, i8**, ...) bitcast (i32 (...)* @strvec_push_strvec to i32 (i8***, i8**, ...)*)(i8*** %6, i8** %47)
%49 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %48)
%50 = load i8**, i8*** %6
%51 = call i32 (i8***, i8**, ...) bitcast (i32 (...)* @strvec_push_strvec to i32 (i8***, i8**, ...)*)(i8*** %7, i8** %50)
%52 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %51)
%53 = load i8**, i8*** %6
%54 = call i32 (i8**, ...) bitcast (i32 (...)* @strvec_length to i32 (i8**, ...)*)(i8** %53)
%55 = icmp eq i32 %54, 7
%56 = zext i1 %55 to i32
%57 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %56)
%58 = load i8**, i8*** %6
%59 = call i32 (i8**, ...) bitcast (i32 (...)* @strvec_to_str to i32 (i8**, ...)*)(i8** %58)
%60 = sext i32 %59 to i64
%61 = inttoptr i64 %60 to i8*
store i8* %61, i8** %9
%62 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %61)
%63 = load i8*, i8** %9
%64 = call i8* @strdup(i8* %63)
store i8* %64, i8** %11
%65 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %64)
%66 = load i8*, i8** %11
%67 = call i32 (i8*, ...) bitcast (i32 (...)* @strvec_from_str to i32 (i8*, ...)*)(i8* %66)
%68 = sext i32 %67 to i64
%69 = inttoptr i64 %68 to i8**
store i8** %69, i8*** %8
%70 = call i32 (i8**, ...) bitcast (i32 (...)* @assert to i32 (i8**, ...)*)(i8** %69)
%71 = load i8**, i8*** %8
%72 = call i32 (i8**, ...) bitcast (i32 (...)* @strvec_to_str to i32 (i8**, ...)*)(i8** %71)
%73 = sext i32 %72 to i64
%74 = inttoptr i64 %73 to i8*
store i8* %74, i8** %10
%75 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %74)
%76 = call i32 (...) @display_mallinfo()
store i32 0, i32* %12
br label %77
77: ; preds = %82, %2
%78 = load i32, i32* %12
%79 = icmp slt i32 %78, 1000000
br i1 %79, label %80, label %85
80: ; preds = %77
%81 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
br label %82
82: ; preds = %80
%83 = load i32, i32* %12
%84 = add nsw i32 %83, 1
store i32 %84, i32* %12
br label %77
85: ; preds = %77
%86 = load i8**, i8*** %8
%87 = call i32 (i8**, ...) bitcast (i32 (...)* @strvec_length to i32 (i8**, ...)*)(i8** %86)
%88 = icmp eq i32 %87, 1000007
%89 = zext i1 %88 to i32
%90 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %89)
%91 = call i32 (...) @display_mallinfo()
%92 = call i32 (...) @malloc_stats()
%93 = load i8*, i8** %9
%94 = load i8*, i8** %10
%95 = load i8*, i8** %11
%96 = load i8**, i8*** %6
%97 = bitcast i8** %96 to i8*
%98 = load i8**, i8*** %7
%99 = bitcast i8** %98 to i8*
%100 = load i8**, i8*** %8
%101 = bitcast i8** %100 to i8*
%102 = call i32 (...) @display_mallinfo()
%103 = call i32 (...) @malloc_stats()
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"test1\00"
@.str.1 = [6 x i8] c"test2\00"
@.str.2 = [6 x i8] c"test3\00"
@.str.3 = [6 x i8] c"test4\00"
@.str.4 = [6 x i8] c"test5\00"
@.str.5 = [6 x i8] c"test6\00"
@.str.6 = [6 x i8] c"test7\00"
@.str.7 = [5 x i8] c"yeah\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i8**
%4 = alloca i8**
%5 = alloca i8**
%6 = bitcast i8*** %3 to i8*
%7 = bitcast i8*** %4 to i8*
%8 = bitcast i8*** %5 to i8*
%9 = tail call i32 (...) @strvec_new()
%10 = sext i32 %9 to i64
%11 = inttoptr i64 %10 to i8**
store i8** %11, i8*** %3
%12 = tail call i32 (i8**, ...) bitcast (i32 (...)* @assert to i32 (i8**, ...)*)(i8** %11)
%13 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%14 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %13)
%15 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%16 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %15)
%17 = load i8**, i8*** %3
%18 = call i32 (i8**, ...) bitcast (i32 (...)* @strvec_length to i32 (i8**, ...)*)(i8** %17)
%19 = icmp eq i32 %18, 2
%20 = zext i1 %19 to i32
%21 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %20)
%22 = call i32 (...) @display_mallinfo()
%23 = call i32 (...) @strvec_new()
%24 = sext i32 %23 to i64
%25 = inttoptr i64 %24 to i8**
store i8** %25, i8*** %4
%26 = call i32 (i8**, ...) bitcast (i32 (...)* @assert to i32 (i8**, ...)*)(i8** %25)
%27 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%28 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %27)
%29 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%30 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %29)
%31 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%32 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %31)
%33 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%34 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %33)
%35 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%36 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %35)
%37 = load i8**, i8*** %4
%38 = call i32 (i8**, ...) bitcast (i32 (...)* @strvec_length to i32 (i8**, ...)*)(i8** %37)
%39 = icmp eq i32 %38, 5
%40 = zext i1 %39 to i32
%41 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %40)
%42 = call i32 (...) @display_mallinfo()
%43 = load i8**, i8*** %4
%44 = call i32 (i8***, i8**, ...) bitcast (i32 (...)* @strvec_push_strvec to i32 (i8***, i8**, ...)*)(i8*** %3, i8** %43)
%45 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %44)
%46 = load i8**, i8*** %3
%47 = call i32 (i8***, i8**, ...) bitcast (i32 (...)* @strvec_push_strvec to i32 (i8***, i8**, ...)*)(i8*** %4, i8** %46)
%48 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %47)
%49 = load i8**, i8*** %3
%50 = call i32 (i8**, ...) bitcast (i32 (...)* @strvec_length to i32 (i8**, ...)*)(i8** %49)
%51 = icmp eq i32 %50, 7
%52 = zext i1 %51 to i32
%53 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %52)
%54 = load i8**, i8*** %3
%55 = call i32 (i8**, ...) bitcast (i32 (...)* @strvec_to_str to i32 (i8**, ...)*)(i8** %54)
%56 = sext i32 %55 to i64
%57 = inttoptr i64 %56 to i8*
%58 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %57)
%59 = call i8* @strdup(i8* %57)
%60 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %59)
%61 = call i32 (i8*, ...) bitcast (i32 (...)* @strvec_from_str to i32 (i8*, ...)*)(i8* %59)
%62 = sext i32 %61 to i64
%63 = inttoptr i64 %62 to i8**
store i8** %63, i8*** %5
%64 = call i32 (i8**, ...) bitcast (i32 (...)* @assert to i32 (i8**, ...)*)(i8** %63)
%65 = call i32 (i8**, ...) bitcast (i32 (...)* @strvec_to_str to i32 (i8**, ...)*)(i8** %63)
%66 = sext i32 %65 to i64
%67 = inttoptr i64 %66 to i8*
%68 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %67)
%69 = call i32 (...) @display_mallinfo()
br label %70
70: ; preds = %2, %70
%71 = phi i32 [ 0, %2 ], [ %73, %70 ]
%72 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%73 = add nuw nsw i32 %71, 1
%74 = icmp eq i32 %73, 1000000
br i1 %74, label %75, label %70
75: ; preds = %70
%76 = load i8**, i8*** %5
%77 = call i32 (i8**, ...) bitcast (i32 (...)* @strvec_length to i32 (i8**, ...)*)(i8** %76)
%78 = icmp eq i32 %77, 1000007
%79 = zext i1 %78 to i32
%80 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %79)
%81 = call i32 (...) @display_mallinfo()
%82 = call i32 (...) @malloc_stats()
%83 = bitcast i8*** %3 to i8**
%84 = load i8*, i8** %83
%85 = bitcast i8*** %4 to i8**
%86 = load i8*, i8** %85
%87 = bitcast i8*** %5 to i8**
%88 = load i8*, i8** %87
%89 = call i32 (...) @display_mallinfo()
%90 = call i32 (...) @malloc_stats()
ret i32 0
}