const char *__Pyx_BufFmt_DescribeTypeChar(char ch, int is_complex) {
  switch (ch) {
  case 'b':
    return "'char'";
  case 'B':
    return "'unsigned char'";
  case 'h':
    return "'short'";
  case 'H':
    return "'unsigned short'";
  case 'i':
    return "'int'";
  case 'I':
    return "'unsigned int'";
  case 'l':
    return "'long'";
  case 'L':
    return "'unsigned long'";
  case 'q':
    return "'long long'";
  case 'Q':
    return "'unsigned long long'";
  case 'f':
    return (is_complex ? "'complex float'" : "'float'");
  case 'd':
    return (is_complex ? "'complex double'" : "'double'");
  case 'g':
    return (is_complex ? "'complex long double'" : "'long double'");
  case 'T':
    return "a struct";
  case 'O':
    return "Python object";
  case 'P':
    return "a pointer";
  case 's':
  case 'p':
    return "a string";
  case 0:
    return "end";
  default:
    return "unparseable format string";
  }
}


x86 assembly (clang, -O0):
<__Pyx_BufFmt_DescribeTypeChar>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x9(%rbp)
mov    %esi,-0x10(%rbp)
movsbl -0x9(%rbp),%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x73,%eax
ja     1287 <__Pyx_BufFmt_DescribeTypeChar+0x187>
mov    -0x18(%rbp),%rax
lea    0xed5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x1095(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1292 <__Pyx_BufFmt_DescribeTypeChar+0x192>
lea    0x108c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1292 <__Pyx_BufFmt_DescribeTypeChar+0x192>
lea    0x108c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1292 <__Pyx_BufFmt_DescribeTypeChar+0x192>
lea    0x1084(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1292 <__Pyx_BufFmt_DescribeTypeChar+0x192>
lea    0x1085(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1292 <__Pyx_BufFmt_DescribeTypeChar+0x192>
lea    0x107b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1292 <__Pyx_BufFmt_DescribeTypeChar+0x192>
lea    0x107a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1292 <__Pyx_BufFmt_DescribeTypeChar+0x192>
lea    0x1071(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1292 <__Pyx_BufFmt_DescribeTypeChar+0x192>
lea    0x1071(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1292 <__Pyx_BufFmt_DescribeTypeChar+0x192>
lea    0x106d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1292 <__Pyx_BufFmt_DescribeTypeChar+0x192>
mov    -0x10(%rbp),%edx
lea    0x107f(%rip),%rax
lea    0x1068(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x8(%rbp)
jmp    1292 <__Pyx_BufFmt_DescribeTypeChar+0x192>
mov    -0x10(%rbp),%edx
lea    0x1077(%rip),%rax
lea    0x105f(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x8(%rbp)
jmp    1292 <__Pyx_BufFmt_DescribeTypeChar+0x192>
mov    -0x10(%rbp),%edx
lea    0x1075(%rip),%rax
lea    0x1058(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x8(%rbp)
jmp    1292 <__Pyx_BufFmt_DescribeTypeChar+0x192>
lea    0x1065(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1292 <__Pyx_BufFmt_DescribeTypeChar+0x192>
lea    0x105e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1292 <__Pyx_BufFmt_DescribeTypeChar+0x192>
lea    0x105c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1292 <__Pyx_BufFmt_DescribeTypeChar+0x192>
lea    0x1056(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1292 <__Pyx_BufFmt_DescribeTypeChar+0x192>
lea    0x104f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1292 <__Pyx_BufFmt_DescribeTypeChar+0x192>
lea    0x1043(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<__Pyx_BufFmt_DescribeTypeChar>:
cmp    $0x73,%edi
ja     112e <__Pyx_BufFmt_DescribeTypeChar+0x2e>
lea    0x10c4(%rip),%rax
mov    %edi,%ecx
lea    0xeeb(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
lea    0x119f(%rip),%rax
ret
lea    0x11a0(%rip),%rax
ret
lea    0x119c(%rip),%rax
ret
lea    0x109a(%rip),%rax
ret
lea    0x10aa(%rip),%rax
ret
lea    0x10b9(%rip),%rax
ret
lea    0x10c7(%rip),%rax
ret
lea    0x114f(%rip),%rax
ret
lea    0x1155(%rip),%rax
ret
lea    0x10cb(%rip),%rax
ret
lea    0x112e(%rip),%rax
ret
test   %esi,%esi
lea    0x10f7(%rip),%rcx
lea    0x10df(%rip),%rax
cmove  %rcx,%rax
ret
test   %esi,%esi
lea    0x10c9(%rip),%rcx
lea    0x10b2(%rip),%rax
cmove  %rcx,%rax
ret
test   %esi,%esi
lea    0x10ec(%rip),%rcx
lea    0x10cf(%rip),%rax
cmove  %rcx,%rax
ret
lea    0x102b(%rip),%rax
ret
lea    0x103c(%rip),%rax
ret
lea    0x1049(%rip),%rax
ret
lea    0x1058(%rip),%rax
ret

LLVM IR (-O0):
@.str = [7 x i8] c"'char'\00"
@.str.1 = [16 x i8] c"'unsigned char'\00"
@.str.2 = [8 x i8] c"'short'\00"
@.str.3 = [17 x i8] c"'unsigned short'\00"
@.str.4 = [6 x i8] c"'int'\00"
@.str.5 = [15 x i8] c"'unsigned int'\00"
@.str.6 = [7 x i8] c"'long'\00"
@.str.7 = [16 x i8] c"'unsigned long'\00"
@.str.8 = [12 x i8] c"'long long'\00"
@.str.9 = [21 x i8] c"'unsigned long long'\00"
@.str.10 = [16 x i8] c"'complex float'\00"
@.str.11 = [8 x i8] c"'float'\00"
@.str.12 = [17 x i8] c"'complex double'\00"
@.str.13 = [9 x i8] c"'double'\00"
@.str.14 = [22 x i8] c"'complex long double'\00"
@.str.15 = [14 x i8] c"'long double'\00"
@.str.16 = [9 x i8] c"a struct\00"
@.str.17 = [14 x i8] c"Python object\00"
@.str.18 = [10 x i8] c"a pointer\00"
@.str.19 = [9 x i8] c"a string\00"
@.str.20 = [4 x i8] c"end\00"
@.str.21 = [26 x i8] c"unparseable format string\00"
define i8* @__Pyx_BufFmt_DescribeTypeChar(i8 signext %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i8
%5 = alloca i32
store i8 %0, i8* %4
store i32 %1, i32* %5
%6 = load i8, i8* %4
%7 = sext i8 %6 to i32
switch i32 %7, label %38 [
i32 98, label %8
i32 66, label %9
i32 104, label %10
i32 72, label %11
i32 105, label %12
i32 73, label %13
i32 108, label %14
i32 76, label %15
i32 113, label %16
i32 81, label %17
i32 102, label %18
i32 100, label %23
i32 103, label %28
i32 84, label %33
i32 79, label %34
i32 80, label %35
i32 115, label %36
i32 112, label %36
i32 0, label %37
]
8: ; preds = %2
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8** %3
br label %39
9: ; preds = %2
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8** %3
br label %39
10: ; preds = %2
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8** %3
br label %39
11: ; preds = %2
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8** %3
br label %39
12: ; preds = %2
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8** %3
br label %39
13: ; preds = %2
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8** %3
br label %39
14: ; preds = %2
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8** %3
br label %39
15: ; preds = %2
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i8** %3
br label %39
16: ; preds = %2
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i8** %3
br label %39
17: ; preds = %2
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i8** %3
br label %39
18: ; preds = %2
%19 = load i32, i32* %5
%20 = icmp ne i32 %19, 0
%21 = zext i1 %20 to i64
%22 = select i1 %20, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0)
store i8* %22, i8** %3
br label %39
23: ; preds = %2
%24 = load i32, i32* %5
%25 = icmp ne i32 %24, 0
%26 = zext i1 %25 to i64
%27 = select i1 %25, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0)
store i8* %27, i8** %3
br label %39
28: ; preds = %2
%29 = load i32, i32* %5
%30 = icmp ne i32 %29, 0
%31 = zext i1 %30 to i64
%32 = select i1 %30, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0)
store i8* %32, i8** %3
br label %39
33: ; preds = %2
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0), i8** %3
br label %39
34: ; preds = %2
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.17, i64 0, i64 0), i8** %3
br label %39
35: ; preds = %2
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0), i8** %3
br label %39
36: ; preds = %2, %2
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0), i8** %3
br label %39
37: ; preds = %2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0), i8** %3
br label %39
38: ; preds = %2
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.21, i64 0, i64 0), i8** %3
br label %39
39: ; preds = %38, %37, %36, %35, %34, %33, %28, %23, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8
%40 = load i8*, i8** %3
ret i8* %40
}

LLVM IR (-O2):
@.str = [7 x i8] c"'char'\00"
@.str.1 = [16 x i8] c"'unsigned char'\00"
@.str.2 = [8 x i8] c"'short'\00"
@.str.3 = [17 x i8] c"'unsigned short'\00"
@.str.4 = [6 x i8] c"'int'\00"
@.str.5 = [15 x i8] c"'unsigned int'\00"
@.str.6 = [7 x i8] c"'long'\00"
@.str.7 = [16 x i8] c"'unsigned long'\00"
@.str.8 = [12 x i8] c"'long long'\00"
@.str.9 = [21 x i8] c"'unsigned long long'\00"
@.str.10 = [16 x i8] c"'complex float'\00"
@.str.11 = [8 x i8] c"'float'\00"
@.str.12 = [17 x i8] c"'complex double'\00"
@.str.13 = [9 x i8] c"'double'\00"
@.str.14 = [22 x i8] c"'complex long double'\00"
@.str.15 = [14 x i8] c"'long double'\00"
@.str.16 = [9 x i8] c"a struct\00"
@.str.17 = [14 x i8] c"Python object\00"
@.str.18 = [10 x i8] c"a pointer\00"
@.str.19 = [9 x i8] c"a string\00"
@.str.20 = [4 x i8] c"end\00"
@.str.21 = [26 x i8] c"unparseable format string\00"
define i8* @__Pyx_BufFmt_DescribeTypeChar(i8 signext %0, i32 %1) {
%3 = sext i8 %0 to i32
switch i32 %3, label %27 [
i32 98, label %28
i32 66, label %4
i32 104, label %5
i32 72, label %6
i32 105, label %7
i32 73, label %8
i32 108, label %9
i32 76, label %10
i32 113, label %11
i32 81, label %12
i32 102, label %13
i32 100, label %16
i32 103, label %19
i32 84, label %22
i32 79, label %23
i32 80, label %24
i32 115, label %25
i32 112, label %25
i32 0, label %26
]
4: ; preds = %2
br label %28
5: ; preds = %2
br label %28
6: ; preds = %2
br label %28
7: ; preds = %2
br label %28
8: ; preds = %2
br label %28
9: ; preds = %2
br label %28
10: ; preds = %2
br label %28
11: ; preds = %2
br label %28
12: ; preds = %2
br label %28
13: ; preds = %2
%14 = icmp eq i32 %1, 0
%15 = select i1 %14, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0)
br label %28
16: ; preds = %2
%17 = icmp eq i32 %1, 0
%18 = select i1 %17, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0)
br label %28
19: ; preds = %2
%20 = icmp eq i32 %1, 0
%21 = select i1 %20, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0)
br label %28
22: ; preds = %2
br label %28
23: ; preds = %2
br label %28
24: ; preds = %2
br label %28
25: ; preds = %2, %2
br label %28
26: ; preds = %2
br label %28
27: ; preds = %2
br label %28
28: ; preds = %2, %27, %26, %25, %24, %23, %22, %19, %16, %13, %12, %11, %10, %9, %8, %7, %6, %5, %4
%29 = phi i8* [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.21, i64 0, i64 0), %27 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0), %26 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0), %25 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0), %24 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.17, i64 0, i64 0), %23 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0), %22 ], [ %21, %19 ], [ %18, %16 ], [ %15, %13 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), %12 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), %11 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), %10 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), %9 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), %8 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), %7 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), %6 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), %5 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), %4 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), %2 ]
ret i8* %29
}