#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(int);
scalar_t__ isalpha(int);
scalar_t__ iscntrl(int);
scalar_t__ isdigit(int);
scalar_t__ isgraph(int);
scalar_t__ islower(int);
scalar_t__ isprint(int);
scalar_t__ ispunct(int);
scalar_t__ isspace(int);
scalar_t__ isupper(int);
scalar_t__ isxdigit(int);
int /*<<< orphan*/ printf(char *, int);
int tolower(int);
int toupper(int);
int main() {
  int var1 = 'd';
  int var2 = '2';
  int var3 = '\t';
  int var4 = ' ';
  int var = var1;
  if (isalnum(var))
    printf("1 var = |%c|\n", var);
  if (isalpha(var))
    printf("2 var = |%c|\n", var);
  if (iscntrl(var))
    printf("3 var = |%c|\n", var);
  if (isdigit(var))
    printf("4 var = |%c|\n", var);
  if (isgraph(var))
    printf("5 var = |%c|\n", var);
  if (islower(var))
    printf("6 var = |%c|\n", var);
  if (isprint(var))
    printf("7 var = |%c|\n", var);
  if (ispunct(var))
    printf("8 var = |%c|\n", var);
  if (isspace(var))
    printf("9 var = |%c|\n", var);
  if (isupper(var))
    printf("10 var = |%c|\n", var);
  if (isxdigit(var))
    printf("11 var = |%c|\n", var);
  printf("var = |%c|\n", tolower(var));
  printf("var = |%c|\n", toupper(var));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x64,-0x8(%rbp)
movl   $0x32,-0xc(%rbp)
movl   $0x9,-0x10(%rbp)
movl   $0x20,-0x14(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%edi
call   1080 <isalnum@plt>
cmp    $0x0,%rax
je     1232 <main+0x52>
mov    -0x18(%rbp),%esi
lea    0xe53(%rip),%rdi
call   1070 <printf@plt>
mov    -0x18(%rbp),%edi
call   10c0 <isalpha@plt>
cmp    $0x0,%rax
je     1253 <main+0x73>
mov    -0x18(%rbp),%esi
lea    0xdb2(%rip),%rdi
call   1070 <printf@plt>
mov    -0x18(%rbp),%edi
call   1060 <iscntrl@plt>
cmp    $0x0,%rax
je     1274 <main+0x94>
mov    -0x18(%rbp),%esi
lea    0xd9f(%rip),%rdi
call   1070 <printf@plt>
mov    -0x18(%rbp),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1295 <main+0xb5>
mov    -0x18(%rbp),%esi
lea    0xd8c(%rip),%rdi
call   1070 <printf@plt>
mov    -0x18(%rbp),%edi
call   1100 <isgraph@plt>
cmp    $0x0,%rax
je     12b6 <main+0xd6>
mov    -0x18(%rbp),%esi
lea    0xd79(%rip),%rdi
call   1070 <printf@plt>
mov    -0x18(%rbp),%edi
call   1040 <islower@plt>
cmp    $0x0,%rax
je     12d7 <main+0xf7>
mov    -0x18(%rbp),%esi
lea    0xd66(%rip),%rdi
call   1070 <printf@plt>
mov    -0x18(%rbp),%edi
call   10e0 <isprint@plt>
cmp    $0x0,%rax
je     12f8 <main+0x118>
mov    -0x18(%rbp),%esi
lea    0xd53(%rip),%rdi
call   1070 <printf@plt>
mov    -0x18(%rbp),%edi
call   1090 <ispunct@plt>
cmp    $0x0,%rax
je     1319 <main+0x139>
mov    -0x18(%rbp),%esi
lea    0xd40(%rip),%rdi
call   1070 <printf@plt>
mov    -0x18(%rbp),%edi
call   10a0 <isspace@plt>
cmp    $0x0,%rax
je     133a <main+0x15a>
mov    -0x18(%rbp),%esi
lea    0xd2d(%rip),%rdi
call   1070 <printf@plt>
mov    -0x18(%rbp),%edi
call   10d0 <isupper@plt>
cmp    $0x0,%rax
je     135b <main+0x17b>
mov    -0x18(%rbp),%esi
lea    0xd1a(%rip),%rdi
call   1070 <printf@plt>
mov    -0x18(%rbp),%edi
call   10f0 <isxdigit@plt>
cmp    $0x0,%rax
je     137c <main+0x19c>
mov    -0x18(%rbp),%esi
lea    0xd08(%rip),%rdi
call   1070 <printf@plt>
mov    -0x18(%rbp),%edi
call   10b0 <tolower@plt>
mov    %eax,%esi
lea    0xce6(%rip),%rdi
call   1070 <printf@plt>
mov    -0x18(%rbp),%edi
call   1050 <toupper@plt>
mov    %eax,%esi
lea    0xcd0(%rip),%rdi
call   1070 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x64,%edi
call   1080 <isalnum@plt>
test   %rax,%rax
je     1201 <main+0x21>
lea    0xe89(%rip),%rdi
mov    $0x64,%esi
call   1070 <printf@plt>
mov    $0x64,%edi
call   10c0 <isalpha@plt>
test   %rax,%rax
je     1221 <main+0x41>
lea    0xde9(%rip),%rdi
mov    $0x64,%esi
call   1070 <printf@plt>
mov    $0x64,%edi
call   1060 <iscntrl@plt>
test   %rax,%rax
je     1241 <main+0x61>
lea    0xdd7(%rip),%rdi
mov    $0x64,%esi
call   1070 <printf@plt>
mov    $0x64,%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     1261 <main+0x81>
lea    0xdc5(%rip),%rdi
mov    $0x64,%esi
call   1070 <printf@plt>
mov    $0x64,%edi
call   1100 <isgraph@plt>
test   %rax,%rax
je     1281 <main+0xa1>
lea    0xdb3(%rip),%rdi
mov    $0x64,%esi
call   1070 <printf@plt>
mov    $0x64,%edi
call   1040 <islower@plt>
test   %rax,%rax
je     12a1 <main+0xc1>
lea    0xda1(%rip),%rdi
mov    $0x64,%esi
call   1070 <printf@plt>
mov    $0x64,%edi
call   10e0 <isprint@plt>
test   %rax,%rax
je     12c1 <main+0xe1>
lea    0xd8f(%rip),%rdi
mov    $0x64,%esi
call   1070 <printf@plt>
mov    $0x64,%edi
call   1090 <ispunct@plt>
test   %rax,%rax
je     12e1 <main+0x101>
lea    0xd7d(%rip),%rdi
mov    $0x64,%esi
call   1070 <printf@plt>
mov    $0x64,%edi
call   10a0 <isspace@plt>
test   %rax,%rax
je     1301 <main+0x121>
lea    0xd6b(%rip),%rdi
mov    $0x64,%esi
call   1070 <printf@plt>
mov    $0x64,%edi
call   10d0 <isupper@plt>
test   %rax,%rax
je     1321 <main+0x141>
lea    0xd59(%rip),%rdi
mov    $0x64,%esi
call   1070 <printf@plt>
mov    $0x64,%edi
call   10f0 <isxdigit@plt>
test   %rax,%rax
je     1341 <main+0x161>
lea    0xd48(%rip),%rdi
mov    $0x64,%esi
call   1070 <printf@plt>
mov    $0x64,%edi
call   10b0 <tolower@plt>
lea    0xd21(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
call   1070 <printf@plt>
mov    $0x64,%edi
call   1050 <toupper@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1070 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [14 x i8] c"1 var = |%c|\0A\00"
@.str.1 = [14 x i8] c"2 var = |%c|\0A\00"
@.str.2 = [14 x i8] c"3 var = |%c|\0A\00"
@.str.3 = [14 x i8] c"4 var = |%c|\0A\00"
@.str.4 = [14 x i8] c"5 var = |%c|\0A\00"
@.str.5 = [14 x i8] c"6 var = |%c|\0A\00"
@.str.6 = [14 x i8] c"7 var = |%c|\0A\00"
@.str.7 = [14 x i8] c"8 var = |%c|\0A\00"
@.str.8 = [14 x i8] c"9 var = |%c|\0A\00"
@.str.9 = [15 x i8] c"10 var = |%c|\0A\00"
@.str.10 = [15 x i8] c"11 var = |%c|\0A\00"
@.str.11 = [12 x i8] c"var = |%c|\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
store i32 100, i32* %2
store i32 50, i32* %3
store i32 9, i32* %4
store i32 32, i32* %5
%7 = load i32, i32* %2
store i32 %7, i32* %6
%8 = load i32, i32* %6
%9 = call i64 @isalnum(i32 %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %0
%12 = load i32, i32* %6
%13 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %12)
br label %14
14: ; preds = %11, %0
%15 = load i32, i32* %6
%16 = call i64 @isalpha(i32 %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %14
%19 = load i32, i32* %6
%20 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %19)
br label %21
21: ; preds = %18, %14
%22 = load i32, i32* %6
%23 = call i64 @iscntrl(i32 %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %21
%26 = load i32, i32* %6
%27 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %26)
br label %28
28: ; preds = %25, %21
%29 = load i32, i32* %6
%30 = call i64 @isdigit(i32 %29)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %28
%33 = load i32, i32* %6
%34 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %33)
br label %35
35: ; preds = %32, %28
%36 = load i32, i32* %6
%37 = call i64 @isgraph(i32 %36)
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %35
%40 = load i32, i32* %6
%41 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 %40)
br label %42
42: ; preds = %39, %35
%43 = load i32, i32* %6
%44 = call i64 @islower(i32 %43)
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %42
%47 = load i32, i32* %6
%48 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i32 %47)
br label %49
49: ; preds = %46, %42
%50 = load i32, i32* %6
%51 = call i64 @isprint(i32 %50)
%52 = icmp ne i64 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %49
%54 = load i32, i32* %6
%55 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 %54)
br label %56
56: ; preds = %53, %49
%57 = load i32, i32* %6
%58 = call i64 @ispunct(i32 %57)
%59 = icmp ne i64 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %56
%61 = load i32, i32* %6
%62 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 %61)
br label %63
63: ; preds = %60, %56
%64 = load i32, i32* %6
%65 = call i64 @isspace(i32 %64)
%66 = icmp ne i64 %65, 0
br i1 %66, label %67, label %70
67: ; preds = %63
%68 = load i32, i32* %6
%69 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i32 %68)
br label %70
70: ; preds = %67, %63
%71 = load i32, i32* %6
%72 = call i64 @isupper(i32 %71)
%73 = icmp ne i64 %72, 0
br i1 %73, label %74, label %77
74: ; preds = %70
%75 = load i32, i32* %6
%76 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i32 %75)
br label %77
77: ; preds = %74, %70
%78 = load i32, i32* %6
%79 = call i64 @isxdigit(i32 %78)
%80 = icmp ne i64 %79, 0
br i1 %80, label %81, label %84
81: ; preds = %77
%82 = load i32, i32* %6
%83 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i32 %82)
br label %84
84: ; preds = %81, %77
%85 = load i32, i32* %6
%86 = call i32 @tolower(i32 %85)
%87 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i32 %86)
%88 = load i32, i32* %6
%89 = call i32 @toupper(i32 %88)
%90 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i32 %89)
ret i32 0
}

