#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 */

/* Variables and functions */
int O_RDWR;
int O_SYNC;
int /*<<< orphan*/ atol(char *);
scalar_t__ close(int);
int erase_flash(int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ exit(int);
int file_to_flash(int, int /*<<< orphan*/, int /*<<< orphan*/, char *);
int flash_to_file(int, int /*<<< orphan*/, int /*<<< orphan*/, char *);
int open(char *, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ showinfo(int);
int /*<<< orphan*/ showusage(char const *);
int /*<<< orphan*/ strcmp(char *, char *);
char *strrchr(char *, char);
int main(int argc, char *argv[]) {
  const char *progname;
  int err = 0, fd, option = 1;
  (progname = strrchr(argv[0], '/')) ? progname++ : (progname = argv[0]);
  if (argc == 3 && !strcmp(argv[1], "info"))
    option = 1;
  else if (argc == 6 && !strcmp(argv[1], "read"))
    option = 2;
  else if (argc == 6 && !strcmp(argv[1], "write"))
    option = 3;
  else if (argc == 5 && !strcmp(argv[1], "erase"))
    option = 4;
  else
    showusage(progname);
  if ((fd = open(argv[2], O_SYNC | O_RDWR)) < 0) {
    perror("open()");
    exit(1);
  }
  switch (option) {
  case 1:
    showinfo(fd);
    break;
  case 2:
    err = flash_to_file(fd, atol(argv[3]), atol(argv[4]), argv[5]);
    break;
  case 3:
    err = file_to_flash(fd, atol(argv[3]), atol(argv[4]), argv[5]);
    break;
  case 4:
    err = erase_flash(fd, atol(argv[3]), atol(argv[4]));
    break;
  }
  if (close(fd) < 0)
    perror("close()");
  exit(err);
}


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)
movl   $0x0,-0x1c(%rbp)
movl   $0x1,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    $0x2f,%esi
call   1040 <strrchr@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
je     1214 <main+0x54>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    121f <main+0x5f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
cmpl   $0x3,-0x8(%rbp)
jne    1252 <main+0x92>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdd8(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1252 <main+0x92>
movl   $0x1,-0x24(%rbp)
jmp    1303 <main+0x143>
cmpl   $0x6,-0x8(%rbp)
jne    1285 <main+0xc5>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdaa(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1285 <main+0xc5>
movl   $0x2,-0x24(%rbp)
jmp    12fe <main+0x13e>
cmpl   $0x6,-0x8(%rbp)
jne    12b8 <main+0xf8>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd7c(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    12b8 <main+0xf8>
movl   $0x3,-0x24(%rbp)
jmp    12f9 <main+0x139>
cmpl   $0x5,-0x8(%rbp)
jne    12eb <main+0x12b>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd4f(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    12eb <main+0x12b>
movl   $0x4,-0x24(%rbp)
jmp    12f4 <main+0x134>
mov    -0x18(%rbp),%rdi
call   10e0 <showusage@plt>
jmp    12f9 <main+0x139>
jmp    12fe <main+0x13e>
jmp    1303 <main+0x143>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    0x2cce(%rip),%rax
mov    (%rax),%esi
mov    0x2ccd(%rip),%rax
or     (%rax),%esi
call   10b0 <open@plt>
mov    %eax,-0x20(%rbp)
cmp    $0x0,%eax
jge    1344 <main+0x184>
lea    0xcf1(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x30(%rbp)
sub    $0x3,%eax
ja     142d <main+0x26d>
mov    -0x30(%rbp),%rax
lea    0xc9c(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x20(%rbp),%edi
call   1080 <showinfo@plt>
jmp    142d <main+0x26d>
mov    -0x20(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   10a0 <atol@plt>
mov    %eax,-0x34(%rbp)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   10a0 <atol@plt>
mov    -0x38(%rbp),%edi
mov    -0x34(%rbp),%esi
mov    %eax,%edx
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rcx
call   1030 <flash_to_file@plt>
mov    %eax,-0x1c(%rbp)
jmp    142d <main+0x26d>
mov    -0x20(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   10a0 <atol@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   10a0 <atol@plt>
mov    -0x40(%rbp),%edi
mov    -0x3c(%rbp),%esi
mov    %eax,%edx
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rcx
call   1060 <file_to_flash@plt>
mov    %eax,-0x1c(%rbp)
jmp    142d <main+0x26d>
mov    -0x20(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   10a0 <atol@plt>
mov    %eax,-0x44(%rbp)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   10a0 <atol@plt>
mov    -0x48(%rbp),%edi
mov    -0x44(%rbp),%esi
mov    %eax,%edx
call   1090 <erase_flash@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x20(%rbp),%edi
call   1050 <close@plt>
cmp    $0x0,%rax
jge    144b <main+0x28b>
lea    0xbe7(%rip),%rdi
call   10c0 <perror@plt>
mov    -0x1c(%rbp),%edi
call   10d0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r15
mov    %edi,%ebx
mov    (%rsi),%rbp
mov    %rbp,%rdi
mov    $0x2f,%esi
call   1040 <strrchr@plt>
lea    0x1(%rax),%r14
test   %rax,%rax
cmove  %rbp,%r14
cmp    $0x6,%ebx
je     120d <main+0x4d>
cmp    $0x5,%ebx
je     123f <main+0x7f>
cmp    $0x3,%ebx
jne    1258 <main+0x98>
mov    0x8(%r15),%rdi
lea    0xe0f(%rip),%rsi
call   1070 <strcmp@plt>
mov    $0x1,%ebx
jmp    1254 <main+0x94>
mov    0x8(%r15),%rbp
lea    0xdfd(%rip),%rsi
mov    %rbp,%rdi
call   1070 <strcmp@plt>
mov    $0x2,%ebx
test   %eax,%eax
je     1265 <main+0xa5>
lea    0xdea(%rip),%rsi
mov    %rbp,%rdi
call   1070 <strcmp@plt>
mov    $0x3,%ebx
jmp    1254 <main+0x94>
mov    0x8(%r15),%rdi
lea    0xdd6(%rip),%rsi
call   1070 <strcmp@plt>
mov    $0x4,%ebx
test   %eax,%eax
je     1265 <main+0xa5>
mov    %r14,%rdi
call   10e0 <showusage@plt>
mov    $0x1,%ebx
mov    0x10(%r15),%rdi
mov    0x2d70(%rip),%rax
mov    0x2d71(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
call   10b0 <open@plt>
test   %eax,%eax
jns    129a <main+0xda>
lea    0xd9b(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    %eax,%ebp
xor    %r14d,%r14d
add    $0xffffffff,%ebx
cmp    $0x3,%ebx
ja     1330 <main+0x170>
lea    0xd4e(%rip),%rax
movslq (%rax,%rbx,4),%rcx
add    %rax,%rcx
jmp    *%rcx
mov    %ebp,%edi
call   1080 <showinfo@plt>
jmp    1330 <main+0x170>
mov    0x18(%r15),%rdi
call   10a0 <atol@plt>
mov    %eax,%ebx
mov    0x20(%r15),%rdi
call   10a0 <atol@plt>
mov    0x28(%r15),%rcx
mov    %ebp,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   1030 <flash_to_file@plt>
jmp    132d <main+0x16d>
mov    0x18(%r15),%rdi
call   10a0 <atol@plt>
mov    %eax,%ebx
mov    0x20(%r15),%rdi
call   10a0 <atol@plt>
mov    0x28(%r15),%rcx
mov    %ebp,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   1060 <file_to_flash@plt>
jmp    132d <main+0x16d>
mov    0x18(%r15),%rdi
call   10a0 <atol@plt>
mov    %eax,%ebx
mov    0x20(%r15),%rdi
call   10a0 <atol@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   1090 <erase_flash@plt>
mov    %eax,%r14d
mov    %ebp,%edi
call   1050 <close@plt>
test   %rax,%rax
jns    1348 <main+0x188>
lea    0xcea(%rip),%rdi
call   10c0 <perror@plt>
mov    %r14d,%edi
call   10d0 <exit@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"info\00"
@.str.1 = [5 x i8] c"read\00"
@.str.2 = [6 x i8] c"write\00"
@.str.3 = [6 x i8] c"erase\00"
@O_SYNC = global i32 0
@O_RDWR = global i32 0
@.str.4 = [7 x i8] c"open()\00"
@.str.5 = [8 x i8] c"close()\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
store i32 1, i32* %9
%10 = load i8**, i8*** %5
%11 = getelementptr inbounds i8*, i8** %10, i64 0
%12 = load i8*, i8** %11
%13 = call i8* @strrchr(i8* %12, i8 signext 47)
store i8* %13, i8** %6
%14 = icmp ne i8* %13, null
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = load i8*, i8** %6
%17 = getelementptr inbounds i8, i8* %16, i32 1
store i8* %17, i8** %6
br label %22
18: ; preds = %2
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 0
%21 = load i8*, i8** %20
store i8* %21, i8** %6
br label %22
22: ; preds = %18, %15
%23 = phi i8* [ %16, %15 ], [ %21, %18 ]
%24 = load i32, i32* %4
%25 = icmp eq i32 %24, 3
br i1 %25, label %26, label %33
26: ; preds = %22
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 1
%29 = load i8*, i8** %28
%30 = call i32 @strcmp(i8* %29, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%31 = icmp ne i32 %30, 0
br i1 %31, label %33, label %32
32: ; preds = %26
store i32 1, i32* %9
br label %69
33: ; preds = %26, %22
%34 = load i32, i32* %4
%35 = icmp eq i32 %34, 6
br i1 %35, label %36, label %43
36: ; preds = %33
%37 = load i8**, i8*** %5
%38 = getelementptr inbounds i8*, i8** %37, i64 1
%39 = load i8*, i8** %38
%40 = call i32 @strcmp(i8* %39, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%41 = icmp ne i32 %40, 0
br i1 %41, label %43, label %42
42: ; preds = %36
store i32 2, i32* %9
br label %68
43: ; preds = %36, %33
%44 = load i32, i32* %4
%45 = icmp eq i32 %44, 6
br i1 %45, label %46, label %53
46: ; preds = %43
%47 = load i8**, i8*** %5
%48 = getelementptr inbounds i8*, i8** %47, i64 1
%49 = load i8*, i8** %48
%50 = call i32 @strcmp(i8* %49, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%51 = icmp ne i32 %50, 0
br i1 %51, label %53, label %52
52: ; preds = %46
store i32 3, i32* %9
br label %67
53: ; preds = %46, %43
%54 = load i32, i32* %4
%55 = icmp eq i32 %54, 5
br i1 %55, label %56, label %63
56: ; preds = %53
%57 = load i8**, i8*** %5
%58 = getelementptr inbounds i8*, i8** %57, i64 1
%59 = load i8*, i8** %58
%60 = call i32 @strcmp(i8* %59, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%61 = icmp ne i32 %60, 0
br i1 %61, label %63, label %62
62: ; preds = %56
store i32 4, i32* %9
br label %66
63: ; preds = %56, %53
%64 = load i8*, i8** %6
%65 = call i32 @showusage(i8* %64)
br label %66
66: ; preds = %63, %62
br label %67
67: ; preds = %66, %52
br label %68
68: ; preds = %67, %42
br label %69
69: ; preds = %68, %32
%70 = load i8**, i8*** %5
%71 = getelementptr inbounds i8*, i8** %70, i64 2
%72 = load i8*, i8** %71
%73 = load i32, i32* @O_SYNC
%74 = load i32, i32* @O_RDWR
%75 = or i32 %73, %74
%76 = call i32 @open(i8* %72, i32 %75)
store i32 %76, i32* %8
%77 = icmp slt i32 %76, 0
br i1 %77, label %78, label %81
78: ; preds = %69
%79 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%80 = call i32 @exit(i32 1)
unreachable
81: ; preds = %69
%82 = load i32, i32* %9
switch i32 %82, label %125 [
i32 1, label %83
i32 2, label %86
i32 3, label %100
i32 4, label %114
]
83: ; preds = %81
%84 = load i32, i32* %8
%85 = call i32 @showinfo(i32 %84)
br label %125
86: ; preds = %81
%87 = load i32, i32* %8
%88 = load i8**, i8*** %5
%89 = getelementptr inbounds i8*, i8** %88, i64 3
%90 = load i8*, i8** %89
%91 = call i32 @atol(i8* %90)
%92 = load i8**, i8*** %5
%93 = getelementptr inbounds i8*, i8** %92, i64 4
%94 = load i8*, i8** %93
%95 = call i32 @atol(i8* %94)
%96 = load i8**, i8*** %5
%97 = getelementptr inbounds i8*, i8** %96, i64 5
%98 = load i8*, i8** %97
%99 = call i32 @flash_to_file(i32 %87, i32 %91, i32 %95, i8* %98)
store i32 %99, i32* %7
br label %125
100: ; preds = %81
%101 = load i32, i32* %8
%102 = load i8**, i8*** %5
%103 = getelementptr inbounds i8*, i8** %102, i64 3
%104 = load i8*, i8** %103
%105 = call i32 @atol(i8* %104)
%106 = load i8**, i8*** %5
%107 = getelementptr inbounds i8*, i8** %106, i64 4
%108 = load i8*, i8** %107
%109 = call i32 @atol(i8* %108)
%110 = load i8**, i8*** %5
%111 = getelementptr inbounds i8*, i8** %110, i64 5
%112 = load i8*, i8** %111
%113 = call i32 @file_to_flash(i32 %101, i32 %105, i32 %109, i8* %112)
store i32 %113, i32* %7
br label %125
114: ; preds = %81
%115 = load i32, i32* %8
%116 = load i8**, i8*** %5
%117 = getelementptr inbounds i8*, i8** %116, i64 3
%118 = load i8*, i8** %117
%119 = call i32 @atol(i8* %118)
%120 = load i8**, i8*** %5
%121 = getelementptr inbounds i8*, i8** %120, i64 4
%122 = load i8*, i8** %121
%123 = call i32 @atol(i8* %122)
%124 = call i32 @erase_flash(i32 %115, i32 %119, i32 %123)
store i32 %124, i32* %7
br label %125
125: ; preds = %81, %114, %100, %86, %83
%126 = load i32, i32* %8
%127 = call i64 @close(i32 %126)
%128 = icmp slt i64 %127, 0
br i1 %128, label %129, label %131
129: ; preds = %125
%130 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
br label %131
131: ; preds = %129, %125
%132 = load i32, i32* %7
%133 = call i32 @exit(i32 %132)
unreachable
}

LLVM IR (-O2):
@.str = [5 x i8] c"info\00"
@.str.1 = [5 x i8] c"read\00"
@.str.2 = [6 x i8] c"write\00"
@.str.3 = [6 x i8] c"erase\00"
@O_SYNC = global i32 0
@O_RDWR = global i32 0
@.str.4 = [7 x i8] c"open()\00"
@.str.5 = [8 x i8] c"close()\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = load i8*, i8** %1
%4 = tail call i8* @strrchr(i8* dereferenceable(1) %3, i8 signext 47)
%5 = icmp eq i8* %4, null
%6 = getelementptr inbounds i8, i8* %4, i64 1
%7 = select i1 %5, i8* %3, i8* %6
switch i32 %0, label %26 [
i32 3, label %8
i32 6, label %13
i32 5, label %21
]
8: ; preds = %2
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = tail call i32 @strcmp(i8* dereferenceable(1) %10, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%12 = icmp eq i32 %11, 0
br i1 %12, label %28, label %26
13: ; preds = %2
%14 = getelementptr inbounds i8*, i8** %1, i64 1
%15 = load i8*, i8** %14
%16 = tail call i32 @strcmp(i8* dereferenceable(1) %15, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%17 = icmp eq i32 %16, 0
br i1 %17, label %28, label %18
18: ; preds = %13
%19 = tail call i32 @strcmp(i8* dereferenceable(1) %15, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
br i1 %20, label %28, label %26
21: ; preds = %2
%22 = getelementptr inbounds i8*, i8** %1, i64 1
%23 = load i8*, i8** %22
%24 = tail call i32 @strcmp(i8* dereferenceable(1) %23, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%25 = icmp eq i32 %24, 0
br i1 %25, label %28, label %26
26: ; preds = %2, %8, %18, %21
%27 = tail call i32 @showusage(i8* %7)
br label %28
28: ; preds = %21, %18, %13, %8, %26
%29 = phi i32 [ 1, %26 ], [ 1, %8 ], [ 2, %13 ], [ 3, %18 ], [ 4, %21 ]
%30 = getelementptr inbounds i8*, i8** %1, i64 2
%31 = load i8*, i8** %30
%32 = load i32, i32* @O_SYNC
%33 = load i32, i32* @O_RDWR
%34 = or i32 %33, %32
%35 = tail call i32 @open(i8* %31, i32 %34)
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %28
%38 = tail call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%39 = tail call i32 @exit(i32 1)
unreachable
40: ; preds = %28
switch i32 %29, label %71 [
i32 1, label %41
i32 2, label %43
i32 3, label %53
i32 4, label %63
]
41: ; preds = %40
%42 = tail call i32 @showinfo(i32 %35)
br label %71
43: ; preds = %40
%44 = getelementptr inbounds i8*, i8** %1, i64 3
%45 = load i8*, i8** %44
%46 = tail call i32 @atol(i8* %45)
%47 = getelementptr inbounds i8*, i8** %1, i64 4
%48 = load i8*, i8** %47
%49 = tail call i32 @atol(i8* %48)
%50 = getelementptr inbounds i8*, i8** %1, i64 5
%51 = load i8*, i8** %50
%52 = tail call i32 @flash_to_file(i32 %35, i32 %46, i32 %49, i8* %51)
br label %71
53: ; preds = %40
%54 = getelementptr inbounds i8*, i8** %1, i64 3
%55 = load i8*, i8** %54
%56 = tail call i32 @atol(i8* %55)
%57 = getelementptr inbounds i8*, i8** %1, i64 4
%58 = load i8*, i8** %57
%59 = tail call i32 @atol(i8* %58)
%60 = getelementptr inbounds i8*, i8** %1, i64 5
%61 = load i8*, i8** %60
%62 = tail call i32 @file_to_flash(i32 %35, i32 %56, i32 %59, i8* %61)
br label %71
63: ; preds = %40
%64 = getelementptr inbounds i8*, i8** %1, i64 3
%65 = load i8*, i8** %64
%66 = tail call i32 @atol(i8* %65)
%67 = getelementptr inbounds i8*, i8** %1, i64 4
%68 = load i8*, i8** %67
%69 = tail call i32 @atol(i8* %68)
%70 = tail call i32 @erase_flash(i32 %35, i32 %66, i32 %69)
br label %71
71: ; preds = %40, %63, %53, %43, %41
%72 = phi i32 [ 0, %40 ], [ %70, %63 ], [ %62, %53 ], [ %52, %43 ], [ 0, %41 ]
%73 = tail call i64 @close(i32 %35)
%74 = icmp slt i64 %73, 0
br i1 %74, label %75, label %77
75: ; preds = %71
%76 = tail call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
br label %77
77: ; preds = %75, %71
%78 = tail call i32 @exit(i32 %72)
unreachable
}