#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 *, char, int);
int main() {
  char ch;
  int i;
  ch = 96;
  for (i = 97; i <= 122; i++) {
    ch++;
    printf("%c - %d\n", ch, i);
  }
  ch = 64;
  for (i = 65; i <= 90; i++) {
    ch++;
    printf("%c - %d\n", ch, i);
  }
  ch = 47;
  for (i = 48; i <= 57; i++) {
    ch++;
    printf("%c - %d\n", ch, i);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x60,-0x5(%rbp)
movl   $0x61,-0xc(%rbp)
cmpl   $0x7a,-0xc(%rbp)
jg     115f <main+0x4f>
mov    -0x5(%rbp),%al
add    $0x1,%al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
mov    -0xc(%rbp),%edx
lea    0xeb7(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    112a <main+0x1a>
movb   $0x40,-0x5(%rbp)
movl   $0x41,-0xc(%rbp)
cmpl   $0x5a,-0xc(%rbp)
jg     119f <main+0x8f>
mov    -0x5(%rbp),%al
add    $0x1,%al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
mov    -0xc(%rbp),%edx
lea    0xe77(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    116a <main+0x5a>
movb   $0x2f,-0x5(%rbp)
movl   $0x30,-0xc(%rbp)
cmpl   $0x39,-0xc(%rbp)
jg     11df <main+0xcf>
mov    -0x5(%rbp),%al
add    $0x1,%al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
mov    -0xc(%rbp),%edx
lea    0xe37(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11aa <main+0x9a>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    $0x61,%ebx
lea    0xee0(%rip),%r14
movsbl %bl,%esi
mov    %r14,%rdi
mov    %ebx,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x7b,%ebx
jne    1120 <main+0x10>
mov    $0x41,%ebx
lea    0xebf(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsbl %bl,%esi
mov    %r14,%rdi
mov    %ebx,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x5b,%ebx
jne    1150 <main+0x40>
lea    0xe94(%rip),%rbx
mov    %rbx,%rdi
mov    $0x30,%esi
mov    $0x30,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x31,%esi
mov    $0x31,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x32,%esi
mov    $0x32,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x33,%esi
mov    $0x33,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x34,%esi
mov    $0x34,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x35,%esi
mov    $0x35,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x36,%esi
mov    $0x36,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x37,%esi
mov    $0x37,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x38,%esi
mov    $0x38,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x39,%esi
mov    $0x39,%edx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%c - %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i32
store i32 0, i32* %1
store i8 96, i8* %2
store i32 97, i32* %3
br label %4
4: ; preds = %13, %0
%5 = load i32, i32* %3
%6 = icmp sle i32 %5, 122
br i1 %6, label %7, label %16
7: ; preds = %4
%8 = load i8, i8* %2
%9 = add i8 %8, 1
store i8 %9, i8* %2
%10 = load i8, i8* %2
%11 = load i32, i32* %3
%12 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8 signext %10, i32 %11)
br label %13
13: ; preds = %7
%14 = load i32, i32* %3
%15 = add nsw i32 %14, 1
store i32 %15, i32* %3
br label %4
16: ; preds = %4
store i8 64, i8* %2
store i32 65, i32* %3
br label %17
17: ; preds = %26, %16
%18 = load i32, i32* %3
%19 = icmp sle i32 %18, 90
br i1 %19, label %20, label %29
20: ; preds = %17
%21 = load i8, i8* %2
%22 = add i8 %21, 1
store i8 %22, i8* %2
%23 = load i8, i8* %2
%24 = load i32, i32* %3
%25 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8 signext %23, i32 %24)
br label %26
26: ; preds = %20
%27 = load i32, i32* %3
%28 = add nsw i32 %27, 1
store i32 %28, i32* %3
br label %17
29: ; preds = %17
store i8 47, i8* %2
store i32 48, i32* %3
br label %30
30: ; preds = %39, %29
%31 = load i32, i32* %3
%32 = icmp sle i32 %31, 57
br i1 %32, label %33, label %42
33: ; preds = %30
%34 = load i8, i8* %2
%35 = add i8 %34, 1
store i8 %35, i8* %2
%36 = load i8, i8* %2
%37 = load i32, i32* %3
%38 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8 signext %36, i32 %37)
br label %39
39: ; preds = %33
%40 = load i32, i32* %3
%41 = add nsw i32 %40, 1
store i32 %41, i32* %3
br label %30
42: ; preds = %30
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"%c - %d\0A\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 97, %0 ], [ %6, %1 ]
%3 = phi i8 [ 96, %0 ], [ %4, %1 ]
%4 = add nuw nsw i8 %3, 1
%5 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8 signext %4, i32 %2)
%6 = add nuw nsw i32 %2, 1
%7 = icmp eq i32 %6, 123
br i1 %7, label %8, label %1
8: ; preds = %1, %8
%9 = phi i32 [ %13, %8 ], [ 65, %1 ]
%10 = phi i8 [ %11, %8 ], [ 64, %1 ]
%11 = add nuw nsw i8 %10, 1
%12 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8 signext %11, i32 %9)
%13 = add nuw nsw i32 %9, 1
%14 = icmp eq i32 %13, 91
br i1 %14, label %15, label %8
15: ; preds = %8
%16 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8 signext 48, i32 48)
%17 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8 signext 49, i32 49)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8 signext 50, i32 50)
%19 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8 signext 51, i32 51)
%20 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8 signext 52, i32 52)
%21 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8 signext 53, i32 53)
%22 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8 signext 54, i32 54)
%23 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8 signext 55, i32 55)
%24 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8 signext 56, i32 56)
%25 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8 signext 57, i32 57)
ret i32 0
}