#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*/ gets(char *);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ strcat(char *, char *);
int main() {
  char f_name[20];
  char m_name[20];
  char l_name[20];
  gets(f_name);
  gets(m_name);
  gets(l_name);
  char name[80];
  strcat(f_name, " ");
  strcat(f_name, m_name);
  strcat(f_name, " ");
  strcat(f_name, l_name);
  strcat(f_name, " ");
  strcat(name, " ");
  strcat(name, f_name);
  puts(name);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
lea    -0x20(%rbp),%rdi
call   1040 <gets@plt>
lea    -0x40(%rbp),%rdi
call   1040 <gets@plt>
lea    -0x60(%rbp),%rdi
call   1040 <gets@plt>
lea    -0x20(%rbp),%rdi
lea    0xe9f(%rip),%rsi
call   1050 <strcat@plt>
lea    -0x20(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1050 <strcat@plt>
lea    -0x20(%rbp),%rdi
lea    0xe82(%rip),%rsi
call   1050 <strcat@plt>
lea    -0x20(%rbp),%rdi
lea    -0x60(%rbp),%rsi
call   1050 <strcat@plt>
lea    -0x20(%rbp),%rdi
lea    0xe65(%rip),%rsi
call   1050 <strcat@plt>
lea    -0xb0(%rbp),%rdi
lea    0xe52(%rip),%rsi
call   1050 <strcat@plt>
lea    -0xb0(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1050 <strcat@plt>
lea    -0xb0(%rbp),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb0,%rsp
lea    0x40(%rsp),%r13
mov    %r13,%rdi
call   1040 <gets@plt>
lea    0x20(%rsp),%r14
mov    %r14,%rdi
call   1040 <gets@plt>
mov    %rsp,%r15
mov    %r15,%rdi
call   1040 <gets@plt>
lea    0xe94(%rip),%r12
mov    %r13,%rdi
mov    %r12,%rsi
call   1050 <strcat@plt>
mov    %r13,%rdi
mov    %r14,%rsi
call   1050 <strcat@plt>
mov    %r13,%rdi
mov    %r12,%rsi
call   1050 <strcat@plt>
mov    %r13,%rdi
mov    %r15,%rsi
call   1050 <strcat@plt>
mov    %r13,%rdi
mov    %r12,%rsi
call   1050 <strcat@plt>
lea    0x60(%rsp),%rbx
mov    %rbx,%rdi
mov    %r12,%rsi
call   1050 <strcat@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1050 <strcat@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [2 x i8] c" \00"
define i32 @main() {
%1 = alloca [20 x i8]
%2 = alloca [20 x i8]
%3 = alloca [20 x i8]
%4 = alloca [80 x i8]
%5 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%6 = call i32 @gets(i8* %5)
%7 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%8 = call i32 @gets(i8* %7)
%9 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%10 = call i32 @gets(i8* %9)
%11 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%12 = call i32 @strcat(i8* %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%13 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%14 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%15 = call i32 @strcat(i8* %13, i8* %14)
%16 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%17 = call i32 @strcat(i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%18 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%19 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%20 = call i32 @strcat(i8* %18, i8* %19)
%21 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%22 = call i32 @strcat(i8* %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%23 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 0
%24 = call i32 @strcat(i8* %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%25 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 0
%26 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%27 = call i32 @strcat(i8* %25, i8* %26)
%28 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 0
%29 = call i32 @puts(i8* %28)
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c" \00"
define i32 @main() {
%1 = alloca [20 x i8]
%2 = alloca [20 x i8]
%3 = alloca [20 x i8]
%4 = alloca [80 x i8]
%5 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%6 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%7 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%8 = call i32 @gets(i8* %5)
%9 = call i32 @gets(i8* %6)
%10 = call i32 @gets(i8* %7)
%11 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 0
%12 = call i32 @strcat(i8* %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%13 = call i32 @strcat(i8* %5, i8* %6)
%14 = call i32 @strcat(i8* %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%15 = call i32 @strcat(i8* %5, i8* %7)
%16 = call i32 @strcat(i8* %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%17 = call i32 @strcat(i8* %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%18 = call i32 @strcat(i8* %11, i8* %5)
%19 = call i32 @puts(i8* %11)
ret i32 0
}