#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) {
  char ch;
  int n;
  for (n = 0; n <= 9; n++) {
    putchar('0' + n);
  }
  for (ch = 'a'; ch <= 'f'; ch++) {
    putchar(ch);
  }
  putchar('\n');
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x9,-0xc(%rbp)
jg     114c <main+0x3c>
mov    -0xc(%rbp),%eax
add    $0x30,%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1126 <main+0x16>
movb   $0x61,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x66,%eax
jg     1173 <main+0x63>
movsbl -0x5(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x5(%rbp),%al
add    $0x1,%al
mov    %al,-0x5(%rbp)
jmp    1150 <main+0x40>
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 i8
%3 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %3
br label %4
4: ; preds = %12, %0
%5 = load i32, i32* %3
%6 = icmp sle i32 %5, 9
br i1 %6, label %7, label %15
7: ; preds = %4
%8 = load i32, i32* %3
%9 = add nsw i32 48, %8
%10 = trunc i32 %9 to i8
%11 = call i32 @putchar(i8 signext %10)
br label %12
12: ; preds = %7
%13 = load i32, i32* %3
%14 = add nsw i32 %13, 1
store i32 %14, i32* %3
br label %4
15: ; preds = %4
store i8 97, i8* %2
br label %16
16: ; preds = %23, %15
%17 = load i8, i8* %2
%18 = sext i8 %17 to i32
%19 = icmp sle i32 %18, 102
br i1 %19, label %20, label %26
20: ; preds = %16
%21 = load i8, i8* %2
%22 = call i32 @putchar(i8 signext %21)
br label %23
23: ; preds = %20
%24 = load i8, i8* %2
%25 = add i8 %24, 1
store i8 %25, i8* %2
br label %16
26: ; preds = %16
%27 = 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
}