#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(void) {
  char *string_pointer = "What's up??";
  char string_array[] = "Whatshoo lookin' at?!";
  printf("%s\n", string_array);
  string_array[4] = ' ';
  string_array[5] = 'y';
  string_array[6] = 'o';
  string_array[7] = 'u';
  printf("%s\n", string_array);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0xedf(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xedc(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xeda(%rip),%eax
mov    %eax,-0x20(%rbp)
mov    0xed4(%rip),%ax
mov    %ax,-0x1c(%rbp)
lea    -0x30(%rbp),%rsi
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
movb   $0x20,-0x2c(%rbp)
movb   $0x79,-0x2b(%rbp)
movb   $0x6f,-0x2a(%rbp)
movb   $0x75,-0x29(%rbp)
lea    -0x30(%rbp),%rsi
lea    0xe8d(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
movaps 0xee2(%rip),%xmm0
movaps %xmm0,(%rsp)
movabs $0x213f746120276e,%rax
mov    %rax,0xe(%rsp)
lea    0xede(%rip),%rbx
mov    %rsp,%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <printf@plt>
movl   $0x756f7920,0x4(%rsp)
75
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [12 x i8] c"What's up??\00"
@__const.main.string_array = [22 x i8] c"Whatshoo lookin' at?!\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca [22 x i8]
store i32 0, i32* %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8** %2
%4 = bitcast [22 x i8]* %3 to i8*
%5 = getelementptr inbounds [22 x i8], [22 x i8]* %3, i64 0, i64 0
%6 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%7 = getelementptr inbounds [22 x i8], [22 x i8]* %3, i64 0, i64 4
store i8 32, i8* %7
%8 = getelementptr inbounds [22 x i8], [22 x i8]* %3, i64 0, i64 5
store i8 121, i8* %8
%9 = getelementptr inbounds [22 x i8], [22 x i8]* %3, i64 0, i64 6
store i8 111, i8* %9
%10 = getelementptr inbounds [22 x i8], [22 x i8]* %3, i64 0, i64 7
store i8 117, i8* %10
%11 = getelementptr inbounds [22 x i8], [22 x i8]* %3, i64 0, i64 0
%12 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %11)
ret i32 0
}

LLVM IR (-O2):
@__const.main.string_array = [22 x i8] c"Whatshoo lookin' at?!\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca [22 x i8]
%2 = getelementptr inbounds [22 x i8], [22 x i8]* %1, i64 0, i64 0
%3 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%4 = getelementptr inbounds [22 x i8], [22 x i8]* %1, i64 0, i64 4
store i8 32, i8* %4
%5 = getelementptr inbounds [22 x i8], [22 x i8]* %1, i64 0, i64 5
store i8 121, i8* %5
%6 = getelementptr inbounds [22 x i8], [22 x i8]* %1, i64 0, i64 6
store i8 111, i8* %6
%7 = getelementptr inbounds [22 x i8], [22 x i8]* %1, i64 0, i64 7
store i8 117, i8* %7
%8 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %2)
ret i32 0
}