#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*/ print_char(int);
void print_tebahpla(void) {
  int i = 122;
  while (i >= 97) {
    print_char(i);
    i--;
  }
}


x86 assembly (clang, -O0):
<print_tebahpla>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x7a,-0x4(%rbp)
cmpl   $0x61,-0x4(%rbp)
jl     113f <print_tebahpla+0x2f>
mov    -0x4(%rbp),%edi
call   1030 <print_char@plt>
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
jmp    111f <print_tebahpla+0xf>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @print_tebahpla() {
%1 = alloca i32
store i32 122, i32* %1
br label %2
2: ; preds = %5, %0
%3 = load i32, i32* %1
%4 = icmp sge i32 %3, 97
br i1 %4, label %5, label %10
5: ; preds = %2
%6 = load i32, i32* %1
%7 = call i32 @print_char(i32 %6)
%8 = load i32, i32* %1
%9 = add nsw i32 %8, -1
store i32 %9, i32* %1
br label %2
10: ; preds = %2
ret void
}

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