#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 */
scalar_t__ isalnum(char);
scalar_t__ isalpha(char);
scalar_t__ isdigit(char);
scalar_t__ isxdigit(char);
int /*<<< orphan*/ printf(char *, char *, char *, char *, char *, char *, ...);
void fig08_02() {
  printf("%s\n%s%s\n%s%s\n\n",
         "According to isdigit:", isdigit('8') ? "8 is a" : "8 is not a ",
         "digit", isdigit('#') ? "# is a" : "# is not a ", "digit");
  printf("%s\n%s%s\n%s%s\n%s%s\n%s%s\n\n",
         "According to isalpha:", isalpha('A') ? "A is a " : "A is not a ",
         "letter", isalpha('b') ? "b is a " : "b is not a ", "letter",
         isalpha('&') ? "& is a " : "& is not a ", "letter",
         isalpha('4') ? "4 is a " : "4 is not a ", "letter");
  printf("%s\n%s%s\n%s%s\n%s%s\n\n",
         "According to isalnum:", isalnum('A') ? "A is a " : "A is not a ",
         "digit or a letter", isalnum('8') ? "8 is a " : "8 is not a ",
         "digit or a letter", isalnum('#') ? "# is a " : "# is not a ",
         "digit or a letter");
  printf("%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n\n",
         "According to isxdigit:", isxdigit('F') ? "F is a " : "F is not a ",
         "hexadecimal digit", isxdigit('J') ? "J is a " : "J is not a ",
         "hexadecimal digit", isxdigit('7') ? "7 is a " : "7 is not a ",
         "hexadecimal digit", isxdigit('$') ? "$ is a " : "$ is not a ",
         "hexadecimal digit", isxdigit('f') ? "f is a " : "f is not a ",
         "hexadecimal digit");
}


