#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__ detectPresence(char *);
scalar_t__ isDarwin();
int /*<<< orphan*/ strcat(char *, char *);
scalar_t__ strcpy(char *, char *);
scalar_t__ strlen(char *);
char const *terminalName() {
  static char lTerminalName[64] = "*";
  if (lTerminalName[0] == '*') {
    if (isDarwin()) {
      if (strcpy(lTerminalName, "/opt/X11/bin/xterm") &&
          detectPresence(lTerminalName)) {
        strcat(lTerminalName, " -e bash -c ");
      } else {
        strcpy(lTerminalName, "");
      }
    } else if (strcpy(lTerminalName, "terminator") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -x bash -c ");
    } else if (strcpy(lTerminalName, "lxterminal") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e bash -c ");
    } else if (strcpy(lTerminalName, "mate-terminal") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -x bash -c ");
    } else if (strcpy(lTerminalName, "konsole") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e bash -c ");
    } else if (strcpy(lTerminalName, "rxvt") && detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e bash -c ");
    } else if (strcpy(lTerminalName, "urxvt") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e bash -c ");
    } else if (strcpy(lTerminalName, "mrxvt") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e bash -c ");
    } else if (strcpy(lTerminalName, "evilvte") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e bash -c ");
    } else if (strcpy(lTerminalName, "termit") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e bash -c ");
    } else if (strcpy(lTerminalName, "kterm") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e bash -c ");
    } else if (strcpy(lTerminalName, "roxterm") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e bash -c ");
    } else if (strcpy(lTerminalName, "xterm") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e bash -c ");
    } else if (strcpy(lTerminalName, "lxterm") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e bash -c ");
    } else if (strcpy(lTerminalName, "xvt") && detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e bash -c ");
    } else if (strcpy(lTerminalName, "pterm") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e bash -c ");
    } else if (strcpy(lTerminalName, "x-terminal-emulator") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e bash -c ");
    } else if (strcpy(lTerminalName, "$TERM") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -x bash -c ");
    } else {
      strcpy(lTerminalName, "");
    }
  }
  if (strlen(lTerminalName)) {
    return lTerminalName;
  } else {
    return NULL;
  }
}


