#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 pid_t;

/* Variables and functions */
int EXIT_FAILURE;
int close(int);
int dup2(int, int);
scalar_t__ errno;
int /*<<< orphan*/ execl(char *, char *, char *, char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ exit(int);
int fork();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ perror(char *);
int pipe(int *);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  if (argc != 2) {
    fprintf(stderr, "Line %d\n", 24);
    perror("Wrong number of arguments"
           "\n");
    if (1) {
      exit(EXIT_FAILURE);
    }
    errno = 0;
  }
  int descriptors[2];
  if (pipe(descriptors) == -1) {
    fprintf(stderr, "Line %d\n", 27);
    perror("Creating pipe"
           "\n");
    if (1) {
      exit(EXIT_FAILURE);
    }
    errno = 0;
  }
  pid_t cpid = fork();
  if (cpid == -1) {
    fprintf(stderr, "Line %d\n", 30);
    perror("Error when forking"
           "\n");
    if (1) {
      exit(EXIT_FAILURE);
    }
    errno = 0;
  }
  if (cpid == 0) {
    if (dup2(descriptors[0], 0) == -1) {
      fprintf(stderr, "Line %d\n", 33);
      perror("Can't create pipe from stdin"
             "\n");
      if (1) {
        exit(EXIT_FAILURE);
      }
      errno = 0;
    }
    if (close(descriptors[0]) == -1) {
      fprintf(stderr, "Line %d\n", 34);
      perror("Can't close pipe-in file"
             "\n");
      if (1) {
        exit(EXIT_FAILURE);
      }
      errno = 0;
    }
    execl("/usr/bin/fold", "fold", "-w", argv[1], NULL);
    return EXIT_FAILURE;
  } else if (cpid > 0) {
    if (dup2(descriptors[1], 1) == -1) {
      fprintf(stderr, "Line %d\n", 39);
      perror("Can't create pipe from stdout"
             "\n");
      if (1) {
        exit(EXIT_FAILURE);
      }
      errno = 0;
    }
    if (close(descriptors[1]) == -1) {
      fprintf(stderr, "Line %d\n", 40);
      perror("Can't close pipe-out file"
             "\n");
      if (1) {
        exit(EXIT_FAILURE);
      }
      errno = 0;
    }
    execl("/usr/bin/tr", "tr", "'[:lower:]'", "'[:upper:]'", NULL);
    return EXIT_FAILURE;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     11d4 <main+0x54>
mov    0x2e39(%rip),%rax
mov    (%rax),%edi
lea    0xe50(%rip),%rsi
mov    $0x18,%edx
call   1060 <fprintf@plt>
lea    0xe48(%rip),%rdi
call   1070 <perror@plt>
mov    0x2e0b(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
lea    -0x18(%rbp),%rdi
call   1050 <pipe@plt>
cmp    $0xffffffff,%eax
jne    121a <main+0x9a>
mov    0x2df3(%rip),%rax
mov    (%rax),%edi
lea    0xe0a(%rip),%rsi
mov    $0x1b,%edx
call   1060 <fprintf@plt>
lea    0xe1d(%rip),%rdi
call   1070 <perror@plt>
mov    0x2dc5(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
mov    $0x0,%al
call   10a0 <fork@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0xffffffff,-0x1c(%rbp)
jne    1262 <main+0xe2>
mov    0x2dab(%rip),%rax
mov    (%rax),%edi
lea    0xdc2(%rip),%rsi
mov    $0x1e,%edx
call   1060 <fprintf@plt>
lea    0xde4(%rip),%rdi
call   1070 <perror@plt>
mov    0x2d7d(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
cmpl   $0x0,-0x1c(%rbp)
jne    1330 <main+0x1b0>
mov    -0x18(%rbp),%edi
xor    %esi,%esi
call   1030 <dup2@plt>
cmp    $0xffffffff,%eax
jne    12b3 <main+0x133>
mov    0x2d5a(%rip),%rax
mov    (%rax),%edi
lea    0xd71(%rip),%rsi
mov    $0x21,%edx
call   1060 <fprintf@plt>
lea    0xda7(%rip),%rdi
call   1070 <perror@plt>
mov    0x2d2c(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
mov    -0x18(%rbp),%edi
call   1040 <close@plt>
cmp    $0xffffffff,%eax
jne    12f8 <main+0x178>
mov    0x2d15(%rip),%rax
mov    (%rax),%edi
lea    0xd2c(%rip),%rsi
mov    $0x22,%edx
call   1060 <fprintf@plt>
lea    0xd80(%rip),%rdi
call   1070 <perror@plt>
mov    0x2ce7(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rcx
lea    0xd78(%rip),%rdi
lea    0xd7a(%rip),%rsi
lea    0xd78(%rip),%rdx
xor    %eax,%eax
mov    %eax,%r8d
call   1090 <execl@plt>
mov    0x2cb2(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    140c <main+0x28c>
cmpl   $0x0,-0x1c(%rbp)
jle    1400 <main+0x280>
mov    -0x14(%rbp),%edi
mov    $0x1,%esi
call   1030 <dup2@plt>
cmp    $0xffffffff,%eax
jne    1384 <main+0x204>
mov    0x2c89(%rip),%rax
mov    (%rax),%edi
lea    0xca0(%rip),%rsi
mov    $0x27,%edx
call   1060 <fprintf@plt>
lea    0xd1f(%rip),%rdi
call   1070 <perror@plt>
mov    0x2c5b(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
mov    -0x14(%rbp),%edi
call   1040 <close@plt>
cmp    $0xffffffff,%eax
jne    13c9 <main+0x249>
mov    0x2c44(%rip),%rax
mov    (%rax),%edi
lea    0xc5b(%rip),%rsi
mov    $0x28,%edx
call   1060 <fprintf@plt>
lea    0xcf9(%rip),%rdi
call   1070 <perror@plt>
mov    0x2c16(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
lea    0xcfa(%rip),%rdi
lea    0xcfc(%rip),%rsi
lea    0xcf8(%rip),%rdx
lea    0xcfd(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r8d
call   1090 <execl@plt>
mov    0x2be2(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    140c <main+0x28c>
jmp    1405 <main+0x285>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
cmp    $0x2,%edi
jne    1261 <main+0xe1>
mov    %rsi,%rbx
lea    0x8(%rsp),%rdi
call   1050 <pipe@plt>
cmp    $0xffffffff,%eax
je     1287 <main+0x107>
xor    %eax,%eax
call   10a0 <fork@plt>
test   %eax,%eax
je     1207 <main+0x87>
cmp    $0xffffffff,%eax
je     12ad <main+0x12d>
test   %eax,%eax
jle    125d <main+0xdd>
mov    0xc(%rsp),%edi
mov    $0x1,%esi
call   1030 <dup2@plt>
cmp    $0xffffffff,%eax
je     1319 <main+0x199>
mov    0xc(%rsp),%edi
call   1040 <close@plt>
cmp    $0xffffffff,%eax
je     133c <main+0x1bc>
lea    0xeda(%rip),%rdi
lea    0xedc(%rip),%rsi
lea    0xed8(%rip),%rdx
lea    0xedd(%rip),%rcx
jmp    1246 <main+0xc6>
mov    0x8(%rsp),%edi
xor    %esi,%esi
call   1030 <dup2@plt>
cmp    $0xffffffff,%eax
je     12d3 <main+0x153>
mov    0x8(%rsp),%edi
call   1040 <close@plt>
cmp    $0xffffffff,%eax
je     12f6 <main+0x176>
mov    0x8(%rbx),%rcx
lea    0xe47(%rip),%rdi
lea    0xe49(%rip),%rsi
lea    0xe47(%rip),%rdx
xor    %r8d,%r8d
call   1090 <execl@plt>
mov    0x2d83(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbx
ret
xor    %eax,%eax
jmp    1257 <main+0xd7>
mov    0x2d78(%rip),%rax
mov    (%rax),%edi
lea    0xd8f(%rip),%rsi
mov    $0x18,%edx
call   1060 <fprintf@plt>
lea    0xd87(%rip),%rdi
jmp    135d <main+0x1dd>
mov    0x2d52(%rip),%rax
mov    (%rax),%edi
lea    0xd69(%rip),%rsi
mov    $0x1b,%edx
call   1060 <fprintf@plt>
lea    0xd7c(%rip),%rdi
jmp    135d <main+0x1dd>
mov    0x2d2c(%rip),%rax
mov    (%rax),%edi
lea    0xd43(%rip),%rsi
mov    $0x1e,%edx
call   1060 <fprintf@plt>
lea    0xd65(%rip),%rdi
jmp    135d <main+0x1dd>
mov    0x2d06(%rip),%rax
mov    (%rax),%edi
lea    0xd1d(%rip),%rsi
mov    $0x21,%edx
call   1060 <fprintf@plt>
lea    0xd53(%rip),%rdi
jmp    135d <main+0x1dd>
mov    0x2ce3(%rip),%rax
mov    (%rax),%edi
lea    0xcfa(%rip),%rsi
mov    $0x22,%edx
call   1060 <fprintf@plt>
lea    0xd4e(%rip),%rdi
jmp    135d <main+0x1dd>
mov    0x2cc0(%rip),%rax
mov    (%rax),%edi
lea    0xcd7(%rip),%rsi
mov    $0x27,%edx
call   1060 <fprintf@plt>
lea    0xd56(%rip),%rdi
jmp    135d <main+0x1dd>
mov    0x2c9d(%rip),%rax
mov    (%rax),%edi
lea    0xcb4(%rip),%rsi
mov    $0x28,%edx
call   1060 <fprintf@plt>
lea    0xd52(%rip),%rdi
call   1070 <perror@plt>
mov    0x2c6f(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [9 x i8] c"Line %d\0A\00"
@.str.1 = [27 x i8] c"Wrong number of arguments\0A\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [15 x i8] c"Creating pipe\0A\00"
@.str.3 = [20 x i8] c"Error when forking\0A\00"
@.str.4 = [30 x i8] c"Can't create pipe from stdin\0A\00"
@.str.5 = [26 x i8] c"Can't close pipe-in file\0A\00"
@.str.6 = [14 x i8] c"/usr/bin/fold\00"
@.str.7 = [5 x i8] c"fold\00"
@.str.8 = [3 x i8] c"-w\00"
@.str.9 = [31 x i8] c"Can't create pipe from stdout\0A\00"
@.str.10 = [27 x i8] c"Can't close pipe-out file\0A\00"
@.str.11 = [12 x i8] c"/usr/bin/tr\00"
@.str.12 = [3 x i8] c"tr\00"
@.str.13 = [12 x i8] c"'[:lower:]'\00"
@.str.14 = [12 x i8] c"'[:upper:]'\00"
@errno = global i64 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [2 x i32]
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = load i32, i32* %4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %16
10: ; preds = %2
%11 = load i32, i32* @stderr
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 24)
%13 = call i32 @perror(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%14 = load i32, i32* @EXIT_FAILURE
%15 = call i32 @exit(i32 %14)
unreachable
16: ; preds = %2
%17 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 0
%18 = call i32 @pipe(i32* %17)
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %26
20: ; preds = %16
%21 = load i32, i32* @stderr
%22 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 27)
%23 = call i32 @perror(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%24 = load i32, i32* @EXIT_FAILURE
%25 = call i32 @exit(i32 %24)
unreachable
26: ; preds = %16
%27 = call i32 (...) @fork()
store i32 %27, i32* %7
%28 = load i32, i32* %7
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %36
30: ; preds = %26
%31 = load i32, i32* @stderr
%32 = call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 30)
%33 = call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
%34 = load i32, i32* @EXIT_FAILURE
%35 = call i32 @exit(i32 %34)
unreachable
36: ; preds = %26
%37 = load i32, i32* %7
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %67
39: ; preds = %36
%40 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 0
%41 = load i32, i32* %40
%42 = call i32 @dup2(i32 %41, i32 0)
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %50
44: ; preds = %39
%45 = load i32, i32* @stderr
%46 = call i32 @fprintf(i32 %45, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 33)
%47 = call i32 @perror(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0))
%48 = load i32, i32* @EXIT_FAILURE
%49 = call i32 @exit(i32 %48)
unreachable
50: ; preds = %39
%51 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 0
%52 = load i32, i32* %51
%53 = call i32 @close(i32 %52)
%54 = icmp eq i32 %53, -1
br i1 %54, label %55, label %61
55: ; preds = %50
%56 = load i32, i32* @stderr
%57 = call i32 @fprintf(i32 %56, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 34)
%58 = call i32 @perror(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%59 = load i32, i32* @EXIT_FAILURE
%60 = call i32 @exit(i32 %59)
unreachable
61: ; preds = %50
%62 = load i8**, i8*** %5
%63 = getelementptr inbounds i8*, i8** %62, i64 1
%64 = load i8*, i8** %63
%65 = call i32 @execl(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* %64, i32* null)
%66 = load i32, i32* @EXIT_FAILURE
store i32 %66, i32* %3
br label %97
67: ; preds = %36
%68 = load i32, i32* %7
%69 = icmp sgt i32 %68, 0
br i1 %69, label %70, label %95
70: ; preds = %67
%71 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 1
%72 = load i32, i32* %71
%73 = call i32 @dup2(i32 %72, i32 1)
%74 = icmp eq i32 %73, -1
br i1 %74, label %75, label %81
75: ; preds = %70
%76 = load i32, i32* @stderr
%77 = call i32 @fprintf(i32 %76, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 39)
%78 = call i32 @perror(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
%79 = load i32, i32* @EXIT_FAILURE
%80 = call i32 @exit(i32 %79)
unreachable
81: ; preds = %70
%82 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 1
%83 = load i32, i32* %82
%84 = call i32 @close(i32 %83)
%85 = icmp eq i32 %84, -1
br i1 %85, label %86, label %92
86: ; preds = %81
%87 = load i32, i32* @stderr
%88 = call i32 @fprintf(i32 %87, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 40)
%89 = call i32 @perror(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.10, i64 0, i64 0))
%90 = load i32, i32* @EXIT_FAILURE
%91 = call i32 @exit(i32 %90)
unreachable
92: ; preds = %81
%93 = call i32 @execl(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0), i32* null)
%94 = load i32, i32* @EXIT_FAILURE
store i32 %94, i32* %3
br label %97
95: ; preds = %67
br label %96
96: ; preds = %95
store i32 0, i32* %3
br label %97
97: ; preds = %96, %92, %61
%98 = load i32, i32* %3
ret i32 %98
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [9 x i8] c"Line %d\0A\00"
@.str.1 = [27 x i8] c"Wrong number of arguments\0A\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [15 x i8] c"Creating pipe\0A\00"
@.str.3 = [20 x i8] c"Error when forking\0A\00"
@.str.4 = [30 x i8] c"Can't create pipe from stdin\0A\00"
@.str.5 = [26 x i8] c"Can't close pipe-in file\0A\00"
@.str.6 = [14 x i8] c"/usr/bin/fold\00"
@.str.7 = [5 x i8] c"fold\00"
@.str.8 = [3 x i8] c"-w\00"
@.str.9 = [31 x i8] c"Can't create pipe from stdout\0A\00"
@.str.10 = [27 x i8] c"Can't close pipe-out file\0A\00"
@.str.11 = [12 x i8] c"/usr/bin/tr\00"
@.str.12 = [3 x i8] c"tr\00"
@.str.13 = [12 x i8] c"'[:lower:]'\00"
@.str.14 = [12 x i8] c"'[:upper:]'\00"
@errno = global i64 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [2 x i32]
%4 = icmp eq i32 %0, 2
br i1 %4, label %11, label %5
5: ; preds = %2
%6 = load i32, i32* @stderr
%7 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 24)
%8 = tail call i32 @perror(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%9 = load i32, i32* @EXIT_FAILURE
%10 = tail call i32 @exit(i32 %9)
unreachable
11: ; preds = %2
%12 = bitcast [2 x i32]* %3 to i8*
%13 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%14 = call i32 @pipe(i32* %13)
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %22
16: ; preds = %11
%17 = load i32, i32* @stderr
%18 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 27)
%19 = call i32 @perror(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%20 = load i32, i32* @EXIT_FAILURE
%21 = call i32 @exit(i32 %20)
unreachable
22: ; preds = %11
%23 = call i32 (...) @fork()
switch i32 %23, label %55 [
i32 -1, label %24
i32 0, label %30
]
24: ; preds = %22
%25 = load i32, i32* @stderr
%26 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 30)
%27 = call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
%28 = load i32, i32* @EXIT_FAILURE
%29 = call i32 @exit(i32 %28)
unreachable
30: ; preds = %22
%31 = load i32, i32* %13
%32 = call i32 @dup2(i32 %31, i32 0)
%33 = icmp eq i32 %32, -1
br i1 %33, label %34, label %40
34: ; preds = %30
%35 = load i32, i32* @stderr
%36 = call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 33)
%37 = call i32 @perror(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0))
%38 = load i32, i32* @EXIT_FAILURE
%39 = call i32 @exit(i32 %38)
unreachable
40: ; preds = %30
%41 = load i32, i32* %13
%42 = call i32 @close(i32 %41)
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %50
44: ; preds = %40
%45 = load i32, i32* @stderr
%46 = call i32 @fprintf(i32 %45, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 34)
%47 = call i32 @perror(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%48 = load i32, i32* @EXIT_FAILURE
%49 = call i32 @exit(i32 %48)
unreachable
50: ; preds = %40
%51 = getelementptr inbounds i8*, i8** %1, i64 1
%52 = load i8*, i8** %51
%53 = call i32 @execl(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* %52, i32* null)
%54 = load i32, i32* @EXIT_FAILURE
br label %81
55: ; preds = %22
%56 = icmp sgt i32 %23, 0
br i1 %56, label %57, label %81
57: ; preds = %55
%58 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%59 = load i32, i32* %58
%60 = call i32 @dup2(i32 %59, i32 1)
%61 = icmp eq i32 %60, -1
br i1 %61, label %62, label %68
62: ; preds = %57
%63 = load i32, i32* @stderr
%64 = call i32 @fprintf(i32 %63, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 39)
%65 = call i32 @perror(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
%66 = load i32, i32* @EXIT_FAILURE
%67 = call i32 @exit(i32 %66)
unreachable
68: ; preds = %57
%69 = load i32, i32* %58
%70 = call i32 @close(i32 %69)
%71 = icmp eq i32 %70, -1
br i1 %71, label %72, label %78
72: ; preds = %68
%73 = load i32, i32* @stderr
%74 = call i32 @fprintf(i32 %73, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 40)
%75 = call i32 @perror(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.10, i64 0, i64 0))
%76 = load i32, i32* @EXIT_FAILURE
%77 = call i32 @exit(i32 %76)
unreachable
78: ; preds = %68
%79 = call i32 @execl(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0), i32* null)
%80 = load i32, i32* @EXIT_FAILURE
br label %81
81: ; preds = %55, %78, %50
%82 = phi i32 [ %54, %50 ], [ %80, %78 ], [ 0, %55 ]
ret i32 %82
}