#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*/ my_char(char);
void my_alpha() {
  char c;
  for (c = 'a'; c < 'z'; ++c)
    my_char(c);
}


x86 assembly (clang, -O0):
<my_alpha>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movb   $0x61,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x7a,%eax
jge    113f <my_alpha+0x2f>
movsbl -0x1(%rbp),%edi
call   1030 <my_char@plt>
mov    -0x1(%rbp),%al
add    $0x1,%al
mov    %al,-0x1(%rbp)
jmp    111c <my_alpha+0xc>
add    $0x10,%rsp
pop    %rbp
ret

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

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

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