x86 assembly (clang, -O0):
<terminalName>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsbl 0x2ef1(%rip),%eax
cmp    $0x2a,%eax
jne    1744 <terminalName+0x5f4>
mov    $0x0,%al
call   1050 <isDarwin@plt>
cmp    $0x0,%rax
je     11dc <terminalName+0x8c>
lea    0x2ed0(%rip),%rdi
lea    0xe79(%rip),%rsi
call   1030 <strcpy@plt>
cmp    $0x0,%rax
je     11c4 <terminalName+0x74>
lea    0x2eb3(%rip),%rdi
call   1060 <detectPresence@plt>
cmp    $0x0,%rax
je     11c4 <terminalName+0x74>
lea    0x2e9d(%rip),%rdi
lea    0xe59(%rip),%rsi
call   1070 <strcat@plt>
jmp    11d7 <terminalName+0x87>
lea    0x2e85(%rip),%rdi
lea    0xe4d(%rip),%rsi
call   1030 <strcpy@plt>
jmp    173f <terminalName+0x5ef>
lea    0x2e6d(%rip),%rdi
lea    0xe36(%rip),%rsi
call   1030 <strcpy@plt>
cmp    $0x0,%rax
je     1227 <terminalName+0xd7>
lea    0x2e50(%rip),%rdi
call   1060 <detectPresence@plt>
cmp    $0x0,%rax
je     1227 <terminalName+0xd7>
lea    0x2e3a(%rip),%rdi
lea    0xe0e(%rip),%rsi
call   1070 <strcat@plt>
jmp    173a <terminalName+0x5ea>
lea    0x2e22(%rip),%rdi
lea    0xe03(%rip),%rsi
call   1030 <strcpy@plt>
cmp    $0x0,%rax
je     1272 <terminalName+0x122>
lea    0x2e05(%rip),%rdi
call   1060 <detectPresence@plt>
cmp    $0x0,%rax
je     1272 <terminalName+0x122>
lea    0x2def(%rip),%rdi
lea    0xdab(%rip),%rsi
call   1070 <strcat@plt>
jmp    1735 <terminalName+0x5e5>
lea    0x2dd7(%rip),%rdi
lea    0xdc3(%rip),%rsi
call   1030 <strcpy@plt>
cmp    $0x0,%rax
je     12bd <terminalName+0x16d>
lea    0x2dba(%rip),%rdi
call   1060 <detectPresence@plt>
cmp    $0x0,%rax
je     12bd <terminalName+0x16d>
lea    0x2da4(%rip),%rdi
lea    0xd78(%rip),%rsi
call   1070 <strcat@plt>
jmp    1730 <terminalName+0x5e0>
lea    0x2d8c(%rip),%rdi
lea    0xd86(%rip),%rsi
call   1030 <strcpy@plt>
cmp    $0x0,%rax
je     1308 <terminalName+0x1b8>
lea    0x2d6f(%rip),%rdi
call   1060 <detectPresence@plt>
cmp    $0x0,%rax
je     1308 <terminalName+0x1b8>
lea    0x2d59(%rip),%rdi
lea    0xd15(%rip),%rsi
call   1070 <strcat@plt>
jmp    172b <terminalName+0x5db>
lea    0x2d41(%rip),%rdi
lea    0xd4a(%rip),%rsi
call   1030 <strcpy@plt>
cmp    $0x0,%rax
je     1353 <terminalName+0x203>
lea    0x2d24(%rip),%rdi
call   1060 <detectPresence@plt>
cmp    $0x0,%rax
je     1353 <terminalName+0x203>
lea    0x2d0e(%rip),%rdi
lea    0xcca(%rip),%rsi
call   1070 <strcat@plt>
jmp    1726 <terminalName+0x5d6>
lea    0x2cf6(%rip),%rdi
lea    0xcf8(%rip),%rsi
call   1030 <strcpy@plt>
cmp    $0x0,%rax
je     139e <terminalName+0x24e>
lea    0x2cd9(%rip),%rdi
call   1060 <detectPresence@plt>
cmp    $0x0,%rax
je     139e <terminalName+0x24e>
lea    0x2cc3(%rip),%rdi
lea    0xc7f(%rip),%rsi
call   1070 <strcat@plt>
jmp    1721 <terminalName+0x5d1>
lea    0x2cab(%rip),%rdi
lea    0xcb3(%rip),%rsi
call   1030 <strcpy@plt>
cmp    $0x0,%rax
je     13e9 <terminalName+0x299>
lea    0x2c8e(%rip),%rdi
call   1060 <detectPresence@plt>
cmp    $0x0,%rax
je     13e9 <terminalName+0x299>
lea    0x2c78(%rip),%rdi
lea    0xc34(%rip),%rsi
call   1070 <strcat@plt>
jmp    171c <terminalName+0x5cc>
lea    0x2c60(%rip),%rdi
lea    0xc6e(%rip),%rsi
call   1030 <strcpy@plt>
cmp    $0x0,%rax
je     1434 <terminalName+0x2e4>
lea    0x2c43(%rip),%rdi
call   1060 <detectPresence@plt>
cmp    $0x0,%rax
je     1434 <terminalName+0x2e4>
lea    0x2c2d(%rip),%rdi
lea    0xbe9(%rip),%rsi
call   1070 <strcat@plt>
jmp    1717 <terminalName+0x5c7>
lea    0x2c15(%rip),%rdi
lea    0xc2b(%rip),%rsi
call   1030 <strcpy@plt>
cmp    $0x0,%rax
je     147f <terminalName+0x32f>
lea    0x2bf8(%rip),%rdi
call   1060 <detectPresence@plt>
cmp    $0x0,%rax
je     147f <terminalName+0x32f>
lea    0x2be2(%rip),%rdi
lea    0xb9e(%rip),%rsi
call   1070 <strcat@plt>
jmp    1712 <terminalName+0x5c2>
lea    0x2bca(%rip),%rdi
lea    0xbe7(%rip),%rsi
call   1030 <strcpy@plt>
cmp    $0x0,%rax
je     14ca <terminalName+0x37a>
lea    0x2bad(%rip),%rdi
call   1060 <detectPresence@plt>
cmp    $0x0,%rax
je     14ca <terminalName+0x37a>
lea    0x2b97(%rip),%rdi
lea    0xb53(%rip),%rsi
call   1070 <strcat@plt>
jmp    170d <terminalName+0x5bd>
lea    0x2b7f(%rip),%rdi
lea    0xba2(%rip),%rsi
call   1030 <strcpy@plt>
cmp    $0x0,%rax
je     1515 <terminalName+0x3c5>
lea    0x2b62(%rip),%rdi
call   1060 <detectPresence@plt>
cmp    $0x0,%rax
je     1515 <terminalName+0x3c5>
lea    0x2b4c(%rip),%rdi
lea    0xb08(%rip),%rsi
call   1070 <strcat@plt>
jmp    1708 <terminalName+0x5b8>
lea    0x2b34(%rip),%rdi
lea    0xaea(%rip),%rsi
call   1030 <strcpy@plt>
cmp    $0x0,%rax
je     1560 <terminalName+0x410>
lea    0x2b17(%rip),%rdi
call   1060 <detectPresence@plt>
cmp    $0x0,%rax
je     1560 <terminalName+0x410>
lea    0x2b01(%rip),%rdi
lea    0xabd(%rip),%rsi
call   1070 <strcat@plt>
jmp    1703 <terminalName+0x5b3>
lea    0x2ae9(%rip),%rdi
lea    0xb14(%rip),%rsi
call   1030 <strcpy@plt>
cmp    $0x0,%rax
je     15ab <terminalName+0x45b>
lea    0x2acc(%rip),%rdi
call   1060 <detectPresence@plt>
cmp    $0x0,%rax
je     15ab <terminalName+0x45b>
lea    0x2ab6(%rip),%rdi
lea    0xa72(%rip),%rsi
call   1070 <strcat@plt>
jmp    16fe <terminalName+0x5ae>
lea    0x2a9e(%rip),%rdi
lea    0xaa8(%rip),%rsi
call   1030 <strcpy@plt>
cmp    $0x0,%rax
je     15f6 <terminalName+0x4a6>
lea    0x2a81(%rip),%rdi
call   1060 <detectPresence@plt>
cmp    $0x0,%rax
je     15f6 <terminalName+0x4a6>
lea    0x2a6b(%rip),%rdi
lea    0xa27(%rip),%rsi
call   1070 <strcat@plt>
jmp    16f9 <terminalName+0x5a9>
lea    0x2a53(%rip),%rdi
lea    0xa85(%rip),%rsi
call   1030 <strcpy@plt>
cmp    $0x0,%rax
je     1641 <terminalName+0x4f1>
lea    0x2a36(%rip),%rdi
call   1060 <detectPresence@plt>
cmp    $0x0,%rax
je     1641 <terminalName+0x4f1>
lea    0x2a20(%rip),%rdi
lea    0x9dc(%rip),%rsi
call   1070 <strcat@plt>
jmp    16f4 <terminalName+0x5a4>
lea    0x2a08(%rip),%rdi
lea    0xa40(%rip),%rsi
call   1030 <strcpy@plt>
cmp    $0x0,%rax
je     168c <terminalName+0x53c>
lea    0x29eb(%rip),%rdi
call   1060 <detectPresence@plt>
cmp    $0x0,%rax
je     168c <terminalName+0x53c>
lea    0x29d5(%rip),%rdi
lea    0x991(%rip),%rsi
call   1070 <strcat@plt>
jmp    16ef <terminalName+0x59f>
lea    0x29bd(%rip),%rdi
lea    0xa09(%rip),%rsi
call   1030 <strcpy@plt>
cmp    $0x0,%rax
je     16d7 <terminalName+0x587>
lea    0x29a0(%rip),%rdi
call   1060 <detectPresence@plt>
cmp    $0x0,%rax
je     16d7 <terminalName+0x587>
lea    0x298a(%rip),%rdi
lea    0x95e(%rip),%rsi
call   1070 <strcat@plt>
jmp    16ea <terminalName+0x59a>
lea    0x2972(%rip),%rdi
lea    0x93a(%rip),%rsi
call   1030 <strcpy@plt>
jmp    16ef <terminalName+0x59f>
jmp    16f4 <terminalName+0x5a4>
jmp    16f9 <terminalName+0x5a9>
jmp    16fe <terminalName+0x5ae>
jmp    1703 <terminalName+0x5b3>
jmp    1708 <terminalName+0x5b8>
jmp    170d <terminalName+0x5bd>
jmp    1712 <terminalName+0x5c2>
jmp    1717 <terminalName+0x5c7>
jmp    171c <terminalName+0x5cc>
jmp    1721 <terminalName+0x5d1>
jmp    1726 <terminalName+0x5d6>
jmp    172b <terminalName+0x5db>
jmp    1730 <terminalName+0x5e0>
jmp    1735 <terminalName+0x5e5>
jmp    173a <terminalName+0x5ea>
jmp    173f <terminalName+0x5ef>
jmp    1744 <terminalName+0x5f4>
lea    0x2905(%rip),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%rax
je     176a <terminalName+0x61a>
lea    0x28ef(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1772 <terminalName+0x622>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<terminalName>:
push   %rax
cmpb   $0x2a,0x2f08(%rip)
jne    1476 <terminalName+0x336>
xor    %eax,%eax
call   1040 <isDarwin@plt>
lea    0x2ef4(%rip),%rdi
test   %rax,%rax
je     119f <terminalName+0x5f>
lea    0xe98(%rip),%rsi
call   1030 <strcpy@plt>
test   %rax,%rax
je     1187 <terminalName+0x47>
lea    0x2ed7(%rip),%rdi
call   1050 <detectPresence@plt>
test   %rax,%rax
jne    1463 <terminalName+0x323>
lea    0x2ec2(%rip),%rdi
lea    0xe8a(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1476 <terminalName+0x336>
lea    0xe7a(%rip),%rsi
call   1030 <strcpy@plt>
test   %rax,%rax
je     11c1 <terminalName+0x81>
lea    0x2e99(%rip),%rdi
call   1050 <detectPresence@plt>
test   %rax,%rax
jne    1217 <terminalName+0xd7>
lea    0x2e88(%rip),%rdi
lea    0xe69(%rip),%rsi
call   1030 <strcpy@plt>
test   %rax,%rax
je     11ee <terminalName+0xae>
lea    0x2e70(%rip),%rdi
call   1050 <detectPresence@plt>
test   %rax,%rax
jne    1463 <terminalName+0x323>
lea    0x2e5b(%rip),%rdi
lea    0xe47(%rip),%rsi
call   1030 <strcpy@plt>
test   %rax,%rax
je     122a <terminalName+0xea>
lea    0x2e43(%rip),%rdi
call   1050 <detectPresence@plt>
test   %rax,%rax
je     122a <terminalName+0xea>
lea    0x2e32(%rip),%rdi
lea    0xe06(%rip),%rsi
jmp    1471 <terminalName+0x331>
lea    0x2e1f(%rip),%rdi
lea    0xe19(%rip),%rsi
call   1030 <strcpy@plt>
test   %rax,%rax
je     1257 <terminalName+0x117>
lea    0x2e07(%rip),%rdi
call   1050 <detectPresence@plt>
test   %rax,%rax
jne    1463 <terminalName+0x323>
lea    0x2df2(%rip),%rdi
lea    0xdfb(%rip),%rsi
call   1030 <strcpy@plt>
test   %rax,%rax
je     1284 <terminalName+0x144>
lea    0x2dda(%rip),%rdi
call   1050 <detectPresence@plt>
test   %rax,%rax
jne    1463 <terminalName+0x323>
lea    0x2dc5(%rip),%rdi
lea    0xdc7(%rip),%rsi
call   1030 <strcpy@plt>
test   %rax,%rax
je     12b1 <terminalName+0x171>
lea    0x2dad(%rip),%rdi
call   1050 <detectPresence@plt>
test   %rax,%rax
jne    1463 <terminalName+0x323>
lea    0x2d98(%rip),%rdi
lea    0xda0(%rip),%rsi
call   1030 <strcpy@plt>
test   %rax,%rax
je     12de <terminalName+0x19e>
lea    0x2d80(%rip),%rdi
call   1050 <detectPresence@plt>
test   %rax,%rax
jne    1463 <terminalName+0x323>
lea    0x2d6b(%rip),%rdi
lea    0xd79(%rip),%rsi
call   1030 <strcpy@plt>
test   %rax,%rax
je     130b <terminalName+0x1cb>
lea    0x2d53(%rip),%rdi
call   1050 <detectPresence@plt>
test   %rax,%rax
jne    1463 <terminalName+0x323>
lea    0x2d3e(%rip),%rdi
lea    0xd54(%rip),%rsi
call   1030 <strcpy@plt>
test   %rax,%rax
je     1338 <terminalName+0x1f8>
lea    0x2d26(%rip),%rdi
call   1050 <detectPresence@plt>
test   %rax,%rax
jne    1463 <terminalName+0x323>
lea    0x2d11(%rip),%rdi
lea    0xd2e(%rip),%rsi
call   1030 <strcpy@plt>
test   %rax,%rax
je     1365 <terminalName+0x225>
lea    0x2cf9(%rip),%rdi
call   1050 <detectPresence@plt>
test   %rax,%rax
jne    1463 <terminalName+0x323>
lea    0x2ce4(%rip),%rdi
lea    0xd07(%rip),%rsi
call   1030 <strcpy@plt>
test   %rax,%rax
je     1392 <terminalName+0x252>
lea    0x2ccc(%rip),%rdi
call   1050 <detectPresence@plt>
test   %rax,%rax
jne    1463 <terminalName+0x323>
lea    0x2cb7(%rip),%rdi
lea    0xc6d(%rip),%rsi
call   1030 <strcpy@plt>
test   %rax,%rax
je     13bf <terminalName+0x27f>
lea    0x2c9f(%rip),%rdi
call   1050 <detectPresence@plt>
test   %rax,%rax
jne    1463 <terminalName+0x323>
lea    0x2c8a(%rip),%rdi
lea    0xcb5(%rip),%rsi
call   1030 <strcpy@plt>
test   %rax,%rax
je     13e8 <terminalName+0x2a8>
lea    0x2c72(%rip),%rdi
call   1050 <detectPresence@plt>
test   %rax,%rax
jne    1463 <terminalName+0x323>
lea    0x2c61(%rip),%rdi
lea    0xc6b(%rip),%rsi
call   1030 <strcpy@plt>
test   %rax,%rax
je     1411 <terminalName+0x2d1>
lea    0x2c49(%rip),%rdi
call   1050 <detectPresence@plt>
test   %rax,%rax
jne    1463 <terminalName+0x323>
lea    0x2c38(%rip),%rdi
lea    0xc6a(%rip),%rsi
call   1030 <strcpy@plt>
test   %rax,%rax
je     143a <terminalName+0x2fa>
lea    0x2c20(%rip),%rdi
call   1050 <detectPresence@plt>
test   %rax,%rax
jne    1463 <terminalName+0x323>
lea    0x2c0f(%rip),%rdi
lea    0xc47(%rip),%rsi
call   1030 <strcpy@plt>
test   %rax,%rax
je     148c <terminalName+0x34c>
lea    0x2bf7(%rip),%rdi
call   1050 <detectPresence@plt>
test   %rax,%rax
je     148c <terminalName+0x34c>
lea    0x2be6(%rip),%rdi
lea    0xba2(%rip),%rsi
call   1060 <strcat@plt>
lea    0x2bd3(%rip),%rcx
xor    %eax,%eax
cmpb   $0x0,0x2bca(%rip)
cmovne %rcx,%rax
pop    %rcx
ret
lea    0x2bbd(%rip),%rdi
lea    0xc09(%rip),%rsi
call   1030 <strcpy@plt>
test   %rax,%rax
je     1187 <terminalName+0x47>
lea    0x2ba1(%rip),%rdi
call   1050 <detectPresence@plt>
test   %rax,%rax
jne    1217 <terminalName+0xd7>
jmp    1187 <terminalName+0x47>

LLVM IR (-O0):
@terminalName.lTerminalName = internal global [64 x i8] c"*\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [19 x i8] c"/opt/X11/bin/xterm\00"
@.str.1 = [13 x i8] c" -e bash -c \00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [11 x i8] c"terminator\00"
@.str.4 = [13 x i8] c" -x bash -c \00"
@.str.5 = [11 x i8] c"lxterminal\00"
@.str.6 = [14 x i8] c"mate-terminal\00"
@.str.7 = [8 x i8] c"konsole\00"
@.str.8 = [5 x i8] c"rxvt\00"
@.str.9 = [6 x i8] c"urxvt\00"
@.str.10 = [6 x i8] c"mrxvt\00"
@.str.11 = [8 x i8] c"evilvte\00"
@.str.12 = [7 x i8] c"termit\00"
@.str.13 = [6 x i8] c"kterm\00"
@.str.14 = [8 x i8] c"roxterm\00"
@.str.15 = [6 x i8] c"xterm\00"
@.str.16 = [7 x i8] c"lxterm\00"
@.str.17 = [4 x i8] c"xvt\00"
@.str.18 = [6 x i8] c"pterm\00"
@.str.19 = [20 x i8] c"x-terminal-emulator\00"
@.str.20 = [6 x i8] c"$TERM\00"
define i8* @terminalName() {
%1 = alloca i8*
%2 = load i8, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0)
%3 = sext i8 %2 to i32
%4 = icmp eq i32 %3, 42
br i1 %4, label %5, label %175
5: ; preds = %0
%6 = call i64 (...) @isDarwin()
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %19
8: ; preds = %5
%9 = call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %18
16: ; preds = %11, %8
%17 = call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
br label %18
18: ; preds = %16, %14
br label %174
19: ; preds = %5
%20 = call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %27
22: ; preds = %19
%23 = call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
br label %173
27: ; preds = %22, %19
%28 = call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %35
30: ; preds = %27
%31 = call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %172
35: ; preds = %30, %27
%36 = call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %43
38: ; preds = %35
%39 = call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
br label %171
43: ; preds = %38, %35
%44 = call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %51
46: ; preds = %43
%47 = call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%48 = icmp ne i64 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %46
%50 = call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %170
51: ; preds = %46, %43
%52 = call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %59
54: ; preds = %51
%55 = call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %54
%58 = call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %169
59: ; preds = %54, %51
%60 = call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%61 = icmp ne i64 %60, 0
br i1 %61, label %62, label %67
62: ; preds = %59
%63 = call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %62
%66 = call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %168
67: ; preds = %62, %59
%68 = call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%69 = icmp ne i64 %68, 0
br i1 %69, label %70, label %75
70: ; preds = %67
%71 = call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%72 = icmp ne i64 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %70
%74 = call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %167
75: ; preds = %70, %67
%76 = call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%77 = icmp ne i64 %76, 0
br i1 %77, label %78, label %83
78: ; preds = %75
%79 = call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%80 = icmp ne i64 %79, 0
br i1 %80, label %81, label %83
81: ; preds = %78
%82 = call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %166
83: ; preds = %78, %75
%84 = call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%85 = icmp ne i64 %84, 0
br i1 %85, label %86, label %91
86: ; preds = %83
%87 = call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%88 = icmp ne i64 %87, 0
br i1 %88, label %89, label %91
89: ; preds = %86
%90 = call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %165
91: ; preds = %86, %83
%92 = call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
%93 = icmp ne i64 %92, 0
br i1 %93, label %94, label %99
94: ; preds = %91
%95 = call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%96 = icmp ne i64 %95, 0
br i1 %96, label %97, label %99
97: ; preds = %94
%98 = call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %164
99: ; preds = %94, %91
%100 = call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0))
%101 = icmp ne i64 %100, 0
br i1 %101, label %102, label %107
102: ; preds = %99
%103 = call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%104 = icmp ne i64 %103, 0
br i1 %104, label %105, label %107
105: ; preds = %102
%106 = call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %163
107: ; preds = %102, %99
%108 = call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
%109 = icmp ne i64 %108, 0
br i1 %109, label %110, label %115
110: ; preds = %107
%111 = call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%112 = icmp ne i64 %111, 0
br i1 %112, label %113, label %115
113: ; preds = %110
%114 = call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %162
115: ; preds = %110, %107
%116 = call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0))
%117 = icmp ne i64 %116, 0
br i1 %117, label %118, label %123
118: ; preds = %115
%119 = call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%120 = icmp ne i64 %119, 0
br i1 %120, label %121, label %123
121: ; preds = %118
%122 = call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %161
123: ; preds = %118, %115
%124 = call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
%125 = icmp ne i64 %124, 0
br i1 %125, label %126, label %131
126: ; preds = %123
%127 = call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%128 = icmp ne i64 %127, 0
br i1 %128, label %129, label %131
129: ; preds = %126
%130 = call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %160
131: ; preds = %126, %123
%132 = call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0))
%133 = icmp ne i64 %132, 0
br i1 %133, label %134, label %139
134: ; preds = %131
%135 = call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%136 = icmp ne i64 %135, 0
br i1 %136, label %137, label %139
137: ; preds = %134
%138 = call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %159
139: ; preds = %134, %131
%140 = call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.19, i64 0, i64 0))
%141 = icmp ne i64 %140, 0
br i1 %141, label %142, label %147
142: ; preds = %139
%143 = call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%144 = icmp ne i64 %143, 0
br i1 %144, label %145, label %147
145: ; preds = %142
%146 = call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %158
147: ; preds = %142, %139
%148 = call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0))
%149 = icmp ne i64 %148, 0
br i1 %149, label %150, label %155
150: ; preds = %147
%151 = call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%152 = icmp ne i64 %151, 0
br i1 %152, label %153, label %155
153: ; preds = %150
%154 = call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
br label %157
155: ; preds = %150, %147
%156 = call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
br label %157
157: ; preds = %155, %153
br label %158
158: ; preds = %157, %145
br label %159
159: ; preds = %158, %137
br label %160
160: ; preds = %159, %129
br label %161
161: ; preds = %160, %121
br label %162
162: ; preds = %161, %113
br label %163
163: ; preds = %162, %105
br label %164
164: ; preds = %163, %97
br label %165
165: ; preds = %164, %89
br label %166
166: ; preds = %165, %81
br label %167
167: ; preds = %166, %73
br label %168
168: ; preds = %167, %65
br label %169
169: ; preds = %168, %57
br label %170
170: ; preds = %169, %49
br label %171
171: ; preds = %170, %41
br label %172
172: ; preds = %171, %33
br label %173
173: ; preds = %172, %25
br label %174
174: ; preds = %173, %18
br label %175
175: ; preds = %174, %0
%176 = call i64 @strlen(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%177 = icmp ne i64 %176, 0
br i1 %177, label %178, label %179
178: ; preds = %175
store i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8** %1
br label %180
179: ; preds = %175
store i8* null, i8** %1
br label %180
180: ; preds = %179, %178
%181 = load i8*, i8** %1
ret i8* %181
}

