#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(long);
long main() {
  long g, c, h;
  for (g = 65; g < 91; g = g + 1) {
    putchar(g);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movq   $0x41,-0x10(%rbp)
cmpq   $0x5b,-0x10(%rbp)
jge    1145 <main+0x35>
mov    -0x10(%rbp),%rdi
call   1030 <putchar@plt>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1120 <main+0x10>
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
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
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
define i64 @main() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
store i64 65, i64* %2
br label %5
5: ; preds = %11, %0
%6 = load i64, i64* %2
%7 = icmp slt i64 %6, 91
br i1 %7, label %8, label %14
8: ; preds = %5
%9 = load i64, i64* %2
%10 = call i32 @putchar(i64 %9)
br label %11
11: ; preds = %8
%12 = load i64, i64* %2
%13 = add nsw i64 %12, 1
store i64 %13, i64* %2
br label %5
14: ; preds = %5
%15 = load i64, i64* %1
ret i64 %15
}

LLVM IR (-O2):
define i64 @main() {
%1 = tail call i32 @putchar(i64 65)
%2 = tail call i32 @putchar(i64 66)
%3 = tail call i32 @putchar(i64 67)
%4 = tail call i32 @putchar(i64 68)
%5 = tail call i32 @putchar(i64 69)
%6 = tail call i32 @putchar(i64 70)
%7 = tail call i32 @putchar(i64 71)
%8 = tail call i32 @putchar(i64 72)
%9 = tail call i32 @putchar(i64 73)
%10 = tail call i32 @putchar(i64 74)
%11 = tail call i32 @putchar(i64 75)
%12 = tail call i32 @putchar(i64 76)
%13 = tail call i32 @putchar(i64 77)
%14 = tail call i32 @putchar(i64 78)
%15 = tail call i32 @putchar(i64 79)
%16 = tail call i32 @putchar(i64 80)
%17 = tail call i32 @putchar(i64 81)
%18 = tail call i32 @putchar(i64 82)
%19 = tail call i32 @putchar(i64 83)
%20 = tail call i32 @putchar(i64 84)
%21 = tail call i32 @putchar(i64 85)
%22 = tail call i32 @putchar(i64 86)
%23 = tail call i32 @putchar(i64 87)
%24 = tail call i32 @putchar(i64 88)
%25 = tail call i32 @putchar(i64 89)
%26 = tail call i32 @putchar(i64 90)
ret i64 undef
}