#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(void) {
  char l = 'a';
  char u = 'A';
  while (l <= 'z') {
    putchar(l);
    l++;
  }
  while (u <= 'Z') {
    putchar(u);
    u++;
  }
  putchar('\n');
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x61,-0x5(%rbp)
movb   $0x41,-0x6(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x7a,%eax
jg     114a <main+0x3a>
movsbl -0x5(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x5(%rbp),%al
add    $0x1,%al
mov    %al,-0x5(%rbp)
jmp    1127 <main+0x17>
jmp    114f <main+0x3f>
movsbl -0x6(%rbp),%eax
cmp    $0x5a,%eax
jg     1172 <main+0x62>
movsbl -0x6(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x6(%rbp),%al
add    $0x1,%al
mov    %al,-0x6(%rbp)
jmp    114f <main+0x3f>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
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    $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    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
store i32 0, i32* %1
store i8 97, i8* %2
store i8 65, i8* %3
br label %4
4: ; preds = %8, %0
%5 = load i8, i8* %2
%6 = sext i8 %5 to i32
%7 = icmp sle i32 %6, 122
br i1 %7, label %8, label %13
8: ; preds = %4
%9 = load i8, i8* %2
%10 = call i32 @putchar(i8 signext %9)
%11 = load i8, i8* %2
%12 = add i8 %11, 1
store i8 %12, i8* %2
br label %4
13: ; preds = %4
br label %14
14: ; preds = %18, %13
%15 = load i8, i8* %3
%16 = sext i8 %15 to i32
%17 = icmp sle i32 %16, 90
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load i8, i8* %3
%20 = call i32 @putchar(i8 signext %19)
%21 = load i8, i8* %3
%22 = add i8 %21, 1
store i8 %22, i8* %3
br label %14
23: ; preds = %14
%24 = call i32 @putchar(i8 signext 10)
ret i32 0
}

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