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

/* Variables and functions */
size_t rand_uint32_max(int);
int /*<<< orphan*/ strcat(char *, char *);
void employee_init_name(char *buf) {
  char *first[] = {
      "Michael",   "Christopher", "Matthew",  "Joshua", "Daniel",    "Andrew",
      "James",     "Justin",      "Joseph",   "Ryan",   "Jessica",   "Ashley",
      "Brittany",  "Amanda",      "Samantha", "Sarah",  "Stephanie", "Jennifer",
      "Elizabeth", "Lauren",      "Megan",
  };
  char *last[] = {
      "Irwin", "Burris", "Ratliff",  "McCray", "Madden",   "Kaufman",
      "Beach", "Goff",   "Cash",     "Bolton", "McFadden", "Levine",
      "Good",  "Byers",  "Kirkland", "Kidd",
  };
  buf[0] = '\0';
  strcat(buf, first[rand_uint32_max((sizeof(first) / sizeof((first)[0])))]);
  strcat(buf, " ");
  strcat(buf, last[rand_uint32_max((sizeof(last) / sizeof((last)[0])))]);
}


x86 assembly (clang, -O0):
<employee_init_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0xb0(%rbp),%rdi
lea    0x2ba3(%rip),%rsi
mov    $0xa8,%edx
call   1040 <memcpy@plt>
lea    -0x130(%rbp),%rdi
lea    0x2c3b(%rip),%rsi
mov    $0x80,%edx
call   1040 <memcpy@plt>
mov    -0x8(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,-0x140(%rbp)
mov    $0x15,%edi
call   1030 <rand_uint32_max@plt>
mov    -0x140(%rbp),%rdi
mov    -0xb0(%rbp,%rax,8),%rsi
ff
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rdi
lea    0xf63(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x138(%rbp)
mov    $0x10,%edi
call   1030 <rand_uint32_max@plt>
mov    -0x138(%rbp),%rdi
mov    -0x130(%rbp,%rax,8),%rsi
ff
call   1050 <strcat@plt>
add    $0x140,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<employee_init_name>:
push   %rbx
mov    %rdi,%rbx
movb   $0x0,(%rdi)
mov    $0x15,%edi
call   1030 <rand_uint32_max@plt>
lea    0xfd8(%rip),%rcx
movslq (%rcx,%rax,4),%rsi
add    %rcx,%rsi
mov    %rbx,%rdi
call   1040 <strcat@plt>
lea    0xfbf(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcat@plt>
mov    $0x10,%edi
call   1030 <rand_uint32_max@plt>
lea    0xffd(%rip),%rcx
movslq (%rcx,%rax,4),%rsi
add    %rcx,%rsi
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <strcat@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Michael\00"
@.str.1 = [12 x i8] c"Christopher\00"
@.str.2 = [8 x i8] c"Matthew\00"
@.str.3 = [7 x i8] c"Joshua\00"
@.str.4 = [7 x i8] c"Daniel\00"
@.str.5 = [7 x i8] c"Andrew\00"
@.str.6 = [6 x i8] c"James\00"
@.str.7 = [7 x i8] c"Justin\00"
@.str.8 = [7 x i8] c"Joseph\00"
@.str.9 = [5 x i8] c"Ryan\00"
@.str.10 = [8 x i8] c"Jessica\00"
@.str.11 = [7 x i8] c"Ashley\00"
@.str.12 = [9 x i8] c"Brittany\00"
@.str.13 = [7 x i8] c"Amanda\00"
@.str.14 = [9 x i8] c"Samantha\00"
@.str.15 = [6 x i8] c"Sarah\00"
@.str.16 = [10 x i8] c"Stephanie\00"
@.str.17 = [9 x i8] c"Jennifer\00"
@.str.18 = [10 x i8] c"Elizabeth\00"
@.str.19 = [7 x i8] c"Lauren\00"
@.str.20 = [6 x i8] c"Megan\00"
@__const.employee_init_name.first = [21 x i8*] [i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i32 0, i32 0)]
@.str.21 = [6 x i8] c"Irwin\00"
@.str.22 = [7 x i8] c"Burris\00"
@.str.23 = [8 x i8] c"Ratliff\00"
@.str.24 = [7 x i8] c"McCray\00"
@.str.25 = [7 x i8] c"Madden\00"
@.str.26 = [8 x i8] c"Kaufman\00"
@.str.27 = [6 x i8] c"Beach\00"
@.str.28 = [5 x i8] c"Goff\00"
@.str.29 = [5 x i8] c"Cash\00"
@.str.30 = [7 x i8] c"Bolton\00"
@.str.31 = [9 x i8] c"McFadden\00"
@.str.32 = [7 x i8] c"Levine\00"
@.str.33 = [5 x i8] c"Good\00"
@.str.34 = [6 x i8] c"Byers\00"
@.str.35 = [9 x i8] c"Kirkland\00"
@.str.36 = [5 x i8] c"Kidd\00"
@__const.employee_init_name.last = [16 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.31, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.32, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.33, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.34, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.35, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.36, i32 0, i32 0)]
@.str.37 = [2 x i8] c" \00"
define void @employee_init_name(i8* %0) {
%2 = alloca i8*
%3 = alloca [21 x i8*]
%4 = alloca [16 x i8*]
store i8* %0, i8** %2
%5 = bitcast [21 x i8*]* %3 to i8*
%6 = bitcast [16 x i8*]* %4 to i8*
%7 = load i8*, i8** %2
%8 = getelementptr inbounds i8, i8* %7, i64 0
store i8 0, i8* %8
%9 = load i8*, i8** %2
%10 = call i64 @rand_uint32_max(i32 21)
%11 = getelementptr inbounds [21 x i8*], [21 x i8*]* %3, i64 0, i64 %10
%12 = load i8*, i8** %11
%13 = call i32 @strcat(i8* %9, i8* %12)
%14 = load i8*, i8** %2
%15 = call i32 @strcat(i8* %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.37, i64 0, i64 0))
%16 = load i8*, i8** %2
%17 = call i64 @rand_uint32_max(i32 16)
%18 = getelementptr inbounds [16 x i8*], [16 x i8*]* %4, i64 0, i64 %17
%19 = load i8*, i8** %18
%20 = call i32 @strcat(i8* %16, i8* %19)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"Michael\00"
@.str.1 = [12 x i8] c"Christopher\00"
@.str.2 = [8 x i8] c"Matthew\00"
@.str.3 = [7 x i8] c"Joshua\00"
@.str.4 = [7 x i8] c"Daniel\00"
@.str.5 = [7 x i8] c"Andrew\00"
@.str.6 = [6 x i8] c"James\00"
@.str.7 = [7 x i8] c"Justin\00"
@.str.8 = [7 x i8] c"Joseph\00"
@.str.9 = [5 x i8] c"Ryan\00"
@.str.10 = [8 x i8] c"Jessica\00"
@.str.11 = [7 x i8] c"Ashley\00"
@.str.12 = [9 x i8] c"Brittany\00"
@.str.13 = [7 x i8] c"Amanda\00"
@.str.14 = [9 x i8] c"Samantha\00"
@.str.15 = [6 x i8] c"Sarah\00"
@.str.16 = [10 x i8] c"Stephanie\00"
@.str.17 = [9 x i8] c"Jennifer\00"
@.str.18 = [10 x i8] c"Elizabeth\00"
@.str.19 = [7 x i8] c"Lauren\00"
@.str.20 = [6 x i8] c"Megan\00"
@reltable.employee_init_name = [21 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.1 to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.2 to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.3 to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.4 to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.5 to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.6 to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.7 to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.8 to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.9 to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.10 to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.11 to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.12 to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.13 to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.14 to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.15 to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.16 to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.17 to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.18 to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.19 to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.20 to i64), i64 ptrtoint ([21 x i32]* @reltable.employee_init_name to i64)) to i32)]
@.str.21 = [6 x i8] c"Irwin\00"
@.str.22 = [7 x i8] c"Burris\00"
@.str.23 = [8 x i8] c"Ratliff\00"
@.str.24 = [7 x i8] c"McCray\00"
@.str.25 = [7 x i8] c"Madden\00"
@.str.26 = [8 x i8] c"Kaufman\00"
@.str.27 = [6 x i8] c"Beach\00"
@.str.28 = [5 x i8] c"Goff\00"
@.str.29 = [5 x i8] c"Cash\00"
@.str.30 = [7 x i8] c"Bolton\00"
@.str.31 = [9 x i8] c"McFadden\00"
@.str.32 = [7 x i8] c"Levine\00"
@.str.33 = [5 x i8] c"Good\00"
@.str.34 = [6 x i8] c"Byers\00"
@.str.35 = [9 x i8] c"Kirkland\00"
@.str.36 = [5 x i8] c"Kidd\00"
@reltable.employee_init_name.38 = [16 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.21 to i64), i64 ptrtoint ([16 x i32]* @reltable.employee_init_name.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.22 to i64), i64 ptrtoint ([16 x i32]* @reltable.employee_init_name.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.23 to i64), i64 ptrtoint ([16 x i32]* @reltable.employee_init_name.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.24 to i64), i64 ptrtoint ([16 x i32]* @reltable.employee_init_name.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.25 to i64), i64 ptrtoint ([16 x i32]* @reltable.employee_init_name.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.26 to i64), i64 ptrtoint ([16 x i32]* @reltable.employee_init_name.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.27 to i64), i64 ptrtoint ([16 x i32]* @reltable.employee_init_name.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.28 to i64), i64 ptrtoint ([16 x i32]* @reltable.employee_init_name.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.29 to i64), i64 ptrtoint ([16 x i32]* @reltable.employee_init_name.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.30 to i64), i64 ptrtoint ([16 x i32]* @reltable.employee_init_name.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.31 to i64), i64 ptrtoint ([16 x i32]* @reltable.employee_init_name.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.32 to i64), i64 ptrtoint ([16 x i32]* @reltable.employee_init_name.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.33 to i64), i64 ptrtoint ([16 x i32]* @reltable.employee_init_name.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.34 to i64), i64 ptrtoint ([16 x i32]* @reltable.employee_init_name.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.35 to i64), i64 ptrtoint ([16 x i32]* @reltable.employee_init_name.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.36 to i64), i64 ptrtoint ([16 x i32]* @reltable.employee_init_name.38 to i64)) to i32)]
@.str.37 = [2 x i8] c" \00"
define void @employee_init_name(i8* %0) {
store i8 0, i8* %0
%2 = tail call i64 @rand_uint32_max(i32 21)
%3 = shl i64 %2, 2
%4 = call i8* @llvm.load.relative.i64(i8* bitcast ([21 x i32]* @reltable.employee_init_name to i8*), i64 %3)
%5 = tail call i32 @strcat(i8* %0, i8* %4)
%6 = tail call i32 @strcat(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.37, i64 0, i64 0))
%7 = tail call i64 @rand_uint32_max(i32 16)
%8 = shl i64 %7, 2
%9 = call i8* @llvm.load.relative.i64(i8* bitcast ([16 x i32]* @reltable.employee_init_name.38 to i8*), i64 %8)
%10 = tail call i32 @strcat(i8* %0, i8* %9)
ret void
}