#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*/ ft_putchar(char);
void ft_print_reverse_alphabet(void) {
  char a;
  char z;
  z = 'z';
  a = 'a';
  while (z > a - 1) {
    ft_putchar(z);
    z--;
  }
}


x86 assembly (clang, -O0):
<ft_print_reverse_alphabet>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movb   $0x7a,-0x2(%rbp)
movb   $0x61,-0x1(%rbp)
movsbl -0x2(%rbp),%eax
movsbl -0x1(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jle    1149 <ft_print_reverse_alphabet+0x39>
movsbl -0x2(%rbp),%edi
call   1030 <ft_putchar@plt>
mov    -0x2(%rbp),%al
add    $0xff,%al
mov    %al,-0x2(%rbp)
jmp    1120 <ft_print_reverse_alphabet+0x10>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_print_reverse_alphabet>:
push   %rax
mov    $0x7a,%edi
call   1030 <ft_putchar@plt>
mov    $0x79,%edi
call   1030 <ft_putchar@plt>
mov    $0x78,%edi
call   1030 <ft_putchar@plt>
mov    $0x77,%edi
call   1030 <ft_putchar@plt>
mov    $0x76,%edi
call   1030 <ft_putchar@plt>
mov    $0x75,%edi
call   1030 <ft_putchar@plt>
mov    $0x74,%edi
call   1030 <ft_putchar@plt>
mov    $0x73,%edi
call   1030 <ft_putchar@plt>
mov    $0x72,%edi
call   1030 <ft_putchar@plt>
mov    $0x71,%edi
call   1030 <ft_putchar@plt>
mov    $0x70,%edi
call   1030 <ft_putchar@plt>
mov    $0x6f,%edi
call   1030 <ft_putchar@plt>
mov    $0x6e,%edi
call   1030 <ft_putchar@plt>
mov    $0x6d,%edi
call   1030 <ft_putchar@plt>
mov    $0x6c,%edi
call   1030 <ft_putchar@plt>
mov    $0x6b,%edi
call   1030 <ft_putchar@plt>
mov    $0x6a,%edi
call   1030 <ft_putchar@plt>
mov    $0x69,%edi
call   1030 <ft_putchar@plt>
mov    $0x68,%edi
call   1030 <ft_putchar@plt>
mov    $0x67,%edi
call   1030 <ft_putchar@plt>
mov    $0x66,%edi
call   1030 <ft_putchar@plt>
mov    $0x65,%edi
call   1030 <ft_putchar@plt>
mov    $0x64,%edi
call   1030 <ft_putchar@plt>
mov    $0x63,%edi
call   1030 <ft_putchar@plt>
mov    $0x62,%edi
call   1030 <ft_putchar@plt>
mov    $0x61,%edi
pop    %rax
jmp    1030 <ft_putchar@plt>

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

LLVM IR (-O2):
define void @ft_print_reverse_alphabet() {
%1 = tail call i32 @ft_putchar(i8 signext 122)
%2 = tail call i32 @ft_putchar(i8 signext 121)
%3 = tail call i32 @ft_putchar(i8 signext 120)
%4 = tail call i32 @ft_putchar(i8 signext 119)
%5 = tail call i32 @ft_putchar(i8 signext 118)
%6 = tail call i32 @ft_putchar(i8 signext 117)
%7 = tail call i32 @ft_putchar(i8 signext 116)
%8 = tail call i32 @ft_putchar(i8 signext 115)
%9 = tail call i32 @ft_putchar(i8 signext 114)
%10 = tail call i32 @ft_putchar(i8 signext 113)
%11 = tail call i32 @ft_putchar(i8 signext 112)
%12 = tail call i32 @ft_putchar(i8 signext 111)
%13 = tail call i32 @ft_putchar(i8 signext 110)
%14 = tail call i32 @ft_putchar(i8 signext 109)
%15 = tail call i32 @ft_putchar(i8 signext 108)
%16 = tail call i32 @ft_putchar(i8 signext 107)
%17 = tail call i32 @ft_putchar(i8 signext 106)
%18 = tail call i32 @ft_putchar(i8 signext 105)
%19 = tail call i32 @ft_putchar(i8 signext 104)
%20 = tail call i32 @ft_putchar(i8 signext 103)
%21 = tail call i32 @ft_putchar(i8 signext 102)
%22 = tail call i32 @ft_putchar(i8 signext 101)
%23 = tail call i32 @ft_putchar(i8 signext 100)
%24 = tail call i32 @ft_putchar(i8 signext 99)
%25 = tail call i32 @ft_putchar(i8 signext 98)
%26 = tail call i32 @ft_putchar(i8 signext 97)
ret void
}