#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 isalnum(char);
int isalpha(char);
int isdigit(char);
int islower(char);
int isupper(char);
int isxdigit(char);
int /*<<< orphan*/ printf(char *, int);
int tolower(char);
int toupper(char);
int main() {
  printf("%i\n", isalnum('$'));
  printf("%i\n", isalnum('a'));
  printf("%i\n", isalpha('a'));
  printf("%i\n", isalpha('1'));
  printf("%i\n", isdigit('1'));
  printf("%i\n", isdigit('h'));
  printf("%i\n", isxdigit('h'));
  printf("%i\n", isxdigit('10'));
  printf("%i\n", islower('h'));
  printf("%i\n", islower('H'));
  printf("%i\n", isupper('h'));
  printf("%i\n", isupper('H'));
  printf("%c\n", tolower('H'));
  printf("%c\n", toupper('b'));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x24,%edi
call   1070 <isalnum@plt>
mov    %eax,%esi
lea    0xe4e(%rip),%rdi
call   1060 <printf@plt>
mov    $0x61,%edi
call   1070 <isalnum@plt>
mov    %eax,%esi
lea    0xe36(%rip),%rdi
call   1060 <printf@plt>
mov    $0x61,%edi
call   1090 <isalpha@plt>
mov    %eax,%esi
lea    0xe1e(%rip),%rdi
call   1060 <printf@plt>
mov    $0x31,%edi
call   1090 <isalpha@plt>
mov    %eax,%esi
lea    0xe06(%rip),%rdi
call   1060 <printf@plt>
mov    $0x31,%edi
call   1030 <isdigit@plt>
mov    %eax,%esi
lea    0xdee(%rip),%rdi
call   1060 <printf@plt>
mov    $0x68,%edi
call   1030 <isdigit@plt>
mov    %eax,%esi
lea    0xdd6(%rip),%rdi
call   1060 <printf@plt>
mov    $0x68,%edi
call   10b0 <isxdigit@plt>
mov    %eax,%esi
lea    0xdbe(%rip),%rdi
call   1060 <printf@plt>
mov    $0x30,%edi
call   10b0 <isxdigit@plt>
mov    %eax,%esi
lea    0xda6(%rip),%rdi
call   1060 <printf@plt>
mov    $0x68,%edi
call   1040 <islower@plt>
mov    %eax,%esi
lea    0xd8e(%rip),%rdi
call   1060 <printf@plt>
mov    $0x48,%edi
call   1040 <islower@plt>
mov    %eax,%esi
lea    0xd76(%rip),%rdi
call   1060 <printf@plt>
mov    $0x68,%edi
call   10a0 <isupper@plt>
mov    %eax,%esi
lea    0xd5e(%rip),%rdi
call   1060 <printf@plt>
mov    $0x48,%edi
call   10a0 <isupper@plt>
mov    %eax,%esi
lea    0xd46(%rip),%rdi
call   1060 <printf@plt>
mov    $0x48,%edi
call   1080 <tolower@plt>
mov    %eax,%esi
lea    0xd32(%rip),%rdi
call   1060 <printf@plt>
mov    $0x62,%edi
call   1050 <toupper@plt>
mov    %eax,%esi
lea    0xd1a(%rip),%rdi
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x24,%edi
call   1070 <isalnum@plt>
lea    0xe5e(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
call   1060 <printf@plt>
mov    $0x61,%edi
call   1070 <isalnum@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1060 <printf@plt>
mov    $0x61,%edi
call   1090 <isalpha@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1060 <printf@plt>
mov    $0x31,%edi
call   1090 <isalpha@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1060 <printf@plt>
mov    $0x31,%edi
call   1030 <isdigit@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1060 <printf@plt>
mov    $0x68,%edi
call   1030 <isdigit@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1060 <printf@plt>
mov    $0x68,%edi
call   10b0 <isxdigit@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1060 <printf@plt>
mov    $0x30,%edi
call   10b0 <isxdigit@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1060 <printf@plt>
mov    $0x68,%edi
call   1040 <islower@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1060 <printf@plt>
mov    $0x48,%edi
call   1040 <islower@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1060 <printf@plt>
mov    $0x68,%edi
call   10a0 <isupper@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1060 <printf@plt>
mov    $0x48,%edi
call   10a0 <isupper@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1060 <printf@plt>
mov    $0x48,%edi
call   1080 <tolower@plt>
lea    0xd6b(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
call   1060 <printf@plt>
mov    $0x62,%edi
call   1050 <toupper@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1060 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%i\0A\00"
@.str.1 = [4 x i8] c"%c\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @isalnum(i8 signext 36)
%3 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = call i32 @isalnum(i8 signext 97)
%5 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = call i32 @isalpha(i8 signext 97)
%7 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = call i32 @isalpha(i8 signext 49)
%9 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %8)
%10 = call i32 @isdigit(i8 signext 49)
%11 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = call i32 @isdigit(i8 signext 104)
%13 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %12)
%14 = call i32 @isxdigit(i8 signext 104)
%15 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %14)
%16 = call i32 @isxdigit(i8 signext 48)
%17 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %16)
%18 = call i32 @islower(i8 signext 104)
%19 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %18)
%20 = call i32 @islower(i8 signext 72)
%21 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %20)
%22 = call i32 @isupper(i8 signext 104)
%23 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %22)
%24 = call i32 @isupper(i8 signext 72)
%25 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %24)
%26 = call i32 @tolower(i8 signext 72)
%27 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %26)
%28 = call i32 @toupper(i8 signext 98)
%29 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %28)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%i\0A\00"
@.str.1 = [4 x i8] c"%c\0A\00"
define i32 @main() {
%1 = tail call i32 @isalnum(i8 signext 36)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 @isalnum(i8 signext 97)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = tail call i32 @isalpha(i8 signext 97)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = tail call i32 @isalpha(i8 signext 49)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = tail call i32 @isdigit(i8 signext 49)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %9)
%11 = tail call i32 @isdigit(i8 signext 104)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %11)
%13 = tail call i32 @isxdigit(i8 signext 104)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %13)
%15 = tail call i32 @isxdigit(i8 signext 48)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %15)
%17 = tail call i32 @islower(i8 signext 104)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %17)
%19 = tail call i32 @islower(i8 signext 72)
%20 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %19)
%21 = tail call i32 @isupper(i8 signext 104)
%22 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %21)
%23 = tail call i32 @isupper(i8 signext 72)
%24 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %23)
%25 = tail call i32 @tolower(i8 signext 72)
%26 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %25)
%27 = tail call i32 @toupper(i8 signext 98)
%28 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %27)
ret i32 0
}