void test_mx_strvec() {
  char **strvec;
  char *str;
  strvec = mx_strvec_new();
  mx_strvec_push_str(&strvec, strdup("Hallo"));
  mx_strvec_push_str(&strvec, strdup("Bla"));
  mx_strvec_push_str(&strvec, strdup("lall"));
  assert(str = mx_strvec_join("XXX", strvec));
  assert(strcmp(str, "HalloXXXBlaXXXlall") == 0);
  free(str);
  assert(str = mx_strvec_join("", strvec));
  assert(strcmp(str, "HalloBlalall") == 0);
  free(str);
  mx_strvec_free(strvec);
  strvec = mx_strvec_new();
  assert(str = mx_strvec_join("XXX", strvec));
  assert(strcmp(str, "") == 0);
  free(str);
  mx_strvec_push_str(&strvec, strdup("A"));
  assert(str = mx_strvec_join("x", strvec));
  assert(strcmp(str, "A") == 0);
  free(str);
  mx_strvec_push_str(&strvec, strdup(""));
  assert(str = mx_strvec_join("x", strvec));
  assert(strcmp(str, "Ax") == 0);
  free(str);
  mx_strvec_push_str(&strvec, strdup("B"));
  assert(str = mx_strvec_join("x", strvec));
  assert(strcmp(str, "AxxB") == 0);
  free(str);
  mx_strvec_free(strvec);
}


