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


x86 assembly (clang, -O0):
<om_html_print_keykey_entry>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xeae(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xec0(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xeb2(%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    0xeb8(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xece(%rip),%rsi
mov    $0x7,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    11f7 <om_html_print_keykey_entry+0xc7>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xeb4(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1050 <om_html_entities@plt>
mov    -0x8(%rbp),%rdi
lea    0xeaf(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    1204 <om_html_print_keykey_entry+0xd4>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1050 <om_html_entities@plt>
mov    -0x8(%rbp),%rdi
lea    0xe90(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<om_html_print_keykey_entry>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %ecx,%ebp
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
lea    0xea7(%rip),%rdi
mov    $0x26,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
lea    0xeb5(%rip),%rsi
mov    %rbx,%rdi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xea6(%rip),%rdi
mov    $0x24,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <om_html_entities@plt>
lea    0xea7(%rip),%rdi
mov    $0x27,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
lea    0xeb6(%rip),%rsi
mov    %r14,%rdi
mov    $0x7,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     11e0 <om_html_print_keykey_entry+0xa0>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <om_html_entities@plt>
jmp    1218 <om_html_print_keykey_entry+0xd8>
lea    0xe99(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <om_html_entities@plt>
lea    0xe94(%rip),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
lea    0xe80(%rip),%rdi
mov    $0xb,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <fwrite@plt>

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 = [40 x i8] c"</td><td align=\22left\22 class=\22keyentry\22>\00"
@.str.4 = [8 x i8] c"http://\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 = [12 x i8] c"</td></tr>\0A\00"
define void @om_html_print_keykey_entry(i32* %0, i8* %1, i8* %2, i32 %3) {
%5 = alloca i32*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
store i32* %0, i32** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%9 = load i32*, i32** %5
%10 = call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%11 = load i32*, i32** %5
%12 = load i32, i32* %8
%13 = call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %12)
%14 = load i32*, i32** %5
%15 = call i32 (i32*, i8*, ...) @fprintf(i32* %14, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%16 = load i32*, i32** %5
%17 = load i8*, i8** %6
%18 = call i32 @om_html_entities(i32* %16, i8* %17)
%19 = load i32*, i32** %5
%20 = call i32 (i32*, i8*, ...) @fprintf(i32* %19, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0))
%21 = load i8*, i8** %7
%22 = call i32 @strncmp(i8* %21, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i32 7)
%23 = icmp ne i32 %22, 0
br i1 %23, label %33, label %24
24: ; preds = %4
%25 = load i32*, i32** %5
%26 = load i8*, i8** %7
%27 = call i32 (i32*, i8*, ...) @fprintf(i32* %25, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i8* %26)
%28 = load i32*, i32** %5
%29 = load i8*, i8** %7
%30 = call i32 @om_html_entities(i32* %28, i8* %29)
%31 = load i32*, i32** %5
%32 = call i32 (i32*, i8*, ...) @fprintf(i32* %31, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %37
33: ; preds = %4
%34 = load i32*, i32** %5
%35 = load i8*, i8** %7
%36 = call i32 @om_html_entities(i32* %34, i8* %35)
br label %37
37: ; preds = %33, %24
%38 = load i32*, i32** %5
%39 = call i32 (i32*, i8*, ...) @fprintf(i32* %38, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, 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 = [40 x i8] c"</td><td align=\22left\22 class=\22keyentry\22>\00"
@.str.4 = [8 x i8] c"http://\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 = [12 x i8] c"</td></tr>\0A\00"
define void @om_html_print_keykey_entry(i32* %0, i8* %1, i8* %2, i32 %3) {
%5 = tail call i64 @fwrite(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i64 38, i64 1, i32* %0)
%6 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%7 = 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)
%8 = tail call i32 @om_html_entities(i32* %0, i8* %1)
%9 = tail call i64 @fwrite(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0), i64 39, i64 1, i32* %0)
%10 = tail call i32 @strncmp(i8* %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i32 7)
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %4
%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* %2)
%14 = tail call i32 @om_html_entities(i32* %0, i8* %2)
%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 %18
16: ; preds = %4
%17 = tail call i32 @om_html_entities(i32* %0, i8* %2)
br label %18
18: ; preds = %16, %12
%19 = tail call i64 @fwrite(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i64 11, i64 1, i32* %0)
ret void
}