LLVM IR (-O2):
@.str = [14 x i8] c"1 var = |%c|\0A\00"
@.str.1 = [14 x i8] c"2 var = |%c|\0A\00"
@.str.2 = [14 x i8] c"3 var = |%c|\0A\00"
@.str.3 = [14 x i8] c"4 var = |%c|\0A\00"
@.str.4 = [14 x i8] c"5 var = |%c|\0A\00"
@.str.5 = [14 x i8] c"6 var = |%c|\0A\00"
@.str.6 = [14 x i8] c"7 var = |%c|\0A\00"
@.str.7 = [14 x i8] c"8 var = |%c|\0A\00"
@.str.8 = [14 x i8] c"9 var = |%c|\0A\00"
@.str.9 = [15 x i8] c"10 var = |%c|\0A\00"
@.str.10 = [15 x i8] c"11 var = |%c|\0A\00"
@.str.11 = [12 x i8] c"var = |%c|\0A\00"
define i32 @main() {
%1 = tail call i64 @isalnum(i32 100)
%2 = icmp eq i64 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 100)
br label %5
5: ; preds = %3, %0
%6 = tail call i64 @isalpha(i32 100)
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %5
%9 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 100)
br label %10
10: ; preds = %8, %5
%11 = tail call i64 @iscntrl(i32 100)
%12 = icmp eq i64 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %10
%14 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 100)
br label %15
15: ; preds = %13, %10
%16 = tail call i64 @isdigit(i32 100)
%17 = icmp eq i64 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %15
%19 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 100)
br label %20
20: ; preds = %18, %15
%21 = tail call i64 @isgraph(i32 100)
%22 = icmp eq i64 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %20
%24 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 100)
br label %25
25: ; preds = %23, %20
%26 = tail call i64 @islower(i32 100)
%27 = icmp eq i64 %26, 0
br i1 %27, label %30, label %28
28: ; preds = %25
%29 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i32 100)
br label %30
30: ; preds = %28, %25
%31 = tail call i64 @isprint(i32 100)
%32 = icmp eq i64 %31, 0
br i1 %32, label %35, label %33
33: ; preds = %30
%34 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 100)
br label %35
35: ; preds = %33, %30
%36 = tail call i64 @ispunct(i32 100)
%37 = icmp eq i64 %36, 0
br i1 %37, label %40, label %38
38: ; preds = %35
%39 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 100)
br label %40
40: ; preds = %38, %35
%41 = tail call i64 @isspace(i32 100)
%42 = icmp eq i64 %41, 0
br i1 %42, label %45, label %43
43: ; preds = %40
%44 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i32 100)
br label %45
45: ; preds = %43, %40
%46 = tail call i64 @isupper(i32 100)
%47 = icmp eq i64 %46, 0
br i1 %47, label %50, label %48
48: ; preds = %45
%49 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i32 100)
br label %50
50: ; preds = %48, %45
%51 = tail call i64 @isxdigit(i32 100)
%52 = icmp eq i64 %51, 0
br i1 %52, label %55, label %53
53: ; preds = %50
%54 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i32 100)
br label %55
55: ; preds = %53, %50
%56 = tail call i32 @tolower(i32 100)
%57 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i32 %56)
%58 = tail call i32 @toupper(i32 100)
%59 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i32 %58)
ret i32 0
}