#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 EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[], char *envp[]) {
  printf("1 - Take a walk    	 on the 	 wild side");
  printf("\n2 - take a walk on the wild side");
  printf("\n3 - take a walk "
         "on the "
         "wild side\n");
  char *name;
  name = "Lou Reed";
  printf("4 - %s\n", name);
  char ch1, ch2, ch3, ch4, ch5;
  ch1 = "abcdefghijklmnopqrstuvwxyz"[7];
  ch2 = "abcdefghijklmnopqrstuvwxyz"[4];
  ch3 = "abcdefghijklmnopqrstuvwxyz"[11];
  ch4 = "abcdefghijklmnopqrstuvwxyz"[11];
  ch5 = "abcdefghijklmnopqrstuvwxyz"[14];
  printf("5 - %c%c%c%c%c\n", ch1, ch2, ch3, ch4, ch5);
  char alphabet[] = "abcdefghijklmnopqrstuvwxyz";
  char ch6, ch7, ch8, ch9, ch10;
  ch6 = alphabet[7];
  ch7 = alphabet[4];
  ch8 = alphabet[11];
  ch9 = alphabet[11];
  ch10 = alphabet[14];
  printf("6 - %c%c%c%c%c\n", ch6, ch7, ch8, ch9, ch10);
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
lea    0xecf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf12(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
lea    0xf0c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xf0e(%rip),%al
mov    %al,-0x21(%rbp)
mov    0xf02(%rip),%al
mov    %al,-0x22(%rbp)
mov    0xf00(%rip),%al
mov    %al,-0x23(%rbp)
mov    0xef7(%rip),%al
mov    %al,-0x24(%rbp)
mov    0xef1(%rip),%al
mov    %al,-0x25(%rbp)
movsbl -0x21(%rbp),%esi
movsbl -0x22(%rbp),%edx
movsbl -0x23(%rbp),%ecx
movsbl -0x24(%rbp),%r8d
movsbl -0x25(%rbp),%r9d
lea    0xede(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xef7(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xef4(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xef1(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xeee(%rip),%ax
mov    %ax,-0x28(%rbp)
mov    0xee6(%rip),%al
mov    %al,-0x26(%rbp)
mov    -0x39(%rbp),%al
mov    %al,-0x41(%rbp)
mov    -0x3c(%rbp),%al
mov    %al,-0x42(%rbp)
mov    -0x35(%rbp),%al
mov    %al,-0x43(%rbp)
mov    -0x35(%rbp),%al
mov    %al,-0x44(%rbp)
mov    -0x32(%rbp),%al
mov    %al,-0x45(%rbp)
movsbl -0x41(%rbp),%esi
movsbl -0x42(%rbp),%edx
movsbl -0x43(%rbp),%ecx
movsbl -0x44(%rbp),%r8d
movsbl -0x45(%rbp),%r9d
lea    0xe77(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2da0(%rip),%rax
mov    (%rax),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf37(%rip),%rdi
call   1030 <puts@plt>
lea    0xf03(%rip),%rdi
lea    0xef3(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef6(%rip),%rdi
mov    $0x68,%esi
mov    $0x65,%edx
mov    $0x6c,%ecx
mov    $0x6c,%r8d
mov    $0x6f,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x68,%esi
mov    $0x65,%edx
mov    $0x6c,%ecx
mov    $0x6c,%r8d
mov    $0x6f,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e29(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [40 x i8] c"1 - Take a walk \09 on the \09 wild side\00"
@.str.1 = [34 x i8] c"\0A2 - take a walk on the wild side\00"
@.str.2 = [35 x i8] c"\0A3 - take a walk on the wild side\0A\00"
@.str.3 = [9 x i8] c"Lou Reed\00"
@.str.4 = [8 x i8] c"4 - %s\0A\00"
@.str.5 = [27 x i8] c"abcdefghijklmnopqrstuvwxyz\00"
@.str.6 = [16 x i8] c"5 - %c%c%c%c%c\0A\00"
@__const.main.alphabet = [27 x i8] c"abcdefghijklmnopqrstuvwxyz\00"
@.str.7 = [16 x i8] c"6 - %c%c%c%c%c\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1, i8** %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8**
%8 = alloca i8*
%9 = alloca i8
%10 = alloca i8
%11 = alloca i8
%12 = alloca i8
%13 = alloca i8
%14 = alloca [27 x i8]
%15 = alloca i8
%16 = alloca i8
%17 = alloca i8
%18 = alloca i8
%19 = alloca i8
store i32 0, i32* %4
store i32 %0, i32* %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8** %8
%23 = load i8*, i8** %8
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* %23)
%25 = load i8, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 7)
store i8 %25, i8* %9
%26 = load i8, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 4)
store i8 %26, i8* %10
%27 = load i8, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 11)
store i8 %27, i8* %11
%28 = load i8, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 11)
store i8 %28, i8* %12
%29 = load i8, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 14)
store i8 %29, i8* %13
%30 = load i8, i8* %9
%31 = sext i8 %30 to i32
%32 = load i8, i8* %10
%33 = sext i8 %32 to i32
%34 = load i8, i8* %11
%35 = sext i8 %34 to i32
%36 = load i8, i8* %12
%37 = sext i8 %36 to i32
%38 = load i8, i8* %13
%39 = sext i8 %38 to i32
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i32 %31, i32 %33, i32 %35, i32 %37, i32 %39)
%41 = bitcast [27 x i8]* %14 to i8*
%42 = getelementptr inbounds [27 x i8], [27 x i8]* %14, i64 0, i64 7
%43 = load i8, i8* %42
store i8 %43, i8* %15
%44 = getelementptr inbounds [27 x i8], [27 x i8]* %14, i64 0, i64 4
%45 = load i8, i8* %44
store i8 %45, i8* %16
%46 = getelementptr inbounds [27 x i8], [27 x i8]* %14, i64 0, i64 11
%47 = load i8, i8* %46
store i8 %47, i8* %17
%48 = getelementptr inbounds [27 x i8], [27 x i8]* %14, i64 0, i64 11
%49 = load i8, i8* %48
store i8 %49, i8* %18
%50 = getelementptr inbounds [27 x i8], [27 x i8]* %14, i64 0, i64 14
%51 = load i8, i8* %50
store i8 %51, i8* %19
%52 = load i8, i8* %15
%53 = sext i8 %52 to i32
%54 = load i8, i8* %16
%55 = sext i8 %54 to i32
%56 = load i8, i8* %17
%57 = sext i8 %56 to i32
%58 = load i8, i8* %18
%59 = sext i8 %58 to i32
%60 = load i8, i8* %19
%61 = sext i8 %60 to i32
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i32 %53, i32 %55, i32 %57, i32 %59, i32 %61)
%63 = load i32, i32* @EXIT_SUCCESS
ret i32 %63
}

LLVM IR (-O2):
@.str = [40 x i8] c"1 - Take a walk \09 on the \09 wild side\00"
@.str.1 = [34 x i8] c"\0A2 - take a walk on the wild side\00"
@.str.3 = [9 x i8] c"Lou Reed\00"
@.str.4 = [8 x i8] c"4 - %s\0A\00"
@.str.6 = [16 x i8] c"5 - %c%c%c%c%c\0A\00"
@.str.7 = [16 x i8] c"6 - %c%c%c%c%c\0A\00"
@EXIT_SUCCESS = global i32 0
@str = [34 x i8] c"\0A3 - take a walk on the wild side\00"
define i32 @main(i32 %0, i8** nocapture readnone %1, i8** nocapture readnone %2) {
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i32 104, i32 101, i32 108, i32 108, i32 111)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i32 104, i32 101, i32 108, i32 108, i32 111)
%10 = load i32, i32* @EXIT_SUCCESS
ret i32 %10
}