#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__ dialogNameOnly();
scalar_t__ isDarwin();
int /*<<< orphan*/ strcat(char *, char *);
scalar_t__ strcpy(char *, char *);
scalar_t__ strlen(char *);
scalar_t__ whiptailPresentOnly();
char const *terminalName() {
  static char lTerminalName[128] = "*";
  char lShellName[64] = "*";
  if (lTerminalName[0] == '*') {
    if (detectPresence("bash")) {
      strcpy(lShellName, "bash -c ");
    } else if (dialogNameOnly() || whiptailPresentOnly()) {
      strcpy(lShellName, "sh -c ");
    } else {
      return NULL;
    }
    if (isDarwin()) {
      if (strcpy(lTerminalName, "/opt/X11/bin/xterm") &&
          detectPresence(lTerminalName)) {
        strcat(lTerminalName,
               " -fa 'DejaVu Sans Mono' -fs 10 -title tinyfiledialogs -e ");
        strcat(lTerminalName, lShellName);
      } else {
        strcpy(lTerminalName, "");
      }
    } else if (strcpy(lTerminalName, "xterm") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName,
             " -fa 'DejaVu Sans Mono' -fs 10 -title tinyfiledialogs -e ");
      strcat(lTerminalName, lShellName);
    } else if (strcpy(lTerminalName, "terminator") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -x ");
      strcat(lTerminalName, lShellName);
    } else if (strcpy(lTerminalName, "lxterminal") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e ");
      strcat(lTerminalName, lShellName);
    } else if (strcpy(lTerminalName, "mate-terminal") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -x ");
      strcat(lTerminalName, lShellName);
    } else if (strcpy(lTerminalName, "konsole") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e ");
      strcat(lTerminalName, lShellName);
    } else if (strcpy(lTerminalName, "rxvt") && detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e ");
      strcat(lTerminalName, lShellName);
    } else if (strcpy(lTerminalName, "urxvt") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e ");
      strcat(lTerminalName, lShellName);
    } else if (strcpy(lTerminalName, "mrxvt") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e ");
      strcat(lTerminalName, lShellName);
    } else if (strcpy(lTerminalName, "evilvte") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e ");
      strcat(lTerminalName, lShellName);
    } else if (strcpy(lTerminalName, "termit") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e ");
      strcat(lTerminalName, lShellName);
    } else if (strcpy(lTerminalName, "kterm") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e ");
      strcat(lTerminalName, lShellName);
    } else if (strcpy(lTerminalName, "roxterm") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e ");
      strcat(lTerminalName, lShellName);
    } else if (strcpy(lTerminalName, "lxterm") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e ");
      strcat(lTerminalName, lShellName);
    } else if (strcpy(lTerminalName, "gnome-terminal") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " --disable-factory -x ");
      strcat(lTerminalName, lShellName);
    } else if (strcpy(lTerminalName, "xfce4-terminal") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -x ");
      strcat(lTerminalName, lShellName);
    } else if (strcpy(lTerminalName, "xvt") && detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e ");
      strcat(lTerminalName, lShellName);
    } else if (strcpy(lTerminalName, "pterm") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -e ");
      strcat(lTerminalName, lShellName);
    } else {
      strcpy(lTerminalName, "");
    }
  }
  if (strlen(lTerminalName)) {
    return lTerminalName;
  } else {
    return NULL;
  }
}


