#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 *, ...);
int main(void) {
  int x = 0;
  char c;
  printf("\n\n");
  for (x = 0x61; x < 0x7b; x++) {
    c = x;
    printf("%c", c);
  }
  printf("\n\n");
  for (x = 0x41; x < 0x5b; x++) {
    c = x;
    printf("%c", c);
  }
  printf("\n\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
lea    0xed3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x61,-0x8(%rbp)
cmpl   $0x7b,-0x8(%rbp)
jge    116b <main+0x5b>
mov    -0x8(%rbp),%eax
mov    %al,-0x9(%rbp)
movsbl -0x9(%rbp),%esi
lea    0xead(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    113b <main+0x2b>
lea    0xe8e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x41,-0x8(%rbp)
cmpl   $0x5b,-0x8(%rbp)
jge    11b0 <main+0xa0>
mov    -0x8(%rbp),%eax
mov    %al,-0x9(%rbp)
movsbl -0x9(%rbp),%esi
lea    0xe68(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1180 <main+0x70>
lea    0xe49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xed8(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    $0x61,%edi
call   1030 <putchar@plt>
mov    $0x62,%edi
call   1030 <putchar@plt>
mov    $0x63,%edi
call   1030 <putchar@plt>
mov    $0x64,%edi
call   1030 <putchar@plt>
mov    $0x65,%edi
call   1030 <putchar@plt>
mov    $0x66,%edi
call   1030 <putchar@plt>
mov    $0x67,%edi
call   1030 <putchar@plt>
mov    $0x68,%edi
call   1030 <putchar@plt>
mov    $0x69,%edi
call   1030 <putchar@plt>
mov    $0x6a,%edi
call   1030 <putchar@plt>
mov    $0x6b,%edi
call   1030 <putchar@plt>
mov    $0x6c,%edi
call   1030 <putchar@plt>
mov    $0x6d,%edi
call   1030 <putchar@plt>
mov    $0x6e,%edi
call   1030 <putchar@plt>
mov    $0x6f,%edi
call   1030 <putchar@plt>
mov    $0x70,%edi
call   1030 <putchar@plt>
mov    $0x71,%edi
call   1030 <putchar@plt>
mov    $0x72,%edi
call   1030 <putchar@plt>
mov    $0x73,%edi
call   1030 <putchar@plt>
mov    $0x74,%edi
call   1030 <putchar@plt>
mov    $0x75,%edi
call   1030 <putchar@plt>
mov    $0x76,%edi
call   1030 <putchar@plt>
mov    $0x77,%edi
call   1030 <putchar@plt>
mov    $0x78,%edi
call   1030 <putchar@plt>
mov    $0x79,%edi
call   1030 <putchar@plt>
mov    $0x7a,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    $0x41,%edi
call   1030 <putchar@plt>
mov    $0x42,%edi
call   1030 <putchar@plt>
mov    $0x43,%edi
call   1030 <putchar@plt>
mov    $0x44,%edi
call   1030 <putchar@plt>
mov    $0x45,%edi
call   1030 <putchar@plt>
mov    $0x46,%edi
call   1030 <putchar@plt>
mov    $0x47,%edi
call   1030 <putchar@plt>
mov    $0x48,%edi
call   1030 <putchar@plt>
mov    $0x49,%edi
call   1030 <putchar@plt>
mov    $0x4a,%edi
call   1030 <putchar@plt>
mov    $0x4b,%edi
call   1030 <putchar@plt>
mov    $0x4c,%edi
call   1030 <putchar@plt>
mov    $0x4d,%edi
call   1030 <putchar@plt>
mov    $0x4e,%edi
call   1030 <putchar@plt>
mov    $0x4f,%edi
call   1030 <putchar@plt>
mov    $0x50,%edi
call   1030 <putchar@plt>
mov    $0x51,%edi
call   1030 <putchar@plt>
mov    $0x52,%edi
call   1030 <putchar@plt>
mov    $0x53,%edi
call   1030 <putchar@plt>
mov    $0x54,%edi
call   1030 <putchar@plt>
mov    $0x55,%edi
call   1030 <putchar@plt>
mov    $0x56,%edi
call   1030 <putchar@plt>
mov    $0x57,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x59,%edi
call   1030 <putchar@plt>
mov    $0x5a,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"\0A\0A\00"
@.str.1 = [3 x i8] c"%c\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8
store i32 0, i32* %1
store i32 0, i32* %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32 97, i32* %2
br label %5
5: ; preds = %14, %0
%6 = load i32, i32* %2
%7 = icmp slt i32 %6, 123
br i1 %7, label %8, label %17
8: ; preds = %5
%9 = load i32, i32* %2
%10 = trunc i32 %9 to i8
store i8 %10, i8* %3
%11 = load i8, i8* %3
%12 = sext i8 %11 to i32
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %12)
br label %14
14: ; preds = %8
%15 = load i32, i32* %2
%16 = add nsw i32 %15, 1
store i32 %16, i32* %2
br label %5
17: ; preds = %5
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32 65, i32* %2
br label %19
19: ; preds = %28, %17
%20 = load i32, i32* %2
%21 = icmp slt i32 %20, 91
br i1 %21, label %22, label %31
22: ; preds = %19
%23 = load i32, i32* %2
%24 = trunc i32 %23 to i8
store i8 %24, i8* %3
%25 = load i8, i8* %3
%26 = sext i8 %25 to i32
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %26)
br label %28
28: ; preds = %22
%29 = load i32, i32* %2
%30 = add nsw i32 %29, 1
store i32 %30, i32* %2
br label %19
31: ; preds = %19
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%33 = load i32, i32* %1
ret i32 %33
}

LLVM IR (-O2):
@str.3 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.3, i64 0, i64 0))
%2 = tail call i32 @putchar(i32 97)
%3 = tail call i32 @putchar(i32 98)
%4 = tail call i32 @putchar(i32 99)
%5 = tail call i32 @putchar(i32 100)
%6 = tail call i32 @putchar(i32 101)
%7 = tail call i32 @putchar(i32 102)
%8 = tail call i32 @putchar(i32 103)
%9 = tail call i32 @putchar(i32 104)
%10 = tail call i32 @putchar(i32 105)
%11 = tail call i32 @putchar(i32 106)
%12 = tail call i32 @putchar(i32 107)
%13 = tail call i32 @putchar(i32 108)
%14 = tail call i32 @putchar(i32 109)
%15 = tail call i32 @putchar(i32 110)
%16 = tail call i32 @putchar(i32 111)
%17 = tail call i32 @putchar(i32 112)
%18 = tail call i32 @putchar(i32 113)
%19 = tail call i32 @putchar(i32 114)
%20 = tail call i32 @putchar(i32 115)
%21 = tail call i32 @putchar(i32 116)
%22 = tail call i32 @putchar(i32 117)
%23 = tail call i32 @putchar(i32 118)
%24 = tail call i32 @putchar(i32 119)
%25 = tail call i32 @putchar(i32 120)
%26 = tail call i32 @putchar(i32 121)
%27 = tail call i32 @putchar(i32 122)
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.3, i64 0, i64 0))
%29 = tail call i32 @putchar(i32 65)
%30 = tail call i32 @putchar(i32 66)
%31 = tail call i32 @putchar(i32 67)
%32 = tail call i32 @putchar(i32 68)
%33 = tail call i32 @putchar(i32 69)
%34 = tail call i32 @putchar(i32 70)
%35 = tail call i32 @putchar(i32 71)
%36 = tail call i32 @putchar(i32 72)
%37 = tail call i32 @putchar(i32 73)
%38 = tail call i32 @putchar(i32 74)
%39 = tail call i32 @putchar(i32 75)
%40 = tail call i32 @putchar(i32 76)
%41 = tail call i32 @putchar(i32 77)
%42 = tail call i32 @putchar(i32 78)
%43 = tail call i32 @putchar(i32 79)
%44 = tail call i32 @putchar(i32 80)
%45 = tail call i32 @putchar(i32 81)
%46 = tail call i32 @putchar(i32 82)
%47 = tail call i32 @putchar(i32 83)
%48 = tail call i32 @putchar(i32 84)
%49 = tail call i32 @putchar(i32 85)
%50 = tail call i32 @putchar(i32 86)
%51 = tail call i32 @putchar(i32 87)
%52 = tail call i32 @putchar(i32 88)
%53 = tail call i32 @putchar(i32 89)
%54 = tail call i32 @putchar(i32 90)
%55 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.3, i64 0, i64 0))
ret i32 0
}