#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 */
typedef int /*<<< orphan*/ ch;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, char, char, ...);
int main() {
  char ch = 'A';
  printf("The character %c has the character code %d and his size is %zu.\n",
         ch, ch, sizeof(ch));
  for (; ch <= 'Z'; ++ch)
    printf("%2c - %2d\n", ch, ch);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x41,-0x5(%rbp)
mov    -0x5(%rbp),%al
lea    0xed3(%rip),%rdi
mov    $0x1,%ecx
movsbl %al,%esi
movsbl -0x5(%rbp),%edx
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x5a,%eax
jg     1172 <main+0x62>
mov    -0x5(%rbp),%al
lea    0xeea(%rip),%rdi
movsbl %al,%esi
movsbl -0x5(%rbp),%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x5(%rbp),%al
add    $0x1,%al
mov    %al,-0x5(%rbp)
jmp    1140 <main+0x30>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rdi
mov    $0x1,%ecx
mov    $0x41,%esi
mov    $0x41,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf0c(%rip),%rbx
mov    %rbx,%rdi
mov    $0x41,%esi
mov    $0x41,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x42,%esi
mov    $0x42,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x43,%esi
mov    $0x43,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x44,%esi
mov    $0x44,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x45,%esi
mov    $0x45,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x46,%esi
mov    $0x46,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x47,%esi
mov    $0x47,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x48,%esi
mov    $0x48,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x49,%esi
mov    $0x49,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x4a,%esi
mov    $0x4a,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x4b,%esi
mov    $0x4b,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x4c,%esi
mov    $0x4c,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x4d,%esi
mov    $0x4d,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x4e,%esi
mov    $0x4e,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x4f,%esi
mov    $0x4f,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x50,%esi
mov    $0x50,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x51,%esi
mov    $0x51,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x52,%esi
mov    $0x52,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x53,%esi
mov    $0x53,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x54,%esi
mov    $0x54,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x55,%esi
mov    $0x55,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x56,%esi
mov    $0x56,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x57,%esi
mov    $0x57,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x58,%esi
mov    $0x58,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x59,%esi
mov    $0x59,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x5a,%esi
mov    $0x5a,%edx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [65 x i8] c"The character %c has the character code %d and his size is %zu.\0A\00"
@.str.1 = [11 x i8] c"%2c - %2d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
store i8 65, i8* %2
%3 = load i8, i8* %2
%4 = load i8, i8* %2
%5 = call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0), i8 signext %3, i8 signext %4, i64 1)
br label %6
6: ; preds = %14, %0
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = icmp sle i32 %8, 90
br i1 %9, label %10, label %17
10: ; preds = %6
%11 = load i8, i8* %2
%12 = load i8, i8* %2
%13 = call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext %11, i8 signext %12)
br label %14
14: ; preds = %10
%15 = load i8, i8* %2
%16 = add i8 %15, 1
store i8 %16, i8* %2
br label %6
17: ; preds = %6
%18 = load i32, i32* %1
ret i32 %18
}

LLVM IR (-O2):
@.str = [65 x i8] c"The character %c has the character code %d and his size is %zu.\0A\00"
@.str.1 = [11 x i8] c"%2c - %2d\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0), i8 signext 65, i8 signext 65, i64 1)
%2 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 65, i8 signext 65)
%3 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 66, i8 signext 66)
%4 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 67, i8 signext 67)
%5 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 68, i8 signext 68)
%6 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 69, i8 signext 69)
%7 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 70, i8 signext 70)
%8 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 71, i8 signext 71)
%9 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 72, i8 signext 72)
%10 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 73, i8 signext 73)
%11 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 74, i8 signext 74)
%12 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 75, i8 signext 75)
%13 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 76, i8 signext 76)
%14 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 77, i8 signext 77)
%15 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 78, i8 signext 78)
%16 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 79, i8 signext 79)
%17 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 80, i8 signext 80)
%18 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 81, i8 signext 81)
%19 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 82, i8 signext 82)
%20 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 83, i8 signext 83)
%21 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 84, i8 signext 84)
%22 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 85, i8 signext 85)
%23 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 86, i8 signext 86)
%24 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 87, i8 signext 87)
%25 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 88, i8 signext 88)
%26 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 89, i8 signext 89)
%27 = tail call i32 (i8*, i8, i8, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 90, i8 signext 90)
ret i32 0
}