#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 *);
char *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 (strlen(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, "konsole") &&
               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, "xfce4-terminal") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -x ");
      strcat(lTerminalName, lShellName);
    } else if (strcpy(lTerminalName, "mate-terminal") &&
               detectPresence(lTerminalName)) {
      strcat(lTerminalName, " -x ");
      strcat(lTerminalName, lShellName);
    } else if (strcpy(lTerminalName, "Eterm") &&
               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, "pterm") &&
               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 {
      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    16e4 <terminalName+0x564>
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    1228 <terminalName+0xa8>
mov    $0x0,%al
call   1090 <dialogNameOnly@plt>
mov    %rax,%rdi
call   1050 <strlen@plt>
cmp    $0x0,%rax
jne    1201 <terminalName+0x81>
mov    $0x0,%al
call   1030 <whiptailPresentOnly@plt>
cmp    $0x0,%rax
je     1216 <terminalName+0x96>
lea    -0x50(%rbp),%rdi
lea    0xdfb(%rip),%rsi
call   1040 <strcpy@plt>
jmp    1223 <terminalName+0xa3>
movq   $0x0,-0x8(%rbp)
jmp    1712 <terminalName+0x592>
jmp    1228 <terminalName+0xa8>
mov    $0x0,%al
call   1070 <isDarwin@plt>
cmp    $0x0,%rax
je     12ac <terminalName+0x12c>
lea    0x2e30(%rip),%rdi
lea    0xdc7(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     1294 <terminalName+0x114>
lea    0x2e13(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     1294 <terminalName+0x114>
lea    0x2dfd(%rip),%rdi
lea    0xda7(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2de6(%rip),%rdi
call   10a0 <strcat@plt>
jmp    12a7 <terminalName+0x127>
lea    0x2dd5(%rip),%rdi
lea    0xd6b(%rip),%rsi
call   1040 <strcpy@plt>
jmp    16df <terminalName+0x55f>
lea    0x2dbd(%rip),%rdi
lea    0xd61(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     1307 <terminalName+0x187>
lea    0x2da0(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     1307 <terminalName+0x187>
lea    0x2d8a(%rip),%rdi
lea    0xd34(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2d73(%rip),%rdi
call   10a0 <strcat@plt>
jmp    16da <terminalName+0x55a>
lea    0x2d62(%rip),%rdi
lea    0xd46(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     1362 <terminalName+0x1e2>
lea    0x2d45(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     1362 <terminalName+0x1e2>
lea    0x2d2f(%rip),%rdi
lea    0xd89(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2d18(%rip),%rdi
call   10a0 <strcat@plt>
jmp    16d5 <terminalName+0x555>
lea    0x2d07(%rip),%rdi
lea    0xcf6(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     13bd <terminalName+0x23d>
lea    0x2cea(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     13bd <terminalName+0x23d>
lea    0x2cd4(%rip),%rdi
lea    0xcb3(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2cbd(%rip),%rdi
call   10a0 <strcat@plt>
jmp    16d0 <terminalName+0x550>
lea    0x2cac(%rip),%rdi
lea    0xca6(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     1418 <terminalName+0x298>
lea    0x2c8f(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     1418 <terminalName+0x298>
lea    0x2c79(%rip),%rdi
lea    0xc58(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2c62(%rip),%rdi
call   10a0 <strcat@plt>
jmp    16cb <terminalName+0x54b>
lea    0x2c51(%rip),%rdi
lea    0xc53(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     1473 <terminalName+0x2f3>
lea    0x2c34(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     1473 <terminalName+0x2f3>
lea    0x2c1e(%rip),%rdi
lea    0xbfd(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2c07(%rip),%rdi
call   10a0 <strcat@plt>
jmp    16c6 <terminalName+0x546>
lea    0x2bf6(%rip),%rdi
lea    0xbfe(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     14ce <terminalName+0x34e>
lea    0x2bd9(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     14ce <terminalName+0x34e>
lea    0x2bc3(%rip),%rdi
lea    0xc1d(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2bac(%rip),%rdi
call   10a0 <strcat@plt>
jmp    16c1 <terminalName+0x541>
lea    0x2b9b(%rip),%rdi
lea    0xbb2(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     1529 <terminalName+0x3a9>
lea    0x2b7e(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     1529 <terminalName+0x3a9>
lea    0x2b68(%rip),%rdi
lea    0xbc2(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2b51(%rip),%rdi
call   10a0 <strcat@plt>
jmp    16bc <terminalName+0x53c>
lea    0x2b40(%rip),%rdi
lea    0xb65(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     1584 <terminalName+0x404>
lea    0x2b23(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     1584 <terminalName+0x404>
lea    0x2b0d(%rip),%rdi
lea    0xaec(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2af6(%rip),%rdi
call   10a0 <strcat@plt>
jmp    16b7 <terminalName+0x537>
lea    0x2ae5(%rip),%rdi
lea    0xb10(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     15df <terminalName+0x45f>
lea    0x2ac8(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     15df <terminalName+0x45f>
lea    0x2ab2(%rip),%rdi
lea    0xa91(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2a9b(%rip),%rdi
call   10a0 <strcat@plt>
jmp    16b2 <terminalName+0x532>
lea    0x2a8a(%rip),%rdi
lea    0xabd(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     163a <terminalName+0x4ba>
lea    0x2a6d(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     163a <terminalName+0x4ba>
lea    0x2a57(%rip),%rdi
lea    0xa36(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2a40(%rip),%rdi
call   10a0 <strcat@plt>
jmp    16ad <terminalName+0x52d>
lea    0x2a2f(%rip),%rdi
lea    0xa68(%rip),%rsi
call   1040 <strcpy@plt>
cmp    $0x0,%rax
je     1695 <terminalName+0x515>
lea    0x2a12(%rip),%rdi
call   1080 <detectPresence@plt>
cmp    $0x0,%rax
je     1695 <terminalName+0x515>
lea    0x29fc(%rip),%rdi
lea    0xa44(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x29e5(%rip),%rdi
call   10a0 <strcat@plt>
jmp    16a8 <terminalName+0x528>
lea    0x29d4(%rip),%rdi
lea    0x96a(%rip),%rsi
call   1040 <strcpy@plt>
jmp    16ad <terminalName+0x52d>
jmp    16b2 <terminalName+0x532>
jmp    16b7 <terminalName+0x537>
jmp    16bc <terminalName+0x53c>
jmp    16c1 <terminalName+0x541>
jmp    16c6 <terminalName+0x546>
jmp    16cb <terminalName+0x54b>
jmp    16d0 <terminalName+0x550>
jmp    16d5 <terminalName+0x555>
jmp    16da <terminalName+0x55a>
jmp    16df <terminalName+0x55f>
jmp    16e4 <terminalName+0x564>
lea    0x2985(%rip),%rdi
call   1050 <strlen@plt>
cmp    $0x0,%rax
je     170a <terminalName+0x58a>
lea    0x296f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1712 <terminalName+0x592>
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    1332 <terminalName+0x1d2>
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
cmpb   $0x0,(%rax)
jne    11cd <terminalName+0x6d>
xor    %ebx,%ebx
xor    %eax,%eax
call   1030 <whiptailPresentOnly@plt>
test   %rax,%rax
je     1346 <terminalName+0x1e6>
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    1332 <terminalName+0x1d2>
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    131f <terminalName+0x1bf>
lea    0x2dff(%rip),%rdi
lea    0xdf3(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     1296 <terminalName+0x136>
lea    0x2de7(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
je     1296 <terminalName+0x136>
lea    0x2dd6(%rip),%rbx
lea    0xe40(%rip),%rsi
jmp    131f <terminalName+0x1bf>
lea    0x2dc3(%rip),%rdi
lea    0xdc2(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     12bf <terminalName+0x15f>
lea    0x2dab(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    1311 <terminalName+0x1b1>
lea    0x2d9a(%rip),%rdi
lea    0xda4(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     12e8 <terminalName+0x188>
lea    0x2d82(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    1311 <terminalName+0x1b1>
lea    0x2d71(%rip),%rdi
lea    0xd83(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     1351 <terminalName+0x1f1>
lea    0x2d59(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
je     1351 <terminalName+0x1f1>
lea    0x2d48(%rip),%rbx
lea    0xd37(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcat@plt>
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1080 <strcat@plt>
lea    0x2d27(%rip),%rax
xor    %ebx,%ebx
cmpb   $0x0,0x2d1e(%rip)
cmovne %rax,%rbx
mov    %rbx,%rax
add    $0x48,%rsp
pop    %rbx
pop    %r14
ret
lea    0x2d08(%rip),%rdi
lea    0xd20(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     137e <terminalName+0x21e>
lea    0x2cf0(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    1283 <terminalName+0x123>
lea    0x2cdb(%rip),%rdi
lea    0xd02(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     13ab <terminalName+0x24b>
lea    0x2cc3(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    1283 <terminalName+0x123>
lea    0x2cae(%rip),%rdi
lea    0xce3(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     13d8 <terminalName+0x278>
lea    0x2c96(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    1311 <terminalName+0x1b1>
lea    0x2c81(%rip),%rdi
lea    0xcbc(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     1405 <terminalName+0x2a5>
lea    0x2c69(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    1311 <terminalName+0x1b1>
lea    0x2c54(%rip),%rdi
lea    0xc97(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     1432 <terminalName+0x2d2>
lea    0x2c3c(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    1311 <terminalName+0x1b1>
lea    0x2c27(%rip),%rdi
lea    0xc70(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     120d <terminalName+0xad>
lea    0x2c0b(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
je     120d <terminalName+0xad>
lea    0x2bf6(%rip),%rbx
lea    0xc4e(%rip),%rsi
jmp    131f <terminalName+0x1bf>

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 = [8 x i8] c"konsole\00"
@.str.12 = [6 x i8] c"kterm\00"
@.str.13 = [15 x i8] c"xfce4-terminal\00"
@.str.14 = [14 x i8] c"mate-terminal\00"
@.str.15 = [6 x i8] c"Eterm\00"
@.str.16 = [8 x i8] c"evilvte\00"
@.str.17 = [6 x i8] c"pterm\00"
@.str.18 = [15 x i8] c"gnome-terminal\00"
@.str.19 = [23 x i8] c" --disable-factory -x \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 %167
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 %27
15: ; preds = %9
%16 = call i8* (...) @dialogNameOnly()
%17 = call i64 @strlen(i8* %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %22, label %19
19: ; preds = %15
%20 = call i64 (...) @whiptailPresentOnly()
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %19, %15
%23 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%24 = call i64 @strcpy(i8* %23, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %26
25: ; preds = %19
store i8* null, i8** %1
br label %172
26: ; preds = %22
br label %27
27: ; preds = %26, %12
%28 = call i64 (...) @isDarwin()
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %43
30: ; preds = %27
%31 = 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))
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %40
33: ; preds = %30
%34 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %40
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 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%39 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %38)
br label %42
40: ; preds = %33, %30
%41 = 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 %42
42: ; preds = %40, %36
br label %166
43: ; preds = %27
%44 = 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))
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %53
46: ; preds = %43
%47 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%48 = icmp ne i64 %47, 0
br i1 %48, label %49, label %53
49: ; preds = %46
%50 = 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))
%51 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%52 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %51)
br label %165
53: ; preds = %46, %43
%54 = 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))
%55 = icmp ne i64 %54, 0
br i1 %55, label %56, label %63
56: ; preds = %53
%57 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%58 = icmp ne i64 %57, 0
br i1 %58, label %59, label %63
59: ; preds = %56
%60 = 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))
%61 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%62 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %61)
br label %164
63: ; preds = %56, %53
%64 = 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))
%65 = icmp ne i64 %64, 0
br i1 %65, label %66, label %73
66: ; preds = %63
%67 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%68 = icmp ne i64 %67, 0
br i1 %68, label %69, label %73
69: ; preds = %66
%70 = 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))
%71 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%72 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %71)
br label %163
73: ; preds = %66, %63
%74 = 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.11, i64 0, i64 0))
%75 = icmp ne i64 %74, 0
br i1 %75, label %76, label %83
76: ; preds = %73
%77 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%78 = icmp ne i64 %77, 0
br i1 %78, label %79, label %83
79: ; preds = %76
%80 = 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))
%81 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%82 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %81)
br label %162
83: ; preds = %76, %73
%84 = 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.12, i64 0, i64 0))
%85 = icmp ne i64 %84, 0
br i1 %85, label %86, label %93
86: ; preds = %83
%87 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%88 = icmp ne i64 %87, 0
br i1 %88, label %89, label %93
89: ; preds = %86
%90 = 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))
%91 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%92 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %91)
br label %161
93: ; preds = %86, %83
%94 = 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.13, i64 0, i64 0))
%95 = icmp ne i64 %94, 0
br i1 %95, label %96, label %103
96: ; preds = %93
%97 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%98 = icmp ne i64 %97, 0
br i1 %98, label %99, label %103
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.8, i64 0, i64 0))
%101 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%102 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %101)
br label %160
103: ; preds = %96, %93
%104 = 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.14, i64 0, i64 0))
%105 = icmp ne i64 %104, 0
br i1 %105, label %106, label %113
106: ; preds = %103
%107 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%108 = icmp ne i64 %107, 0
br i1 %108, label %109, label %113
109: ; preds = %106
%110 = 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))
%111 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%112 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %111)
br label %159
113: ; preds = %106, %103
%114 = 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))
%115 = icmp ne i64 %114, 0
br i1 %115, label %116, label %123
116: ; preds = %113
%117 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%118 = icmp ne i64 %117, 0
br i1 %118, label %119, label %123
119: ; preds = %116
%120 = 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))
%121 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%122 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %121)
br label %158
123: ; preds = %116, %113
%124 = 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))
%125 = icmp ne i64 %124, 0
br i1 %125, label %126, label %133
126: ; preds = %123
%127 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%128 = icmp ne i64 %127, 0
br i1 %128, label %129, label %133
129: ; preds = %126
%130 = 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))
%131 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%132 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %131)
br label %157
133: ; preds = %126, %123
%134 = 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.17, i64 0, i64 0))
%135 = icmp ne i64 %134, 0
br i1 %135, label %136, label %143
136: ; preds = %133
%137 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%138 = icmp ne i64 %137, 0
br i1 %138, label %139, label %143
139: ; preds = %136
%140 = 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))
%141 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%142 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %141)
br label %156
143: ; preds = %136, %133
%144 = 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.18, i64 0, i64 0))
%145 = icmp ne i64 %144, 0
br i1 %145, label %146, label %153
146: ; preds = %143
%147 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%148 = icmp ne i64 %147, 0
br i1 %148, label %149, label %153
149: ; preds = %146
%150 = 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.19, i64 0, i64 0))
%151 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%152 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %151)
br label %155
153: ; preds = %146, %143
%154 = 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 %155
155: ; preds = %153, %149
br label %156
156: ; preds = %155, %139
br label %157
157: ; preds = %156, %129
br label %158
158: ; preds = %157, %119
br label %159
159: ; preds = %158, %109
br label %160
160: ; preds = %159, %99
br label %161
161: ; preds = %160, %89
br label %162
162: ; preds = %161, %79
br label %163
163: ; preds = %162, %69
br label %164
164: ; preds = %163, %59
br label %165
165: ; preds = %164, %49
br label %166
166: ; preds = %165, %42
br label %167
167: ; preds = %166, %0
%168 = call i64 @strlen(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%169 = icmp ne i64 %168, 0
br i1 %169, label %170, label %171
170: ; preds = %167
store i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8** %1
br label %172
171: ; preds = %167
store i8* null, i8** %1
br label %172
172: ; preds = %171, %170, %25
%173 = load i8*, i8** %1
ret i8* %173
}

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 = [8 x i8] c"konsole\00"
@.str.12 = [6 x i8] c"kterm\00"
@.str.13 = [15 x i8] c"xfce4-terminal\00"
@.str.14 = [14 x i8] c"mate-terminal\00"
@.str.15 = [6 x i8] c"Eterm\00"
@.str.16 = [8 x i8] c"evilvte\00"
@.str.17 = [6 x i8] c"pterm\00"
@.str.18 = [15 x i8] c"gnome-terminal\00"
@.str.19 = [23 x i8] c" --disable-factory -x \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 %132
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 %15
8: ; preds = %5
%9 = tail call i8* (...) @dialogNameOnly()
%10 = load i8, i8* %9
%11 = icmp eq i8 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %8
%13 = tail call i64 (...) @whiptailPresentOnly()
%14 = icmp eq i64 %13, 0
br i1 %14, label %136, label %15
15: ; preds = %8, %12, %5
%16 = 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), %12 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), %8 ]
%17 = call i64 @strcpy(i8* %2, i8* %16)
%18 = call i64 (...) @isDarwin()
%19 = icmp eq i64 %18, 0
br i1 %19, label %31, label %20
20: ; preds = %15
%21 = 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))
%22 = icmp eq i64 %21, 0
br i1 %22, label %29, label %23
23: ; preds = %20
%24 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %29, label %26
26: ; preds = %23
%27 = 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))
%28 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %2)
br label %132
29: ; preds = %23, %20
%30 = 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 %132
31: ; preds = %15
%32 = 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))
%33 = icmp eq i64 %32, 0
br i1 %33, label %40, label %34
34: ; preds = %31
%35 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %40, label %37
37: ; preds = %34
%38 = 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))
%39 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %2)
br label %132
40: ; preds = %34, %31
%41 = 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))
%42 = icmp eq i64 %41, 0
br i1 %42, label %49, label %43
43: ; preds = %40
%44 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %49, label %46
46: ; preds = %43
%47 = 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))
%48 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %2)
br label %132
49: ; preds = %43, %40
%50 = 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))
%51 = icmp eq i64 %50, 0
br i1 %51, label %58, label %52
52: ; preds = %49
%53 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %58, label %55
55: ; preds = %52
%56 = 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))
%57 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %2)
br label %132
58: ; preds = %52, %49
%59 = 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.11, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %67, label %61
61: ; preds = %58
%62 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %67, label %64
64: ; preds = %61
%65 = 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))
%66 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %2)
br label %132
67: ; preds = %61, %58
%68 = 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.12, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
br i1 %69, label %76, label %70
70: ; preds = %67
%71 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%72 = icmp eq i64 %71, 0
br i1 %72, label %76, label %73
73: ; preds = %70
%74 = 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))
%75 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %2)
br label %132
76: ; preds = %70, %67
%77 = 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.13, i64 0, i64 0))
%78 = icmp eq i64 %77, 0
br i1 %78, label %85, label %79
79: ; preds = %76
%80 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%81 = icmp eq i64 %80, 0
br i1 %81, label %85, label %82
82: ; preds = %79
%83 = 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))
%84 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %2)
br label %132
85: ; preds = %79, %76
%86 = 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.14, i64 0, i64 0))
%87 = icmp eq i64 %86, 0
br i1 %87, label %94, label %88
88: ; preds = %85
%89 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%90 = icmp eq i64 %89, 0
br i1 %90, label %94, label %91
91: ; preds = %88
%92 = 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))
%93 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %2)
br label %132
94: ; preds = %88, %85
%95 = 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))
%96 = icmp eq i64 %95, 0
br i1 %96, label %103, label %97
97: ; preds = %94
%98 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%99 = icmp eq i64 %98, 0
br i1 %99, label %103, label %100
100: ; preds = %97
%101 = 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))
%102 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %2)
br label %132
103: ; preds = %97, %94
%104 = 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))
%105 = icmp eq i64 %104, 0
br i1 %105, label %112, label %106
106: ; preds = %103
%107 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%108 = icmp eq i64 %107, 0
br i1 %108, label %112, label %109
109: ; preds = %106
%110 = 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))
%111 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %2)
br label %132
112: ; preds = %106, %103
%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.17, i64 0, i64 0))
%114 = icmp eq i64 %113, 0
br i1 %114, label %121, label %115
115: ; preds = %112
%116 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%117 = icmp eq i64 %116, 0
br i1 %117, label %121, label %118
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 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %2)
br label %132
121: ; preds = %115, %112
%122 = 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.18, i64 0, i64 0))
%123 = icmp eq i64 %122, 0
br i1 %123, label %130, label %124
124: ; preds = %121
%125 = call i64 @detectPresence(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0))
%126 = icmp eq i64 %125, 0
br i1 %126, label %130, label %127
127: ; preds = %124
%128 = 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.19, i64 0, i64 0))
%129 = call i32 @strcat(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8* %2)
br label %132
130: ; preds = %124, %121
%131 = 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 %132
132: ; preds = %29, %26, %46, %64, %82, %100, %118, %130, %127, %109, %91, %73, %55, %37, %0
%133 = load i8, i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0)
%134 = icmp eq i8 %133, 0
%135 = select i1 %134, i8* null, i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0)
br label %136
136: ; preds = %132, %12
%137 = phi i8* [ null, %12 ], [ %135, %132 ]
ret i8* %137
}