#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 *);
int /*<<< orphan*/ strncmp(char *, char *, int);
void om_html_print_numkey_entry(FILE *fp, char *key, int val, char *link,
                                int num) {
  fprintf(fp, "<tr><td align=\"left\" class=\"keyentry\">");
  fprintf(fp, "%d)", num);
  fprintf(fp, "<td align=\"left\" class=\"valueentry\">");
  fprintf(fp, "%d", val);
  fprintf(fp, "</td><td align=\"left\" class=\"keyentry\">");
  if (link != NULL) {
    fprintf(fp, "<a class=\"url\" href=\"%s\">", link);
    om_html_entities(fp, key);
    fprintf(fp, "</a>");
  } else if (!strncmp(key, "http://", 7)) {
    fprintf(fp, "<a class=\"url\" href=\"%s\">", key);
    om_html_entities(fp, key);
    fprintf(fp, "</a>");
  } else {
    om_html_entities(fp, key);
  }
  fprintf(fp, "</td></tr>\n");
}


x86 assembly (clang, -O0):
<om_html_print_numkey_entry>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xeaa(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x24(%rbp),%edx
lea    0xebc(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xeae(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%edx
lea    0xebe(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xeaf(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
cmpq   $0x0,-0x20(%rbp)
je     11f0 <om_html_print_numkey_entry+0xc0>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%rdx
lea    0xeb6(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <om_html_entities@plt>
mov    -0x8(%rbp),%rdi
lea    0xeb1(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    125a <om_html_print_numkey_entry+0x12a>
mov    -0x10(%rbp),%rdi
lea    0xe9f(%rip),%rsi
mov    $0x7,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1248 <om_html_print_numkey_entry+0x118>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xe5e(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <om_html_entities@plt>
mov    -0x8(%rbp),%rdi
lea    0xe59(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    1255 <om_html_print_numkey_entry+0x125>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <om_html_entities@plt>
jmp    125a <om_html_print_numkey_entry+0x12a>
mov    -0x8(%rbp),%rdi
lea    0xe3d(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<om_html_print_numkey_entry>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %r8d,%ebp
mov    %rcx,%r15
mov    %edx,%r12d
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0xea2(%rip),%rdi
mov    $0x26,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
lea    0xeb0(%rip),%rsi
mov    %rbx,%rdi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xea1(%rip),%rdi
mov    $0x24,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
lea    0xead(%rip),%rsi
mov    %rbx,%rdi
mov    %r12d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xe9c(%rip),%rdi
mov    $0x27,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
test   %r15,%r15
je     1208 <om_html_print_numkey_entry+0xc8>
lea    0xea6(%rip),%rsi
mov    %rbx,%rdi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <om_html_entities@plt>
lea    0xea1(%rip),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
jmp    122b <om_html_print_numkey_entry+0xeb>
lea    0xe8b(%rip),%rsi
mov    %r14,%rdi
mov    $0x7,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     124c <om_html_print_numkey_entry+0x10c>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <om_html_entities@plt>
lea    0xe70(%rip),%rdi
mov    $0xb,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <fwrite@plt>
lea    0xe28(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
jmp    11db <om_html_print_numkey_entry+0x9b>

LLVM IR (-O0):
@.str = [39 x i8] c"<tr><td align=\22left\22 class=\22keyentry\22>\00"
@.str.1 = [4 x i8] c"%d)\00"
@.str.2 = [37 x i8] c"<td align=\22left\22 class=\22valueentry\22>\00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [40 x i8] c"</td><td align=\22left\22 class=\22keyentry\22>\00"
@.str.5 = [26 x i8] c"<a class=\22url\22 href=\22%s\22>\00"
@.str.6 = [5 x i8] c"</a>\00"
@.str.7 = [8 x i8] c"http://\00"
@.str.8 = [12 x i8] c"</td></tr>\0A\00"
define void @om_html_print_numkey_entry(i32* %0, i8* %1, i32 %2, i8* %3, i32 %4) {
%6 = alloca i32*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i32
store i32* %0, i32** %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store i8* %3, i8** %9
store i32 %4, i32* %10
%11 = load i32*, i32** %6
%12 = call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%13 = load i32*, i32** %6
%14 = load i32, i32* %10
%15 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %14)
%16 = load i32*, i32** %6
%17 = call i32 (i32*, i8*, ...) @fprintf(i32* %16, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%18 = load i32*, i32** %6
%19 = load i32, i32* %8
%20 = call i32 (i32*, i8*, ...) @fprintf(i32* %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %19)
%21 = load i32*, i32** %6
%22 = call i32 (i32*, i8*, ...) @fprintf(i32* %21, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%23 = load i8*, i8** %9
%24 = icmp ne i8* %23, null
br i1 %24, label %25, label %34
25: ; preds = %5
%26 = load i32*, i32** %6
%27 = load i8*, i8** %9
%28 = call i32 (i32*, i8*, ...) @fprintf(i32* %26, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i8* %27)
%29 = load i32*, i32** %6
%30 = load i8*, i8** %7
%31 = call i32 @om_html_entities(i32* %29, i8* %30)
%32 = load i32*, i32** %6
%33 = call i32 (i32*, i8*, ...) @fprintf(i32* %32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %52
34: ; preds = %5
%35 = load i8*, i8** %7
%36 = call i32 @strncmp(i8* %35, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 7)
%37 = icmp ne i32 %36, 0
br i1 %37, label %47, label %38
38: ; preds = %34
%39 = load i32*, i32** %6
%40 = load i8*, i8** %7
%41 = call i32 (i32*, i8*, ...) @fprintf(i32* %39, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i8* %40)
%42 = load i32*, i32** %6
%43 = load i8*, i8** %7
%44 = call i32 @om_html_entities(i32* %42, i8* %43)
%45 = load i32*, i32** %6
%46 = call i32 (i32*, i8*, ...) @fprintf(i32* %45, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %51
47: ; preds = %34
%48 = load i32*, i32** %6
%49 = load i8*, i8** %7
%50 = call i32 @om_html_entities(i32* %48, i8* %49)
br label %51
51: ; preds = %47, %38
br label %52
52: ; preds = %51, %25
%53 = load i32*, i32** %6
%54 = call i32 (i32*, i8*, ...) @fprintf(i32* %53, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [39 x i8] c"<tr><td align=\22left\22 class=\22keyentry\22>\00"
@.str.1 = [4 x i8] c"%d)\00"
@.str.2 = [37 x i8] c"<td align=\22left\22 class=\22valueentry\22>\00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [40 x i8] c"</td><td align=\22left\22 class=\22keyentry\22>\00"
@.str.5 = [26 x i8] c"<a class=\22url\22 href=\22%s\22>\00"
@.str.6 = [5 x i8] c"</a>\00"
@.str.7 = [8 x i8] c"http://\00"
@.str.8 = [12 x i8] c"</td></tr>\0A\00"
define void @om_html_print_numkey_entry(i32* %0, i8* %1, i32 %2, i8* %3, i32 %4) {
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i64 38, i64 1, i32* %0)
%7 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i64 36, i64 1, i32* %0)
%9 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %2)
%10 = tail call i64 @fwrite(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0), i64 39, i64 1, i32* %0)
%11 = icmp eq i8* %3, null
br i1 %11, label %16, label %12
12: ; preds = %5
%13 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i8* %3)
%14 = tail call i32 @om_html_entities(i32* %0, i8* %1)
%15 = tail call i64 @fwrite(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i64 4, i64 1, i32* %0)
br label %25
16: ; preds = %5
%17 = tail call i32 @strncmp(i8* %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 7)
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %23
19: ; preds = %16
%20 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i8* %1)
%21 = tail call i32 @om_html_entities(i32* %0, i8* %1)
%22 = tail call i64 @fwrite(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i64 4, i64 1, i32* %0)
br label %25
23: ; preds = %16
%24 = tail call i32 @om_html_entities(i32* %0, i8* %1)
br label %25
25: ; preds = %19, %23, %12
%26 = tail call i64 @fwrite(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i64 11, i64 1, i32* %0)
ret void
}