#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 MAXPATHLEN;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ sprintf(char *, char *, ...);
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
void write_packagedata(char **names, int *npackages) {
  int start = 1;
  int pos = 0;
  char line[MAXPATHLEN];
  int nlines = 0;
  int linetype = 0;
  int maxlinelength = 0;
  int len = 0;
  int do_write = 0;
  while (names[pos]) {
    if (start) {
      fprintf(stdout, "\n");
      ++(*npackages);
      if (*npackages == 1)
        strcpy(line, "pkgdata_DATA =");
      else
        sprintf(line, "pkgdata%d_DATA =", *npackages);
      linetype = 0;
      start = 0;
      do_write = 1;
    }
    if (linetype == 0)
      maxlinelength = 76;
    else
      maxlinelength = 76 - 8;
    len = strlen(line);
    if (len + strlen(names[pos]) < maxlinelength) {
      strcat(line, " ");
      strcat(line, names[pos++]);
    } else {
      if (!names[pos + 1]) {
        strcat(line, " \\");
        fprintf(stdout, "%s\n", line);
        fprintf(stdout, "\t%s\n", names[pos++]);
        do_write = 0;
        continue;
      }
      if (nlines == 20) {
        fprintf(stdout, "%s\n", line);
        start = 1;
        nlines = 0;
        continue;
      }
      strcat(line, " \\");
      linetype = 1;
      fprintf(stdout, "%s\n", line);
      sprintf(line, "\t%s", names[pos++]);
      ++nlines;
    }
  }
  if (do_write)
    fprintf(stdout, "%s\n", line);
  return;
}


