#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 *);
char *words(char *);
int main(int argc, char const *argv[]) {
  char t0[] = "";
  char t1[] = "    ";
  char t2[] = "hello";
  char t3[] = "hello world";
  char t4[] = "hello world !";
  char t5[] = "hello  world !";
  char t6[] = "hello  world ! ";
  printf("%s\n", words(t2));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x11(%rbp),%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1040 <memset@plt>
mov    0xea4(%rip),%eax
mov    %eax,-0x16(%rbp)
mov    0xe9f(%rip),%al
mov    %al,-0x12(%rbp)
mov    0xe97(%rip),%eax
mov    %eax,-0x1c(%rbp)
mov    0xe91(%rip),%ax
mov    %ax,-0x18(%rbp)
mov    0xe88(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xe86(%rip),%eax
mov    %eax,-0x20(%rbp)
mov    0xe80(%rip),%rax
mov    %rax,-0x36(%rbp)
mov    0xe7e(%rip),%eax
mov    %eax,-0x2e(%rbp)
mov    0xe78(%rip),%ax
mov    %ax,-0x2a(%rbp)
mov    0xe6f(%rip),%rax
mov    %rax,-0x45(%rbp)
mov    0xe6d(%rip),%eax
mov    %eax,-0x3d(%rbp)
mov    0xe67(%rip),%ax
mov    %ax,-0x39(%rbp)
mov    0xe5f(%rip),%al
mov    %al,-0x37(%rbp)
mov    0xe62(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xe5f(%rip),%rax
mov    %rax,-0x58(%rbp)
lea    -0x1c(%rbp),%rdi
call   1050 <words@plt>
mov    %rax,%rsi
lea    0xe34(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movw   $0x6f,0x4(%rsp)
movl   $0x6c6c6568,(%rsp)
mov    %rsp,%rdi
call   1040 <words@plt>
lea    0xec8(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@__const.main.t1 = [5 x i8] c" \00"
@__const.main.t2 = [6 x i8] c"hello\00"
@__const.main.t3 = [12 x i8] c"hello world\00"
@__const.main.t4 = [14 x i8] c"hello world !\00"
@__const.main.t5 = [15 x i8] c"hello world !\00"
@__const.main.t6 = [16 x i8] c"hello world ! \00"
@.str = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [1 x i8]
%7 = alloca [5 x i8]
%8 = alloca [6 x i8]
%9 = alloca [12 x i8]
%10 = alloca [14 x i8]
%11 = alloca [15 x i8]
%12 = alloca [16 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = bitcast [1 x i8]* %6 to i8*
%14 = bitcast [5 x i8]* %7 to i8*
%15 = bitcast [6 x i8]* %8 to i8*
%16 = bitcast [12 x i8]* %9 to i8*
%17 = bitcast [14 x i8]* %10 to i8*
%18 = bitcast [15 x i8]* %11 to i8*
%19 = bitcast [16 x i8]* %12 to i8*
%20 = getelementptr inbounds [6 x i8], [6 x i8]* %8, i64 0, i64 0
%21 = call i8* @words(i8* %20)
%22 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %21)
ret i32 0
}

LLVM IR (-O2):
@__const.main.t2 = [6 x i8] c"hello\00"
@.str = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [6 x i8]
%4 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%5 = call i8* @words(i8* %4)
%6 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %5)
ret i32 0
}