#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__ strcmp(char const *, char const *);
const char *typingModule(const char *name) {
  static const char *typing[] = {
      "Any",  "Callable", "Dict",       "Iterable", "Iterator",
      "List", "Mapping",  "NamedTuple", "Optional", "Sequence",
      "Set",  "Tuple",    "Union",      NULL};
  const char **np;
  for (np = typing; *np != NULL; ++np)
    if (strcmp(*np, name) == 0)
      return *np;
  return NULL;
}


x86 assembly (clang, -O0):
<typingModule>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
lea    0x2f0d(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmpq   $0x0,(%rax)
je     1175 <typingModule+0x65>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    115f <typingModule+0x4f>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x8(%rbp)
jmp    117d <typingModule+0x6d>
jmp    1164 <typingModule+0x54>
mov    -0x18(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x18(%rbp)
jmp    1127 <typingModule+0x17>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<typingModule>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1248 <typingModule+0x138>
lea    0xed1(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1251 <typingModule+0x141>
lea    0xec2(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     125a <typingModule+0x14a>
lea    0xeaf(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1263 <typingModule+0x153>
lea    0xea0(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     126c <typingModule+0x15c>
lea    0xe91(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1275 <typingModule+0x165>
lea    0xe7e(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     127e <typingModule+0x16e>
lea    0xe6e(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1287 <typingModule+0x177>
lea    0xe61(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1290 <typingModule+0x180>
lea    0xe52(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1299 <typingModule+0x189>
lea    0xe43(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     12a2 <typingModule+0x192>
lea    0xe13(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     12ab <typingModule+0x19b>
lea    0xe1b(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     12b4 <typingModule+0x1a4>
xor    %eax,%eax
pop    %rbx
ret
lea    0x2b61(%rip),%rax
jmp    12bb <typingModule+0x1ab>
lea    0x2b60(%rip),%rax
jmp    12bb <typingModule+0x1ab>
lea    0x2b5f(%rip),%rax
jmp    12bb <typingModule+0x1ab>
lea    0x2b5e(%rip),%rax
jmp    12bb <typingModule+0x1ab>
lea    0x2b5d(%rip),%rax
jmp    12bb <typingModule+0x1ab>
lea    0x2b5c(%rip),%rax
jmp    12bb <typingModule+0x1ab>
lea    0x2b5b(%rip),%rax
jmp    12bb <typingModule+0x1ab>
lea    0x2b5a(%rip),%rax
jmp    12bb <typingModule+0x1ab>
lea    0x2b59(%rip),%rax
jmp    12bb <typingModule+0x1ab>
lea    0x2b58(%rip),%rax
jmp    12bb <typingModule+0x1ab>
lea    0x2b57(%rip),%rax
jmp    12bb <typingModule+0x1ab>
lea    0x2b56(%rip),%rax
jmp    12bb <typingModule+0x1ab>
lea    0x2b55(%rip),%rax
mov    (%rax),%rax
pop    %rbx
ret

LLVM IR (-O0):
@typingModule.typing = internal global [14 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i32 0, i32 0), i8* null]
@.str = [4 x i8] c"Any\00"
@.str.1 = [9 x i8] c"Callable\00"
@.str.2 = [5 x i8] c"Dict\00"
@.str.3 = [9 x i8] c"Iterable\00"
@.str.4 = [9 x i8] c"Iterator\00"
@.str.5 = [5 x i8] c"List\00"
@.str.6 = [8 x i8] c"Mapping\00"
@.str.7 = [11 x i8] c"NamedTuple\00"
@.str.8 = [9 x i8] c"Optional\00"
@.str.9 = [9 x i8] c"Sequence\00"
@.str.10 = [4 x i8] c"Set\00"
@.str.11 = [6 x i8] c"Tuple\00"
@.str.12 = [6 x i8] c"Union\00"
define i8* @typingModule(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8**
store i8* %0, i8** %3
store i8** getelementptr inbounds ([14 x i8*], [14 x i8*]* @typingModule.typing, i64 0, i64 0), i8*** %4
br label %5
5: ; preds = %19, %1
%6 = load i8**, i8*** %4
%7 = load i8*, i8** %6
%8 = icmp ne i8* %7, null
br i1 %8, label %9, label %22
9: ; preds = %5
%10 = load i8**, i8*** %4
%11 = load i8*, i8** %10
%12 = load i8*, i8** %3
%13 = call i64 @strcmp(i8* %11, i8* %12)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %9
%16 = load i8**, i8*** %4
%17 = load i8*, i8** %16
store i8* %17, i8** %2
br label %23
18: ; preds = %9
br label %19
19: ; preds = %18
%20 = load i8**, i8*** %4
%21 = getelementptr inbounds i8*, i8** %20, i32 1
store i8** %21, i8*** %4
br label %5
22: ; preds = %5
store i8* null, i8** %2
br label %23
23: ; preds = %22, %15
%24 = load i8*, i8** %2
ret i8* %24
}

LLVM IR (-O2):
@typingModule.typing = internal unnamed_addr constant [14 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i32 0, i32 0), i8* null]
@.str = [4 x i8] c"Any\00"
@.str.1 = [9 x i8] c"Callable\00"
@.str.2 = [5 x i8] c"Dict\00"
@.str.3 = [9 x i8] c"Iterable\00"
@.str.4 = [9 x i8] c"Iterator\00"
@.str.5 = [5 x i8] c"List\00"
@.str.6 = [8 x i8] c"Mapping\00"
@.str.7 = [11 x i8] c"NamedTuple\00"
@.str.8 = [9 x i8] c"Optional\00"
@.str.9 = [9 x i8] c"Sequence\00"
@.str.10 = [4 x i8] c"Set\00"
@.str.11 = [6 x i8] c"Tuple\00"
@.str.12 = [6 x i8] c"Union\00"
define i8* @typingModule(i8* %0) {
%2 = tail call i64 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %7
4: ; preds = %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7, %1
%5 = phi i8** [ getelementptr inbounds ([14 x i8*], [14 x i8*]* @typingModule.typing, i64 0, i64 0), %1 ], [ getelementptr inbounds ([14 x i8*], [14 x i8*]* @typingModule.typing, i64 0, i64 1), %7 ], [ getelementptr inbounds ([14 x i8*], [14 x i8*]* @typingModule.typing, i64 0, i64 2), %10 ], [ getelementptr inbounds ([14 x i8*], [14 x i8*]* @typingModule.typing, i64 0, i64 3), %13 ], [ getelementptr inbounds ([14 x i8*], [14 x i8*]* @typingModule.typing, i64 0, i64 4), %16 ], [ getelementptr inbounds ([14 x i8*], [14 x i8*]* @typingModule.typing, i64 0, i64 5), %19 ], [ getelementptr inbounds ([14 x i8*], [14 x i8*]* @typingModule.typing, i64 0, i64 6), %22 ], [ getelementptr inbounds ([14 x i8*], [14 x i8*]* @typingModule.typing, i64 0, i64 7), %25 ], [ getelementptr inbounds ([14 x i8*], [14 x i8*]* @typingModule.typing, i64 0, i64 8), %28 ], [ getelementptr inbounds ([14 x i8*], [14 x i8*]* @typingModule.typing, i64 0, i64 9), %31 ], [ getelementptr inbounds ([14 x i8*], [14 x i8*]* @typingModule.typing, i64 0, i64 10), %34 ], [ getelementptr inbounds ([14 x i8*], [14 x i8*]* @typingModule.typing, i64 0, i64 11), %37 ], [ getelementptr inbounds ([14 x i8*], [14 x i8*]* @typingModule.typing, i64 0, i64 12), %40 ]
%6 = load i8*, i8** %5
br label %43
7: ; preds = %1
%8 = tail call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%9 = icmp eq i64 %8, 0
br i1 %9, label %4, label %10
10: ; preds = %7
%11 = tail call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%12 = icmp eq i64 %11, 0
br i1 %12, label %4, label %13
13: ; preds = %10
%14 = tail call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%15 = icmp eq i64 %14, 0
br i1 %15, label %4, label %16
16: ; preds = %13
%17 = tail call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* %0)
%18 = icmp eq i64 %17, 0
br i1 %18, label %4, label %19
19: ; preds = %16
%20 = tail call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %0)
%21 = icmp eq i64 %20, 0
br i1 %21, label %4, label %22
22: ; preds = %19
%23 = tail call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* %0)
%24 = icmp eq i64 %23, 0
br i1 %24, label %4, label %25
25: ; preds = %22
%26 = tail call i64 @strcmp(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* %0)
%27 = icmp eq i64 %26, 0
br i1 %27, label %4, label %28
28: ; preds = %25
%29 = tail call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* %0)
%30 = icmp eq i64 %29, 0
br i1 %30, label %4, label %31
31: ; preds = %28
%32 = tail call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* %0)
%33 = icmp eq i64 %32, 0
br i1 %33, label %4, label %34
34: ; preds = %31
%35 = tail call i64 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %0)
%36 = icmp eq i64 %35, 0
br i1 %36, label %4, label %37
37: ; preds = %34
%38 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i8* %0)
%39 = icmp eq i64 %38, 0
br i1 %39, label %4, label %40
40: ; preds = %37
%41 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i8* %0)
%42 = icmp eq i64 %41, 0
br i1 %42, label %4, label %43
43: ; preds = %40, %4
%44 = phi i8* [ %6, %4 ], [ null, %40 ]
ret i8* %44
}