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

/* Variables and functions */
int /*<<< orphan*/ exit(int);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
char *strdup(char *);
char *read_and_fix_line(char *file_name, FILE *f, char *old) {
  char buf[1000];
  int i, j;
  if (fgets(buf, sizeof(buf), f)) {
    buf[sizeof(buf) - 1] = 0;
    i = 0;
    for (j = 0; j < sizeof(buf) && buf[j] != '\n' && buf[j]; j++) {
      switch (buf[j]) {
      case ' ':
      case '\t':
        break;
      case '\\':
        j++;
        switch (buf[j]) {
        case 's':
          buf[i++] = ' ';
          break;
        case 'n':
          buf[i++] = '\n';
          break;
        case 'r':
          buf[i++] = '\r';
          break;
        case 't':
          buf[i++] = '\t';
          break;
        case 'f':
          buf[i++] = '\f';
          break;
        case '\\':
          buf[i++] = '\\';
          break;
        case 'c':
          j++;
          if (buf[j] == '-') {
            j++;
            buf[i++] = buf[j] & 0x1f;
          } else {
            fprintf(stderr, "bad control character (\\%c%c%c)\n", buf[j - 1],
                    buf[j], buf[j + 1]);
            exit(1);
          }
          break;
        default:
          fprintf(stderr, "bad escape char. (\\%c) in configuration file\n",
                  buf[j]);
          exit(1);
        }
        break;
      default:
        buf[i++] = buf[j];
        break;
      }
    }
    if (j == sizeof(buf)) {
      fprintf(stderr, "fwords: *very* long configuration line in file %s\n",
              file_name);
      exit(1);
    }
    buf[i] = 0;
    return strdup(buf);
  } else {
    return old;
  }
}


