#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";
  int no_quote = 0;
  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    $0x50,%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)
movl   $0x0,-0x24(%rbp)
mov    0x2e16(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
mov    0x2de8(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe13(%rip),%rdx
call   10a0 <getopt@plt>
mov    %eax,-0x3c(%rbp)
cmp    $0xffffffff,%eax
je     1279 <main+0xe9>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x44(%rbp)
sub    $0x68,%eax
je     125a <main+0xca>
jmp    1212 <main+0x82>
mov    -0x44(%rbp),%eax
sub    $0x70,%eax
je     1234 <main+0xa4>
jmp    1223 <main+0x93>
mov    -0x44(%rbp),%eax
sub    $0x73,%eax
je     1247 <main+0xb7>
jmp    1274 <main+0xe4>
mov    0x2dbd(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
jmp    1274 <main+0xe4>
mov    0x2daa(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
jmp    1274 <main+0xe4>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xd9f(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   10b0 <exit@plt>
jmp    11df <main+0x4f>
mov    0x2d58(%rip),%rax
mov    (%rax),%eax
cmp    -0x8(%rbp),%eax
jge    13eb <main+0x25b>
mov    -0x10(%rbp),%rax
mov    0x2d42(%rip),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd9e(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1324 <main+0x194>
mov    -0x10(%rbp),%rax
mov    0x2d1a(%rip),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd78(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x30(%rbp)
cmp    $0x0,%rax
jne    131f <main+0x18f>
mov    0x2ce2(%rip),%rax
movslq (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x2ce4(%rip),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xd44(%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    1324 <main+0x194>
mov    0x2cad(%rip),%rax
mov    (%rax),%eax
add    $0x1,%eax
cmp    -0x8(%rbp),%eax
jge    13e6 <main+0x256>
mov    -0x10(%rbp),%rax
mov    0x2c94(%rip),%rcx
mov    (%rcx),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xceb(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     13e1 <main+0x251>
mov    -0x10(%rbp),%rax
mov    0x2c67(%rip),%rcx
mov    (%rcx),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xcd1(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
jne    13dc <main+0x24c>
mov    0x2c2a(%rip),%rax
movslq (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x2c2c(%rip),%rcx
mov    (%rcx),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xc87(%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    13e1 <main+0x251>
jmp    13e6 <main+0x256>
jmp    13eb <main+0x25b>
mov    -0x18(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1040 <fputs@plt>
movl   $0x1,-0x40(%rbp)
mov    -0x30(%rbp),%rdi
call   1050 <fgetc@plt>
mov    %eax,-0x3c(%rbp)
cmp    $0xffffffff,%eax
je     1458 <main+0x2c8>
cmpl   $0x48,-0x40(%rbp)
jl     1435 <main+0x2a5>
mov    -0x38(%rbp),%rsi
lea    0xc17(%rip),%rdi
call   1040 <fputs@plt>
movl   $0x0,-0x40(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x3c(%rbp),%edx
lea    0xc14(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x40(%rbp),%eax
add    $0x6,%eax
mov    %eax,-0x40(%rbp)
jmp    13ff <main+0x26f>
mov    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1040 <fputs@plt>
xor    %eax,%eax
add    $0x50,%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    0xe73(%rip),%rax
mov    %rax,0x8(%rsp)
lea    0xe66(%rip),%rax
mov    %rax,0x10(%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
%12 = 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
store i32 0, i32* %8
%13 = load i32*, i32** @stdin
store i32* %13, i32** %9
%14 = load i32*, i32** @stdout
store i32* %14, i32** %10
br label %15
15: ; preds = %32, %2
%16 = load i32, i32* %4
%17 = load i8**, i8*** %5
%18 = call i32 @getopt(i32 %16, i8** %17, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
store i32 %18, i32* %11
%19 = icmp ne i32 %18, -1
br i1 %19, label %20, label %33
20: ; preds = %15
%21 = load i32, i32* %11
switch i32 %21, label %32 [
i32 112, label %22
i32 115, label %24
i32 104, label %26
]
22: ; preds = %20
%23 = load i8*, i8** @optarg
store i8* %23, i8** %6
br label %32
24: ; preds = %20
%25 = load i8*, i8** @optarg
store i8* %25, i8** %7
br label %32
26: ; preds = %20
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 0
%29 = load i8*, i8** %28
%30 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0), i8* %29)
%31 = call i32 @exit(i32 0)
unreachable
32: ; preds = %20, %24, %22
br label %15
33: ; preds = %15
%34 = load i32, i32* @optind
%35 = load i32, i32* %4
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %111
37: ; preds = %33
%38 = load i8**, i8*** %5
%39 = load i32, i32* @optind
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8*, i8** %38, i64 %40
%42 = load i8*, i8** %41
%43 = call i64 @strcmp(i8* %42, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%44 = icmp ne i64 %43, 0
br i1 %44, label %45, label %69
45: ; preds = %37
%46 = load i8**, i8*** %5
%47 = load i32, i32* @optind
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8*, i8** %46, i64 %48
%50 = load i8*, i8** %49
%51 = call i32* @fopen(i8* %50, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i32* %51, i32** %9
%52 = icmp ne i32* %51, null
br i1 %52, label %68, label %53
53: ; preds = %45
%54 = load i32, i32* @stderr
%55 = sext i32 %54 to i64
%56 = inttoptr i64 %55 to i32*
%57 = load i8**, i8*** %5
%58 = load i32, i32* @optind
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8*, i8** %57, i64 %59
%61 = load i8*, i8** %60
%62 = call i32 (i32*, i8*, ...) @fprintf(i32* %56, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i8* %61)
%63 = load i8**, i8*** %5
%64 = getelementptr inbounds i8*, i8** %63, i64 0
%65 = load i8*, i8** %64
%66 = call i32 @perror(i8* %65)
%67 = call i32 @exit(i32 1)
unreachable
68: ; preds = %45
br label %69
69: ; preds = %68, %37
%70 = load i32, i32* @optind
%71 = add nsw i32 %70, 1
%72 = load i32, i32* %4
%73 = icmp slt i32 %71, %72
br i1 %73, label %74, label %110
74: ; preds = %69
%75 = load i8**, i8*** %5
%76 = load i32, i32* @optind
%77 = add nsw i32 %76, 1
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i8*, i8** %75, i64 %78
%80 = load i8*, i8** %79
%81 = call i64 @strcmp(i8* %80, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%82 = icmp ne i64 %81, 0
br i1 %82, label %83, label %109
83: ; preds = %74
%84 = load i8**, i8*** %5
%85 = load i32, i32* @optind
%86 = add nsw i32 %85, 1
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i8*, i8** %84, i64 %87
%89 = load i8*, i8** %88
%90 = call i32* @fopen(i8* %89, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
store i32* %90, i32** %10
%91 = icmp ne i32* %90, null
br i1 %91, label %108, label %92
92: ; preds = %83
%93 = load i32, i32* @stderr
%94 = sext i32 %93 to i64
%95 = inttoptr i64 %94 to i32*
%96 = load i8**, i8*** %5
%97 = load i32, i32* @optind
%98 = add nsw i32 %97, 1
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i8*, i8** %96, i64 %99
%101 = load i8*, i8** %100
%102 = call i32 (i32*, i8*, ...) @fprintf(i32* %95, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i8* %101)
%103 = load i8**, i8*** %5
%104 = getelementptr inbounds i8*, i8** %103, i64 0
%105 = load i8*, i8** %104
%106 = call i32 @perror(i8* %105)
%107 = call i32 @exit(i32 1)
unreachable
108: ; preds = %83
br label %109
109: ; preds = %108, %74
br label %110
110: ; preds = %109, %69
br label %111
111: ; preds = %110, %33
%112 = load i8*, i8** %6
%113 = load i32*, i32** %10
%114 = call i32 @fputs(i8* %112, i32* %113)
store i32 1, i32* %12
br label %115
115: ; preds = %125, %111
%116 = load i32*, i32** %9
%117 = call i32 @fgetc(i32* %116)
store i32 %117, i32* %11
%118 = icmp ne i32 %117, -1
br i1 %118, label %119, label %131
119: ; preds = %115
%120 = load i32, i32* %12
%121 = icmp sge i32 %120, 72
br i1 %121, label %122, label %125
122: ; preds = %119
%123 = load i32*, i32** %10
%124 = call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* %123)
store i32 0, i32* %12
br label %125
125: ; preds = %122, %119
%126 = load i32*, i32** %10
%127 = load i32, i32* %11
%128 = call i32 (i32*, i8*, ...) @fprintf(i32* %126, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %127)
%129 = load i32, i32* %12
%130 = add nsw i32 %129, 6
store i32 %130, i32* %12
br label %115
131: ; preds = %115
%132 = load i8*, i8** %7
%133 = load i32*, i32** %10
%134 = call i32 @fputs(i8* %132, i32* %133)
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 = %14, %2
%6 = phi i8* [ %15, %14 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), %2 ]
%7 = phi i8* [ %9, %14 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %2 ]
br label %8
8: ; preds = %5, %12
%9 = phi i8* [ %7, %5 ], [ %13, %12 ]
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 %8
14: ; preds = %10
%15 = load i8*, i8** @optarg
br label %5
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* %9, 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* %6, i32* %82)
ret i32 0
}