x86 assembly (clang, -O0):
<terminalName>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1060 <memset@plt>
movb   $0x2a,-0x50(%rbp)
movsbl 0x2ecd(%rip),%eax
cmp    $0x2a,%eax
jne    191c <terminalName+0x79c>
lea    0xe4d(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     11d7 <terminalName+0x57>
lea    -0x50(%rbp),%rdi
lea    0xe38(%rip),%rsi
call   1040 <strcpy@plt>
jmp    1220 <terminalName+0xa0>
mov    $0x0,%al
call   1090 <dialogNameOnly@plt>
cmp    $0x0,%rax
jne    11f9 <terminalName+0x79>
mov    $0x0,%al
call   1030 <whiptailPresentOnly@plt>
cmp    $0x0,%rax
je     120e <terminalName+0x8e>
lea    -0x50(%rbp),%rdi
lea    0xe03(%rip),%rsi
call   1040 <strcpy@plt>
jmp    121b <terminalName+0x9b>
movq   $0x0,-0x8(%rbp)
jmp    194a <terminalName+0x7ca>
jmp    1220 <terminalName+0xa0>
mov    $0x0,%al
call   1070 <isDarwin@plt>
cmp    $0x0,%rax
je     12a4 <terminalName+0x124>
lea    0x2e38(%rip),%rdi
lea    0xdcf(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     128c <terminalName+0x10c>
lea    0x2e1b(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     128c <terminalName+0x10c>
lea    0x2e05(%rip),%rdi
lea    0xdaf(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2dee(%rip),%rdi
call   10a0 <strcat@plt>
jmp    129f <terminalName+0x11f>
lea    0x2ddd(%rip),%rdi
lea    0xd73(%rip),%rsi
call   1040 <strcpy@plt>
jmp    1917 <terminalName+0x797>
lea    0x2dc5(%rip),%rdi
lea    0xd69(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     12ff <terminalName+0x17f>
lea    0x2da8(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     12ff <terminalName+0x17f>
lea    0x2d92(%rip),%rdi
lea    0xd3c(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2d7b(%rip),%rdi
call   10a0 <strcat@plt>
jmp    1912 <terminalName+0x792>
lea    0x2d6a(%rip),%rdi
lea    0xd4e(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     135a <terminalName+0x1da>
lea    0x2d4d(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     135a <terminalName+0x1da>
lea    0x2d37(%rip),%rdi
lea    0xd98(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2d20(%rip),%rdi
call   10a0 <strcat@plt>
jmp    190d <terminalName+0x78d>
lea    0x2d0f(%rip),%rdi
lea    0xcfe(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     13b5 <terminalName+0x235>
lea    0x2cf2(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     13b5 <terminalName+0x235>
lea    0x2cdc(%rip),%rdi
lea    0xcbb(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2cc5(%rip),%rdi
call   10a0 <strcat@plt>
jmp    1908 <terminalName+0x788>
lea    0x2cb4(%rip),%rdi
lea    0xcae(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     1410 <terminalName+0x290>
lea    0x2c97(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     1410 <terminalName+0x290>
lea    0x2c81(%rip),%rdi
lea    0xce2(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2c6a(%rip),%rdi
call   10a0 <strcat@plt>
jmp    1903 <terminalName+0x783>
lea    0x2c59(%rip),%rdi
lea    0xc61(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     146b <terminalName+0x2eb>
lea    0x2c3c(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     146b <terminalName+0x2eb>
lea    0x2c26(%rip),%rdi
lea    0xc05(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2c0f(%rip),%rdi
call   10a0 <strcat@plt>
jmp    18fe <terminalName+0x77e>
lea    0x2bfe(%rip),%rdi
lea    0xc15(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     14c6 <terminalName+0x346>
lea    0x2be1(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     14c6 <terminalName+0x346>
lea    0x2bcb(%rip),%rdi
lea    0xbaa(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2bb4(%rip),%rdi
call   10a0 <strcat@plt>
jmp    18f9 <terminalName+0x779>
lea    0x2ba3(%rip),%rdi
lea    0xbb3(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     1521 <terminalName+0x3a1>
lea    0x2b86(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     1521 <terminalName+0x3a1>
lea    0x2b70(%rip),%rdi
lea    0xb4f(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2b59(%rip),%rdi
call   10a0 <strcat@plt>
jmp    18f4 <terminalName+0x774>
lea    0x2b48(%rip),%rdi
lea    0xb5e(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     157c <terminalName+0x3fc>
lea    0x2b2b(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     157c <terminalName+0x3fc>
lea    0x2b15(%rip),%rdi
lea    0xaf4(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2afe(%rip),%rdi
call   10a0 <strcat@plt>
jmp    18ef <terminalName+0x76f>
lea    0x2aed(%rip),%rdi
lea    0xb09(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     15d7 <terminalName+0x457>
lea    0x2ad0(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     15d7 <terminalName+0x457>
lea    0x2aba(%rip),%rdi
lea    0xa99(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2aa3(%rip),%rdi
call   10a0 <strcat@plt>
jmp    18ea <terminalName+0x76a>
lea    0x2a92(%rip),%rdi
lea    0xab6(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     1632 <terminalName+0x4b2>
lea    0x2a75(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     1632 <terminalName+0x4b2>
lea    0x2a5f(%rip),%rdi
lea    0xa3e(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2a48(%rip),%rdi
call   10a0 <strcat@plt>
jmp    18e5 <terminalName+0x765>
lea    0x2a37(%rip),%rdi
lea    0xa62(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     168d <terminalName+0x50d>
lea    0x2a1a(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     168d <terminalName+0x50d>
lea    0x2a04(%rip),%rdi
lea    0x9e3(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x29ed(%rip),%rdi
call   10a0 <strcat@plt>
jmp    18e0 <terminalName+0x760>
lea    0x29dc(%rip),%rdi
lea    0xa0d(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     16e8 <terminalName+0x568>
lea    0x29bf(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     16e8 <terminalName+0x568>
lea    0x29a9(%rip),%rdi
lea    0x988(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2992(%rip),%rdi
call   10a0 <strcat@plt>
jmp    18db <terminalName+0x75b>
lea    0x2981(%rip),%rdi
lea    0x9ba(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     1743 <terminalName+0x5c3>
lea    0x2964(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     1743 <terminalName+0x5c3>
lea    0x294e(%rip),%rdi
lea    0x92d(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2937(%rip),%rdi
call   10a0 <strcat@plt>
jmp    18d6 <terminalName+0x756>
lea    0x2926(%rip),%rdi
lea    0x966(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     179e <terminalName+0x61e>
lea    0x2909(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     179e <terminalName+0x61e>
lea    0x28f3(%rip),%rdi
lea    0x942(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x28dc(%rip),%rdi
call   10a0 <strcat@plt>
jmp    18d1 <terminalName+0x751>
lea    0x28cb(%rip),%rdi
lea    0x931(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     17f9 <terminalName+0x679>
lea    0x28ae(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     17f9 <terminalName+0x679>
lea    0x2898(%rip),%rdi
lea    0x8f9(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2881(%rip),%rdi
call   10a0 <strcat@plt>
jmp    18cc <terminalName+0x74c>
lea    0x2870(%rip),%rdi
lea    0x888(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     1854 <terminalName+0x6d4>
lea    0x2853(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     1854 <terminalName+0x6d4>
lea    0x283d(%rip),%rdi
lea    0x81c(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2826(%rip),%rdi
call   10a0 <strcat@plt>
jmp    18c7 <terminalName+0x747>
lea    0x2815(%rip),%rdi
lea    0x88a(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     18af <terminalName+0x72f>
lea    0x27f8(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     18af <terminalName+0x72f>
lea    0x27e2(%rip),%rdi
lea    0x7c1(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x27cb(%rip),%rdi
call   10a0 <strcat@plt>
jmp    18c2 <terminalName+0x742>
lea    0x27ba(%rip),%rdi
lea    0x750(%rip),%rsi
call   1040 <strcpy@plt>
jmp    18c7 <terminalName+0x747>
jmp    18cc <terminalName+0x74c>
jmp    18d1 <terminalName+0x751>
jmp    18d6 <terminalName+0x756>
jmp    18db <terminalName+0x75b>
jmp    18e0 <terminalName+0x760>
jmp    18e5 <terminalName+0x765>
jmp    18ea <terminalName+0x76a>
jmp    18ef <terminalName+0x76f>
jmp    18f4 <terminalName+0x774>
jmp    18f9 <terminalName+0x779>
jmp    18fe <terminalName+0x77e>
jmp    1903 <terminalName+0x783>
jmp    1908 <terminalName+0x788>
jmp    190d <terminalName+0x78d>
jmp    1912 <terminalName+0x792>
jmp    1917 <terminalName+0x797>
jmp    191c <terminalName+0x79c>
lea    0x274d(%rip),%rdi
call   1050 <strlen@plt>
cmp    $0x0,%rax
je     1942 <terminalName+0x7c2>
lea    0x2737(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    194a <terminalName+0x7ca>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<terminalName>:
push   %r14
push   %rbx
sub    $0x48,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movb   $0x2a,(%rsp)
cmpb   $0x2a,0x2ed8(%rip)
jne    1492 <terminalName+0x332>
lea    0xe6b(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
je     11a8 <terminalName+0x48>
lea    0xe5f(%rip),%r14
jmp    11cd <terminalName+0x6d>
xor    %eax,%eax
call   1070 <dialogNameOnly@plt>
lea    0xe51(%rip),%r14
test   %rax,%rax
jne    11cd <terminalName+0x6d>
xor    %ebx,%ebx
xor    %eax,%eax
call   1030 <whiptailPresentOnly@plt>
test   %rax,%rax
je     14a6 <terminalName+0x346>
mov    %rsp,%rdi
mov    %r14,%rsi
call   1040 <strcpy@plt>
xor    %eax,%eax
call   1050 <isDarwin@plt>
lea    0x2e7a(%rip),%rdi
test   %rax,%rax
je     1225 <terminalName+0xc5>
lea    0xe1c(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     120d <terminalName+0xad>
lea    0x2e5d(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    1247 <terminalName+0xe7>
lea    0x2e4c(%rip),%rdi
lea    0xdf2(%rip),%rsi
call   1040 <strcpy@plt>
jmp    1492 <terminalName+0x332>
lea    0xdef(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     125a <terminalName+0xfa>
lea    0x2e23(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
je     125a <terminalName+0xfa>
lea    0x2e12(%rip),%rbx
lea    0xdcc(%rip),%rsi
jmp    147f <terminalName+0x31f>
lea    0x2dff(%rip),%rdi
lea    0xdf3(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     1283 <terminalName+0x123>
lea    0x2de7(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    12d9 <terminalName+0x179>
lea    0x2dd6(%rip),%rdi
lea    0xdd5(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     12b0 <terminalName+0x150>
lea    0x2dbe(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    1471 <terminalName+0x311>
lea    0x2da9(%rip),%rdi
lea    0xdb3(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     12ec <terminalName+0x18c>
lea    0x2d91(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
je     12ec <terminalName+0x18c>
lea    0x2d80(%rip),%rbx
lea    0xdf1(%rip),%rsi
jmp    147f <terminalName+0x31f>
lea    0x2d6d(%rip),%rdi
lea    0xd85(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     1319 <terminalName+0x1b9>
lea    0x2d55(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    1471 <terminalName+0x311>
lea    0x2d40(%rip),%rdi
lea    0xd67(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     1346 <terminalName+0x1e6>
lea    0x2d28(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    1471 <terminalName+0x311>
lea    0x2d13(%rip),%rdi
lea    0xd33(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     1373 <terminalName+0x213>
lea    0x2cfb(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    1471 <terminalName+0x311>
lea    0x2ce6(%rip),%rdi
lea    0xd0c(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     13a0 <terminalName+0x240>
lea    0x2cce(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    1471 <terminalName+0x311>
lea    0x2cb9(%rip),%rdi
lea    0xce5(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     13cd <terminalName+0x26d>
lea    0x2ca1(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    1471 <terminalName+0x311>
lea    0x2c8c(%rip),%rdi
lea    0xcc0(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     13f6 <terminalName+0x296>
lea    0x2c74(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    1471 <terminalName+0x311>
lea    0x2c63(%rip),%rdi
lea    0xc9e(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     141f <terminalName+0x2bf>
lea    0x2c4b(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    1471 <terminalName+0x311>
lea    0x2c3a(%rip),%rdi
lea    0xc7b(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     1448 <terminalName+0x2e8>
lea    0x2c22(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    1471 <terminalName+0x311>
lea    0x2c11(%rip),%rdi
lea    0xc5a(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     14b1 <terminalName+0x351>
lea    0x2bf9(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
je     14b1 <terminalName+0x351>
lea    0x2be8(%rip),%rbx
lea    0xbd7(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcat@plt>
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1080 <strcat@plt>
lea    0x2bc7(%rip),%rax
xor    %ebx,%ebx
cmpb   $0x0,0x2bbe(%rip)
cmovne %rax,%rbx
mov    %rbx,%rax
add    $0x48,%rsp
pop    %rbx
pop    %r14
ret
lea    0x2ba8(%rip),%rdi
lea    0xbf8(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     14ea <terminalName+0x38a>
lea    0x2b90(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
je     14ea <terminalName+0x38a>
lea    0x2b7f(%rip),%rbx
lea    0xbde(%rip),%rsi
jmp    147f <terminalName+0x31f>
lea    0x2b6f(%rip),%rdi
lea    0xbe5(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     1517 <terminalName+0x3b7>
lea    0x2b57(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    12d9 <terminalName+0x179>
lea    0x2b42(%rip),%rdi
lea    0xb6a(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     1544 <terminalName+0x3e4>
lea    0x2b2a(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    1471 <terminalName+0x311>
lea    0x2b15(%rip),%rdi
lea    0xb9a(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     120d <terminalName+0xad>
lea    0x2af9(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    1471 <terminalName+0x311>
jmp    120d <terminalName+0xad>

LLVM IR (-O0):
@terminalName.lTerminalName = internal global [128 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\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\00"
@.str = [5 x i8] c"bash\00"
@.str.1 = [9 x i8] c"bash -c \00"
@.str.2 = [7 x i8] c"sh -c \00"
@.str.3 = [19 x i8] c"/opt/X11/bin/xterm\00"
@.str.4 = [58 x i8] c" -fa 'DejaVu Sans Mono' -fs 10 -title tinyfiledialogs -e \00"
@.str.5 = [1 x i8] zeroinitializer
@.str.6 = [6 x i8] c"xterm\00"
@.str.7 = [11 x i8] c"terminator\00"
@.str.8 = [5 x i8] c" -x \00"
@.str.9 = [11 x i8] c"lxterminal\00"
@.str.10 = [5 x i8] c" -e \00"
@.str.11 = [14 x i8] c"mate-terminal\00"
@.str.12 = [8 x i8] c"konsole\00"
@.str.13 = [5 x i8] c"rxvt\00"
@.str.14 = [6 x i8] c"urxvt\00"
@.str.15 = [6 x i8] c"mrxvt\00"
@.str.16 = [8 x i8] c"evilvte\00"
@.str.17 = [7 x i8] c"termit\00"
@.str.18 = [6 x i8] c"kterm\00"
@.str.19 = [8 x i8] c"roxterm\00"
@.str.20 = [7 x i8] c"lxterm\00"
@.str.21 = [15 x i8] c"gnome-terminal\00"
@.str.22 = [23 x i8] c" --disable-factory -x \00"
@.str.23 = [15 x i8] c"xfce4-terminal\00"
@.str.24 = [4 x i8] c"xvt\00"
@.str.25 = [6 x i8] c"pterm\00"
define i8* @terminalName() {
%1 = alloca i8*
%2 = alloca [64 x i8]
%3 = bitcast [64 x i8]* %2 to i8*
%4 = bitcast i8* %3 to [64 x i8]*
%5 = getelementptr inbounds [64 x i8], [64 x i8]* %4, i32 0, i32 0
store i8 42, i8* %5
%6 = load i8, i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0)
%7 = sext i8 %6 to i32
%8 = icmp eq i32 %7, 42
br i1 %8, label %9, label %232
9: ; preds = %0
%10 = call i64 @detectPresence(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%14 = call i64 @strcpy(i8* %13, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
br label %26
15: ; preds = %9
%16 = call i64 (...) @dialogNameOnly()
%17 = icmp ne i64 %16, 0
br i1 %17, label %21, label %18
18: ; preds = %15
%19 = call i64 (...) @whiptailPresentOnly()
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %18, %15
%22 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%23 = call i64 @strcpy(i8* %22, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %25
24: ; preds = %18
store i8* null, i8** %1
br label %237
25: ; preds = %21
br label %26
26: ; preds = %25, %12
%27 = call i64 (...) @isDarwin()
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %42
29: ; preds = %26
%30 = call i64 @strcpy(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %39
32: ; preds = %29
%33 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %39
35: ; preds = %32
%36 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.4, i64 0, i64 0))
%37 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%38 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %37)
br label %41
39: ; preds = %32, %29
%40 = call i64 @strcpy(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0))
br label %41
41: ; preds = %39, %35
br label %231
42: ; preds = %26
%43 = call i64 @strcpy(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%44 = icmp ne i64 %43, 0
br i1 %44, label %45, label %52
45: ; preds = %42
%46 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%47 = icmp ne i64 %46, 0
br i1 %47, label %48, label %52
48: ; preds = %45
%49 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.4, i64 0, i64 0))
%50 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%51 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %50)
br label %230
52: ; preds = %45, %42
%53 = call i64 @strcpy(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %62
55: ; preds = %52
%56 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%57 = icmp ne i64 %56, 0
br i1 %57, label %58, label %62
58: ; preds = %55
%59 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%60 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%61 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %60)
br label %229
62: ; preds = %55, %52
%63 = call i64 @strcpy(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %72
65: ; preds = %62
%66 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %72
68: ; preds = %65
%69 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%70 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%71 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %70)
br label %228
72: ; preds = %65, %62
%73 = call i64 @strcpy(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0))
%74 = icmp ne i64 %73, 0
br i1 %74, label %75, label %82
75: ; preds = %72
%76 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%77 = icmp ne i64 %76, 0
br i1 %77, label %78, label %82
78: ; preds = %75
%79 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%80 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%81 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %80)
br label %227
82: ; preds = %75, %72
%83 = call i64 @strcpy(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%84 = icmp ne i64 %83, 0
br i1 %84, label %85, label %92
85: ; preds = %82
%86 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%87 = icmp ne i64 %86, 0
br i1 %87, label %88, label %92
88: ; preds = %85
%89 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%90 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%91 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %90)
br label %226
92: ; preds = %85, %82
%93 = call i64 @strcpy(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%94 = icmp ne i64 %93, 0
br i1 %94, label %95, label %102
95: ; preds = %92
%96 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%97 = icmp ne i64 %96, 0
br i1 %97, label %98, label %102
98: ; preds = %95
%99 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%100 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%101 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %100)
br label %225
102: ; preds = %95, %92
%103 = call i64 @strcpy(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%104 = icmp ne i64 %103, 0
br i1 %104, label %105, label %112
105: ; preds = %102
%106 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%107 = icmp ne i64 %106, 0
br i1 %107, label %108, label %112
108: ; preds = %105
%109 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%110 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%111 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %110)
br label %224
112: ; preds = %105, %102
%113 = call i64 @strcpy(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
%114 = icmp ne i64 %113, 0
br i1 %114, label %115, label %122
115: ; preds = %112
%116 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%117 = icmp ne i64 %116, 0
br i1 %117, label %118, label %122
118: ; preds = %115
%119 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%120 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%121 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %120)
br label %223
122: ; preds = %115, %112
%123 = call i64 @strcpy(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
%124 = icmp ne i64 %123, 0
br i1 %124, label %125, label %132
125: ; preds = %122
%126 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%127 = icmp ne i64 %126, 0
br i1 %127, label %128, label %132
128: ; preds = %125
%129 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%130 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%131 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %130)
br label %222
132: ; preds = %125, %122
%133 = call i64 @strcpy(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0))
%134 = icmp ne i64 %133, 0
br i1 %134, label %135, label %142
135: ; preds = %132
%136 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%137 = icmp ne i64 %136, 0
br i1 %137, label %138, label %142
138: ; preds = %135
%139 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%140 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%141 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %140)
br label %221
142: ; preds = %135, %132
%143 = call i64 @strcpy(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0))
%144 = icmp ne i64 %143, 0
br i1 %144, label %145, label %152
145: ; preds = %142
%146 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%147 = icmp ne i64 %146, 0
br i1 %147, label %148, label %152
148: ; preds = %145
%149 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%150 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%151 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %150)
br label %220
152: ; preds = %145, %142
%153 = call i64 @strcpy(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.19, i64 0, i64 0))
%154 = icmp ne i64 %153, 0
br i1 %154, label %155, label %162
155: ; preds = %152
%156 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%157 = icmp ne i64 %156, 0
br i1 %157, label %158, label %162
158: ; preds = %155
%159 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%160 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%161 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %160)
br label %219
162: ; preds = %155, %152
%163 = call i64 @strcpy(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0))
%164 = icmp ne i64 %163, 0
br i1 %164, label %165, label %172
165: ; preds = %162
%166 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%167 = icmp ne i64 %166, 0
br i1 %167, label %168, label %172
168: ; preds = %165
%169 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%170 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%171 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %170)
br label %218
172: ; preds = %165, %162
%173 = call i64 @strcpy(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0))
%174 = icmp ne i64 %173, 0
br i1 %174, label %175, label %182
175: ; preds = %172
%176 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%177 = icmp ne i64 %176, 0
br i1 %177, label %178, label %182
178: ; preds = %175
%179 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.22, i64 0, i64 0))
%180 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%181 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %180)
br label %217
182: ; preds = %175, %172
%183 = call i64 @strcpy(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0))
%184 = icmp ne i64 %183, 0
br i1 %184, label %185, label %192
185: ; preds = %182
%186 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%187 = icmp ne i64 %186, 0
br i1 %187, label %188, label %192
188: ; preds = %185
%189 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%190 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%191 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %190)
br label %216
192: ; preds = %185, %182
%193 = call i64 @strcpy(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0))
%194 = icmp ne i64 %193, 0
br i1 %194, label %195, label %202
195: ; preds = %192
%196 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%197 = icmp ne i64 %196, 0
br i1 %197, label %198, label %202
198: ; preds = %195
%199 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%200 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%201 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %200)
br label %215
202: ; preds = %195, %192
%203 = call i64 @strcpy(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0))
%204 = icmp ne i64 %203, 0
br i1 %204, label %205, label %212
205: ; preds = %202
%206 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%207 = icmp ne i64 %206, 0
br i1 %207, label %208, label %212
208: ; preds = %205
%209 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%210 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%211 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %210)
br label %214
212: ; preds = %205, %202
%213 = call i64 @strcpy(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0))
br label %214
214: ; preds = %212, %208
br label %215
215: ; preds = %214, %198
br label %216
216: ; preds = %215, %188
br label %217
217: ; preds = %216, %178
br label %218
218: ; preds = %217, %168
br label %219
219: ; preds = %218, %158
br label %220
220: ; preds = %219, %148
br label %221
221: ; preds = %220, %138
br label %222
222: ; preds = %221, %128
br label %223
223: ; preds = %222, %118
br label %224
224: ; preds = %223, %108
br label %225
225: ; preds = %224, %98
br label %226
226: ; preds = %225, %88
br label %227
227: ; preds = %226, %78
br label %228
228: ; preds = %227, %68
br label %229
229: ; preds = %228, %58
br label %230
230: ; preds = %229, %48
br label %231
231: ; preds = %230, %41
br label %232
232: ; preds = %231, %0
%233 = call i64 @strlen(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%234 = icmp ne i64 %233, 0
br i1 %234, label %235, label %236
235: ; preds = %232
store i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8** %1
br label %237
236: ; preds = %232
store i8* null, i8** %1
br label %237
237: ; preds = %236, %235, %24
%238 = load i8*, i8** %1
ret i8* %238
}

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