#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 */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *, char *, unsigned short, char *,
                          char *, unsigned int);
int main() {
  char firstName[] = "Amanda";
  char lastName[] = "Jonson";
  unsigned short age = 27;
  char gender[] = "f";
  char personalID[] = "8306112507";
  unsigned int employeeID = 27563571;
  printf("First name: %s\nLast name: %s\nAge: %d\nGender: %s\nPersonal ID: "
         "%s\nUnique Employee number: %d\n",
         firstName, lastName, age, gender, personalID, employeeID);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xedb(%rip),%eax
mov    %eax,-0xb(%rbp)
mov    0xed5(%rip),%ax
mov    %ax,-0x7(%rbp)
mov    0xecd(%rip),%al
mov    %al,-0x5(%rbp)
mov    0xec5(%rip),%eax
mov    %eax,-0x12(%rbp)
mov    0xebf(%rip),%ax
mov    %ax,-0xe(%rbp)
mov    0xeb7(%rip),%al
mov    %al,-0xc(%rbp)
movw   $0x1b,-0x14(%rbp)
mov    0xea8(%rip),%ax
mov    %ax,-0x16(%rbp)
mov    0xe9f(%rip),%rax
mov    %rax,-0x21(%rbp)
mov    0xe9c(%rip),%ax
mov    %ax,-0x19(%rbp)
mov    0xe94(%rip),%al
mov    %al,-0x17(%rbp)
movl   $0x1a49633,-0x28(%rbp)
lea    -0xb(%rbp),%rsi
lea    -0x12(%rbp),%rdx
mov    -0x14(%rbp),%cx
lea    -0x16(%rbp),%r8
lea    -0x21(%rbp),%r9
mov    -0x28(%rbp),%eax
lea    0xe6d(%rip),%rdi
movzwl %cx,%ecx
mov    %eax,(%rsp)
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x38,%rsp
movl   $0x61646e,0x23(%rsp)
movl   $0x6e616d41,0x20(%rsp)
6e
movl   $0x6e6f73,0x1b(%rsp)
movl   $0x736e6f4a,0x18(%rsp)
73
movw   $0x66,0x16(%rsp)
movabs $0x3532313136303338,%rax
31 32 35
mov    %rax,0x28(%rsp)
movl   $0x373035,0x2f(%rsp)
movl   $0x1a49633,(%rsp)
lea    0xeb9(%rip),%rdi
lea    0x20(%rsp),%rsi
lea    0x18(%rsp),%rdx
lea    0x16(%rsp),%r8
lea    0x28(%rsp),%r9
mov    $0x1b,%ecx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
ret

LLVM IR (-O0):
@__const.main.firstName = [7 x i8] c"Amanda\00"
@__const.main.lastName = [7 x i8] c"Jonson\00"
@__const.main.gender = [2 x i8] c"f\00"
@__const.main.personalID = [11 x i8] c"8306112507\00"
@.str = [92 x i8] c"First name: %s\0ALast name: %s\0AAge: %d\0AGender: %s\0APersonal ID: %s\0AUnique Employee number: %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [7 x i8]
%3 = alloca [7 x i8]
%4 = alloca i16
%5 = alloca [2 x i8]
%6 = alloca [11 x i8]
%7 = alloca i32
store i32 0, i32* %1
%8 = bitcast [7 x i8]* %2 to i8*
%9 = bitcast [7 x i8]* %3 to i8*
store i16 27, i16* %4
%10 = bitcast [2 x i8]* %5 to i8*
%11 = bitcast [11 x i8]* %6 to i8*
store i32 27563571, i32* %7
%12 = getelementptr inbounds [7 x i8], [7 x i8]* %2, i64 0, i64 0
%13 = getelementptr inbounds [7 x i8], [7 x i8]* %3, i64 0, i64 0
%14 = load i16, i16* %4
%15 = getelementptr inbounds [2 x i8], [2 x i8]* %5, i64 0, i64 0
%16 = getelementptr inbounds [11 x i8], [11 x i8]* %6, i64 0, i64 0
%17 = load i32, i32* %7
%18 = call i32 @printf(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str, i64 0, i64 0), i8* %12, i8* %13, i16 zeroext %14, i8* %15, i8* %16, i32 %17)
ret i32 0
}

LLVM IR (-O2):
@__const.main.firstName = [7 x i8] c"Amanda\00"
@__const.main.lastName = [7 x i8] c"Jonson\00"
@__const.main.personalID = [11 x i8] c"8306112507\00"
@.str = [92 x i8] c"First name: %s\0ALast name: %s\0AAge: %d\0AGender: %s\0APersonal ID: %s\0AUnique Employee number: %d\0A\00"
define i32 @main() {
%1 = alloca [7 x i8]
%2 = alloca [7 x i8]
%3 = alloca i16
%4 = alloca [11 x i8]
%5 = getelementptr inbounds [7 x i8], [7 x i8]* %1, i64 0, i64 0
%6 = getelementptr inbounds [7 x i8], [7 x i8]* %2, i64 0, i64 0
%7 = bitcast i16* %3 to i8*
store i16 102, i16* %3
%8 = getelementptr inbounds [11 x i8], [11 x i8]* %4, i64 0, i64 0
%9 = call i32 @printf(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %6, i16 zeroext 27, i8* %7, i8* %8, i32 27563571)
ret i32 0
}