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

/* Variables and functions */
int EOF;
int EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strncpy(char *, char *, int);
int main(int argc, char **argv) {
  int cols;
  FILE *infp, *outfp;
  int i;
  char id[32];
  if (argc < 3) {
    fprintf(stderr, "Syntax: %s <in-file> <out-file>\n", argv[0]);
    return EXIT_FAILURE;
  }
  infp = fopen(argv[1], "r");
  if (!infp) {
    perror("fopen");
    return EXIT_FAILURE;
  }
  outfp = fopen(argv[2], "w");
  if (!outfp) {
    perror("fopen");
    return EXIT_FAILURE;
  }
  fprintf(outfp,
          "/* This file has been automatically generated\n"
          "   from the input file \"%s\". */\n\n",
          argv[1]);
  fputs("#include \"config/configcompiler.h\"\n\nstatic const char "
        "g_ConfigFragment[] = {\n",
        outfp);
  fputc('\t', outfp);
  cols = 0;
  for (;;) {
    int c = fgetc(infp);
    if (c == EOF)
      break;
    if (cols > 16) {
      fputs("\n\t", outfp);
      cols = 0;
    }
    fprintf(outfp, "%d, ", c);
    cols++;
  }
  strncpy(id, argv[1], sizeof(id));
  id[sizeof(id) - 1] = '\0';
  for (i = 0; id[i]; i++) {
    if ((id[i] < 'a' || id[i] > 'z') && (id[i] < 'A' || id[i] > 'Z'))
      id[i] = '_';
  }
  fprintf(outfp,
          "0\n};\n\nREGISTER_CONFIG_FRAGMENT(%s, \"%s\", g_ConfigFragment);\n",
          id, argv[1]);
  fclose(outfp);
  fclose(infp);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    11d0 <main+0x50>
mov    0x2e31(%rip),%rax
movslq (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe48(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    0x2e0a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13c6 <main+0x246>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe42(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1210 <main+0x90>
lea    0xe29(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2dca(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13c6 <main+0x246>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe0a(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    1250 <main+0xd0>
lea    0xde9(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2d8a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13c6 <main+0x246>
mov    -0x28(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xdc8(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rsi
lea    0xe06(%rip),%rdi
call   1050 <fputs@plt>
mov    -0x28(%rbp),%rsi
mov    $0x9,%edi
call   1070 <fputc@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x20(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    0x2d43(%rip),%rcx
cmp    (%rcx),%eax
jne    12b2 <main+0x132>
jmp    12f6 <main+0x176>
cmpl   $0x10,-0x14(%rbp)
jle    12d3 <main+0x153>
mov    -0x28(%rbp),%rsi
lea    0xe02(%rip),%rdi
call   1050 <fputs@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x54(%rbp),%edx
lea    0xdeb(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    128f <main+0x10f>
lea    -0x50(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    $0x20,%edx
call   1030 <strncpy@plt>
movb   $0x0,-0x31(%rbp)
movl   $0x0,-0x2c(%rbp)
movslq -0x2c(%rbp),%rax
cmpb   $0x0,-0x50(%rbp,%rax,1)
je     138a <main+0x20a>
movslq -0x2c(%rbp),%rax
movsbl -0x50(%rbp,%rax,1),%eax
cmp    $0x61,%eax
jl     134a <main+0x1ca>
movslq -0x2c(%rbp),%rax
movsbl -0x50(%rbp,%rax,1),%eax
cmp    $0x7a,%eax
jle    1377 <main+0x1f7>
movslq -0x2c(%rbp),%rax
movsbl -0x50(%rbp,%rax,1),%eax
cmp    $0x41,%eax
jl     136e <main+0x1ee>
movslq -0x2c(%rbp),%rax
movsbl -0x50(%rbp,%rax,1),%eax
cmp    $0x5a,%eax
jle    1377 <main+0x1f7>
movslq -0x2c(%rbp),%rax
movb   $0x5f,-0x50(%rbp,%rax,1)
jmp    137c <main+0x1fc>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1317 <main+0x197>
mov    -0x28(%rbp),%rdi
lea    -0x50(%rbp),%rdx
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rcx
lea    0xd30(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    0x2c07(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rsi,%rbp
cmp    $0x2,%edi
jg     11be <main+0x3e>
mov    0x2e3b(%rip),%rax
movslq (%rax),%rdi
mov    0x0(%rbp),%rdx
lea    0xe55(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x2e17(%rip),%rax
jmp    12d2 <main+0x152>
mov    0x8(%rbp),%rdi
lea    0xe58(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     134a <main+0x1ca>
mov    %rax,%r15
mov    0x10(%rbp),%rdi
lea    0xe44(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     134a <main+0x1ca>
mov    %rax,%rbx
mov    %rbp,0x8(%rsp)
mov    0x8(%rbp),%rdx
lea    0xe25(%rip),%rsi
mov    %rax,%rdi
xor    %eax,%eax
call   1070 <fprintf@plt>
lea    0xe64(%rip),%rdi
mov    $0x4d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   10a0 <fwrite@plt>
mov    $0x9,%edi
mov    %rbx,%rsi
call   1060 <fputc@plt>
mov    %r15,%rdi
call   1050 <fgetc@plt>
mov    0x2da3(%rip),%r14
cmp    (%r14),%eax
jne    12e3 <main+0x163>
mov    0x8(%rsp),%rbp
mov    0x8(%rbp),%rsi
lea    0x10(%rsp),%rdi
mov    $0x20,%edx
call   1030 <strncpy@plt>
movb   $0x0,0x2f(%rsp)
mov    0x10(%rsp),%cl
test   %cl,%cl
je     12a1 <main+0x121>
lea    0x11(%rsp),%rax
jmp    128b <main+0x10b>
nopw   0x0(%rax,%rax,1)
movzbl (%rax),%ecx
add    $0x1,%rax
test   %cl,%cl
je     12a1 <main+0x121>
lea    -0x7b(%rcx),%edx
cmp    $0xe5,%dl
ja     1280 <main+0x100>
add    $0xa5,%cl
cmp    $0xe5,%cl
ja     1280 <main+0x100>
movb   $0x5f,-0x1(%rax)
jmp    1280 <main+0x100>
mov    0x8(%rbp),%rcx
lea    0xe25(%rip),%rsi
lea    0x10(%rsp),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
mov    %r15,%rdi
call   1040 <fclose@plt>
mov    0x2cf6(%rip),%rax
mov    (%rax),%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %eax,%ebp
lea    0xde0(%rip),%r13
xor    %r12d,%r12d
jmp    1326 <main+0x1a6>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1070 <fprintf@plt>
add    $0x1,%r12d
mov    %r15,%rdi
call   1050 <fgetc@plt>
mov    %eax,%ebp
cmp    (%r14),%eax
je     124e <main+0xce>
cmp    $0x11,%r12d
jl     1300 <main+0x180>
mov    $0x2,%esi
mov    $0x1,%edx
lea    0xd8c(%rip),%rdi
mov    %rbx,%rcx
call   10a0 <fwrite@plt>
xor    %r12d,%r12d
jmp    1300 <main+0x180>
lea    0xcd2(%rip),%rdi
call   1090 <perror@plt>
mov    0x2c73(%rip),%rax
jmp    12d2 <main+0x152>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [33 x i8] c"Syntax: %s <in-file> <out-file>\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [6 x i8] c"fopen\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [80 x i8] c"/* This file has been automatically generated\0A from the input file \22%s\22. */\0A\0A\00"
@.str.5 = [78 x i8] c"#include \22config/configcompiler.h\22\0A\0Astatic const char g_ConfigFragment[] = {\0A\00"
@EOF = global i32 0
@.str.6 = [3 x i8] c"\0A\09\00"
@.str.7 = [5 x i8] c"%d, \00"
@.str.8 = [61 x i8] c"0\0A};\0A\0AREGISTER_CONFIG_FRAGMENT(%s, \22%s\22, g_ConfigFragment);\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32
%10 = alloca [32 x i8]
%11 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = load i32, i32* %4
%13 = icmp slt i32 %12, 3
br i1 %13, label %14, label %23
14: ; preds = %2
%15 = load i32, i32* @stderr
%16 = sext i32 %15 to i64
%17 = inttoptr i64 %16 to i32*
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 0
%20 = load i8*, i8** %19
%21 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* %20)
%22 = load i32, i32* @EXIT_FAILURE
store i32 %22, i32* %3
br label %133
23: ; preds = %2
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 1
%26 = load i8*, i8** %25
%27 = call i32* @fopen(i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %27, i32** %7
%28 = load i32*, i32** %7
%29 = icmp ne i32* %28, null
br i1 %29, label %33, label %30
30: ; preds = %23
%31 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%32 = load i32, i32* @EXIT_FAILURE
store i32 %32, i32* %3
br label %133
33: ; preds = %23
%34 = load i8**, i8*** %5
%35 = getelementptr inbounds i8*, i8** %34, i64 2
%36 = load i8*, i8** %35
%37 = call i32* @fopen(i8* %36, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %37, i32** %8
%38 = load i32*, i32** %8
%39 = icmp ne i32* %38, null
br i1 %39, label %43, label %40
40: ; preds = %33
%41 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%42 = load i32, i32* @EXIT_FAILURE
store i32 %42, i32* %3
br label %133
43: ; preds = %33
%44 = load i32*, i32** %8
%45 = load i8**, i8*** %5
%46 = getelementptr inbounds i8*, i8** %45, i64 1
%47 = load i8*, i8** %46
%48 = call i32 (i32*, i8*, ...) @fprintf(i32* %44, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.4, i64 0, i64 0), i8* %47)
%49 = load i32*, i32** %8
%50 = call i32 @fputs(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.5, i64 0, i64 0), i32* %49)
%51 = load i32*, i32** %8
%52 = call i32 @fputc(i8 signext 9, i32* %51)
store i32 0, i32* %6
br label %53
53: ; preds = %66, %43
%54 = load i32*, i32** %7
%55 = call i32 @fgetc(i32* %54)
store i32 %55, i32* %11
%56 = load i32, i32* %11
%57 = load i32, i32* @EOF
%58 = icmp eq i32 %56, %57
br i1 %58, label %59, label %60
59: ; preds = %53
br label %72
60: ; preds = %53
%61 = load i32, i32* %6
%62 = icmp sgt i32 %61, 16
br i1 %62, label %63, label %66
63: ; preds = %60
%64 = load i32*, i32** %8
%65 = call i32 @fputs(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %64)
store i32 0, i32* %6
br label %66
66: ; preds = %63, %60
%67 = load i32*, i32** %8
%68 = load i32, i32* %11
%69 = call i32 (i32*, i8*, ...) @fprintf(i32* %67, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %68)
%70 = load i32, i32* %6
%71 = add nsw i32 %70, 1
store i32 %71, i32* %6
br label %53
72: ; preds = %59
%73 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 0
%74 = load i8**, i8*** %5
%75 = getelementptr inbounds i8*, i8** %74, i64 1
%76 = load i8*, i8** %75
%77 = call i32 @strncpy(i8* %73, i8* %76, i32 32)
%78 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 31
store i8 0, i8* %78
store i32 0, i32* %9
br label %79
79: ; preds = %118, %72
%80 = load i32, i32* %9
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 %81
%83 = load i8, i8* %82
%84 = icmp ne i8 %83, 0
br i1 %84, label %85, label %121
85: ; preds = %79
%86 = load i32, i32* %9
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 %87
%89 = load i8, i8* %88
%90 = sext i8 %89 to i32
%91 = icmp slt i32 %90, 97
br i1 %91, label %99, label %92
92: ; preds = %85
%93 = load i32, i32* %9
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 %94
%96 = load i8, i8* %95
%97 = sext i8 %96 to i32
%98 = icmp sgt i32 %97, 122
br i1 %98, label %99, label %117
99: ; preds = %92, %85
%100 = load i32, i32* %9
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 %101
%103 = load i8, i8* %102
%104 = sext i8 %103 to i32
%105 = icmp slt i32 %104, 65
br i1 %105, label %113, label %106
106: ; preds = %99
%107 = load i32, i32* %9
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 %108
%110 = load i8, i8* %109
%111 = sext i8 %110 to i32
%112 = icmp sgt i32 %111, 90
br i1 %112, label %113, label %117
113: ; preds = %106, %99
%114 = load i32, i32* %9
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 %115
store i8 95, i8* %116
br label %117
117: ; preds = %113, %106, %92
br label %118
118: ; preds = %117
%119 = load i32, i32* %9
%120 = add nsw i32 %119, 1
store i32 %120, i32* %9
br label %79
121: ; preds = %79
%122 = load i32*, i32** %8
%123 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 0
%124 = load i8**, i8*** %5
%125 = getelementptr inbounds i8*, i8** %124, i64 1
%126 = load i8*, i8** %125
%127 = call i32 (i32*, i8*, ...) @fprintf(i32* %122, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.8, i64 0, i64 0), i8* %123, i8* %126)
%128 = load i32*, i32** %8
%129 = call i32 @fclose(i32* %128)
%130 = load i32*, i32** %7
%131 = call i32 @fclose(i32* %130)
%132 = load i32, i32* @EXIT_SUCCESS
store i32 %132, i32* %3
br label %133
133: ; preds = %121, %40, %30, %14
%134 = load i32, i32* %3
ret i32 %134
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [33 x i8] c"Syntax: %s <in-file> <out-file>\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [6 x i8] c"fopen\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [80 x i8] c"/* This file has been automatically generated\0A from the input file \22%s\22. */\0A\0A\00"
@.str.5 = [78 x i8] c"#include \22config/configcompiler.h\22\0A\0Astatic const char g_ConfigFragment[] = {\0A\00"
@EOF = global i32 0
@.str.6 = [3 x i8] c"\0A\09\00"
@.str.7 = [5 x i8] c"%d, \00"
@.str.8 = [61 x i8] c"0\0A};\0A\0AREGISTER_CONFIG_FRAGMENT(%s, \22%s\22, g_ConfigFragment);\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [32 x i8]
%4 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%5 = icmp slt i32 %0, 3
br i1 %5, label %6, label %12
6: ; preds = %2
%7 = load i32, i32* @stderr
%8 = sext i32 %7 to i64
%9 = inttoptr i64 %8 to i32*
%10 = load i8*, i8** %1
%11 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* %10)
br label %73
12: ; preds = %2
%13 = getelementptr inbounds i8*, i8** %1, i64 1
%14 = load i8*, i8** %13
%15 = tail call i32* @fopen(i8* %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%16 = icmp eq i32* %15, null
br i1 %16, label %17, label %19
17: ; preds = %12
%18 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %73
19: ; preds = %12
%20 = getelementptr inbounds i8*, i8** %1, i64 2
%21 = load i8*, i8** %20
%22 = tail call i32* @fopen(i8* %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%23 = icmp eq i32* %22, null
br i1 %23, label %24, label %26
24: ; preds = %19
%25 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %73
26: ; preds = %19
%27 = load i8*, i8** %13
%28 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %22, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.4, i64 0, i64 0), i8* %27)
%29 = tail call i64 @fwrite(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.5, i64 0, i64 0), i64 77, i64 1, i32* %22)
%30 = tail call i32 @fputc(i8 signext 9, i32* %22)
%31 = tail call i32 @fgetc(i32* %15)
%32 = load i32, i32* @EOF
%33 = icmp eq i32 %31, %32
br i1 %33, label %47, label %34
34: ; preds = %26, %40
%35 = phi i32 [ %44, %40 ], [ %31, %26 ]
%36 = phi i32 [ %43, %40 ], [ 0, %26 ]
%37 = icmp sgt i32 %36, 16
br i1 %37, label %38, label %40
38: ; preds = %34
%39 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i64 2, i64 1, i32* %22)
br label %40
40: ; preds = %34, %38
%41 = phi i32 [ 0, %38 ], [ %36, %34 ]
%42 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %22, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %35)
%43 = add nsw i32 %41, 1
%44 = tail call i32 @fgetc(i32* %15)
%45 = load i32, i32* @EOF
%46 = icmp eq i32 %44, %45
br i1 %46, label %47, label %34
47: ; preds = %40, %26
%48 = load i8*, i8** %13
%49 = call i32 @strncpy(i8* %4, i8* %48, i32 32)
%50 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 31
store i8 0, i8* %50
%51 = load i8, i8* %4
%52 = icmp eq i8 %51, 0
br i1 %52, label %68, label %53
53: ; preds = %47, %63
%54 = phi i64 [ %64, %63 ], [ 0, %47 ]
%55 = phi i8 [ %66, %63 ], [ %51, %47 ]
%56 = phi i8* [ %65, %63 ], [ %4, %47 ]
%57 = add i8 %55, -123
%58 = icmp ult i8 %57, -26
%59 = add i8 %55, -91
%60 = icmp ult i8 %59, -26
%61 = and i1 %58, %60
br i1 %61, label %62, label %63
62: ; preds = %53
store i8 95, i8* %56
br label %63
63: ; preds = %53, %62
%64 = add nuw i64 %54, 1
%65 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 %64
%66 = load i8, i8* %65
%67 = icmp eq i8 %66, 0
br i1 %67, label %68, label %53
68: ; preds = %63, %47
%69 = load i8*, i8** %13
%70 = call i32 (i32*, i8*, ...) @fprintf(i32* %22, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.8, i64 0, i64 0), i8* %4, i8* %69)
%71 = call i32 @fclose(i32* %22)
%72 = call i32 @fclose(i32* %15)
br label %73
73: ; preds = %68, %24, %17, %6
%74 = phi i32* [ @EXIT_FAILURE, %6 ], [ @EXIT_SUCCESS, %68 ], [ @EXIT_FAILURE, %24 ], [ @EXIT_FAILURE, %17 ]
%75 = load i32, i32* %74
ret i32 %75
}