#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 /*<<< orphan*/ putchar_unlocked(char);
int main() {
  char ch;
  for (char ch = 'A'; ch <= 'Z'; ch++) {
    putchar(ch);
    putchar_unlocked(ch);
  }
  putchar('\n');
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x41,-0x6(%rbp)
movsbl -0x6(%rbp),%eax
cmp    $0x5a,%eax
jg     115f <main+0x3f>
movsbl -0x6(%rbp),%edi
call   1030 <putchar@plt>
movsbl -0x6(%rbp),%edi
call   1040 <putchar_unlocked@plt>
mov    -0x6(%rbp),%al
add    $0x1,%al
mov    %al,-0x6(%rbp)
jmp    1133 <main+0x13>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x41,%edi
call   1030 <putchar@plt>
mov    $0x41,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x42,%edi
call   1030 <putchar@plt>
mov    $0x42,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x43,%edi
call   1030 <putchar@plt>
mov    $0x43,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x44,%edi
call   1030 <putchar@plt>
mov    $0x44,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x45,%edi
call   1030 <putchar@plt>
mov    $0x45,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x46,%edi
call   1030 <putchar@plt>
mov    $0x46,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x47,%edi
call   1030 <putchar@plt>
mov    $0x47,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x48,%edi
call   1030 <putchar@plt>
mov    $0x48,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x49,%edi
call   1030 <putchar@plt>
mov    $0x49,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x4a,%edi
call   1030 <putchar@plt>
mov    $0x4a,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x4b,%edi
call   1030 <putchar@plt>
mov    $0x4b,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x4c,%edi
call   1030 <putchar@plt>
mov    $0x4c,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x4d,%edi
call   1030 <putchar@plt>
mov    $0x4d,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x4e,%edi
call   1030 <putchar@plt>
mov    $0x4e,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x4f,%edi
call   1030 <putchar@plt>
mov    $0x4f,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x50,%edi
call   1030 <putchar@plt>
mov    $0x50,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x51,%edi
call   1030 <putchar@plt>
mov    $0x51,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x52,%edi
call   1030 <putchar@plt>
mov    $0x52,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x53,%edi
call   1030 <putchar@plt>
mov    $0x53,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x54,%edi
call   1030 <putchar@plt>
mov    $0x54,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x55,%edi
call   1030 <putchar@plt>
mov    $0x55,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x56,%edi
call   1030 <putchar@plt>
mov    $0x56,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x57,%edi
call   1030 <putchar@plt>
mov    $0x57,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x59,%edi
call   1030 <putchar@plt>
mov    $0x59,%edi
call   1040 <putchar_unlocked@plt>
mov    $0x5a,%edi
call   1030 <putchar@plt>
mov    $0x5a,%edi
call   1040 <putchar_unlocked@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 65, i8* %3
br label %4
4: ; preds = %13, %0
%5 = load i8, i8* %3
%6 = sext i8 %5 to i32
%7 = icmp sle i32 %6, 90
br i1 %7, label %8, label %16
8: ; preds = %4
%9 = load i8, i8* %3
%10 = call i32 @putchar(i8 signext %9)
%11 = load i8, i8* %3
%12 = call i32 @putchar_unlocked(i8 signext %11)
br label %13
13: ; preds = %8
%14 = load i8, i8* %3
%15 = add i8 %14, 1
store i8 %15, i8* %3
br label %4
16: ; preds = %4
%17 = call i32 @putchar(i8 signext 10)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @putchar(i8 signext 65)
%2 = tail call i32 @putchar_unlocked(i8 signext 65)
%3 = tail call i32 @putchar(i8 signext 66)
%4 = tail call i32 @putchar_unlocked(i8 signext 66)
%5 = tail call i32 @putchar(i8 signext 67)
%6 = tail call i32 @putchar_unlocked(i8 signext 67)
%7 = tail call i32 @putchar(i8 signext 68)
%8 = tail call i32 @putchar_unlocked(i8 signext 68)
%9 = tail call i32 @putchar(i8 signext 69)
%10 = tail call i32 @putchar_unlocked(i8 signext 69)
%11 = tail call i32 @putchar(i8 signext 70)
%12 = tail call i32 @putchar_unlocked(i8 signext 70)
%13 = tail call i32 @putchar(i8 signext 71)
%14 = tail call i32 @putchar_unlocked(i8 signext 71)
%15 = tail call i32 @putchar(i8 signext 72)
%16 = tail call i32 @putchar_unlocked(i8 signext 72)
%17 = tail call i32 @putchar(i8 signext 73)
%18 = tail call i32 @putchar_unlocked(i8 signext 73)
%19 = tail call i32 @putchar(i8 signext 74)
%20 = tail call i32 @putchar_unlocked(i8 signext 74)
%21 = tail call i32 @putchar(i8 signext 75)
%22 = tail call i32 @putchar_unlocked(i8 signext 75)
%23 = tail call i32 @putchar(i8 signext 76)
%24 = tail call i32 @putchar_unlocked(i8 signext 76)
%25 = tail call i32 @putchar(i8 signext 77)
%26 = tail call i32 @putchar_unlocked(i8 signext 77)
%27 = tail call i32 @putchar(i8 signext 78)
%28 = tail call i32 @putchar_unlocked(i8 signext 78)
%29 = tail call i32 @putchar(i8 signext 79)
%30 = tail call i32 @putchar_unlocked(i8 signext 79)
%31 = tail call i32 @putchar(i8 signext 80)
%32 = tail call i32 @putchar_unlocked(i8 signext 80)
%33 = tail call i32 @putchar(i8 signext 81)
%34 = tail call i32 @putchar_unlocked(i8 signext 81)
%35 = tail call i32 @putchar(i8 signext 82)
%36 = tail call i32 @putchar_unlocked(i8 signext 82)
%37 = tail call i32 @putchar(i8 signext 83)
%38 = tail call i32 @putchar_unlocked(i8 signext 83)
%39 = tail call i32 @putchar(i8 signext 84)
%40 = tail call i32 @putchar_unlocked(i8 signext 84)
%41 = tail call i32 @putchar(i8 signext 85)
%42 = tail call i32 @putchar_unlocked(i8 signext 85)
%43 = tail call i32 @putchar(i8 signext 86)
%44 = tail call i32 @putchar_unlocked(i8 signext 86)
%45 = tail call i32 @putchar(i8 signext 87)
%46 = tail call i32 @putchar_unlocked(i8 signext 87)
%47 = tail call i32 @putchar(i8 signext 88)
%48 = tail call i32 @putchar_unlocked(i8 signext 88)
%49 = tail call i32 @putchar(i8 signext 89)
%50 = tail call i32 @putchar_unlocked(i8 signext 89)
%51 = tail call i32 @putchar(i8 signext 90)
%52 = tail call i32 @putchar_unlocked(i8 signext 90)
%53 = tail call i32 @putchar(i8 signext 10)
ret i32 0
}