#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_type(char *, int, int);
void preload_types(void) {
  add_type("OS2_HPFS", 0x07, 0x17);
  add_type("FAT16_lba", 0xE, -1);
  add_type("FAT32_lba", 0xC, -1);
  add_type("FAT32", 0xB, -1);
  add_type("NTFS", 7, -1);
  add_type("DOS16_big", 6, -1);
  add_type("DOS16_small", 4, -1);
  add_type("DOS12", 1, -1);
}


x86 assembly (clang, -O0):
<preload_types>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x7,%esi
mov    $0x17,%edx
call   1030 <add_type@plt>
lea    0xed8(%rip),%rdi
mov    $0xe,%esi
mov    $0xffffffff,%edx
call   1030 <add_type@plt>
lea    0xecc(%rip),%rdi
mov    $0xc,%esi
mov    $0xffffffff,%edx
call   1030 <add_type@plt>
lea    0xec0(%rip),%rdi
mov    $0xb,%esi
mov    $0xffffffff,%edx
call   1030 <add_type@plt>
lea    0xeb0(%rip),%rdi
mov    $0x7,%esi
mov    $0xffffffff,%edx
call   1030 <add_type@plt>
lea    0xe9f(%rip),%rdi
mov    $0x6,%esi
mov    $0xffffffff,%edx
call   1030 <add_type@plt>
lea    0xe93(%rip),%rdi
mov    $0x4,%esi
mov    $0xffffffff,%edx
call   1030 <add_type@plt>
lea    0xe89(%rip),%rdi
mov    $0x1,%esi
mov    $0xffffffff,%edx
call   1030 <add_type@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<preload_types>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x7,%esi
mov    $0x17,%edx
call   1030 <add_type@plt>
lea    0xedb(%rip),%rdi
mov    $0xe,%esi
mov    $0xffffffff,%edx
call   1030 <add_type@plt>
lea    0xecf(%rip),%rdi
mov    $0xc,%esi
mov    $0xffffffff,%edx
call   1030 <add_type@plt>
lea    0xec3(%rip),%rdi
mov    $0xb,%esi
mov    $0xffffffff,%edx
call   1030 <add_type@plt>
lea    0xeb3(%rip),%rdi
mov    $0x7,%esi
mov    $0xffffffff,%edx
call   1030 <add_type@plt>
lea    0xea2(%rip),%rdi
mov    $0x6,%esi
mov    $0xffffffff,%edx
call   1030 <add_type@plt>
lea    0xe96(%rip),%rdi
mov    $0x4,%esi
mov    $0xffffffff,%edx
call   1030 <add_type@plt>
lea    0xe8c(%rip),%rdi
mov    $0x1,%esi
mov    $0xffffffff,%edx
pop    %rax
jmp    1030 <add_type@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"OS2_HPFS\00"
@.str.1 = [10 x i8] c"FAT16_lba\00"
@.str.2 = [10 x i8] c"FAT32_lba\00"
@.str.3 = [6 x i8] c"FAT32\00"
@.str.4 = [5 x i8] c"NTFS\00"
@.str.5 = [10 x i8] c"DOS16_big\00"
@.str.6 = [12 x i8] c"DOS16_small\00"
@.str.7 = [6 x i8] c"DOS12\00"
define void @preload_types() {
%1 = call i32 @add_type(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 7, i32 23)
%2 = call i32 @add_type(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 14, i32 -1)
%3 = call i32 @add_type(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 12, i32 -1)
%4 = call i32 @add_type(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 11, i32 -1)
%5 = call i32 @add_type(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 7, i32 -1)
%6 = call i32 @add_type(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i32 6, i32 -1)
%7 = call i32 @add_type(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 4, i32 -1)
%8 = call i32 @add_type(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 1, i32 -1)
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"OS2_HPFS\00"
@.str.1 = [10 x i8] c"FAT16_lba\00"
@.str.2 = [10 x i8] c"FAT32_lba\00"
@.str.3 = [6 x i8] c"FAT32\00"
@.str.4 = [5 x i8] c"NTFS\00"
@.str.5 = [10 x i8] c"DOS16_big\00"
@.str.6 = [12 x i8] c"DOS16_small\00"
@.str.7 = [6 x i8] c"DOS12\00"
define void @preload_types() {
%1 = tail call i32 @add_type(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 7, i32 23)
%2 = tail call i32 @add_type(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 14, i32 -1)
%3 = tail call i32 @add_type(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 12, i32 -1)
%4 = tail call i32 @add_type(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 11, i32 -1)
%5 = tail call i32 @add_type(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 7, i32 -1)
%6 = tail call i32 @add_type(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i32 6, i32 -1)
%7 = tail call i32 @add_type(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 4, i32 -1)
%8 = tail call i32 @add_type(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 1, i32 -1)
ret void
}