#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(int);
int /*<<< orphan*/ UserInitializationCalloutf(char *);
int /*<<< orphan*/ UserPostShutdownCalloutf();
int /*<<< orphan*/ UserPreOoaInitializationCalloutf(char *);
int /*<<< orphan*/ UserPreShutdownCalloutf();
int /*<<< orphan*/ ooaofooa_execute_initialization();
int main(int argc, char **argv) {
  UserInitializationCalloutf(*argv);
  ;
  Escher_SetFactoryInit((4340 + 920));
  ApplicationLevelInitialization();
  UserPreOoaInitializationCalloutf(*argv);
  ooaofooa_execute_initialization();
  ;
  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   1030 <UserInitializationCalloutf@plt>
mov    $0x148c,%edi
call   1090 <Escher_SetFactoryInit@plt>
mov    $0x0,%al
call   1060 <ApplicationLevelInitialization@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1080 <UserPreOoaInitializationCalloutf@plt>
mov    $0x0,%al
call   1050 <ooaofooa_execute_initialization@plt>
mov    $0x0,%al
call   1040 <UserPreShutdownCalloutf@plt>
mov    $0x0,%al
call   1070 <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   1030 <UserInitializationCalloutf@plt>
mov    $0x148c,%edi
call   1090 <Escher_SetFactoryInit@plt>
xor    %eax,%eax
call   1060 <ApplicationLevelInitialization@plt>
mov    (%rbx),%rdi
call   1080 <UserPreOoaInitializationCalloutf@plt>
xor    %eax,%eax
call   1050 <ooaofooa_execute_initialization@plt>
xor    %eax,%eax
call   1040 <UserPreShutdownCalloutf@plt>
xor    %eax,%eax
call   1070 <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(i32 5260)
%10 = call i32 (...) @ApplicationLevelInitialization()
%11 = load i8**, i8*** %5
%12 = load i8*, i8** %11
%13 = call i32 @UserPreOoaInitializationCalloutf(i8* %12)
%14 = call i32 (...) @ooaofooa_execute_initialization()
%15 = call i32 (...) @UserPreShutdownCalloutf()
%16 = 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(i32 5260)
%6 = tail call i32 (...) @ApplicationLevelInitialization()
%7 = load i8*, i8** %1
%8 = tail call i32 @UserPreOoaInitializationCalloutf(i8* %7)
%9 = tail call i32 (...) @ooaofooa_execute_initialization()
%10 = tail call i32 (...) @UserPreShutdownCalloutf()
%11 = tail call i32 (...) @UserPostShutdownCalloutf()
ret i32 0
}