#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, "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 {
      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    167c <terminalName+0x4fc>
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    16aa <terminalName+0x52a>
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    1677 <terminalName+0x4f7>
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    1672 <terminalName+0x4f2>
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    0xd26(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2d20(%rip),%rdi
call   10a0 <strcat@plt>
jmp    166d <terminalName+0x4ed>
lea    0x2d0f(%rip),%rdi
lea    0xd03(%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    1668 <terminalName+0x4e8>
lea    0x2cb4(%rip),%rdi
lea    0xcb3(%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    0xc60(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2c6a(%rip),%rdi
call   10a0 <strcat@plt>
jmp    1663 <terminalName+0x4e3>
lea    0x2c59(%rip),%rdi
lea    0xc60(%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    165e <terminalName+0x4de>
lea    0x2bfe(%rip),%rdi
lea    0xc0b(%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    0xbba(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2bb4(%rip),%rdi
call   10a0 <strcat@plt>
jmp    1659 <terminalName+0x4d9>
lea    0x2ba3(%rip),%rdi
lea    0xbbf(%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    0xb5f(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x50(%rbp),%rsi
lea    0x2b59(%rip),%rdi
call   10a0 <strcat@plt>
jmp    1654 <terminalName+0x4d4>
lea    0x2b48(%rip),%rdi
lea    0xb72(%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    164f <terminalName+0x4cf>
lea    0x2aed(%rip),%rdi
lea    0xb1d(%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    164a <terminalName+0x4ca>
lea    0x2a92(%rip),%rdi
lea    0xaca(%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    1645 <terminalName+0x4c5>
lea    0x2a37(%rip),%rdi
lea    0x9cd(%rip),%rsi
call   1040 <strcpy@plt>
jmp    164a <terminalName+0x4ca>
jmp    164f <terminalName+0x4cf>
jmp    1654 <terminalName+0x4d4>
jmp    1659 <terminalName+0x4d9>
jmp    165e <terminalName+0x4de>
jmp    1663 <terminalName+0x4e3>
jmp    1668 <terminalName+0x4e8>
jmp    166d <terminalName+0x4ed>
jmp    1672 <terminalName+0x4f2>
jmp    1677 <terminalName+0x4f7>
jmp    167c <terminalName+0x4fc>
lea    0x29ed(%rip),%rdi
call   1050 <strlen@plt>
cmp    $0x0,%rax
je     16a2 <terminalName+0x522>
lea    0x29d7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    16aa <terminalName+0x52a>
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
test   %rax,%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    0xdd5(%rip),%rsi
jmp    131f <terminalName+0x1bf>
lea    0x2dc3(%rip),%rdi
lea    0xdc7(%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    0xda9(%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    0xd88(%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    0xd25(%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    0xd07(%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    0xce8(%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    0xcc1(%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    0xc9c(%rip),%rsi
call   1040 <strcpy@plt>
test   %rax,%rax
je     120d <terminalName+0xad>
lea    0x2c38(%rip),%rdi
call   1060 <detectPresence@plt>
test   %rax,%rax
jne    1311 <terminalName+0x1b1>
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 = [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"
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 %155
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 %160
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 %154
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 %153
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 %152
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 %151
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 ([8 x i8], [8 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.10, 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 %150
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 ([6 x i8], [6 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 %149
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 ([15 x i8], [15 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.8, 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 %148
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 ([14 x i8], [14 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.8, 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 %147
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 %146
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 %145
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 ([6 x i8], [6 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 %144
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 ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0))
br label %144
144: ; preds = %142, %138
br label %145
145: ; preds = %144, %128
br label %146
146: ; preds = %145, %118
br label %147
147: ; preds = %146, %108
br label %148
148: ; preds = %147, %98
br label %149
149: ; preds = %148, %88
br label %150
150: ; preds = %149, %78
br label %151
151: ; preds = %150, %68
br label %152
152: ; preds = %151, %58
br label %153
153: ; preds = %152, %48
br label %154
154: ; preds = %153, %41
br label %155
155: ; preds = %154, %0
%156 = call i64 @strlen(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 %159
158: ; preds = %155
store i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0), i8** %1
br label %160
159: ; preds = %155
store i8* null, i8** %1
br label %160
160: ; preds = %159, %158, %24
%161 = load i8*, i8** %1
ret i8* %161
}

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"
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 %122
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 %126, 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 %122
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 %122
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 %122
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 %122
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 %122
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 ([8 x i8], [8 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.10, 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 %122
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 ([6 x i8], [6 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 %122
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 ([15 x i8], [15 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.8, 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 %122
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 ([14 x i8], [14 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.8, 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 %122
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 %122
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 %122
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 ([6 x i8], [6 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 %122
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 ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0))
br label %122
122: ; preds = %28, %25, %45, %63, %81, %99, %117, %120, %108, %90, %72, %54, %36, %0
%123 = load i8, i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0)
%124 = icmp eq i8 %123, 0
%125 = select i1 %124, i8* null, i8* getelementptr inbounds ([128 x i8], [128 x i8]* @terminalName.lTerminalName, i64 0, i64 0)
br label %126
126: ; preds = %122, %11
%127 = phi i8* [ null, %11 ], [ %125, %122 ]
ret i8* %127
}