#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 *);
int main() {
  char str_a[20];
  str_a[0] = 'H';
  str_a[1] = 'e';
  str_a[2] = 'l';
  str_a[3] = 'l';
  str_a[4] = 'o';
  str_a[5] = ',';
  str_a[6] = ' ';
  str_a[7] = 'w';
  str_a[8] = 'o';
  str_a[9] = 'r';
  str_a[10] = 'l';
  str_a[11] = 'd';
  str_a[12] = '!';
  str_a[13] = '\n';
  str_a[14] = 0;
  printf(str_a);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movb   $0x48,-0x20(%rbp)
movb   $0x65,-0x1f(%rbp)
movb   $0x6c,-0x1e(%rbp)
movb   $0x6c,-0x1d(%rbp)
movb   $0x6f,-0x1c(%rbp)
movb   $0x2c,-0x1b(%rbp)
movb   $0x20,-0x1a(%rbp)
movb   $0x77,-0x19(%rbp)
movb   $0x6f,-0x18(%rbp)
movb   $0x72,-0x17(%rbp)
movb   $0x6c,-0x16(%rbp)
movb   $0x64,-0x15(%rbp)
movb   $0x21,-0x14(%rbp)
movb   $0xa,-0x13(%rbp)
movb   $0x0,-0x12(%rbp)
lea    -0x20(%rbp),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movabs $0x77202c6f6c6c6548,%rax
2c 20 77
mov    %rax,(%rsp)
movl   $0x646c726f,0x8(%rsp)
64
movw   $0xa21,0xc(%rsp)
movb   $0x0,0xe(%rsp)
mov    %rsp,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca [20 x i8]
%2 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
store i8 72, i8* %2
%3 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 1
store i8 101, i8* %3
%4 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 2
store i8 108, i8* %4
%5 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 3
store i8 108, i8* %5
%6 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 4
store i8 111, i8* %6
%7 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 5
store i8 44, i8* %7
%8 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 6
store i8 32, i8* %8
%9 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 7
store i8 119, i8* %9
%10 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 8
store i8 111, i8* %10
%11 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 9
store i8 114, i8* %11
%12 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 10
store i8 108, i8* %12
%13 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 11
store i8 100, i8* %13
%14 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 12
store i8 33, i8* %14
%15 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 13
store i8 10, i8* %15
%16 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 14
store i8 0, i8* %16
%17 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%18 = call i32 @printf(i8* %17)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca [20 x i8]
%2 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
store i8 72, i8* %2
%3 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 1
store i8 101, i8* %3
%4 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 2
store i8 108, i8* %4
%5 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 3
store i8 108, i8* %5
%6 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 4
store i8 111, i8* %6
%7 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 5
store i8 44, i8* %7
%8 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 6
store i8 32, i8* %8
%9 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 7
store i8 119, i8* %9
%10 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 8
store i8 111, i8* %10
%11 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 9
store i8 114, i8* %11
%12 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 10
store i8 108, i8* %12
%13 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 11
store i8 100, i8* %13
%14 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 12
store i8 33, i8* %14
%15 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 13
store i8 10, i8* %15
%16 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 14
store i8 0, i8* %16
%17 = call i32 @printf(i8* %2)
ret i32 0
}