#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*/ ApplicationLevelInitialization();
int /*<<< orphan*/ Escher_SetFactoryInit(scalar_t__);
int /*<<< orphan*/ Escher_xtUML_run();
int /*<<< orphan*/ InitializeOoaEventPool();
int /*<<< orphan*/ UserInitializationCalloutf(char *);
int /*<<< orphan*/ UserPostShutdownCalloutf();
int /*<<< orphan*/ UserPreOoaInitializationCalloutf(char *);
int /*<<< orphan*/ UserPreShutdownCalloutf();
int /*<<< orphan*/ heart_execute_initialization();
int /*<<< orphan*/ hostmonitor_execute_initialization();
int /*<<< orphan*/ pacemaker_execute_initialization();
int main(int argc, char **argv) {
  UserInitializationCalloutf(*argv);
  ;
  Escher_SetFactoryInit((0 + 0));
  InitializeOoaEventPool();
  ApplicationLevelInitialization();
  UserPreOoaInitializationCalloutf(*argv);
  pacemaker_execute_initialization();
  hostmonitor_execute_initialization();
  heart_execute_initialization();
  ;
  Escher_xtUML_run();
  UserPreShutdownCalloutf();
  UserPostShutdownCalloutf();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1040 <UserInitializationCalloutf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   10d0 <Escher_SetFactoryInit@plt>
mov    $0x0,%al
call   1080 <InitializeOoaEventPool@plt>
mov    $0x0,%al
call   1070 <ApplicationLevelInitialization@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   10c0 <UserPreOoaInitializationCalloutf@plt>
mov    $0x0,%al
call   10a0 <pacemaker_execute_initialization@plt>
mov    $0x0,%al
call   1060 <hostmonitor_execute_initialization@plt>
mov    $0x0,%al
call   1030 <heart_execute_initialization@plt>
mov    $0x0,%al
call   10b0 <Escher_xtUML_run@plt>
mov    $0x0,%al
call   1050 <UserPreShutdownCalloutf@plt>
mov    $0x0,%al
call   1090 <UserPostShutdownCalloutf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    %rsi,%rbx
mov    (%rsi),%rdi
call   1040 <UserInitializationCalloutf@plt>
xor    %edi,%edi
call   10d0 <Escher_SetFactoryInit@plt>
xor    %eax,%eax
call   1080 <InitializeOoaEventPool@plt>
xor    %eax,%eax
call   1070 <ApplicationLevelInitialization@plt>
mov    (%rbx),%rdi
call   10c0 <UserPreOoaInitializationCalloutf@plt>
xor    %eax,%eax
call   10a0 <pacemaker_execute_initialization@plt>
xor    %eax,%eax
call   1060 <hostmonitor_execute_initialization@plt>
xor    %eax,%eax
call   1030 <heart_execute_initialization@plt>
xor    %eax,%eax
call   10b0 <Escher_xtUML_run@plt>
xor    %eax,%eax
call   1050 <UserPreShutdownCalloutf@plt>
xor    %eax,%eax
call   1090 <UserPostShutdownCalloutf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i8**, i8*** %5
%7 = load i8*, i8** %6
%8 = call i32 @UserInitializationCalloutf(i8* %7)
%9 = call i32 @Escher_SetFactoryInit(i64 0)
%10 = call i32 (...) @InitializeOoaEventPool()
%11 = call i32 (...) @ApplicationLevelInitialization()
%12 = load i8**, i8*** %5
%13 = load i8*, i8** %12
%14 = call i32 @UserPreOoaInitializationCalloutf(i8* %13)
%15 = call i32 (...) @pacemaker_execute_initialization()
%16 = call i32 (...) @hostmonitor_execute_initialization()
%17 = call i32 (...) @heart_execute_initialization()
%18 = call i32 (...) @Escher_xtUML_run()
%19 = call i32 (...) @UserPreShutdownCalloutf()
%20 = call i32 (...) @UserPostShutdownCalloutf()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = load i8*, i8** %1
%4 = tail call i32 @UserInitializationCalloutf(i8* %3)
%5 = tail call i32 @Escher_SetFactoryInit(i64 0)
%6 = tail call i32 (...) @InitializeOoaEventPool()
%7 = tail call i32 (...) @ApplicationLevelInitialization()
%8 = load i8*, i8** %1
%9 = tail call i32 @UserPreOoaInitializationCalloutf(i8* %8)
%10 = tail call i32 (...) @pacemaker_execute_initialization()
%11 = tail call i32 (...) @hostmonitor_execute_initialization()
%12 = tail call i32 (...) @heart_execute_initialization()
%13 = tail call i32 (...) @Escher_xtUML_run()
%14 = tail call i32 (...) @UserPreShutdownCalloutf()
%15 = tail call i32 (...) @UserPostShutdownCalloutf()
ret i32 0
}