#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*/ puts(char *);
int main(int argc, char **argv) {
  char x[27];
  int m[26];
  int i;
  int c = 0x41;
  for (i = 0; i < 26; i++, c++) {
    m[i] = c;
  }
  for (i = 0; i < 26; i++) {
    x[i] = (char)m[i];
  }
  x[26] = '\0';
  puts(x);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x41,-0xa8(%rbp)
movl   $0x0,-0xa4(%rbp)
cmpl   $0x1a,-0xa4(%rbp)
jge    1181 <main+0x71>
mov    -0xa8(%rbp),%ecx
movslq -0xa4(%rbp),%rax
mov    %ecx,-0xa0(%rbp,%rax,4)
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
mov    -0xa8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa8(%rbp)
jmp    113d <main+0x2d>
movl   $0x0,-0xa4(%rbp)
cmpl   $0x1a,-0xa4(%rbp)
jge    11c7 <main+0xb7>
movslq -0xa4(%rbp),%rax
mov    -0xa0(%rbp,%rax,4),%eax
mov    %al,%cl
movslq -0xa4(%rbp),%rax
mov    %cl,-0x30(%rbp,%rax,1)
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    118b <main+0x7b>
movb   $0x0,-0x16(%rbp)
lea    -0x30(%rbp),%rdi
call   1030 <puts@plt>
mov    -0x4(%rbp),%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
movaps 0xee5(%rip),%xmm0
movaps %xmm0,(%rsp)
movabs $0x5857565554535251,%rax
56 57 58
mov    %rax,0x10(%rsp)
movw   $0x5a59,0x18(%rsp)
movb   $0x0,0x1a(%rsp)
mov    %rsp,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [27 x i8]
%7 = alloca [26 x i32]
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 65, i32* %9
store i32 0, i32* %8
br label %10
10: ; preds = %18, %2
%11 = load i32, i32* %8
%12 = icmp slt i32 %11, 26
br i1 %12, label %13, label %23
13: ; preds = %10
%14 = load i32, i32* %9
%15 = load i32, i32* %8
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [26 x i32], [26 x i32]* %7, i64 0, i64 %16
store i32 %14, i32* %17
br label %18
18: ; preds = %13
%19 = load i32, i32* %8
%20 = add nsw i32 %19, 1
store i32 %20, i32* %8
%21 = load i32, i32* %9
%22 = add nsw i32 %21, 1
store i32 %22, i32* %9
br label %10
23: ; preds = %10
store i32 0, i32* %8
br label %24
24: ; preds = %36, %23
%25 = load i32, i32* %8
%26 = icmp slt i32 %25, 26
br i1 %26, label %27, label %39
27: ; preds = %24
%28 = load i32, i32* %8
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [26 x i32], [26 x i32]* %7, i64 0, i64 %29
%31 = load i32, i32* %30
%32 = trunc i32 %31 to i8
%33 = load i32, i32* %8
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [27 x i8], [27 x i8]* %6, i64 0, i64 %34
store i8 %32, i8* %35
br label %36
36: ; preds = %27
%37 = load i32, i32* %8
%38 = add nsw i32 %37, 1
store i32 %38, i32* %8
br label %24
39: ; preds = %24
%40 = getelementptr inbounds [27 x i8], [27 x i8]* %6, i64 0, i64 26
store i8 0, i8* %40
%41 = getelementptr inbounds [27 x i8], [27 x i8]* %6, i64 0, i64 0
%42 = call i32 @puts(i8* %41)
%43 = load i32, i32* %3
ret i32 %43
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [27 x i8]
%4 = getelementptr inbounds [27 x i8], [27 x i8]* %3, i64 0, i64 0
%5 = bitcast [27 x i8]* %3 to <16 x i8>*
store <16 x i8> <i8 65, i8 66, i8 67, i8 68, i8 69, i8 70, i8 71, i8 72, i8 73, i8 74, i8 75, i8 76, i8 77, i8 78, i8 79, i8 80>, <16 x i8>* %5
%6 = getelementptr inbounds [27 x i8], [27 x i8]* %3, i64 0, i64 16
store i8 81, i8* %6
%7 = getelementptr inbounds [27 x i8], [27 x i8]* %3, i64 0, i64 17
store i8 82, i8* %7
%8 = getelementptr inbounds [27 x i8], [27 x i8]* %3, i64 0, i64 18
store i8 83, i8* %8
%9 = getelementptr inbounds [27 x i8], [27 x i8]* %3, i64 0, i64 19
store i8 84, i8* %9
%10 = getelementptr inbounds [27 x i8], [27 x i8]* %3, i64 0, i64 20
store i8 85, i8* %10
%11 = getelementptr inbounds [27 x i8], [27 x i8]* %3, i64 0, i64 21
store i8 86, i8* %11
%12 = getelementptr inbounds [27 x i8], [27 x i8]* %3, i64 0, i64 22
store i8 87, i8* %12
%13 = getelementptr inbounds [27 x i8], [27 x i8]* %3, i64 0, i64 23
store i8 88, i8* %13
%14 = getelementptr inbounds [27 x i8], [27 x i8]* %3, i64 0, i64 24
store i8 89, i8* %14
%15 = getelementptr inbounds [27 x i8], [27 x i8]* %3, i64 0, i64 25
store i8 90, i8* %15
%16 = getelementptr inbounds [27 x i8], [27 x i8]* %3, i64 0, i64 26
store i8 0, i8* %16
%17 = call i32 @puts(i8* %4)
ret i32 0
}