#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 */
int /*<<< orphan*/ exit(int);
int fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ fputs(char const *, int /*<<< orphan*/ *);
int getopt(int, char **, char *);
char *optarg;
int optind;
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ *stdin;
int /*<<< orphan*/ *stdout;
scalar_t__ strcmp(char *, char *);
int main(int argc, char **argv) {
  const char *prefix = "";
  const char *suffix = "\n";
  FILE *in = stdin;
  FILE *out = stdout;
  int c;
  while ((c = getopt(argc, argv, "np:s:h")) != -1) {
    switch (c) {
    case 'p':
      prefix = optarg;
      break;
    case 's':
      suffix = optarg;
      break;
    case 'h':
      printf("Usage: %s [-n] [-p prefix] [-s suffix] [infile] [outfile]\n",
             argv[0]);
      exit(0);
      break;
    }
  }
  if (optind < argc) {
    if (strcmp(argv[optind], "-") != 0) {
      if (!(in = fopen(argv[optind], "r"))) {
        fprintf(stderr, "Can't open %s\n", argv[optind]);
        perror(argv[0]);
        exit(1);
      }
    }
    if (optind + 1 < argc) {
      if (strcmp(argv[optind + 1], "-") != 0) {
        if (!(out = fopen(argv[optind + 1], "w"))) {
          fprintf(stderr, "Can't open %s\n", argv[optind + 1]);
          perror(argv[0]);
          exit(1);
        }
      }
    }
  }
  fputs(prefix, out);
  int col = 1;
  while ((c = fgetc(in)) != -1) {
    if (col >= 78 - 6) {
      fputs("\n", out);
      col = 0;
    }
    fprintf(out, " 0x%.2x,", c);
    col += 6;
  }
  fputs(suffix, out);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe94(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xe88(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0x2e1d(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
mov    0x2def(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe1a(%rip),%rdx
call   10a0 <getopt@plt>
mov    %eax,-0x34(%rbp)
cmp    $0xffffffff,%eax
je     1272 <main+0xe2>
mov    -0x34(%rbp),%eax
mov    %eax,-0x3c(%rbp)
sub    $0x68,%eax
je     1253 <main+0xc3>
jmp    120b <main+0x7b>
mov    -0x3c(%rbp),%eax
sub    $0x70,%eax
je     122d <main+0x9d>
jmp    121c <main+0x8c>
mov    -0x3c(%rbp),%eax
sub    $0x73,%eax
je     1240 <main+0xb0>
jmp    126d <main+0xdd>
mov    0x2dc4(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
jmp    126d <main+0xdd>
mov    0x2db1(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
jmp    126d <main+0xdd>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xda6(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   10b0 <exit@plt>
jmp    11d8 <main+0x48>
mov    0x2d5f(%rip),%rax
mov    (%rax),%eax
cmp    -0x8(%rbp),%eax
jge    13e4 <main+0x254>
mov    -0x10(%rbp),%rax
mov    0x2d49(%rip),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xda5(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     131d <main+0x18d>
mov    -0x10(%rbp),%rax
mov    0x2d21(%rip),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd7f(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
jne    1318 <main+0x188>
mov    0x2ce9(%rip),%rax
movslq (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x2ceb(%rip),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xd4b(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1090 <perror@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
jmp    131d <main+0x18d>
mov    0x2cb4(%rip),%rax
mov    (%rax),%eax
add    $0x1,%eax
cmp    -0x8(%rbp),%eax
jge    13df <main+0x24f>
mov    -0x10(%rbp),%rax
mov    0x2c9b(%rip),%rcx
mov    (%rcx),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xcf2(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     13da <main+0x24a>
mov    -0x10(%rbp),%rax
mov    0x2c6e(%rip),%rcx
mov    (%rcx),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xcd8(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x30(%rbp)
cmp    $0x0,%rax
jne    13d5 <main+0x245>
mov    0x2c31(%rip),%rax
movslq (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x2c33(%rip),%rcx
mov    (%rcx),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xc8e(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1090 <perror@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
jmp    13da <main+0x24a>
jmp    13df <main+0x24f>
jmp    13e4 <main+0x254>
mov    -0x18(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1040 <fputs@plt>
movl   $0x1,-0x38(%rbp)
mov    -0x28(%rbp),%rdi
call   1050 <fgetc@plt>
mov    %eax,-0x34(%rbp)
cmp    $0xffffffff,%eax
je     1451 <main+0x2c1>
cmpl   $0x48,-0x38(%rbp)
jl     142e <main+0x29e>
mov    -0x30(%rbp),%rsi
lea    0xc1e(%rip),%rdi
call   1040 <fputs@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%edx
lea    0xc1b(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x38(%rbp),%eax
add    $0x6,%eax
mov    %eax,-0x38(%rbp)
jmp    13f8 <main+0x268>
mov    -0x20(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1040 <fputs@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
mov    0x2e26(%rip),%rax
mov    (%rax),%r15
mov    0x2dfc(%rip),%rax
mov    (%rax),%r12
lea    0xe72(%rip),%rax
mov    %rax,0x10(%rsp)
lea    0xe67(%rip),%rax
mov    %rax,0x8(%rsp)
lea    0xe1a(%rip),%r14
mov    0x2e0b(%rip),%r13
nopl   (%rax)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   10b0 <getopt@plt>
cmp    $0x6f,%eax
jle    1220 <main+0x80>
cmp    $0x73,%eax
je     122f <main+0x8f>
cmp    $0x70,%eax
jne    11f0 <main+0x50>
mov    0x0(%r13),%rax
mov    %rax,0x8(%rsp)
jmp    11f0 <main+0x50>
nopw   0x0(%rax,%rax,1)
cmp    $0xffffffff,%eax
je     123a <main+0x9a>
cmp    $0x68,%eax
jne    11f0 <main+0x50>
jmp    1345 <main+0x1a5>
mov    0x0(%r13),%rax
mov    %rax,0x10(%rsp)
jmp    11f0 <main+0x50>
mov    0x2d97(%rip),%r14
movslq (%r14),%rax
cmp    %ebp,%eax
jge    12bc <main+0x11c>
mov    (%rbx,%rax,8),%rdi
lea    0xdef(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     127c <main+0xdc>
movslq (%r14),%rax
mov    (%rbx,%rax,8),%rdi
lea    0xdd9(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%r15
test   %rax,%rax
je     135b <main+0x1bb>
movslq (%r14),%rax
lea    0x1(%rax),%ecx
cmp    %ebp,%ecx
jge    12bc <main+0x11c>
mov    0x8(%rbx,%rax,8),%rdi
lea    0xdb0(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12bc <main+0x11c>
movslq (%r14),%rax
mov    0x8(%rbx,%rax,8),%rdi
lea    0xdaa(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%r12
test   %rax,%rax
je     136e <main+0x1ce>
mov    0x8(%rsp),%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
mov    %r15,%rdi
call   1050 <fgetc@plt>
cmp    $0xffffffff,%eax
je     1327 <main+0x187>
mov    %eax,%ebp
mov    $0x1,%ebx
lea    0xd73(%rip),%r14
jmp    1311 <main+0x171>
cs nopw 0x0(%rax,%rax,1)
mov    %r12,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
add    $0x6,%ebx
mov    %r15,%rdi
call   1050 <fgetc@plt>
mov    %eax,%ebp
cmp    $0xffffffff,%eax
je     1327 <main+0x187>
cmp    $0x48,%ebx
jl     12f0 <main+0x150>
mov    $0xa,%edi
mov    %r12,%rsi
call   1060 <fputc@plt>
xor    %ebx,%ebx
jmp    12f0 <main+0x150>
mov    0x10(%rsp),%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    (%rbx),%rsi
lea    0xcb8(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   10c0 <exit@plt>
mov    0x2c66(%rip),%rax
movslq (%rax),%rdi
movslq (%r14),%rax
mov    (%rbx,%rax,8),%rdx
jmp    1380 <main+0x1e0>
mov    0x2c53(%rip),%rax
movslq (%rax),%rdi
movslq (%r14),%rax
mov    0x8(%rbx,%rax,8),%rdx
lea    0xcbf(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%rdi
call   10a0 <perror@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [2 x i8] c"\0A\00"
@stdin = global i32* null
@stdout = global i32* null
@.str.2 = [7 x i8] c"np:s:h\00"
@optarg = global i8* null
@.str.3 = [59 x i8] c"Usage: %s [-n] [-p prefix] [-s suffix] [infile] [outfile]\0A\00"
@optind = global i32 0
@.str.4 = [2 x i8] c"-\00"
@.str.5 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.6 = [15 x i8] c"Can't open %s\0A\00"
@.str.7 = [2 x i8] c"w\00"
@.str.8 = [9 x i8] c" 0x%.2x,\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %6
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8** %7
%12 = load i32*, i32** @stdin
store i32* %12, i32** %8
%13 = load i32*, i32** @stdout
store i32* %13, i32** %9
br label %14
14: ; preds = %31, %2
%15 = load i32, i32* %4
%16 = load i8**, i8*** %5
%17 = call i32 @getopt(i32 %15, i8** %16, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
store i32 %17, i32* %10
%18 = icmp ne i32 %17, -1
br i1 %18, label %19, label %32
19: ; preds = %14
%20 = load i32, i32* %10
switch i32 %20, label %31 [
i32 112, label %21
i32 115, label %23
i32 104, label %25
]
21: ; preds = %19
%22 = load i8*, i8** @optarg
store i8* %22, i8** %6
br label %31
23: ; preds = %19
%24 = load i8*, i8** @optarg
store i8* %24, i8** %7
br label %31
25: ; preds = %19
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 0
%28 = load i8*, i8** %27
%29 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0), i8* %28)
%30 = call i32 @exit(i32 0)
unreachable
31: ; preds = %19, %23, %21
br label %14
32: ; preds = %14
%33 = load i32, i32* @optind
%34 = load i32, i32* %4
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %110
36: ; preds = %32
%37 = load i8**, i8*** %5
%38 = load i32, i32* @optind
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8*, i8** %37, i64 %39
%41 = load i8*, i8** %40
%42 = call i64 @strcmp(i8* %41, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %68
44: ; preds = %36
%45 = load i8**, i8*** %5
%46 = load i32, i32* @optind
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8*, i8** %45, i64 %47
%49 = load i8*, i8** %48
%50 = call i32* @fopen(i8* %49, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i32* %50, i32** %8
%51 = icmp ne i32* %50, null
br i1 %51, label %67, label %52
52: ; preds = %44
%53 = load i32, i32* @stderr
%54 = sext i32 %53 to i64
%55 = inttoptr i64 %54 to i32*
%56 = load i8**, i8*** %5
%57 = load i32, i32* @optind
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8*, i8** %56, i64 %58
%60 = load i8*, i8** %59
%61 = call i32 (i32*, i8*, ...) @fprintf(i32* %55, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i8* %60)
%62 = load i8**, i8*** %5
%63 = getelementptr inbounds i8*, i8** %62, i64 0
%64 = load i8*, i8** %63
%65 = call i32 @perror(i8* %64)
%66 = call i32 @exit(i32 1)
unreachable
67: ; preds = %44
br label %68
68: ; preds = %67, %36
%69 = load i32, i32* @optind
%70 = add nsw i32 %69, 1
%71 = load i32, i32* %4
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %109
73: ; preds = %68
%74 = load i8**, i8*** %5
%75 = load i32, i32* @optind
%76 = add nsw i32 %75, 1
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8*, i8** %74, i64 %77
%79 = load i8*, i8** %78
%80 = call i64 @strcmp(i8* %79, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %108
82: ; preds = %73
%83 = load i8**, i8*** %5
%84 = load i32, i32* @optind
%85 = add nsw i32 %84, 1
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i8*, i8** %83, i64 %86
%88 = load i8*, i8** %87
%89 = call i32* @fopen(i8* %88, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
store i32* %89, i32** %9
%90 = icmp ne i32* %89, null
br i1 %90, label %107, label %91
91: ; preds = %82
%92 = load i32, i32* @stderr
%93 = sext i32 %92 to i64
%94 = inttoptr i64 %93 to i32*
%95 = load i8**, i8*** %5
%96 = load i32, i32* @optind
%97 = add nsw i32 %96, 1
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i8*, i8** %95, i64 %98
%100 = load i8*, i8** %99
%101 = call i32 (i32*, i8*, ...) @fprintf(i32* %94, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i8* %100)
%102 = load i8**, i8*** %5
%103 = getelementptr inbounds i8*, i8** %102, i64 0
%104 = load i8*, i8** %103
%105 = call i32 @perror(i8* %104)
%106 = call i32 @exit(i32 1)
unreachable
107: ; preds = %82
br label %108
108: ; preds = %107, %73
br label %109
109: ; preds = %108, %68
br label %110
110: ; preds = %109, %32
%111 = load i8*, i8** %6
%112 = load i32*, i32** %9
%113 = call i32 @fputs(i8* %111, i32* %112)
store i32 1, i32* %11
br label %114
114: ; preds = %124, %110
%115 = load i32*, i32** %8
%116 = call i32 @fgetc(i32* %115)
store i32 %116, i32* %10
%117 = icmp ne i32 %116, -1
br i1 %117, label %118, label %130
118: ; preds = %114
%119 = load i32, i32* %11
%120 = icmp sge i32 %119, 72
br i1 %120, label %121, label %124
121: ; preds = %118
%122 = load i32*, i32** %9
%123 = call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* %122)
store i32 0, i32* %11
br label %124
124: ; preds = %121, %118
%125 = load i32*, i32** %9
%126 = load i32, i32* %10
%127 = call i32 (i32*, i8*, ...) @fprintf(i32* %125, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %126)
%128 = load i32, i32* %11
%129 = add nsw i32 %128, 6
store i32 %129, i32* %11
br label %114
130: ; preds = %114
%131 = load i8*, i8** %7
%132 = load i32*, i32** %9
%133 = call i32 @fputs(i8* %131, i32* %132)
ret i32 0
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [2 x i8] c"\0A\00"
@stdin = global i32* null
@stdout = global i32* null
@.str.2 = [7 x i8] c"np:s:h\00"
@optarg = global i8* null
@.str.3 = [59 x i8] c"Usage: %s [-n] [-p prefix] [-s suffix] [infile] [outfile]\0A\00"
@optind = global i32 0
@.str.4 = [2 x i8] c"-\00"
@.str.5 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.6 = [15 x i8] c"Can't open %s\0A\00"
@.str.7 = [2 x i8] c"w\00"
@.str.8 = [9 x i8] c" 0x%.2x,\00"
define i32 @main(i32 %0, i8** %1) {
%3 = load i32*, i32** @stdin
%4 = load i32*, i32** @stdout
br label %5
5: ; preds = %12, %2
%6 = phi i8* [ %13, %12 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %2 ]
%7 = phi i8* [ %9, %12 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), %2 ]
br label %8
8: ; preds = %5, %14
%9 = phi i8* [ %7, %5 ], [ %15, %14 ]
br label %10
10: ; preds = %8, %10
%11 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
switch i32 %11, label %10 [
i32 -1, label %20
i32 112, label %12
i32 115, label %14
i32 104, label %16
]
12: ; preds = %10
%13 = load i8*, i8** @optarg
br label %5
14: ; preds = %10
%15 = load i8*, i8** @optarg
br label %8
16: ; preds = %10
%17 = load i8*, i8** %1
%18 = tail call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0), i8* %17)
%19 = tail call i32 @exit(i32 0)
unreachable
20: ; preds = %10
%21 = load i32, i32* @optind
%22 = icmp slt i32 %21, %0
br i1 %22, label %23, label %80
23: ; preds = %20
%24 = sext i32 %21 to i64
%25 = getelementptr inbounds i8*, i8** %1, i64 %24
%26 = load i8*, i8** %25
%27 = tail call i64 @strcmp(i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %48, label %29
29: ; preds = %23
%30 = load i32, i32* @optind
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8*, i8** %1, i64 %31
%33 = load i8*, i8** %32
%34 = tail call i32* @fopen(i8* %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%35 = icmp eq i32* %34, null
br i1 %35, label %36, label %48
36: ; preds = %29
%37 = load i32, i32* @stderr
%38 = sext i32 %37 to i64
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* @optind
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8*, i8** %1, i64 %41
%43 = load i8*, i8** %42
%44 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %39, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i8* %43)
%45 = load i8*, i8** %1
%46 = tail call i32 @perror(i8* %45)
%47 = tail call i32 @exit(i32 1)
unreachable
48: ; preds = %29, %23
%49 = phi i32* [ %34, %29 ], [ %3, %23 ]
%50 = load i32, i32* @optind
%51 = add nsw i32 %50, 1
%52 = icmp slt i32 %51, %0
br i1 %52, label %53, label %80
53: ; preds = %48
%54 = sext i32 %51 to i64
%55 = getelementptr inbounds i8*, i8** %1, i64 %54
%56 = load i8*, i8** %55
%57 = tail call i64 @strcmp(i8* %56, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %80, label %59
59: ; preds = %53
%60 = load i32, i32* @optind
%61 = add nsw i32 %60, 1
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8*, i8** %1, i64 %62
%64 = load i8*, i8** %63
%65 = tail call i32* @fopen(i8* %64, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%66 = icmp eq i32* %65, null
br i1 %66, label %67, label %80
67: ; preds = %59
%68 = load i32, i32* @stderr
%69 = sext i32 %68 to i64
%70 = inttoptr i64 %69 to i32*
%71 = load i32, i32* @optind
%72 = add nsw i32 %71, 1
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i8*, i8** %1, i64 %73
%75 = load i8*, i8** %74
%76 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %70, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i8* %75)
%77 = load i8*, i8** %1
%78 = tail call i32 @perror(i8* %77)
%79 = tail call i32 @exit(i32 1)
unreachable
80: ; preds = %48, %59, %53, %20
%81 = phi i32* [ %49, %59 ], [ %49, %53 ], [ %49, %48 ], [ %3, %20 ]
%82 = phi i32* [ %65, %59 ], [ %4, %53 ], [ %4, %48 ], [ %4, %20 ]
%83 = tail call i32 @fputs(i8* %6, i32* %82)
%84 = tail call i32 @fgetc(i32* %81)
%85 = icmp eq i32 %84, -1
br i1 %85, label %98, label %86
86: ; preds = %80, %92
%87 = phi i32 [ %96, %92 ], [ %84, %80 ]
%88 = phi i32 [ %95, %92 ], [ 1, %80 ]
%89 = icmp sgt i32 %88, 71
br i1 %89, label %90, label %92
90: ; preds = %86
%91 = tail call i32 @fputc(i32 10, i32* %82)
br label %92
92: ; preds = %90, %86
%93 = phi i32 [ 0, %90 ], [ %88, %86 ]
%94 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %82, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %87)
%95 = add nsw i32 %93, 6
%96 = tail call i32 @fgetc(i32* %81)
%97 = icmp eq i32 %96, -1
br i1 %97, label %98, label %86
98: ; preds = %92, %80
%99 = tail call i32 @fputs(i8* %9, i32* %82)
ret i32 0
}