#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*/ sprintf(char *, char *, char *, char *);
int main(void) {
  char a[80 + 1] = "una";
  char b[80 + 1] = "cadena";
  char c[80 + 1];
  sprintf(c, "%s %s", a, b);
  printf("%s\n", c);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x51,%edx
call   1040 <memset@plt>
movb   $0x75,-0x60(%rbp)
movb   $0x6e,-0x5f(%rbp)
movb   $0x61,-0x5e(%rbp)
lea    -0xc0(%rbp),%rdi
xor    %esi,%esi
mov    $0x51,%edx
call   1040 <memset@plt>
movb   $0x63,-0xc0(%rbp)
movb   $0x61,-0xbf(%rbp)
movb   $0x64,-0xbe(%rbp)
movb   $0x65,-0xbd(%rbp)
movb   $0x6e,-0xbc(%rbp)
movb   $0x61,-0xbb(%rbp)
lea    -0x120(%rbp),%rdi
lea    -0x60(%rbp),%rdx
lea    -0xc0(%rbp),%rcx
lea    0xe4c(%rip),%rsi
call   1050 <sprintf@plt>
lea    -0x120(%rbp),%rsi
lea    0xe3f(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x120,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movb   $0x0,0xb0(%rsp)
movw   $0x6e75,0x60(%rsp)
movb   $0x61,0x62(%rsp)
movaps %xmm0,(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movb   $0x0,0x50(%rsp)
movl   $0x65646163,(%rsp)
movw   $0x616e,0x4(%rsp)
lea    0xe6d(%rip),%rsi
lea    0xc0(%rsp),%rbx
lea    0x60(%rsp),%rdx
mov    %rsp,%rcx
mov    %rbx,%rdi
call   1040 <sprintf@plt>
lea    0xe54(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x120,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%s %s\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [81 x i8]
%3 = alloca [81 x i8]
%4 = alloca [81 x i8]
store i32 0, i32* %1
%5 = bitcast [81 x i8]* %2 to i8*
%6 = bitcast i8* %5 to [81 x i8]*
%7 = getelementptr inbounds [81 x i8], [81 x i8]* %6, i32 0, i32 0
store i8 117, i8* %7
%8 = getelementptr inbounds [81 x i8], [81 x i8]* %6, i32 0, i32 1
store i8 110, i8* %8
%9 = getelementptr inbounds [81 x i8], [81 x i8]* %6, i32 0, i32 2
store i8 97, i8* %9
%10 = bitcast [81 x i8]* %3 to i8*
%11 = bitcast i8* %10 to [81 x i8]*
%12 = getelementptr inbounds [81 x i8], [81 x i8]* %11, i32 0, i32 0
store i8 99, i8* %12
%13 = getelementptr inbounds [81 x i8], [81 x i8]* %11, i32 0, i32 1
store i8 97, i8* %13
%14 = getelementptr inbounds [81 x i8], [81 x i8]* %11, i32 0, i32 2
store i8 100, i8* %14
%15 = getelementptr inbounds [81 x i8], [81 x i8]* %11, i32 0, i32 3
store i8 101, i8* %15
%16 = getelementptr inbounds [81 x i8], [81 x i8]* %11, i32 0, i32 4
store i8 110, i8* %16
%17 = getelementptr inbounds [81 x i8], [81 x i8]* %11, i32 0, i32 5
store i8 97, i8* %17
%18 = getelementptr inbounds [81 x i8], [81 x i8]* %4, i64 0, i64 0
%19 = getelementptr inbounds [81 x i8], [81 x i8]* %2, i64 0, i64 0
%20 = getelementptr inbounds [81 x i8], [81 x i8]* %3, i64 0, i64 0
%21 = call i32 @sprintf(i8* %18, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %19, i8* %20)
%22 = getelementptr inbounds [81 x i8], [81 x i8]* %4, i64 0, i64 0
%23 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %22)
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"%s %s\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca [81 x i8]
%2 = alloca [81 x i8]
%3 = alloca [81 x i8]
%4 = getelementptr inbounds [81 x i8], [81 x i8]* %1, i64 0, i64 0
store i8 117, i8* %4
%5 = getelementptr inbounds [81 x i8], [81 x i8]* %1, i64 0, i64 1
store i8 110, i8* %5
%6 = getelementptr inbounds [81 x i8], [81 x i8]* %1, i64 0, i64 2
store i8 97, i8* %6
%7 = getelementptr inbounds [81 x i8], [81 x i8]* %2, i64 0, i64 0
store i8 99, i8* %7
%8 = getelementptr inbounds [81 x i8], [81 x i8]* %2, i64 0, i64 1
store i8 97, i8* %8
%9 = getelementptr inbounds [81 x i8], [81 x i8]* %2, i64 0, i64 2
store i8 100, i8* %9
%10 = getelementptr inbounds [81 x i8], [81 x i8]* %2, i64 0, i64 3
store i8 101, i8* %10
%11 = getelementptr inbounds [81 x i8], [81 x i8]* %2, i64 0, i64 4
store i8 110, i8* %11
%12 = getelementptr inbounds [81 x i8], [81 x i8]* %2, i64 0, i64 5
store i8 97, i8* %12
%13 = getelementptr inbounds [81 x i8], [81 x i8]* %3, i64 0, i64 0
%14 = call i32 @sprintf(i8* %13, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %4, i8* %7)
%15 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %13)
ret i32 0
}