#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 /*<<< orphan*/ printf(char *, int);
int main(int argc, const char **argv) {
  printf("isalnum('a') = %i\n", isalnum('a'));
  printf("isalnum('A') = %i\n", isalnum('A'));
  printf("isalnum('z') = %i\n", isalnum('z'));
  printf("isalnum('Z') = %i\n", isalnum('Z'));
  printf("isalnum('g') = %i\n", isalnum('g'));
  printf("isalnum('0') = %i\n", isalnum('0'));
  printf("isalnum('9') = %i\n", isalnum('9'));
  printf("isalnum('5') = %i\n", isalnum('5'));
  printf("isalnum(5) = %i\n", isalnum(5));
  printf("isalnum('\t') = %i\n", isalnum('\t'));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x61,%edi
call   1040 <isalnum@plt>
mov    %eax,%esi
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
mov    $0x41,%edi
call   1040 <isalnum@plt>
mov    %eax,%esi
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
mov    $0x7a,%edi
call   1040 <isalnum@plt>
mov    %eax,%esi
lea    0xeb4(%rip),%rdi
call   1030 <printf@plt>
mov    $0x5a,%edi
call   1040 <isalnum@plt>
mov    %eax,%esi
lea    0xeaf(%rip),%rdi
call   1030 <printf@plt>
mov    $0x67,%edi
call   1040 <isalnum@plt>
mov    %eax,%esi
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
mov    $0x30,%edi
call   1040 <isalnum@plt>
mov    %eax,%esi
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x39,%edi
call   1040 <isalnum@plt>
mov    %eax,%esi
lea    0xea0(%rip),%rdi
call   1030 <printf@plt>
mov    $0x35,%edi
call   1040 <isalnum@plt>
mov    %eax,%esi
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
mov    $0x5,%edi
call   1040 <isalnum@plt>
mov    %eax,%esi
lea    0xe96(%rip),%rdi
call   1030 <printf@plt>
mov    $0x9,%edi
call   1040 <isalnum@plt>
mov    %eax,%esi
lea    0xe8f(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x61,%edi
call   1040 <isalnum@plt>
lea    0xece(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x41,%edi
call   1040 <isalnum@plt>
lea    0xec9(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x7a,%edi
call   1040 <isalnum@plt>
lea    0xec4(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x5a,%edi
call   1040 <isalnum@plt>
lea    0xebf(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x67,%edi
call   1040 <isalnum@plt>
lea    0xeba(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x30,%edi
call   1040 <isalnum@plt>
lea    0xeb5(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x39,%edi
call   1040 <isalnum@plt>
lea    0xeb0(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x35,%edi
call   1040 <isalnum@plt>
lea    0xeab(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x5,%edi
call   1040 <isalnum@plt>
lea    0xea6(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x9,%edi
call   1040 <isalnum@plt>
lea    0xe9f(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"isalnum('a') = %i\0A\00"
@.str.1 = [19 x i8] c"isalnum('A') = %i\0A\00"
@.str.2 = [19 x i8] c"isalnum('z') = %i\0A\00"
@.str.3 = [19 x i8] c"isalnum('Z') = %i\0A\00"
@.str.4 = [19 x i8] c"isalnum('g') = %i\0A\00"
@.str.5 = [19 x i8] c"isalnum('0') = %i\0A\00"
@.str.6 = [19 x i8] c"isalnum('9') = %i\0A\00"
@.str.7 = [19 x i8] c"isalnum('5') = %i\0A\00"
@.str.8 = [17 x i8] c"isalnum(5) = %i\0A\00"
@.str.9 = [19 x i8] c"isalnum('\09') = %i\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 @isalnum(i8 signext 97)
%6 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = call i32 @isalnum(i8 signext 65)
%8 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 %7)
%9 = call i32 @isalnum(i8 signext 122)
%10 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 %9)
%11 = call i32 @isalnum(i8 signext 90)
%12 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i32 %11)
%13 = call i32 @isalnum(i8 signext 103)
%14 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %13)
%15 = call i32 @isalnum(i8 signext 48)
%16 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 %15)
%17 = call i32 @isalnum(i8 signext 57)
%18 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i32 %17)
%19 = call i32 @isalnum(i8 signext 53)
%20 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i32 %19)
%21 = call i32 @isalnum(i8 signext 5)
%22 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i32 %21)
%23 = call i32 @isalnum(i8 signext 9)
%24 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i32 %23)
ret i32 0
}

LLVM IR (-O2):
@.str = [19 x i8] c"isalnum('a') = %i\0A\00"
@.str.1 = [19 x i8] c"isalnum('A') = %i\0A\00"
@.str.2 = [19 x i8] c"isalnum('z') = %i\0A\00"
@.str.3 = [19 x i8] c"isalnum('Z') = %i\0A\00"
@.str.4 = [19 x i8] c"isalnum('g') = %i\0A\00"
@.str.5 = [19 x i8] c"isalnum('0') = %i\0A\00"
@.str.6 = [19 x i8] c"isalnum('9') = %i\0A\00"
@.str.7 = [19 x i8] c"isalnum('5') = %i\0A\00"
@.str.8 = [17 x i8] c"isalnum(5) = %i\0A\00"
@.str.9 = [19 x i8] c"isalnum('\09') = %i\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @isalnum(i8 signext 97)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = tail call i32 @isalnum(i8 signext 65)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%7 = tail call i32 @isalnum(i8 signext 122)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 %7)
%9 = tail call i32 @isalnum(i8 signext 90)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i32 %9)
%11 = tail call i32 @isalnum(i8 signext 103)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %11)
%13 = tail call i32 @isalnum(i8 signext 48)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 %13)
%15 = tail call i32 @isalnum(i8 signext 57)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i32 %15)
%17 = tail call i32 @isalnum(i8 signext 53)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i32 %17)
%19 = tail call i32 @isalnum(i8 signext 5)
%20 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i32 %19)
%21 = tail call i32 @isalnum(i8 signext 9)
%22 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i32 %21)
ret i32 0
}