#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 */
int /*<<< orphan*/ strncmp(char *, char *, int);
int get_dump_format(char *str) {
  if (!strncmp(str, "memlite", 7) || !strncmp(str, "members_lite", 12)) {
    return 1;
  }
  if (!strncmp(str, "education", 9)) {
    return 2;
  }
  if (!strncmp(str, "memshort", 8) || !strncmp(str, "members_short", 13)) {
    return 3;
  }
  if (!strncmp(str, "memextra", 8) || !strncmp(str, "members_extra", 13)) {
    return 4;
  }
  if (!strncmp(str, "addresses", 9)) {
    return 5;
  }
  if (!strncmp(str, "groupshort", 10) || !strncmp(str, "groups_short", 12)) {
    return 6;
  }
  if (!strncmp(str, "memgroups", 9) || !strncmp(str, "member_groups", 13)) {
    return 7;
  }
  if (!strncmp(str, "military", 8)) {
    return 8;
  }
  if (!strncmp(str, "names", 5)) {
    return 9;
  }
  if (!strncmp(str, "matches", 7)) {
    return 10;
  }
  return 0;
}


x86 assembly (clang, -O0):
<get_dump_format>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xed9(%rip),%rsi
mov    $0x7,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1158 <get_dump_format+0x48>
mov    -0x10(%rbp),%rdi
lea    0xec3(%rip),%rsi
mov    $0xc,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1164 <get_dump_format+0x54>
movl   $0x1,-0x4(%rbp)
jmp    135d <get_dump_format+0x24d>
mov    -0x10(%rbp),%rdi
lea    0xea6(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    118e <get_dump_format+0x7e>
movl   $0x2,-0x4(%rbp)
jmp    135d <get_dump_format+0x24d>
mov    -0x10(%rbp),%rdi
lea    0xe86(%rip),%rsi
mov    $0x8,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     11ca <get_dump_format+0xba>
mov    -0x10(%rbp),%rdi
lea    0xe71(%rip),%rsi
mov    $0xd,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    11d6 <get_dump_format+0xc6>
movl   $0x3,-0x4(%rbp)
jmp    135d <get_dump_format+0x24d>
mov    -0x10(%rbp),%rdi
lea    0xe55(%rip),%rsi
mov    $0x8,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1212 <get_dump_format+0x102>
mov    -0x10(%rbp),%rdi
lea    0xe40(%rip),%rsi
mov    $0xd,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    121e <get_dump_format+0x10e>
movl   $0x4,-0x4(%rbp)
jmp    135d <get_dump_format+0x24d>
mov    -0x10(%rbp),%rdi
lea    0xe24(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1248 <get_dump_format+0x138>
movl   $0x5,-0x4(%rbp)
jmp    135d <get_dump_format+0x24d>
mov    -0x10(%rbp),%rdi
lea    0xe04(%rip),%rsi
mov    $0xa,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1284 <get_dump_format+0x174>
mov    -0x10(%rbp),%rdi
lea    0xdf1(%rip),%rsi
mov    $0xc,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1290 <get_dump_format+0x180>
movl   $0x6,-0x4(%rbp)
jmp    135d <get_dump_format+0x24d>
mov    -0x10(%rbp),%rdi
lea    0xdd4(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     12cc <get_dump_format+0x1bc>
mov    -0x10(%rbp),%rdi
lea    0xdc0(%rip),%rsi
mov    $0xd,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    12d8 <get_dump_format+0x1c8>
movl   $0x7,-0x4(%rbp)
jmp    135d <get_dump_format+0x24d>
mov    -0x10(%rbp),%rdi
lea    0xda4(%rip),%rsi
mov    $0x8,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1302 <get_dump_format+0x1f2>
movl   $0x8,-0x4(%rbp)
jmp    135d <get_dump_format+0x24d>
mov    -0x10(%rbp),%rdi
lea    0xd83(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    132c <get_dump_format+0x21c>
movl   $0x9,-0x4(%rbp)
jmp    135d <get_dump_format+0x24d>
mov    -0x10(%rbp),%rdi
lea    0xd5f(%rip),%rsi
mov    $0x7,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1356 <get_dump_format+0x246>
movl   $0xa,-0x4(%rbp)
jmp    135d <get_dump_format+0x24d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_dump_format>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xee3(%rip),%rsi
mov    $0x7,%edx
call   1030 <strncmp@plt>
mov    $0x1,%ebp
test   %eax,%eax
je     12d0 <get_dump_format+0x1c0>
lea    0xecd(%rip),%rsi
mov    %rbx,%rdi
mov    $0xc,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     12d0 <get_dump_format+0x1c0>
lea    0xebe(%rip),%rsi
mov    %rbx,%rdi
mov    $0x9,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     12cb <get_dump_format+0x1bb>
lea    0xeac(%rip),%rsi
mov    %rbx,%rdi
mov    $0x8,%edx
call   1030 <strncmp@plt>
mov    $0x3,%ebp
test   %eax,%eax
je     12d0 <get_dump_format+0x1c0>
lea    0xe94(%rip),%rsi
mov    %rbx,%rdi
mov    $0xd,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     12d0 <get_dump_format+0x1c0>
lea    0xe86(%rip),%rsi
mov    %rbx,%rdi
mov    $0x8,%edx
call   1030 <strncmp@plt>
mov    $0x4,%ebp
test   %eax,%eax
je     12d0 <get_dump_format+0x1c0>
lea    0xe6e(%rip),%rsi
mov    %rbx,%rdi
mov    $0xd,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     12d0 <get_dump_format+0x1c0>
lea    0xe60(%rip),%rsi
mov    %rbx,%rdi
mov    $0x9,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     12d9 <get_dump_format+0x1c9>
lea    0xe4e(%rip),%rsi
mov    %rbx,%rdi
mov    $0xa,%edx
call   1030 <strncmp@plt>
mov    $0x6,%ebp
test   %eax,%eax
je     12d0 <get_dump_format+0x1c0>
lea    0xe38(%rip),%rsi
mov    %rbx,%rdi
mov    $0xc,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     12d0 <get_dump_format+0x1c0>
lea    0xe29(%rip),%rsi
mov    %rbx,%rdi
mov    $0x9,%edx
call   1030 <strncmp@plt>
mov    $0x7,%ebp
test   %eax,%eax
je     12d0 <get_dump_format+0x1c0>
lea    0xe16(%rip),%rsi
mov    %rbx,%rdi
mov    $0xd,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     12d0 <get_dump_format+0x1c0>
lea    0xe0c(%rip),%rsi
mov    $0x8,%ebp
mov    %rbx,%rdi
mov    $0x8,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     12d0 <get_dump_format+0x1c0>
lea    0xdf8(%rip),%rsi
mov    %rbx,%rdi
mov    $0x5,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     12e0 <get_dump_format+0x1d0>
lea    0xde6(%rip),%rsi
mov    %rbx,%rdi
mov    $0x7,%edx
call   1030 <strncmp@plt>
xor    %ecx,%ecx
test   %eax,%eax
mov    $0xa,%ebp
cmovne %ecx,%ebp
jmp    12d0 <get_dump_format+0x1c0>
mov    $0x2,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
mov    $0x5,%ebp
jmp    12d0 <get_dump_format+0x1c0>
mov    $0x9,%ebp
jmp    12d0 <get_dump_format+0x1c0>

LLVM IR (-O0):
@.str = [8 x i8] c"memlite\00"
@.str.1 = [13 x i8] c"members_lite\00"
@.str.2 = [10 x i8] c"education\00"
@.str.3 = [9 x i8] c"memshort\00"
@.str.4 = [14 x i8] c"members_short\00"
@.str.5 = [9 x i8] c"memextra\00"
@.str.6 = [14 x i8] c"members_extra\00"
@.str.7 = [10 x i8] c"addresses\00"
@.str.8 = [11 x i8] c"groupshort\00"
@.str.9 = [13 x i8] c"groups_short\00"
@.str.10 = [10 x i8] c"memgroups\00"
@.str.11 = [14 x i8] c"member_groups\00"
@.str.12 = [9 x i8] c"military\00"
@.str.13 = [6 x i8] c"names\00"
@.str.14 = [8 x i8] c"matches\00"
define i32 @get_dump_format(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i32 @strncmp(i8* %4, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 7)
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = load i8*, i8** %3
%9 = call i32 @strncmp(i8* %8, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 12)
%10 = icmp ne i32 %9, 0
br i1 %10, label %12, label %11
11: ; preds = %7, %1
store i32 1, i32* %2
br label %74
12: ; preds = %7
%13 = load i8*, i8** %3
%14 = call i32 @strncmp(i8* %13, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 9)
%15 = icmp ne i32 %14, 0
br i1 %15, label %17, label %16
16: ; preds = %12
store i32 2, i32* %2
br label %74
17: ; preds = %12
%18 = load i8*, i8** %3
%19 = call i32 @strncmp(i8* %18, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 8)
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %25
21: ; preds = %17
%22 = load i8*, i8** %3
%23 = call i32 @strncmp(i8* %22, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 13)
%24 = icmp ne i32 %23, 0
br i1 %24, label %26, label %25
25: ; preds = %21, %17
store i32 3, i32* %2
br label %74
26: ; preds = %21
%27 = load i8*, i8** %3
%28 = call i32 @strncmp(i8* %27, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 8)
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %34
30: ; preds = %26
%31 = load i8*, i8** %3
%32 = call i32 @strncmp(i8* %31, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 13)
%33 = icmp ne i32 %32, 0
br i1 %33, label %35, label %34
34: ; preds = %30, %26
store i32 4, i32* %2
br label %74
35: ; preds = %30
%36 = load i8*, i8** %3
%37 = call i32 @strncmp(i8* %36, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 9)
%38 = icmp ne i32 %37, 0
br i1 %38, label %40, label %39
39: ; preds = %35
store i32 5, i32* %2
br label %74
40: ; preds = %35
%41 = load i8*, i8** %3
%42 = call i32 @strncmp(i8* %41, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i32 10)
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %48
44: ; preds = %40
%45 = load i8*, i8** %3
%46 = call i32 @strncmp(i8* %45, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 12)
%47 = icmp ne i32 %46, 0
br i1 %47, label %49, label %48
48: ; preds = %44, %40
store i32 6, i32* %2
br label %74
49: ; preds = %44
%50 = load i8*, i8** %3
%51 = call i32 @strncmp(i8* %50, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0), i32 9)
%52 = icmp ne i32 %51, 0
br i1 %52, label %53, label %57
53: ; preds = %49
%54 = load i8*, i8** %3
%55 = call i32 @strncmp(i8* %54, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0), i32 13)
%56 = icmp ne i32 %55, 0
br i1 %56, label %58, label %57
57: ; preds = %53, %49
store i32 7, i32* %2
br label %74
58: ; preds = %53
%59 = load i8*, i8** %3
%60 = call i32 @strncmp(i8* %59, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i32 8)
%61 = icmp ne i32 %60, 0
br i1 %61, label %63, label %62
62: ; preds = %58
store i32 8, i32* %2
br label %74
63: ; preds = %58
%64 = load i8*, i8** %3
%65 = call i32 @strncmp(i8* %64, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i32 5)
%66 = icmp ne i32 %65, 0
br i1 %66, label %68, label %67
67: ; preds = %63
store i32 9, i32* %2
br label %74
68: ; preds = %63
%69 = load i8*, i8** %3
%70 = call i32 @strncmp(i8* %69, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i32 7)
%71 = icmp ne i32 %70, 0
br i1 %71, label %73, label %72
72: ; preds = %68
store i32 10, i32* %2
br label %74
73: ; preds = %68
store i32 0, i32* %2
br label %74
74: ; preds = %73, %72, %67, %62, %57, %48, %39, %34, %25, %16, %11
%75 = load i32, i32* %2
ret i32 %75
}

LLVM IR (-O2):
@.str = [8 x i8] c"memlite\00"
@.str.1 = [13 x i8] c"members_lite\00"
@.str.2 = [10 x i8] c"education\00"
@.str.3 = [9 x i8] c"memshort\00"
@.str.4 = [14 x i8] c"members_short\00"
@.str.5 = [9 x i8] c"memextra\00"
@.str.6 = [14 x i8] c"members_extra\00"
@.str.7 = [10 x i8] c"addresses\00"
@.str.8 = [11 x i8] c"groupshort\00"
@.str.9 = [13 x i8] c"groups_short\00"
@.str.10 = [10 x i8] c"memgroups\00"
@.str.11 = [14 x i8] c"member_groups\00"
@.str.12 = [9 x i8] c"military\00"
@.str.13 = [6 x i8] c"names\00"
@.str.14 = [8 x i8] c"matches\00"
define i32 @get_dump_format(i8* %0) {
%2 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 7)
%3 = icmp eq i32 %2, 0
br i1 %3, label %47, label %4
4: ; preds = %1
%5 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 12)
%6 = icmp eq i32 %5, 0
br i1 %6, label %47, label %7
7: ; preds = %4
%8 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 9)
%9 = icmp eq i32 %8, 0
br i1 %9, label %47, label %10
10: ; preds = %7
%11 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 8)
%12 = icmp eq i32 %11, 0
br i1 %12, label %47, label %13
13: ; preds = %10
%14 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 13)
%15 = icmp eq i32 %14, 0
br i1 %15, label %47, label %16
16: ; preds = %13
%17 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 8)
%18 = icmp eq i32 %17, 0
br i1 %18, label %47, label %19
19: ; preds = %16
%20 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 13)
%21 = icmp eq i32 %20, 0
br i1 %21, label %47, label %22
22: ; preds = %19
%23 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 9)
%24 = icmp eq i32 %23, 0
br i1 %24, label %47, label %25
25: ; preds = %22
%26 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i32 10)
%27 = icmp eq i32 %26, 0
br i1 %27, label %47, label %28
28: ; preds = %25
%29 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 12)
%30 = icmp eq i32 %29, 0
br i1 %30, label %47, label %31
31: ; preds = %28
%32 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0), i32 9)
%33 = icmp eq i32 %32, 0
br i1 %33, label %47, label %34
34: ; preds = %31
%35 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0), i32 13)
%36 = icmp eq i32 %35, 0
br i1 %36, label %47, label %37
37: ; preds = %34
%38 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i32 8)
%39 = icmp eq i32 %38, 0
br i1 %39, label %47, label %40
40: ; preds = %37
%41 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i32 5)
%42 = icmp eq i32 %41, 0
br i1 %42, label %47, label %43
43: ; preds = %40
%44 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i32 7)
%45 = icmp eq i32 %44, 0
%46 = select i1 %45, i32 10, i32 0
br label %47
47: ; preds = %43, %40, %37, %31, %34, %25, %28, %22, %16, %19, %10, %13, %7, %1, %4
%48 = phi i32 [ 1, %4 ], [ 1, %1 ], [ 2, %7 ], [ 3, %13 ], [ 3, %10 ], [ 4, %19 ], [ 4, %16 ], [ 5, %22 ], [ 6, %28 ], [ 6, %25 ], [ 7, %34 ], [ 7, %31 ], [ 8, %37 ], [ 9, %40 ], [ %46, %43 ]
ret i32 %48
}