#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;
scalar_t__ TFR_args(int *, char ***);
int /*<<< orphan*/ TFR_main(int, char **);
scalar_t__ TFR_run();
int main(int argc, char **argv) {
  int result = EXIT_FAILURE;
  if (TFR_args(&argc, &argv)) {
    TFR_main(argc, argv);
    if (TFR_run()) {
      result = EXIT_SUCCESS;
    }
  }
  return result;
}


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)
mov    0x2e93(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
call   1030 <TFR_args@plt>
cmp    $0x0,%rax
je     1197 <main+0x67>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1050 <TFR_main@plt>
mov    $0x0,%al
call   1040 <TFR_run@plt>
cmp    $0x0,%rax
je     1192 <main+0x62>
mov    0x2e4b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
jmp    1197 <main+0x67>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
mov    %edi,0x4(%rsp)
mov    %rsi,0x8(%rsp)
mov    0x2e9b(%rip),%rax
mov    (%rax),%ebx
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
call   1030 <TFR_args@plt>
test   %rax,%rax
je     117e <main+0x4e>
mov    0x4(%rsp),%edi
mov    0x8(%rsp),%rsi
call   1050 <TFR_main@plt>
xor    %eax,%eax
call   1040 <TFR_run@plt>
test   %rax,%rax
je     117e <main+0x4e>
mov    0x2e5c(%rip),%rax
mov    (%rax),%ebx
mov    %ebx,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i32, i32* @EXIT_FAILURE
store i32 %7, i32* %6
%8 = call i64 @TFR_args(i32* %4, i8*** %5)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %19
10: ; preds = %2
%11 = load i32, i32* %4
%12 = load i8**, i8*** %5
%13 = call i32 @TFR_main(i32 %11, i8** %12)
%14 = call i64 (...) @TFR_run()
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %10
%17 = load i32, i32* @EXIT_SUCCESS
store i32 %17, i32* %6
br label %18
18: ; preds = %16, %10
br label %19
19: ; preds = %18, %2
%20 = load i32, i32* %6
ret i32 %20
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = load i32, i32* @EXIT_FAILURE
%6 = call i64 @TFR_args(i32* %3, i8*** %4)
%7 = icmp eq i64 %6, 0
br i1 %7, label %16, label %8
8: ; preds = %2
%9 = load i32, i32* %3
%10 = load i8**, i8*** %4
%11 = call i32 @TFR_main(i32 %9, i8** %10)
%12 = call i64 (...) @TFR_run()
%13 = icmp eq i64 %12, 0
%14 = load i32, i32* @EXIT_SUCCESS
%15 = select i1 %13, i32 %5, i32 %14
br label %16
16: ; preds = %8, %2
%17 = phi i32 [ %5, %2 ], [ %15, %8 ]
ret i32 %17
}