#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 *);
int /*<<< orphan*/ printf(char *, ...);
char *strdup(char *);
int unique_name_vector(char *, char, char **, int);
int main(void) {
  char *vector[20];
  char *names;
  int count;
  int i;
  names = strdup(",,,a,b,a,X,ne,blah,A,z,#foo,&Bar,foo,,crud,Foo,z,x,bzet,,");
  printf("input: %s\n", names);
  count = unique_name_vector(names, ',', vector, 20);
  printf("count: %d\n", count);
  printf("output:");
  for (i = 0; i < count; ++i)
    printf(" %s", vector[i]);
  printf("\n");
  free(names);
  names = strdup("foo");
  printf("input: %s\n", names);
  count = unique_name_vector(names, ',', vector, 20);
  printf("count: %d\n", count);
  printf("output:");
  for (i = 0; i < count; ++i)
    printf(" %s", vector[i]);
  printf("\n");
  free(names);
  names = strdup("");
  printf("input: %s\n", names);
  count = unique_name_vector(names, ',', vector, 20);
  printf("count: %d\n", count);
  printf("output:");
  for (i = 0; i < count; ++i)
    printf(" %s", vector[i]);
  printf("\n");
  free(names);
  names = strdup("a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z");
  printf("input: %s\n", names);
  count = unique_name_vector(names, ',', vector, 20);
  printf("count: %d\n", count);
  printf("output:");
  for (i = 0; i < count; ++i)
    printf(" %s", vector[i]);
  printf("\n");
  free(names);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xea7(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,-0xb8(%rbp)
mov    -0xb8(%rbp),%rsi
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xb8(%rbp),%rdi
lea    -0xb0(%rbp),%rdx
mov    $0x2c,%esi
mov    $0x14,%ecx
call   1040 <unique_name_vector@plt>
mov    %eax,-0xbc(%rbp)
mov    -0xbc(%rbp),%esi
lea    0xe9b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0xc0(%rbp)
mov    -0xc0(%rbp),%eax
cmp    -0xbc(%rbp),%eax
jge    120c <main+0xcc>
movslq -0xc0(%rbp),%rax
mov    -0xb0(%rbp,%rax,8),%rsi
ff
lea    0xe67(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xc0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc0(%rbp)
jmp    11c9 <main+0x89>
lea    0xe3b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xb8(%rbp),%rdi
call   1030 <free@plt>
lea    0xe2f(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,-0xb8(%rbp)
mov    -0xb8(%rbp),%rsi
lea    0xdf3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xb8(%rbp),%rdi
lea    -0xb0(%rbp),%rdx
mov    $0x2c,%esi
mov    $0x14,%ecx
call   1040 <unique_name_vector@plt>
mov    %eax,-0xbc(%rbp)
mov    -0xbc(%rbp),%esi
lea    0xdc7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xdc4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0xc0(%rbp)
mov    -0xc0(%rbp),%eax
cmp    -0xbc(%rbp),%eax
jge    12e0 <main+0x1a0>
movslq -0xc0(%rbp),%rax
mov    -0xb0(%rbp,%rax,8),%rsi
ff
lea    0xd93(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xc0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc0(%rbp)
jmp    129d <main+0x15d>
lea    0xd67(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xb8(%rbp),%rdi
call   1030 <free@plt>
lea    0xd4e(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,-0xb8(%rbp)
mov    -0xb8(%rbp),%rsi
lea    0xd1f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xb8(%rbp),%rdi
lea    -0xb0(%rbp),%rdx
mov    $0x2c,%esi
mov    $0x14,%ecx
call   1040 <unique_name_vector@plt>
mov    %eax,-0xbc(%rbp)
mov    -0xbc(%rbp),%esi
lea    0xcf3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xcf0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0xc0(%rbp)
mov    -0xc0(%rbp),%eax
cmp    -0xbc(%rbp),%eax
jge    13b4 <main+0x274>
movslq -0xc0(%rbp),%rax
mov    -0xb0(%rbp,%rax,8),%rsi
ff
lea    0xcbf(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xc0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc0(%rbp)
jmp    1371 <main+0x231>
lea    0xc93(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xb8(%rbp),%rdi
call   1030 <free@plt>
lea    0xc8b(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,-0xb8(%rbp)
mov    -0xb8(%rbp),%rsi
lea    0xc4b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xb8(%rbp),%rdi
lea    -0xb0(%rbp),%rdx
mov    $0x2c,%esi
mov    $0x14,%ecx
call   1040 <unique_name_vector@plt>
mov    %eax,-0xbc(%rbp)
mov    -0xbc(%rbp),%esi
lea    0xc1f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xc1c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0xc0(%rbp)
mov    -0xc0(%rbp),%eax
cmp    -0xbc(%rbp),%eax
jge    1488 <main+0x348>
movslq -0xc0(%rbp),%rax
mov    -0xb0(%rbp,%rax,8),%rsi
ff
lea    0xbeb(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xc0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc0(%rbp)
jmp    1445 <main+0x305>
lea    0xbbf(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xb8(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0xa8,%rsp
lea    0xe9c(%rip),%rdi
call   1070 <strdup@plt>
mov    %rax,%r14
lea    0xec7(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rsp,%rdx
mov    %r14,%rdi
mov    $0x2c,%esi
mov    $0x14,%ecx
call   1050 <unique_name_vector@plt>
mov    %eax,%ebp
lea    0xeaa(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xea5(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
test   %ebp,%ebp
jle    11e7 <main+0x97>
mov    %ebp,%ebx
lea    0xe99(%rip),%r15
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%rsp,%rbp,8),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    11d0 <main+0x80>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %r14,%rdi
call   1030 <free@plt>
lea    0xe5c(%rip),%rdi
call   1070 <strdup@plt>
mov    %rax,%r14
lea    0xe2b(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rsp,%rdx
mov    %r14,%rdi
mov    $0x2c,%esi
mov    $0x14,%ecx
call   1050 <unique_name_vector@plt>
mov    %eax,%ebp
lea    0xe0e(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe09(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
test   %ebp,%ebp
jle    1277 <main+0x127>
mov    %ebp,%ebx
lea    0xdfd(%rip),%r15
xor    %ebp,%ebp
nopl   (%rax)
mov    (%rsp,%rbp,8),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1260 <main+0x110>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %r14,%rdi
call   1030 <free@plt>
lea    0xdbf(%rip),%rdi
call   1070 <strdup@plt>
mov    %rax,%r14
lea    0xd9b(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rsp,%rdx
mov    %r14,%rdi
mov    $0x2c,%esi
mov    $0x14,%ecx
call   1050 <unique_name_vector@plt>
mov    %eax,%ebp
lea    0xd7e(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd79(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
test   %ebp,%ebp
jle    1307 <main+0x1b7>
mov    %ebp,%ebx
lea    0xd6d(%rip),%r15
xor    %ebp,%ebp
nopl   (%rax)
mov    (%rsp,%rbp,8),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    12f0 <main+0x1a0>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %r14,%rdi
call   1030 <free@plt>
lea    0xd40(%rip),%rdi
call   1070 <strdup@plt>
mov    %rax,%r14
lea    0xd0b(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rsp,%rdx
mov    %r14,%rdi
mov    $0x2c,%esi
mov    $0x14,%ecx
call   1050 <unique_name_vector@plt>
mov    %eax,%ebp
lea    0xcee(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xce9(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
test   %ebp,%ebp
jle    1397 <main+0x247>
mov    %ebp,%ebx
lea    0xcdd(%rip),%r15
xor    %ebp,%ebp
nopl   (%rax)
mov    (%rsp,%rbp,8),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1380 <main+0x230>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %r14,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0xa8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [58 x i8] c",,,a,b,a,X,ne,blah,A,z,#foo,&Bar,foo,,crud,Foo,z,x,bzet,,\00"
@.str.1 = [11 x i8] c"input: %s\0A\00"
@.str.2 = [11 x i8] c"count: %d\0A\00"
@.str.3 = [8 x i8] c"output:\00"
@.str.4 = [4 x i8] c" %s\00"
@.str.5 = [2 x i8] c"\0A\00"
@.str.6 = [4 x i8] c"foo\00"
@.str.7 = [1 x i8] zeroinitializer
@.str.8 = [52 x i8] c"a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [20 x i8*]
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = call i8* @strdup(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0))
store i8* %6, i8** %3
%7 = load i8*, i8** %3
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %7)
%9 = load i8*, i8** %3
%10 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 0
%11 = call i32 @unique_name_vector(i8* %9, i8 signext 44, i8** %10, i32 20)
store i32 %11, i32* %4
%12 = load i32, i32* %4
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 %12)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %5
br label %15
15: ; preds = %25, %0
%16 = load i32, i32* %5
%17 = load i32, i32* %4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %28
19: ; preds = %15
%20 = load i32, i32* %5
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 %21
%23 = load i8*, i8** %22
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %23)
br label %25
25: ; preds = %19
%26 = load i32, i32* %5
%27 = add nsw i32 %26, 1
store i32 %27, i32* %5
br label %15
28: ; preds = %15
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%30 = load i8*, i8** %3
%31 = call i32 @free(i8* %30)
%32 = call i8* @strdup(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
store i8* %32, i8** %3
%33 = load i8*, i8** %3
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %33)
%35 = load i8*, i8** %3
%36 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 0
%37 = call i32 @unique_name_vector(i8* %35, i8 signext 44, i8** %36, i32 20)
store i32 %37, i32* %4
%38 = load i32, i32* %4
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 %38)
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %5
br label %41
41: ; preds = %51, %28
%42 = load i32, i32* %5
%43 = load i32, i32* %4
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %54
45: ; preds = %41
%46 = load i32, i32* %5
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 %47
%49 = load i8*, i8** %48
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %49)
br label %51
51: ; preds = %45
%52 = load i32, i32* %5
%53 = add nsw i32 %52, 1
store i32 %53, i32* %5
br label %41
54: ; preds = %41
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%56 = load i8*, i8** %3
%57 = call i32 @free(i8* %56)
%58 = call i8* @strdup(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0))
store i8* %58, i8** %3
%59 = load i8*, i8** %3
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %59)
%61 = load i8*, i8** %3
%62 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 0
%63 = call i32 @unique_name_vector(i8* %61, i8 signext 44, i8** %62, i32 20)
store i32 %63, i32* %4
%64 = load i32, i32* %4
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 %64)
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %5
br label %67
67: ; preds = %77, %54
%68 = load i32, i32* %5
%69 = load i32, i32* %4
%70 = icmp slt i32 %68, %69
br i1 %70, label %71, label %80
71: ; preds = %67
%72 = load i32, i32* %5
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 %73
%75 = load i8*, i8** %74
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %75)
br label %77
77: ; preds = %71
%78 = load i32, i32* %5
%79 = add nsw i32 %78, 1
store i32 %79, i32* %5
br label %67
80: ; preds = %67
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%82 = load i8*, i8** %3
%83 = call i32 @free(i8* %82)
%84 = call i8* @strdup(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.8, i64 0, i64 0))
store i8* %84, i8** %3
%85 = load i8*, i8** %3
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %85)
%87 = load i8*, i8** %3
%88 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 0
%89 = call i32 @unique_name_vector(i8* %87, i8 signext 44, i8** %88, i32 20)
store i32 %89, i32* %4
%90 = load i32, i32* %4
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 %90)
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %5
br label %93
93: ; preds = %103, %80
%94 = load i32, i32* %5
%95 = load i32, i32* %4
%96 = icmp slt i32 %94, %95
br i1 %96, label %97, label %106
97: ; preds = %93
%98 = load i32, i32* %5
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [20 x i8*], [20 x i8*]* %2, i64 0, i64 %99
%101 = load i8*, i8** %100
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %101)
br label %103
103: ; preds = %97
%104 = load i32, i32* %5
%105 = add nsw i32 %104, 1
store i32 %105, i32* %5
br label %93
106: ; preds = %93
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%108 = load i8*, i8** %3
%109 = call i32 @free(i8* %108)
ret i32 0
}

LLVM IR (-O2):
@.str = [58 x i8] c",,,a,b,a,X,ne,blah,A,z,#foo,&Bar,foo,,crud,Foo,z,x,bzet,,\00"
@.str.1 = [11 x i8] c"input: %s\0A\00"
@.str.2 = [11 x i8] c"count: %d\0A\00"
@.str.3 = [8 x i8] c"output:\00"
@.str.4 = [4 x i8] c" %s\00"
@.str.6 = [4 x i8] c"foo\00"
@.str.7 = [1 x i8] zeroinitializer
@.str.8 = [52 x i8] c"a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z\00"
define i32 @main() {
%1 = alloca [20 x i8*]
%2 = bitcast [20 x i8*]* %1 to i8*
%3 = tail call dereferenceable_or_null(58) i8* @strdup(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%5 = getelementptr inbounds [20 x i8*], [20 x i8*]* %1, i64 0, i64 0
%6 = call i32 @unique_name_vector(i8* %3, i8 signext 44, i8** %5, i32 20)
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 %6)
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%9 = icmp sgt i32 %6, 0
br i1 %9, label %10, label %19
10: ; preds = %0
%11 = zext i32 %6 to i64
br label %12
12: ; preds = %10, %12
%13 = phi i64 [ 0, %10 ], [ %17, %12 ]
%14 = getelementptr inbounds [20 x i8*], [20 x i8*]* %1, i64 0, i64 %13
%15 = load i8*, i8** %14
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %15)
%17 = add nuw nsw i64 %13, 1
%18 = icmp eq i64 %17, %11
br i1 %18, label %19, label %12
19: ; preds = %12, %0
%20 = call i32 @putchar(i32 10)
%21 = call i32 @free(i8* %3)
%22 = call dereferenceable_or_null(4) i8* @strdup(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %22)
%24 = call i32 @unique_name_vector(i8* %22, i8 signext 44, i8** %5, i32 20)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 %24)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%27 = icmp sgt i32 %24, 0
br i1 %27, label %28, label %37
28: ; preds = %19
%29 = zext i32 %24 to i64
br label %30
30: ; preds = %28, %30
%31 = phi i64 [ 0, %28 ], [ %35, %30 ]
%32 = getelementptr inbounds [20 x i8*], [20 x i8*]* %1, i64 0, i64 %31
%33 = load i8*, i8** %32
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %33)
%35 = add nuw nsw i64 %31, 1
%36 = icmp eq i64 %35, %29
br i1 %36, label %37, label %30
37: ; preds = %30, %19
%38 = call i32 @putchar(i32 10)
%39 = call i32 @free(i8* %22)
%40 = call dereferenceable_or_null(1) i8* @strdup(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0))
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %40)
%42 = call i32 @unique_name_vector(i8* %40, i8 signext 44, i8** %5, i32 20)
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 %42)
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%45 = icmp sgt i32 %42, 0
br i1 %45, label %46, label %55
46: ; preds = %37
%47 = zext i32 %42 to i64
br label %48
48: ; preds = %46, %48
%49 = phi i64 [ 0, %46 ], [ %53, %48 ]
%50 = getelementptr inbounds [20 x i8*], [20 x i8*]* %1, i64 0, i64 %49
%51 = load i8*, i8** %50
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %51)
%53 = add nuw nsw i64 %49, 1
%54 = icmp eq i64 %53, %47
br i1 %54, label %55, label %48
55: ; preds = %48, %37
%56 = call i32 @putchar(i32 10)
%57 = call i32 @free(i8* %40)
%58 = call dereferenceable_or_null(52) i8* @strdup(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.8, i64 0, i64 0))
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %58)
%60 = call i32 @unique_name_vector(i8* %58, i8 signext 44, i8** %5, i32 20)
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 %60)
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%63 = icmp sgt i32 %60, 0
br i1 %63, label %64, label %73
64: ; preds = %55
%65 = zext i32 %60 to i64
br label %66
66: ; preds = %64, %66
%67 = phi i64 [ 0, %64 ], [ %71, %66 ]
%68 = getelementptr inbounds [20 x i8*], [20 x i8*]* %1, i64 0, i64 %67
%69 = load i8*, i8** %68
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %69)
%71 = add nuw nsw i64 %67, 1
%72 = icmp eq i64 %71, %65
br i1 %72, label %73, label %66
73: ; preds = %66, %55
%74 = call i32 @putchar(i32 10)
%75 = call i32 @free(i8* %58)
ret i32 0
}