#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*/ db_insert_integer(char *, int);
int /*<<< orphan*/ db_insert_real(char *, double);
void db_init(void) {
  db_insert_integer("screen_w", 800);
  db_insert_integer("screen_h", 800);
  db_insert_real("fps", 50.0);
  db_insert_real("menu_text_caption_r", 0.777);
  db_insert_real("menu_text_caption_g", 0.888);
  db_insert_real("menu_text_caption_b", 0.999);
  db_insert_real("menu_text_on_r", 0.667);
  db_insert_real("menu_text_on_g", 0.5);
  db_insert_real("menu_text_on_b", 0.333);
  db_insert_real("menu_text_off_r", 0.333);
  db_insert_real("menu_text_off_g", 0.5);
  db_insert_real("menu_text_off_b", 0.667);
  db_insert_integer("menu_text_size", 20);
  db_insert_real("menu_text_y_offset", 30.0);
}


x86 assembly (clang, -O0):
<db_init>:
push   %rbp
mov    %rsp,%rbp
lea    0xf15(%rip),%rdi
mov    $0x320,%esi
call   1030 <db_insert_integer@plt>
lea    0xf0d(%rip),%rdi
mov    $0x320,%esi
call   1030 <db_insert_integer@plt>
lea    0xf05(%rip),%rdi
movsd  0xee3(%rip),%xmm0
call   1040 <db_insert_real@plt>
lea    0xef5(%rip),%rdi
movsd  0xec7(%rip),%xmm0
call   1040 <db_insert_real@plt>
lea    0xef5(%rip),%rdi
movsd  0xeab(%rip),%xmm0
call   1040 <db_insert_real@plt>
lea    0xef5(%rip),%rdi
movsd  0xe8f(%rip),%xmm0
call   1040 <db_insert_real@plt>
lea    0xef5(%rip),%rdi
movsd  0xe63(%rip),%xmm0
call   1040 <db_insert_real@plt>
lea    0xef0(%rip),%rdi
movsd  0xe57(%rip),%xmm0
call   1040 <db_insert_real@plt>
lea    0xeeb(%rip),%rdi
movsd  0xe4b(%rip),%xmm0
call   1040 <db_insert_real@plt>
lea    0xee6(%rip),%rdi
movsd  0xe37(%rip),%xmm0
call   1040 <db_insert_real@plt>
lea    0xee2(%rip),%rdi
movsd  0xe1b(%rip),%xmm0
call   1040 <db_insert_real@plt>
lea    0xede(%rip),%rdi
movsd  0xdff(%rip),%xmm0
call   1040 <db_insert_real@plt>
lea    0xeda(%rip),%rdi
mov    $0x14,%esi
call   1030 <db_insert_integer@plt>
lea    0xed8(%rip),%rdi
movsd  0xdd2(%rip),%xmm0
call   1040 <db_insert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<db_init>:
push   %rax
lea    0xf18(%rip),%rdi
mov    $0x320,%esi
call   1030 <db_insert_integer@plt>
lea    0xf10(%rip),%rdi
mov    $0x320,%esi
call   1030 <db_insert_integer@plt>
lea    0xf08(%rip),%rdi
movsd  0xeae(%rip),%xmm0
call   1040 <db_insert_real@plt>
lea    0xef8(%rip),%rdi
movsd  0xea2(%rip),%xmm0
call   1040 <db_insert_real@plt>
lea    0xef8(%rip),%rdi
movsd  0xe96(%rip),%xmm0
call   1040 <db_insert_real@plt>
lea    0xef8(%rip),%rdi
movsd  0xe8a(%rip),%xmm0
call   1040 <db_insert_real@plt>
lea    0xef8(%rip),%rdi
movsd  0xe7e(%rip),%xmm0
call   1040 <db_insert_real@plt>
lea    0xef3(%rip),%rdi
movsd  0xe72(%rip),%xmm0
call   1040 <db_insert_real@plt>
lea    0xeee(%rip),%rdi
movsd  0xe66(%rip),%xmm0
call   1040 <db_insert_real@plt>
lea    0xee9(%rip),%rdi
movsd  0xe52(%rip),%xmm0
call   1040 <db_insert_real@plt>
lea    0xee5(%rip),%rdi
movsd  0xe36(%rip),%xmm0
call   1040 <db_insert_real@plt>
lea    0xee1(%rip),%rdi
movsd  0xe1a(%rip),%xmm0
call   1040 <db_insert_real@plt>
lea    0xedd(%rip),%rdi
mov    $0x14,%esi
call   1030 <db_insert_integer@plt>
lea    0xedb(%rip),%rdi
movsd  0xe0d(%rip),%xmm0
pop    %rax
jmp    1040 <db_insert_real@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"screen_w\00"
@.str.1 = [9 x i8] c"screen_h\00"
@.str.2 = [4 x i8] c"fps\00"
@.str.3 = [20 x i8] c"menu_text_caption_r\00"
@.str.4 = [20 x i8] c"menu_text_caption_g\00"
@.str.5 = [20 x i8] c"menu_text_caption_b\00"
@.str.6 = [15 x i8] c"menu_text_on_r\00"
@.str.7 = [15 x i8] c"menu_text_on_g\00"
@.str.8 = [15 x i8] c"menu_text_on_b\00"
@.str.9 = [16 x i8] c"menu_text_off_r\00"
@.str.10 = [16 x i8] c"menu_text_off_g\00"
@.str.11 = [16 x i8] c"menu_text_off_b\00"
@.str.12 = [15 x i8] c"menu_text_size\00"
@.str.13 = [19 x i8] c"menu_text_y_offset\00"
define void @db_init() {
%1 = call i32 @db_insert_integer(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 800)
%2 = call i32 @db_insert_integer(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 800)
%3 = call i32 @db_insert_real(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double 5.000000e+01)
%4 = call i32 @db_insert_real(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), double 7.770000e-01)
%5 = call i32 @db_insert_real(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), double 8.880000e-01)
%6 = call i32 @db_insert_real(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), double 0x3FEFF7CED916872B)
%7 = call i32 @db_insert_real(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), double 6.670000e-01)
%8 = call i32 @db_insert_real(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), double 5.000000e-01)
%9 = call i32 @db_insert_real(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), double 3.330000e-01)
%10 = call i32 @db_insert_real(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), double 3.330000e-01)
%11 = call i32 @db_insert_real(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), double 5.000000e-01)
%12 = call i32 @db_insert_real(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), double 6.670000e-01)
%13 = call i32 @db_insert_integer(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i32 20)
%14 = call i32 @db_insert_real(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0), double 3.000000e+01)
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"screen_w\00"
@.str.1 = [9 x i8] c"screen_h\00"
@.str.2 = [4 x i8] c"fps\00"
@.str.3 = [20 x i8] c"menu_text_caption_r\00"
@.str.4 = [20 x i8] c"menu_text_caption_g\00"
@.str.5 = [20 x i8] c"menu_text_caption_b\00"
@.str.6 = [15 x i8] c"menu_text_on_r\00"
@.str.7 = [15 x i8] c"menu_text_on_g\00"
@.str.8 = [15 x i8] c"menu_text_on_b\00"
@.str.9 = [16 x i8] c"menu_text_off_r\00"
@.str.10 = [16 x i8] c"menu_text_off_g\00"
@.str.11 = [16 x i8] c"menu_text_off_b\00"
@.str.12 = [15 x i8] c"menu_text_size\00"
@.str.13 = [19 x i8] c"menu_text_y_offset\00"
define void @db_init() {
%1 = tail call i32 @db_insert_integer(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 800)
%2 = tail call i32 @db_insert_integer(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 800)
%3 = tail call i32 @db_insert_real(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double 5.000000e+01)
%4 = tail call i32 @db_insert_real(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), double 7.770000e-01)
%5 = tail call i32 @db_insert_real(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), double 8.880000e-01)
%6 = tail call i32 @db_insert_real(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), double 0x3FEFF7CED916872B)
%7 = tail call i32 @db_insert_real(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), double 6.670000e-01)
%8 = tail call i32 @db_insert_real(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), double 5.000000e-01)
%9 = tail call i32 @db_insert_real(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), double 3.330000e-01)
%10 = tail call i32 @db_insert_real(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), double 3.330000e-01)
%11 = tail call i32 @db_insert_real(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), double 5.000000e-01)
%12 = tail call i32 @db_insert_real(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), double 6.670000e-01)
%13 = tail call i32 @db_insert_integer(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i32 20)
%14 = tail call i32 @db_insert_real(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0), double 3.000000e+01)
ret void
}