#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*/ add_factory(char *, int /*<<< orphan*/);
int /*<<< orphan*/ get_gp_dynamic_factory();
int /*<<< orphan*/ get_rt_dynamic_factory();
int /*<<< orphan*/ get_rt_dynamic_pri_factory();
int /*<<< orphan*/ get_rt_fixed_factory();
int /*<<< orphan*/ get_rt_fixed_pri_factory();
void __default_factory_loading() {
  add_factory("dynamic_group", get_gp_dynamic_factory());
  add_factory("dynamic_rt", get_rt_dynamic_factory());
  add_factory("dynamic_rt_pri", get_rt_dynamic_pri_factory());
  add_factory("fixed_rt", get_rt_fixed_factory());
  add_factory("fixed_rt_pri", get_rt_fixed_pri_factory());
}


x86 assembly (clang, -O0):
<__default_factory_loading>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <get_gp_dynamic_factory@plt>
mov    %eax,%esi
lea    0xe8c(%rip),%rdi
call   1060 <add_factory@plt>
mov    $0x0,%al
call   1080 <get_rt_dynamic_factory@plt>
mov    %eax,%esi
lea    0xe85(%rip),%rdi
call   1060 <add_factory@plt>
mov    $0x0,%al
call   1070 <get_rt_dynamic_pri_factory@plt>
mov    %eax,%esi
lea    0xe7b(%rip),%rdi
call   1060 <add_factory@plt>
mov    $0x0,%al
call   1040 <get_rt_fixed_factory@plt>
mov    %eax,%esi
lea    0xe75(%rip),%rdi
call   1060 <add_factory@plt>
mov    $0x0,%al
call   1050 <get_rt_fixed_pri_factory@plt>
mov    %eax,%esi
lea    0xe69(%rip),%rdi
call   1060 <add_factory@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<__default_factory_loading>:
push   %rax
xor    %eax,%eax
call   1030 <get_gp_dynamic_factory@plt>
lea    0xe91(%rip),%rdi
mov    %eax,%esi
call   1060 <add_factory@plt>
xor    %eax,%eax
call   1080 <get_rt_dynamic_factory@plt>
lea    0xe8a(%rip),%rdi
mov    %eax,%esi
call   1060 <add_factory@plt>
xor    %eax,%eax
call   1070 <get_rt_dynamic_pri_factory@plt>
lea    0xe80(%rip),%rdi
mov    %eax,%esi
call   1060 <add_factory@plt>
xor    %eax,%eax
call   1040 <get_rt_fixed_factory@plt>
lea    0xe7a(%rip),%rdi
mov    %eax,%esi
call   1060 <add_factory@plt>
xor    %eax,%eax
call   1050 <get_rt_fixed_pri_factory@plt>
lea    0xe6e(%rip),%rdi
mov    %eax,%esi
pop    %rax
jmp    1060 <add_factory@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"dynamic_group\00"
@.str.1 = [11 x i8] c"dynamic_rt\00"
@.str.2 = [15 x i8] c"dynamic_rt_pri\00"
@.str.3 = [9 x i8] c"fixed_rt\00"
@.str.4 = [13 x i8] c"fixed_rt_pri\00"
define void @__default_factory_loading() {
%1 = call i32 (...) @get_gp_dynamic_factory()
%2 = call i32 @add_factory(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = call i32 (...) @get_rt_dynamic_factory()
%4 = call i32 @add_factory(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = call i32 (...) @get_rt_dynamic_pri_factory()
%6 = call i32 @add_factory(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = call i32 (...) @get_rt_fixed_factory()
%8 = call i32 @add_factory(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = call i32 (...) @get_rt_fixed_pri_factory()
%10 = call i32 @add_factory(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 %9)
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"dynamic_group\00"
@.str.1 = [11 x i8] c"dynamic_rt\00"
@.str.2 = [15 x i8] c"dynamic_rt_pri\00"
@.str.3 = [9 x i8] c"fixed_rt\00"
@.str.4 = [13 x i8] c"fixed_rt_pri\00"
define void @__default_factory_loading() {
%1 = tail call i32 (...) @get_gp_dynamic_factory()
%2 = tail call i32 @add_factory(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 (...) @get_rt_dynamic_factory()
%4 = tail call i32 @add_factory(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = tail call i32 (...) @get_rt_dynamic_pri_factory()
%6 = tail call i32 @add_factory(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = tail call i32 (...) @get_rt_fixed_factory()
%8 = tail call i32 @add_factory(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = tail call i32 (...) @get_rt_fixed_pri_factory()
%10 = tail call i32 @add_factory(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 %9)
ret void
}