#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 LOG_AUTH;
int LOG_AUTHPRIV;
int LOG_CRON;
int LOG_DAEMON;
int LOG_FTP;
int LOG_KERN;
int LOG_LOCAL0;
int LOG_LOCAL1;
int LOG_LOCAL2;
int LOG_LOCAL3;
int LOG_LOCAL4;
int LOG_LOCAL5;
int LOG_LOCAL6;
int LOG_LOCAL7;
int LOG_LPR;
int LOG_MAIL;
int LOG_NEWS;
int LOG_SYSLOG;
int LOG_USER;
int LOG_UUCP;
const char *snoopy_syslog_convert_facilityToStr(int facilityInt) {
  char *facilityStr;
  if (LOG_AUTH == facilityInt) {
    facilityStr = "AUTH";
  } else if (LOG_AUTHPRIV == facilityInt) {
    facilityStr = "AUTHPRIV";
  } else if (LOG_CRON == facilityInt) {
    facilityStr = "CRON";
  } else if (LOG_DAEMON == facilityInt) {
    facilityStr = "DAEMON";
  } else if (LOG_FTP == facilityInt) {
    facilityStr = "FTP";
  } else if (LOG_KERN == facilityInt) {
    facilityStr = "KERN";
  } else if (LOG_LOCAL0 == facilityInt) {
    facilityStr = "LOCAL0";
  } else if (LOG_LOCAL1 == facilityInt) {
    facilityStr = "LOCAL1";
  } else if (LOG_LOCAL2 == facilityInt) {
    facilityStr = "LOCAL2";
  } else if (LOG_LOCAL3 == facilityInt) {
    facilityStr = "LOCAL3";
  } else if (LOG_LOCAL4 == facilityInt) {
    facilityStr = "LOCAL4";
  } else if (LOG_LOCAL5 == facilityInt) {
    facilityStr = "LOCAL5";
  } else if (LOG_LOCAL6 == facilityInt) {
    facilityStr = "LOCAL6";
  } else if (LOG_LOCAL7 == facilityInt) {
    facilityStr = "LOCAL7";
  } else if (LOG_LPR == facilityInt) {
    facilityStr = "LPR";
  } else if (LOG_MAIL == facilityInt) {
    facilityStr = "MAIL";
  } else if (LOG_NEWS == facilityInt) {
    facilityStr = "NEWS";
  } else if (LOG_SYSLOG == facilityInt) {
    facilityStr = "SYSLOG";
  } else if (LOG_USER == facilityInt) {
    facilityStr = "USER";
  } else if (LOG_UUCP == facilityInt) {
    facilityStr = "UUCP";
  } else {
    facilityStr = "(invalid)";
  }
  return facilityStr;
}


