#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 */
struct hash {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ hashAdd(struct hash *, char *, char *);
struct hash *newHashExt(int, int);
struct hash *xmlEscapeSymHash() {
  struct hash *symHash = newHashExt(6, 1);
  hashAdd(symHash, "lt", "<");
  hashAdd(symHash, "gt", ">");
  hashAdd(symHash, "amp", "&");
  hashAdd(symHash, "apos", "'");
  hashAdd(symHash, "quot", "\"");
  return symHash;
}


x86 assembly (clang, -O0):
<xmlEscapeSymHash>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x6,%edi
mov    $0x1,%esi
call   1030 <newHashExt@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xeba(%rip),%rsi
lea    0xeb6(%rip),%rdx
call   1040 <hashAdd@plt>
mov    -0x8(%rbp),%rdi
lea    0xea8(%rip),%rsi
lea    0xea4(%rip),%rdx
call   1040 <hashAdd@plt>
mov    -0x8(%rbp),%rdi
lea    0xe96(%rip),%rsi
lea    0xe93(%rip),%rdx
call   1040 <hashAdd@plt>
mov    -0x8(%rbp),%rdi
lea    0xe85(%rip),%rsi
lea    0xe83(%rip),%rdx
call   1040 <hashAdd@plt>
mov    -0x8(%rbp),%rdi
lea    0xe75(%rip),%rsi
lea    0xe73(%rip),%rdx
call   1040 <hashAdd@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xmlEscapeSymHash>:
push   %rbx
mov    $0x6,%edi
mov    $0x1,%esi
call   1030 <newHashExt@plt>
mov    %rax,%rbx
lea    0xec6(%rip),%rsi
lea    0xec2(%rip),%rdx
mov    %rax,%rdi
call   1040 <hashAdd@plt>
lea    0xeb5(%rip),%rsi
lea    0xeb1(%rip),%rdx
mov    %rbx,%rdi
call   1040 <hashAdd@plt>
lea    0xea4(%rip),%rsi
lea    0xea1(%rip),%rdx
mov    %rbx,%rdi
call   1040 <hashAdd@plt>
lea    0xe94(%rip),%rsi
lea    0xe92(%rip),%rdx
mov    %rbx,%rdi
call   1040 <hashAdd@plt>
lea    0xe85(%rip),%rsi
lea    0xe83(%rip),%rdx
mov    %rbx,%rdi
call   1040 <hashAdd@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
%struct.hash = type { i32 }
@.str = [3 x i8] c"lt\00"
@.str.1 = [2 x i8] c"<\00"
@.str.2 = [3 x i8] c"gt\00"
@.str.3 = [2 x i8] c">\00"
@.str.4 = [4 x i8] c"amp\00"
@.str.5 = [2 x i8] c"&\00"
@.str.6 = [5 x i8] c"apos\00"
@.str.7 = [2 x i8] c"'\00"
@.str.8 = [5 x i8] c"quot\00"
@.str.9 = [2 x i8] c"\22\00"
define %struct.hash* @xmlEscapeSymHash() {
%1 = alloca %struct.hash*
%2 = call %struct.hash* @newHashExt(i32 6, i32 1)
store %struct.hash* %2, %struct.hash** %1
%3 = load %struct.hash*, %struct.hash** %1
%4 = call i32 @hashAdd(%struct.hash* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%5 = load %struct.hash*, %struct.hash** %1
%6 = call i32 @hashAdd(%struct.hash* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%7 = load %struct.hash*, %struct.hash** %1
%8 = call i32 @hashAdd(%struct.hash* %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%9 = load %struct.hash*, %struct.hash** %1
%10 = call i32 @hashAdd(%struct.hash* %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%11 = load %struct.hash*, %struct.hash** %1
%12 = call i32 @hashAdd(%struct.hash* %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%13 = load %struct.hash*, %struct.hash** %1
ret %struct.hash* %13
}

LLVM IR (-O2):
%struct.hash = type { i32 }
@.str = [3 x i8] c"lt\00"
@.str.1 = [2 x i8] c"<\00"
@.str.2 = [3 x i8] c"gt\00"
@.str.3 = [2 x i8] c">\00"
@.str.4 = [4 x i8] c"amp\00"
@.str.5 = [2 x i8] c"&\00"
@.str.6 = [5 x i8] c"apos\00"
@.str.7 = [2 x i8] c"'\00"
@.str.8 = [5 x i8] c"quot\00"
@.str.9 = [2 x i8] c"\22\00"
define %struct.hash* @xmlEscapeSymHash() {
%1 = tail call %struct.hash* @newHashExt(i32 6, i32 1)
%2 = tail call i32 @hashAdd(%struct.hash* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @hashAdd(%struct.hash* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 @hashAdd(%struct.hash* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%5 = tail call i32 @hashAdd(%struct.hash* %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%6 = tail call i32 @hashAdd(%struct.hash* %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
ret %struct.hash* %1
}