#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 /*<<< orphan*/ t_Exit();
int /*<<< orphan*/ t_exit();
int /*<<< orphan*/ tabort();
int /*<<< orphan*/ texit();
int main(void) {
  volatile int i = 0;
  extern void exit(int);
  if (i)
    tabort();
  if (i)
    texit();
  if (i)
    t_exit();
  if (i)
    t_Exit();
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    $0x0,%eax
je     1179 <main+0x29>
mov    $0x0,%al
call   1030 <tabort@plt>
mov    -0x8(%rbp),%eax
cmp    $0x0,%eax
je     118c <main+0x3c>
mov    $0x0,%al
call   1060 <texit@plt>
mov    -0x8(%rbp),%eax
cmp    $0x0,%eax
je     119f <main+0x4f>
mov    $0x0,%al
call   1070 <t_exit@plt>
mov    -0x8(%rbp),%eax
cmp    $0x0,%eax
je     11b2 <main+0x62>
mov    $0x0,%al
call   1040 <t_Exit@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
movl   $0x0,0x4(%rsp)
cmpl   $0x0,0x4(%rsp)
jne    117c <main+0x2c>
cmpl   $0x0,0x4(%rsp)
jne    118a <main+0x3a>
cmpl   $0x0,0x4(%rsp)
jne    1198 <main+0x48>
cmpl   $0x0,0x4(%rsp)
jne    11a6 <main+0x56>
xor    %edi,%edi
call   1050 <exit@plt>
xor    %eax,%eax
call   1030 <tabort@plt>
cmpl   $0x0,0x4(%rsp)
je     1167 <main+0x17>
xor    %eax,%eax
call   1060 <texit@plt>
cmpl   $0x0,0x4(%rsp)
je     116e <main+0x1e>
xor    %eax,%eax
call   1070 <t_exit@plt>
cmpl   $0x0,0x4(%rsp)
je     1175 <main+0x25>
xor    %eax,%eax
call   1040 <t_Exit@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store volatile i32 0, i32* %2
%3 = load volatile i32, i32* %2
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 (...) @tabort()
br label %7
7: ; preds = %5, %0
%8 = load volatile i32, i32* %2
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 (...) @texit()
br label %12
12: ; preds = %10, %7
%13 = load volatile i32, i32* %2
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 (...) @t_exit()
br label %17
17: ; preds = %15, %12
%18 = load volatile i32, i32* %2
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 (...) @t_Exit()
br label %22
22: ; preds = %20, %17
unreachable
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store volatile i32 0, i32* %1
%3 = load volatile i32, i32* %1
%4 = icmp eq i32 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %0
%6 = tail call i32 (...) @tabort()
br label %7
7: ; preds = %5, %0
%8 = load volatile i32, i32* %1
%9 = icmp eq i32 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %7
%11 = tail call i32 (...) @texit()
br label %12
12: ; preds = %10, %7
%13 = load volatile i32, i32* %1
%14 = icmp eq i32 %13, 0
br i1 %14, label %17, label %15
15: ; preds = %12
%16 = tail call i32 (...) @t_exit()
br label %17
17: ; preds = %15, %12
%18 = load volatile i32, i32* %1
%19 = icmp eq i32 %18, 0
br i1 %19, label %22, label %20
20: ; preds = %17
%21 = tail call i32 (...) @t_Exit()
br label %22
22: ; preds = %20, %17
tail call void @exit(i32 0)
unreachable
}