#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) {
    fclose(infp);
    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/configfragment.hpp\"\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    13cf <main+0x24f>
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    13cf <main+0x24f>
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    1259 <main+0xd9>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
lea    0xde0(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2d81(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13cf <main+0x24f>
mov    -0x28(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xdbf(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rsi
lea    0xdfd(%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    0x2d3a(%rip),%rcx
cmp    (%rcx),%eax
jne    12bb <main+0x13b>
jmp    12ff <main+0x17f>
cmpl   $0x10,-0x14(%rbp)
jle    12dc <main+0x15c>
mov    -0x28(%rbp),%rsi
lea    0xdfb(%rip),%rdi
call   1050 <fputs@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x54(%rbp),%edx
lea    0xde4(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1298 <main+0x118>
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     1393 <main+0x213>
movslq -0x2c(%rbp),%rax
movsbl -0x50(%rbp,%rax,1),%eax
cmp    $0x61,%eax
jl     1353 <main+0x1d3>
movslq -0x2c(%rbp),%rax
movsbl -0x50(%rbp,%rax,1),%eax
cmp    $0x7a,%eax
jle    1380 <main+0x200>
movslq -0x2c(%rbp),%rax
movsbl -0x50(%rbp,%rax,1),%eax
cmp    $0x41,%eax
jl     1377 <main+0x1f7>
movslq -0x2c(%rbp),%rax
movsbl -0x50(%rbp,%rax,1),%eax
cmp    $0x5a,%eax
jle    1380 <main+0x200>
movslq -0x2c(%rbp),%rax
movb   $0x5f,-0x50(%rbp,%rax,1)
jmp    1385 <main+0x205>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1320 <main+0x1a0>
mov    -0x28(%rbp),%rdi
lea    -0x50(%rbp),%rdx
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rcx
lea    0xd29(%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    0x2bfe(%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     1352 <main+0x1d2>
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    $0x4f,%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    0xe27(%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    0xde2(%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    0xd8e(%rip),%rdi
mov    %rbx,%rcx
call   10a0 <fwrite@plt>
xor    %r12d,%r12d
jmp    1300 <main+0x180>
mov    %r15,%rdi
call   1040 <fclose@plt>
lea    0xcca(%rip),%rdi
call   1090 <perror@plt>
mov    0x2c6b(%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 = [80 x i8] c"#include \22config/configfragment.hpp\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 %135
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 %135
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 %45, label %40
40: ; preds = %33
%41 = load i32*, i32** %7
%42 = call i32 @fclose(i32* %41)
%43 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%44 = load i32, i32* @EXIT_FAILURE
store i32 %44, i32* %3
br label %135
45: ; preds = %33
%46 = load i32*, i32** %8
%47 = load i8**, i8*** %5
%48 = getelementptr inbounds i8*, i8** %47, i64 1
%49 = load i8*, i8** %48
%50 = call i32 (i32*, i8*, ...) @fprintf(i32* %46, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.4, i64 0, i64 0), i8* %49)
%51 = load i32*, i32** %8
%52 = call i32 @fputs(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.5, i64 0, i64 0), i32* %51)
%53 = load i32*, i32** %8
%54 = call i32 @fputc(i8 signext 9, i32* %53)
store i32 0, i32* %6
br label %55
55: ; preds = %68, %45
%56 = load i32*, i32** %7
%57 = call i32 @fgetc(i32* %56)
store i32 %57, i32* %11
%58 = load i32, i32* %11
%59 = load i32, i32* @EOF
%60 = icmp eq i32 %58, %59
br i1 %60, label %61, label %62
61: ; preds = %55
br label %74
62: ; preds = %55
%63 = load i32, i32* %6
%64 = icmp sgt i32 %63, 16
br i1 %64, label %65, label %68
65: ; preds = %62
%66 = load i32*, i32** %8
%67 = call i32 @fputs(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %66)
store i32 0, i32* %6
br label %68
68: ; preds = %65, %62
%69 = load i32*, i32** %8
%70 = load i32, i32* %11
%71 = call i32 (i32*, i8*, ...) @fprintf(i32* %69, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %70)
%72 = load i32, i32* %6
%73 = add nsw i32 %72, 1
store i32 %73, i32* %6
br label %55
74: ; preds = %61
%75 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 0
%76 = load i8**, i8*** %5
%77 = getelementptr inbounds i8*, i8** %76, i64 1
%78 = load i8*, i8** %77
%79 = call i32 @strncpy(i8* %75, i8* %78, i32 32)
%80 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 31
store i8 0, i8* %80
store i32 0, i32* %9
br label %81
81: ; preds = %120, %74
%82 = load i32, i32* %9
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 %83
%85 = load i8, i8* %84
%86 = icmp ne i8 %85, 0
br i1 %86, label %87, label %123
87: ; preds = %81
%88 = load i32, i32* %9
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 %89
%91 = load i8, i8* %90
%92 = sext i8 %91 to i32
%93 = icmp slt i32 %92, 97
br i1 %93, label %101, label %94
94: ; preds = %87
%95 = load i32, i32* %9
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 %96
%98 = load i8, i8* %97
%99 = sext i8 %98 to i32
%100 = icmp sgt i32 %99, 122
br i1 %100, label %101, label %119
101: ; preds = %94, %87
%102 = load i32, i32* %9
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 %103
%105 = load i8, i8* %104
%106 = sext i8 %105 to i32
%107 = icmp slt i32 %106, 65
br i1 %107, label %115, label %108
108: ; preds = %101
%109 = load i32, i32* %9
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 %110
%112 = load i8, i8* %111
%113 = sext i8 %112 to i32
%114 = icmp sgt i32 %113, 90
br i1 %114, label %115, label %119
115: ; preds = %108, %101
%116 = load i32, i32* %9
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 %117
store i8 95, i8* %118
br label %119
119: ; preds = %115, %108, %94
br label %120
120: ; preds = %119
%121 = load i32, i32* %9
%122 = add nsw i32 %121, 1
store i32 %122, i32* %9
br label %81
123: ; preds = %81
%124 = load i32*, i32** %8
%125 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 0
%126 = load i8**, i8*** %5
%127 = getelementptr inbounds i8*, i8** %126, i64 1
%128 = load i8*, i8** %127
%129 = call i32 (i32*, i8*, ...) @fprintf(i32* %124, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.8, i64 0, i64 0), i8* %125, i8* %128)
%130 = load i32*, i32** %8
%131 = call i32 @fclose(i32* %130)
%132 = load i32*, i32** %7
%133 = call i32 @fclose(i32* %132)
%134 = load i32, i32* @EXIT_SUCCESS
store i32 %134, i32* %3
br label %135
135: ; preds = %123, %40, %30, %14
%136 = load i32, i32* %3
ret i32 %136
}

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 = [80 x i8] c"#include \22config/configfragment.hpp\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 %74
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 %74
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 %27
24: ; preds = %19
%25 = tail call i32 @fclose(i32* %15)
%26 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %74
27: ; preds = %19
%28 = load i8*, i8** %13
%29 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %22, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.4, i64 0, i64 0), i8* %28)
%30 = tail call i64 @fwrite(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.5, i64 0, i64 0), i64 79, i64 1, i32* %22)
%31 = tail call i32 @fputc(i8 signext 9, i32* %22)
%32 = tail call i32 @fgetc(i32* %15)
%33 = load i32, i32* @EOF
%34 = icmp eq i32 %32, %33
br i1 %34, label %48, label %35
35: ; preds = %27, %41
%36 = phi i32 [ %45, %41 ], [ %32, %27 ]
%37 = phi i32 [ %44, %41 ], [ 0, %27 ]
%38 = icmp sgt i32 %37, 16
br i1 %38, label %39, label %41
39: ; preds = %35
%40 = 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 %41
41: ; preds = %35, %39
%42 = phi i32 [ 0, %39 ], [ %37, %35 ]
%43 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %22, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %36)
%44 = add nsw i32 %42, 1
%45 = tail call i32 @fgetc(i32* %15)
%46 = load i32, i32* @EOF
%47 = icmp eq i32 %45, %46
br i1 %47, label %48, label %35
48: ; preds = %41, %27
%49 = load i8*, i8** %13
%50 = call i32 @strncpy(i8* %4, i8* %49, i32 32)
%51 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 31
store i8 0, i8* %51
%52 = load i8, i8* %4
%53 = icmp eq i8 %52, 0
br i1 %53, label %69, label %54
54: ; preds = %48, %64
%55 = phi i64 [ %65, %64 ], [ 0, %48 ]
%56 = phi i8 [ %67, %64 ], [ %52, %48 ]
%57 = phi i8* [ %66, %64 ], [ %4, %48 ]
%58 = add i8 %56, -123
%59 = icmp ult i8 %58, -26
%60 = add i8 %56, -91
%61 = icmp ult i8 %60, -26
%62 = and i1 %59, %61
br i1 %62, label %63, label %64
63: ; preds = %54
store i8 95, i8* %57
br label %64
64: ; preds = %54, %63
%65 = add nuw i64 %55, 1
%66 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 %65
%67 = load i8, i8* %66
%68 = icmp eq i8 %67, 0
br i1 %68, label %69, label %54
69: ; preds = %64, %48
%70 = load i8*, i8** %13
%71 = 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* %70)
%72 = call i32 @fclose(i32* %22)
%73 = call i32 @fclose(i32* %15)
br label %74
74: ; preds = %69, %24, %17, %6
%75 = phi i32* [ @EXIT_FAILURE, %6 ], [ @EXIT_SUCCESS, %69 ], [ @EXIT_FAILURE, %24 ], [ @EXIT_FAILURE, %17 ]
%76 = load i32, i32* %75
ret i32 %76
}