LLVM IR (-O2):
@terminalName.lTerminalName = internal global [64 x i8] c"*\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [19 x i8] c"/opt/X11/bin/xterm\00"
@.str.1 = [13 x i8] c" -e bash -c \00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [11 x i8] c"terminator\00"
@.str.4 = [13 x i8] c" -x bash -c \00"
@.str.5 = [11 x i8] c"lxterminal\00"
@.str.6 = [14 x i8] c"mate-terminal\00"
@.str.7 = [8 x i8] c"konsole\00"
@.str.8 = [5 x i8] c"rxvt\00"
@.str.9 = [6 x i8] c"urxvt\00"
@.str.10 = [6 x i8] c"mrxvt\00"
@.str.11 = [8 x i8] c"evilvte\00"
@.str.12 = [7 x i8] c"termit\00"
@.str.13 = [6 x i8] c"kterm\00"
@.str.14 = [8 x i8] c"roxterm\00"
@.str.15 = [6 x i8] c"xterm\00"
@.str.16 = [7 x i8] c"lxterm\00"
@.str.17 = [4 x i8] c"xvt\00"
@.str.18 = [6 x i8] c"pterm\00"
@.str.19 = [20 x i8] c"x-terminal-emulator\00"
@.str.20 = [6 x i8] c"$TERM\00"
define i8* @terminalName() {
%1 = load i8, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0)
%2 = icmp eq i8 %1, 42
br i1 %2, label %3, label %154
3: ; preds = %0
%4 = tail call i64 (...) @isDarwin()
%5 = icmp eq i64 %4, 0
br i1 %5, label %16, label %6
6: ; preds = %3
%7 = tail call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %14, label %9
9: ; preds = %6
%10 = tail call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %9
%13 = tail call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %154
14: ; preds = %9, %6
%15 = tail call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
br label %154
16: ; preds = %3
%17 = tail call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %24, label %19
19: ; preds = %16
%20 = tail call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %24, label %22
22: ; preds = %19
%23 = tail call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
br label %154
24: ; preds = %19, %16
%25 = tail call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %32, label %27
27: ; preds = %24
%28 = tail call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %32, label %30
30: ; preds = %27
%31 = tail call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %154
32: ; preds = %27, %24
%33 = tail call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %40, label %35
35: ; preds = %32
%36 = tail call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %40, label %38
38: ; preds = %35
%39 = tail call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
br label %154
40: ; preds = %35, %32
%41 = tail call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %48, label %43
43: ; preds = %40
%44 = tail call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %48, label %46
46: ; preds = %43
%47 = tail call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %154
48: ; preds = %43, %40
%49 = tail call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %56, label %51
51: ; preds = %48
%52 = tail call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %56, label %54
54: ; preds = %51
%55 = tail call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %154
56: ; preds = %51, %48
%57 = tail call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %64, label %59
59: ; preds = %56
%60 = tail call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%61 = icmp eq i64 %60, 0
br i1 %61, label %64, label %62
62: ; preds = %59
%63 = tail call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %154
64: ; preds = %59, %56
%65 = tail call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
br i1 %66, label %72, label %67
67: ; preds = %64
%68 = tail call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
br i1 %69, label %72, label %70
70: ; preds = %67
%71 = tail call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %154
72: ; preds = %67, %64
%73 = tail call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%74 = icmp eq i64 %73, 0
br i1 %74, label %80, label %75
75: ; preds = %72
%76 = tail call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%77 = icmp eq i64 %76, 0
br i1 %77, label %80, label %78
78: ; preds = %75
%79 = tail call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %154
80: ; preds = %75, %72
%81 = tail call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%82 = icmp eq i64 %81, 0
br i1 %82, label %88, label %83
83: ; preds = %80
%84 = tail call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%85 = icmp eq i64 %84, 0
br i1 %85, label %88, label %86
86: ; preds = %83
%87 = tail call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %154
88: ; preds = %83, %80
%89 = tail call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
%90 = icmp eq i64 %89, 0
br i1 %90, label %96, label %91
91: ; preds = %88
%92 = tail call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%93 = icmp eq i64 %92, 0
br i1 %93, label %96, label %94
94: ; preds = %91
%95 = tail call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %154
96: ; preds = %91, %88
%97 = tail call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0))
%98 = icmp eq i64 %97, 0
br i1 %98, label %104, label %99
99: ; preds = %96
%100 = tail call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%101 = icmp eq i64 %100, 0
br i1 %101, label %104, label %102
102: ; preds = %99
%103 = tail call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %154
104: ; preds = %99, %96
%105 = tail call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
%106 = icmp eq i64 %105, 0
br i1 %106, label %112, label %107
107: ; preds = %104
%108 = tail call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%109 = icmp eq i64 %108, 0
br i1 %109, label %112, label %110
110: ; preds = %107
%111 = tail call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %154
112: ; preds = %107, %104
%113 = tail call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0))
%114 = icmp eq i64 %113, 0
br i1 %114, label %120, label %115
115: ; preds = %112
%116 = tail call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%117 = icmp eq i64 %116, 0
br i1 %117, label %120, label %118
118: ; preds = %115
%119 = tail call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %154
120: ; preds = %115, %112
%121 = tail call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
%122 = icmp eq i64 %121, 0
br i1 %122, label %128, label %123
123: ; preds = %120
%124 = tail call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%125 = icmp eq i64 %124, 0
br i1 %125, label %128, label %126
126: ; preds = %123
%127 = tail call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %154
128: ; preds = %123, %120
%129 = tail call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0))
%130 = icmp eq i64 %129, 0
br i1 %130, label %136, label %131
131: ; preds = %128
%132 = tail call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%133 = icmp eq i64 %132, 0
br i1 %133, label %136, label %134
134: ; preds = %131
%135 = tail call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %154
136: ; preds = %131, %128
%137 = tail call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.19, i64 0, i64 0))
%138 = icmp eq i64 %137, 0
br i1 %138, label %144, label %139
139: ; preds = %136
%140 = tail call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%141 = icmp eq i64 %140, 0
br i1 %141, label %144, label %142
142: ; preds = %139
%143 = tail call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %154
144: ; preds = %139, %136
%145 = tail call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0))
%146 = icmp eq i64 %145, 0
br i1 %146, label %152, label %147
147: ; preds = %144
%148 = tail call i64 @detectPresence(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%149 = icmp eq i64 %148, 0
br i1 %149, label %152, label %150
150: ; preds = %147
%151 = tail call i32 @strcat(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
br label %154
152: ; preds = %147, %144
%153 = tail call i64 @strcpy(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
br label %154
154: ; preds = %14, %12, %30, %46, %62, %78, %94, %110, %126, %142, %152, %150, %134, %118, %102, %86, %70, %54, %38, %22, %0
%155 = load i8, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0)
%156 = icmp eq i8 %155, 0
%157 = select i1 %156, i8* null, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @terminalName.lTerminalName, i64 0, i64 0)
ret i8* %157
}