#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);
void print_alphabet_x10(void) {
  char a = 'a';
  int temp = 0;
  while (temp <= 9) {
    a = 'a';
    while (a <= 'z') {
      _putchar(a);
      a++;
    }
    temp++;
    _putchar('\n');
  }
}


x86 assembly (clang, -O0):
<print_alphabet_x10>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movb   $0x61,-0x1(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x9,-0x8(%rbp)
jg     116c <print_alphabet_x10+0x5c>
movb   $0x61,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x7a,%eax
jg     1154 <print_alphabet_x10+0x44>
movsbl -0x1(%rbp),%edi
call   1030 <_putchar@plt>
mov    -0x1(%rbp),%al
add    $0x1,%al
mov    %al,-0x1(%rbp)
jmp    1131 <print_alphabet_x10+0x21>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    $0xa,%edi
call   1030 <_putchar@plt>
jmp    1123 <print_alphabet_x10+0x13>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_alphabet_x10>:
push   %rbx
mov    $0xa,%ebx
cs nopw 0x0(%rax,%rax,1)
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    $0x67,%edi
call   1030 <_putchar@plt>
mov    $0x68,%edi
call   1030 <_putchar@plt>
mov    $0x69,%edi
call   1030 <_putchar@plt>
mov    $0x6a,%edi
call   1030 <_putchar@plt>
mov    $0x6b,%edi
call   1030 <_putchar@plt>
mov    $0x6c,%edi
call   1030 <_putchar@plt>
mov    $0x6d,%edi
call   1030 <_putchar@plt>
mov    $0x6e,%edi
call   1030 <_putchar@plt>
mov    $0x6f,%edi
call   1030 <_putchar@plt>
mov    $0x70,%edi
call   1030 <_putchar@plt>
mov    $0x71,%edi
call   1030 <_putchar@plt>
mov    $0x72,%edi
call   1030 <_putchar@plt>
mov    $0x73,%edi
call   1030 <_putchar@plt>
mov    $0x74,%edi
call   1030 <_putchar@plt>
mov    $0x75,%edi
call   1030 <_putchar@plt>
mov    $0x76,%edi
call   1030 <_putchar@plt>
mov    $0x77,%edi
call   1030 <_putchar@plt>
mov    $0x78,%edi
call   1030 <_putchar@plt>
mov    $0x79,%edi
call   1030 <_putchar@plt>
mov    $0x7a,%edi
call   1030 <_putchar@plt>
mov    $0xa,%edi
call   1030 <_putchar@plt>
add    $0xffffffff,%ebx
jne    1120 <print_alphabet_x10+0x10>
pop    %rbx
ret

LLVM IR (-O0):
define void @print_alphabet_x10() {
%1 = alloca i8
%2 = alloca i32
store i8 97, i8* %1
store i32 0, i32* %2
br label %3
3: ; preds = %16, %0
%4 = load i32, i32* %2
%5 = icmp sle i32 %4, 9
br i1 %5, label %6, label %20
6: ; preds = %3
store i8 97, i8* %1
br label %7
7: ; preds = %11, %6
%8 = load i8, i8* %1
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 122
br i1 %10, label %11, label %16
11: ; preds = %7
%12 = load i8, i8* %1
%13 = call i32 @_putchar(i8 signext %12)
%14 = load i8, i8* %1
%15 = add i8 %14, 1
store i8 %15, i8* %1
br label %7
16: ; preds = %7
%17 = load i32, i32* %2
%18 = add nsw i32 %17, 1
store i32 %18, i32* %2
%19 = call i32 @_putchar(i8 signext 10)
br label %3
20: ; preds = %3
ret void
}

LLVM IR (-O2):
define void @print_alphabet_x10() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %29, %1 ]
%3 = tail call i32 @_putchar(i8 signext 97)
%4 = tail call i32 @_putchar(i8 signext 98)
%5 = tail call i32 @_putchar(i8 signext 99)
%6 = tail call i32 @_putchar(i8 signext 100)
%7 = tail call i32 @_putchar(i8 signext 101)
%8 = tail call i32 @_putchar(i8 signext 102)
%9 = tail call i32 @_putchar(i8 signext 103)
%10 = tail call i32 @_putchar(i8 signext 104)
%11 = tail call i32 @_putchar(i8 signext 105)
%12 = tail call i32 @_putchar(i8 signext 106)
%13 = tail call i32 @_putchar(i8 signext 107)
%14 = tail call i32 @_putchar(i8 signext 108)
%15 = tail call i32 @_putchar(i8 signext 109)
%16 = tail call i32 @_putchar(i8 signext 110)
%17 = tail call i32 @_putchar(i8 signext 111)
%18 = tail call i32 @_putchar(i8 signext 112)
%19 = tail call i32 @_putchar(i8 signext 113)
%20 = tail call i32 @_putchar(i8 signext 114)
%21 = tail call i32 @_putchar(i8 signext 115)
%22 = tail call i32 @_putchar(i8 signext 116)
%23 = tail call i32 @_putchar(i8 signext 117)
%24 = tail call i32 @_putchar(i8 signext 118)
%25 = tail call i32 @_putchar(i8 signext 119)
%26 = tail call i32 @_putchar(i8 signext 120)
%27 = tail call i32 @_putchar(i8 signext 121)
%28 = tail call i32 @_putchar(i8 signext 122)
%29 = add nuw nsw i32 %2, 1
%30 = tail call i32 @_putchar(i8 signext 10)
%31 = icmp eq i32 %29, 10
br i1 %31, label %32, label %1
32: ; preds = %1
ret void
}