x86 assembly (clang, -O0):
<fig08_02>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x78,%rsp
mov    $0x38,%edi
call   1030 <isdigit@plt>
mov    %rax,%rdx
lea    0xeb0(%rip),%rax
lea    0xea2(%rip),%rcx
cmp    $0x0,%rdx
cmovne %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    $0x23,%edi
call   1030 <isdigit@plt>
mov    -0x50(%rbp),%rdx
mov    %rax,%rcx
lea    0xe98(%rip),%r8
lea    0xe8a(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%r8
lea    0xf3b(%rip),%rdi
lea    0xe4b(%rip),%rsi
lea    0xf73(%rip),%r9
mov    %r9,%rcx
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x41,%edi
call   1060 <isalpha@plt>
mov    %rax,%rdx
lea    0xe80(%rip),%rax
lea    0xe71(%rip),%rcx
cmp    $0x0,%rdx
cmovne %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    $0x62,%edi
call   1060 <isalpha@plt>
mov    %rax,%rdx
lea    0xe6d(%rip),%rax
lea    0xe5e(%rip),%rcx
cmp    $0x0,%rdx
cmovne %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    $0x26,%edi
call   1060 <isalpha@plt>
mov    %rax,%rdx
lea    0xe5a(%rip),%rax
lea    0xe4b(%rip),%rcx
cmp    $0x0,%rdx
cmovne %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    $0x34,%edi
call   1060 <isalpha@plt>
mov    -0x48(%rbp),%rdx
mov    -0x40(%rbp),%r8
mov    -0x38(%rbp),%r11
mov    %rax,%rcx
lea    0xe3b(%rip),%r10
lea    0xe2c(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%r10
lea    0xe6e(%rip),%rdi
lea    0xdc4(%rip),%rsi
lea    0xe44(%rip),%rax
mov    %rax,%rcx
mov    %rax,%r9
mov    %r11,(%rsp)
mov    %rax,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x41,%edi
call   1050 <isalnum@plt>
mov    %rax,%rdx
lea    0xda7(%rip),%rax
lea    0xd98(%rip),%rcx
cmp    $0x0,%rdx
cmovne %rcx,%rax
mov    %rax,-0x30(%rbp)
mov    $0x38,%edi
call   1050 <isalnum@plt>
mov    %rax,%rdx
lea    0xd43(%rip),%rax
lea    0xde9(%rip),%rcx
cmp    $0x0,%rdx
cmovne %rcx,%rax
mov    %rax,-0x28(%rbp)
mov    $0x23,%edi
call   1050 <isalnum@plt>
mov    -0x30(%rbp),%rdx
mov    -0x28(%rbp),%r8
mov    %rax,%rcx
lea    0xd27(%rip),%r10
lea    0xdc2(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%r10
lea    0xdc5(%rip),%rdi
lea    0xd7c(%rip),%rsi
lea    0xd8b(%rip),%rax
mov    %rax,%rcx
mov    %rax,%r9
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x46,%edi
call   1070 <isxdigit@plt>
mov    %rax,%rdx
lea    0xdc0(%rip),%rax
lea    0xdb1(%rip),%rcx
cmp    $0x0,%rdx
cmovne %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    $0x4a,%edi
call   1070 <isxdigit@plt>
mov    %rax,%rdx
lea    0xdbf(%rip),%rax
lea    0xdb0(%rip),%rcx
cmp    $0x0,%rdx
cmovne %rcx,%rax
mov    %rax,-0x18(%rbp)
mov    $0x37,%edi
call   1070 <isxdigit@plt>
mov    %rax,%rcx
lea    0xdac(%rip),%rbx
lea    0xd9d(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rbx
mov    $0x24,%edi
call   1070 <isxdigit@plt>
mov    %rax,%rdx
lea    0xd9d(%rip),%rax
lea    0xd8e(%rip),%rcx
cmp    $0x0,%rdx
cmovne %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    $0x66,%edi
call   1070 <isxdigit@plt>
mov    -0x20(%rbp),%rdx
mov    -0x18(%rbp),%r8
mov    -0x10(%rbp),%r11
mov    %rax,%rcx
lea    0xd7e(%rip),%r10
lea    0xd6f(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%r10
lea    0xcc9(%rip),%rdi
lea    0xce0(%rip),%rsi
lea    0xd04(%rip),%rax
mov    %rax,%rcx
mov    %rax,%r9
mov    %rbx,(%rsp)
mov    %rax,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %rax,0x18(%rsp)
mov    %r10,0x20(%rsp)
mov    %rax,0x28(%rsp)
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x78,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<fig08_02>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0x38,%edi
call   1030 <isdigit@plt>
test   %rax,%rax
lea    0xeae(%rip),%rax
lea    0xea0(%rip),%rbx
cmove  %rax,%rbx
mov    $0x23,%edi
call   1030 <isdigit@plt>
test   %rax,%rax
lea    0xea2(%rip),%rax
lea    0xe94(%rip),%r8
cmove  %rax,%r8
lea    0xf49(%rip),%rdi
lea    0xe59(%rip),%rsi
lea    0xf81(%rip),%rcx
mov    %rbx,%rdx
mov    %rcx,%r9
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x41,%edi
call   1060 <isalpha@plt>
test   %rax,%rax
lea    0xe8b(%rip),%r13
lea    0xe7c(%rip),%r14
mov    %r14,%r15
cmove  %r13,%r15
mov    $0x62,%edi
call   1060 <isalpha@plt>
test   %rax,%rax
lea    0xe7d(%rip),%rax
lea    0xe6e(%rip),%rbx
cmove  %rax,%rbx
mov    $0x26,%edi
call   1060 <isalpha@plt>
test   %rax,%rax
lea    0xe72(%rip),%rax
lea    0xe63(%rip),%r12
cmove  %rax,%r12
mov    $0x34,%edi
call   1060 <isalpha@plt>
test   %rax,%rax
lea    0xe67(%rip),%rax
lea    0xe58(%rip),%rbp
cmove  %rax,%rbp
lea    0xe82(%rip),%rcx
lea    0xe97(%rip),%rdi
lea    0xded(%rip),%rsi
mov    %r15,%rdx
mov    %rbx,%r8
mov    %rcx,%r9
xor    %eax,%eax
push   %rcx
push   %rbp
push   %rcx
push   %r12
call   1040 <printf@plt>
add    $0x20,%rsp
mov    $0x41,%edi
call   1050 <isalnum@plt>
test   %rax,%rax
cmove  %r13,%r14
mov    $0x38,%edi
call   1050 <isalnum@plt>
test   %rax,%rax
lea    0xe3d(%rip),%rbx
lea    0xd89(%rip),%rax
cmove  %rax,%rbx
mov    $0x23,%edi
call   1050 <isalnum@plt>
test   %rax,%rax
lea    0xe26(%rip),%rbp
lea    0xd7d(%rip),%rax
cmove  %rax,%rbp
lea    0xdfa(%rip),%rcx
lea    0xe1f(%rip),%rdi
lea    0xdd6(%rip),%rsi
mov    %r14,%rdx
mov    %rbx,%r8
mov    %rcx,%r9
xor    %eax,%eax
push   %rcx
push   %rbp
call   1040 <printf@plt>
add    $0x10,%rsp
mov    $0x46,%edi
call   1070 <isxdigit@plt>
test   %rax,%rax
lea    0xe21(%rip),%rax
lea    0xe12(%rip),%r14
cmove  %rax,%r14
mov    $0x4a,%edi
call   1070 <isxdigit@plt>
test   %rax,%rax
lea    0xe28(%rip),%rax
lea    0xe19(%rip),%r12
cmove  %rax,%r12
mov    $0x37,%edi
call   1070 <isxdigit@plt>
test   %rax,%rax
lea    0xe1d(%rip),%rax
lea    0xe0e(%rip),%r15
cmove  %rax,%r15
mov    $0x24,%edi
call   1070 <isxdigit@plt>
test   %rax,%rax
lea    0xe12(%rip),%rax
lea    0xe03(%rip),%rbp
cmove  %rax,%rbp
mov    $0x66,%edi
call   1070 <isxdigit@plt>
test   %rax,%rax
lea    0xe07(%rip),%rax
lea    0xdf8(%rip),%rbx
cmove  %rax,%rbx
lea    0xd9f(%rip),%rcx
lea    0xd4f(%rip),%rdi
lea    0xd66(%rip),%rsi
mov    %r14,%rdx
mov    %r12,%r8
mov    %rcx,%r9
mov    $0x0,%eax
push   %rcx
push   %rbx
push   %rcx
push   %rbp
push   %rcx
push   %r15
call   1040 <printf@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [15 x i8] c"%s\0A%s%s\0A%s%s\0A\0A\00"
@.str.1 = [22 x i8] c"According to isdigit:\00"
@.str.2 = [7 x i8] c"8 is a\00"
@.str.3 = [12 x i8] c"8 is not a \00"
@.str.4 = [6 x i8] c"digit\00"
@.str.5 = [7 x i8] c"# is a\00"
@.str.6 = [12 x i8] c"# is not a \00"
@.str.7 = [25 x i8] c"%s\0A%s%s\0A%s%s\0A%s%s\0A%s%s\0A\0A\00"
@.str.8 = [22 x i8] c"According to isalpha:\00"
@.str.9 = [8 x i8] c"A is a \00"
@.str.10 = [12 x i8] c"A is not a \00"
@.str.11 = [7 x i8] c"letter\00"
@.str.12 = [8 x i8] c"b is a \00"
@.str.13 = [12 x i8] c"b is not a \00"
@.str.14 = [8 x i8] c"& is a \00"
@.str.15 = [12 x i8] c"& is not a \00"
@.str.16 = [8 x i8] c"4 is a \00"
@.str.17 = [12 x i8] c"4 is not a \00"
@.str.18 = [20 x i8] c"%s\0A%s%s\0A%s%s\0A%s%s\0A\0A\00"
@.str.19 = [22 x i8] c"According to isalnum:\00"
@.str.20 = [18 x i8] c"digit or a letter\00"
@.str.21 = [8 x i8] c"8 is a \00"
@.str.22 = [8 x i8] c"# is a \00"
@.str.23 = [30 x i8] c"%s\0A%s%s\0A%s%s\0A%s%s\0A%s%s\0A%s%s\0A\0A\00"
@.str.24 = [23 x i8] c"According to isxdigit:\00"
@.str.25 = [8 x i8] c"F is a \00"
@.str.26 = [12 x i8] c"F is not a \00"
@.str.27 = [18 x i8] c"hexadecimal digit\00"
@.str.28 = [8 x i8] c"J is a \00"
@.str.29 = [12 x i8] c"J is not a \00"
@.str.30 = [8 x i8] c"7 is a \00"
@.str.31 = [12 x i8] c"7 is not a \00"
@.str.32 = [8 x i8] c"$ is a \00"
@.str.33 = [12 x i8] c"$ is not a \00"
@.str.34 = [8 x i8] c"f is a \00"
@.str.35 = [12 x i8] c"f is not a \00"
define void @fig08_02() {
%1 = call i64 @isdigit(i8 signext 56)
%2 = icmp ne i64 %1, 0
%3 = zext i1 %2 to i64
%4 = select i1 %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0)
%5 = call i64 @isdigit(i8 signext 35)
%6 = icmp ne i64 %5, 0
%7 = zext i1 %6 to i64
%8 = select i1 %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0)
%9 = call i32 (i8*, i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%10 = call i64 @isalpha(i8 signext 65)
%11 = icmp ne i64 %10, 0
%12 = zext i1 %11 to i64
%13 = select i1 %11, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0)
%14 = call i64 @isalpha(i8 signext 98)
%15 = icmp ne i64 %14, 0
%16 = zext i1 %15 to i64
%17 = select i1 %15, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0)
%18 = call i64 @isalpha(i8 signext 38)
%19 = icmp ne i64 %18, 0
%20 = zext i1 %19 to i64
%21 = select i1 %19, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0)
%22 = call i64 @isalpha(i8 signext 52)
%23 = icmp ne i64 %22, 0
%24 = zext i1 %23 to i64
%25 = select i1 %23, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0)
%26 = call i32 (i8*, i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i8* %13, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8* %17, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8* %21, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8* %25, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%27 = call i64 @isalnum(i8 signext 65)
%28 = icmp ne i64 %27, 0
%29 = zext i1 %28 to i64
%30 = select i1 %28, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0)
%31 = call i64 @isalnum(i8 signext 56)
%32 = icmp ne i64 %31, 0
%33 = zext i1 %32 to i64
%34 = select i1 %32, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0)
%35 = call i64 @isalnum(i8 signext 35)
%36 = icmp ne i64 %35, 0
%37 = zext i1 %36 to i64
%38 = select i1 %36, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0)
%39 = call i32 (i8*, i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.19, i64 0, i64 0), i8* %30, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i64 0, i64 0), i8* %34, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i64 0, i64 0), i8* %38, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i64 0, i64 0))
%40 = call i64 @isxdigit(i8 signext 70)
%41 = icmp ne i64 %40, 0
%42 = zext i1 %41 to i64
%43 = select i1 %41, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.26, i64 0, i64 0)
%44 = call i64 @isxdigit(i8 signext 74)
%45 = icmp ne i64 %44, 0
%46 = zext i1 %45 to i64
%47 = select i1 %45, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.29, i64 0, i64 0)
%48 = call i64 @isxdigit(i8 signext 55)
%49 = icmp ne i64 %48, 0
%50 = zext i1 %49 to i64
%51 = select i1 %49, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.30, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.31, i64 0, i64 0)
%52 = call i64 @isxdigit(i8 signext 36)
%53 = icmp ne i64 %52, 0
%54 = zext i1 %53 to i64
%55 = select i1 %53, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.32, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.33, i64 0, i64 0)
%56 = call i64 @isxdigit(i8 signext 102)
%57 = icmp ne i64 %56, 0
%58 = zext i1 %57 to i64
%59 = select i1 %57, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.34, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.35, i64 0, i64 0)
%60 = call i32 (i8*, i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.24, i64 0, i64 0), i8* %43, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.27, i64 0, i64 0), i8* %47, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.27, i64 0, i64 0), i8* %51, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.27, i64 0, i64 0), i8* %55, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.27, i64 0, i64 0), i8* %59, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.27, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c"%s\0A%s%s\0A%s%s\0A\0A\00"
@.str.1 = [22 x i8] c"According to isdigit:\00"
@.str.2 = [7 x i8] c"8 is a\00"
@.str.3 = [12 x i8] c"8 is not a \00"
@.str.4 = [6 x i8] c"digit\00"
@.str.5 = [7 x i8] c"# is a\00"
@.str.6 = [12 x i8] c"# is not a \00"
@.str.7 = [25 x i8] c"%s\0A%s%s\0A%s%s\0A%s%s\0A%s%s\0A\0A\00"
@.str.8 = [22 x i8] c"According to isalpha:\00"
@.str.9 = [8 x i8] c"A is a \00"
@.str.10 = [12 x i8] c"A is not a \00"
@.str.11 = [7 x i8] c"letter\00"
@.str.12 = [8 x i8] c"b is a \00"
@.str.13 = [12 x i8] c"b is not a \00"
@.str.14 = [8 x i8] c"& is a \00"
@.str.15 = [12 x i8] c"& is not a \00"
@.str.16 = [8 x i8] c"4 is a \00"
@.str.17 = [12 x i8] c"4 is not a \00"
@.str.18 = [20 x i8] c"%s\0A%s%s\0A%s%s\0A%s%s\0A\0A\00"
@.str.19 = [22 x i8] c"According to isalnum:\00"
@.str.20 = [18 x i8] c"digit or a letter\00"
@.str.21 = [8 x i8] c"8 is a \00"
@.str.22 = [8 x i8] c"# is a \00"
@.str.23 = [30 x i8] c"%s\0A%s%s\0A%s%s\0A%s%s\0A%s%s\0A%s%s\0A\0A\00"
@.str.24 = [23 x i8] c"According to isxdigit:\00"
@.str.25 = [8 x i8] c"F is a \00"
@.str.26 = [12 x i8] c"F is not a \00"
@.str.27 = [18 x i8] c"hexadecimal digit\00"
@.str.28 = [8 x i8] c"J is a \00"
@.str.29 = [12 x i8] c"J is not a \00"
@.str.30 = [8 x i8] c"7 is a \00"
@.str.31 = [12 x i8] c"7 is not a \00"
@.str.32 = [8 x i8] c"$ is a \00"
@.str.33 = [12 x i8] c"$ is not a \00"
@.str.34 = [8 x i8] c"f is a \00"
@.str.35 = [12 x i8] c"f is not a \00"
define void @fig08_02() {
%1 = tail call i64 @isdigit(i8 signext 56)
%2 = icmp eq i64 %1, 0
%3 = select i1 %2, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%4 = tail call i64 @isdigit(i8 signext 35)
%5 = icmp eq i64 %4, 0
%6 = select i1 %5, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0)
%7 = tail call i32 (i8*, i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i64 @isalpha(i8 signext 65)
%9 = icmp eq i64 %8, 0
%10 = select i1 %9, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0)
%11 = tail call i64 @isalpha(i8 signext 98)
%12 = icmp eq i64 %11, 0
%13 = select i1 %12, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0)
%14 = tail call i64 @isalpha(i8 signext 38)
%15 = icmp eq i64 %14, 0
%16 = select i1 %15, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0)
%17 = tail call i64 @isalpha(i8 signext 52)
%18 = icmp eq i64 %17, 0
%19 = select i1 %18, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0)
%20 = tail call i32 (i8*, i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8* %13, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8* %16, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8* %19, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%21 = tail call i64 @isalnum(i8 signext 65)
%22 = icmp eq i64 %21, 0
%23 = select i1 %22, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0)
%24 = tail call i64 @isalnum(i8 signext 56)
%25 = icmp eq i64 %24, 0
%26 = select i1 %25, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.21, i64 0, i64 0)
%27 = tail call i64 @isalnum(i8 signext 35)
%28 = icmp eq i64 %27, 0
%29 = select i1 %28, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.22, i64 0, i64 0)
%30 = tail call i32 (i8*, i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.19, i64 0, i64 0), i8* %23, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i64 0, i64 0), i8* %26, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i64 0, i64 0), i8* %29, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i64 0, i64 0))
%31 = tail call i64 @isxdigit(i8 signext 70)
%32 = icmp eq i64 %31, 0
%33 = select i1 %32, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.25, i64 0, i64 0)
%34 = tail call i64 @isxdigit(i8 signext 74)
%35 = icmp eq i64 %34, 0
%36 = select i1 %35, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.29, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i64 0, i64 0)
%37 = tail call i64 @isxdigit(i8 signext 55)
%38 = icmp eq i64 %37, 0
%39 = select i1 %38, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.31, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.30, i64 0, i64 0)
%40 = tail call i64 @isxdigit(i8 signext 36)
%41 = icmp eq i64 %40, 0
%42 = select i1 %41, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.33, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.32, i64 0, i64 0)
%43 = tail call i64 @isxdigit(i8 signext 102)
%44 = icmp eq i64 %43, 0
%45 = select i1 %44, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.35, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.34, i64 0, i64 0)
%46 = tail call i32 (i8*, i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.24, i64 0, i64 0), i8* %33, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.27, i64 0, i64 0), i8* %36, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.27, i64 0, i64 0), i8* %39, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.27, i64 0, i64 0), i8* %42, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.27, i64 0, i64 0), i8* %45, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.27, i64 0, i64 0))
ret void
}