x86 assembly (clang, -O0):
<write_packagedata>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    0x2e73(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x48(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     13eb <write_packagedata+0x29b>
cmpl   $0x0,-0x14(%rbp)
je     124b <write_packagedata+0xfb>
mov    0x2df7(%rip),%rax
mov    (%rax),%edi
lea    0xe3e(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
cmpl   $0x1,(%rax)
jne    121e <write_packagedata+0xce>
mov    -0x48(%rbp),%rdi
lea    0xdec(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1236 <write_packagedata+0xe6>
mov    -0x48(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%edx
lea    0xde0(%rip),%rsi
mov    $0x0,%al
call   1070 <sprintf@plt>
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x1,-0x3c(%rbp)
cmpl   $0x0,-0x30(%rbp)
jne    1261 <write_packagedata+0x111>
movl   $0x4c,-0x34(%rbp)
jmp    1268 <write_packagedata+0x118>
movl   $0x44,-0x34(%rbp)
mov    -0x48(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x4c(%rbp),%eax
add    %ecx,%eax
cmp    -0x34(%rbp),%eax
jge    12cf <write_packagedata+0x17f>
mov    -0x48(%rbp),%rdi
lea    0xd7a(%rip),%rsi
call   1060 <strcat@plt>
mov    -0x48(%rbp),%rdi
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x18(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
call   1060 <strcat@plt>
jmp    13e6 <write_packagedata+0x296>
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
cmpq   $0x0,(%rax,%rcx,8)
jne    134b <write_packagedata+0x1fb>
mov    -0x48(%rbp),%rdi
lea    0xd30(%rip),%rsi
call   1060 <strcat@plt>
mov    -0x48(%rbp),%rdx
mov    0x2cd6(%rip),%rax
mov    (%rax),%edi
lea    0xd1b(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2cbf(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x18(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xced(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x3c(%rbp)
jmp    11bd <write_packagedata+0x6d>
cmpl   $0x14,-0x2c(%rbp)
jne    1383 <write_packagedata+0x233>
mov    -0x48(%rbp),%rdx
mov    0x2c78(%rip),%rax
mov    (%rax),%edi
lea    0xcbd(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x1,-0x14(%rbp)
movl   $0x0,-0x2c(%rbp)
jmp    11bd <write_packagedata+0x6d>
mov    -0x48(%rbp),%rdi
lea    0xc94(%rip),%rsi
call   1060 <strcat@plt>
mov    -0x48(%rbp),%rdx
movl   $0x1,-0x30(%rbp)
mov    0x2c33(%rip),%rax
mov    (%rax),%edi
lea    0xc78(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x48(%rbp),%rdi
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x18(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xc54(%rip),%rsi
mov    $0x0,%al
call   1070 <sprintf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11bd <write_packagedata+0x6d>
cmpl   $0x0,-0x3c(%rbp)
je     1410 <write_packagedata+0x2c0>
mov    -0x48(%rbp),%rdx
mov    0x2bd8(%rip),%rax
mov    (%rax),%edi
lea    0xc1d(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_packagedata>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,-0x50(%rbp)
mov    0x2e7c(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rbx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
cmpq   $0x0,(%rdi)
je     139b <write_packagedata+0x24b>
mov    %rdi,-0x48(%rbp)
mov    %rdi,-0x40(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
xor    %r13d,%r13d
xor    %eax,%eax
movl   $0x0,-0x34(%rbp)
jmp    1209 <write_packagedata+0xb9>
nopl   (%rax)
mov    %rbx,%rdi
lea    0xe68(%rip),%rsi
call   1060 <strcat@plt>
mov    0x2e12(%rip),%rax
mov    (%rax),%edi
lea    0xe57(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r12),%rdx
mov    %rbx,%rdi
lea    0xe43(%rip),%rsi
xor    %eax,%eax
call   1070 <sprintf@plt>
add    $0x1,%r13d
movl   $0x1,-0x30(%rbp)
mov    $0x1,%al
mov    -0x40(%rbp),%rcx
cmpq   $0x0,(%rcx)
je     137b <write_packagedata+0x22b>
mov    -0x40(%rbp),%r12
mov    -0x34(%rbp),%edx
mov    %edx,%ecx
add    $0x1,%edx
mov    %edx,-0x34(%rbp)
mov    -0x48(%rbp),%rdx
lea    (%rdx,%rcx,8),%rcx
add    $0x8,%rcx
mov    %rcx,-0x40(%rbp)
nopl   0x0(%rax,%rax,1)
test   $0x1,%al
je     1250 <write_packagedata+0x100>
mov    $0x44,%r14d
cmpl   $0x0,-0x30(%rbp)
jne    12a9 <write_packagedata+0x159>
jmp    129c <write_packagedata+0x14c>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x2d81(%rip),%rax
mov    (%rax),%edi
lea    0xdc8(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    -0x50(%rbp),%rcx
mov    (%rcx),%eax
lea    0x1(%rax),%edx
mov    %edx,(%rcx)
mov    %rbx,%rdi
test   %eax,%eax
je     1289 <write_packagedata+0x139>
lea    0xd8f(%rip),%rsi
xor    %eax,%eax
call   1070 <sprintf@plt>
jmp    1295 <write_packagedata+0x145>
lea    0xd70(%rip),%rsi
call   1030 <strcpy@plt>
movl   $0x1,-0x2c(%rbp)
mov    $0x4c,%r14d
movl   $0x0,-0x30(%rbp)
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    %eax,%r15d
mov    (%r12),%rdi
call   1040 <strlen@plt>
add    %r15d,%eax
cmp    %r14d,%eax
jl     1310 <write_packagedata+0x1c0>
mov    -0x40(%rbp),%rax
cmpq   $0x0,(%rax)
je     1330 <write_packagedata+0x1e0>
cmp    $0x14,%r13d
jne    11b0 <write_packagedata+0x60>
mov    0x2cf8(%rip),%rax
mov    (%rax),%edi
xor    %r13d,%r13d
lea    0xd3a(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
cmpq   $0x0,(%r12)
mov    $0x0,%eax
jne    1230 <write_packagedata+0xe0>
jmp    137b <write_packagedata+0x22b>
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
lea    0xd06(%rip),%rsi
call   1060 <strcat@plt>
mov    (%r12),%rsi
mov    %rbx,%rdi
call   1060 <strcat@plt>
jmp    11f9 <write_packagedata+0xa9>
mov    %rbx,%rdi
lea    0xce8(%rip),%rsi
call   1060 <strcat@plt>
mov    0x2c92(%rip),%r14
mov    (%r14),%edi
movl   $0x0,-0x2c(%rbp)
lea    0xccf(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r14),%edi
mov    (%r12),%rdx
lea    0xcb6(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    11f9 <write_packagedata+0xa9>
cmpl   $0x0,-0x2c(%rbp)
je     139b <write_packagedata+0x24b>
mov    0x2c50(%rip),%rax
mov    (%rax),%edi
lea    0xc95(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@MAXPATHLEN = global i32 0
@stdout = global i32 0
@.str = [2 x i8] c"\0A\00"
@.str.1 = [15 x i8] c"pkgdata_DATA =\00"
@.str.2 = [17 x i8] c"pkgdata%d_DATA =\00"
@.str.3 = [2 x i8] c" \00"
@.str.4 = [3 x i8] c" \\\00"
@.str.5 = [4 x i8] c"%s\0A\00"
@.str.6 = [5 x i8] c"\09%s\0A\00"
@.str.7 = [4 x i8] c"\09%s\00"
define void @write_packagedata(i8** %0, i32* %1) {
%3 = alloca i8**
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i8** %0, i8*** %3
store i32* %1, i32** %4
store i32 1, i32* %5
store i32 0, i32* %6
%14 = load i32, i32* @MAXPATHLEN
%15 = zext i32 %14 to i64
%16 = call i8* @llvm.stacksave()
store i8* %16, i8** %7
%17 = alloca i8, i64 %15
store i64 %15, i64* %8
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
store i32 0, i32* %12
store i32 0, i32* %13
br label %18
18: ; preds = %109, %93, %78, %2
%19 = load i8**, i8*** %3
%20 = load i32, i32* %6
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8*, i8** %19, i64 %21
%23 = load i8*, i8** %22
%24 = icmp ne i8* %23, null
br i1 %24, label %25, label %110
25: ; preds = %18
%26 = load i32, i32* %5
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %44
28: ; preds = %25
%29 = load i32, i32* @stdout
%30 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%31 = load i32*, i32** %4
%32 = load i32, i32* %31
%33 = add nsw i32 %32, 1
store i32 %33, i32* %31
%34 = load i32*, i32** %4
%35 = load i32, i32* %34
%36 = icmp eq i32 %35, 1
br i1 %36, label %37, label %39
37: ; preds = %28
%38 = call i32 @strcpy(i8* %17, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %43
39: ; preds = %28
%40 = load i32*, i32** %4
%41 = load i32, i32* %40
%42 = call i32 (i8*, i8*, ...) @sprintf(i8* %17, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %41)
br label %43
43: ; preds = %39, %37
store i32 0, i32* %10
store i32 0, i32* %5
store i32 1, i32* %13
br label %44
44: ; preds = %43, %25
%45 = load i32, i32* %10
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %44
store i32 76, i32* %11
br label %49
48: ; preds = %44
store i32 68, i32* %11
br label %49
49: ; preds = %48, %47
%50 = call i32 @strlen(i8* %17)
store i32 %50, i32* %12
%51 = load i32, i32* %12
%52 = load i8**, i8*** %3
%53 = load i32, i32* %6
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8*, i8** %52, i64 %54
%56 = load i8*, i8** %55
%57 = call i32 @strlen(i8* %56)
%58 = add nsw i32 %51, %57
%59 = load i32, i32* %11
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %70
61: ; preds = %49
%62 = call i32 @strcat(i8* %17, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%63 = load i8**, i8*** %3
%64 = load i32, i32* %6
%65 = add nsw i32 %64, 1
store i32 %65, i32* %6
%66 = sext i32 %64 to i64
%67 = getelementptr inbounds i8*, i8** %63, i64 %66
%68 = load i8*, i8** %67
%69 = call i32 @strcat(i8* %17, i8* %68)
br label %109
70: ; preds = %49
%71 = load i8**, i8*** %3
%72 = load i32, i32* %6
%73 = add nsw i32 %72, 1
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8*, i8** %71, i64 %74
%76 = load i8*, i8** %75
%77 = icmp ne i8* %76, null
br i1 %77, label %90, label %78
78: ; preds = %70
%79 = call i32 @strcat(i8* %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%80 = load i32, i32* @stdout
%81 = call i32 (i32, i8*, ...) @fprintf(i32 %80, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %17)
%82 = load i32, i32* @stdout
%83 = load i8**, i8*** %3
%84 = load i32, i32* %6
%85 = add nsw i32 %84, 1
store i32 %85, i32* %6
%86 = sext i32 %84 to i64
%87 = getelementptr inbounds i8*, i8** %83, i64 %86
%88 = load i8*, i8** %87
%89 = call i32 (i32, i8*, ...) @fprintf(i32 %82, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %88)
store i32 0, i32* %13
br label %18
90: ; preds = %70
%91 = load i32, i32* %9
%92 = icmp eq i32 %91, 20
br i1 %92, label %93, label %96
93: ; preds = %90
%94 = load i32, i32* @stdout
%95 = call i32 (i32, i8*, ...) @fprintf(i32 %94, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %17)
store i32 1, i32* %5
store i32 0, i32* %9
br label %18
96: ; preds = %90
%97 = call i32 @strcat(i8* %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %10
%98 = load i32, i32* @stdout
%99 = call i32 (i32, i8*, ...) @fprintf(i32 %98, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %17)
%100 = load i8**, i8*** %3
%101 = load i32, i32* %6
%102 = add nsw i32 %101, 1
store i32 %102, i32* %6
%103 = sext i32 %101 to i64
%104 = getelementptr inbounds i8*, i8** %100, i64 %103
%105 = load i8*, i8** %104
%106 = call i32 (i8*, i8*, ...) @sprintf(i8* %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %105)
%107 = load i32, i32* %9
%108 = add nsw i32 %107, 1
store i32 %108, i32* %9
br label %109
109: ; preds = %96, %61
br label %18
110: ; preds = %18
%111 = load i32, i32* %13
%112 = icmp ne i32 %111, 0
br i1 %112, label %113, label %116
113: ; preds = %110
%114 = load i32, i32* @stdout
%115 = call i32 (i32, i8*, ...) @fprintf(i32 %114, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %17)
br label %116
116: ; preds = %113, %110
%117 = load i8*, i8** %7
ret void
}

LLVM IR (-O2):
@MAXPATHLEN = global i32 0
@stdout = global i32 0
@.str = [2 x i8] c"\0A\00"
@.str.1 = [15 x i8] c"pkgdata_DATA =\00"
@.str.2 = [17 x i8] c"pkgdata%d_DATA =\00"
@.str.3 = [2 x i8] c" \00"
@.str.4 = [3 x i8] c" \\\00"
@.str.5 = [4 x i8] c"%s\0A\00"
@.str.6 = [5 x i8] c"\09%s\0A\00"
@.str.7 = [4 x i8] c"\09%s\00"
define void @write_packagedata(i8** nocapture %0, i32* nocapture %1) {
%3 = load i32, i32* @MAXPATHLEN
%4 = zext i32 %3 to i64
%5 = alloca i8, i64 %4
%6 = load i8*, i8** %0
%7 = icmp eq i8* %6, null
br i1 %7, label %86, label %8
8: ; preds = %2, %74
%9 = phi i8** [ %17, %74 ], [ %0, %2 ]
%10 = phi i32 [ %77, %74 ], [ 0, %2 ]
%11 = phi i32 [ %76, %74 ], [ 0, %2 ]
%12 = phi i32 [ %75, %74 ], [ 0, %2 ]
%13 = phi i1 [ true, %74 ], [ false, %2 ]
%14 = phi i32 [ %15, %74 ], [ 0, %2 ]
%15 = add nuw nsw i32 %14, 1
%16 = zext i32 %15 to i64
%17 = getelementptr inbounds i8*, i8** %0, i64 %16
br label %18
18: ; preds = %8, %62
%19 = phi i32 [ %10, %8 ], [ %38, %62 ]
%20 = phi i32 [ %11, %8 ], [ %39, %62 ]
%21 = phi i32 [ %12, %8 ], [ 0, %62 ]
%22 = phi i1 [ %13, %8 ], [ false, %62 ]
br i1 %22, label %33, label %23
23: ; preds = %18
%24 = load i32, i32* @stdout
%25 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%26 = load i32, i32* %1
%27 = add nsw i32 %26, 1
store i32 %27, i32* %1
%28 = icmp eq i32 %26, 0
br i1 %28, label %29, label %31
29: ; preds = %23
%30 = call i32 @strcpy(i8* %5, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %35
31: ; preds = %23
%32 = call i32 (i8*, i8*, ...) @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %27)
br label %35
33: ; preds = %18
%34 = icmp eq i32 %20, 0
br i1 %34, label %35, label %37
35: ; preds = %29, %31, %33
%36 = phi i32 [ %19, %33 ], [ 1, %31 ], [ 1, %29 ]
br label %37
37: ; preds = %33, %35
%38 = phi i32 [ %36, %35 ], [ %19, %33 ]
%39 = phi i32 [ 0, %35 ], [ %20, %33 ]
%40 = phi i32 [ 76, %35 ], [ 68, %33 ]
%41 = call i32 @strlen(i8* %5)
%42 = load i8*, i8** %9
%43 = call i32 @strlen(i8* %42)
%44 = add nsw i32 %43, %41
%45 = icmp slt i32 %44, %40
br i1 %45, label %46, label %50
46: ; preds = %37
%47 = call i32 @strcat(i8* %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%48 = load i8*, i8** %9
%49 = call i32 @strcat(i8* %5, i8* %48)
br label %74
50: ; preds = %37
%51 = load i8*, i8** %17
%52 = icmp eq i8* %51, null
br i1 %52, label %53, label %60
53: ; preds = %50
%54 = call i32 @strcat(i8* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%55 = load i32, i32* @stdout
%56 = call i32 (i32, i8*, ...) @fprintf(i32 %55, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %5)
%57 = load i32, i32* @stdout
%58 = load i8*, i8** %9
%59 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %58)
br label %74
60: ; preds = %50
%61 = icmp eq i32 %21, 20
br i1 %61, label %62, label %67
62: ; preds = %60
%63 = load i32, i32* @stdout
%64 = call i32 (i32, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %5)
%65 = load i8*, i8** %9
%66 = icmp eq i8* %65, null
br i1 %66, label %80, label %18
67: ; preds = %60
%68 = call i32 @strcat(i8* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%69 = load i32, i32* @stdout
%70 = call i32 (i32, i8*, ...) @fprintf(i32 %69, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %5)
%71 = load i8*, i8** %9
%72 = call i32 (i8*, i8*, ...) @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %71)
%73 = add nsw i32 %21, 1
br label %74
74: ; preds = %46, %67, %53
%75 = phi i32 [ %21, %53 ], [ %21, %46 ], [ %73, %67 ]
%76 = phi i32 [ %39, %53 ], [ %39, %46 ], [ 1, %67 ]
%77 = phi i32 [ 0, %53 ], [ %38, %46 ], [ %38, %67 ]
%78 = load i8*, i8** %17
%79 = icmp eq i8* %78, null
br i1 %79, label %80, label %8
80: ; preds = %74, %62
%81 = phi i32 [ %38, %62 ], [ %77, %74 ]
%82 = icmp eq i32 %81, 0
br i1 %82, label %86, label %83
83: ; preds = %80
%84 = load i32, i32* @stdout
%85 = call i32 (i32, i8*, ...) @fprintf(i32 %84, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %5)
br label %86
86: ; preds = %2, %83, %80
ret void
}