#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*/ putchar(char);
int main() {
  char b[8];
  b[0] = 'L';
  b[1] = 'Y';
  b[2] = 'K';
  b[3] = '2';
  b[4] = '0';
  b[5] = '1';
  b[6] = '7';
  b[7] = 0;
  for (int i = 0; i < 7; i++)
    putchar(b[i]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x4c,-0xc(%rbp)
movb   $0x59,-0xb(%rbp)
movb   $0x4b,-0xa(%rbp)
movb   $0x32,-0x9(%rbp)
movb   $0x30,-0x8(%rbp)
movb   $0x31,-0x7(%rbp)
movb   $0x37,-0x6(%rbp)
movb   $0x0,-0x5(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x7,-0x10(%rbp)
jge    116c <main+0x5c>
movslq -0x10(%rbp),%rax
movsbl -0xc(%rbp,%rax,1),%edi
call   1030 <putchar@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1146 <main+0x36>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x4c,%edi
call   1030 <putchar@plt>
mov    $0x59,%edi
call   1030 <putchar@plt>
mov    $0x4b,%edi
call   1030 <putchar@plt>
mov    $0x32,%edi
call   1030 <putchar@plt>
mov    $0x30,%edi
call   1030 <putchar@plt>
mov    $0x31,%edi
call   1030 <putchar@plt>
mov    $0x37,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca [8 x i8]
%3 = alloca i32
store i32 0, i32* %1
%4 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
store i8 76, i8* %4
%5 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 1
store i8 89, i8* %5
%6 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 2
store i8 75, i8* %6
%7 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 3
store i8 50, i8* %7
%8 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 4
store i8 48, i8* %8
%9 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 5
store i8 49, i8* %9
%10 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 6
store i8 55, i8* %10
%11 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 7
store i8 0, i8* %11
store i32 0, i32* %3
br label %12
12: ; preds = %21, %0
%13 = load i32, i32* %3
%14 = icmp slt i32 %13, 7
br i1 %14, label %15, label %24
15: ; preds = %12
%16 = load i32, i32* %3
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 %17
%19 = load i8, i8* %18
%20 = call i32 @putchar(i8 signext %19)
br label %21
21: ; preds = %15
%22 = load i32, i32* %3
%23 = add nsw i32 %22, 1
store i32 %23, i32* %3
br label %12
24: ; preds = %12
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @putchar(i8 signext 76)
%2 = tail call i32 @putchar(i8 signext 89)
%3 = tail call i32 @putchar(i8 signext 75)
%4 = tail call i32 @putchar(i8 signext 50)
%5 = tail call i32 @putchar(i8 signext 48)
%6 = tail call i32 @putchar(i8 signext 49)
%7 = tail call i32 @putchar(i8 signext 55)
ret i32 0
}