#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
char *GetNextToken(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/,
                         int /*<<< orphan*/);
char *malloc(scalar_t__);
char *realloc(char *, scalar_t__);
int /*<<< orphan*/ strcat(char *, char *);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
scalar_t__ strlen(char *);
void GenKeyWordList(FILE *infile, FILE *outfile) {
  char *sortKey = NULL;
  char *keyWordNew = NULL;
  char *locationIdNew = NULL;
  char *keyWordLast = NULL;
  char *locationIdLast = NULL;
  char *idList = NULL;
  char *newList = NULL;
  static char empty[] = "";
  fseek(infile, 0, SEEK_SET);
  fprintf(outfile, "# Keyword Index\n");
  fprintf(outfile, "*Keywords:\t\\\n");
  while (1) {
    if ((sortKey = GetNextToken(infile, 0)) == NULL)
      break;
    if ((keyWordNew = GetNextToken(infile, 0)) == NULL)
      break;
    if ((locationIdNew = GetNextToken(infile, 0)) == NULL)
      break;
    if (keyWordLast && (strcmp(keyWordNew, keyWordLast) == 0)) {
      idList = realloc(idList, strlen(idList) + strlen(locationIdNew) + 2);
      strcat(idList, " ");
      strcat(idList, locationIdNew);
    } else if (keyWordLast != NULL) {
      fprintf(outfile, "%s<\\\\>%s\\n\\\n", keyWordLast, idList);
      free(keyWordLast);
      free(idList);
      idList = malloc(strlen(locationIdNew) + 1);
      strcpy(idList, locationIdNew);
      keyWordLast = malloc(strlen(keyWordNew) + 1);
      strcpy(keyWordLast, keyWordNew);
    } else {
      idList = malloc(strlen(locationIdNew) + 1);
      strcpy(idList, locationIdNew);
      keyWordLast = malloc(strlen(keyWordNew) + 1);
      strcpy(keyWordLast, keyWordNew);
    }
    free(sortKey);
    free(keyWordNew);
    free(locationIdNew);
  }
  if (!keyWordLast)
    keyWordLast = empty;
  if (!idList)
    idList = empty;
  fprintf(outfile, "%s<\\\\>%s\\n\n", keyWordLast, idList);
  if (keyWordLast != empty)
    free(keyWordLast);
  if (idList != empty)
    free(idList);
  fprintf(outfile, "\n\n");
}


