#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 */
char getchar();
int /*<<< orphan*/ printf(char *);
int main() {
  char c;
  c = getchar();
  if (c < 32)
    printf("zheshiyigekongzhizhifu\n");
  else if (c >= '0' && c <= '9')
    printf("zheshiyigeshuzhizhifu\n");
  else if (c >= 'A' && c <= 'Z')
    printf("zheshigedaxiezimu\n");
  else if (c >= 'a' && c <= 'z')
    printf("zheshigexiaoxiezimu\n");
  else
    printf("zheshiyigeqitazhifu\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x20,%eax
jge    1157 <main+0x37>
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
jmp    11f3 <main+0xd3>
movsbl -0x5(%rbp),%eax
cmp    $0x30,%eax
jl     1182 <main+0x62>
movsbl -0x5(%rbp),%eax
cmp    $0x39,%eax
jg     1182 <main+0x62>
lea    0xea0(%rip),%rdi
call   1030 <printf@plt>
jmp    11ee <main+0xce>
movsbl -0x5(%rbp),%eax
cmp    $0x41,%eax
jl     11ad <main+0x8d>
movsbl -0x5(%rbp),%eax
cmp    $0x5a,%eax
jg     11ad <main+0x8d>
lea    0xe8c(%rip),%rdi
call   1030 <printf@plt>
jmp    11e9 <main+0xc9>
movsbl -0x5(%rbp),%eax
cmp    $0x61,%eax
jl     11d8 <main+0xb8>
movsbl -0x5(%rbp),%eax
cmp    $0x7a,%eax
jg     11d8 <main+0xb8>
lea    0xe74(%rip),%rdi
call   1030 <printf@plt>
jmp    11e4 <main+0xc4>
lea    0xe78(%rip),%rdi
call   1030 <printf@plt>
jmp    11e9 <main+0xc9>
jmp    11ee <main+0xce>
jmp    11f3 <main+0xd3>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    $0x20,%al
jge    1135 <main+0x15>
lea    0xf1d(%rip),%rdi
jmp    116d <main+0x4d>
lea    -0x30(%rax),%ecx
cmp    $0xa,%cl
jae    1146 <main+0x26>
lea    0xef6(%rip),%rdi
jmp    116d <main+0x4d>
lea    -0x41(%rax),%ecx
cmp    $0x1a,%cl
jae    1157 <main+0x37>
lea    0xed3(%rip),%rdi
jmp    116d <main+0x4d>
add    $0x9f,%al
cmp    $0x1a,%al
lea    0xeb2(%rip),%rax
lea    0xe97(%rip),%rdi
cmovb  %rax,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [24 x i8] c"zheshiyigekongzhizhifu\0A\00"
@.str.1 = [23 x i8] c"zheshiyigeshuzhizhifu\0A\00"
@.str.2 = [19 x i8] c"zheshigedaxiezimu\0A\00"
@.str.3 = [21 x i8] c"zheshigexiaoxiezimu\0A\00"
@.str.4 = [21 x i8] c"zheshiyigeqitazhifu\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
%3 = call signext i8 (...) @getchar()
store i8 %3, i8* %2
%4 = load i8, i8* %2
%5 = sext i8 %4 to i32
%6 = icmp slt i32 %5, 32
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
br label %44
9: ; preds = %0
%10 = load i8, i8* %2
%11 = sext i8 %10 to i32
%12 = icmp sge i32 %11, 48
br i1 %12, label %13, label %19
13: ; preds = %9
%14 = load i8, i8* %2
%15 = sext i8 %14 to i32
%16 = icmp sle i32 %15, 57
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
br label %43
19: ; preds = %13, %9
%20 = load i8, i8* %2
%21 = sext i8 %20 to i32
%22 = icmp sge i32 %21, 65
br i1 %22, label %23, label %29
23: ; preds = %19
%24 = load i8, i8* %2
%25 = sext i8 %24 to i32
%26 = icmp sle i32 %25, 90
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %42
29: ; preds = %23, %19
%30 = load i8, i8* %2
%31 = sext i8 %30 to i32
%32 = icmp sge i32 %31, 97
br i1 %32, label %33, label %39
33: ; preds = %29
%34 = load i8, i8* %2
%35 = sext i8 %34 to i32
%36 = icmp sle i32 %35, 122
br i1 %36, label %37, label %39
37: ; preds = %33
%38 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
br label %41
39: ; preds = %33, %29
%40 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
br label %41
41: ; preds = %39, %37
br label %42
42: ; preds = %41, %27
br label %43
43: ; preds = %42, %17
br label %44
44: ; preds = %43, %7
ret i32 0
}

LLVM IR (-O2):
@str = [20 x i8] c"zheshiyigeqitazhifu\00"
@str.5 = [20 x i8] c"zheshigexiaoxiezimu\00"
@str.6 = [18 x i8] c"zheshigedaxiezimu\00"
@str.7 = [22 x i8] c"zheshiyigeshuzhizhifu\00"
@str.8 = [23 x i8] c"zheshiyigekongzhizhifu\00"
define i32 @main() {
%1 = tail call signext i8 (...) @getchar()
%2 = icmp slt i8 %1, 32
br i1 %2, label %13, label %3
3: ; preds = %0
%4 = add nsw i8 %1, -48
%5 = icmp ult i8 %4, 10
br i1 %5, label %13, label %6
6: ; preds = %3
%7 = add nsw i8 %1, -65
%8 = icmp ult i8 %7, 26
br i1 %8, label %13, label %9
9: ; preds = %6
%10 = add nsw i8 %1, -97
%11 = icmp ult i8 %10, 26
%12 = select i1 %11, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @str.5, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0)
br label %13
13: ; preds = %9, %6, %3, %0
%14 = phi i8* [ getelementptr inbounds ([23 x i8], [23 x i8]* @str.8, i64 0, i64 0), %0 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @str.7, i64 0, i64 0), %3 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @str.6, i64 0, i64 0), %6 ], [ %12, %9 ]
%15 = tail call i32 @puts(i8* dereferenceable(1) %14)
ret i32 0
}