x86 assembly (clang, -O0):
<test_mx_strvec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   10a0 <mx_strvec_new@plt>
cltq
mov    %rax,-0x8(%rbp)
lea    0xe64(%rip),%rdi
call   1070 <strdup@plt>
mov    %rax,%rsi
lea    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1080 <mx_strvec_push_str@plt>
lea    0xe50(%rip),%rdi
call   1070 <strdup@plt>
mov    %rax,%rsi
lea    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1080 <mx_strvec_push_str@plt>
lea    0xe4c(%rip),%rdi
call   1070 <strdup@plt>
mov    %rax,%rsi
lea    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1080 <mx_strvec_push_str@plt>
mov    -0x8(%rbp),%rsi
lea    0xe1c(%rip),%rdi
mov    $0x0,%al
call   1090 <mx_strvec_join@plt>
movslq %eax,%rdi
mov    %rdi,-0x10(%rbp)
mov    $0x0,%al
call   1050 <assert@plt>
mov    -0x10(%rbp),%rdi
lea    0xe00(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1050 <assert@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x8(%rbp),%rsi
lea    0xdf6(%rip),%rdi
mov    $0x0,%al
call   1090 <mx_strvec_join@plt>
movslq %eax,%rdi
mov    %rdi,-0x10(%rbp)
mov    $0x0,%al
call   1050 <assert@plt>
mov    -0x10(%rbp),%rdi
lea    0xdc8(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1050 <assert@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1060 <mx_strvec_free@plt>
mov    $0x0,%al
call   10a0 <mx_strvec_new@plt>
cltq
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xd6e(%rip),%rdi
mov    $0x0,%al
call   1090 <mx_strvec_join@plt>
movslq %eax,%rdi
mov    %rdi,-0x10(%rbp)
mov    $0x0,%al
call   1050 <assert@plt>
mov    -0x10(%rbp),%rdi
lea    0xd73(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1050 <assert@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
lea    0xd4b(%rip),%rdi
call   1070 <strdup@plt>
mov    %rax,%rsi
lea    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1080 <mx_strvec_push_str@plt>
mov    -0x8(%rbp),%rsi
lea    0xd30(%rip),%rdi
mov    $0x0,%al
call   1090 <mx_strvec_join@plt>
movslq %eax,%rdi
mov    %rdi,-0x10(%rbp)
mov    $0x0,%al
call   1050 <assert@plt>
mov    -0x10(%rbp),%rdi
lea    0xd0d(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1050 <assert@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
lea    0xce7(%rip),%rdi
call   1070 <strdup@plt>
mov    %rax,%rsi
lea    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1080 <mx_strvec_push_str@plt>
mov    -0x8(%rbp),%rsi
lea    0xccb(%rip),%rdi
mov    $0x0,%al
call   1090 <mx_strvec_join@plt>
movslq %eax,%rdi
mov    %rdi,-0x10(%rbp)
mov    $0x0,%al
call   1050 <assert@plt>
mov    -0x10(%rbp),%rdi
lea    0xcaa(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1050 <assert@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
lea    0xc89(%rip),%rdi
call   1070 <strdup@plt>
mov    %rax,%rsi
lea    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1080 <mx_strvec_push_str@plt>
mov    -0x8(%rbp),%rsi
lea    0xc66(%rip),%rdi
mov    $0x0,%al
call   1090 <mx_strvec_join@plt>
movslq %eax,%rdi
mov    %rdi,-0x10(%rbp)
mov    $0x0,%al
call   1050 <assert@plt>
mov    -0x10(%rbp),%rdi
lea    0xc48(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1050 <assert@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1060 <mx_strvec_free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_mx_strvec>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
xor    %eax,%eax
call   10a0 <mx_strvec_new@plt>
cltq
mov    %rax,0x8(%rsp)
lea    0xe5e(%rip),%rdi
call   1070 <strdup@plt>
lea    0x8(%rsp),%r15
mov    %r15,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1080 <mx_strvec_push_str@plt>
lea    0xe46(%rip),%rdi
call   1070 <strdup@plt>
mov    %r15,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1080 <mx_strvec_push_str@plt>
lea    0xe43(%rip),%rdi
call   1070 <strdup@plt>
mov    %r15,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1080 <mx_strvec_push_str@plt>
mov    0x8(%rsp),%rsi
lea    0xe13(%rip),%r12
mov    %r12,%rdi
xor    %eax,%eax
call   1090 <mx_strvec_join@plt>
movslq %eax,%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <assert@plt>
lea    0xdf9(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
xor    %eax,%eax
call   1050 <assert@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    0x8(%rsp),%rsi
lea    0xdef(%rip),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <mx_strvec_join@plt>
movslq %eax,%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <assert@plt>
lea    0xdc3(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
xor    %eax,%eax
call   1050 <assert@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    0x8(%rsp),%rdi
xor    %eax,%eax
call   1060 <mx_strvec_free@plt>
xor    %eax,%eax
call   10a0 <mx_strvec_new@plt>
movslq %eax,%rsi
mov    %rsi,0x8(%rsp)
mov    %r12,%rdi
xor    %eax,%eax
call   1090 <mx_strvec_join@plt>
movslq %eax,%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <assert@plt>
xor    %edi,%edi
cmpb   $0x0,(%rbx)
sete   %dil
xor    %eax,%eax
call   1050 <assert@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
lea    0xd60(%rip),%r13
mov    %r13,%rdi
call   1070 <strdup@plt>
mov    %r15,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1080 <mx_strvec_push_str@plt>
mov    0x8(%rsp),%rsi
lea    0xd42(%rip),%r12
mov    %r12,%rdi
xor    %eax,%eax
call   1090 <mx_strvec_join@plt>
movslq %eax,%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <assert@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1040 <strcmp@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
xor    %eax,%eax
call   1050 <assert@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1070 <strdup@plt>
mov    %r15,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1080 <mx_strvec_push_str@plt>
mov    0x8(%rsp),%rsi
mov    %r12,%rdi
xor    %eax,%eax
call   1090 <mx_strvec_join@plt>
movslq %eax,%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <assert@plt>
lea    0xcd0(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
xor    %eax,%eax
call   1050 <assert@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
lea    0xcb0(%rip),%rdi
call   1070 <strdup@plt>
mov    %r15,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1080 <mx_strvec_push_str@plt>
mov    0x8(%rsp),%rsi
mov    %r12,%rdi
xor    %eax,%eax
call   1090 <mx_strvec_join@plt>
movslq %eax,%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <assert@plt>
lea    0xc78(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
xor    %eax,%eax
call   1050 <assert@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    0x8(%rsp),%rdi
xor    %eax,%eax
call   1060 <mx_strvec_free@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [6 x i8] c"Hallo\00"
@.str.1 = [4 x i8] c"Bla\00"
@.str.2 = [5 x i8] c"lall\00"
@.str.3 = [4 x i8] c"XXX\00"
@.str.4 = [19 x i8] c"HalloXXXBlaXXXlall\00"
@.str.5 = [1 x i8] zeroinitializer
@.str.6 = [13 x i8] c"HalloBlalall\00"
@.str.7 = [2 x i8] c"A\00"
@.str.8 = [2 x i8] c"x\00"
@.str.9 = [3 x i8] c"Ax\00"
@.str.10 = [2 x i8] c"B\00"
@.str.11 = [5 x i8] c"AxxB\00"
define void @test_mx_strvec() {
%1 = alloca i8**
%2 = alloca i8*
%3 = call i32 (...) @mx_strvec_new()
%4 = sext i32 %3 to i64
%5 = inttoptr i64 %4 to i8**
store i8** %5, i8*** %1
%6 = call i8* @strdup(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @mx_strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %1, i8* %6)
%8 = call i8* @strdup(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @mx_strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %1, i8* %8)
%10 = call i8* @strdup(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @mx_strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %1, i8* %10)
%12 = load i8**, i8*** %1
%13 = call i32 (i8*, i8**, ...) bitcast (i32 (...)* @mx_strvec_join to i32 (i8*, i8**, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8** %12)
%14 = sext i32 %13 to i64
%15 = inttoptr i64 %14 to i8*
store i8* %15, i8** %2
%16 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %15)
%17 = load i8*, i8** %2
%18 = call i32 @strcmp(i8* %17, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%19 = icmp eq i32 %18, 0
%20 = zext i1 %19 to i32
%21 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %20)
%22 = load i8*, i8** %2
%23 = load i8**, i8*** %1
%24 = call i32 (i8*, i8**, ...) bitcast (i32 (...)* @mx_strvec_join to i32 (i8*, i8**, ...)*)(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0), i8** %23)
%25 = sext i32 %24 to i64
%26 = inttoptr i64 %25 to i8*
store i8* %26, i8** %2
%27 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %26)
%28 = load i8*, i8** %2
%29 = call i32 @strcmp(i8* %28, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%30 = icmp eq i32 %29, 0
%31 = zext i1 %30 to i32
%32 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %31)
%33 = load i8*, i8** %2
%34 = load i8**, i8*** %1
%35 = call i32 (i8**, ...) bitcast (i32 (...)* @mx_strvec_free to i32 (i8**, ...)*)(i8** %34)
%36 = call i32 (...) @mx_strvec_new()
%37 = sext i32 %36 to i64
%38 = inttoptr i64 %37 to i8**
store i8** %38, i8*** %1
%39 = load i8**, i8*** %1
%40 = call i32 (i8*, i8**, ...) bitcast (i32 (...)* @mx_strvec_join to i32 (i8*, i8**, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8** %39)
%41 = sext i32 %40 to i64
%42 = inttoptr i64 %41 to i8*
store i8* %42, i8** %2
%43 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %42)
%44 = load i8*, i8** %2
%45 = call i32 @strcmp(i8* %44, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0))
%46 = icmp eq i32 %45, 0
%47 = zext i1 %46 to i32
%48 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %47)
%49 = load i8*, i8** %2
%50 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%51 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @mx_strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %1, i8* %50)
%52 = load i8**, i8*** %1
%53 = call i32 (i8*, i8**, ...) bitcast (i32 (...)* @mx_strvec_join to i32 (i8*, i8**, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i8** %52)
%54 = sext i32 %53 to i64
%55 = inttoptr i64 %54 to i8*
store i8* %55, i8** %2
%56 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %55)
%57 = load i8*, i8** %2
%58 = call i32 @strcmp(i8* %57, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%59 = icmp eq i32 %58, 0
%60 = zext i1 %59 to i32
%61 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %60)
%62 = load i8*, i8** %2
%63 = call i8* @strdup(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0))
%64 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @mx_strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %1, i8* %63)
%65 = load i8**, i8*** %1
%66 = call i32 (i8*, i8**, ...) bitcast (i32 (...)* @mx_strvec_join to i32 (i8*, i8**, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i8** %65)
%67 = sext i32 %66 to i64
%68 = inttoptr i64 %67 to i8*
store i8* %68, i8** %2
%69 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %68)
%70 = load i8*, i8** %2
%71 = call i32 @strcmp(i8* %70, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%72 = icmp eq i32 %71, 0
%73 = zext i1 %72 to i32
%74 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %73)
%75 = load i8*, i8** %2
%76 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%77 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @mx_strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %1, i8* %76)
%78 = load i8**, i8*** %1
%79 = call i32 (i8*, i8**, ...) bitcast (i32 (...)* @mx_strvec_join to i32 (i8*, i8**, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i8** %78)
%80 = sext i32 %79 to i64
%81 = inttoptr i64 %80 to i8*
store i8* %81, i8** %2
%82 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %81)
%83 = load i8*, i8** %2
%84 = call i32 @strcmp(i8* %83, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%85 = icmp eq i32 %84, 0
%86 = zext i1 %85 to i32
%87 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %86)
%88 = load i8*, i8** %2
%89 = load i8**, i8*** %1
%90 = call i32 (i8**, ...) bitcast (i32 (...)* @mx_strvec_free to i32 (i8**, ...)*)(i8** %89)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"Hallo\00"
@.str.1 = [4 x i8] c"Bla\00"
@.str.2 = [5 x i8] c"lall\00"
@.str.3 = [4 x i8] c"XXX\00"
@.str.4 = [19 x i8] c"HalloXXXBlaXXXlall\00"
@.str.5 = [1 x i8] zeroinitializer
@.str.6 = [13 x i8] c"HalloBlalall\00"
@.str.7 = [2 x i8] c"A\00"
@.str.8 = [2 x i8] c"x\00"
@.str.9 = [3 x i8] c"Ax\00"
@.str.10 = [2 x i8] c"B\00"
@.str.11 = [5 x i8] c"AxxB\00"
define void @test_mx_strvec() {
%1 = alloca i8**
%2 = bitcast i8*** %1 to i8*
%3 = tail call i32 (...) @mx_strvec_new()
%4 = sext i32 %3 to i64
%5 = inttoptr i64 %4 to i8**
store i8** %5, i8*** %1
%6 = tail call dereferenceable_or_null(6) i8* @strdup(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @mx_strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %1, i8* %6)
%8 = call dereferenceable_or_null(4) i8* @strdup(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @mx_strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %1, i8* %8)
%10 = call dereferenceable_or_null(5) i8* @strdup(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @mx_strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %1, i8* %10)
%12 = load i8**, i8*** %1
%13 = call i32 (i8*, i8**, ...) bitcast (i32 (...)* @mx_strvec_join to i32 (i8*, i8**, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8** %12)
%14 = sext i32 %13 to i64
%15 = inttoptr i64 %14 to i8*
%16 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %15)
%17 = call i32 @strcmp(i8* dereferenceable(1) %15, i8* dereferenceable(19) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%18 = icmp eq i32 %17, 0
%19 = zext i1 %18 to i32
%20 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %19)
%21 = load i8**, i8*** %1
%22 = call i32 (i8*, i8**, ...) bitcast (i32 (...)* @mx_strvec_join to i32 (i8*, i8**, ...)*)(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0), i8** %21)
%23 = sext i32 %22 to i64
%24 = inttoptr i64 %23 to i8*
%25 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %24)
%26 = call i32 @strcmp(i8* dereferenceable(1) %24, i8* dereferenceable(13) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%27 = icmp eq i32 %26, 0
%28 = zext i1 %27 to i32
%29 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %28)
%30 = load i8**, i8*** %1
%31 = call i32 (i8**, ...) bitcast (i32 (...)* @mx_strvec_free to i32 (i8**, ...)*)(i8** %30)
%32 = call i32 (...) @mx_strvec_new()
%33 = sext i32 %32 to i64
%34 = inttoptr i64 %33 to i8**
store i8** %34, i8*** %1
%35 = call i32 (i8*, i8**, ...) bitcast (i32 (...)* @mx_strvec_join to i32 (i8*, i8**, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8** %34)
%36 = sext i32 %35 to i64
%37 = inttoptr i64 %36 to i8*
%38 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %37)
%39 = load i8, i8* %37
%40 = icmp eq i8 %39, 0
%41 = zext i1 %40 to i32
%42 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %41)
%43 = call dereferenceable_or_null(2) i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%44 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @mx_strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %1, i8* %43)
%45 = load i8**, i8*** %1
%46 = call i32 (i8*, i8**, ...) bitcast (i32 (...)* @mx_strvec_join to i32 (i8*, i8**, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i8** %45)
%47 = sext i32 %46 to i64
%48 = inttoptr i64 %47 to i8*
%49 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %48)
%50 = call i32 @strcmp(i8* dereferenceable(1) %48, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%51 = icmp eq i32 %50, 0
%52 = zext i1 %51 to i32
%53 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %52)
%54 = call dereferenceable_or_null(1) i8* @strdup(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0))
%55 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @mx_strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %1, i8* %54)
%56 = load i8**, i8*** %1
%57 = call i32 (i8*, i8**, ...) bitcast (i32 (...)* @mx_strvec_join to i32 (i8*, i8**, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i8** %56)
%58 = sext i32 %57 to i64
%59 = inttoptr i64 %58 to i8*
%60 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %59)
%61 = call i32 @strcmp(i8* dereferenceable(1) %59, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%62 = icmp eq i32 %61, 0
%63 = zext i1 %62 to i32
%64 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %63)
%65 = call dereferenceable_or_null(2) i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%66 = call i32 (i8***, i8*, ...) bitcast (i32 (...)* @mx_strvec_push_str to i32 (i8***, i8*, ...)*)(i8*** %1, i8* %65)
%67 = load i8**, i8*** %1
%68 = call i32 (i8*, i8**, ...) bitcast (i32 (...)* @mx_strvec_join to i32 (i8*, i8**, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i8** %67)
%69 = sext i32 %68 to i64
%70 = inttoptr i64 %69 to i8*
%71 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %70)
%72 = call i32 @strcmp(i8* dereferenceable(1) %70, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%73 = icmp eq i32 %72, 0
%74 = zext i1 %73 to i32
%75 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %74)
%76 = load i8**, i8*** %1
%77 = call i32 (i8**, ...) bitcast (i32 (...)* @mx_strvec_free to i32 (i8**, ...)*)(i8** %76)
ret void
}