#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 main() {
  char name1[] = "George Washington";
  char name2[11] = "John Adams";
  char name3[] = "Thomas Jefferson";
  printf("%17s\n", name1);
  printf("%18s\n", name2);
  printf("%17s\n", name3);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeda(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xed7(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xed4(%rip),%ax
mov    %ax,-0x10(%rbp)
mov    0xeea(%rip),%rax
mov    %rax,-0x2b(%rbp)
mov    0xee7(%rip),%ax
mov    %ax,-0x23(%rbp)
mov    0xedf(%rip),%al
mov    %al,-0x21(%rbp)
mov    0xeba(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xeb7(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xeb5(%rip),%al
mov    %al,-0x30(%rbp)
lea    -0x20(%rbp),%rsi
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
lea    -0x2b(%rbp),%rsi
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
lea    -0x40(%rbp),%rsi
lea    0xe93(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x50,%rsp
movaps 0xee4(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movw   $0x6e,0x40(%rsp)
movabs $0x616441206e686f4a,%rax
41 64 61
mov    %rax,(%rsp)
movl   $0x736d61,0x7(%rsp)
movaps 0xedb(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movb   $0x0,0x20(%rsp)
lea    0xee6(%rip),%rbx
lea    0x30(%rsp),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
mov    %rsp,%rsi
call   1030 <printf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.name1 = [18 x i8] c"George Washington\00"
@__const.main.name2 = [11 x i8] c"John Adams\00"
@__const.main.name3 = [17 x i8] c"Thomas Jefferson\00"
@.str = [6 x i8] c"%17s\0A\00"
@.str.1 = [6 x i8] c"%18s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [18 x i8]
%3 = alloca [11 x i8]
%4 = alloca [17 x i8]
store i32 0, i32* %1
%5 = bitcast [18 x i8]* %2 to i8*
%6 = bitcast [11 x i8]* %3 to i8*
%7 = bitcast [17 x i8]* %4 to i8*
%8 = getelementptr inbounds [18 x i8], [18 x i8]* %2, i64 0, i64 0
%9 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %8)
%10 = getelementptr inbounds [11 x i8], [11 x i8]* %3, i64 0, i64 0
%11 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %10)
%12 = getelementptr inbounds [17 x i8], [17 x i8]* %4, i64 0, i64 0
%13 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %12)
ret i32 0
}

LLVM IR (-O2):
@__const.main.name1 = [18 x i8] c"George Washington\00"
@__const.main.name2 = [11 x i8] c"John Adams\00"
@__const.main.name3 = [17 x i8] c"Thomas Jefferson\00"
@.str = [6 x i8] c"%17s\0A\00"
@.str.1 = [6 x i8] c"%18s\0A\00"
define i32 @main() {
%1 = alloca [18 x i8]
%2 = alloca [11 x i8]
%3 = alloca [17 x i8]
%4 = getelementptr inbounds [18 x i8], [18 x i8]* %1, i64 0, i64 0
%5 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [17 x i8], [17 x i8]* %3, i64 0, i64 0
%7 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %4)
%8 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%9 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %6)
ret i32 0
}