x86 assembly (clang, -O0):
<GenKeyWordList>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
movq   $0x0,-0x40(%rbp)
movq   $0x0,-0x48(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2ded(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10a0 <fseek@plt>
mov    -0x10(%rbp),%rdi
lea    0xdf9(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xdf8(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
call   1060 <GetNextToken@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    123e <GenKeyWordList+0x9e>
jmp    13ed <GenKeyWordList+0x24d>
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
call   1060 <GetNextToken@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    125c <GenKeyWordList+0xbc>
jmp    13ed <GenKeyWordList+0x24d>
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
call   1060 <GetNextToken@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
jne    127a <GenKeyWordList+0xda>
jmp    13ed <GenKeyWordList+0x24d>
cmpq   $0x0,-0x30(%rbp)
je     12f4 <GenKeyWordList+0x154>
mov    -0x20(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    12f4 <GenKeyWordList+0x154>
mov    -0x40(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x40(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,-0x58(%rbp)
mov    -0x28(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x58(%rbp),%rsi
mov    -0x50(%rbp),%rdi
add    %rax,%rsi
add    $0x2,%rsi
call   10b0 <realloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
lea    0xd42(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x40(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   10c0 <strcat@plt>
jmp    13cd <GenKeyWordList+0x22d>
cmpq   $0x0,-0x30(%rbp)
je     137c <GenKeyWordList+0x1dc>
mov    -0x10(%rbp),%rdi
mov    -0x30(%rbp),%rdx
mov    -0x40(%rbp),%rcx
lea    0xd0f(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1090 <malloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x20(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1090 <malloc@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1040 <strcpy@plt>
jmp    13c8 <GenKeyWordList+0x228>
mov    -0x28(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1090 <malloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x20(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1090 <malloc@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1040 <strcpy@plt>
jmp    13cd <GenKeyWordList+0x22d>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
jmp    1220 <GenKeyWordList+0x80>
cmpq   $0x0,-0x30(%rbp)
jne    1403 <GenKeyWordList+0x263>
lea    0x2c75(%rip),%rax
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x40(%rbp)
jne    1419 <GenKeyWordList+0x279>
lea    0x2c5f(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x30(%rbp),%rdx
mov    -0x40(%rbp),%rcx
lea    0xc02(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
lea    0x2c3a(%rip),%rax
cmp    %rax,-0x30(%rbp)
je     144d <GenKeyWordList+0x2ad>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
lea    0x2c20(%rip),%rax
cmp    %rax,-0x40(%rbp)
je     1467 <GenKeyWordList+0x2c7>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x10(%rbp),%rdi
lea    0xbc8(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GenKeyWordList>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbp
mov    %rdi,%rbx
mov    0x2e15(%rip),%rax
mov    (%rax),%edx
xor    %r15d,%r15d
xor    %esi,%esi
call   10a0 <fseek@plt>
lea    0xe22(%rip),%rdi
mov    $0x10,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   10d0 <fwrite@plt>
lea    0xe1a(%rip),%rdi
mov    $0xd,%esi
mov    $0x1,%edx
mov    %rbp,0x8(%rsp)
mov    %rbp,%rcx
call   10d0 <fwrite@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1060 <GetNextToken@plt>
test   %rax,%rax
je     1379 <GenKeyWordList+0x1c9>
mov    %rax,%r13
xor    %eax,%eax
mov    %rax,(%rsp)
xor    %r15d,%r15d
jmp    12dd <GenKeyWordList+0x12d>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x8(%rsp),%rdi
lea    0xdd5(%rip),%rsi
mov    %r15,%rdx
mov    (%rsp),%rbx
mov    %rbx,%rcx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1050 <strlen@plt>
lea    0x1(%rax),%rdi
call   1090 <malloc@plt>
mov    %rax,(%rsp)
mov    %rax,%rdi
mov    %r14,%rsi
call   1040 <strcpy@plt>
mov    %rbp,%rdi
call   1050 <strlen@plt>
lea    0x1(%rax),%rdi
call   1090 <malloc@plt>
mov    %rax,%r15
mov    %rax,%rdi
mov    %rbp,%rsi
call   1040 <strcpy@plt>
mov    %r13,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %r12,%rbx
mov    %r12,%rdi
xor    %esi,%esi
call   1060 <GetNextToken@plt>
mov    %rax,%r13
test   %rax,%rax
je     137f <GenKeyWordList+0x1cf>
mov    %rbx,%rdi
xor    %esi,%esi
call   1060 <GetNextToken@plt>
test   %rax,%rax
je     137f <GenKeyWordList+0x1cf>
mov    %rax,%rbp
mov    %rbx,%r12
mov    %rbx,%rdi
xor    %esi,%esi
call   1060 <GetNextToken@plt>
test   %rax,%rax
je     137f <GenKeyWordList+0x1cf>
mov    %rax,%r14
test   %r15,%r15
je     126d <GenKeyWordList+0xbd>
mov    %rbp,%rdi
mov    %r15,%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1240 <GenKeyWordList+0x90>
mov    (%rsp),%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %rax,0x10(%rsp)
mov    %r14,%rdi
call   1050 <strlen@plt>
mov    0x10(%rsp),%rcx
lea    (%rcx,%rax,1),%rsi
add    $0x2,%rsi
mov    %rbx,%rdi
call   10b0 <realloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
lea    0xcbf(%rip),%rsi
call   10c0 <strcat@plt>
mov    %rbx,(%rsp)
mov    %rbx,%rdi
mov    %r14,%rsi
call   10c0 <strcat@plt>
jmp    12ac <GenKeyWordList+0xfc>
xor    %eax,%eax
mov    %rax,(%rsp)
test   %r15,%r15
lea    0x2cf3(%rip),%r14
cmove  %r14,%r15
mov    (%rsp),%rbx
test   %rbx,%rbx
mov    %rbx,%rbp
cmove  %r14,%rbp
lea    0xc8c(%rip),%rsi
mov    0x8(%rsp),%rdi
mov    %r15,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1080 <fprintf@plt>
cmp    %r14,%r15
je     13c1 <GenKeyWordList+0x211>
mov    %r15,%rdi
call   1030 <free@plt>
test   %rbx,%rbx
je     13ce <GenKeyWordList+0x21e>
mov    %rbp,%rdi
call   1030 <free@plt>
lea    0xc65(%rip),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    0x8(%rsp),%rcx
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    10d0 <fwrite@plt>

LLVM IR (-O0):
@GenKeyWordList.empty = internal global [1 x i8] zeroinitializer
@SEEK_SET = global i32 0
@.str = [17 x i8] c"# Keyword Index\0A\00"
@.str.1 = [14 x i8] c"*Keywords:\09\\\0A\00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [13 x i8] c"%s<\\\\>%s\\n\\\0A\00"
@.str.4 = [12 x i8] c"%s<\\\\>%s\\n\0A\00"
@.str.5 = [3 x i8] c"\0A\0A\00"
define void @GenKeyWordList(i32* %0, i32* %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*
store i32* %0, i32** %3
store i32* %1, i32** %4
store i8* null, i8** %5
store i8* null, i8** %6
store i8* null, i8** %7
store i8* null, i8** %8
store i8* null, i8** %9
store i8* null, i8** %10
store i8* null, i8** %11
%12 = load i32*, i32** %3
%13 = load i32, i32* @SEEK_SET
%14 = call i32 @fseek(i32* %12, i32 0, i32 %13)
%15 = load i32*, i32** %4
%16 = call i32 (i32*, i8*, ...) @fprintf(i32* %15, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%17 = load i32*, i32** %4
%18 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
br label %19
19: ; preds = %2, %98
%20 = load i32*, i32** %3
%21 = call i8* @GetNextToken(i32* %20, i32 0)
store i8* %21, i8** %5
%22 = icmp eq i8* %21, null
br i1 %22, label %23, label %24
23: ; preds = %19
br label %105
24: ; preds = %19
%25 = load i32*, i32** %3
%26 = call i8* @GetNextToken(i32* %25, i32 0)
store i8* %26, i8** %6
%27 = icmp eq i8* %26, null
br i1 %27, label %28, label %29
28: ; preds = %24
br label %105
29: ; preds = %24
%30 = load i32*, i32** %3
%31 = call i8* @GetNextToken(i32* %30, i32 0)
store i8* %31, i8** %7
%32 = icmp eq i8* %31, null
br i1 %32, label %33, label %34
33: ; preds = %29
br label %105
34: ; preds = %29
%35 = load i8*, i8** %8
%36 = icmp ne i8* %35, null
br i1 %36, label %37, label %56
37: ; preds = %34
%38 = load i8*, i8** %6
%39 = load i8*, i8** %8
%40 = call i64 @strcmp(i8* %38, i8* %39)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %56
42: ; preds = %37
%43 = load i8*, i8** %10
%44 = load i8*, i8** %10
%45 = call i64 @strlen(i8* %44)
%46 = load i8*, i8** %7
%47 = call i64 @strlen(i8* %46)
%48 = add nsw i64 %45, %47
%49 = add nsw i64 %48, 2
%50 = call i8* @realloc(i8* %43, i64 %49)
store i8* %50, i8** %10
%51 = load i8*, i8** %10
%52 = call i32 @strcat(i8* %51, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%53 = load i8*, i8** %10
%54 = load i8*, i8** %7
%55 = call i32 @strcat(i8* %53, i8* %54)
br label %98
56: ; preds = %37, %34
%57 = load i8*, i8** %8
%58 = icmp ne i8* %57, null
br i1 %58, label %59, label %82
59: ; preds = %56
%60 = load i32*, i32** %4
%61 = load i8*, i8** %8
%62 = load i8*, i8** %10
%63 = call i32 (i32*, i8*, ...) @fprintf(i32* %60, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* %61, i8* %62)
%64 = load i8*, i8** %8
%65 = call i32 @free(i8* %64)
%66 = load i8*, i8** %10
%67 = call i32 @free(i8* %66)
%68 = load i8*, i8** %7
%69 = call i64 @strlen(i8* %68)
%70 = add nsw i64 %69, 1
%71 = call i8* @malloc(i64 %70)
store i8* %71, i8** %10
%72 = load i8*, i8** %10
%73 = load i8*, i8** %7
%74 = call i32 @strcpy(i8* %72, i8* %73)
%75 = load i8*, i8** %6
%76 = call i64 @strlen(i8* %75)
%77 = add nsw i64 %76, 1
%78 = call i8* @malloc(i64 %77)
store i8* %78, i8** %8
%79 = load i8*, i8** %8
%80 = load i8*, i8** %6
%81 = call i32 @strcpy(i8* %79, i8* %80)
br label %97
82: ; preds = %56
%83 = load i8*, i8** %7
%84 = call i64 @strlen(i8* %83)
%85 = add nsw i64 %84, 1
%86 = call i8* @malloc(i64 %85)
store i8* %86, i8** %10
%87 = load i8*, i8** %10
%88 = load i8*, i8** %7
%89 = call i32 @strcpy(i8* %87, i8* %88)
%90 = load i8*, i8** %6
%91 = call i64 @strlen(i8* %90)
%92 = add nsw i64 %91, 1
%93 = call i8* @malloc(i64 %92)
store i8* %93, i8** %8
%94 = load i8*, i8** %8
%95 = load i8*, i8** %6
%96 = call i32 @strcpy(i8* %94, i8* %95)
br label %97
97: ; preds = %82, %59
br label %98
98: ; preds = %97, %42
%99 = load i8*, i8** %5
%100 = call i32 @free(i8* %99)
%101 = load i8*, i8** %6
%102 = call i32 @free(i8* %101)
%103 = load i8*, i8** %7
%104 = call i32 @free(i8* %103)
br label %19
105: ; preds = %33, %28, %23
%106 = load i8*, i8** %8
%107 = icmp ne i8* %106, null
br i1 %107, label %109, label %108
108: ; preds = %105
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @GenKeyWordList.empty, i64 0, i64 0), i8** %8
br label %109
109: ; preds = %108, %105
%110 = load i8*, i8** %10
%111 = icmp ne i8* %110, null
br i1 %111, label %113, label %112
112: ; preds = %109
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @GenKeyWordList.empty, i64 0, i64 0), i8** %10
br label %113
113: ; preds = %112, %109
%114 = load i32*, i32** %4
%115 = load i8*, i8** %8
%116 = load i8*, i8** %10
%117 = call i32 (i32*, i8*, ...) @fprintf(i32* %114, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i8* %115, i8* %116)
%118 = load i8*, i8** %8
%119 = icmp ne i8* %118, getelementptr inbounds ([1 x i8], [1 x i8]* @GenKeyWordList.empty, i64 0, i64 0)
br i1 %119, label %120, label %123
120: ; preds = %113
%121 = load i8*, i8** %8
%122 = call i32 @free(i8* %121)
br label %123
123: ; preds = %120, %113
%124 = load i8*, i8** %10
%125 = icmp ne i8* %124, getelementptr inbounds ([1 x i8], [1 x i8]* @GenKeyWordList.empty, i64 0, i64 0)
br i1 %125, label %126, label %129
126: ; preds = %123
%127 = load i8*, i8** %10
%128 = call i32 @free(i8* %127)
br label %129
129: ; preds = %126, %123
%130 = load i32*, i32** %4
%131 = call i32 (i32*, i8*, ...) @fprintf(i32* %130, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@GenKeyWordList.empty = internal global [1 x i8] zeroinitializer
@SEEK_SET = global i32 0
@.str = [17 x i8] c"# Keyword Index\0A\00"
@.str.1 = [14 x i8] c"*Keywords:\09\\\0A\00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [13 x i8] c"%s<\\\\>%s\\n\\\0A\00"
@.str.4 = [12 x i8] c"%s<\\\\>%s\\n\0A\00"
@.str.5 = [3 x i8] c"\0A\0A\00"
define void @GenKeyWordList(i32* %0, i32* nocapture %1) {
%3 = load i32, i32* @SEEK_SET
%4 = tail call i32 @fseek(i32* %0, i32 0, i32 %3)
%5 = tail call i64 @fwrite(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i64 16, i64 1, i32* %1)
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i64 13, i64 1, i32* %1)
%7 = tail call i8* @GetNextToken(i32* %0, i32 0)
%8 = icmp eq i8* %7, null
br i1 %8, label %60, label %9
9: ; preds = %2, %52
%10 = phi i8* [ %58, %52 ], [ %7, %2 ]
%11 = phi i8* [ %54, %52 ], [ null, %2 ]
%12 = phi i8* [ %53, %52 ], [ null, %2 ]
%13 = tail call i8* @GetNextToken(i32* %0, i32 0)
%14 = icmp eq i8* %13, null
br i1 %14, label %60, label %15
15: ; preds = %9
%16 = tail call i8* @GetNextToken(i32* %0, i32 0)
%17 = icmp eq i8* %16, null
br i1 %17, label %60, label %18
18: ; preds = %15
%19 = icmp eq i8* %12, null
br i1 %19, label %43, label %20
20: ; preds = %18
%21 = tail call i64 @strcmp(i8* %13, i8* %12)
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %31
23: ; preds = %20
%24 = tail call i64 @strlen(i8* dereferenceable(1) %11)
%25 = tail call i64 @strlen(i8* %16)
%26 = add i64 %24, 2
%27 = add i64 %26, %25
%28 = tail call i8* @realloc(i8* %11, i64 %27)
%29 = tail call i32 @strcat(i8* %28, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%30 = tail call i32 @strcat(i8* %28, i8* %16)
br label %52
31: ; preds = %20
%32 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* %12, i8* %11)
%33 = tail call i32 @free(i8* %12)
%34 = tail call i32 @free(i8* %11)
%35 = tail call i64 @strlen(i8* %16)
%36 = add nsw i64 %35, 1
%37 = tail call i8* @malloc(i64 %36)
%38 = tail call i32 @strcpy(i8* %37, i8* %16)
%39 = tail call i64 @strlen(i8* %13)
%40 = add nsw i64 %39, 1
%41 = tail call i8* @malloc(i64 %40)
%42 = tail call i32 @strcpy(i8* %41, i8* %13)
br label %52
43: ; preds = %18
%44 = tail call i64 @strlen(i8* %16)
%45 = add nsw i64 %44, 1
%46 = tail call i8* @malloc(i64 %45)
%47 = tail call i32 @strcpy(i8* %46, i8* %16)
%48 = tail call i64 @strlen(i8* %13)
%49 = add nsw i64 %48, 1
%50 = tail call i8* @malloc(i64 %49)
%51 = tail call i32 @strcpy(i8* %50, i8* %13)
br label %52
52: ; preds = %31, %43, %23
%53 = phi i8* [ %12, %23 ], [ %41, %31 ], [ %50, %43 ]
%54 = phi i8* [ %28, %23 ], [ %37, %31 ], [ %46, %43 ]
%55 = tail call i32 @free(i8* %10)
%56 = tail call i32 @free(i8* %13)
%57 = tail call i32 @free(i8* %16)
%58 = tail call i8* @GetNextToken(i32* %0, i32 0)
%59 = icmp eq i8* %58, null
br i1 %59, label %60, label %9
60: ; preds = %52, %9, %15, %2
%61 = phi i8* [ null, %2 ], [ %12, %15 ], [ %12, %9 ], [ %53, %52 ]
%62 = phi i8* [ null, %2 ], [ %11, %15 ], [ %11, %9 ], [ %54, %52 ]
%63 = icmp eq i8* %61, null
%64 = select i1 %63, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @GenKeyWordList.empty, i64 0, i64 0), i8* %61
%65 = icmp eq i8* %62, null
%66 = select i1 %65, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @GenKeyWordList.empty, i64 0, i64 0), i8* %62
%67 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i8* %64, i8* %66)
%68 = icmp eq i8* %64, getelementptr inbounds ([1 x i8], [1 x i8]* @GenKeyWordList.empty, i64 0, i64 0)
br i1 %68, label %71, label %69
69: ; preds = %60
%70 = tail call i32 @free(i8* %64)
br label %71
71: ; preds = %69, %60
br i1 %65, label %74, label %72
72: ; preds = %71
%73 = tail call i32 @free(i8* %66)
br label %74
74: ; preds = %72, %71
%75 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i64 2, i64 1, i32* %1)
ret void
}