#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) {
  int i = 48;
  char l;
  while (i < 58) {
    putchar(i);
    i++;
  }
  l = 'a';
  while (l <= 'f') {
    putchar(l);
    l++;
  }
  putchar('\n');
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x30,-0x8(%rbp)
cmpl   $0x3a,-0x8(%rbp)
jge    1149 <main+0x39>
mov    -0x8(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
movb   $0x61,-0x9(%rbp)
movsbl -0x9(%rbp),%eax
cmp    $0x66,%eax
jg     1170 <main+0x60>
movsbl -0x9(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x9(%rbp),%al
add    $0x1,%al
mov    %al,-0x9(%rbp)
jmp    114d <main+0x3d>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x30,%edi
call   1030 <putchar@plt>
mov    $0x31,%edi
call   1030 <putchar@plt>
mov    $0x32,%edi
call   1030 <putchar@plt>
mov    $0x33,%edi
call   1030 <putchar@plt>
mov    $0x34,%edi
call   1030 <putchar@plt>
mov    $0x35,%edi
call   1030 <putchar@plt>
mov    $0x36,%edi
call   1030 <putchar@plt>
mov    $0x37,%edi
call   1030 <putchar@plt>
mov    $0x38,%edi
call   1030 <putchar@plt>
mov    $0x39,%edi
call   1030 <putchar@plt>
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    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8
store i32 0, i32* %1
store i32 48, i32* %2
br label %4
4: ; preds = %7, %0
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 58
br i1 %6, label %7, label %13
7: ; preds = %4
%8 = load i32, i32* %2
%9 = trunc i32 %8 to i8
%10 = call i32 @putchar(i8 signext %9)
%11 = load i32, i32* %2
%12 = add nsw i32 %11, 1
store i32 %12, i32* %2
br label %4
13: ; preds = %4
store i8 97, i8* %3
br label %14
14: ; preds = %18, %13
%15 = load i8, i8* %3
%16 = sext i8 %15 to i32
%17 = icmp sle i32 %16, 102
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 48)
%2 = tail call i32 @putchar(i8 signext 49)
%3 = tail call i32 @putchar(i8 signext 50)
%4 = tail call i32 @putchar(i8 signext 51)
%5 = tail call i32 @putchar(i8 signext 52)
%6 = tail call i32 @putchar(i8 signext 53)
%7 = tail call i32 @putchar(i8 signext 54)
%8 = tail call i32 @putchar(i8 signext 55)
%9 = tail call i32 @putchar(i8 signext 56)
%10 = tail call i32 @putchar(i8 signext 57)
%11 = tail call i32 @putchar(i8 signext 97)
%12 = tail call i32 @putchar(i8 signext 98)
%13 = tail call i32 @putchar(i8 signext 99)
%14 = tail call i32 @putchar(i8 signext 100)
%15 = tail call i32 @putchar(i8 signext 101)
%16 = tail call i32 @putchar(i8 signext 102)
%17 = tail call i32 @putchar(i8 signext 10)
ret i32 0
}