#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ om_html_entities(int /*<<< orphan*/ *, char *);
void om_html_print_dblkey_info(FILE *fp, char *key, double val) {
  fprintf(fp, "<tr><td align=\"left\" colspan=\"3\" class=\"info\">");
  om_html_entities(fp, key);
  fprintf(fp, " %.3f", val);
  fprintf(fp, "</td></tr>\n");
}


x86 assembly (clang, -O0):
<om_html_print_dblkey_info>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movsd  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xec0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <om_html_entities@plt>
mov    -0x8(%rbp),%rdi
movsd  -0x18(%rbp),%xmm0
lea    0xecb(%rip),%rsi
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xebf(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<om_html_print_dblkey_info>:
push   %r14
push   %rbx
push   %rax
movsd  %xmm0,(%rsp)
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0xeba(%rip),%rdi
mov    $0x2e,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <om_html_entities@plt>
lea    0xec5(%rip),%rsi
mov    %rbx,%rdi
movsd  (%rsp),%xmm0
mov    $0x1,%al
call   1030 <fprintf@plt>
lea    0xeb5(%rip),%rdi
mov    $0xb,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1050 <fwrite@plt>

LLVM IR (-O0):
@.str = [47 x i8] c"<tr><td align=\22left\22 colspan=\223\22 class=\22info\22>\00"
@.str.1 = [6 x i8] c" %.3f\00"
@.str.2 = [12 x i8] c"</td></tr>\0A\00"
define void @om_html_print_dblkey_info(i32* %0, i8* %1, double %2) {
%4 = alloca i32*
%5 = alloca i8*
%6 = alloca double
store i32* %0, i32** %4
store i8* %1, i8** %5
store double %2, double* %6
%7 = load i32*, i32** %4
%8 = call i32 (i32*, i8*, ...) @fprintf(i32* %7, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
%9 = load i32*, i32** %4
%10 = load i8*, i8** %5
%11 = call i32 @om_html_entities(i32* %9, i8* %10)
%12 = load i32*, i32** %4
%13 = load double, double* %6
%14 = call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %13)
%15 = load i32*, i32** %4
%16 = call i32 (i32*, i8*, ...) @fprintf(i32* %15, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [47 x i8] c"<tr><td align=\22left\22 colspan=\223\22 class=\22info\22>\00"
@.str.1 = [6 x i8] c" %.3f\00"
@.str.2 = [12 x i8] c"</td></tr>\0A\00"
define void @om_html_print_dblkey_info(i32* %0, i8* %1, double %2) {
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i64 46, i64 1, i32* %0)
%5 = tail call i32 @om_html_entities(i32* %0, i8* %1)
%6 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %2)
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i64 11, i64 1, i32* %0)
ret void
}