x86 assembly (clang, -O0):
<read_and_fix_line>:
push   %rbp
mov    %rsp,%rbp
sub    $0x430,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
lea    -0x410(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x3e8,%esi
call   1030 <fgets@plt>
cmp    $0x0,%rax
je     14e9 <read_and_fix_line+0x3a9>
movb   $0x0,-0x29(%rbp)
movl   $0x0,-0x414(%rbp)
movl   $0x0,-0x418(%rbp)
movslq -0x418(%rbp),%rcx
xor    %eax,%eax
cmp    $0x3e8,%rcx
mov    %al,-0x419(%rbp)
jae    11e5 <read_and_fix_line+0xa5>
movslq -0x418(%rbp),%rax
movsbl -0x410(%rbp,%rax,1),%ecx
ff
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x419(%rbp)
je     11e5 <read_and_fix_line+0xa5>
movslq -0x418(%rbp),%rax
movsbl -0x410(%rbp,%rax,1),%eax
ff
cmp    $0x0,%eax
setne  %al
mov    %al,-0x419(%rbp)
mov    -0x419(%rbp),%al
test   $0x1,%al
jne    11f8 <read_and_fix_line+0xb8>
jmp    148d <read_and_fix_line+0x34d>
movslq -0x418(%rbp),%rax
movsbl -0x410(%rbp,%rax,1),%eax
ff
mov    %eax,-0x420(%rbp)
sub    $0x9,%eax
je     1243 <read_and_fix_line+0x103>
jmp    121b <read_and_fix_line+0xdb>
mov    -0x420(%rbp),%eax
sub    $0x20,%eax
je     1243 <read_and_fix_line+0x103>
jmp    122f <read_and_fix_line+0xef>
mov    -0x420(%rbp),%eax
sub    $0x5c,%eax
je     1248 <read_and_fix_line+0x108>
jmp    144c <read_and_fix_line+0x30c>
jmp    1474 <read_and_fix_line+0x334>
mov    -0x418(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x418(%rbp)
movslq -0x418(%rbp),%rax
movsbl -0x410(%rbp,%rax,1),%eax
ff
add    $0xffffffa4,%eax
mov    %eax,%ecx
mov    %rcx,-0x428(%rbp)
sub    $0x18,%eax
ja     1417 <read_and_fix_line+0x2d7>
mov    -0x428(%rbp),%rax
lea    0xd77(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x414(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x414(%rbp)
cltq
movb   $0x20,-0x410(%rbp,%rax,1)
20
jmp    1447 <read_and_fix_line+0x307>
mov    -0x414(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x414(%rbp)
cltq
movb   $0xa,-0x410(%rbp,%rax,1)
0a
jmp    1447 <read_and_fix_line+0x307>
mov    -0x414(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x414(%rbp)
cltq
movb   $0xd,-0x410(%rbp,%rax,1)
0d
jmp    1447 <read_and_fix_line+0x307>
mov    -0x414(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x414(%rbp)
cltq
movb   $0x9,-0x410(%rbp,%rax,1)
09
jmp    1447 <read_and_fix_line+0x307>
mov    -0x414(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x414(%rbp)
cltq
movb   $0xc,-0x410(%rbp,%rax,1)
0c
jmp    1447 <read_and_fix_line+0x307>
mov    -0x414(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x414(%rbp)
cltq
movb   $0x5c,-0x410(%rbp,%rax,1)
5c
jmp    1447 <read_and_fix_line+0x307>
mov    -0x418(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x418(%rbp)
movslq -0x418(%rbp),%rax
movsbl -0x410(%rbp,%rax,1),%eax
ff
cmp    $0x2d,%eax
jne    13bb <read_and_fix_line+0x27b>
mov    -0x418(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x418(%rbp)
movslq -0x418(%rbp),%rax
movsbl -0x410(%rbp,%rax,1),%eax
ff
and    $0x1f,%eax
mov    %al,%cl
mov    -0x414(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x414(%rbp)
cltq
mov    %cl,-0x410(%rbp,%rax,1)
jmp    1412 <read_and_fix_line+0x2d2>
mov    0x2c1e(%rip),%rax
mov    (%rax),%edi
mov    -0x418(%rbp),%eax
sub    $0x1,%eax
cltq
movsbl -0x410(%rbp,%rax,1),%edx
ff
movslq -0x418(%rbp),%rax
movsbl -0x410(%rbp,%rax,1),%ecx
ff
mov    -0x418(%rbp),%eax
add    $0x1,%eax
cltq
movsbl -0x410(%rbp,%rax,1),%r8d
ff ff
lea    0xc63(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
jmp    1447 <read_and_fix_line+0x307>
mov    0x2bc2(%rip),%rax
mov    (%rax),%edi
movslq -0x418(%rbp),%rax
movsbl -0x410(%rbp,%rax,1),%edx
ff
lea    0xc4f(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
jmp    1474 <read_and_fix_line+0x334>
movslq -0x418(%rbp),%rax
mov    -0x410(%rbp,%rax,1),%cl
mov    -0x414(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x414(%rbp)
cltq
mov    %cl,-0x410(%rbp,%rax,1)
jmp    1479 <read_and_fix_line+0x339>
mov    -0x418(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x418(%rbp)
jmp    118e <read_and_fix_line+0x4e>
movslq -0x418(%rbp),%rax
cmp    $0x3e8,%rax
jne    14c5 <read_and_fix_line+0x385>
mov    0x2b39(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xbff(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
movslq -0x414(%rbp),%rax
movb   $0x0,-0x410(%rbp,%rax,1)
lea    -0x410(%rbp),%rdi
call   1060 <strdup@plt>
mov    %rax,-0x8(%rbp)
jmp    14f1 <read_and_fix_line+0x3b1>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x430,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_and_fix_line>:
push   %r15
push   %r14
push   %rbx
sub    $0x3f0,%rsp
mov    %rdx,%rbx
mov    %rsi,%rdx
mov    %rdi,%r14
mov    %rsp,%r15
mov    %r15,%rdi
mov    $0x3e8,%esi
call   1030 <fgets@plt>
test   %rax,%rax
je     122f <read_and_fix_line+0xef>
movb   $0x0,0x3e7(%rsp)
xor    %ecx,%ecx
lea    0xe81(%rip),%r8
xor    %eax,%eax
jmp    11a7 <read_and_fix_line+0x67>
mov    $0xa,%dil
cs nopw 0x0(%rax,%rax,1)
movslq %eax,%rdx
add    $0x1,%eax
mov    %dil,(%rsp,%rdx,1)
mov    %ecx,%edx
lea    0x1(%rdx),%ecx
cmp    $0x3e7,%edx
jae    1216 <read_and_fix_line+0xd6>
mov    %ecx,%ebx
movsbl (%rsp,%rbx,1),%edi
test   %edi,%edi
je     121e <read_and_fix_line+0xde>
cmp    $0xa,%dil
je     121e <read_and_fix_line+0xde>
cmp    $0x9,%edi
je     119a <read_and_fix_line+0x5a>
cmp    $0x20,%edi
je     119a <read_and_fix_line+0x5a>
cmp    $0x5c,%edi
jne    1190 <read_and_fix_line+0x50>
movsbl 0x1(%rsp,%rbx,1),%edx
lea    -0x5c(%rdx),%esi
cmp    $0x18,%esi
ja     123f <read_and_fix_line+0xff>
lea    0x1(%rbx),%rcx
mov    $0x20,%dil
movslq (%r8,%rsi,4),%rsi
add    %r8,%rsi
jmp    *%rsi
mov    $0x5c,%dil
jmp    1190 <read_and_fix_line+0x50>
movsbl 0x2(%rbx,%r15,1),%ecx
cmp    $0x2d,%ecx
jne    1260 <read_and_fix_line+0x120>
movzbl 0x3(%rsp,%rbx,1),%edi
add    $0x3,%rbx
and    $0x1f,%dil
mov    %ebx,%ecx
jmp    1190 <read_and_fix_line+0x50>
mov    $0xc,%dil
jmp    1190 <read_and_fix_line+0x50>
mov    $0xd,%dil
jmp    1190 <read_and_fix_line+0x50>
mov    $0x9,%dil
jmp    1190 <read_and_fix_line+0x50>
cmp    $0x3e8,%ecx
je     128c <read_and_fix_line+0x14c>
cltq
movb   $0x0,(%rsp,%rax,1)
mov    %rsp,%rdi
call   1060 <strdup@plt>
mov    %rax,%rbx
mov    %rbx,%rax
add    $0x3f0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret
mov    0x2d9a(%rip),%rax
mov    (%rax),%edi
lea    0xe36(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
mov    0x2d79(%rip),%rax
mov    (%rax),%edi
movsbl 0x3(%rbx,%r15,1),%r8d
lea    0xdee(%rip),%rsi
mov    $0x63,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
mov    0x2d4d(%rip),%rax
mov    (%rax),%edi
lea    0xe17(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [33 x i8] c"bad control character (\\%c%c%c)\0A\00"
@.str.1 = [46 x i8] c"bad escape char. (\\%c) in configuration file\0A\00"
@.str.2 = [51 x i8] c"fwords: *very* long configuration line in file %s\0A\00"
define i8* @read_and_fix_line(i8* %0, i32* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32*
%7 = alloca i8*
%8 = alloca [1000 x i8]
%9 = alloca i32
%10 = alloca i32
store i8* %0, i8** %5
store i32* %1, i32** %6
store i8* %2, i8** %7
%11 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 0
%12 = load i32*, i32** %6
%13 = call i64 @fgets(i8* %11, i32 1000, i32* %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %165
15: ; preds = %3
%16 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 999
store i8 0, i8* %16
store i32 0, i32* %9
store i32 0, i32* %10
br label %17
17: ; preds = %147, %15
%18 = load i32, i32* %10
%19 = sext i32 %18 to i64
%20 = icmp ult i64 %19, 1000
br i1 %20, label %21, label %35
21: ; preds = %17
%22 = load i32, i32* %10
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %23
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 10
br i1 %27, label %28, label %35
28: ; preds = %21
%29 = load i32, i32* %10
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %30
%32 = load i8, i8* %31
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 0
br label %35
35: ; preds = %28, %21, %17
%36 = phi i1 [ false, %21 ], [ false, %17 ], [ %34, %28 ]
br i1 %36, label %37, label %150
37: ; preds = %35
%38 = load i32, i32* %10
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %39
%41 = load i8, i8* %40
%42 = sext i8 %41 to i32
switch i32 %42, label %137 [
i32 32, label %43
i32 9, label %43
i32 92, label %44
]
43: ; preds = %37, %37
br label %146
44: ; preds = %37
%45 = load i32, i32* %10
%46 = add nsw i32 %45, 1
store i32 %46, i32* %10
%47 = load i32, i32* %10
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %48
%50 = load i8, i8* %49
%51 = sext i8 %50 to i32
switch i32 %51, label %127 [
i32 115, label %52
i32 110, label %57
i32 114, label %62
i32 116, label %67
i32 102, label %72
i32 92, label %77
i32 99, label %82
]
52: ; preds = %44
%53 = load i32, i32* %9
%54 = add nsw i32 %53, 1
store i32 %54, i32* %9
%55 = sext i32 %53 to i64
%56 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %55
store i8 32, i8* %56
br label %136
57: ; preds = %44
%58 = load i32, i32* %9
%59 = add nsw i32 %58, 1
store i32 %59, i32* %9
%60 = sext i32 %58 to i64
%61 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %60
store i8 10, i8* %61
br label %136
62: ; preds = %44
%63 = load i32, i32* %9
%64 = add nsw i32 %63, 1
store i32 %64, i32* %9
%65 = sext i32 %63 to i64
%66 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %65
store i8 13, i8* %66
br label %136
67: ; preds = %44
%68 = load i32, i32* %9
%69 = add nsw i32 %68, 1
store i32 %69, i32* %9
%70 = sext i32 %68 to i64
%71 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %70
store i8 9, i8* %71
br label %136
72: ; preds = %44
%73 = load i32, i32* %9
%74 = add nsw i32 %73, 1
store i32 %74, i32* %9
%75 = sext i32 %73 to i64
%76 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %75
store i8 12, i8* %76
br label %136
77: ; preds = %44
%78 = load i32, i32* %9
%79 = add nsw i32 %78, 1
store i32 %79, i32* %9
%80 = sext i32 %78 to i64
%81 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %80
store i8 92, i8* %81
br label %136
82: ; preds = %44
%83 = load i32, i32* %10
%84 = add nsw i32 %83, 1
store i32 %84, i32* %10
%85 = load i32, i32* %10
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %86
%88 = load i8, i8* %87
%89 = sext i8 %88 to i32
%90 = icmp eq i32 %89, 45
br i1 %90, label %91, label %105
91: ; preds = %82
%92 = load i32, i32* %10
%93 = add nsw i32 %92, 1
store i32 %93, i32* %10
%94 = load i32, i32* %10
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %95
%97 = load i8, i8* %96
%98 = sext i8 %97 to i32
%99 = and i32 %98, 31
%100 = trunc i32 %99 to i8
%101 = load i32, i32* %9
%102 = add nsw i32 %101, 1
store i32 %102, i32* %9
%103 = sext i32 %101 to i64
%104 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %103
store i8 %100, i8* %104
br label %126
105: ; preds = %82
%106 = load i32, i32* @stderr
%107 = load i32, i32* %10
%108 = sub nsw i32 %107, 1
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %109
%111 = load i8, i8* %110
%112 = sext i8 %111 to i32
%113 = load i32, i32* %10
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %114
%116 = load i8, i8* %115
%117 = sext i8 %116 to i32
%118 = load i32, i32* %10
%119 = add nsw i32 %118, 1
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %120
%122 = load i8, i8* %121
%123 = sext i8 %122 to i32
%124 = call i32 (i32, i8*, ...) @fprintf(i32 %106, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i32 %112, i32 %117, i32 %123)
%125 = call i32 @exit(i32 1)
unreachable
126: ; preds = %91
br label %136
127: ; preds = %44
%128 = load i32, i32* @stderr
%129 = load i32, i32* %10
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %130
%132 = load i8, i8* %131
%133 = sext i8 %132 to i32
%134 = call i32 (i32, i8*, ...) @fprintf(i32 %128, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0), i32 %133)
%135 = call i32 @exit(i32 1)
unreachable
136: ; preds = %126, %77, %72, %67, %62, %57, %52
br label %146
137: ; preds = %37
%138 = load i32, i32* %10
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %139
%141 = load i8, i8* %140
%142 = load i32, i32* %9
%143 = add nsw i32 %142, 1
store i32 %143, i32* %9
%144 = sext i32 %142 to i64
%145 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %144
store i8 %141, i8* %145
br label %146
146: ; preds = %137, %136, %43
br label %147
147: ; preds = %146
%148 = load i32, i32* %10
%149 = add nsw i32 %148, 1
store i32 %149, i32* %10
br label %17
150: ; preds = %35
%151 = load i32, i32* %10
%152 = sext i32 %151 to i64
%153 = icmp eq i64 %152, 1000
br i1 %153, label %154, label %159
154: ; preds = %150
%155 = load i32, i32* @stderr
%156 = load i8*, i8** %5
%157 = call i32 (i32, i8*, ...) @fprintf(i32 %155, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i8* %156)
%158 = call i32 @exit(i32 1)
unreachable
159: ; preds = %150
%160 = load i32, i32* %9
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %161
store i8 0, i8* %162
%163 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 0
%164 = call i8* @strdup(i8* %163)
store i8* %164, i8** %4
br label %167
165: ; preds = %3
%166 = load i8*, i8** %7
store i8* %166, i8** %4
br label %167
167: ; preds = %165, %159
%168 = load i8*, i8** %4
ret i8* %168
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [33 x i8] c"bad control character (\\%c%c%c)\0A\00"
@.str.1 = [46 x i8] c"bad escape char. (\\%c) in configuration file\0A\00"
@.str.2 = [51 x i8] c"fwords: *very* long configuration line in file %s\0A\00"
define i8* @read_and_fix_line(i8* %0, i32* nocapture %1, i8* readnone %2) {
%4 = alloca [1000 x i8]
%5 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%6 = call i64 @fgets(i8* %5, i32 1000, i32* %1)
%7 = icmp eq i64 %6, 0
br i1 %7, label %78, label %8
8: ; preds = %3
%9 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 999
store i8 0, i8* %9
br label %10
10: ; preds = %8, %62
%11 = phi i32 [ 0, %8 ], [ %65, %62 ]
%12 = phi i32 [ 0, %8 ], [ %63, %62 ]
%13 = zext i32 %11 to i64
%14 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 %13
%15 = load i8, i8* %14
switch i8 %15, label %16 [
i8 10, label %73
i8 0, label %73
]
16: ; preds = %10
%17 = sext i8 %15 to i32
switch i32 %17, label %56 [
i32 32, label %62
i32 9, label %62
i32 92, label %18
]
18: ; preds = %16
%19 = add nuw nsw i32 %11, 1
%20 = zext i32 %19 to i64
%21 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 %20
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
switch i32 %23, label %51 [
i32 115, label %56
i32 110, label %24
i32 114, label %25
i32 116, label %26
i32 102, label %27
i32 92, label %28
i32 99, label %29
]
24: ; preds = %18
br label %56
25: ; preds = %18
br label %56
26: ; preds = %18
br label %56
27: ; preds = %18
br label %56
28: ; preds = %18
br label %56
29: ; preds = %18
%30 = add nuw nsw i32 %11, 2
%31 = zext i32 %30 to i64
%32 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 %31
%33 = load i8, i8* %32
%34 = icmp eq i8 %33, 45
br i1 %34, label %35, label %41
35: ; preds = %29
%36 = add nuw nsw i32 %11, 3
%37 = zext i32 %36 to i64
%38 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 %37
%39 = load i8, i8* %38
%40 = and i8 %39, 31
br label %56
41: ; preds = %29
%42 = sext i8 %33 to i32
%43 = load i32, i32* @stderr
%44 = add nuw nsw i32 %11, 3
%45 = zext i32 %44 to i64
%46 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 %45
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
%49 = call i32 (i32, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i32 99, i32 %42, i32 %48)
%50 = call i32 @exit(i32 1)
unreachable
51: ; preds = %18
%52 = sext i8 %22 to i32
%53 = load i32, i32* @stderr
%54 = call i32 (i32, i8*, ...) @fprintf(i32 %53, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0), i32 %52)
%55 = call i32 @exit(i32 1)
unreachable
56: ; preds = %16, %18, %24, %25, %26, %27, %28, %35
%57 = phi i8 [ %40, %35 ], [ 92, %28 ], [ 12, %27 ], [ 9, %26 ], [ 13, %25 ], [ 10, %24 ], [ 32, %18 ], [ %15, %16 ]
%58 = phi i32 [ %36, %35 ], [ %19, %28 ], [ %19, %27 ], [ %19, %26 ], [ %19, %25 ], [ %19, %24 ], [ %19, %18 ], [ %11, %16 ]
%59 = add nsw i32 %12, 1
%60 = sext i32 %12 to i64
%61 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 %60
store i8 %57, i8* %61
br label %62
62: ; preds = %56, %16, %16
%63 = phi i32 [ %12, %16 ], [ %12, %16 ], [ %59, %56 ]
%64 = phi i32 [ %11, %16 ], [ %11, %16 ], [ %58, %56 ]
%65 = add nuw nsw i32 %64, 1
%66 = icmp ult i32 %64, 999
br i1 %66, label %10, label %67
67: ; preds = %62
%68 = icmp eq i32 %65, 1000
br i1 %68, label %69, label %73
69: ; preds = %67
%70 = load i32, i32* @stderr
%71 = call i32 (i32, i8*, ...) @fprintf(i32 %70, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%72 = call i32 @exit(i32 1)
unreachable
73: ; preds = %10, %10, %67
%74 = phi i32 [ %63, %67 ], [ %12, %10 ], [ %12, %10 ]
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 %75
store i8 0, i8* %76
%77 = call i8* @strdup(i8* %5)
br label %78
78: ; preds = %3, %73
%79 = phi i8* [ %77, %73 ], [ %2, %3 ]
ret i8* %79
}