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

/* Variables and functions */
int EOF;
int EXIT_FAILURE;
int EXIT_SUCCESS;
double difftime(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ execvp(char *, char **);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int getopt(int, char **, char *);
scalar_t__ kbhit();
char **malloc(int);
int /*<<< orphan*/ nonblock();
int /*<<< orphan*/ optarg;
int optind;
int /*<<< orphan*/ puts(char *);
int reset_input();
int /*<<< orphan*/ reset_terminal_mode();
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ stderr;
double strtod(int /*<<< orphan*/, int /*<<< orphan*/ *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(int argc, char *argv[]) {
  int opt, argindex, i;
  char **cmd;
  time_t start, now;
  double threshold = 900;
  while ((opt = getopt(argc, argv, "+ht:")) != EOF) {
    switch (opt) {
    case 'h':
      puts("Usage: %s [-t seconds] command");
      puts("Use 'q' to abort timer");
      return EXIT_SUCCESS;
    case 't':
      threshold = strtod(optarg, NULL);
      break;
    default:
      fprintf(stderr, "Usage: %s [-t seconds] command\n", argv[0]);
      return EXIT_FAILURE;
    }
  }
  if (optind == argc)
    puts("Warning: No command defined.");
  cmd = malloc(sizeof(char *) * (1 + argc - optind));
  if (!cmd)
    return EXIT_FAILURE;
  for (argindex = optind, i = 0; argindex < argc; argindex++, i++)
    cmd[i] = argv[argindex];
  nonblock();
  puts("SLOAP started.\r");
  time(&start);
  for (;;) {
    if (kbhit()) {
      if (reset_input() == 113) {
        puts("SLOAP exited.\r");
        return EXIT_SUCCESS;
      }
      puts("Timer has been reset.\r");
      time(&start);
    }
    time(&now);
    if (difftime(now, start) > threshold)
      break;
    sleep(1);
  }
  puts("Wakeup time!\r");
  reset_terminal_mode();
  execvp(cmd[0], cmd);
  return EXIT_SUCCESS;
}


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)
movsd  0xe12(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe07(%rip),%rdx
call   10c0 <getopt@plt>
mov    %eax,-0x14(%rbp)
mov    0x2dd0(%rip),%rcx
cmp    (%rcx),%eax
je     12b4 <main+0xe4>
mov    -0x14(%rbp),%eax
mov    %eax,-0x3c(%rbp)
sub    $0x68,%eax
je     123d <main+0x6d>
jmp    122c <main+0x5c>
mov    -0x3c(%rbp),%eax
sub    $0x74,%eax
je     1266 <main+0x96>
jmp    1282 <main+0xb2>
lea    0xdc9(%rip),%rdi
call   1040 <puts@plt>
lea    0xddc(%rip),%rdi
call   1040 <puts@plt>
mov    0x2d5c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    142d <main+0x25d>
mov    0x2d8b(%rip),%rax
mov    (%rax),%edi
xor    %eax,%eax
mov    %eax,%esi
call   1050 <strtod@plt>
movsd  %xmm0,-0x38(%rbp)
jmp    12af <main+0xdf>
mov    0x2d3f(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xdaa(%rip),%rsi
call   1090 <fprintf@plt>
mov    0x2d1b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    142d <main+0x25d>
jmp    11f3 <main+0x23>
mov    0x2d1d(%rip),%rax
mov    (%rax),%eax
cmp    -0x8(%rbp),%eax
jne    12d2 <main+0x102>
lea    0xd96(%rip),%rdi
call   1040 <puts@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    0x2cf9(%rip),%rcx
sub    (%rcx),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   10b0 <malloc@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    130e <main+0x13e>
mov    0x2cbc(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    142d <main+0x25d>
mov    0x2cc3(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    135c <main+0x18c>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0x28(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1321 <main+0x151>
mov    $0x0,%al
call   1030 <nonblock@plt>
lea    0xd16(%rip),%rdi
call   1040 <puts@plt>
lea    -0x2c(%rbp),%rdi
call   10a0 <time@plt>
mov    $0x0,%al
call   1080 <kbhit@plt>
cmp    $0x0,%rax
je     13cb <main+0x1fb>
mov    $0x0,%al
call   1060 <reset_input@plt>
cmp    $0x71,%eax
jne    13b6 <main+0x1e6>
lea    0xcf0(%rip),%rdi
call   1040 <puts@plt>
mov    0x2c0c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    142d <main+0x25d>
lea    0xce2(%rip),%rdi
call   1040 <puts@plt>
lea    -0x2c(%rbp),%rdi
call   10a0 <time@plt>
lea    -0x30(%rbp),%rdi
call   10a0 <time@plt>
mov    -0x30(%rbp),%edi
mov    -0x2c(%rbp),%esi
call   1070 <difftime@plt>
ucomisd -0x38(%rbp),%xmm0
jbe    13ef <main+0x21f>
jmp    13fe <main+0x22e>
mov    $0x1,%edi
call   10f0 <sleep@plt>
jmp    1378 <main+0x1a8>
lea    0xcb1(%rip),%rdi
call   1040 <puts@plt>
mov    $0x0,%al
call   10e0 <reset_terminal_mode@plt>
mov    -0x28(%rbp),%rax
mov    (%rax),%rdi
mov    -0x28(%rbp),%rsi
call   10d0 <execvp@plt>
mov    0x2b90(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%r12
mov    %edi,%ebp
lea    0xe10(%rip),%rdx
call   10d0 <getopt@plt>
mov    0x2ddc(%rip),%r15
cmp    (%r15),%eax
jne    1219 <main+0x39>
movsd  0xdef(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
jmp    125a <main+0x7a>
mov    0x2dd8(%rip),%rbx
lea    0xde1(%rip),%r14
nopw   0x0(%rax,%rax,1)
cmp    $0x74,%eax
jne    1330 <main+0x150>
mov    (%rbx),%edi
xor    %esi,%esi
call   1050 <strtod@plt>
movsd  %xmm0,0x8(%rsp)
mov    %ebp,%edi
mov    %r12,%rsi
mov    %r14,%rdx
call   10d0 <getopt@plt>
cmp    (%r15),%eax
jne    1230 <main+0x50>
mov    0x2d77(%rip),%r14
mov    (%r14),%ebx
cmp    %ebp,%ebx
jne    1277 <main+0x97>
lea    0xdf4(%rip),%rdi
call   1040 <puts@plt>
mov    (%r14),%ebx
mov    %ebp,%eax
sub    %ebx,%eax
lea    0x8(,%rax,8),%edi
call   10c0 <malloc@plt>
test   %rax,%rax
je     1398 <main+0x1b8>
mov    %rax,%r14
cmp    %ebp,%ebx
jge    12b2 <main+0xd2>
movslq %ebx,%rax
lea    (%r12,%rax,8),%rsi
not    %ebx
add    %ebp,%ebx
lea    0x8(,%rbx,8),%rdx
mov    %r14,%rdi
call   10a0 <memcpy@plt>
xor    %eax,%eax
call   1030 <nonblock@plt>
lea    0xdc0(%rip),%rdi
call   1040 <puts@plt>
lea    0x4(%rsp),%r15
mov    %r15,%rdi
call   10b0 <time@plt>
mov    %rsp,%rbp
lea    0xdc3(%rip),%rbx
nopl   0x0(%rax)
xor    %eax,%eax
call   1080 <kbhit@plt>
test   %rax,%rax
je     1308 <main+0x128>
xor    %eax,%eax
call   1060 <reset_input@plt>
cmp    $0x71,%eax
je     136a <main+0x18a>
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
call   10b0 <time@plt>
mov    %rbp,%rdi
call   10b0 <time@plt>
mov    (%rsp),%edi
mov    0x4(%rsp),%esi
call   1070 <difftime@plt>
ucomisd 0x8(%rsp),%xmm0
ja     134a <main+0x16a>
mov    $0x1,%edi
call   1100 <sleep@plt>
jmp    12e0 <main+0x100>
cmp    $0x68,%eax
jne    137f <main+0x19f>
lea    0xcd1(%rip),%rdi
call   1040 <puts@plt>
lea    0xce4(%rip),%rdi
jmp    1371 <main+0x191>
lea    0xd65(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   10f0 <reset_terminal_mode@plt>
mov    (%r14),%rdi
mov    %r14,%rsi
call   10e0 <execvp@plt>
jmp    1376 <main+0x196>
lea    0xd1f(%rip),%rdi
call   1040 <puts@plt>
mov    0x2c3b(%rip),%rax
jmp    139f <main+0x1bf>
mov    0x2c42(%rip),%rax
mov    (%rax),%edi
mov    (%r12),%rdx
lea    0xcb0(%rip),%rsi
call   1090 <fprintf@plt>
mov    0x2c21(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"+ht:\00"
@EOF = global i32 0
@.str.1 = [31 x i8] c"Usage: %s [-t seconds] command\00"
@.str.2 = [23 x i8] c"Use 'q' to abort timer\00"
@EXIT_SUCCESS = global i32 0
@optarg = global i32 0
@stderr = global i32 0
@.str.3 = [32 x i8] c"Usage: %s [-t seconds] command\0A\00"
@EXIT_FAILURE = global i32 0
@optind = global i32 0
@.str.4 = [29 x i8] c"Warning: No command defined.\00"
@.str.5 = [16 x i8] c"SLOAP started.\0D\00"
@.str.6 = [15 x i8] c"SLOAP exited.\0D\00"
@.str.7 = [23 x i8] c"Timer has been reset.\0D\00"
@.str.8 = [14 x i8] c"Wakeup time!\0D\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 i8**
%10 = alloca i32
%11 = alloca i32
%12 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store double 9.000000e+02, double* %12
br label %13
13: ; preds = %35, %2
%14 = load i32, i32* %4
%15 = load i8**, i8*** %5
%16 = call i32 @getopt(i32 %14, i8** %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
store i32 %16, i32* %6
%17 = load i32, i32* @EOF
%18 = icmp ne i32 %16, %17
br i1 %18, label %19, label %36
19: ; preds = %13
%20 = load i32, i32* %6
switch i32 %20, label %28 [
i32 104, label %21
i32 116, label %25
]
21: ; preds = %19
%22 = call i32 @puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%23 = call i32 @puts(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%24 = load i32, i32* @EXIT_SUCCESS
store i32 %24, i32* %3
br label %111
25: ; preds = %19
%26 = load i32, i32* @optarg
%27 = call double @strtod(i32 %26, i32* null)
store double %27, double* %12
br label %35
28: ; preds = %19
%29 = load i32, i32* @stderr
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 0
%32 = load i8*, i8** %31
%33 = call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), i8* %32)
%34 = load i32, i32* @EXIT_FAILURE
store i32 %34, i32* %3
br label %111
35: ; preds = %25
br label %13
36: ; preds = %13
%37 = load i32, i32* @optind
%38 = load i32, i32* %4
%39 = icmp eq i32 %37, %38
br i1 %39, label %40, label %42
40: ; preds = %36
%41 = call i32 @puts(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
br label %42
42: ; preds = %40, %36
%43 = load i32, i32* %4
%44 = add nsw i32 1, %43
%45 = load i32, i32* @optind
%46 = sub nsw i32 %44, %45
%47 = sext i32 %46 to i64
%48 = mul i64 8, %47
%49 = trunc i64 %48 to i32
%50 = call i8** @malloc(i32 %49)
store i8** %50, i8*** %9
%51 = load i8**, i8*** %9
%52 = icmp ne i8** %51, null
br i1 %52, label %55, label %53
53: ; preds = %42
%54 = load i32, i32* @EXIT_FAILURE
store i32 %54, i32* %3
br label %111
55: ; preds = %42
%56 = load i32, i32* @optind
store i32 %56, i32* %7
store i32 0, i32* %8
br label %57
57: ; preds = %71, %55
%58 = load i32, i32* %7
%59 = load i32, i32* %4
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %76
61: ; preds = %57
%62 = load i8**, i8*** %5
%63 = load i32, i32* %7
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i8*, i8** %62, i64 %64
%66 = load i8*, i8** %65
%67 = load i8**, i8*** %9
%68 = load i32, i32* %8
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8*, i8** %67, i64 %69
store i8* %66, i8** %70
br label %71
71: ; preds = %61
%72 = load i32, i32* %7
%73 = add nsw i32 %72, 1
store i32 %73, i32* %7
%74 = load i32, i32* %8
%75 = add nsw i32 %74, 1
store i32 %75, i32* %8
br label %57
76: ; preds = %57
%77 = call i32 (...) @nonblock()
%78 = call i32 @puts(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%79 = call i32 @time(i32* %10)
br label %80
80: ; preds = %100, %76
%81 = call i64 (...) @kbhit()
%82 = icmp ne i64 %81, 0
br i1 %82, label %83, label %92
83: ; preds = %80
%84 = call i32 (...) @reset_input()
%85 = icmp eq i32 %84, 113
br i1 %85, label %86, label %89
86: ; preds = %83
%87 = call i32 @puts(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%88 = load i32, i32* @EXIT_SUCCESS
store i32 %88, i32* %3
br label %111
89: ; preds = %83
%90 = call i32 @puts(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%91 = call i32 @time(i32* %10)
br label %92
92: ; preds = %89, %80
%93 = call i32 @time(i32* %11)
%94 = load i32, i32* %11
%95 = load i32, i32* %10
%96 = call double @difftime(i32 %94, i32 %95)
%97 = load double, double* %12
%98 = fcmp ogt double %96, %97
br i1 %98, label %99, label %100
99: ; preds = %92
br label %102
100: ; preds = %92
%101 = call i32 @sleep(i32 1)
br label %80
102: ; preds = %99
%103 = call i32 @puts(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
%104 = call i32 (...) @reset_terminal_mode()
%105 = load i8**, i8*** %9
%106 = getelementptr inbounds i8*, i8** %105, i64 0
%107 = load i8*, i8** %106
%108 = load i8**, i8*** %9
%109 = call i32 @execvp(i8* %107, i8** %108)
%110 = load i32, i32* @EXIT_SUCCESS
store i32 %110, i32* %3
br label %111
111: ; preds = %102, %86, %53, %28, %21
%112 = load i32, i32* %3
ret i32 %112
}

LLVM IR (-O2):
@.str = [5 x i8] c"+ht:\00"
@EOF = global i32 0
@.str.1 = [31 x i8] c"Usage: %s [-t seconds] command\00"
@.str.2 = [23 x i8] c"Use 'q' to abort timer\00"
@EXIT_SUCCESS = global i32 0
@optarg = global i32 0
@stderr = global i32 0
@.str.3 = [32 x i8] c"Usage: %s [-t seconds] command\0A\00"
@EXIT_FAILURE = global i32 0
@optind = global i32 0
@.str.4 = [29 x i8] c"Warning: No command defined.\00"
@.str.5 = [16 x i8] c"SLOAP started.\0D\00"
@.str.6 = [15 x i8] c"SLOAP exited.\0D\00"
@.str.7 = [23 x i8] c"Timer has been reset.\0D\00"
@.str.8 = [14 x i8] c"Wakeup time!\0D\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %3 to i8*
%6 = bitcast i32* %4 to i8*
%7 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%8 = load i32, i32* @EOF
%9 = icmp eq i32 %7, %8
br i1 %9, label %25, label %10
10: ; preds = %2, %15
%11 = phi i32 [ %18, %15 ], [ %7, %2 ]
switch i32 %11, label %21 [
i32 104, label %12
i32 116, label %15
]
12: ; preds = %10
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
br label %79
15: ; preds = %10
%16 = load i32, i32* @optarg
%17 = tail call double @strtod(i32 %16, i32* null)
%18 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%19 = load i32, i32* @EOF
%20 = icmp eq i32 %18, %19
br i1 %20, label %25, label %10
21: ; preds = %10
%22 = load i32, i32* @stderr
%23 = load i8*, i8** %1
%24 = tail call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), i8* %23)
br label %79
25: ; preds = %15, %2
%26 = phi double [ 9.000000e+02, %2 ], [ %17, %15 ]
%27 = load i32, i32* @optind
%28 = icmp eq i32 %27, %0
br i1 %28, label %29, label %32
29: ; preds = %25
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
%31 = load i32, i32* @optind
br label %32
32: ; preds = %29, %25
%33 = phi i32 [ %31, %29 ], [ %27, %25 ]
%34 = add nsw i32 %0, 1
%35 = sub i32 %34, %33
%36 = shl i32 %35, 3
%37 = tail call i8** @malloc(i32 %36)
%38 = bitcast i8** %37 to i8*
%39 = icmp eq i8** %37, null
br i1 %39, label %79, label %40
40: ; preds = %32
%41 = icmp slt i32 %33, %0
br i1 %41, label %42, label %51
42: ; preds = %40
%43 = sext i32 %33 to i64
%44 = getelementptr i8*, i8** %1, i64 %43
%45 = bitcast i8** %44 to i8*
%46 = xor i32 %33, -1
%47 = add i32 %46, %0
%48 = zext i32 %47 to i64
%49 = shl nuw nsw i64 %48, 3
%50 = add nuw nsw i64 %49, 8
br label %51
51: ; preds = %42, %40
%52 = tail call i32 (...) @nonblock()
%53 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%54 = call i32 @time(i32* %3)
br label %55
55: ; preds = %72, %51
%56 = call i64 (...) @kbhit()
%57 = icmp eq i64 %56, 0
br i1 %57, label %66, label %58
58: ; preds = %55
%59 = call i32 (...) @reset_input()
%60 = icmp eq i32 %59, 113
br i1 %60, label %61, label %63
61: ; preds = %58
%62 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
br label %79
63: ; preds = %58
%64 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%65 = call i32 @time(i32* %3)
br label %66
66: ; preds = %63, %55
%67 = call i32 @time(i32* %4)
%68 = load i32, i32* %4
%69 = load i32, i32* %3
%70 = call double @difftime(i32 %68, i32 %69)
%71 = fcmp ogt double %70, %26
br i1 %71, label %74, label %72
72: ; preds = %66
%73 = call i32 @sleep(i32 1)
br label %55
74: ; preds = %66
%75 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
%76 = call i32 (...) @reset_terminal_mode()
%77 = load i8*, i8** %37
%78 = call i32 @execvp(i8* %77, i8** %37)
br label %79
79: ; preds = %32, %74, %61, %21, %12
%80 = phi i32* [ @EXIT_FAILURE, %21 ], [ @EXIT_SUCCESS, %12 ], [ @EXIT_SUCCESS, %61 ], [ @EXIT_SUCCESS, %74 ], [ @EXIT_FAILURE, %32 ]
%81 = load i32, i32* %80
ret i32 %81
}