const char *__Pyx_BufFmt_DescribeTypeChar(char ch, int is_complex) {
  switch (ch) {
  case 'c':
    return "'char'";
  case 'b':
    return "'signed 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     1297 <__Pyx_BufFmt_DescribeTypeChar+0x197>
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    12a2 <__Pyx_BufFmt_DescribeTypeChar+0x1a2>
lea    0x108c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a2 <__Pyx_BufFmt_DescribeTypeChar+0x1a2>
lea    0x108a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a2 <__Pyx_BufFmt_DescribeTypeChar+0x1a2>
lea    0x108a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a2 <__Pyx_BufFmt_DescribeTypeChar+0x1a2>
lea    0x1082(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a2 <__Pyx_BufFmt_DescribeTypeChar+0x1a2>
lea    0x1083(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a2 <__Pyx_BufFmt_DescribeTypeChar+0x1a2>
lea    0x1079(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a2 <__Pyx_BufFmt_DescribeTypeChar+0x1a2>
lea    0x1078(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a2 <__Pyx_BufFmt_DescribeTypeChar+0x1a2>
lea    0x106f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a2 <__Pyx_BufFmt_DescribeTypeChar+0x1a2>
lea    0x106f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a2 <__Pyx_BufFmt_DescribeTypeChar+0x1a2>
lea    0x106b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a2 <__Pyx_BufFmt_DescribeTypeChar+0x1a2>
mov    -0x10(%rbp),%edx
lea    0x107d(%rip),%rax
lea    0x1066(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x8(%rbp)
jmp    12a2 <__Pyx_BufFmt_DescribeTypeChar+0x1a2>
mov    -0x10(%rbp),%edx
lea    0x1075(%rip),%rax
lea    0x105d(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x8(%rbp)
jmp    12a2 <__Pyx_BufFmt_DescribeTypeChar+0x1a2>
mov    -0x10(%rbp),%edx
lea    0x1073(%rip),%rax
lea    0x1056(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x8(%rbp)
jmp    12a2 <__Pyx_BufFmt_DescribeTypeChar+0x1a2>
lea    0x1063(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a2 <__Pyx_BufFmt_DescribeTypeChar+0x1a2>
lea    0x105c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a2 <__Pyx_BufFmt_DescribeTypeChar+0x1a2>
lea    0x105a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a2 <__Pyx_BufFmt_DescribeTypeChar+0x1a2>
lea    0x1054(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a2 <__Pyx_BufFmt_DescribeTypeChar+0x1a2>
lea    0x104d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a2 <__Pyx_BufFmt_DescribeTypeChar+0x1a2>
lea    0x1041(%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    0x11ad(%rip),%rax
ret
lea    0x11ae(%rip),%rax
ret
lea    0x11aa(%rip),%rax
ret
lea    0x10a8(%rip),%rax
ret
lea    0x10b8(%rip),%rax
ret
lea    0x10c7(%rip),%rax
ret
lea    0x10d5(%rip),%rax
ret
lea    0x115d(%rip),%rax
ret
lea    0x1163(%rip),%rax
ret
lea    0x10d9(%rip),%rax
ret
lea    0x113c(%rip),%rax
ret
lea    0x105a(%rip),%rax
ret
test   %esi,%esi
lea    0x10fd(%rip),%rcx
lea    0x10e5(%rip),%rax
cmove  %rcx,%rax
ret
test   %esi,%esi
lea    0x10cf(%rip),%rcx
lea    0x10b8(%rip),%rax
cmove  %rcx,%rax
ret
test   %esi,%esi
lea    0x10f2(%rip),%rcx
lea    0x10d5(%rip),%rax
cmove  %rcx,%rax
ret
lea    0x1031(%rip),%rax
ret
lea    0x1042(%rip),%rax
ret
lea    0x104f(%rip),%rax
ret
lea    0x105e(%rip),%rax
ret

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

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