#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*/ cloneString(char *);
int /*<<< orphan*/ hashAdd(struct hash *, char *, int /*<<< orphan*/);
struct hash *newHashExt(int /*<<< orphan*/, int);
struct hash *initialEntityHash() {
  struct hash *hash = newHashExt(0, 1);
  hashAdd(hash, "INTEGER", cloneString("#INT"));
  hashAdd(hash, "REAL", cloneString("#FLOAT"));
  hashAdd(hash, "INT", cloneString("INT"));
  hashAdd(hash, "FLOAT", cloneString("FLOAT"));
  return hash;
}


x86 assembly (clang, -O0):
<initialEntityHash>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <newHashExt@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
lea    0xeb1(%rip),%rdi
call   1040 <cloneString@plt>
mov    -0x28(%rbp),%rdi
mov    %eax,%edx
lea    0xe97(%rip),%rsi
call   1050 <hashAdd@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    0xe95(%rip),%rdi
call   1040 <cloneString@plt>
mov    -0x20(%rbp),%rdi
mov    %eax,%edx
lea    0xe7e(%rip),%rsi
call   1050 <hashAdd@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
lea    0xe66(%rip),%rdi
call   1040 <cloneString@plt>
mov    -0x18(%rbp),%rdi
mov    %eax,%edx
lea    0xe54(%rip),%rsi
call   1050 <hashAdd@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
lea    0xe4a(%rip),%rdi
call   1040 <cloneString@plt>
mov    -0x10(%rbp),%rdi
mov    %eax,%edx
lea    0xe38(%rip),%rsi
call   1050 <hashAdd@plt>
mov    -0x8(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<initialEntityHash>:
push   %r14
push   %rbx
push   %rax
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <newHashExt@plt>
mov    %rax,%rbx
lea    0xebe(%rip),%rdi
call   1040 <cloneString@plt>
lea    0xeaa(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1050 <hashAdd@plt>
lea    0xeab(%rip),%rdi
call   1040 <cloneString@plt>
lea    0xe9a(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1050 <hashAdd@plt>
lea    0xe85(%rip),%r14
mov    %r14,%rdi
call   1040 <cloneString@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1050 <hashAdd@plt>
lea    0xe73(%rip),%r14
mov    %r14,%rdi
call   1040 <cloneString@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1050 <hashAdd@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.hash = type { i32 }
@.str = [8 x i8] c"INTEGER\00"
@.str.1 = [5 x i8] c"#INT\00"
@.str.2 = [5 x i8] c"REAL\00"
@.str.3 = [7 x i8] c"#FLOAT\00"
@.str.4 = [4 x i8] c"INT\00"
@.str.5 = [6 x i8] c"FLOAT\00"
define %struct.hash* @initialEntityHash() {
%1 = alloca %struct.hash*
%2 = call %struct.hash* @newHashExt(i32 0, i32 1)
store %struct.hash* %2, %struct.hash** %1
%3 = load %struct.hash*, %struct.hash** %1
%4 = call i32 @cloneString(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @hashAdd(%struct.hash* %3, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = load %struct.hash*, %struct.hash** %1
%7 = call i32 @cloneString(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @hashAdd(%struct.hash* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %7)
%9 = load %struct.hash*, %struct.hash** %1
%10 = call i32 @cloneString(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 @hashAdd(%struct.hash* %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %10)
%12 = load %struct.hash*, %struct.hash** %1
%13 = call i32 @cloneString(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%14 = call i32 @hashAdd(%struct.hash* %12, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 %13)
%15 = load %struct.hash*, %struct.hash** %1
ret %struct.hash* %15
}

LLVM IR (-O2):
%struct.hash = type { i32 }
@.str = [8 x i8] c"INTEGER\00"
@.str.1 = [5 x i8] c"#INT\00"
@.str.2 = [5 x i8] c"REAL\00"
@.str.3 = [7 x i8] c"#FLOAT\00"
@.str.4 = [4 x i8] c"INT\00"
@.str.5 = [6 x i8] c"FLOAT\00"
define %struct.hash* @initialEntityHash() {
%1 = tail call %struct.hash* @newHashExt(i32 0, i32 1)
%2 = tail call i32 @cloneString(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @hashAdd(%struct.hash* %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = tail call i32 @cloneString(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @hashAdd(%struct.hash* %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %4)
%6 = tail call i32 @cloneString(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 @hashAdd(%struct.hash* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %6)
%8 = tail call i32 @cloneString(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call i32 @hashAdd(%struct.hash* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 %8)
ret %struct.hash* %1
}