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

/* Variables and functions */
char *_(char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof_unlocked(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int getline(char **, size_t *, int /*<<< orphan*/ *);
scalar_t__ isspace(char);
int makesymlink(char *, char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ *stdin;
scalar_t__ strcmp(char const *, char *);
int makesymlinks(const char *file) {
  char *buffer = NULL;
  size_t bufferlen = 0;
  int ret;
  int lineno;
  FILE *fp;
  if (strcmp(file, "-") == 0)
    fp = stdin;
  else {
    fp = fopen(file, "r");
    if (fp == NULL) {
      fprintf(stderr, _("%s: file open error: %m\n"), file);
      return 1;
    }
  }
  ret = 0;
  lineno = 0;
  while (!feof_unlocked(fp)) {
    ssize_t n = getline(&buffer, &bufferlen, fp);
    char *src;
    char *dest;
    char *cp = buffer;
    if (n < 0)
      break;
    if (buffer[n - 1] == '\n')
      buffer[n - 1] = '\0';
    ++lineno;
    while (isspace(*cp))
      ++cp;
    if (*cp == '\0')
      continue;
    src = cp;
    do
      ++cp;
    while (*cp != '\0' && !isspace(*cp));
    if (*cp != '\0')
      *cp++ = '\0';
    while (isspace(*cp))
      ++cp;
    if (*cp == '\0') {
      fprintf(stderr, _("No target in line %d\n"), lineno);
      ret = 1;
      continue;
    }
    dest = cp;
    do
      ++cp;
    while (*cp != '\0' && !isspace(*cp));
    if (*cp != '\0')
      *cp++ = '\0';
    ret |= makesymlink(src, dest);
  }
  fclose(fp);
  return ret;
}


x86 assembly (clang, -O0):
<makesymlinks>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe49(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    11d9 <makesymlinks+0x49>
mov    0x2e1b(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
jmp    1232 <makesymlinks+0xa2>
mov    -0x10(%rbp),%rdi
lea    0xe1e(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    122d <makesymlinks+0x9d>
mov    0x2dd9(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
lea    0xdf9(%rip),%rdi
call   1080 <_@plt>
mov    -0x54(%rbp),%edi
mov    %rax,%rsi
mov    -0x10(%rbp),%rdx
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    146c <makesymlinks+0x2dc>
jmp    1232 <makesymlinks+0xa2>
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x30(%rbp),%rdi
call   10b0 <feof_unlocked@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    125e <makesymlinks+0xce>
jmp    145d <makesymlinks+0x2cd>
mov    -0x30(%rbp),%rdx
lea    -0x18(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   10a0 <getline@plt>
mov    %eax,-0x34(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x50(%rbp)
cmpl   $0x0,-0x34(%rbp)
jge    1289 <makesymlinks+0xf9>
jmp    145d <makesymlinks+0x2cd>
mov    -0x18(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0xa,%eax
jne    12b4 <makesymlinks+0x124>
mov    -0x18(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x50(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isspace@plt>
cmp    $0x0,%rax
je     12e4 <makesymlinks+0x154>
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
jmp    12bd <makesymlinks+0x12d>
mov    -0x50(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    12f9 <makesymlinks+0x169>
jmp    1240 <makesymlinks+0xb0>
mov    -0x50(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x55(%rbp)
je     133a <makesymlinks+0x1aa>
mov    -0x50(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isspace@plt>
cmp    $0x0,%rax
setne  %al
xor    $0xff,%al
mov    %al,-0x55(%rbp)
mov    -0x55(%rbp),%al
test   $0x1,%al
jne    1301 <makesymlinks+0x171>
mov    -0x50(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1367 <makesymlinks+0x1d7>
mov    -0x50(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x50(%rbp)
movb   $0x0,(%rax)
jmp    136c <makesymlinks+0x1dc>
mov    -0x50(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isspace@plt>
cmp    $0x0,%rax
je     1393 <makesymlinks+0x203>
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
jmp    136c <makesymlinks+0x1dc>
mov    -0x50(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    13d7 <makesymlinks+0x247>
mov    0x2c2e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x5c(%rbp)
lea    0xc67(%rip),%rdi
call   1080 <_@plt>
mov    -0x5c(%rbp),%edi
mov    %rax,%rsi
mov    -0x28(%rbp),%edx
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x1,-0x24(%rbp)
jmp    1240 <makesymlinks+0xb0>
mov    -0x50(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x5d(%rbp)
je     1418 <makesymlinks+0x288>
mov    -0x50(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isspace@plt>
cmp    $0x0,%rax
setne  %al
xor    $0xff,%al
mov    %al,-0x5d(%rbp)
mov    -0x5d(%rbp),%al
test   $0x1,%al
jne    13df <makesymlinks+0x24f>
mov    -0x50(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1445 <makesymlinks+0x2b5>
mov    -0x50(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x50(%rbp)
movb   $0x0,(%rax)
mov    -0x40(%rbp),%rdi
mov    -0x48(%rbp),%rsi
call   1040 <makesymlink@plt>
or     -0x24(%rbp),%eax
mov    %eax,-0x24(%rbp)
jmp    1240 <makesymlinks+0xb0>
mov    -0x30(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x24(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<makesymlinks>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdi,%rbp
movq   $0x0,0x8(%rsp)
movq   $0x0,0x10(%rsp)
lea    0xe46(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1207 <makesymlinks+0x77>
lea    0xe37(%rip),%rsi
mov    %rbp,%rdi
call   1090 <fopen@plt>
mov    %rax,%r15
test   %rax,%rax
jne    1211 <makesymlinks+0x81>
mov    0x2df6(%rip),%rax
mov    (%rax),%ebx
lea    0xe19(%rip),%rdi
call   1080 <_@plt>
mov    %ebx,%edi
mov    %rax,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x1,%r14d
jmp    1228 <makesymlinks+0x98>
mov    0x2dda(%rip),%rax
mov    (%rax),%r15
mov    %r15,%rdi
call   10b0 <feof_unlocked@plt>
xor    %r14d,%r14d
test   %eax,%eax
je     123a <makesymlinks+0xaa>
mov    %r15,%rdi
call   1030 <fclose@plt>
mov    %r14d,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %r14d,%r14d
xor    %ebx,%ebx
jmp    126f <makesymlinks+0xdf>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r12,%rdi
mov    %r14,%rsi
call   1040 <makesymlink@plt>
mov    0x4(%rsp),%r14d
or     %eax,%r14d
mov    %r15,%rdi
call   10b0 <feof_unlocked@plt>
test   %eax,%eax
jne    1220 <makesymlinks+0x90>
lea    0x8(%rsp),%rdi
lea    0x10(%rsp),%rsi
mov    %r15,%rdx
call   10a0 <getline@plt>
test   %eax,%eax
js     1220 <makesymlinks+0x90>
mov    0x8(%rsp),%rcx
cltq
cmpb   $0xa,-0x1(%rax,%rcx,1)
jne    1298 <makesymlinks+0x108>
movb   $0x0,-0x1(%rcx,%rax,1)
lea    -0x1(%rcx),%r12
add    $0x1,%rcx
mov    %rcx,%rbp
movsbl 0x1(%r12),%edi
add    $0x1,%r12
call   1050 <isspace@plt>
lea    0x1(%rbp),%rcx
test   %rax,%rax
jne    12a0 <makesymlinks+0x110>
add    $0x1,%ebx
cmpb   $0x0,(%r12)
je     1263 <makesymlinks+0xd3>
mov    %r14d,0x4(%rsp)
nopw   0x0(%rax,%rax,1)
mov    %rbp,%r13
movzbl 0x0(%rbp),%eax
test   %al,%al
je     12f9 <makesymlinks+0x169>
movsbl %al,%edi
call   1050 <isspace@plt>
lea    0x1(%r13),%rbp
test   %rax,%rax
je     12d0 <makesymlinks+0x140>
cmpb   $0x0,-0x1(%rbp)
je     12f9 <makesymlinks+0x169>
movb   $0x0,-0x1(%rbp)
mov    %rbp,%r13
lea    -0x1(%r13),%r14
add    $0x1,%r13
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r13,%rbp
movsbl 0x1(%r14),%edi
add    $0x1,%r14
call   1050 <isspace@plt>
add    $0x1,%r13
test   %rax,%rax
jne    1310 <makesymlinks+0x180>
cmpb   $0x0,(%r14)
je     1360 <makesymlinks+0x1d0>
movzbl 0x0(%rbp),%eax
test   %al,%al
je     1250 <makesymlinks+0xc0>
movsbl %al,%edi
call   1050 <isspace@plt>
add    $0x1,%rbp
test   %rax,%rax
je     1330 <makesymlinks+0x1a0>
cmpb   $0x0,-0x1(%rbp)
je     1250 <makesymlinks+0xc0>
movb   $0x0,-0x1(%rbp)
jmp    1250 <makesymlinks+0xc0>
mov    0x2c71(%rip),%rax
mov    (%rax),%ebp
lea    0xcad(%rip),%rdi
call   1080 <_@plt>
mov    %ebp,%edi
mov    %rax,%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x1,%r14d
jmp    1263 <makesymlinks+0xd3>

LLVM IR (-O0):
@.str = [2 x i8] c"-\00"
@stdin = global i32* null
@.str.1 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.2 = [25 x i8] c"%s: file open error: %m\0A\00"
@.str.3 = [22 x i8] c"No target in line %d\0A\00"
define i32 @makesymlinks(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
store i8* %0, i8** %3
store i8* null, i8** %4
store i64 0, i64* %5
%13 = load i8*, i8** %3
%14 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %1
%17 = load i32*, i32** @stdin
store i32* %17, i32** %8
br label %29
18: ; preds = %1
%19 = load i8*, i8** %3
%20 = call i32* @fopen(i8* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %20, i32** %8
%21 = load i32*, i32** %8
%22 = icmp eq i32* %21, null
br i1 %22, label %23, label %28
23: ; preds = %18
%24 = load i32, i32* @stderr
%25 = call i8* @_(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%26 = load i8*, i8** %3
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* %25, i8* %26)
store i32 1, i32* %2
br label %155
28: ; preds = %18
br label %29
29: ; preds = %28, %16
store i32 0, i32* %6
store i32 0, i32* %7
br label %30
30: ; preds = %145, %114, %73, %29
%31 = load i32*, i32** %8
%32 = call i32 @feof_unlocked(i32* %31)
%33 = icmp ne i32 %32, 0
%34 = xor i1 %33, true
br i1 %34, label %35, label %151
35: ; preds = %30
%36 = load i32*, i32** %8
%37 = call i32 @getline(i8** %4, i64* %5, i32* %36)
store i32 %37, i32* %9
%38 = load i8*, i8** %4
store i8* %38, i8** %12
%39 = load i32, i32* %9
%40 = icmp slt i32 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %35
br label %151
42: ; preds = %35
%43 = load i8*, i8** %4
%44 = load i32, i32* %9
%45 = sub nsw i32 %44, 1
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, i8* %43, i64 %46
%48 = load i8, i8* %47
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 10
br i1 %50, label %51, label %57
51: ; preds = %42
%52 = load i8*, i8** %4
%53 = load i32, i32* %9
%54 = sub nsw i32 %53, 1
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, i8* %52, i64 %55
store i8 0, i8* %56
br label %57
57: ; preds = %51, %42
%58 = load i32, i32* %7
%59 = add nsw i32 %58, 1
store i32 %59, i32* %7
br label %60
60: ; preds = %65, %57
%61 = load i8*, i8** %12
%62 = load i8, i8* %61
%63 = call i64 @isspace(i8 signext %62)
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %68
65: ; preds = %60
%66 = load i8*, i8** %12
%67 = getelementptr inbounds i8, i8* %66, i32 1
store i8* %67, i8** %12
br label %60
68: ; preds = %60
%69 = load i8*, i8** %12
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %74
73: ; preds = %68
br label %30
74: ; preds = %68
%75 = load i8*, i8** %12
store i8* %75, i8** %10
br label %76
76: ; preds = %90, %74
%77 = load i8*, i8** %12
%78 = getelementptr inbounds i8, i8* %77, i32 1
store i8* %78, i8** %12
br label %79
79: ; preds = %76
%80 = load i8*, i8** %12
%81 = load i8, i8* %80
%82 = sext i8 %81 to i32
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %90
84: ; preds = %79
%85 = load i8*, i8** %12
%86 = load i8, i8* %85
%87 = call i64 @isspace(i8 signext %86)
%88 = icmp ne i64 %87, 0
%89 = xor i1 %88, true
br label %90
90: ; preds = %84, %79
%91 = phi i1 [ false, %79 ], [ %89, %84 ]
br i1 %91, label %76, label %92
92: ; preds = %90
%93 = load i8*, i8** %12
%94 = load i8, i8* %93
%95 = sext i8 %94 to i32
%96 = icmp ne i32 %95, 0
br i1 %96, label %97, label %100
97: ; preds = %92
%98 = load i8*, i8** %12
%99 = getelementptr inbounds i8, i8* %98, i32 1
store i8* %99, i8** %12
store i8 0, i8* %98
br label %100
100: ; preds = %97, %92
br label %101
101: ; preds = %106, %100
%102 = load i8*, i8** %12
%103 = load i8, i8* %102
%104 = call i64 @isspace(i8 signext %103)
%105 = icmp ne i64 %104, 0
br i1 %105, label %106, label %109
106: ; preds = %101
%107 = load i8*, i8** %12
%108 = getelementptr inbounds i8, i8* %107, i32 1
store i8* %108, i8** %12
br label %101
109: ; preds = %101
%110 = load i8*, i8** %12
%111 = load i8, i8* %110
%112 = sext i8 %111 to i32
%113 = icmp eq i32 %112, 0
br i1 %113, label %114, label %119
114: ; preds = %109
%115 = load i32, i32* @stderr
%116 = call i8* @_(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%117 = load i32, i32* %7
%118 = call i32 (i32, i8*, ...) @fprintf(i32 %115, i8* %116, i32 %117)
store i32 1, i32* %6
br label %30
119: ; preds = %109
%120 = load i8*, i8** %12
store i8* %120, i8** %11
br label %121
121: ; preds = %135, %119
%122 = load i8*, i8** %12
%123 = getelementptr inbounds i8, i8* %122, i32 1
store i8* %123, i8** %12
br label %124
124: ; preds = %121
%125 = load i8*, i8** %12
%126 = load i8, i8* %125
%127 = sext i8 %126 to i32
%128 = icmp ne i32 %127, 0
br i1 %128, label %129, label %135
129: ; preds = %124
%130 = load i8*, i8** %12
%131 = load i8, i8* %130
%132 = call i64 @isspace(i8 signext %131)
%133 = icmp ne i64 %132, 0
%134 = xor i1 %133, true
br label %135
135: ; preds = %129, %124
%136 = phi i1 [ false, %124 ], [ %134, %129 ]
br i1 %136, label %121, label %137
137: ; preds = %135
%138 = load i8*, i8** %12
%139 = load i8, i8* %138
%140 = sext i8 %139 to i32
%141 = icmp ne i32 %140, 0
br i1 %141, label %142, label %145
142: ; preds = %137
%143 = load i8*, i8** %12
%144 = getelementptr inbounds i8, i8* %143, i32 1
store i8* %144, i8** %12
store i8 0, i8* %143
br label %145
145: ; preds = %142, %137
%146 = load i8*, i8** %10
%147 = load i8*, i8** %11
%148 = call i32 @makesymlink(i8* %146, i8* %147)
%149 = load i32, i32* %6
%150 = or i32 %149, %148
store i32 %150, i32* %6
br label %30
151: ; preds = %41, %30
%152 = load i32*, i32** %8
%153 = call i32 @fclose(i32* %152)
%154 = load i32, i32* %6
store i32 %154, i32* %2
br label %155
155: ; preds = %151, %23
%156 = load i32, i32* %2
ret i32 %156
}

LLVM IR (-O2):
@.str = [2 x i8] c"-\00"
@stdin = global i32* null
@.str.1 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.2 = [25 x i8] c"%s: file open error: %m\0A\00"
@.str.3 = [22 x i8] c"No target in line %d\0A\00"
define i32 @makesymlinks(i8* %0) {
%2 = alloca i8*
%3 = alloca i64
%4 = bitcast i8** %2 to i8*
store i8* null, i8** %2
%5 = bitcast i64* %3 to i8*
store i64 0, i64* %3
%6 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = load i32*, i32** @stdin
br label %17
10: ; preds = %1
%11 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%12 = icmp eq i32* %11, null
br i1 %12, label %13, label %17
13: ; preds = %10
%14 = load i32, i32* @stderr
%15 = tail call i8* @_(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%16 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* %15, i8* %0)
br label %95
17: ; preds = %10, %8
%18 = phi i32* [ %9, %8 ], [ %11, %10 ]
%19 = call i32 @feof_unlocked(i32* %18)
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %92
21: ; preds = %17, %88
%22 = phi i32 [ %89, %88 ], [ 0, %17 ]
%23 = phi i32 [ %42, %88 ], [ 0, %17 ]
%24 = call i32 @getline(i8** %2, i64* %3, i32* %18)
%25 = load i8*, i8** %2
%26 = icmp slt i32 %24, 0
br i1 %26, label %92, label %27
27: ; preds = %21
%28 = add nsw i32 %24, -1
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, i8* %25, i64 %29
%31 = load i8, i8* %30
%32 = icmp eq i8 %31, 10
br i1 %32, label %33, label %34
33: ; preds = %27
store i8 0, i8* %30
br label %34
34: ; preds = %33, %27
br label %35
35: ; preds = %34, %35
%36 = phi i8* [ %40, %35 ], [ %25, %34 ]
%37 = load i8, i8* %36
%38 = call i64 @isspace(i8 signext %37)
%39 = icmp eq i64 %38, 0
%40 = getelementptr inbounds i8, i8* %36, i64 1
br i1 %39, label %41, label %35
41: ; preds = %35
%42 = add nuw nsw i32 %23, 1
%43 = load i8, i8* %36
%44 = icmp eq i8 %43, 0
br i1 %44, label %88, label %45
45: ; preds = %41, %50
%46 = phi i8* [ %47, %50 ], [ %36, %41 ]
%47 = getelementptr inbounds i8, i8* %46, i64 1
%48 = load i8, i8* %47
%49 = icmp eq i8 %48, 0
br i1 %49, label %58, label %50
50: ; preds = %45
%51 = call i64 @isspace(i8 signext %48)
%52 = icmp eq i64 %51, 0
br i1 %52, label %45, label %53
53: ; preds = %50
%54 = load i8, i8* %47
%55 = icmp eq i8 %54, 0
br i1 %55, label %58, label %56
56: ; preds = %53
%57 = getelementptr inbounds i8, i8* %46, i64 2
store i8 0, i8* %47
br label %58
58: ; preds = %45, %56, %53
%59 = phi i8* [ %47, %53 ], [ %57, %56 ], [ %47, %45 ]
br label %60
60: ; preds = %58, %60
%61 = phi i8* [ %65, %60 ], [ %59, %58 ]
%62 = load i8, i8* %61
%63 = call i64 @isspace(i8 signext %62)
%64 = icmp eq i64 %63, 0
%65 = getelementptr inbounds i8, i8* %61, i64 1
br i1 %64, label %66, label %60
66: ; preds = %60
%67 = load i8, i8* %61
%68 = icmp eq i8 %67, 0
br i1 %68, label %69, label %73
69: ; preds = %66
%70 = load i32, i32* @stderr
%71 = call i8* @_(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%72 = call i32 (i32, i8*, ...) @fprintf(i32 %70, i8* %71, i32 %42)
br label %88
73: ; preds = %66, %78
%74 = phi i8* [ %75, %78 ], [ %61, %66 ]
%75 = getelementptr inbounds i8, i8* %74, i64 1
%76 = load i8, i8* %75
%77 = icmp eq i8 %76, 0
br i1 %77, label %85, label %78
78: ; preds = %73
%79 = call i64 @isspace(i8 signext %76)
%80 = icmp eq i64 %79, 0
br i1 %80, label %73, label %81
81: ; preds = %78
%82 = load i8, i8* %75
%83 = icmp eq i8 %82, 0
br i1 %83, label %85, label %84
84: ; preds = %81
store i8 0, i8* %75
br label %85
85: ; preds = %73, %84, %81
%86 = call i32 @makesymlink(i8* %36, i8* %61)
%87 = or i32 %86, %22
br label %88
88: ; preds = %41, %85, %69
%89 = phi i32 [ 1, %69 ], [ %87, %85 ], [ %22, %41 ]
%90 = call i32 @feof_unlocked(i32* %18)
%91 = icmp eq i32 %90, 0
br i1 %91, label %21, label %92
92: ; preds = %88, %21, %17
%93 = phi i32 [ 0, %17 ], [ %22, %21 ], [ %89, %88 ]
%94 = call i32 @fclose(i32* %18)
br label %95
95: ; preds = %92, %13
%96 = phi i32 [ %93, %92 ], [ 1, %13 ]
ret i32 %96
}