x86 assembly (clang, -O0):
<snoopy_syslog_convert_facilityToStr>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    0x2ea2(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    1129 <snoopy_syslog_convert_facilityToStr+0x29>
lea    0xee0(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1419 <snoopy_syslog_convert_facilityToStr+0x319>
mov    0x2e30(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    114b <snoopy_syslog_convert_facilityToStr+0x4b>
lea    0xec3(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1414 <snoopy_syslog_convert_facilityToStr+0x314>
mov    0x2dee(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    116d <snoopy_syslog_convert_facilityToStr+0x6d>
lea    0xeaa(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    140f <snoopy_syslog_convert_facilityToStr+0x30f>
mov    0x2e6c(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    118f <snoopy_syslog_convert_facilityToStr+0x8f>
lea    0xe8d(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    140a <snoopy_syslog_convert_facilityToStr+0x30a>
mov    0x2dda(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    11b1 <snoopy_syslog_convert_facilityToStr+0xb1>
lea    0xe72(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1405 <snoopy_syslog_convert_facilityToStr+0x305>
mov    0x2db0(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    11d3 <snoopy_syslog_convert_facilityToStr+0xd3>
lea    0xe54(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1400 <snoopy_syslog_convert_facilityToStr+0x300>
mov    0x2dde(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    11f5 <snoopy_syslog_convert_facilityToStr+0xf5>
lea    0xe37(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    13fb <snoopy_syslog_convert_facilityToStr+0x2fb>
mov    0x2d7c(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    1217 <snoopy_syslog_convert_facilityToStr+0x117>
lea    0xe1c(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    13f6 <snoopy_syslog_convert_facilityToStr+0x2f6>
mov    0x2daa(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    1239 <snoopy_syslog_convert_facilityToStr+0x139>
lea    0xe01(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    13f1 <snoopy_syslog_convert_facilityToStr+0x2f1>
mov    0x2d48(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    125b <snoopy_syslog_convert_facilityToStr+0x15b>
lea    0xde6(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    13ec <snoopy_syslog_convert_facilityToStr+0x2ec>
mov    0x2d5e(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    127d <snoopy_syslog_convert_facilityToStr+0x17d>
lea    0xdcb(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    13e7 <snoopy_syslog_convert_facilityToStr+0x2e7>
mov    0x2cfc(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    129f <snoopy_syslog_convert_facilityToStr+0x19f>
lea    0xdb0(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    13e2 <snoopy_syslog_convert_facilityToStr+0x2e2>
mov    0x2d2a(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    12c1 <snoopy_syslog_convert_facilityToStr+0x1c1>
lea    0xd95(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    13dd <snoopy_syslog_convert_facilityToStr+0x2dd>
mov    0x2cc8(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    12e3 <snoopy_syslog_convert_facilityToStr+0x1e3>
lea    0xd7a(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    13d8 <snoopy_syslog_convert_facilityToStr+0x2d8>
mov    0x2cb6(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    1305 <snoopy_syslog_convert_facilityToStr+0x205>
lea    0xd5f(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    13d3 <snoopy_syslog_convert_facilityToStr+0x2d3>
mov    0x2c44(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    1327 <snoopy_syslog_convert_facilityToStr+0x227>
lea    0xd41(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    13ce <snoopy_syslog_convert_facilityToStr+0x2ce>
mov    0x2caa(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    1349 <snoopy_syslog_convert_facilityToStr+0x249>
lea    0xd24(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    13c9 <snoopy_syslog_convert_facilityToStr+0x2c9>
mov    0x2c48(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    136b <snoopy_syslog_convert_facilityToStr+0x26b>
lea    0xd07(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    13c4 <snoopy_syslog_convert_facilityToStr+0x2c4>
mov    0x2c76(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    138d <snoopy_syslog_convert_facilityToStr+0x28d>
lea    0xcec(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    13bf <snoopy_syslog_convert_facilityToStr+0x2bf>
mov    0x2bb4(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    13af <snoopy_syslog_convert_facilityToStr+0x2af>
lea    0xccf(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    13ba <snoopy_syslog_convert_facilityToStr+0x2ba>
lea    0xcc4(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    13bf <snoopy_syslog_convert_facilityToStr+0x2bf>
jmp    13c4 <snoopy_syslog_convert_facilityToStr+0x2c4>
jmp    13c9 <snoopy_syslog_convert_facilityToStr+0x2c9>
jmp    13ce <snoopy_syslog_convert_facilityToStr+0x2ce>
jmp    13d3 <snoopy_syslog_convert_facilityToStr+0x2d3>
jmp    13d8 <snoopy_syslog_convert_facilityToStr+0x2d8>
jmp    13dd <snoopy_syslog_convert_facilityToStr+0x2dd>
jmp    13e2 <snoopy_syslog_convert_facilityToStr+0x2e2>
jmp    13e7 <snoopy_syslog_convert_facilityToStr+0x2e7>
jmp    13ec <snoopy_syslog_convert_facilityToStr+0x2ec>
jmp    13f1 <snoopy_syslog_convert_facilityToStr+0x2f1>
jmp    13f6 <snoopy_syslog_convert_facilityToStr+0x2f6>
jmp    13fb <snoopy_syslog_convert_facilityToStr+0x2fb>
jmp    1400 <snoopy_syslog_convert_facilityToStr+0x300>
jmp    1405 <snoopy_syslog_convert_facilityToStr+0x305>
jmp    140a <snoopy_syslog_convert_facilityToStr+0x30a>
jmp    140f <snoopy_syslog_convert_facilityToStr+0x30f>
jmp    1414 <snoopy_syslog_convert_facilityToStr+0x314>
jmp    1419 <snoopy_syslog_convert_facilityToStr+0x319>
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<snoopy_syslog_convert_facilityToStr>:
mov    0x2ea9(%rip),%rax
cmp    %edi,(%rax)
jne    1113 <snoopy_syslog_convert_facilityToStr+0x13>
lea    0xeee(%rip),%rax
ret
mov    0x2e46(%rip),%rax
cmp    %edi,(%rax)
jne    1126 <snoopy_syslog_convert_facilityToStr+0x26>
lea    0xee0(%rip),%rax
ret
mov    0x2e13(%rip),%rax
cmp    %edi,(%rax)
jne    1139 <snoopy_syslog_convert_facilityToStr+0x39>
lea    0xed6(%rip),%rax
ret
mov    0x2ea0(%rip),%rax
cmp    %edi,(%rax)
jne    114c <snoopy_syslog_convert_facilityToStr+0x4c>
lea    0xec8(%rip),%rax
ret
mov    0x2e1d(%rip),%rax
cmp    %edi,(%rax)
jne    115f <snoopy_syslog_convert_facilityToStr+0x5f>
lea    0xebc(%rip),%rax
ret
mov    0x2e02(%rip),%rax
cmp    %edi,(%rax)
jne    1172 <snoopy_syslog_convert_facilityToStr+0x72>
lea    0xead(%rip),%rax
ret
mov    0x2e3f(%rip),%rax
cmp    %edi,(%rax)
jne    1185 <snoopy_syslog_convert_facilityToStr+0x85>
lea    0xe9f(%rip),%rax
ret
mov    0x2dec(%rip),%rax
cmp    %edi,(%rax)
jne    1198 <snoopy_syslog_convert_facilityToStr+0x98>
lea    0xe93(%rip),%rax
ret
mov    0x2e29(%rip),%rax
cmp    %edi,(%rax)
jne    11ab <snoopy_syslog_convert_facilityToStr+0xab>
lea    0xe87(%rip),%rax
ret
mov    0x2dd6(%rip),%rax
cmp    %edi,(%rax)
jne    11be <snoopy_syslog_convert_facilityToStr+0xbe>
lea    0xe7b(%rip),%rax
ret
mov    0x2dfb(%rip),%rax
cmp    %edi,(%rax)
jne    11d1 <snoopy_syslog_convert_facilityToStr+0xd1>
lea    0xe6f(%rip),%rax
ret
mov    0x2da8(%rip),%rax
cmp    %edi,(%rax)
jne    11e4 <snoopy_syslog_convert_facilityToStr+0xe4>
lea    0xe63(%rip),%rax
ret
mov    0x2de5(%rip),%rax
cmp    %edi,(%rax)
jne    11f7 <snoopy_syslog_convert_facilityToStr+0xf7>
lea    0xe57(%rip),%rax
ret
mov    0x2d92(%rip),%rax
cmp    %edi,(%rax)
jne    120a <snoopy_syslog_convert_facilityToStr+0x10a>
lea    0xe4b(%rip),%rax
ret
mov    0x2d8f(%rip),%rax
cmp    %edi,(%rax)
jne    121d <snoopy_syslog_convert_facilityToStr+0x11d>
lea    0xe3f(%rip),%rax
ret
mov    0x2d2c(%rip),%rax
cmp    %edi,(%rax)
jne    1230 <snoopy_syslog_convert_facilityToStr+0x130>
lea    0xe30(%rip),%rax
ret
mov    0x2da1(%rip),%rax
cmp    %edi,(%rax)
jne    1243 <snoopy_syslog_convert_facilityToStr+0x143>
lea    0xe22(%rip),%rax
ret
mov    0x2d4e(%rip),%rax
cmp    %edi,(%rax)
jne    1256 <snoopy_syslog_convert_facilityToStr+0x156>
lea    0xe14(%rip),%rax
ret
mov    0x2d8b(%rip),%rax
cmp    %edi,(%rax)
jne    1269 <snoopy_syslog_convert_facilityToStr+0x169>
lea    0xe08(%rip),%rax
ret
mov    0x2cd8(%rip),%rax
cmp    %edi,(%rax)
lea    0xdfc(%rip),%rcx
lea    0xdfa(%rip),%rax
cmove  %rcx,%rax
ret

LLVM IR (-O0):
@LOG_AUTH = global i32 0
@.str = [5 x i8] c"AUTH\00"
@LOG_AUTHPRIV = global i32 0
@.str.1 = [9 x i8] c"AUTHPRIV\00"
@LOG_CRON = global i32 0
@.str.2 = [5 x i8] c"CRON\00"
@LOG_DAEMON = global i32 0
@.str.3 = [7 x i8] c"DAEMON\00"
@LOG_FTP = global i32 0
@.str.4 = [4 x i8] c"FTP\00"
@LOG_KERN = global i32 0
@.str.5 = [5 x i8] c"KERN\00"
@LOG_LOCAL0 = global i32 0
@.str.6 = [7 x i8] c"LOCAL0\00"
@LOG_LOCAL1 = global i32 0
@.str.7 = [7 x i8] c"LOCAL1\00"
@LOG_LOCAL2 = global i32 0
@.str.8 = [7 x i8] c"LOCAL2\00"
@LOG_LOCAL3 = global i32 0
@.str.9 = [7 x i8] c"LOCAL3\00"
@LOG_LOCAL4 = global i32 0
@.str.10 = [7 x i8] c"LOCAL4\00"
@LOG_LOCAL5 = global i32 0
@.str.11 = [7 x i8] c"LOCAL5\00"
@LOG_LOCAL6 = global i32 0
@.str.12 = [7 x i8] c"LOCAL6\00"
@LOG_LOCAL7 = global i32 0
@.str.13 = [7 x i8] c"LOCAL7\00"
@LOG_LPR = global i32 0
@.str.14 = [4 x i8] c"LPR\00"
@LOG_MAIL = global i32 0
@.str.15 = [5 x i8] c"MAIL\00"
@LOG_NEWS = global i32 0
@.str.16 = [5 x i8] c"NEWS\00"
@LOG_SYSLOG = global i32 0
@.str.17 = [7 x i8] c"SYSLOG\00"
@LOG_USER = global i32 0
@.str.18 = [5 x i8] c"USER\00"
@LOG_UUCP = global i32 0
@.str.19 = [5 x i8] c"UUCP\00"
@.str.20 = [10 x i8] c"(invalid)\00"
define i8* @snoopy_syslog_convert_facilityToStr(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
store i32 %0, i32* %2
%4 = load i32, i32* @LOG_AUTH
%5 = load i32, i32* %2
%6 = icmp eq i32 %4, %5
br i1 %6, label %7, label %8
7: ; preds = %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %3
br label %123
8: ; preds = %1
%9 = load i32, i32* @LOG_AUTHPRIV
%10 = load i32, i32* %2
%11 = icmp eq i32 %9, %10
br i1 %11, label %12, label %13
12: ; preds = %8
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8** %3
br label %122
13: ; preds = %8
%14 = load i32, i32* @LOG_CRON
%15 = load i32, i32* %2
%16 = icmp eq i32 %14, %15
br i1 %16, label %17, label %18
17: ; preds = %13
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8** %3
br label %121
18: ; preds = %13
%19 = load i32, i32* @LOG_DAEMON
%20 = load i32, i32* %2
%21 = icmp eq i32 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %18
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8** %3
br label %120
23: ; preds = %18
%24 = load i32, i32* @LOG_FTP
%25 = load i32, i32* %2
%26 = icmp eq i32 %24, %25
br i1 %26, label %27, label %28
27: ; preds = %23
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8** %3
br label %119
28: ; preds = %23
%29 = load i32, i32* @LOG_KERN
%30 = load i32, i32* %2
%31 = icmp eq i32 %29, %30
br i1 %31, label %32, label %33
32: ; preds = %28
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8** %3
br label %118
33: ; preds = %28
%34 = load i32, i32* @LOG_LOCAL0
%35 = load i32, i32* %2
%36 = icmp eq i32 %34, %35
br i1 %36, label %37, label %38
37: ; preds = %33
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8** %3
br label %117
38: ; preds = %33
%39 = load i32, i32* @LOG_LOCAL1
%40 = load i32, i32* %2
%41 = icmp eq i32 %39, %40
br i1 %41, label %42, label %43
42: ; preds = %38
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8** %3
br label %116
43: ; preds = %38
%44 = load i32, i32* @LOG_LOCAL2
%45 = load i32, i32* %2
%46 = icmp eq i32 %44, %45
br i1 %46, label %47, label %48
47: ; preds = %43
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8** %3
br label %115
48: ; preds = %43
%49 = load i32, i32* @LOG_LOCAL3
%50 = load i32, i32* %2
%51 = icmp eq i32 %49, %50
br i1 %51, label %52, label %53
52: ; preds = %48
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i8** %3
br label %114
53: ; preds = %48
%54 = load i32, i32* @LOG_LOCAL4
%55 = load i32, i32* %2
%56 = icmp eq i32 %54, %55
br i1 %56, label %57, label %58
57: ; preds = %53
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i8** %3
br label %113
58: ; preds = %53
%59 = load i32, i32* @LOG_LOCAL5
%60 = load i32, i32* %2
%61 = icmp eq i32 %59, %60
br i1 %61, label %62, label %63
62: ; preds = %58
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8** %3
br label %112
63: ; preds = %58
%64 = load i32, i32* @LOG_LOCAL6
%65 = load i32, i32* %2
%66 = icmp eq i32 %64, %65
br i1 %66, label %67, label %68
67: ; preds = %63
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i8** %3
br label %111
68: ; preds = %63
%69 = load i32, i32* @LOG_LOCAL7
%70 = load i32, i32* %2
%71 = icmp eq i32 %69, %70
br i1 %71, label %72, label %73
72: ; preds = %68
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i8** %3
br label %110
73: ; preds = %68
%74 = load i32, i32* @LOG_LPR
%75 = load i32, i32* %2
%76 = icmp eq i32 %74, %75
br i1 %76, label %77, label %78
77: ; preds = %73
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), i8** %3
br label %109
78: ; preds = %73
%79 = load i32, i32* @LOG_MAIL
%80 = load i32, i32* %2
%81 = icmp eq i32 %79, %80
br i1 %81, label %82, label %83
82: ; preds = %78
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i8** %3
br label %108
83: ; preds = %78
%84 = load i32, i32* @LOG_NEWS
%85 = load i32, i32* %2
%86 = icmp eq i32 %84, %85
br i1 %86, label %87, label %88
87: ; preds = %83
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i8** %3
br label %107
88: ; preds = %83
%89 = load i32, i32* @LOG_SYSLOG
%90 = load i32, i32* %2
%91 = icmp eq i32 %89, %90
br i1 %91, label %92, label %93
92: ; preds = %88
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), i8** %3
br label %106
93: ; preds = %88
%94 = load i32, i32* @LOG_USER
%95 = load i32, i32* %2
%96 = icmp eq i32 %94, %95
br i1 %96, label %97, label %98
97: ; preds = %93
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0), i8** %3
br label %105
98: ; preds = %93
%99 = load i32, i32* @LOG_UUCP
%100 = load i32, i32* %2
%101 = icmp eq i32 %99, %100
br i1 %101, label %102, label %103
102: ; preds = %98
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i8** %3
br label %104
103: ; preds = %98
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.20, i64 0, i64 0), i8** %3
br label %104
104: ; preds = %103, %102
br label %105
105: ; preds = %104, %97
br label %106
106: ; preds = %105, %92
br label %107
107: ; preds = %106, %87
br label %108
108: ; preds = %107, %82
br label %109
109: ; preds = %108, %77
br label %110
110: ; preds = %109, %72
br label %111
111: ; preds = %110, %67
br label %112
112: ; preds = %111, %62
br label %113
113: ; preds = %112, %57
br label %114
114: ; preds = %113, %52
br label %115
115: ; preds = %114, %47
br label %116
116: ; preds = %115, %42
br label %117
117: ; preds = %116, %37
br label %118
118: ; preds = %117, %32
br label %119
119: ; preds = %118, %27
br label %120
120: ; preds = %119, %22
br label %121
121: ; preds = %120, %17
br label %122
122: ; preds = %121, %12
br label %123
123: ; preds = %122, %7
%124 = load i8*, i8** %3
ret i8* %124
}

LLVM IR (-O2):
@LOG_AUTH = global i32 0
@.str = [5 x i8] c"AUTH\00"
@LOG_AUTHPRIV = global i32 0
@.str.1 = [9 x i8] c"AUTHPRIV\00"
@LOG_CRON = global i32 0
@.str.2 = [5 x i8] c"CRON\00"
@LOG_DAEMON = global i32 0
@.str.3 = [7 x i8] c"DAEMON\00"
@LOG_FTP = global i32 0
@.str.4 = [4 x i8] c"FTP\00"
@LOG_KERN = global i32 0
@.str.5 = [5 x i8] c"KERN\00"
@LOG_LOCAL0 = global i32 0
@.str.6 = [7 x i8] c"LOCAL0\00"
@LOG_LOCAL1 = global i32 0
@.str.7 = [7 x i8] c"LOCAL1\00"
@LOG_LOCAL2 = global i32 0
@.str.8 = [7 x i8] c"LOCAL2\00"
@LOG_LOCAL3 = global i32 0
@.str.9 = [7 x i8] c"LOCAL3\00"
@LOG_LOCAL4 = global i32 0
@.str.10 = [7 x i8] c"LOCAL4\00"
@LOG_LOCAL5 = global i32 0
@.str.11 = [7 x i8] c"LOCAL5\00"
@LOG_LOCAL6 = global i32 0
@.str.12 = [7 x i8] c"LOCAL6\00"
@LOG_LOCAL7 = global i32 0
@.str.13 = [7 x i8] c"LOCAL7\00"
@LOG_LPR = global i32 0
@.str.14 = [4 x i8] c"LPR\00"
@LOG_MAIL = global i32 0
@.str.15 = [5 x i8] c"MAIL\00"
@LOG_NEWS = global i32 0
@.str.16 = [5 x i8] c"NEWS\00"
@LOG_SYSLOG = global i32 0
@.str.17 = [7 x i8] c"SYSLOG\00"
@LOG_USER = global i32 0
@.str.18 = [5 x i8] c"USER\00"
@LOG_UUCP = global i32 0
@.str.19 = [5 x i8] c"UUCP\00"
@.str.20 = [10 x i8] c"(invalid)\00"
define i8* @snoopy_syslog_convert_facilityToStr(i32 %0) {
%2 = load i32, i32* @LOG_AUTH
%3 = icmp eq i32 %2, %0
br i1 %3, label %62, label %4
4: ; preds = %1
%5 = load i32, i32* @LOG_AUTHPRIV
%6 = icmp eq i32 %5, %0
br i1 %6, label %62, label %7
7: ; preds = %4
%8 = load i32, i32* @LOG_CRON
%9 = icmp eq i32 %8, %0
br i1 %9, label %62, label %10
10: ; preds = %7
%11 = load i32, i32* @LOG_DAEMON
%12 = icmp eq i32 %11, %0
br i1 %12, label %62, label %13
13: ; preds = %10
%14 = load i32, i32* @LOG_FTP
%15 = icmp eq i32 %14, %0
br i1 %15, label %62, label %16
16: ; preds = %13
%17 = load i32, i32* @LOG_KERN
%18 = icmp eq i32 %17, %0
br i1 %18, label %62, label %19
19: ; preds = %16
%20 = load i32, i32* @LOG_LOCAL0
%21 = icmp eq i32 %20, %0
br i1 %21, label %62, label %22
22: ; preds = %19
%23 = load i32, i32* @LOG_LOCAL1
%24 = icmp eq i32 %23, %0
br i1 %24, label %62, label %25
25: ; preds = %22
%26 = load i32, i32* @LOG_LOCAL2
%27 = icmp eq i32 %26, %0
br i1 %27, label %62, label %28
28: ; preds = %25
%29 = load i32, i32* @LOG_LOCAL3
%30 = icmp eq i32 %29, %0
br i1 %30, label %62, label %31
31: ; preds = %28
%32 = load i32, i32* @LOG_LOCAL4
%33 = icmp eq i32 %32, %0
br i1 %33, label %62, label %34
34: ; preds = %31
%35 = load i32, i32* @LOG_LOCAL5
%36 = icmp eq i32 %35, %0
br i1 %36, label %62, label %37
37: ; preds = %34
%38 = load i32, i32* @LOG_LOCAL6
%39 = icmp eq i32 %38, %0
br i1 %39, label %62, label %40
40: ; preds = %37
%41 = load i32, i32* @LOG_LOCAL7
%42 = icmp eq i32 %41, %0
br i1 %42, label %62, label %43
43: ; preds = %40
%44 = load i32, i32* @LOG_LPR
%45 = icmp eq i32 %44, %0
br i1 %45, label %62, label %46
46: ; preds = %43
%47 = load i32, i32* @LOG_MAIL
%48 = icmp eq i32 %47, %0
br i1 %48, label %62, label %49
49: ; preds = %46
%50 = load i32, i32* @LOG_NEWS
%51 = icmp eq i32 %50, %0
br i1 %51, label %62, label %52
52: ; preds = %49
%53 = load i32, i32* @LOG_SYSLOG
%54 = icmp eq i32 %53, %0
br i1 %54, label %62, label %55
55: ; preds = %52
%56 = load i32, i32* @LOG_USER
%57 = icmp eq i32 %56, %0
br i1 %57, label %62, label %58
58: ; preds = %55
%59 = load i32, i32* @LOG_UUCP
%60 = icmp eq i32 %59, %0
%61 = select i1 %60, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.20, i64 0, i64 0)
br label %62
62: ; preds = %58, %55, %52, %49, %46, %43, %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7, %4, %1
%63 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), %1 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), %4 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), %7 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), %10 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), %13 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), %16 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), %19 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), %22 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), %25 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), %28 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), %31 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), %34 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), %37 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), %40 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), %43 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), %46 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), %49 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), %52 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0), %55 ], [ %61, %58 ]
ret i8* %63
}