#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 *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int main() {
  char firstName[25];
  char lastName[25];
  int age;
  char streetNumb[25];
  char streetName[25];
  char streetType[25];
  char city[25];
  char state[25];
  char zip[25];
  printf("%s", "Please enter your first name:");
  scanf("%s", firstName);
  printf("%s", "Please enter your last name:");
  scanf("%s", lastName);
  printf("%s", "Please enter your age:");
  scanf("%d", &age);
  printf("%s", "Now please enter your full address:");
  scanf("%s", streetNumb);
  scanf("%s", streetName);
  scanf("%s", streetType);
  scanf("%s", city);
  scanf("%s", state);
  scanf("%s", zip);
  printf("Your name is %s %s and you are %d years old!", firstName, lastName,
         age);
  printf("Additionally you live at: \n %s %s %s \n %s %s, %s", streetNumb,
         streetName, streetType, city, state, zip);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xf9b(%rip),%rdi
lea    0xec0(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x20(%rbp),%rsi
lea    0xf82(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xf74(%rip),%rdi
lea    0xeb7(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x40(%rbp),%rsi
lea    0xf5b(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xf4d(%rip),%rdi
lea    0xead(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb6(%rip),%rdi
lea    -0x44(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xf26(%rip),%rdi
lea    0xea0(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x60(%rbp),%rsi
lea    0xf0d(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    -0x80(%rbp),%rsi
lea    0xefb(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    -0xa0(%rbp),%rsi
lea    0xee6(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    -0xc0(%rbp),%rsi
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    -0xe0(%rbp),%rsi
lea    0xebc(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    -0x100(%rbp),%rsi
lea    0xea7(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    -0x20(%rbp),%rsi
lea    -0x40(%rbp),%rdx
mov    -0x44(%rbp),%ecx
lea    0xe33(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x60(%rbp),%rsi
lea    -0x80(%rbp),%rdx
lea    -0xa0(%rbp),%rcx
lea    -0xc0(%rbp),%r8
lea    -0xe0(%rbp),%r9
lea    -0x100(%rbp),%rax
lea    0xe2e(%rip),%rdi
mov    %rax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x118,%rsp
lea    0xf9c(%rip),%rbx
lea    0xec1(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x50(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xebf(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x30(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xebc(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec2(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xeb2(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xf0(%rsp),%r13
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xd0(%rsp),%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xb0(%rsp),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0x90(%rsp),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0x70(%rsp),%r12
mov    %rbx,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0xc(%rsp),%ecx
lea    0xe4c(%rip),%rdi
lea    0x50(%rsp),%rsi
lea    0x30(%rsp),%rdx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r12,(%rsp)
lea    0xe5d(%rip),%rdi
lea    0x10(%rsp),%rsi
mov    %r13,%rdx
mov    %rbp,%rcx
mov    %r14,%r8
mov    %r15,%r9
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [30 x i8] c"Please enter your first name:\00"
@.str.2 = [29 x i8] c"Please enter your last name:\00"
@.str.3 = [23 x i8] c"Please enter your age:\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [36 x i8] c"Now please enter your full address:\00"
@.str.6 = [45 x i8] c"Your name is %s %s and you are %d years old!\00"
@.str.7 = [49 x i8] c"Additionally you live at: \0A %s %s %s \0A %s %s, %s\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [25 x i8]
%3 = alloca [25 x i8]
%4 = alloca i32
%5 = alloca [25 x i8]
%6 = alloca [25 x i8]
%7 = alloca [25 x i8]
%8 = alloca [25 x i8]
%9 = alloca [25 x i8]
%10 = alloca [25 x i8]
store i32 0, i32* %1
%11 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%12 = getelementptr inbounds [25 x i8], [25 x i8]* %2, i64 0, i64 0
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %12)
%14 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0))
%15 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 0
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %15)
%17 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%18 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%19 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%20 = getelementptr inbounds [25 x i8], [25 x i8]* %5, i64 0, i64 0
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %20)
%22 = getelementptr inbounds [25 x i8], [25 x i8]* %6, i64 0, i64 0
%23 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %22)
%24 = getelementptr inbounds [25 x i8], [25 x i8]* %7, i64 0, i64 0
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %24)
%26 = getelementptr inbounds [25 x i8], [25 x i8]* %8, i64 0, i64 0
%27 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %26)
%28 = getelementptr inbounds [25 x i8], [25 x i8]* %9, i64 0, i64 0
%29 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %28)
%30 = getelementptr inbounds [25 x i8], [25 x i8]* %10, i64 0, i64 0
%31 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %30)
%32 = getelementptr inbounds [25 x i8], [25 x i8]* %2, i64 0, i64 0
%33 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 0
%34 = load i32, i32* %4
%35 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.6, i64 0, i64 0), i8* %32, i8* %33, i32 %34)
%36 = getelementptr inbounds [25 x i8], [25 x i8]* %5, i64 0, i64 0
%37 = getelementptr inbounds [25 x i8], [25 x i8]* %6, i64 0, i64 0
%38 = getelementptr inbounds [25 x i8], [25 x i8]* %7, i64 0, i64 0
%39 = getelementptr inbounds [25 x i8], [25 x i8]* %8, i64 0, i64 0
%40 = getelementptr inbounds [25 x i8], [25 x i8]* %9, i64 0, i64 0
%41 = getelementptr inbounds [25 x i8], [25 x i8]* %10, i64 0, i64 0
%42 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0), i8* %36, i8* %37, i8* %38, i8* %39, i8* %40, i8* %41)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [30 x i8] c"Please enter your first name:\00"
@.str.2 = [29 x i8] c"Please enter your last name:\00"
@.str.3 = [23 x i8] c"Please enter your age:\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [36 x i8] c"Now please enter your full address:\00"
@.str.6 = [45 x i8] c"Your name is %s %s and you are %d years old!\00"
@.str.7 = [49 x i8] c"Additionally you live at: \0A %s %s %s \0A %s %s, %s\00"
define i32 @main() {
%1 = alloca [25 x i8]
%2 = alloca [25 x i8]
%3 = alloca i32
%4 = alloca [25 x i8]
%5 = alloca [25 x i8]
%6 = alloca [25 x i8]
%7 = alloca [25 x i8]
%8 = alloca [25 x i8]
%9 = alloca [25 x i8]
%10 = getelementptr inbounds [25 x i8], [25 x i8]* %1, i64 0, i64 0
%11 = getelementptr inbounds [25 x i8], [25 x i8]* %2, i64 0, i64 0
%12 = bitcast i32* %3 to i8*
%13 = getelementptr inbounds [25 x i8], [25 x i8]* %4, i64 0, i64 0
%14 = getelementptr inbounds [25 x i8], [25 x i8]* %5, i64 0, i64 0
%15 = getelementptr inbounds [25 x i8], [25 x i8]* %6, i64 0, i64 0
%16 = getelementptr inbounds [25 x i8], [25 x i8]* %7, i64 0, i64 0
%17 = getelementptr inbounds [25 x i8], [25 x i8]* %8, i64 0, i64 0
%18 = getelementptr inbounds [25 x i8], [25 x i8]* %9, i64 0, i64 0
%19 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%21 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0))
%22 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %11)
%23 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%24 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %3)
%25 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%26 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %13)
%27 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %14)
%28 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %15)
%29 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %16)
%30 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %17)
%31 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %18)
%32 = load i32, i32* %3
%33 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.6, i64 0, i64 0), i8* %10, i8* %11, i32 %32)
%34 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0), i8* %13, i8* %14, i8* %15, i8* %16, i8* %17, i8* %18)
ret i32 0
}