#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 EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ O_RDWR;
int add_entropy(int, int, char **);
int add_entropy_cnt(int, int, char **);
int add_random(int, int, char **);
int clear_pool(int, int, char **);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int get_entropy_cnt(int, int, char **);
int getopt(int, char **, char *);
int open(char *, int /*<<< orphan*/);
int optind;
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char const *, char *);
int /*<<< orphan*/ usage();
int main(int argc, char *argv[]) {
  int retval = EXIT_FAILURE;
  int opt;
  int fd = -1;
  int val = 0;
  int r;
  while ((opt = getopt(argc, argv, "h")) != -1) {
    switch (opt) {
    case 'h':
      usage();
      exit(EXIT_SUCCESS);
      break;
    default:
      usage();
      exit(EXIT_FAILURE);
    }
  }
  if (argc - optind < 1) {
    fprintf(stderr, "Missing action\n");
    usage();
    exit(EXIT_FAILURE);
  }
  const char *action = argv[optind];
  int action_argc = argc - optind;
  char **action_argv = &argv[optind];
  fd = open("/dev/urandom", O_RDWR);
  if (fd == -1) {
    perror("Failed to open /dev/urandom");
    exit(EXIT_FAILURE);
  }
  if (strcmp(action, "get_entropy_cnt") == 0) {
    retval = get_entropy_cnt(fd, action_argc, action_argv);
  } else if (strcmp(action, "add_entropy_cnt") == 0) {
    retval = add_entropy_cnt(fd, action_argc, action_argv);
  } else if (strcmp(action, "add_entropy") == 0) {
    retval = add_entropy(fd, action_argc, action_argv);
  } else if (strcmp(action, "add_random") == 0) {
    retval = add_random(fd, action_argc, action_argv);
  } else if (strcmp(action, "clear_pool") == 0) {
    retval = clear_pool(fd, action_argc, action_argv);
  } else {
    fprintf(stderr, "Unknown action: %s\n", action);
    usage();
    retval = EXIT_FAILURE;
  }
  close(fd);
  return retval;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2ddb(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
movl   $0xffffffff,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xdf2(%rip),%rdx
call   10d0 <getopt@plt>
mov    %eax,-0x18(%rbp)
cmp    $0xffffffff,%eax
je     125a <main+0x8a>
mov    -0x18(%rbp),%eax
sub    $0x68,%eax
jne    1245 <main+0x75>
jmp    1230 <main+0x60>
mov    $0x0,%al
call   10a0 <usage@plt>
mov    0x2d82(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
mov    $0x0,%al
call   10a0 <usage@plt>
mov    0x2d75(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
mov    -0x8(%rbp),%eax
mov    0x2d7c(%rip),%rcx
sub    (%rcx),%eax
cmp    $0x1,%eax
jge    129b <main+0xcb>
mov    0x2d5a(%rip),%rax
mov    (%rax),%edi
lea    0xd83(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x0,%al
call   10a0 <usage@plt>
mov    0x2d34(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x2d3a(%rip),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%eax
mov    0x2d25(%rip),%rcx
sub    (%rcx),%eax
mov    %eax,-0x34(%rbp)
mov    -0x10(%rbp),%rax
mov    0x2d15(%rip),%rcx
movslq (%rcx),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    0x2d08(%rip),%rax
mov    (%rax),%esi
lea    0xd38(%rip),%rdi
call   10b0 <open@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0xffffffff,-0x1c(%rbp)
jne    1315 <main+0x145>
lea    0xd10(%rip),%rdi
call   10c0 <perror@plt>
mov    0x2cba(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
mov    -0x30(%rbp),%rdi
lea    0xd0e(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1346 <main+0x176>
mov    -0x1c(%rbp),%edi
mov    -0x34(%rbp),%esi
mov    -0x40(%rbp),%rdx
call   1090 <get_entropy_cnt@plt>
mov    %eax,-0x14(%rbp)
jmp    144c <main+0x27c>
mov    -0x30(%rbp),%rdi
lea    0xced(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1377 <main+0x1a7>
mov    -0x1c(%rbp),%edi
mov    -0x34(%rbp),%esi
mov    -0x40(%rbp),%rdx
call   10f0 <add_entropy_cnt@plt>
mov    %eax,-0x14(%rbp)
jmp    1447 <main+0x277>
mov    -0x30(%rbp),%rdi
lea    0xccc(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    13a8 <main+0x1d8>
mov    -0x1c(%rbp),%edi
mov    -0x34(%rbp),%esi
mov    -0x40(%rbp),%rdx
call   1030 <add_entropy@plt>
mov    %eax,-0x14(%rbp)
jmp    1442 <main+0x272>
mov    -0x30(%rbp),%rdi
lea    0xca7(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    13d9 <main+0x209>
mov    -0x1c(%rbp),%edi
mov    -0x34(%rbp),%esi
mov    -0x40(%rbp),%rdx
call   1040 <add_random@plt>
mov    %eax,-0x14(%rbp)
jmp    143d <main+0x26d>
mov    -0x30(%rbp),%rdi
lea    0xc81(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    140a <main+0x23a>
mov    -0x1c(%rbp),%edi
mov    -0x34(%rbp),%esi
mov    -0x40(%rbp),%rdx
call   1050 <clear_pool@plt>
mov    %eax,-0x14(%rbp)
jmp    1438 <main+0x268>
mov    0x2bbf(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rdx
lea    0xc52(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x0,%al
call   10a0 <usage@plt>
mov    0x2b95(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
jmp    143d <main+0x26d>
jmp    1442 <main+0x272>
jmp    1447 <main+0x277>
jmp    144c <main+0x27c>
mov    -0x1c(%rbp),%edi
call   1060 <close@plt>
mov    -0x14(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%r13d
lea    0xe18(%rip),%rdx
call   10d0 <getopt@plt>
cmp    $0xffffffff,%eax
jne    132b <main+0x15b>
mov    0x2de3(%rip),%rax
movslq (%rax),%rbp
sub    %ebp,%r13d
jle    1345 <main+0x175>
mov    (%rbx,%rbp,8),%r12
mov    0x2dd4(%rip),%rax
mov    (%rax),%esi
lea    0xe04(%rip),%rdi
call   10b0 <open@plt>
cmp    $0xffffffff,%eax
je     1365 <main+0x195>
mov    %eax,%r14d
lea    (%rbx,%rbp,8),%r15
lea    0xdf5(%rip),%rsi
mov    %r12,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12c2 <main+0xf2>
lea    0xdf1(%rip),%rsi
mov    %r12,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12d2 <main+0x102>
lea    0xded(%rip),%rsi
mov    %r12,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12e2 <main+0x112>
lea    0xde5(%rip),%rsi
mov    %r12,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12f2 <main+0x122>
lea    0xddc(%rip),%rsi
mov    %r12,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1302 <main+0x132>
mov    0x2d33(%rip),%rax
mov    (%rax),%edi
lea    0xdca(%rip),%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
xor    %eax,%eax
call   10a0 <usage@plt>
mov    0x2d0a(%rip),%rax
mov    (%rax),%ebx
jmp    1312 <main+0x142>
mov    %r14d,%edi
mov    %r13d,%esi
mov    %r15,%rdx
call   1090 <get_entropy_cnt@plt>
jmp    1310 <main+0x140>
mov    %r14d,%edi
mov    %r13d,%esi
mov    %r15,%rdx
call   10f0 <add_entropy_cnt@plt>
jmp    1310 <main+0x140>
mov    %r14d,%edi
mov    %r13d,%esi
mov    %r15,%rdx
call   1030 <add_entropy@plt>
jmp    1310 <main+0x140>
mov    %r14d,%edi
mov    %r13d,%esi
mov    %r15,%rdx
call   1040 <add_random@plt>
jmp    1310 <main+0x140>
mov    %r14d,%edi
mov    %r13d,%esi
mov    %r15,%rdx
call   1050 <clear_pool@plt>
mov    %eax,%ebx
mov    %r14d,%edi
call   1060 <close@plt>
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
cmp    $0x68,%eax
jne    135c <main+0x18c>
xor    %eax,%eax
call   10a0 <usage@plt>
mov    0x2c82(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
mov    0x2c84(%rip),%rax
mov    (%rax),%edi
lea    0xcad(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
xor    %eax,%eax
call   10a0 <usage@plt>
jmp    1371 <main+0x1a1>
lea    0xca6(%rip),%rdi
call   10c0 <perror@plt>
mov    0x2c50(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>

LLVM IR (-O0):
@EXIT_FAILURE = global i32 0
@.str = [2 x i8] c"h\00"
@EXIT_SUCCESS = global i32 0
@optind = global i32 0
@stderr = global i32 0
@.str.1 = [16 x i8] c"Missing action\0A\00"
@.str.2 = [13 x i8] c"/dev/urandom\00"
@O_RDWR = global i32 0
@.str.3 = [28 x i8] c"Failed to open /dev/urandom\00"
@.str.4 = [16 x i8] c"get_entropy_cnt\00"
@.str.5 = [16 x i8] c"add_entropy_cnt\00"
@.str.6 = [12 x i8] c"add_entropy\00"
@.str.7 = [11 x i8] c"add_random\00"
@.str.8 = [11 x i8] c"clear_pool\00"
@.str.9 = [20 x i8] c"Unknown action: %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* @EXIT_FAILURE
store i32 %14, i32* %6
store i32 -1, i32* %8
store i32 0, i32* %9
br label %15
15: ; preds = %2
%16 = load i32, i32* %4
%17 = load i8**, i8*** %5
%18 = call i32 @getopt(i32 %16, i8** %17, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32 %18, i32* %7
%19 = icmp ne i32 %18, -1
br i1 %19, label %20, label %30
20: ; preds = %15
%21 = load i32, i32* %7
switch i32 %21, label %26 [
i32 104, label %22
]
22: ; preds = %20
%23 = call i32 (...) @usage()
%24 = load i32, i32* @EXIT_SUCCESS
%25 = call i32 @exit(i32 %24)
unreachable
26: ; preds = %20
%27 = call i32 (...) @usage()
%28 = load i32, i32* @EXIT_FAILURE
%29 = call i32 @exit(i32 %28)
unreachable
30: ; preds = %15
%31 = load i32, i32* %4
%32 = load i32, i32* @optind
%33 = sub nsw i32 %31, %32
%34 = icmp slt i32 %33, 1
br i1 %34, label %35, label %41
35: ; preds = %30
%36 = load i32, i32* @stderr
%37 = call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%38 = call i32 (...) @usage()
%39 = load i32, i32* @EXIT_FAILURE
%40 = call i32 @exit(i32 %39)
unreachable
41: ; preds = %30
%42 = load i8**, i8*** %5
%43 = load i32, i32* @optind
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8*, i8** %42, i64 %44
%46 = load i8*, i8** %45
store i8* %46, i8** %11
%47 = load i32, i32* %4
%48 = load i32, i32* @optind
%49 = sub nsw i32 %47, %48
store i32 %49, i32* %12
%50 = load i8**, i8*** %5
%51 = load i32, i32* @optind
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8*, i8** %50, i64 %52
store i8** %53, i8*** %13
%54 = load i32, i32* @O_RDWR
%55 = call i32 @open(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %54)
store i32 %55, i32* %8
%56 = load i32, i32* %8
%57 = icmp eq i32 %56, -1
br i1 %57, label %58, label %62
58: ; preds = %41
%59 = call i32 @perror(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%60 = load i32, i32* @EXIT_FAILURE
%61 = call i32 @exit(i32 %60)
unreachable
62: ; preds = %41
%63 = load i8*, i8** %11
%64 = call i64 @strcmp(i8* %63, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %71
66: ; preds = %62
%67 = load i32, i32* %8
%68 = load i32, i32* %12
%69 = load i8**, i8*** %13
%70 = call i32 @get_entropy_cnt(i32 %67, i32 %68, i8** %69)
store i32 %70, i32* %6
br label %117
71: ; preds = %62
%72 = load i8*, i8** %11
%73 = call i64 @strcmp(i8* %72, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %80
75: ; preds = %71
%76 = load i32, i32* %8
%77 = load i32, i32* %12
%78 = load i8**, i8*** %13
%79 = call i32 @add_entropy_cnt(i32 %76, i32 %77, i8** %78)
store i32 %79, i32* %6
br label %116
80: ; preds = %71
%81 = load i8*, i8** %11
%82 = call i64 @strcmp(i8* %81, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %89
84: ; preds = %80
%85 = load i32, i32* %8
%86 = load i32, i32* %12
%87 = load i8**, i8*** %13
%88 = call i32 @add_entropy(i32 %85, i32 %86, i8** %87)
store i32 %88, i32* %6
br label %115
89: ; preds = %80
%90 = load i8*, i8** %11
%91 = call i64 @strcmp(i8* %90, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%92 = icmp eq i64 %91, 0
br i1 %92, label %93, label %98
93: ; preds = %89
%94 = load i32, i32* %8
%95 = load i32, i32* %12
%96 = load i8**, i8*** %13
%97 = call i32 @add_random(i32 %94, i32 %95, i8** %96)
store i32 %97, i32* %6
br label %114
98: ; preds = %89
%99 = load i8*, i8** %11
%100 = call i64 @strcmp(i8* %99, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
%101 = icmp eq i64 %100, 0
br i1 %101, label %102, label %107
102: ; preds = %98
%103 = load i32, i32* %8
%104 = load i32, i32* %12
%105 = load i8**, i8*** %13
%106 = call i32 @clear_pool(i32 %103, i32 %104, i8** %105)
store i32 %106, i32* %6
br label %113
107: ; preds = %98
%108 = load i32, i32* @stderr
%109 = load i8*, i8** %11
%110 = call i32 (i32, i8*, ...) @fprintf(i32 %108, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), i8* %109)
%111 = call i32 (...) @usage()
%112 = load i32, i32* @EXIT_FAILURE
store i32 %112, i32* %6
br label %113
113: ; preds = %107, %102
br label %114
114: ; preds = %113, %93
br label %115
115: ; preds = %114, %84
br label %116
116: ; preds = %115, %75
br label %117
117: ; preds = %116, %66
%118 = load i32, i32* %8
%119 = call i32 @close(i32 %118)
%120 = load i32, i32* %6
ret i32 %120
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
@.str = [2 x i8] c"h\00"
@EXIT_SUCCESS = global i32 0
@optind = global i32 0
@stderr = global i32 0
@.str.1 = [16 x i8] c"Missing action\0A\00"
@.str.2 = [13 x i8] c"/dev/urandom\00"
@O_RDWR = global i32 0
@.str.3 = [28 x i8] c"Failed to open /dev/urandom\00"
@.str.4 = [16 x i8] c"get_entropy_cnt\00"
@.str.5 = [16 x i8] c"add_entropy_cnt\00"
@.str.6 = [12 x i8] c"add_entropy\00"
@.str.7 = [11 x i8] c"add_random\00"
@.str.8 = [11 x i8] c"clear_pool\00"
@.str.9 = [20 x i8] c"Unknown action: %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
switch i32 %3, label %8 [
i32 -1, label %12
i32 104, label %4
]
4: ; preds = %2
%5 = tail call i32 (...) @usage()
%6 = load i32, i32* @EXIT_SUCCESS
%7 = tail call i32 @exit(i32 %6)
unreachable
8: ; preds = %2
%9 = tail call i32 (...) @usage()
%10 = load i32, i32* @EXIT_FAILURE
%11 = tail call i32 @exit(i32 %10)
unreachable
12: ; preds = %2
%13 = load i32, i32* @optind
%14 = sub nsw i32 %0, %13
%15 = icmp slt i32 %14, 1
br i1 %15, label %16, label %22
16: ; preds = %12
%17 = load i32, i32* @stderr
%18 = tail call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%19 = tail call i32 (...) @usage()
%20 = load i32, i32* @EXIT_FAILURE
%21 = tail call i32 @exit(i32 %20)
unreachable
22: ; preds = %12
%23 = sext i32 %13 to i64
%24 = getelementptr inbounds i8*, i8** %1, i64 %23
%25 = load i8*, i8** %24
%26 = load i32, i32* @O_RDWR
%27 = tail call i32 @open(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %26)
%28 = icmp eq i32 %27, -1
br i1 %28, label %29, label %33
29: ; preds = %22
%30 = tail call i32 @perror(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%31 = load i32, i32* @EXIT_FAILURE
%32 = tail call i32 @exit(i32 %31)
unreachable
33: ; preds = %22
%34 = tail call i64 @strcmp(i8* %25, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = tail call i32 @get_entropy_cnt(i32 %27, i32 %14, i8** %24)
br label %63
38: ; preds = %33
%39 = tail call i64 @strcmp(i8* %25, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = tail call i32 @add_entropy_cnt(i32 %27, i32 %14, i8** %24)
br label %63
43: ; preds = %38
%44 = tail call i64 @strcmp(i8* %25, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %43
%47 = tail call i32 @add_entropy(i32 %27, i32 %14, i8** %24)
br label %63
48: ; preds = %43
%49 = tail call i64 @strcmp(i8* %25, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = tail call i32 @add_random(i32 %27, i32 %14, i8** %24)
br label %63
53: ; preds = %48
%54 = tail call i64 @strcmp(i8* %25, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %53
%57 = tail call i32 @clear_pool(i32 %27, i32 %14, i8** %24)
br label %63
58: ; preds = %53
%59 = load i32, i32* @stderr
%60 = tail call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), i8* %25)
%61 = tail call i32 (...) @usage()
%62 = load i32, i32* @EXIT_FAILURE
br label %63
63: ; preds = %41, %51, %58, %56, %46, %36
%64 = phi i32 [ %37, %36 ], [ %42, %41 ], [ %47, %46 ], [ %52, %51 ], [ %57, %56 ], [ %62, %58 ]
%65 = tail call i32 @close(i32 %27)
ret i32 %64
}