; LLVM IR from christoskaramou/PhasmaEngine :: PhasmaEditor/Include/TinyFileDialogs (tinyfiledialogs)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.termios = type { i32, i32, i32, i32, i8, [32 x i8], i32, i32 }

@tinyfd_verbose = external dso_local global i32, align 4
@tinyfd_silent = external dso_local global i32, align 4
@tinyfd_forceConsole = external dso_local global i32, align 4
@tinyfd_response = external dso_local global [1024 x i8], align 16
@tinyfd_needs = external dso_local constant [351 x i8], align 16
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [177 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZL12gPython2Name = external hidden global [16 x i8], align 16
@.str.74 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [120 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZL12gPython3Name = external hidden global [16 x i8], align 16
@.str.96 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [152 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [195 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [11 x i8], align 1
@_ZL17gWarningDisplayed = external hidden global i32, align 4
@.str.146 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZL6gTitle = external hidden constant [52 x i8], align 16
@.str.147 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.163 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.165 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [12 x i8], align 1
@_ZL11gPythonName = external hidden global [16 x i8], align 16
@.str.169 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.170 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.171 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.172 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.173 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.174 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.175 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.176 = external hidden unnamed_addr constant [712 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.178 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.179 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.180 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.181 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.182 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.183 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.184 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.185 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.186 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.187 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.188 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.189 = external hidden unnamed_addr constant [6 x i8], align 1
@stdout = external global ptr, align 8
@.str.190 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.192 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.193 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.194 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.195 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.196 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.197 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.198 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #1

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL16osascriptPresentv() #3

declare i32 @printf(ptr noundef, ...) #4

declare noalias ptr @popen(ptr noundef, ptr noundef) #4

declare i32 @pclose(ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local i32 @tinyfd_messageBox(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #3 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca [1024 x i8], align 16
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i8, align 1
  %20 = alloca %struct.termios, align 4
  %21 = alloca %struct.termios, align 4
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1024, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  store ptr null, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 60, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 60, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %25 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  store i8 0, ptr %25, align 16, !tbaa !11
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %31

28:                                               ; preds = %5
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = call i64 @strlen(ptr noundef %29) #9
  br label %32

31:                                               ; preds = %5
  br label %32

32:                                               ; preds = %31, %28
  %33 = phi i64 [ %30, %28 ], [ 0, %31 ]
  store i64 %33, ptr %22, align 8, !tbaa !12
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %39

36:                                               ; preds = %32
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = call i64 @strlen(ptr noundef %37) #9
  br label %40

39:                                               ; preds = %32
  br label %40

40:                                               ; preds = %39, %36
  %41 = phi i64 [ %38, %36 ], [ 0, %39 ]
  store i64 %41, ptr %23, align 8, !tbaa !12
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %48

44:                                               ; preds = %40
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = call i32 @strcmp(ptr noundef %45, ptr noundef @.str.10) #9
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %54

48:                                               ; preds = %44, %40
  %49 = load i64, ptr %22, align 8, !tbaa !12
  %50 = add i64 1024, %49
  %51 = load i64, ptr %23, align 8, !tbaa !12
  %52 = add i64 %50, %51
  %53 = call noalias ptr @malloc(i64 noundef %52) #10
  store ptr %53, ptr %13, align 8, !tbaa !5
  br label %54

54:                                               ; preds = %48, %44
  %55 = call noundef i32 @_ZL16osascriptPresentv()
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %212

57:                                               ; preds = %54
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %66

60:                                               ; preds = %57
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = call i32 @strcmp(ptr noundef %61, ptr noundef @.str.10) #9
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %66, label %64

64:                                               ; preds = %60
  %65 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.11) #8
  store i32 1, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

66:                                               ; preds = %60, %57
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = call ptr @strcpy(ptr noundef %67, ptr noundef @.str.12) #8
  %69 = call noundef i32 @_ZL12osx9orBetterv()
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %74, label %71

71:                                               ; preds = %66
  %72 = load ptr, ptr %13, align 8, !tbaa !5
  %73 = call ptr @strcat(ptr noundef %72, ptr noundef @.str.13) #8
  br label %74

74:                                               ; preds = %71, %66
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  %76 = call ptr @strcat(ptr noundef %75, ptr noundef @.str.14) #8
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %87

79:                                               ; preds = %74
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = call i64 @strlen(ptr noundef %80) #9
  %82 = icmp ne i64 %81, 0
  br i1 %82, label %83, label %87

83:                                               ; preds = %79
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = call ptr @strcat(ptr noundef %84, ptr noundef %85) #8
  br label %87

87:                                               ; preds = %83, %79, %74
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = call ptr @strcat(ptr noundef %88, ptr noundef @.str.15) #8
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = icmp ne ptr %90, null
  br i1 %91, label %92, label %104

92:                                               ; preds = %87
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = call i64 @strlen(ptr noundef %93) #9
  %95 = icmp ne i64 %94, 0
  br i1 %95, label %96, label %104

96:                                               ; preds = %92
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  %98 = call ptr @strcat(ptr noundef %97, ptr noundef @.str.16) #8
  %99 = load ptr, ptr %13, align 8, !tbaa !5
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = call ptr @strcat(ptr noundef %99, ptr noundef %100) #8
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = call ptr @strcat(ptr noundef %102, ptr noundef @.str.15) #8
  br label %104

104:                                              ; preds = %96, %92, %87
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = call ptr @strcat(ptr noundef %105, ptr noundef @.str.17) #8
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = icmp ne ptr %107, null
  br i1 %108, label %109, label %116

109:                                              ; preds = %104
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = call i32 @strcmp(ptr noundef @.str.18, ptr noundef %110) #9
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %116, label %113

113:                                              ; preds = %109
  %114 = load ptr, ptr %13, align 8, !tbaa !5
  %115 = call ptr @strcat(ptr noundef %114, ptr noundef @.str.19) #8
  br label %130

116:                                              ; preds = %109, %104
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = icmp ne ptr %117, null
  br i1 %118, label %119, label %126

119:                                              ; preds = %116
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = call i32 @strcmp(ptr noundef @.str.20, ptr noundef %120) #9
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %126, label %123

123:                                              ; preds = %119
  %124 = load ptr, ptr %13, align 8, !tbaa !5
  %125 = call ptr @strcat(ptr noundef %124, ptr noundef @.str.21) #8
  br label %129

126:                                              ; preds = %119, %116
  %127 = load ptr, ptr %13, align 8, !tbaa !5
  %128 = call ptr @strcat(ptr noundef %127, ptr noundef @.str.22) #8
  br label %129

129:                                              ; preds = %126, %123
  br label %130

130:                                              ; preds = %129, %113
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = icmp ne ptr %131, null
  br i1 %132, label %133, label %144

133:                                              ; preds = %130
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = call i32 @strcmp(ptr noundef @.str.23, ptr noundef %134) #9
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %144, label %137

137:                                              ; preds = %133
  %138 = load i32, ptr %11, align 4, !tbaa !9
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %143, label %140

140:                                              ; preds = %137
  %141 = load ptr, ptr %13, align 8, !tbaa !5
  %142 = call ptr @strcat(ptr noundef %141, ptr noundef @.str.24) #8
  br label %143

143:                                              ; preds = %140, %137
  br label %195

144:                                              ; preds = %133, %130
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = icmp ne ptr %145, null
  br i1 %146, label %147, label %165

147:                                              ; preds = %144
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = call i32 @strcmp(ptr noundef @.str.25, ptr noundef %148) #9
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %165, label %151

151:                                              ; preds = %147
  %152 = load ptr, ptr %13, align 8, !tbaa !5
  %153 = call ptr @strcat(ptr noundef %152, ptr noundef @.str.26) #8
  %154 = load i32, ptr %11, align 4, !tbaa !9
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %159

156:                                              ; preds = %151
  %157 = load ptr, ptr %13, align 8, !tbaa !5
  %158 = call ptr @strcat(ptr noundef %157, ptr noundef @.str.27) #8
  br label %162

159:                                              ; preds = %151
  %160 = load ptr, ptr %13, align 8, !tbaa !5
  %161 = call ptr @strcat(ptr noundef %160, ptr noundef @.str.28) #8
  br label %162

162:                                              ; preds = %159, %156
  %163 = load ptr, ptr %13, align 8, !tbaa !5
  %164 = call ptr @strcat(ptr noundef %163, ptr noundef @.str.29) #8
  br label %194

165:                                              ; preds = %147, %144
  %166 = load ptr, ptr %9, align 8, !tbaa !5
  %167 = icmp ne ptr %166, null
  br i1 %167, label %168, label %188

168:                                              ; preds = %165
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = call i32 @strcmp(ptr noundef @.str.30, ptr noundef %169) #9
  %171 = icmp ne i32 %170, 0
  br i1 %171, label %188, label %172

172:                                              ; preds = %168
  %173 = load ptr, ptr %13, align 8, !tbaa !5
  %174 = call ptr @strcat(ptr noundef %173, ptr noundef @.str.31) #8
  %175 = load i32, ptr %11, align 4, !tbaa !9
  switch i32 %175, label %185 [
    i32 1, label %176
    i32 2, label %179
    i32 0, label %182
  ]

176:                                              ; preds = %172
  %177 = load ptr, ptr %13, align 8, !tbaa !5
  %178 = call ptr @strcat(ptr noundef %177, ptr noundef @.str.27) #8
  br label %185

179:                                              ; preds = %172
  %180 = load ptr, ptr %13, align 8, !tbaa !5
  %181 = call ptr @strcat(ptr noundef %180, ptr noundef @.str.28) #8
  br label %185

182:                                              ; preds = %172
  %183 = load ptr, ptr %13, align 8, !tbaa !5
  %184 = call ptr @strcat(ptr noundef %183, ptr noundef @.str.24) #8
  br label %185

185:                                              ; preds = %182, %179, %176, %172
  %186 = load ptr, ptr %13, align 8, !tbaa !5
  %187 = call ptr @strcat(ptr noundef %186, ptr noundef @.str.32) #8
  br label %193

188:                                              ; preds = %168, %165
  %189 = load ptr, ptr %13, align 8, !tbaa !5
  %190 = call ptr @strcat(ptr noundef %189, ptr noundef @.str.33) #8
  %191 = load ptr, ptr %13, align 8, !tbaa !5
  %192 = call ptr @strcat(ptr noundef %191, ptr noundef @.str.34) #8
  br label %193

193:                                              ; preds = %188, %185
  br label %194

194:                                              ; preds = %193, %162
  br label %195

195:                                              ; preds = %194, %143
  %196 = load ptr, ptr %13, align 8, !tbaa !5
  %197 = call ptr @strcat(ptr noundef %196, ptr noundef @.str.35) #8
  %198 = load ptr, ptr %13, align 8, !tbaa !5
  %199 = call ptr @strcat(ptr noundef %198, ptr noundef @.str.36) #8
  %200 = load ptr, ptr %13, align 8, !tbaa !5
  %201 = call ptr @strcat(ptr noundef %200, ptr noundef @.str.37) #8
  %202 = load ptr, ptr %13, align 8, !tbaa !5
  %203 = call ptr @strcat(ptr noundef %202, ptr noundef @.str.38) #8
  %204 = load ptr, ptr %13, align 8, !tbaa !5
  %205 = call ptr @strcat(ptr noundef %204, ptr noundef @.str.39) #8
  %206 = call noundef i32 @_ZL12osx9orBetterv()
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %211, label %208

208:                                              ; preds = %195
  %209 = load ptr, ptr %13, align 8, !tbaa !5
  %210 = call ptr @strcat(ptr noundef %209, ptr noundef @.str.40) #8
  br label %211

211:                                              ; preds = %208, %195
  br label %1876

212:                                              ; preds = %54
  %213 = call noundef i32 @_ZL14kdialogPresentv()
  %214 = icmp ne i32 %213, 0
  br i1 %214, label %215, label %346

215:                                              ; preds = %212
  %216 = load ptr, ptr %7, align 8, !tbaa !5
  %217 = icmp ne ptr %216, null
  br i1 %217, label %218, label %224

218:                                              ; preds = %215
  %219 = load ptr, ptr %7, align 8, !tbaa !5
  %220 = call i32 @strcmp(ptr noundef %219, ptr noundef @.str.10) #9
  %221 = icmp ne i32 %220, 0
  br i1 %221, label %224, label %222

222:                                              ; preds = %218
  %223 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.41) #8
  store i32 1, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

224:                                              ; preds = %218, %215
  %225 = load ptr, ptr %13, align 8, !tbaa !5
  %226 = call ptr @strcpy(ptr noundef %225, ptr noundef @.str.41) #8
  %227 = call noundef i32 @_ZL14kdialogPresentv()
  %228 = icmp eq i32 %227, 2
  br i1 %228, label %229, label %232

229:                                              ; preds = %224
  %230 = load ptr, ptr %13, align 8, !tbaa !5
  %231 = call ptr @strcat(ptr noundef %230, ptr noundef @.str.42) #8
  br label %232

232:                                              ; preds = %229, %224
  %233 = load ptr, ptr %13, align 8, !tbaa !5
  %234 = call ptr @strcat(ptr noundef %233, ptr noundef @.str.43) #8
  %235 = load ptr, ptr %9, align 8, !tbaa !5
  %236 = icmp ne ptr %235, null
  br i1 %236, label %237, label %274

237:                                              ; preds = %232
  %238 = load ptr, ptr %9, align 8, !tbaa !5
  %239 = call i32 @strcmp(ptr noundef @.str.23, ptr noundef %238) #9
  %240 = icmp ne i32 %239, 0
  br i1 %240, label %241, label %249

241:                                              ; preds = %237
  %242 = load ptr, ptr %9, align 8, !tbaa !5
  %243 = call i32 @strcmp(ptr noundef @.str.25, ptr noundef %242) #9
  %244 = icmp ne i32 %243, 0
  br i1 %244, label %245, label %249

245:                                              ; preds = %241
  %246 = load ptr, ptr %9, align 8, !tbaa !5
  %247 = call i32 @strcmp(ptr noundef @.str.30, ptr noundef %246) #9
  %248 = icmp ne i32 %247, 0
  br i1 %248, label %274, label %249

249:                                              ; preds = %245, %241, %237
  %250 = load ptr, ptr %10, align 8, !tbaa !5
  %251 = icmp ne ptr %250, null
  br i1 %251, label %252, label %263

252:                                              ; preds = %249
  %253 = load ptr, ptr %10, align 8, !tbaa !5
  %254 = call i32 @strcmp(ptr noundef @.str.20, ptr noundef %253) #9
  %255 = icmp ne i32 %254, 0
  br i1 %255, label %256, label %260

256:                                              ; preds = %252
  %257 = load ptr, ptr %10, align 8, !tbaa !5
  %258 = call i32 @strcmp(ptr noundef @.str.18, ptr noundef %257) #9
  %259 = icmp ne i32 %258, 0
  br i1 %259, label %263, label %260

260:                                              ; preds = %256, %252
  %261 = load ptr, ptr %13, align 8, !tbaa !5
  %262 = call ptr @strcat(ptr noundef %261, ptr noundef @.str.20) #8
  br label %263

263:                                              ; preds = %260, %256, %249
  %264 = load ptr, ptr %9, align 8, !tbaa !5
  %265 = call i32 @strcmp(ptr noundef @.str.30, ptr noundef %264) #9
  %266 = icmp ne i32 %265, 0
  br i1 %266, label %270, label %267

267:                                              ; preds = %263
  %268 = load ptr, ptr %13, align 8, !tbaa !5
  %269 = call ptr @strcat(ptr noundef %268, ptr noundef @.str.30) #8
  br label %273

270:                                              ; preds = %263
  %271 = load ptr, ptr %13, align 8, !tbaa !5
  %272 = call ptr @strcat(ptr noundef %271, ptr noundef @.str.25) #8
  br label %273

273:                                              ; preds = %270, %267
  br label %299

274:                                              ; preds = %245, %232
  %275 = load ptr, ptr %10, align 8, !tbaa !5
  %276 = icmp ne ptr %275, null
  br i1 %276, label %277, label %284

277:                                              ; preds = %274
  %278 = load ptr, ptr %10, align 8, !tbaa !5
  %279 = call i32 @strcmp(ptr noundef @.str.18, ptr noundef %278) #9
  %280 = icmp ne i32 %279, 0
  br i1 %280, label %284, label %281

281:                                              ; preds = %277
  %282 = load ptr, ptr %13, align 8, !tbaa !5
  %283 = call ptr @strcat(ptr noundef %282, ptr noundef @.str.18) #8
  br label %298

284:                                              ; preds = %277, %274
  %285 = load ptr, ptr %10, align 8, !tbaa !5
  %286 = icmp ne ptr %285, null
  br i1 %286, label %287, label %294

287:                                              ; preds = %284
  %288 = load ptr, ptr %10, align 8, !tbaa !5
  %289 = call i32 @strcmp(ptr noundef @.str.20, ptr noundef %288) #9
  %290 = icmp ne i32 %289, 0
  br i1 %290, label %294, label %291

291:                                              ; preds = %287
  %292 = load ptr, ptr %13, align 8, !tbaa !5
  %293 = call ptr @strcat(ptr noundef %292, ptr noundef @.str.44) #8
  br label %297

294:                                              ; preds = %287, %284
  %295 = load ptr, ptr %13, align 8, !tbaa !5
  %296 = call ptr @strcat(ptr noundef %295, ptr noundef @.str.45) #8
  br label %297

297:                                              ; preds = %294, %291
  br label %298

298:                                              ; preds = %297, %281
  br label %299

299:                                              ; preds = %298, %273
  %300 = load ptr, ptr %13, align 8, !tbaa !5
  %301 = call ptr @strcat(ptr noundef %300, ptr noundef @.str.46) #8
  %302 = load ptr, ptr %8, align 8, !tbaa !5
  %303 = icmp ne ptr %302, null
  br i1 %303, label %304, label %308

304:                                              ; preds = %299
  %305 = load ptr, ptr %13, align 8, !tbaa !5
  %306 = load ptr, ptr %8, align 8, !tbaa !5
  %307 = call ptr @strcat(ptr noundef %305, ptr noundef %306) #8
  br label %308

308:                                              ; preds = %304, %299
  %309 = load ptr, ptr %13, align 8, !tbaa !5
  %310 = call ptr @strcat(ptr noundef %309, ptr noundef @.str.47) #8
  %311 = load ptr, ptr %9, align 8, !tbaa !5
  %312 = icmp ne ptr %311, null
  br i1 %312, label %313, label %320

313:                                              ; preds = %308
  %314 = load ptr, ptr %9, align 8, !tbaa !5
  %315 = call i32 @strcmp(ptr noundef @.str.23, ptr noundef %314) #9
  %316 = icmp ne i32 %315, 0
  br i1 %316, label %320, label %317

317:                                              ; preds = %313
  %318 = load ptr, ptr %13, align 8, !tbaa !5
  %319 = call ptr @strcat(ptr noundef %318, ptr noundef @.str.48) #8
  br label %320

320:                                              ; preds = %317, %313, %308
  %321 = load ptr, ptr %7, align 8, !tbaa !5
  %322 = icmp ne ptr %321, null
  br i1 %322, label %323, label %335

323:                                              ; preds = %320
  %324 = load ptr, ptr %7, align 8, !tbaa !5
  %325 = call i64 @strlen(ptr noundef %324) #9
  %326 = icmp ne i64 %325, 0
  br i1 %326, label %327, label %335

327:                                              ; preds = %323
  %328 = load ptr, ptr %13, align 8, !tbaa !5
  %329 = call ptr @strcat(ptr noundef %328, ptr noundef @.str.49) #8
  %330 = load ptr, ptr %13, align 8, !tbaa !5
  %331 = load ptr, ptr %7, align 8, !tbaa !5
  %332 = call ptr @strcat(ptr noundef %330, ptr noundef %331) #8
  %333 = load ptr, ptr %13, align 8, !tbaa !5
  %334 = call ptr @strcat(ptr noundef %333, ptr noundef @.str.47) #8
  br label %335

335:                                              ; preds = %327, %323, %320
  %336 = load ptr, ptr %9, align 8, !tbaa !5
  %337 = call i32 @strcmp(ptr noundef @.str.30, ptr noundef %336) #9
  %338 = icmp ne i32 %337, 0
  br i1 %338, label %342, label %339

339:                                              ; preds = %335
  %340 = load ptr, ptr %13, align 8, !tbaa !5
  %341 = call ptr @strcat(ptr noundef %340, ptr noundef @.str.50) #8
  br label %345

342:                                              ; preds = %335
  %343 = load ptr, ptr %13, align 8, !tbaa !5
  %344 = call ptr @strcat(ptr noundef %343, ptr noundef @.str.51) #8
  br label %345

345:                                              ; preds = %342, %339
  br label %1875

346:                                              ; preds = %212
  %347 = call noundef i32 @_ZL13zenityPresentv()
  %348 = icmp ne i32 %347, 0
  br i1 %348, label %358, label %349

349:                                              ; preds = %346
  %350 = call noundef i32 @_ZL17matedialogPresentv()
  %351 = icmp ne i32 %350, 0
  br i1 %351, label %358, label %352

352:                                              ; preds = %349
  %353 = call noundef i32 @_ZL20shellementaryPresentv()
  %354 = icmp ne i32 %353, 0
  br i1 %354, label %358, label %355

355:                                              ; preds = %352
  %356 = call noundef i32 @_ZL12qarmaPresentv()
  %357 = icmp ne i32 %356, 0
  br i1 %357, label %358, label %575

358:                                              ; preds = %355, %352, %349, %346
  %359 = call noundef i32 @_ZL13zenityPresentv()
  %360 = icmp ne i32 %359, 0
  br i1 %360, label %361, label %382

361:                                              ; preds = %358
  %362 = load ptr, ptr %7, align 8, !tbaa !5
  %363 = icmp ne ptr %362, null
  br i1 %363, label %364, label %370

364:                                              ; preds = %361
  %365 = load ptr, ptr %7, align 8, !tbaa !5
  %366 = call i32 @strcmp(ptr noundef %365, ptr noundef @.str.10) #9
  %367 = icmp ne i32 %366, 0
  br i1 %367, label %370, label %368

368:                                              ; preds = %364
  %369 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.52) #8
  store i32 1, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

370:                                              ; preds = %364, %361
  %371 = load ptr, ptr %13, align 8, !tbaa !5
  %372 = call ptr @strcpy(ptr noundef %371, ptr noundef @.str.53) #8
  %373 = call noundef i32 @_ZL14zenity3Presentv()
  %374 = icmp sge i32 %373, 4
  br i1 %374, label %375, label %381

375:                                              ; preds = %370
  %376 = call ptr @getenv(ptr noundef @.str.54) #8
  %377 = icmp ne ptr %376, null
  br i1 %377, label %381, label %378

378:                                              ; preds = %375
  %379 = load ptr, ptr %13, align 8, !tbaa !5
  %380 = call ptr @strcat(ptr noundef %379, ptr noundef @.str.55) #8
  br label %381

381:                                              ; preds = %378, %375, %370
  br label %432

382:                                              ; preds = %358
  %383 = call noundef i32 @_ZL17matedialogPresentv()
  %384 = icmp ne i32 %383, 0
  br i1 %384, label %385, label %397

385:                                              ; preds = %382
  %386 = load ptr, ptr %7, align 8, !tbaa !5
  %387 = icmp ne ptr %386, null
  br i1 %387, label %388, label %394

388:                                              ; preds = %385
  %389 = load ptr, ptr %7, align 8, !tbaa !5
  %390 = call i32 @strcmp(ptr noundef %389, ptr noundef @.str.10) #9
  %391 = icmp ne i32 %390, 0
  br i1 %391, label %394, label %392

392:                                              ; preds = %388
  %393 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.56) #8
  store i32 1, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

394:                                              ; preds = %388, %385
  %395 = load ptr, ptr %13, align 8, !tbaa !5
  %396 = call ptr @strcpy(ptr noundef %395, ptr noundef @.str.57) #8
  br label %431

397:                                              ; preds = %382
  %398 = call noundef i32 @_ZL20shellementaryPresentv()
  %399 = icmp ne i32 %398, 0
  br i1 %399, label %400, label %412

400:                                              ; preds = %397
  %401 = load ptr, ptr %7, align 8, !tbaa !5
  %402 = icmp ne ptr %401, null
  br i1 %402, label %403, label %409

403:                                              ; preds = %400
  %404 = load ptr, ptr %7, align 8, !tbaa !5
  %405 = call i32 @strcmp(ptr noundef %404, ptr noundef @.str.10) #9
  %406 = icmp ne i32 %405, 0
  br i1 %406, label %409, label %407

407:                                              ; preds = %403
  %408 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.58) #8
  store i32 1, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

409:                                              ; preds = %403, %400
  %410 = load ptr, ptr %13, align 8, !tbaa !5
  %411 = call ptr @strcpy(ptr noundef %410, ptr noundef @.str.59) #8
  br label %430

412:                                              ; preds = %397
  %413 = load ptr, ptr %7, align 8, !tbaa !5
  %414 = icmp ne ptr %413, null
  br i1 %414, label %415, label %421

415:                                              ; preds = %412
  %416 = load ptr, ptr %7, align 8, !tbaa !5
  %417 = call i32 @strcmp(ptr noundef %416, ptr noundef @.str.10) #9
  %418 = icmp ne i32 %417, 0
  br i1 %418, label %421, label %419

419:                                              ; preds = %415
  %420 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.60) #8
  store i32 1, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

421:                                              ; preds = %415, %412
  %422 = load ptr, ptr %13, align 8, !tbaa !5
  %423 = call ptr @strcpy(ptr noundef %422, ptr noundef @.str.61) #8
  %424 = call ptr @getenv(ptr noundef @.str.54) #8
  %425 = icmp ne ptr %424, null
  br i1 %425, label %429, label %426

426:                                              ; preds = %421
  %427 = load ptr, ptr %13, align 8, !tbaa !5
  %428 = call ptr @strcat(ptr noundef %427, ptr noundef @.str.42) #8
  br label %429

429:                                              ; preds = %426, %421
  br label %430

430:                                              ; preds = %429, %409
  br label %431

431:                                              ; preds = %430, %394
  br label %432

432:                                              ; preds = %431, %381
  %433 = load ptr, ptr %13, align 8, !tbaa !5
  %434 = call ptr @strcat(ptr noundef %433, ptr noundef @.str.43) #8
  %435 = load ptr, ptr %9, align 8, !tbaa !5
  %436 = icmp ne ptr %435, null
  br i1 %436, label %437, label %444

437:                                              ; preds = %432
  %438 = load ptr, ptr %9, align 8, !tbaa !5
  %439 = call i32 @strcmp(ptr noundef @.str.23, ptr noundef %438) #9
  %440 = icmp ne i32 %439, 0
  br i1 %440, label %444, label %441

441:                                              ; preds = %437
  %442 = load ptr, ptr %13, align 8, !tbaa !5
  %443 = call ptr @strcat(ptr noundef %442, ptr noundef @.str.62) #8
  br label %491

444:                                              ; preds = %437, %432
  %445 = load ptr, ptr %9, align 8, !tbaa !5
  %446 = icmp ne ptr %445, null
  br i1 %446, label %447, label %454

447:                                              ; preds = %444
  %448 = load ptr, ptr %9, align 8, !tbaa !5
  %449 = call i32 @strcmp(ptr noundef @.str.25, ptr noundef %448) #9
  %450 = icmp ne i32 %449, 0
  br i1 %450, label %454, label %451

451:                                              ; preds = %447
  %452 = load ptr, ptr %13, align 8, !tbaa !5
  %453 = call ptr @strcat(ptr noundef %452, ptr noundef @.str.63) #8
  br label %490

454:                                              ; preds = %447, %444
  %455 = load ptr, ptr %9, align 8, !tbaa !5
  %456 = icmp ne ptr %455, null
  br i1 %456, label %457, label %464

457:                                              ; preds = %454
  %458 = load ptr, ptr %9, align 8, !tbaa !5
  %459 = call i32 @strcmp(ptr noundef @.str.30, ptr noundef %458) #9
  %460 = icmp ne i32 %459, 0
  br i1 %460, label %464, label %461

461:                                              ; preds = %457
  %462 = load ptr, ptr %13, align 8, !tbaa !5
  %463 = call ptr @strcat(ptr noundef %462, ptr noundef @.str.64) #8
  br label %489

464:                                              ; preds = %457, %454
  %465 = load ptr, ptr %10, align 8, !tbaa !5
  %466 = icmp ne ptr %465, null
  br i1 %466, label %467, label %474

467:                                              ; preds = %464
  %468 = load ptr, ptr %10, align 8, !tbaa !5
  %469 = call i32 @strcmp(ptr noundef @.str.18, ptr noundef %468) #9
  %470 = icmp ne i32 %469, 0
  br i1 %470, label %474, label %471

471:                                              ; preds = %467
  %472 = load ptr, ptr %13, align 8, !tbaa !5
  %473 = call ptr @strcat(ptr noundef %472, ptr noundef @.str.18) #8
  br label %488

474:                                              ; preds = %467, %464
  %475 = load ptr, ptr %10, align 8, !tbaa !5
  %476 = icmp ne ptr %475, null
  br i1 %476, label %477, label %484

477:                                              ; preds = %474
  %478 = load ptr, ptr %10, align 8, !tbaa !5
  %479 = call i32 @strcmp(ptr noundef @.str.20, ptr noundef %478) #9
  %480 = icmp ne i32 %479, 0
  br i1 %480, label %484, label %481

481:                                              ; preds = %477
  %482 = load ptr, ptr %13, align 8, !tbaa !5
  %483 = call ptr @strcat(ptr noundef %482, ptr noundef @.str.20) #8
  br label %487

484:                                              ; preds = %477, %474
  %485 = load ptr, ptr %13, align 8, !tbaa !5
  %486 = call ptr @strcat(ptr noundef %485, ptr noundef @.str.65) #8
  br label %487

487:                                              ; preds = %484, %481
  br label %488

488:                                              ; preds = %487, %471
  br label %489

489:                                              ; preds = %488, %461
  br label %490

490:                                              ; preds = %489, %451
  br label %491

491:                                              ; preds = %490, %441
  %492 = load ptr, ptr %7, align 8, !tbaa !5
  %493 = icmp ne ptr %492, null
  br i1 %493, label %494, label %506

494:                                              ; preds = %491
  %495 = load ptr, ptr %7, align 8, !tbaa !5
  %496 = call i64 @strlen(ptr noundef %495) #9
  %497 = icmp ne i64 %496, 0
  br i1 %497, label %498, label %506

498:                                              ; preds = %494
  %499 = load ptr, ptr %13, align 8, !tbaa !5
  %500 = call ptr @strcat(ptr noundef %499, ptr noundef @.str.66) #8
  %501 = load ptr, ptr %13, align 8, !tbaa !5
  %502 = load ptr, ptr %7, align 8, !tbaa !5
  %503 = call ptr @strcat(ptr noundef %501, ptr noundef %502) #8
  %504 = load ptr, ptr %13, align 8, !tbaa !5
  %505 = call ptr @strcat(ptr noundef %504, ptr noundef @.str.47) #8
  br label %506

506:                                              ; preds = %498, %494, %491
  %507 = load ptr, ptr %8, align 8, !tbaa !5
  %508 = icmp ne ptr %507, null
  br i1 %508, label %509, label %521

509:                                              ; preds = %506
  %510 = load ptr, ptr %8, align 8, !tbaa !5
  %511 = call i64 @strlen(ptr noundef %510) #9
  %512 = icmp ne i64 %511, 0
  br i1 %512, label %513, label %521

513:                                              ; preds = %509
  %514 = load ptr, ptr %13, align 8, !tbaa !5
  %515 = call ptr @strcat(ptr noundef %514, ptr noundef @.str.67) #8
  %516 = load ptr, ptr %13, align 8, !tbaa !5
  %517 = load ptr, ptr %8, align 8, !tbaa !5
  %518 = call ptr @strcat(ptr noundef %516, ptr noundef %517) #8
  %519 = load ptr, ptr %13, align 8, !tbaa !5
  %520 = call ptr @strcat(ptr noundef %519, ptr noundef @.str.47) #8
  br label %521

521:                                              ; preds = %513, %509, %506
  %522 = call noundef i32 @_ZL14zenity3Presentv()
  %523 = icmp sge i32 %522, 3
  br i1 %523, label %533, label %524

524:                                              ; preds = %521
  %525 = call noundef i32 @_ZL13zenityPresentv()
  %526 = icmp ne i32 %525, 0
  br i1 %526, label %558, label %527

527:                                              ; preds = %524
  %528 = call noundef i32 @_ZL20shellementaryPresentv()
  %529 = icmp ne i32 %528, 0
  br i1 %529, label %533, label %530

530:                                              ; preds = %527
  %531 = call noundef i32 @_ZL12qarmaPresentv()
  %532 = icmp ne i32 %531, 0
  br i1 %532, label %533, label %558

533:                                              ; preds = %530, %527, %521
  %534 = load ptr, ptr %13, align 8, !tbaa !5
  %535 = call ptr @strcat(ptr noundef %534, ptr noundef @.str.68) #8
  %536 = load ptr, ptr %10, align 8, !tbaa !5
  %537 = icmp ne ptr %536, null
  br i1 %537, label %538, label %554

538:                                              ; preds = %533
  %539 = load ptr, ptr %10, align 8, !tbaa !5
  %540 = call i32 @strcmp(ptr noundef @.str.63, ptr noundef %539) #9
  %541 = icmp ne i32 %540, 0
  br i1 %541, label %542, label %550

542:                                              ; preds = %538
  %543 = load ptr, ptr %10, align 8, !tbaa !5
  %544 = call i32 @strcmp(ptr noundef @.str.18, ptr noundef %543) #9
  %545 = icmp ne i32 %544, 0
  br i1 %545, label %546, label %550

546:                                              ; preds = %542
  %547 = load ptr, ptr %10, align 8, !tbaa !5
  %548 = call i32 @strcmp(ptr noundef @.str.20, ptr noundef %547) #9
  %549 = icmp ne i32 %548, 0
  br i1 %549, label %554, label %550

550:                                              ; preds = %546, %542, %538
  %551 = load ptr, ptr %13, align 8, !tbaa !5
  %552 = load ptr, ptr %10, align 8, !tbaa !5
  %553 = call ptr @strcat(ptr noundef %551, ptr noundef %552) #8
  br label %557

554:                                              ; preds = %546, %533
  %555 = load ptr, ptr %13, align 8, !tbaa !5
  %556 = call ptr @strcat(ptr noundef %555, ptr noundef @.str.69) #8
  br label %557

557:                                              ; preds = %554, %550
  br label %558

558:                                              ; preds = %557, %530, %524
  %559 = load i32, ptr @tinyfd_silent, align 4, !tbaa !9
  %560 = icmp ne i32 %559, 0
  br i1 %560, label %561, label %564

561:                                              ; preds = %558
  %562 = load ptr, ptr %13, align 8, !tbaa !5
  %563 = call ptr @strcat(ptr noundef %562, ptr noundef @.str.70) #8
  br label %564

564:                                              ; preds = %561, %558
  %565 = load ptr, ptr %9, align 8, !tbaa !5
  %566 = call i32 @strcmp(ptr noundef @.str.30, ptr noundef %565) #9
  %567 = icmp ne i32 %566, 0
  br i1 %567, label %571, label %568

568:                                              ; preds = %564
  %569 = load ptr, ptr %13, align 8, !tbaa !5
  %570 = call ptr @strcat(ptr noundef %569, ptr noundef @.str.71) #8
  br label %574

571:                                              ; preds = %564
  %572 = load ptr, ptr %13, align 8, !tbaa !5
  %573 = call ptr @strcat(ptr noundef %572, ptr noundef @.str.72) #8
  br label %574

574:                                              ; preds = %571, %568
  br label %1874

575:                                              ; preds = %355
  %576 = call noundef i32 @_ZL16gxmessagePresentv()
  %577 = icmp ne i32 %576, 0
  br i1 %577, label %757, label %578

578:                                              ; preds = %575
  %579 = call noundef i32 @_ZL15gmessagePresentv()
  %580 = icmp ne i32 %579, 0
  br i1 %580, label %757, label %581

581:                                              ; preds = %578
  %582 = call noundef i32 @_ZL14gdialogPresentv()
  %583 = icmp ne i32 %582, 0
  br i1 %583, label %757, label %584

584:                                              ; preds = %581
  %585 = call noundef i32 @_ZL14xdialogPresentv()
  %586 = icmp ne i32 %585, 0
  br i1 %586, label %757, label %587

587:                                              ; preds = %584
  %588 = call noundef i32 @_ZL15tkinter2Presentv()
  %589 = icmp ne i32 %588, 0
  br i1 %589, label %590, label %757

590:                                              ; preds = %587
  %591 = load ptr, ptr %7, align 8, !tbaa !5
  %592 = icmp ne ptr %591, null
  br i1 %592, label %593, label %599

593:                                              ; preds = %590
  %594 = load ptr, ptr %7, align 8, !tbaa !5
  %595 = call i32 @strcmp(ptr noundef %594, ptr noundef @.str.10) #9
  %596 = icmp ne i32 %595, 0
  br i1 %596, label %599, label %597

597:                                              ; preds = %593
  %598 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.73) #8
  store i32 1, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

599:                                              ; preds = %593, %590
  %600 = load ptr, ptr %13, align 8, !tbaa !5
  %601 = call ptr @strcpy(ptr noundef %600, ptr noundef @_ZL12gPython2Name) #8
  %602 = call noundef i32 @_ZL17isTerminalRunningv()
  %603 = icmp ne i32 %602, 0
  br i1 %603, label %610, label %604

604:                                              ; preds = %599
  %605 = call noundef i32 @_ZL8isDarwinv()
  %606 = icmp ne i32 %605, 0
  br i1 %606, label %607, label %610

607:                                              ; preds = %604
  %608 = load ptr, ptr %13, align 8, !tbaa !5
  %609 = call ptr @strcat(ptr noundef %608, ptr noundef @.str.74) #8
  br label %610

610:                                              ; preds = %607, %604, %599
  %611 = load ptr, ptr %13, align 8, !tbaa !5
  %612 = call ptr @strcat(ptr noundef %611, ptr noundef @.str.75) #8
  %613 = call noundef i32 @_ZL8isDarwinv()
  %614 = icmp ne i32 %613, 0
  br i1 %614, label %615, label %618

615:                                              ; preds = %610
  %616 = load ptr, ptr %13, align 8, !tbaa !5
  %617 = call ptr @strcat(ptr noundef %616, ptr noundef @.str.76) #8
  br label %618

618:                                              ; preds = %615, %610
  %619 = load ptr, ptr %13, align 8, !tbaa !5
  %620 = call ptr @strcat(ptr noundef %619, ptr noundef @.str.77) #8
  %621 = load ptr, ptr %9, align 8, !tbaa !5
  %622 = icmp ne ptr %621, null
  br i1 %622, label %623, label %639

623:                                              ; preds = %618
  %624 = load ptr, ptr %9, align 8, !tbaa !5
  %625 = call i32 @strcmp(ptr noundef @.str.23, ptr noundef %624) #9
  %626 = icmp ne i32 %625, 0
  br i1 %626, label %639, label %627

627:                                              ; preds = %623
  %628 = load ptr, ptr %13, align 8, !tbaa !5
  %629 = call ptr @strcat(ptr noundef %628, ptr noundef @.str.78) #8
  %630 = load i32, ptr %11, align 4, !tbaa !9
  %631 = icmp ne i32 %630, 0
  br i1 %631, label %632, label %635

632:                                              ; preds = %627
  %633 = load ptr, ptr %13, align 8, !tbaa !5
  %634 = call ptr @strcat(ptr noundef %633, ptr noundef @.str.79) #8
  br label %638

635:                                              ; preds = %627
  %636 = load ptr, ptr %13, align 8, !tbaa !5
  %637 = call ptr @strcat(ptr noundef %636, ptr noundef @.str.80) #8
  br label %638

638:                                              ; preds = %635, %632
  br label %684

639:                                              ; preds = %623, %618
  %640 = load ptr, ptr %9, align 8, !tbaa !5
  %641 = icmp ne ptr %640, null
  br i1 %641, label %642, label %658

642:                                              ; preds = %639
  %643 = load ptr, ptr %9, align 8, !tbaa !5
  %644 = call i32 @strcmp(ptr noundef @.str.25, ptr noundef %643) #9
  %645 = icmp ne i32 %644, 0
  br i1 %645, label %658, label %646

646:                                              ; preds = %642
  %647 = load ptr, ptr %13, align 8, !tbaa !5
  %648 = call ptr @strcat(ptr noundef %647, ptr noundef @.str.81) #8
  %649 = load i32, ptr %11, align 4, !tbaa !9
  %650 = icmp ne i32 %649, 0
  br i1 %650, label %651, label %654

651:                                              ; preds = %646
  %652 = load ptr, ptr %13, align 8, !tbaa !5
  %653 = call ptr @strcat(ptr noundef %652, ptr noundef @.str.82) #8
  br label %657

654:                                              ; preds = %646
  %655 = load ptr, ptr %13, align 8, !tbaa !5
  %656 = call ptr @strcat(ptr noundef %655, ptr noundef @.str.83) #8
  br label %657

657:                                              ; preds = %654, %651
  br label %683

658:                                              ; preds = %642, %639
  %659 = load ptr, ptr %9, align 8, !tbaa !5
  %660 = icmp ne ptr %659, null
  br i1 %660, label %661, label %679

661:                                              ; preds = %658
  %662 = load ptr, ptr %9, align 8, !tbaa !5
  %663 = call i32 @strcmp(ptr noundef @.str.30, ptr noundef %662) #9
  %664 = icmp ne i32 %663, 0
  br i1 %664, label %679, label %665

665:                                              ; preds = %661
  %666 = load ptr, ptr %13, align 8, !tbaa !5
  %667 = call ptr @strcat(ptr noundef %666, ptr noundef @.str.84) #8
  %668 = load i32, ptr %11, align 4, !tbaa !9
  switch i32 %668, label %678 [
    i32 1, label %669
    i32 2, label %672
    i32 0, label %675
  ]

669:                                              ; preds = %665
  %670 = load ptr, ptr %13, align 8, !tbaa !5
  %671 = call ptr @strcat(ptr noundef %670, ptr noundef @.str.82) #8
  br label %678

672:                                              ; preds = %665
  %673 = load ptr, ptr %13, align 8, !tbaa !5
  %674 = call ptr @strcat(ptr noundef %673, ptr noundef @.str.83) #8
  br label %678

675:                                              ; preds = %665
  %676 = load ptr, ptr %13, align 8, !tbaa !5
  %677 = call ptr @strcat(ptr noundef %676, ptr noundef @.str.80) #8
  br label %678

678:                                              ; preds = %675, %672, %669, %665
  br label %682

679:                                              ; preds = %661, %658
  %680 = load ptr, ptr %13, align 8, !tbaa !5
  %681 = call ptr @strcat(ptr noundef %680, ptr noundef @.str.85) #8
  br label %682

682:                                              ; preds = %679, %678
  br label %683

683:                                              ; preds = %682, %657
  br label %684

684:                                              ; preds = %683, %638
  %685 = load ptr, ptr %13, align 8, !tbaa !5
  %686 = call ptr @strcat(ptr noundef %685, ptr noundef @.str.86) #8
  %687 = load ptr, ptr %10, align 8, !tbaa !5
  %688 = icmp ne ptr %687, null
  br i1 %688, label %689, label %705

689:                                              ; preds = %684
  %690 = load ptr, ptr %10, align 8, !tbaa !5
  %691 = call i32 @strcmp(ptr noundef @.str.63, ptr noundef %690) #9
  %692 = icmp ne i32 %691, 0
  br i1 %692, label %693, label %701

693:                                              ; preds = %689
  %694 = load ptr, ptr %10, align 8, !tbaa !5
  %695 = call i32 @strcmp(ptr noundef @.str.18, ptr noundef %694) #9
  %696 = icmp ne i32 %695, 0
  br i1 %696, label %697, label %701

697:                                              ; preds = %693
  %698 = load ptr, ptr %10, align 8, !tbaa !5
  %699 = call i32 @strcmp(ptr noundef @.str.20, ptr noundef %698) #9
  %700 = icmp ne i32 %699, 0
  br i1 %700, label %705, label %701

701:                                              ; preds = %697, %693, %689
  %702 = load ptr, ptr %13, align 8, !tbaa !5
  %703 = load ptr, ptr %10, align 8, !tbaa !5
  %704 = call ptr @strcat(ptr noundef %702, ptr noundef %703) #8
  br label %708

705:                                              ; preds = %697, %684
  %706 = load ptr, ptr %13, align 8, !tbaa !5
  %707 = call ptr @strcat(ptr noundef %706, ptr noundef @.str.65) #8
  br label %708

708:                                              ; preds = %705, %701
  %709 = load ptr, ptr %13, align 8, !tbaa !5
  %710 = call ptr @strcat(ptr noundef %709, ptr noundef @.str.87) #8
  %711 = load ptr, ptr %7, align 8, !tbaa !5
  %712 = icmp ne ptr %711, null
  br i1 %712, label %713, label %725

713:                                              ; preds = %708
  %714 = load ptr, ptr %7, align 8, !tbaa !5
  %715 = call i64 @strlen(ptr noundef %714) #9
  %716 = icmp ne i64 %715, 0
  br i1 %716, label %717, label %725

717:                                              ; preds = %713
  %718 = load ptr, ptr %13, align 8, !tbaa !5
  %719 = call ptr @strcat(ptr noundef %718, ptr noundef @.str.88) #8
  %720 = load ptr, ptr %13, align 8, !tbaa !5
  %721 = load ptr, ptr %7, align 8, !tbaa !5
  %722 = call ptr @strcat(ptr noundef %720, ptr noundef %721) #8
  %723 = load ptr, ptr %13, align 8, !tbaa !5
  %724 = call ptr @strcat(ptr noundef %723, ptr noundef @.str.87) #8
  br label %725

725:                                              ; preds = %717, %713, %708
  %726 = load ptr, ptr %8, align 8, !tbaa !5
  %727 = icmp ne ptr %726, null
  br i1 %727, label %728, label %743

728:                                              ; preds = %725
  %729 = load ptr, ptr %8, align 8, !tbaa !5
  %730 = call i64 @strlen(ptr noundef %729) #9
  %731 = icmp ne i64 %730, 0
  br i1 %731, label %732, label %743

732:                                              ; preds = %728
  %733 = load ptr, ptr %13, align 8, !tbaa !5
  %734 = call ptr @strcat(ptr noundef %733, ptr noundef @.str.89) #8
  %735 = load ptr, ptr %13, align 8, !tbaa !5
  %736 = load ptr, ptr %13, align 8, !tbaa !5
  %737 = call i64 @strlen(ptr noundef %736) #9
  %738 = getelementptr inbounds i8, ptr %735, i64 %737
  store ptr %738, ptr %14, align 8, !tbaa !5
  %739 = load ptr, ptr %8, align 8, !tbaa !5
  %740 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef %739, ptr noundef @.str.90, ptr noundef @.str.91, ptr noundef %740)
  %741 = load ptr, ptr %13, align 8, !tbaa !5
  %742 = call ptr @strcat(ptr noundef %741, ptr noundef @.str.92) #8
  br label %743

743:                                              ; preds = %732, %728, %725
  %744 = load ptr, ptr %9, align 8, !tbaa !5
  %745 = icmp ne ptr %744, null
  br i1 %745, label %746, label %753

746:                                              ; preds = %743
  %747 = load ptr, ptr %9, align 8, !tbaa !5
  %748 = call i32 @strcmp(ptr noundef @.str.30, ptr noundef %747) #9
  %749 = icmp ne i32 %748, 0
  br i1 %749, label %753, label %750

750:                                              ; preds = %746
  %751 = load ptr, ptr %13, align 8, !tbaa !5
  %752 = call ptr @strcat(ptr noundef %751, ptr noundef @.str.93) #8
  br label %756

753:                                              ; preds = %746, %743
  %754 = load ptr, ptr %13, align 8, !tbaa !5
  %755 = call ptr @strcat(ptr noundef %754, ptr noundef @.str.94) #8
  br label %756

756:                                              ; preds = %753, %750
  br label %1873

757:                                              ; preds = %587, %584, %581, %578, %575
  %758 = call noundef i32 @_ZL16gxmessagePresentv()
  %759 = icmp ne i32 %758, 0
  br i1 %759, label %924, label %760

760:                                              ; preds = %757
  %761 = call noundef i32 @_ZL15gmessagePresentv()
  %762 = icmp ne i32 %761, 0
  br i1 %762, label %924, label %763

763:                                              ; preds = %760
  %764 = call noundef i32 @_ZL14gdialogPresentv()
  %765 = icmp ne i32 %764, 0
  br i1 %765, label %924, label %766

766:                                              ; preds = %763
  %767 = call noundef i32 @_ZL14xdialogPresentv()
  %768 = icmp ne i32 %767, 0
  br i1 %768, label %924, label %769

769:                                              ; preds = %766
  %770 = call noundef i32 @_ZL15tkinter3Presentv()
  %771 = icmp ne i32 %770, 0
  br i1 %771, label %772, label %924

772:                                              ; preds = %769
  %773 = load ptr, ptr %7, align 8, !tbaa !5
  %774 = icmp ne ptr %773, null
  br i1 %774, label %775, label %781

775:                                              ; preds = %772
  %776 = load ptr, ptr %7, align 8, !tbaa !5
  %777 = call i32 @strcmp(ptr noundef %776, ptr noundef @.str.10) #9
  %778 = icmp ne i32 %777, 0
  br i1 %778, label %781, label %779

779:                                              ; preds = %775
  %780 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.95) #8
  store i32 1, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

781:                                              ; preds = %775, %772
  %782 = load ptr, ptr %13, align 8, !tbaa !5
  %783 = call ptr @strcpy(ptr noundef %782, ptr noundef @_ZL12gPython3Name) #8
  %784 = load ptr, ptr %13, align 8, !tbaa !5
  %785 = call ptr @strcat(ptr noundef %784, ptr noundef @.str.96) #8
  %786 = load ptr, ptr %13, align 8, !tbaa !5
  %787 = call ptr @strcat(ptr noundef %786, ptr noundef @.str.97) #8
  %788 = load ptr, ptr %9, align 8, !tbaa !5
  %789 = icmp ne ptr %788, null
  br i1 %789, label %790, label %806

790:                                              ; preds = %781
  %791 = load ptr, ptr %9, align 8, !tbaa !5
  %792 = call i32 @strcmp(ptr noundef @.str.23, ptr noundef %791) #9
  %793 = icmp ne i32 %792, 0
  br i1 %793, label %806, label %794

794:                                              ; preds = %790
  %795 = load ptr, ptr %13, align 8, !tbaa !5
  %796 = call ptr @strcat(ptr noundef %795, ptr noundef @.str.78) #8
  %797 = load i32, ptr %11, align 4, !tbaa !9
  %798 = icmp ne i32 %797, 0
  br i1 %798, label %799, label %802

799:                                              ; preds = %794
  %800 = load ptr, ptr %13, align 8, !tbaa !5
  %801 = call ptr @strcat(ptr noundef %800, ptr noundef @.str.98) #8
  br label %805

802:                                              ; preds = %794
  %803 = load ptr, ptr %13, align 8, !tbaa !5
  %804 = call ptr @strcat(ptr noundef %803, ptr noundef @.str.99) #8
  br label %805

805:                                              ; preds = %802, %799
  br label %851

806:                                              ; preds = %790, %781
  %807 = load ptr, ptr %9, align 8, !tbaa !5
  %808 = icmp ne ptr %807, null
  br i1 %808, label %809, label %825

809:                                              ; preds = %806
  %810 = load ptr, ptr %9, align 8, !tbaa !5
  %811 = call i32 @strcmp(ptr noundef @.str.25, ptr noundef %810) #9
  %812 = icmp ne i32 %811, 0
  br i1 %812, label %825, label %813

813:                                              ; preds = %809
  %814 = load ptr, ptr %13, align 8, !tbaa !5
  %815 = call ptr @strcat(ptr noundef %814, ptr noundef @.str.81) #8
  %816 = load i32, ptr %11, align 4, !tbaa !9
  %817 = icmp ne i32 %816, 0
  br i1 %817, label %818, label %821

818:                                              ; preds = %813
  %819 = load ptr, ptr %13, align 8, !tbaa !5
  %820 = call ptr @strcat(ptr noundef %819, ptr noundef @.str.100) #8
  br label %824

821:                                              ; preds = %813
  %822 = load ptr, ptr %13, align 8, !tbaa !5
  %823 = call ptr @strcat(ptr noundef %822, ptr noundef @.str.101) #8
  br label %824

824:                                              ; preds = %821, %818
  br label %850

825:                                              ; preds = %809, %806
  %826 = load ptr, ptr %9, align 8, !tbaa !5
  %827 = icmp ne ptr %826, null
  br i1 %827, label %828, label %846

828:                                              ; preds = %825
  %829 = load ptr, ptr %9, align 8, !tbaa !5
  %830 = call i32 @strcmp(ptr noundef @.str.30, ptr noundef %829) #9
  %831 = icmp ne i32 %830, 0
  br i1 %831, label %846, label %832

832:                                              ; preds = %828
  %833 = load ptr, ptr %13, align 8, !tbaa !5
  %834 = call ptr @strcat(ptr noundef %833, ptr noundef @.str.84) #8
  %835 = load i32, ptr %11, align 4, !tbaa !9
  switch i32 %835, label %845 [
    i32 1, label %836
    i32 2, label %839
    i32 0, label %842
  ]

836:                                              ; preds = %832
  %837 = load ptr, ptr %13, align 8, !tbaa !5
  %838 = call ptr @strcat(ptr noundef %837, ptr noundef @.str.100) #8
  br label %845

839:                                              ; preds = %832
  %840 = load ptr, ptr %13, align 8, !tbaa !5
  %841 = call ptr @strcat(ptr noundef %840, ptr noundef @.str.101) #8
  br label %845

842:                                              ; preds = %832
  %843 = load ptr, ptr %13, align 8, !tbaa !5
  %844 = call ptr @strcat(ptr noundef %843, ptr noundef @.str.99) #8
  br label %845

845:                                              ; preds = %842, %839, %836, %832
  br label %849

846:                                              ; preds = %828, %825
  %847 = load ptr, ptr %13, align 8, !tbaa !5
  %848 = call ptr @strcat(ptr noundef %847, ptr noundef @.str.85) #8
  br label %849

849:                                              ; preds = %846, %845
  br label %850

850:                                              ; preds = %849, %824
  br label %851

851:                                              ; preds = %850, %805
  %852 = load ptr, ptr %13, align 8, !tbaa !5
  %853 = call ptr @strcat(ptr noundef %852, ptr noundef @.str.86) #8
  %854 = load ptr, ptr %10, align 8, !tbaa !5
  %855 = icmp ne ptr %854, null
  br i1 %855, label %856, label %872

856:                                              ; preds = %851
  %857 = load ptr, ptr %10, align 8, !tbaa !5
  %858 = call i32 @strcmp(ptr noundef @.str.63, ptr noundef %857) #9
  %859 = icmp ne i32 %858, 0
  br i1 %859, label %860, label %868

860:                                              ; preds = %856
  %861 = load ptr, ptr %10, align 8, !tbaa !5
  %862 = call i32 @strcmp(ptr noundef @.str.18, ptr noundef %861) #9
  %863 = icmp ne i32 %862, 0
  br i1 %863, label %864, label %868

864:                                              ; preds = %860
  %865 = load ptr, ptr %10, align 8, !tbaa !5
  %866 = call i32 @strcmp(ptr noundef @.str.20, ptr noundef %865) #9
  %867 = icmp ne i32 %866, 0
  br i1 %867, label %872, label %868

868:                                              ; preds = %864, %860, %856
  %869 = load ptr, ptr %13, align 8, !tbaa !5
  %870 = load ptr, ptr %10, align 8, !tbaa !5
  %871 = call ptr @strcat(ptr noundef %869, ptr noundef %870) #8
  br label %875

872:                                              ; preds = %864, %851
  %873 = load ptr, ptr %13, align 8, !tbaa !5
  %874 = call ptr @strcat(ptr noundef %873, ptr noundef @.str.65) #8
  br label %875

875:                                              ; preds = %872, %868
  %876 = load ptr, ptr %13, align 8, !tbaa !5
  %877 = call ptr @strcat(ptr noundef %876, ptr noundef @.str.87) #8
  %878 = load ptr, ptr %7, align 8, !tbaa !5
  %879 = icmp ne ptr %878, null
  br i1 %879, label %880, label %892

880:                                              ; preds = %875
  %881 = load ptr, ptr %7, align 8, !tbaa !5
  %882 = call i64 @strlen(ptr noundef %881) #9
  %883 = icmp ne i64 %882, 0
  br i1 %883, label %884, label %892

884:                                              ; preds = %880
  %885 = load ptr, ptr %13, align 8, !tbaa !5
  %886 = call ptr @strcat(ptr noundef %885, ptr noundef @.str.88) #8
  %887 = load ptr, ptr %13, align 8, !tbaa !5
  %888 = load ptr, ptr %7, align 8, !tbaa !5
  %889 = call ptr @strcat(ptr noundef %887, ptr noundef %888) #8
  %890 = load ptr, ptr %13, align 8, !tbaa !5
  %891 = call ptr @strcat(ptr noundef %890, ptr noundef @.str.87) #8
  br label %892

892:                                              ; preds = %884, %880, %875
  %893 = load ptr, ptr %8, align 8, !tbaa !5
  %894 = icmp ne ptr %893, null
  br i1 %894, label %895, label %910

895:                                              ; preds = %892
  %896 = load ptr, ptr %8, align 8, !tbaa !5
  %897 = call i64 @strlen(ptr noundef %896) #9
  %898 = icmp ne i64 %897, 0
  br i1 %898, label %899, label %910

899:                                              ; preds = %895
  %900 = load ptr, ptr %13, align 8, !tbaa !5
  %901 = call ptr @strcat(ptr noundef %900, ptr noundef @.str.89) #8
  %902 = load ptr, ptr %13, align 8, !tbaa !5
  %903 = load ptr, ptr %13, align 8, !tbaa !5
  %904 = call i64 @strlen(ptr noundef %903) #9
  %905 = getelementptr inbounds i8, ptr %902, i64 %904
  store ptr %905, ptr %14, align 8, !tbaa !5
  %906 = load ptr, ptr %8, align 8, !tbaa !5
  %907 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef %906, ptr noundef @.str.90, ptr noundef @.str.91, ptr noundef %907)
  %908 = load ptr, ptr %13, align 8, !tbaa !5
  %909 = call ptr @strcat(ptr noundef %908, ptr noundef @.str.92) #8
  br label %910

910:                                              ; preds = %899, %895, %892
  %911 = load ptr, ptr %9, align 8, !tbaa !5
  %912 = icmp ne ptr %911, null
  br i1 %912, label %913, label %920

913:                                              ; preds = %910
  %914 = load ptr, ptr %9, align 8, !tbaa !5
  %915 = call i32 @strcmp(ptr noundef @.str.30, ptr noundef %914) #9
  %916 = icmp ne i32 %915, 0
  br i1 %916, label %920, label %917

917:                                              ; preds = %913
  %918 = load ptr, ptr %13, align 8, !tbaa !5
  %919 = call ptr @strcat(ptr noundef %918, ptr noundef @.str.102) #8
  br label %923

920:                                              ; preds = %913, %910
  %921 = load ptr, ptr %13, align 8, !tbaa !5
  %922 = call ptr @strcat(ptr noundef %921, ptr noundef @.str.103) #8
  br label %923

923:                                              ; preds = %920, %917
  br label %1872

924:                                              ; preds = %769, %766, %763, %760, %757
  %925 = call noundef i32 @_ZL16gxmessagePresentv()
  %926 = icmp ne i32 %925, 0
  br i1 %926, label %939, label %927

927:                                              ; preds = %924
  %928 = call noundef i32 @_ZL15gmessagePresentv()
  %929 = icmp ne i32 %928, 0
  br i1 %929, label %939, label %930

930:                                              ; preds = %927
  %931 = call noundef i32 @_ZL14gdialogPresentv()
  %932 = icmp ne i32 %931, 0
  br i1 %932, label %1079, label %933

933:                                              ; preds = %930
  %934 = call noundef i32 @_ZL14xdialogPresentv()
  %935 = icmp ne i32 %934, 0
  br i1 %935, label %1079, label %936

936:                                              ; preds = %933
  %937 = call noundef i32 @_ZL15xmessagePresentv()
  %938 = icmp ne i32 %937, 0
  br i1 %938, label %939, label %1079

939:                                              ; preds = %936, %927, %924
  %940 = call noundef i32 @_ZL16gxmessagePresentv()
  %941 = icmp ne i32 %940, 0
  br i1 %941, label %942, label %954

942:                                              ; preds = %939
  %943 = load ptr, ptr %7, align 8, !tbaa !5
  %944 = icmp ne ptr %943, null
  br i1 %944, label %945, label %951

945:                                              ; preds = %942
  %946 = load ptr, ptr %7, align 8, !tbaa !5
  %947 = call i32 @strcmp(ptr noundef %946, ptr noundef @.str.10) #9
  %948 = icmp ne i32 %947, 0
  br i1 %948, label %951, label %949

949:                                              ; preds = %945
  %950 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.104) #8
  store i32 1, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

951:                                              ; preds = %945, %942
  %952 = load ptr, ptr %13, align 8, !tbaa !5
  %953 = call ptr @strcpy(ptr noundef %952, ptr noundef @.str.104) #8
  br label %982

954:                                              ; preds = %939
  %955 = call noundef i32 @_ZL15gmessagePresentv()
  %956 = icmp ne i32 %955, 0
  br i1 %956, label %957, label %969

957:                                              ; preds = %954
  %958 = load ptr, ptr %7, align 8, !tbaa !5
  %959 = icmp ne ptr %958, null
  br i1 %959, label %960, label %966

960:                                              ; preds = %957
  %961 = load ptr, ptr %7, align 8, !tbaa !5
  %962 = call i32 @strcmp(ptr noundef %961, ptr noundef @.str.10) #9
  %963 = icmp ne i32 %962, 0
  br i1 %963, label %966, label %964

964:                                              ; preds = %960
  %965 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.105) #8
  store i32 1, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

966:                                              ; preds = %960, %957
  %967 = load ptr, ptr %13, align 8, !tbaa !5
  %968 = call ptr @strcpy(ptr noundef %967, ptr noundef @.str.105) #8
  br label %981

969:                                              ; preds = %954
  %970 = load ptr, ptr %7, align 8, !tbaa !5
  %971 = icmp ne ptr %970, null
  br i1 %971, label %972, label %978

972:                                              ; preds = %969
  %973 = load ptr, ptr %7, align 8, !tbaa !5
  %974 = call i32 @strcmp(ptr noundef %973, ptr noundef @.str.10) #9
  %975 = icmp ne i32 %974, 0
  br i1 %975, label %978, label %976

976:                                              ; preds = %972
  %977 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.106) #8
  store i32 1, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

978:                                              ; preds = %972, %969
  %979 = load ptr, ptr %13, align 8, !tbaa !5
  %980 = call ptr @strcpy(ptr noundef %979, ptr noundef @.str.106) #8
  br label %981

981:                                              ; preds = %978, %966
  br label %982

982:                                              ; preds = %981, %951
  %983 = load ptr, ptr %9, align 8, !tbaa !5
  %984 = icmp ne ptr %983, null
  br i1 %984, label %985, label %1000

985:                                              ; preds = %982
  %986 = load ptr, ptr %9, align 8, !tbaa !5
  %987 = call i32 @strcmp(ptr noundef @.str.23, ptr noundef %986) #9
  %988 = icmp ne i32 %987, 0
  br i1 %988, label %1000, label %989

989:                                              ; preds = %985
  %990 = load ptr, ptr %13, align 8, !tbaa !5
  %991 = call ptr @strcat(ptr noundef %990, ptr noundef @.str.107) #8
  %992 = load i32, ptr %11, align 4, !tbaa !9
  switch i32 %992, label %999 [
    i32 1, label %993
    i32 0, label %996
  ]

993:                                              ; preds = %989
  %994 = load ptr, ptr %13, align 8, !tbaa !5
  %995 = call ptr @strcat(ptr noundef %994, ptr noundef @.str.108) #8
  br label %999

996:                                              ; preds = %989
  %997 = load ptr, ptr %13, align 8, !tbaa !5
  %998 = call ptr @strcat(ptr noundef %997, ptr noundef @.str.109) #8
  br label %999

999:                                              ; preds = %996, %993, %989
  br label %1046

1000:                                             ; preds = %985, %982
  %1001 = load ptr, ptr %9, align 8, !tbaa !5
  %1002 = icmp ne ptr %1001, null
  br i1 %1002, label %1003, label %1018

1003:                                             ; preds = %1000
  %1004 = load ptr, ptr %9, align 8, !tbaa !5
  %1005 = call i32 @strcmp(ptr noundef @.str.25, ptr noundef %1004) #9
  %1006 = icmp ne i32 %1005, 0
  br i1 %1006, label %1018, label %1007

1007:                                             ; preds = %1003
  %1008 = load ptr, ptr %13, align 8, !tbaa !5
  %1009 = call ptr @strcat(ptr noundef %1008, ptr noundef @.str.110) #8
  %1010 = load i32, ptr %11, align 4, !tbaa !9
  switch i32 %1010, label %1017 [
    i32 1, label %1011
    i32 0, label %1014
  ]

1011:                                             ; preds = %1007
  %1012 = load ptr, ptr %13, align 8, !tbaa !5
  %1013 = call ptr @strcat(ptr noundef %1012, ptr noundef @.str.111) #8
  br label %1017

1014:                                             ; preds = %1007
  %1015 = load ptr, ptr %13, align 8, !tbaa !5
  %1016 = call ptr @strcat(ptr noundef %1015, ptr noundef @.str.112) #8
  br label %1017

1017:                                             ; preds = %1014, %1011, %1007
  br label %1045

1018:                                             ; preds = %1003, %1000
  %1019 = load ptr, ptr %9, align 8, !tbaa !5
  %1020 = icmp ne ptr %1019, null
  br i1 %1020, label %1021, label %1039

1021:                                             ; preds = %1018
  %1022 = load ptr, ptr %9, align 8, !tbaa !5
  %1023 = call i32 @strcmp(ptr noundef @.str.30, ptr noundef %1022) #9
  %1024 = icmp ne i32 %1023, 0
  br i1 %1024, label %1039, label %1025

1025:                                             ; preds = %1021
  %1026 = load ptr, ptr %13, align 8, !tbaa !5
  %1027 = call ptr @strcat(ptr noundef %1026, ptr noundef @.str.113) #8
  %1028 = load i32, ptr %11, align 4, !tbaa !9
  switch i32 %1028, label %1038 [
    i32 1, label %1029
    i32 2, label %1032
    i32 0, label %1035
  ]

1029:                                             ; preds = %1025
  %1030 = load ptr, ptr %13, align 8, !tbaa !5
  %1031 = call ptr @strcat(ptr noundef %1030, ptr noundef @.str.111) #8
  br label %1038

1032:                                             ; preds = %1025
  %1033 = load ptr, ptr %13, align 8, !tbaa !5
  %1034 = call ptr @strcat(ptr noundef %1033, ptr noundef @.str.112) #8
  br label %1038

1035:                                             ; preds = %1025
  %1036 = load ptr, ptr %13, align 8, !tbaa !5
  %1037 = call ptr @strcat(ptr noundef %1036, ptr noundef @.str.109) #8
  br label %1038

1038:                                             ; preds = %1035, %1032, %1029, %1025
  br label %1044

1039:                                             ; preds = %1021, %1018
  %1040 = load ptr, ptr %13, align 8, !tbaa !5
  %1041 = call ptr @strcat(ptr noundef %1040, ptr noundef @.str.114) #8
  %1042 = load ptr, ptr %13, align 8, !tbaa !5
  %1043 = call ptr @strcat(ptr noundef %1042, ptr noundef @.str.108) #8
  br label %1044

1044:                                             ; preds = %1039, %1038
  br label %1045

1045:                                             ; preds = %1044, %1017
  br label %1046

1046:                                             ; preds = %1045, %999
  %1047 = load ptr, ptr %13, align 8, !tbaa !5
  %1048 = call ptr @strcat(ptr noundef %1047, ptr noundef @.str.115) #8
  %1049 = load ptr, ptr %8, align 8, !tbaa !5
  %1050 = icmp ne ptr %1049, null
  br i1 %1050, label %1051, label %1059

1051:                                             ; preds = %1046
  %1052 = load ptr, ptr %8, align 8, !tbaa !5
  %1053 = call i64 @strlen(ptr noundef %1052) #9
  %1054 = icmp ne i64 %1053, 0
  br i1 %1054, label %1055, label %1059

1055:                                             ; preds = %1051
  %1056 = load ptr, ptr %13, align 8, !tbaa !5
  %1057 = load ptr, ptr %8, align 8, !tbaa !5
  %1058 = call ptr @strcat(ptr noundef %1056, ptr noundef %1057) #8
  br label %1059

1059:                                             ; preds = %1055, %1051, %1046
  %1060 = load ptr, ptr %13, align 8, !tbaa !5
  %1061 = call ptr @strcat(ptr noundef %1060, ptr noundef @.str.47) #8
  %1062 = load ptr, ptr %7, align 8, !tbaa !5
  %1063 = icmp ne ptr %1062, null
  br i1 %1063, label %1064, label %1076

1064:                                             ; preds = %1059
  %1065 = load ptr, ptr %7, align 8, !tbaa !5
  %1066 = call i64 @strlen(ptr noundef %1065) #9
  %1067 = icmp ne i64 %1066, 0
  br i1 %1067, label %1068, label %1076

1068:                                             ; preds = %1064
  %1069 = load ptr, ptr %13, align 8, !tbaa !5
  %1070 = call ptr @strcat(ptr noundef %1069, ptr noundef @.str.116) #8
  %1071 = load ptr, ptr %13, align 8, !tbaa !5
  %1072 = load ptr, ptr %7, align 8, !tbaa !5
  %1073 = call ptr @strcat(ptr noundef %1071, ptr noundef %1072) #8
  %1074 = load ptr, ptr %13, align 8, !tbaa !5
  %1075 = call ptr @strcat(ptr noundef %1074, ptr noundef @.str.47) #8
  br label %1076

1076:                                             ; preds = %1068, %1064, %1059
  %1077 = load ptr, ptr %13, align 8, !tbaa !5
  %1078 = call ptr @strcat(ptr noundef %1077, ptr noundef @.str.117) #8
  br label %1871

1079:                                             ; preds = %936, %933, %930
  %1080 = call noundef i32 @_ZL14xdialogPresentv()
  %1081 = icmp ne i32 %1080, 0
  br i1 %1081, label %1091, label %1082

1082:                                             ; preds = %1079
  %1083 = call noundef i32 @_ZL14gdialogPresentv()
  %1084 = icmp ne i32 %1083, 0
  br i1 %1084, label %1091, label %1085

1085:                                             ; preds = %1082
  %1086 = call noundef ptr @_ZL10dialogNamev()
  %1087 = icmp ne ptr %1086, null
  br i1 %1087, label %1091, label %1088

1088:                                             ; preds = %1085
  %1089 = call noundef i32 @_ZL15whiptailPresentv()
  %1090 = icmp ne i32 %1089, 0
  br i1 %1090, label %1091, label %1346

1091:                                             ; preds = %1088, %1085, %1082, %1079
  %1092 = call noundef i32 @_ZL14gdialogPresentv()
  %1093 = icmp ne i32 %1092, 0
  br i1 %1093, label %1094, label %1106

1094:                                             ; preds = %1091
  %1095 = load ptr, ptr %7, align 8, !tbaa !5
  %1096 = icmp ne ptr %1095, null
  br i1 %1096, label %1097, label %1103

1097:                                             ; preds = %1094
  %1098 = load ptr, ptr %7, align 8, !tbaa !5
  %1099 = call i32 @strcmp(ptr noundef %1098, ptr noundef @.str.10) #9
  %1100 = icmp ne i32 %1099, 0
  br i1 %1100, label %1103, label %1101

1101:                                             ; preds = %1097
  %1102 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.118) #8
  store i32 1, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

1103:                                             ; preds = %1097, %1094
  store i32 1, ptr %16, align 4, !tbaa !9
  %1104 = load ptr, ptr %13, align 8, !tbaa !5
  %1105 = call ptr @strcpy(ptr noundef %1104, ptr noundef @.str.119) #8
  br label %1184

1106:                                             ; preds = %1091
  %1107 = call noundef i32 @_ZL14xdialogPresentv()
  %1108 = icmp ne i32 %1107, 0
  br i1 %1108, label %1109, label %1121

1109:                                             ; preds = %1106
  %1110 = load ptr, ptr %7, align 8, !tbaa !5
  %1111 = icmp ne ptr %1110, null
  br i1 %1111, label %1112, label %1118

1112:                                             ; preds = %1109
  %1113 = load ptr, ptr %7, align 8, !tbaa !5
  %1114 = call i32 @strcmp(ptr noundef %1113, ptr noundef @.str.10) #9
  %1115 = icmp ne i32 %1114, 0
  br i1 %1115, label %1118, label %1116

1116:                                             ; preds = %1112
  %1117 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.120) #8
  store i32 1, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

1118:                                             ; preds = %1112, %1109
  store i32 1, ptr %16, align 4, !tbaa !9
  %1119 = load ptr, ptr %13, align 8, !tbaa !5
  %1120 = call ptr @strcpy(ptr noundef %1119, ptr noundef @.str.121) #8
  br label %1183

1121:                                             ; preds = %1106
  %1122 = call noundef ptr @_ZL10dialogNamev()
  %1123 = icmp ne ptr %1122, null
  br i1 %1123, label %1124, label %1151

1124:                                             ; preds = %1121
  %1125 = load ptr, ptr %7, align 8, !tbaa !5
  %1126 = icmp ne ptr %1125, null
  br i1 %1126, label %1127, label %1133

1127:                                             ; preds = %1124
  %1128 = load ptr, ptr %7, align 8, !tbaa !5
  %1129 = call i32 @strcmp(ptr noundef %1128, ptr noundef @.str.10) #9
  %1130 = icmp ne i32 %1129, 0
  br i1 %1130, label %1133, label %1131

1131:                                             ; preds = %1127
  %1132 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.122) #8
  store i32 0, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

1133:                                             ; preds = %1127, %1124
  %1134 = call noundef i32 @_ZL17isTerminalRunningv()
  %1135 = icmp ne i32 %1134, 0
  br i1 %1135, label %1136, label %1139

1136:                                             ; preds = %1133
  %1137 = load ptr, ptr %13, align 8, !tbaa !5
  %1138 = call ptr @strcpy(ptr noundef %1137, ptr noundef @.str.123) #8
  br label %1150

1139:                                             ; preds = %1133
  store i32 1, ptr %17, align 4, !tbaa !9
  %1140 = load ptr, ptr %13, align 8, !tbaa !5
  %1141 = call noundef ptr @_ZL12terminalNamev()
  %1142 = call ptr @strcpy(ptr noundef %1140, ptr noundef %1141) #8
  %1143 = load ptr, ptr %13, align 8, !tbaa !5
  %1144 = call ptr @strcat(ptr noundef %1143, ptr noundef @.str.124) #8
  %1145 = load ptr, ptr %13, align 8, !tbaa !5
  %1146 = call noundef ptr @_ZL10dialogNamev()
  %1147 = call ptr @strcat(ptr noundef %1145, ptr noundef %1146) #8
  %1148 = load ptr, ptr %13, align 8, !tbaa !5
  %1149 = call ptr @strcat(ptr noundef %1148, ptr noundef @.str.125) #8
  br label %1150

1150:                                             ; preds = %1139, %1136
  br label %1182

1151:                                             ; preds = %1121
  %1152 = call noundef i32 @_ZL17isTerminalRunningv()
  %1153 = icmp ne i32 %1152, 0
  br i1 %1153, label %1154, label %1166

1154:                                             ; preds = %1151
  %1155 = load ptr, ptr %7, align 8, !tbaa !5
  %1156 = icmp ne ptr %1155, null
  br i1 %1156, label %1157, label %1163

1157:                                             ; preds = %1154
  %1158 = load ptr, ptr %7, align 8, !tbaa !5
  %1159 = call i32 @strcmp(ptr noundef %1158, ptr noundef @.str.10) #9
  %1160 = icmp ne i32 %1159, 0
  br i1 %1160, label %1163, label %1161

1161:                                             ; preds = %1157
  %1162 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.126) #8
  store i32 0, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

1163:                                             ; preds = %1157, %1154
  %1164 = load ptr, ptr %13, align 8, !tbaa !5
  %1165 = call ptr @strcpy(ptr noundef %1164, ptr noundef @.str.127) #8
  br label %1181

1166:                                             ; preds = %1151
  %1167 = load ptr, ptr %7, align 8, !tbaa !5
  %1168 = icmp ne ptr %1167, null
  br i1 %1168, label %1169, label %1175

1169:                                             ; preds = %1166
  %1170 = load ptr, ptr %7, align 8, !tbaa !5
  %1171 = call i32 @strcmp(ptr noundef %1170, ptr noundef @.str.10) #9
  %1172 = icmp ne i32 %1171, 0
  br i1 %1172, label %1175, label %1173

1173:                                             ; preds = %1169
  %1174 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.126) #8
  store i32 0, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

1175:                                             ; preds = %1169, %1166
  store i32 1, ptr %17, align 4, !tbaa !9
  %1176 = load ptr, ptr %13, align 8, !tbaa !5
  %1177 = call noundef ptr @_ZL12terminalNamev()
  %1178 = call ptr @strcpy(ptr noundef %1176, ptr noundef %1177) #8
  %1179 = load ptr, ptr %13, align 8, !tbaa !5
  %1180 = call ptr @strcat(ptr noundef %1179, ptr noundef @.str.128) #8
  br label %1181

1181:                                             ; preds = %1175, %1163
  br label %1182

1182:                                             ; preds = %1181, %1150
  br label %1183

1183:                                             ; preds = %1182, %1118
  br label %1184

1184:                                             ; preds = %1183, %1103
  %1185 = load ptr, ptr %7, align 8, !tbaa !5
  %1186 = icmp ne ptr %1185, null
  br i1 %1186, label %1187, label %1199

1187:                                             ; preds = %1184
  %1188 = load ptr, ptr %7, align 8, !tbaa !5
  %1189 = call i64 @strlen(ptr noundef %1188) #9
  %1190 = icmp ne i64 %1189, 0
  br i1 %1190, label %1191, label %1199

1191:                                             ; preds = %1187
  %1192 = load ptr, ptr %13, align 8, !tbaa !5
  %1193 = call ptr @strcat(ptr noundef %1192, ptr noundef @.str.129) #8
  %1194 = load ptr, ptr %13, align 8, !tbaa !5
  %1195 = load ptr, ptr %7, align 8, !tbaa !5
  %1196 = call ptr @strcat(ptr noundef %1194, ptr noundef %1195) #8
  %1197 = load ptr, ptr %13, align 8, !tbaa !5
  %1198 = call ptr @strcat(ptr noundef %1197, ptr noundef @.str.15) #8
  br label %1199

1199:                                             ; preds = %1191, %1187, %1184
  %1200 = call noundef i32 @_ZL14xdialogPresentv()
  %1201 = icmp ne i32 %1200, 0
  br i1 %1201, label %1228, label %1202

1202:                                             ; preds = %1199
  %1203 = call noundef i32 @_ZL14gdialogPresentv()
  %1204 = icmp ne i32 %1203, 0
  br i1 %1204, label %1228, label %1205

1205:                                             ; preds = %1202
  %1206 = load ptr, ptr %9, align 8, !tbaa !5
  %1207 = icmp ne ptr %1206, null
  br i1 %1207, label %1208, label %1227

1208:                                             ; preds = %1205
  %1209 = load ptr, ptr %9, align 8, !tbaa !5
  %1210 = call i32 @strcmp(ptr noundef @.str.23, ptr noundef %1209) #9
  %1211 = icmp ne i32 %1210, 0
  br i1 %1211, label %1212, label %1220

1212:                                             ; preds = %1208
  %1213 = load ptr, ptr %9, align 8, !tbaa !5
  %1214 = call i32 @strcmp(ptr noundef @.str.25, ptr noundef %1213) #9
  %1215 = icmp ne i32 %1214, 0
  br i1 %1215, label %1216, label %1220

1216:                                             ; preds = %1212
  %1217 = load ptr, ptr %9, align 8, !tbaa !5
  %1218 = call i32 @strcmp(ptr noundef @.str.30, ptr noundef %1217) #9
  %1219 = icmp ne i32 %1218, 0
  br i1 %1219, label %1227, label %1220

1220:                                             ; preds = %1216, %1212, %1208
  %1221 = load ptr, ptr %13, align 8, !tbaa !5
  %1222 = call ptr @strcat(ptr noundef %1221, ptr noundef @.str.130) #8
  %1223 = load ptr, ptr %13, align 8, !tbaa !5
  %1224 = call ptr @strcat(ptr noundef %1223, ptr noundef @.str.131) #8
  %1225 = load ptr, ptr %13, align 8, !tbaa !5
  %1226 = call ptr @strcat(ptr noundef %1225, ptr noundef @.str.15) #8
  br label %1227

1227:                                             ; preds = %1220, %1216, %1205
  br label %1228

1228:                                             ; preds = %1227, %1202, %1199
  %1229 = load ptr, ptr %9, align 8, !tbaa !5
  %1230 = icmp ne ptr %1229, null
  br i1 %1230, label %1231, label %1244

1231:                                             ; preds = %1228
  %1232 = load ptr, ptr %9, align 8, !tbaa !5
  %1233 = call i32 @strcmp(ptr noundef @.str.23, ptr noundef %1232) #9
  %1234 = icmp ne i32 %1233, 0
  br i1 %1234, label %1244, label %1235

1235:                                             ; preds = %1231
  %1236 = load i32, ptr %11, align 4, !tbaa !9
  %1237 = icmp ne i32 %1236, 0
  br i1 %1237, label %1241, label %1238

1238:                                             ; preds = %1235
  %1239 = load ptr, ptr %13, align 8, !tbaa !5
  %1240 = call ptr @strcat(ptr noundef %1239, ptr noundef @.str.132) #8
  br label %1241

1241:                                             ; preds = %1238, %1235
  %1242 = load ptr, ptr %13, align 8, !tbaa !5
  %1243 = call ptr @strcat(ptr noundef %1242, ptr noundef @.str.133) #8
  br label %1281

1244:                                             ; preds = %1231, %1228
  %1245 = load ptr, ptr %9, align 8, !tbaa !5
  %1246 = icmp ne ptr %1245, null
  br i1 %1246, label %1247, label %1260

1247:                                             ; preds = %1244
  %1248 = load ptr, ptr %9, align 8, !tbaa !5
  %1249 = call i32 @strcmp(ptr noundef @.str.25, ptr noundef %1248) #9
  %1250 = icmp ne i32 %1249, 0
  br i1 %1250, label %1260, label %1251

1251:                                             ; preds = %1247
  %1252 = load i32, ptr %11, align 4, !tbaa !9
  %1253 = icmp ne i32 %1252, 0
  br i1 %1253, label %1257, label %1254

1254:                                             ; preds = %1251
  %1255 = load ptr, ptr %13, align 8, !tbaa !5
  %1256 = call ptr @strcat(ptr noundef %1255, ptr noundef @.str.132) #8
  br label %1257

1257:                                             ; preds = %1254, %1251
  %1258 = load ptr, ptr %13, align 8, !tbaa !5
  %1259 = call ptr @strcat(ptr noundef %1258, ptr noundef @.str.134) #8
  br label %1280

1260:                                             ; preds = %1247, %1244
  %1261 = load ptr, ptr %9, align 8, !tbaa !5
  %1262 = icmp ne ptr %1261, null
  br i1 %1262, label %1263, label %1276

1263:                                             ; preds = %1260
  %1264 = load ptr, ptr %9, align 8, !tbaa !5
  %1265 = call i32 @strcmp(ptr noundef @.str.30, ptr noundef %1264) #9
  %1266 = icmp ne i32 %1265, 0
  br i1 %1266, label %1276, label %1267

1267:                                             ; preds = %1263
  %1268 = load i32, ptr %11, align 4, !tbaa !9
  %1269 = icmp ne i32 %1268, 0
  br i1 %1269, label %1273, label %1270

1270:                                             ; preds = %1267
  %1271 = load ptr, ptr %13, align 8, !tbaa !5
  %1272 = call ptr @strcat(ptr noundef %1271, ptr noundef @.str.132) #8
  br label %1273

1273:                                             ; preds = %1270, %1267
  %1274 = load ptr, ptr %13, align 8, !tbaa !5
  %1275 = call ptr @strcat(ptr noundef %1274, ptr noundef @.str.135) #8
  br label %1279

1276:                                             ; preds = %1263, %1260
  %1277 = load ptr, ptr %13, align 8, !tbaa !5
  %1278 = call ptr @strcat(ptr noundef %1277, ptr noundef @.str.136) #8
  br label %1279

1279:                                             ; preds = %1276, %1273
  br label %1280

1280:                                             ; preds = %1279, %1257
  br label %1281

1281:                                             ; preds = %1280, %1241
  %1282 = load ptr, ptr %13, align 8, !tbaa !5
  %1283 = call ptr @strcat(ptr noundef %1282, ptr noundef @.str.47) #8
  %1284 = load ptr, ptr %8, align 8, !tbaa !5
  %1285 = icmp ne ptr %1284, null
  br i1 %1285, label %1286, label %1294

1286:                                             ; preds = %1281
  %1287 = load ptr, ptr %8, align 8, !tbaa !5
  %1288 = call i64 @strlen(ptr noundef %1287) #9
  %1289 = icmp ne i64 %1288, 0
  br i1 %1289, label %1290, label %1294

1290:                                             ; preds = %1286
  %1291 = load ptr, ptr %13, align 8, !tbaa !5
  %1292 = load ptr, ptr %8, align 8, !tbaa !5
  %1293 = call ptr @strcat(ptr noundef %1291, ptr noundef %1292) #8
  br label %1294

1294:                                             ; preds = %1290, %1286, %1281
  %1295 = load ptr, ptr %13, align 8, !tbaa !5
  %1296 = call ptr @strcat(ptr noundef %1295, ptr noundef @.str.15) #8
  %1297 = load i32, ptr %16, align 4, !tbaa !9
  %1298 = icmp ne i32 %1297, 0
  br i1 %1298, label %1299, label %1313

1299:                                             ; preds = %1294
  %1300 = load ptr, ptr %9, align 8, !tbaa !5
  %1301 = icmp ne ptr %1300, null
  br i1 %1301, label %1302, label %1309

1302:                                             ; preds = %1299
  %1303 = load ptr, ptr %9, align 8, !tbaa !5
  %1304 = call i32 @strcmp(ptr noundef @.str.30, ptr noundef %1303) #9
  %1305 = icmp ne i32 %1304, 0
  br i1 %1305, label %1309, label %1306

1306:                                             ; preds = %1302
  %1307 = load ptr, ptr %13, align 8, !tbaa !5
  %1308 = call ptr @strcat(ptr noundef %1307, ptr noundef @.str.137) #8
  br label %1312

1309:                                             ; preds = %1302, %1299
  %1310 = load ptr, ptr %13, align 8, !tbaa !5
  %1311 = call ptr @strcat(ptr noundef %1310, ptr noundef @.str.138) #8
  br label %1312

1312:                                             ; preds = %1309, %1306
  br label %1345

1313:                                             ; preds = %1294
  %1314 = load ptr, ptr %9, align 8, !tbaa !5
  %1315 = icmp ne ptr %1314, null
  br i1 %1315, label %1316, label %1332

1316:                                             ; preds = %1313
  %1317 = load ptr, ptr %9, align 8, !tbaa !5
  %1318 = call i32 @strcmp(ptr noundef @.str.30, ptr noundef %1317) #9
  %1319 = icmp ne i32 %1318, 0
  br i1 %1319, label %1332, label %1320

1320:                                             ; preds = %1316
  %1321 = load ptr, ptr %13, align 8, !tbaa !5
  %1322 = call ptr @strcat(ptr noundef %1321, ptr noundef @.str.139) #8
  %1323 = load i32, ptr %17, align 4, !tbaa !9
  %1324 = icmp ne i32 %1323, 0
  br i1 %1324, label %1325, label %1328

1325:                                             ; preds = %1320
  %1326 = load ptr, ptr %13, align 8, !tbaa !5
  %1327 = call ptr @strcat(ptr noundef %1326, ptr noundef @.str.140) #8
  br label %1331

1328:                                             ; preds = %1320
  %1329 = load ptr, ptr %13, align 8, !tbaa !5
  %1330 = call ptr @strcat(ptr noundef %1329, ptr noundef @.str.141) #8
  br label %1331

1331:                                             ; preds = %1328, %1325
  br label %1344

1332:                                             ; preds = %1316, %1313
  %1333 = load ptr, ptr %13, align 8, !tbaa !5
  %1334 = call ptr @strcat(ptr noundef %1333, ptr noundef @.str.142) #8
  %1335 = load i32, ptr %17, align 4, !tbaa !9
  %1336 = icmp ne i32 %1335, 0
  br i1 %1336, label %1337, label %1340

1337:                                             ; preds = %1332
  %1338 = load ptr, ptr %13, align 8, !tbaa !5
  %1339 = call ptr @strcat(ptr noundef %1338, ptr noundef @.str.143) #8
  br label %1343

1340:                                             ; preds = %1332
  %1341 = load ptr, ptr %13, align 8, !tbaa !5
  %1342 = call ptr @strcat(ptr noundef %1341, ptr noundef @.str.144) #8
  br label %1343

1343:                                             ; preds = %1340, %1337
  br label %1344

1344:                                             ; preds = %1343, %1331
  br label %1345

1345:                                             ; preds = %1344, %1312
  br label %1870

1346:                                             ; preds = %1088
  %1347 = call noundef i32 @_ZL17isTerminalRunningv()
  %1348 = icmp ne i32 %1347, 0
  br i1 %1348, label %1483, label %1349

1349:                                             ; preds = %1346
  %1350 = call noundef ptr @_ZL12terminalNamev()
  %1351 = icmp ne ptr %1350, null
  br i1 %1351, label %1352, label %1483

1352:                                             ; preds = %1349
  %1353 = load ptr, ptr %7, align 8, !tbaa !5
  %1354 = icmp ne ptr %1353, null
  br i1 %1354, label %1355, label %1361

1355:                                             ; preds = %1352
  %1356 = load ptr, ptr %7, align 8, !tbaa !5
  %1357 = call i32 @strcmp(ptr noundef %1356, ptr noundef @.str.10) #9
  %1358 = icmp ne i32 %1357, 0
  br i1 %1358, label %1361, label %1359

1359:                                             ; preds = %1355
  %1360 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.145) #8
  store i32 0, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

1361:                                             ; preds = %1355, %1352
  %1362 = load ptr, ptr %13, align 8, !tbaa !5
  %1363 = call noundef ptr @_ZL12terminalNamev()
  %1364 = call ptr @strcpy(ptr noundef %1362, ptr noundef %1363) #8
  %1365 = load ptr, ptr %13, align 8, !tbaa !5
  %1366 = call ptr @strcat(ptr noundef %1365, ptr noundef @.str.92) #8
  %1367 = load i32, ptr @_ZL17gWarningDisplayed, align 4, !tbaa !9
  %1368 = icmp ne i32 %1367, 0
  br i1 %1368, label %1385, label %1369

1369:                                             ; preds = %1361
  %1370 = load i32, ptr @tinyfd_forceConsole, align 4, !tbaa !9
  %1371 = icmp ne i32 %1370, 0
  br i1 %1371, label %1385, label %1372

1372:                                             ; preds = %1369
  store i32 1, ptr @_ZL17gWarningDisplayed, align 4, !tbaa !9
  %1373 = load ptr, ptr %13, align 8, !tbaa !5
  %1374 = call ptr @strcat(ptr noundef %1373, ptr noundef @.str.146) #8
  %1375 = load ptr, ptr %13, align 8, !tbaa !5
  %1376 = call ptr @strcat(ptr noundef %1375, ptr noundef @_ZL6gTitle) #8
  %1377 = load ptr, ptr %13, align 8, !tbaa !5
  %1378 = call ptr @strcat(ptr noundef %1377, ptr noundef @.str.147) #8
  %1379 = load ptr, ptr %13, align 8, !tbaa !5
  %1380 = call ptr @strcat(ptr noundef %1379, ptr noundef @.str.146) #8
  %1381 = load ptr, ptr %13, align 8, !tbaa !5
  %1382 = call ptr @strcat(ptr noundef %1381, ptr noundef @tinyfd_needs) #8
  %1383 = load ptr, ptr %13, align 8, !tbaa !5
  %1384 = call ptr @strcat(ptr noundef %1383, ptr noundef @.str.148) #8
  br label %1385

1385:                                             ; preds = %1372, %1369, %1361
  %1386 = load ptr, ptr %7, align 8, !tbaa !5
  %1387 = icmp ne ptr %1386, null
  br i1 %1387, label %1388, label %1400

1388:                                             ; preds = %1385
  %1389 = load ptr, ptr %7, align 8, !tbaa !5
  %1390 = call i64 @strlen(ptr noundef %1389) #9
  %1391 = icmp ne i64 %1390, 0
  br i1 %1391, label %1392, label %1400

1392:                                             ; preds = %1388
  %1393 = load ptr, ptr %13, align 8, !tbaa !5
  %1394 = call ptr @strcat(ptr noundef %1393, ptr noundef @.str.146) #8
  %1395 = load ptr, ptr %13, align 8, !tbaa !5
  %1396 = load ptr, ptr %7, align 8, !tbaa !5
  %1397 = call ptr @strcat(ptr noundef %1395, ptr noundef %1396) #8
  %1398 = load ptr, ptr %13, align 8, !tbaa !5
  %1399 = call ptr @strcat(ptr noundef %1398, ptr noundef @.str.149) #8
  br label %1400

1400:                                             ; preds = %1392, %1388, %1385
  %1401 = load ptr, ptr %8, align 8, !tbaa !5
  %1402 = icmp ne ptr %1401, null
  br i1 %1402, label %1403, label %1415

1403:                                             ; preds = %1400
  %1404 = load ptr, ptr %8, align 8, !tbaa !5
  %1405 = call i64 @strlen(ptr noundef %1404) #9
  %1406 = icmp ne i64 %1405, 0
  br i1 %1406, label %1407, label %1415

1407:                                             ; preds = %1403
  %1408 = load ptr, ptr %13, align 8, !tbaa !5
  %1409 = call ptr @strcat(ptr noundef %1408, ptr noundef @.str.146) #8
  %1410 = load ptr, ptr %13, align 8, !tbaa !5
  %1411 = load ptr, ptr %8, align 8, !tbaa !5
  %1412 = call ptr @strcat(ptr noundef %1410, ptr noundef %1411) #8
  %1413 = load ptr, ptr %13, align 8, !tbaa !5
  %1414 = call ptr @strcat(ptr noundef %1413, ptr noundef @.str.150) #8
  br label %1415

1415:                                             ; preds = %1407, %1403, %1400
  %1416 = load ptr, ptr %9, align 8, !tbaa !5
  %1417 = icmp ne ptr %1416, null
  br i1 %1417, label %1418, label %1433

1418:                                             ; preds = %1415
  %1419 = load ptr, ptr %9, align 8, !tbaa !5
  %1420 = call i32 @strcmp(ptr noundef @.str.25, ptr noundef %1419) #9
  %1421 = icmp ne i32 %1420, 0
  br i1 %1421, label %1433, label %1422

1422:                                             ; preds = %1418
  %1423 = load ptr, ptr %13, align 8, !tbaa !5
  %1424 = call ptr @strcat(ptr noundef %1423, ptr noundef @.str.151) #8
  %1425 = load ptr, ptr %13, align 8, !tbaa !5
  %1426 = call ptr @strcat(ptr noundef %1425, ptr noundef @.str.152) #8
  %1427 = load ptr, ptr %13, align 8, !tbaa !5
  %1428 = call ptr @strcat(ptr noundef %1427, ptr noundef @.str.153) #8
  %1429 = load ptr, ptr %13, align 8, !tbaa !5
  %1430 = call ptr @strcat(ptr noundef %1429, ptr noundef @.str.154) #8
  %1431 = load ptr, ptr %13, align 8, !tbaa !5
  %1432 = call ptr @strcat(ptr noundef %1431, ptr noundef @.str.155) #8
  br label %1480

1433:                                             ; preds = %1418, %1415
  %1434 = load ptr, ptr %9, align 8, !tbaa !5
  %1435 = icmp ne ptr %1434, null
  br i1 %1435, label %1436, label %1451

1436:                                             ; preds = %1433
  %1437 = load ptr, ptr %9, align 8, !tbaa !5
  %1438 = call i32 @strcmp(ptr noundef @.str.23, ptr noundef %1437) #9
  %1439 = icmp ne i32 %1438, 0
  br i1 %1439, label %1451, label %1440

1440:                                             ; preds = %1436
  %1441 = load ptr, ptr %13, align 8, !tbaa !5
  %1442 = call ptr @strcat(ptr noundef %1441, ptr noundef @.str.156) #8
  %1443 = load ptr, ptr %13, align 8, !tbaa !5
  %1444 = call ptr @strcat(ptr noundef %1443, ptr noundef @.str.152) #8
  %1445 = load ptr, ptr %13, align 8, !tbaa !5
  %1446 = call ptr @strcat(ptr noundef %1445, ptr noundef @.str.157) #8
  %1447 = load ptr, ptr %13, align 8, !tbaa !5
  %1448 = call ptr @strcat(ptr noundef %1447, ptr noundef @.str.158) #8
  %1449 = load ptr, ptr %13, align 8, !tbaa !5
  %1450 = call ptr @strcat(ptr noundef %1449, ptr noundef @.str.155) #8
  br label %1479

1451:                                             ; preds = %1436, %1433
  %1452 = load ptr, ptr %9, align 8, !tbaa !5
  %1453 = icmp ne ptr %1452, null
  br i1 %1453, label %1454, label %1471

1454:                                             ; preds = %1451
  %1455 = load ptr, ptr %9, align 8, !tbaa !5
  %1456 = call i32 @strcmp(ptr noundef @.str.30, ptr noundef %1455) #9
  %1457 = icmp ne i32 %1456, 0
  br i1 %1457, label %1471, label %1458

1458:                                             ; preds = %1454
  %1459 = load ptr, ptr %13, align 8, !tbaa !5
  %1460 = call ptr @strcat(ptr noundef %1459, ptr noundef @.str.159) #8
  %1461 = load ptr, ptr %13, align 8, !tbaa !5
  %1462 = call ptr @strcat(ptr noundef %1461, ptr noundef @.str.152) #8
  %1463 = load ptr, ptr %13, align 8, !tbaa !5
  %1464 = call ptr @strcat(ptr noundef %1463, ptr noundef @.str.160) #8
  %1465 = load ptr, ptr %13, align 8, !tbaa !5
  %1466 = call ptr @strcat(ptr noundef %1465, ptr noundef @.str.161) #8
  %1467 = load ptr, ptr %13, align 8, !tbaa !5
  %1468 = call ptr @strcat(ptr noundef %1467, ptr noundef @.str.162) #8
  %1469 = load ptr, ptr %13, align 8, !tbaa !5
  %1470 = call ptr @strcat(ptr noundef %1469, ptr noundef @.str.163) #8
  br label %1478

1471:                                             ; preds = %1454, %1451
  %1472 = load ptr, ptr %13, align 8, !tbaa !5
  %1473 = call ptr @strcat(ptr noundef %1472, ptr noundef @.str.164) #8
  %1474 = load ptr, ptr %13, align 8, !tbaa !5
  %1475 = call ptr @strcat(ptr noundef %1474, ptr noundef @.str.152) #8
  %1476 = load ptr, ptr %13, align 8, !tbaa !5
  %1477 = call ptr @strcat(ptr noundef %1476, ptr noundef @.str.165) #8
  br label %1478

1478:                                             ; preds = %1471, %1458
  br label %1479

1479:                                             ; preds = %1478, %1440
  br label %1480

1480:                                             ; preds = %1479, %1422
  %1481 = load ptr, ptr %13, align 8, !tbaa !5
  %1482 = call ptr @strcat(ptr noundef %1481, ptr noundef @.str.166) #8
  br label %1869

1483:                                             ; preds = %1349, %1346
  %1484 = call noundef i32 @_ZL17isTerminalRunningv()
  %1485 = icmp ne i32 %1484, 0
  br i1 %1485, label %1555, label %1486

1486:                                             ; preds = %1483
  %1487 = call noundef i32 @_ZL17pythonDbusPresentv()
  %1488 = icmp ne i32 %1487, 0
  br i1 %1488, label %1489, label %1555

1489:                                             ; preds = %1486
  %1490 = load ptr, ptr %9, align 8, !tbaa !5
  %1491 = call i32 @strcmp(ptr noundef @.str.167, ptr noundef %1490) #9
  %1492 = icmp ne i32 %1491, 0
  br i1 %1492, label %1555, label %1493

1493:                                             ; preds = %1489
  %1494 = load ptr, ptr %7, align 8, !tbaa !5
  %1495 = icmp ne ptr %1494, null
  br i1 %1495, label %1496, label %1502

1496:                                             ; preds = %1493
  %1497 = load ptr, ptr %7, align 8, !tbaa !5
  %1498 = call i32 @strcmp(ptr noundef %1497, ptr noundef @.str.10) #9
  %1499 = icmp ne i32 %1498, 0
  br i1 %1499, label %1502, label %1500

1500:                                             ; preds = %1496
  %1501 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.168) #8
  store i32 1, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

1502:                                             ; preds = %1496, %1493
  %1503 = load ptr, ptr %13, align 8, !tbaa !5
  %1504 = call ptr @strcpy(ptr noundef %1503, ptr noundef @_ZL11gPythonName) #8
  %1505 = load ptr, ptr %13, align 8, !tbaa !5
  %1506 = call ptr @strcat(ptr noundef %1505, ptr noundef @.str.169) #8
  %1507 = load ptr, ptr %13, align 8, !tbaa !5
  %1508 = call ptr @strcat(ptr noundef %1507, ptr noundef @.str.170) #8
  %1509 = load ptr, ptr %13, align 8, !tbaa !5
  %1510 = call ptr @strcat(ptr noundef %1509, ptr noundef @.str.171) #8
  %1511 = load ptr, ptr %13, align 8, !tbaa !5
  %1512 = call ptr @strcat(ptr noundef %1511, ptr noundef @.str.172) #8
  %1513 = load ptr, ptr %10, align 8, !tbaa !5
  %1514 = icmp ne ptr %1513, null
  br i1 %1514, label %1515, label %1523

1515:                                             ; preds = %1502
  %1516 = load ptr, ptr %10, align 8, !tbaa !5
  %1517 = call i64 @strlen(ptr noundef %1516) #9
  %1518 = icmp ne i64 %1517, 0
  br i1 %1518, label %1519, label %1523

1519:                                             ; preds = %1515
  %1520 = load ptr, ptr %13, align 8, !tbaa !5
  %1521 = load ptr, ptr %10, align 8, !tbaa !5
  %1522 = call ptr @strcat(ptr noundef %1520, ptr noundef %1521) #8
  br label %1523

1523:                                             ; preds = %1519, %1515, %1502
  %1524 = load ptr, ptr %13, align 8, !tbaa !5
  %1525 = call ptr @strcat(ptr noundef %1524, ptr noundef @.str.173) #8
  %1526 = load ptr, ptr %7, align 8, !tbaa !5
  %1527 = icmp ne ptr %1526, null
  br i1 %1527, label %1528, label %1536

1528:                                             ; preds = %1523
  %1529 = load ptr, ptr %7, align 8, !tbaa !5
  %1530 = call i64 @strlen(ptr noundef %1529) #9
  %1531 = icmp ne i64 %1530, 0
  br i1 %1531, label %1532, label %1536

1532:                                             ; preds = %1528
  %1533 = load ptr, ptr %13, align 8, !tbaa !5
  %1534 = load ptr, ptr %7, align 8, !tbaa !5
  %1535 = call ptr @strcat(ptr noundef %1533, ptr noundef %1534) #8
  br label %1536

1536:                                             ; preds = %1532, %1528, %1523
  %1537 = load ptr, ptr %13, align 8, !tbaa !5
  %1538 = call ptr @strcat(ptr noundef %1537, ptr noundef @.str.173) #8
  %1539 = load ptr, ptr %8, align 8, !tbaa !5
  %1540 = icmp ne ptr %1539, null
  br i1 %1540, label %1541, label %1552

1541:                                             ; preds = %1536
  %1542 = load ptr, ptr %8, align 8, !tbaa !5
  %1543 = call i64 @strlen(ptr noundef %1542) #9
  %1544 = icmp ne i64 %1543, 0
  br i1 %1544, label %1545, label %1552

1545:                                             ; preds = %1541
  %1546 = load ptr, ptr %13, align 8, !tbaa !5
  %1547 = load ptr, ptr %13, align 8, !tbaa !5
  %1548 = call i64 @strlen(ptr noundef %1547) #9
  %1549 = getelementptr inbounds i8, ptr %1546, i64 %1548
  store ptr %1549, ptr %14, align 8, !tbaa !5
  %1550 = load ptr, ptr %8, align 8, !tbaa !5
  %1551 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef %1550, ptr noundef @.str.90, ptr noundef @.str.91, ptr noundef %1551)
  br label %1552

1552:                                             ; preds = %1545, %1541, %1536
  %1553 = load ptr, ptr %13, align 8, !tbaa !5
  %1554 = call ptr @strcat(ptr noundef %1553, ptr noundef @.str.174) #8
  br label %1868

1555:                                             ; preds = %1489, %1486, %1483
  %1556 = call noundef i32 @_ZL17isTerminalRunningv()
  %1557 = icmp ne i32 %1556, 0
  br i1 %1557, label %1598, label %1558

1558:                                             ; preds = %1555
  %1559 = call noundef i32 @_ZL11perlPresentv()
  %1560 = icmp sge i32 %1559, 2
  br i1 %1560, label %1561, label %1598

1561:                                             ; preds = %1558
  %1562 = load ptr, ptr %9, align 8, !tbaa !5
  %1563 = call i32 @strcmp(ptr noundef @.str.167, ptr noundef %1562) #9
  %1564 = icmp ne i32 %1563, 0
  br i1 %1564, label %1598, label %1565

1565:                                             ; preds = %1561
  %1566 = load ptr, ptr %7, align 8, !tbaa !5
  %1567 = icmp ne ptr %1566, null
  br i1 %1567, label %1568, label %1574

1568:                                             ; preds = %1565
  %1569 = load ptr, ptr %7, align 8, !tbaa !5
  %1570 = call i32 @strcmp(ptr noundef %1569, ptr noundef @.str.10) #9
  %1571 = icmp ne i32 %1570, 0
  br i1 %1571, label %1574, label %1572

1572:                                             ; preds = %1568
  %1573 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.175) #8
  store i32 1, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

1574:                                             ; preds = %1568, %1565
  %1575 = load ptr, ptr %13, align 8, !tbaa !5
  %1576 = load ptr, ptr %10, align 8, !tbaa !5
  %1577 = icmp ne ptr %1576, null
  br i1 %1577, label %1578, label %1580

1578:                                             ; preds = %1574
  %1579 = load ptr, ptr %10, align 8, !tbaa !5
  br label %1581

1580:                                             ; preds = %1574
  br label %1581

1581:                                             ; preds = %1580, %1578
  %1582 = phi ptr [ %1579, %1578 ], [ @.str.177, %1580 ]
  %1583 = load ptr, ptr %7, align 8, !tbaa !5
  %1584 = icmp ne ptr %1583, null
  br i1 %1584, label %1585, label %1587

1585:                                             ; preds = %1581
  %1586 = load ptr, ptr %7, align 8, !tbaa !5
  br label %1588

1587:                                             ; preds = %1581
  br label %1588

1588:                                             ; preds = %1587, %1585
  %1589 = phi ptr [ %1586, %1585 ], [ @.str.177, %1587 ]
  %1590 = load ptr, ptr %8, align 8, !tbaa !5
  %1591 = icmp ne ptr %1590, null
  br i1 %1591, label %1592, label %1594

1592:                                             ; preds = %1588
  %1593 = load ptr, ptr %8, align 8, !tbaa !5
  br label %1595

1594:                                             ; preds = %1588
  br label %1595

1595:                                             ; preds = %1594, %1592
  %1596 = phi ptr [ %1593, %1592 ], [ @.str.177, %1594 ]
  %1597 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %1575, ptr noundef @.str.176, ptr noundef %1582, ptr noundef %1589, ptr noundef %1596) #8
  br label %1867

1598:                                             ; preds = %1561, %1558, %1555
  %1599 = call noundef i32 @_ZL17isTerminalRunningv()
  %1600 = icmp ne i32 %1599, 0
  br i1 %1600, label %1669, label %1601

1601:                                             ; preds = %1598
  %1602 = call noundef i32 @_ZL17notifysendPresentv()
  %1603 = icmp ne i32 %1602, 0
  br i1 %1603, label %1604, label %1669

1604:                                             ; preds = %1601
  %1605 = load ptr, ptr %9, align 8, !tbaa !5
  %1606 = call i32 @strcmp(ptr noundef @.str.167, ptr noundef %1605) #9
  %1607 = icmp ne i32 %1606, 0
  br i1 %1607, label %1669, label %1608

1608:                                             ; preds = %1604
  %1609 = load ptr, ptr %7, align 8, !tbaa !5
  %1610 = icmp ne ptr %1609, null
  br i1 %1610, label %1611, label %1617

1611:                                             ; preds = %1608
  %1612 = load ptr, ptr %7, align 8, !tbaa !5
  %1613 = call i32 @strcmp(ptr noundef %1612, ptr noundef @.str.10) #9
  %1614 = icmp ne i32 %1613, 0
  br i1 %1614, label %1617, label %1615

1615:                                             ; preds = %1611
  %1616 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.178) #8
  store i32 1, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

1617:                                             ; preds = %1611, %1608
  %1618 = load ptr, ptr %13, align 8, !tbaa !5
  %1619 = call ptr @strcpy(ptr noundef %1618, ptr noundef @.str.179) #8
  %1620 = load ptr, ptr %10, align 8, !tbaa !5
  %1621 = icmp ne ptr %1620, null
  br i1 %1621, label %1622, label %1634

1622:                                             ; preds = %1617
  %1623 = load ptr, ptr %10, align 8, !tbaa !5
  %1624 = call i64 @strlen(ptr noundef %1623) #9
  %1625 = icmp ne i64 %1624, 0
  br i1 %1625, label %1626, label %1634

1626:                                             ; preds = %1622
  %1627 = load ptr, ptr %13, align 8, !tbaa !5
  %1628 = call ptr @strcat(ptr noundef %1627, ptr noundef @.str.180) #8
  %1629 = load ptr, ptr %13, align 8, !tbaa !5
  %1630 = load ptr, ptr %10, align 8, !tbaa !5
  %1631 = call ptr @strcat(ptr noundef %1629, ptr noundef %1630) #8
  %1632 = load ptr, ptr %13, align 8, !tbaa !5
  %1633 = call ptr @strcat(ptr noundef %1632, ptr noundef @.str.92) #8
  br label %1634

1634:                                             ; preds = %1626, %1622, %1617
  %1635 = load ptr, ptr %13, align 8, !tbaa !5
  %1636 = call ptr @strcat(ptr noundef %1635, ptr noundef @.str.46) #8
  %1637 = load ptr, ptr %7, align 8, !tbaa !5
  %1638 = icmp ne ptr %1637, null
  br i1 %1638, label %1639, label %1649

1639:                                             ; preds = %1634
  %1640 = load ptr, ptr %7, align 8, !tbaa !5
  %1641 = call i64 @strlen(ptr noundef %1640) #9
  %1642 = icmp ne i64 %1641, 0
  br i1 %1642, label %1643, label %1649

1643:                                             ; preds = %1639
  %1644 = load ptr, ptr %13, align 8, !tbaa !5
  %1645 = load ptr, ptr %7, align 8, !tbaa !5
  %1646 = call ptr @strcat(ptr noundef %1644, ptr noundef %1645) #8
  %1647 = load ptr, ptr %13, align 8, !tbaa !5
  %1648 = call ptr @strcat(ptr noundef %1647, ptr noundef @.str.181) #8
  br label %1649

1649:                                             ; preds = %1643, %1639, %1634
  %1650 = load ptr, ptr %8, align 8, !tbaa !5
  %1651 = icmp ne ptr %1650, null
  br i1 %1651, label %1652, label %1666

1652:                                             ; preds = %1649
  %1653 = load ptr, ptr %8, align 8, !tbaa !5
  %1654 = call i64 @strlen(ptr noundef %1653) #9
  %1655 = icmp ne i64 %1654, 0
  br i1 %1655, label %1656, label %1666

1656:                                             ; preds = %1652
  %1657 = load ptr, ptr %8, align 8, !tbaa !5
  %1658 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  call void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef %1657, ptr noundef @.str.182, ptr noundef @.str.183, ptr noundef %1658)
  %1659 = load ptr, ptr %8, align 8, !tbaa !5
  %1660 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  call void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef %1659, ptr noundef @.str.90, ptr noundef @.str.181, ptr noundef %1660)
  %1661 = load ptr, ptr %8, align 8, !tbaa !5
  %1662 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  call void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef %1661, ptr noundef @.str.184, ptr noundef @.str.185, ptr noundef %1662)
  %1663 = load ptr, ptr %13, align 8, !tbaa !5
  %1664 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %1665 = call ptr @strcat(ptr noundef %1663, ptr noundef %1664) #8
  br label %1666

1666:                                             ; preds = %1656, %1652, %1649
  %1667 = load ptr, ptr %13, align 8, !tbaa !5
  %1668 = call ptr @strcat(ptr noundef %1667, ptr noundef @.str.47) #8
  br label %1866

1669:                                             ; preds = %1604, %1601, %1598
  %1670 = load ptr, ptr %7, align 8, !tbaa !5
  %1671 = icmp ne ptr %1670, null
  br i1 %1671, label %1672, label %1678

1672:                                             ; preds = %1669
  %1673 = load ptr, ptr %7, align 8, !tbaa !5
  %1674 = call i32 @strcmp(ptr noundef %1673, ptr noundef @.str.10) #9
  %1675 = icmp ne i32 %1674, 0
  br i1 %1675, label %1678, label %1676

1676:                                             ; preds = %1672
  %1677 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.145) #8
  store i32 0, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

1678:                                             ; preds = %1672, %1669
  %1679 = load i32, ptr @_ZL17gWarningDisplayed, align 4, !tbaa !9
  %1680 = icmp ne i32 %1679, 0
  br i1 %1680, label %1687, label %1681

1681:                                             ; preds = %1678
  %1682 = load i32, ptr @tinyfd_forceConsole, align 4, !tbaa !9
  %1683 = icmp ne i32 %1682, 0
  br i1 %1683, label %1687, label %1684

1684:                                             ; preds = %1681
  store i32 1, ptr @_ZL17gWarningDisplayed, align 4, !tbaa !9
  %1685 = call i32 (ptr, ...) @printf(ptr noundef @.str.186, ptr noundef @_ZL6gTitle)
  %1686 = call i32 (ptr, ...) @printf(ptr noundef @.str.187, ptr noundef @tinyfd_needs)
  br label %1687

1687:                                             ; preds = %1684, %1681, %1678
  %1688 = load ptr, ptr %7, align 8, !tbaa !5
  %1689 = icmp ne ptr %1688, null
  br i1 %1689, label %1690, label %1697

1690:                                             ; preds = %1687
  %1691 = load ptr, ptr %7, align 8, !tbaa !5
  %1692 = call i64 @strlen(ptr noundef %1691) #9
  %1693 = icmp ne i64 %1692, 0
  br i1 %1693, label %1694, label %1697

1694:                                             ; preds = %1690
  %1695 = load ptr, ptr %7, align 8, !tbaa !5
  %1696 = call i32 (ptr, ...) @printf(ptr noundef @.str.188, ptr noundef %1695)
  br label %1697

1697:                                             ; preds = %1694, %1690, %1687
  %1698 = call i32 @tcgetattr(i32 noundef 0, ptr noundef %20) #8
  %1699 = call i32 @tcgetattr(i32 noundef 0, ptr noundef %21) #8
  %1700 = getelementptr inbounds %struct.termios, ptr %21, i32 0, i32 3
  %1701 = load i32, ptr %1700, align 4, !tbaa !14
  %1702 = and i32 %1701, -3
  store i32 %1702, ptr %1700, align 4, !tbaa !14
  %1703 = getelementptr inbounds %struct.termios, ptr %21, i32 0, i32 5
  %1704 = getelementptr inbounds [32 x i8], ptr %1703, i64 0, i64 6
  store i8 1, ptr %1704, align 1, !tbaa !11
  %1705 = getelementptr inbounds %struct.termios, ptr %21, i32 0, i32 5
  %1706 = getelementptr inbounds [32 x i8], ptr %1705, i64 0, i64 5
  store i8 0, ptr %1706, align 1, !tbaa !11
  %1707 = call i32 @tcsetattr(i32 noundef 0, i32 noundef 0, ptr noundef %21) #8
  %1708 = load ptr, ptr %9, align 8, !tbaa !5
  %1709 = icmp ne ptr %1708, null
  br i1 %1709, label %1710, label %1749

1710:                                             ; preds = %1697
  %1711 = load ptr, ptr %9, align 8, !tbaa !5
  %1712 = call i32 @strcmp(ptr noundef @.str.25, ptr noundef %1711) #9
  %1713 = icmp ne i32 %1712, 0
  br i1 %1713, label %1749, label %1714

1714:                                             ; preds = %1710
  br label %1715

1715:                                             ; preds = %1741, %1714
  %1716 = load ptr, ptr %8, align 8, !tbaa !5
  %1717 = icmp ne ptr %1716, null
  br i1 %1717, label %1718, label %1725

1718:                                             ; preds = %1715
  %1719 = load ptr, ptr %8, align 8, !tbaa !5
  %1720 = call i64 @strlen(ptr noundef %1719) #9
  %1721 = icmp ne i64 %1720, 0
  br i1 %1721, label %1722, label %1725

1722:                                             ; preds = %1718
  %1723 = load ptr, ptr %8, align 8, !tbaa !5
  %1724 = call i32 (ptr, ...) @printf(ptr noundef @.str.188, ptr noundef %1723)
  br label %1725

1725:                                             ; preds = %1722, %1718, %1715
  %1726 = call i32 (ptr, ...) @printf(ptr noundef @.str.189)
  %1727 = load ptr, ptr @stdout, align 8, !tbaa !5
  %1728 = call i32 @fflush(ptr noundef %1727)
  %1729 = call i32 @getchar()
  %1730 = call i32 @tolower(i32 noundef %1729) #9
  %1731 = trunc i32 %1730 to i8
  store i8 %1731, ptr %19, align 1, !tbaa !11
  %1732 = call i32 (ptr, ...) @printf(ptr noundef @.str.190)
  br label %1733

1733:                                             ; preds = %1725
  %1734 = load i8, ptr %19, align 1, !tbaa !11
  %1735 = sext i8 %1734 to i32
  %1736 = icmp ne i32 %1735, 121
  br i1 %1736, label %1737, label %1741

1737:                                             ; preds = %1733
  %1738 = load i8, ptr %19, align 1, !tbaa !11
  %1739 = sext i8 %1738 to i32
  %1740 = icmp ne i32 %1739, 110
  br label %1741

1741:                                             ; preds = %1737, %1733
  %1742 = phi i1 [ false, %1733 ], [ %1740, %1737 ]
  br i1 %1742, label %1715, label %1743, !llvm.loop !16

1743:                                             ; preds = %1741
  %1744 = load i8, ptr %19, align 1, !tbaa !11
  %1745 = sext i8 %1744 to i32
  %1746 = icmp eq i32 %1745, 121
  %1747 = zext i1 %1746 to i64
  %1748 = select i1 %1746, i32 1, i32 0
  store i32 %1748, ptr %18, align 4, !tbaa !9
  br label %1862

1749:                                             ; preds = %1710, %1697
  %1750 = load ptr, ptr %9, align 8, !tbaa !5
  %1751 = icmp ne ptr %1750, null
  br i1 %1751, label %1752, label %1791

1752:                                             ; preds = %1749
  %1753 = load ptr, ptr %9, align 8, !tbaa !5
  %1754 = call i32 @strcmp(ptr noundef @.str.23, ptr noundef %1753) #9
  %1755 = icmp ne i32 %1754, 0
  br i1 %1755, label %1791, label %1756

1756:                                             ; preds = %1752
  br label %1757

1757:                                             ; preds = %1783, %1756
  %1758 = load ptr, ptr %8, align 8, !tbaa !5
  %1759 = icmp ne ptr %1758, null
  br i1 %1759, label %1760, label %1767

1760:                                             ; preds = %1757
  %1761 = load ptr, ptr %8, align 8, !tbaa !5
  %1762 = call i64 @strlen(ptr noundef %1761) #9
  %1763 = icmp ne i64 %1762, 0
  br i1 %1763, label %1764, label %1767

1764:                                             ; preds = %1760
  %1765 = load ptr, ptr %8, align 8, !tbaa !5
  %1766 = call i32 (ptr, ...) @printf(ptr noundef @.str.188, ptr noundef %1765)
  br label %1767

1767:                                             ; preds = %1764, %1760, %1757
  %1768 = call i32 (ptr, ...) @printf(ptr noundef @.str.191)
  %1769 = load ptr, ptr @stdout, align 8, !tbaa !5
  %1770 = call i32 @fflush(ptr noundef %1769)
  %1771 = call i32 @getchar()
  %1772 = call i32 @tolower(i32 noundef %1771) #9
  %1773 = trunc i32 %1772 to i8
  store i8 %1773, ptr %19, align 1, !tbaa !11
  %1774 = call i32 (ptr, ...) @printf(ptr noundef @.str.190)
  br label %1775

1775:                                             ; preds = %1767
  %1776 = load i8, ptr %19, align 1, !tbaa !11
  %1777 = sext i8 %1776 to i32
  %1778 = icmp ne i32 %1777, 111
  br i1 %1778, label %1779, label %1783

1779:                                             ; preds = %1775
  %1780 = load i8, ptr %19, align 1, !tbaa !11
  %1781 = sext i8 %1780 to i32
  %1782 = icmp ne i32 %1781, 99
  br label %1783

1783:                                             ; preds = %1779, %1775
  %1784 = phi i1 [ false, %1775 ], [ %1782, %1779 ]
  br i1 %1784, label %1757, label %1785, !llvm.loop !18

1785:                                             ; preds = %1783
  %1786 = load i8, ptr %19, align 1, !tbaa !11
  %1787 = sext i8 %1786 to i32
  %1788 = icmp eq i32 %1787, 111
  %1789 = zext i1 %1788 to i64
  %1790 = select i1 %1788, i32 1, i32 0
  store i32 %1790, ptr %18, align 4, !tbaa !9
  br label %1861

1791:                                             ; preds = %1752, %1749
  %1792 = load ptr, ptr %9, align 8, !tbaa !5
  %1793 = icmp ne ptr %1792, null
  br i1 %1793, label %1794, label %1844

1794:                                             ; preds = %1791
  %1795 = load ptr, ptr %9, align 8, !tbaa !5
  %1796 = call i32 @strcmp(ptr noundef @.str.30, ptr noundef %1795) #9
  %1797 = icmp ne i32 %1796, 0
  br i1 %1797, label %1844, label %1798

1798:                                             ; preds = %1794
  br label %1799

1799:                                             ; preds = %1829, %1798
  %1800 = load ptr, ptr %8, align 8, !tbaa !5
  %1801 = icmp ne ptr %1800, null
  br i1 %1801, label %1802, label %1809

1802:                                             ; preds = %1799
  %1803 = load ptr, ptr %8, align 8, !tbaa !5
  %1804 = call i64 @strlen(ptr noundef %1803) #9
  %1805 = icmp ne i64 %1804, 0
  br i1 %1805, label %1806, label %1809

1806:                                             ; preds = %1802
  %1807 = load ptr, ptr %8, align 8, !tbaa !5
  %1808 = call i32 (ptr, ...) @printf(ptr noundef @.str.188, ptr noundef %1807)
  br label %1809

1809:                                             ; preds = %1806, %1802, %1799
  %1810 = call i32 (ptr, ...) @printf(ptr noundef @.str.192)
  %1811 = load ptr, ptr @stdout, align 8, !tbaa !5
  %1812 = call i32 @fflush(ptr noundef %1811)
  %1813 = call i32 @getchar()
  %1814 = call i32 @tolower(i32 noundef %1813) #9
  %1815 = trunc i32 %1814 to i8
  store i8 %1815, ptr %19, align 1, !tbaa !11
  %1816 = call i32 (ptr, ...) @printf(ptr noundef @.str.190)
  br label %1817

1817:                                             ; preds = %1809
  %1818 = load i8, ptr %19, align 1, !tbaa !11
  %1819 = sext i8 %1818 to i32
  %1820 = icmp ne i32 %1819, 121
  br i1 %1820, label %1821, label %1829

1821:                                             ; preds = %1817
  %1822 = load i8, ptr %19, align 1, !tbaa !11
  %1823 = sext i8 %1822 to i32
  %1824 = icmp ne i32 %1823, 110
  br i1 %1824, label %1825, label %1829

1825:                                             ; preds = %1821
  %1826 = load i8, ptr %19, align 1, !tbaa !11
  %1827 = sext i8 %1826 to i32
  %1828 = icmp ne i32 %1827, 99
  br label %1829

1829:                                             ; preds = %1825, %1821, %1817
  %1830 = phi i1 [ false, %1821 ], [ false, %1817 ], [ %1828, %1825 ]
  br i1 %1830, label %1799, label %1831, !llvm.loop !19

1831:                                             ; preds = %1829
  %1832 = load i8, ptr %19, align 1, !tbaa !11
  %1833 = sext i8 %1832 to i32
  %1834 = icmp eq i32 %1833, 121
  br i1 %1834, label %1835, label %1836

1835:                                             ; preds = %1831
  br label %1842

1836:                                             ; preds = %1831
  %1837 = load i8, ptr %19, align 1, !tbaa !11
  %1838 = sext i8 %1837 to i32
  %1839 = icmp eq i32 %1838, 110
  %1840 = zext i1 %1839 to i64
  %1841 = select i1 %1839, i32 2, i32 0
  br label %1842

1842:                                             ; preds = %1836, %1835
  %1843 = phi i32 [ 1, %1835 ], [ %1841, %1836 ]
  store i32 %1843, ptr %18, align 4, !tbaa !9
  br label %1860

1844:                                             ; preds = %1794, %1791
  %1845 = load ptr, ptr %8, align 8, !tbaa !5
  %1846 = icmp ne ptr %1845, null
  br i1 %1846, label %1847, label %1854

1847:                                             ; preds = %1844
  %1848 = load ptr, ptr %8, align 8, !tbaa !5
  %1849 = call i64 @strlen(ptr noundef %1848) #9
  %1850 = icmp ne i64 %1849, 0
  br i1 %1850, label %1851, label %1854

1851:                                             ; preds = %1847
  %1852 = load ptr, ptr %8, align 8, !tbaa !5
  %1853 = call i32 (ptr, ...) @printf(ptr noundef @.str.193, ptr noundef %1852)
  br label %1854

1854:                                             ; preds = %1851, %1847, %1844
  %1855 = call i32 (ptr, ...) @printf(ptr noundef @.str.194)
  %1856 = load ptr, ptr @stdout, align 8, !tbaa !5
  %1857 = call i32 @fflush(ptr noundef %1856)
  %1858 = call i32 @getchar()
  %1859 = call i32 (ptr, ...) @printf(ptr noundef @.str.190)
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %1860

1860:                                             ; preds = %1854, %1842
  br label %1861

1861:                                             ; preds = %1860, %1785
  br label %1862

1862:                                             ; preds = %1861, %1743
  %1863 = call i32 @tcsetattr(i32 noundef 0, i32 noundef 0, ptr noundef %20) #8
  %1864 = load ptr, ptr %13, align 8, !tbaa !5
  call void @free(ptr noundef %1864) #8
  %1865 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %1865, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

1866:                                             ; preds = %1666
  br label %1867

1867:                                             ; preds = %1866, %1595
  br label %1868

1868:                                             ; preds = %1867, %1552
  br label %1869

1869:                                             ; preds = %1868, %1480
  br label %1870

1870:                                             ; preds = %1869, %1345
  br label %1871

1871:                                             ; preds = %1870, %1076
  br label %1872

1872:                                             ; preds = %1871, %923
  br label %1873

1873:                                             ; preds = %1872, %756
  br label %1874

1874:                                             ; preds = %1873, %574
  br label %1875

1875:                                             ; preds = %1874, %345
  br label %1876

1876:                                             ; preds = %1875, %211
  %1877 = load i32, ptr @tinyfd_verbose, align 4, !tbaa !9
  %1878 = icmp ne i32 %1877, 0
  br i1 %1878, label %1879, label %1882

1879:                                             ; preds = %1876
  %1880 = load ptr, ptr %13, align 8, !tbaa !5
  %1881 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %1880)
  br label %1882

1882:                                             ; preds = %1879, %1876
  %1883 = load ptr, ptr %13, align 8, !tbaa !5
  %1884 = call noalias ptr @popen(ptr noundef %1883, ptr noundef @.str.9)
  store ptr %1884, ptr %15, align 8, !tbaa !5
  %1885 = icmp ne ptr %1884, null
  br i1 %1885, label %1888, label %1886

1886:                                             ; preds = %1882
  %1887 = load ptr, ptr %13, align 8, !tbaa !5
  call void @free(ptr noundef %1887) #8
  store i32 0, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

1888:                                             ; preds = %1882
  br label %1889

1889:                                             ; preds = %1894, %1888
  %1890 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %1891 = load ptr, ptr %15, align 8, !tbaa !5
  %1892 = call ptr @fgets(ptr noundef %1890, i32 noundef 1024, ptr noundef %1891)
  %1893 = icmp ne ptr %1892, null
  br i1 %1893, label %1894, label %1895

1894:                                             ; preds = %1889
  br label %1889, !llvm.loop !20

1895:                                             ; preds = %1889
  %1896 = load ptr, ptr %15, align 8, !tbaa !5
  %1897 = call i32 @pclose(ptr noundef %1896)
  %1898 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %1899 = call i64 @strlen(ptr noundef %1898) #9
  %1900 = sub i64 %1899, 1
  %1901 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 %1900
  %1902 = load i8, ptr %1901, align 1, !tbaa !11
  %1903 = sext i8 %1902 to i32
  %1904 = icmp eq i32 %1903, 10
  br i1 %1904, label %1905, label %1910

1905:                                             ; preds = %1895
  %1906 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %1907 = call i64 @strlen(ptr noundef %1906) #9
  %1908 = sub i64 %1907, 1
  %1909 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 %1908
  store i8 0, ptr %1909, align 1, !tbaa !11
  br label %1910

1910:                                             ; preds = %1905, %1895
  %1911 = load ptr, ptr %9, align 8, !tbaa !5
  %1912 = icmp ne ptr %1911, null
  br i1 %1912, label %1913, label %1941

1913:                                             ; preds = %1910
  %1914 = load ptr, ptr %9, align 8, !tbaa !5
  %1915 = call i32 @strcmp(ptr noundef @.str.30, ptr noundef %1914) #9
  %1916 = icmp ne i32 %1915, 0
  br i1 %1916, label %1941, label %1917

1917:                                             ; preds = %1913
  %1918 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %1919 = load i8, ptr %1918, align 16, !tbaa !11
  %1920 = sext i8 %1919 to i32
  %1921 = icmp eq i32 %1920, 49
  br i1 %1921, label %1922, label %1940

1922:                                             ; preds = %1917
  %1923 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %1924 = getelementptr inbounds i8, ptr %1923, i64 1
  %1925 = call i32 @strcmp(ptr noundef %1924, ptr noundef @.str.195) #9
  %1926 = icmp ne i32 %1925, 0
  br i1 %1926, label %1930, label %1927

1927:                                             ; preds = %1922
  %1928 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %1929 = call ptr @strcpy(ptr noundef %1928, ptr noundef @.str.196) #8
  br label %1939

1930:                                             ; preds = %1922
  %1931 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %1932 = getelementptr inbounds i8, ptr %1931, i64 1
  %1933 = call i32 @strcmp(ptr noundef %1932, ptr noundef @.str.197) #9
  %1934 = icmp ne i32 %1933, 0
  br i1 %1934, label %1938, label %1935

1935:                                             ; preds = %1930
  %1936 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %1937 = call ptr @strcpy(ptr noundef %1936, ptr noundef @.str.198) #8
  br label %1938

1938:                                             ; preds = %1935, %1930
  br label %1939

1939:                                             ; preds = %1938, %1927
  br label %1940

1940:                                             ; preds = %1939, %1917
  br label %1941

1941:                                             ; preds = %1940, %1913, %1910
  %1942 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %1943 = call i32 @strcmp(ptr noundef %1942, ptr noundef @.str.198) #9
  %1944 = icmp ne i32 %1943, 0
  br i1 %1944, label %1946, label %1945

1945:                                             ; preds = %1941
  br label %1953

1946:                                             ; preds = %1941
  %1947 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %1948 = call i32 @strcmp(ptr noundef %1947, ptr noundef @.str.196) #9
  %1949 = icmp ne i32 %1948, 0
  %1950 = xor i1 %1949, true
  %1951 = zext i1 %1950 to i64
  %1952 = select i1 %1950, i32 1, i32 0
  br label %1953

1953:                                             ; preds = %1946, %1945
  %1954 = phi i32 [ 2, %1945 ], [ %1952, %1946 ]
  store i32 %1954, ptr %18, align 4, !tbaa !9
  %1955 = load ptr, ptr %13, align 8, !tbaa !5
  call void @free(ptr noundef %1955) #8
  %1956 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %1956, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %1957

1957:                                             ; preds = %1953, %1886, %1862, %1676, %1615, %1572, %1500, %1359, %1173, %1161, %1131, %1116, %1101, %976, %964, %949, %779, %597, %419, %407, %392, %368, %222, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 60, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 60, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 1024, ptr %12) #8
  %1958 = load i32, ptr %6, align 4
  ret i32 %1958
}

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #5

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL12osx9orBetterv() #3

; Function Attrs: nounwind
declare ptr @strcat(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL14kdialogPresentv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13zenityPresentv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL17matedialogPresentv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL20shellementaryPresentv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL12qarmaPresentv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL14zenity3Presentv() #3

; Function Attrs: nounwind
declare ptr @getenv(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL16gxmessagePresentv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15gmessagePresentv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL14gdialogPresentv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL14xdialogPresentv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15tkinter2Presentv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL17isTerminalRunningv() #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL8isDarwinv() #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15tkinter3Presentv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15xmessagePresentv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL10dialogNamev() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15whiptailPresentv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL12terminalNamev() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL17pythonDbusPresentv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL11perlPresentv() #3

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL17notifysendPresentv() #3

; Function Attrs: nounwind
declare i32 @tcgetattr(i32 noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #2

declare i32 @fflush(ptr noundef) #4

; Function Attrs: nounwind willreturn memory(read)
declare i32 @tolower(i32 noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare i32 @getchar() #7

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !10, i64 12}
!15 = !{!"_ZTS7termios", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !7, i64 16, !7, i64 17, !10, i64 52, !10, i64 56}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.termios = type { i32, i32, i32, i32, i8, [32 x i8], i32, i32 }

@tinyfd_verbose = external dso_local local_unnamed_addr global i32, align 4
@tinyfd_silent = external dso_local local_unnamed_addr global i32, align 4
@tinyfd_forceConsole = external dso_local local_unnamed_addr global i32, align 4
@tinyfd_response = external dso_local global [1024 x i8], align 16
@tinyfd_needs = external dso_local constant [351 x i8], align 16
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [177 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZL12gPython2Name = external hidden global [16 x i8], align 16
@.str.74 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [120 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZL12gPython3Name = external hidden global [16 x i8], align 16
@.str.96 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [152 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [195 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [11 x i8], align 1
@_ZL17gWarningDisplayed = external hidden local_unnamed_addr global i32, align 4
@.str.146 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZL6gTitle = external hidden constant [52 x i8], align 16
@.str.147 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.163 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.165 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [12 x i8], align 1
@_ZL11gPythonName = external hidden global [16 x i8], align 16
@.str.169 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.170 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.171 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.172 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.173 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.174 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.175 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.176 = external hidden unnamed_addr constant [712 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.178 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.179 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.180 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.181 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.182 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.183 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.184 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.185 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.186 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.187 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.188 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.189 = external hidden unnamed_addr constant [6 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.190 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.192 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.193 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.194 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.195 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.196 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.197 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.198 = external hidden unnamed_addr constant [2 x i8], align 1
@switch.table.tinyfd_messageBox = private unnamed_addr constant [3 x ptr] [ptr @.str.24, ptr @.str.27, ptr @.str.28], align 8
@switch.table.tinyfd_messageBox.1 = private unnamed_addr constant [3 x ptr] [ptr @.str.80, ptr @.str.82, ptr @.str.83], align 8
@switch.table.tinyfd_messageBox.2 = private unnamed_addr constant [3 x ptr] [ptr @.str.99, ptr @.str.100, ptr @.str.101], align 8
@switch.table.tinyfd_messageBox.3 = private unnamed_addr constant [3 x ptr] [ptr @.str.109, ptr @.str.111, ptr @.str.112], align 8

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL16osascriptPresentv() local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noalias noundef ptr @popen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @pclose(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local range(i32 0, 3) i32 @tinyfd_messageBox(ptr noundef %0, ptr noundef %1, ptr noundef readonly %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #3 {
  %6 = alloca [1024 x i8], align 16
  %7 = alloca %struct.termios, align 4
  %8 = alloca %struct.termios, align 4
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %6) #12
  call void @llvm.lifetime.start.p0(i64 60, ptr nonnull %7) #12
  call void @llvm.lifetime.start.p0(i64 60, ptr nonnull %8) #12
  store i8 0, ptr %6, align 16, !tbaa !5
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %11, label %9

9:                                                ; preds = %5
  %10 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #13
  br label %11

11:                                               ; preds = %5, %9
  %12 = phi i64 [ %10, %9 ], [ 0, %5 ]
  %.not604 = icmp eq ptr %1, null
  br i1 %.not604, label %15, label %13

13:                                               ; preds = %11
  %14 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #13
  br label %15

15:                                               ; preds = %11, %13
  %16 = phi i64 [ %14, %13 ], [ 0, %11 ]
  br i1 %.not, label %19, label %17

17:                                               ; preds = %15
  %18 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not605 = icmp eq i32 %18, 0
  br i1 %.not605, label %.thread, label %19

19:                                               ; preds = %15, %17
  %20 = add i64 %12, 1024
  %21 = add i64 %20, %16
  %22 = tail call noalias ptr @malloc(i64 noundef %21) #14
  %23 = tail call noundef i32 @_ZL16osascriptPresentv()
  %.not606 = icmp eq i32 %23, 0
  br i1 %.not606, label %77, label %25

.thread:                                          ; preds = %17
  %24 = tail call noundef i32 @_ZL16osascriptPresentv()
  %.not606862 = icmp eq i32 %24, 0
  br i1 %.not606862, label %.thread870, label %.thread866

25:                                               ; preds = %19
  br i1 %.not, label %29, label %.thread866

.thread866:                                       ; preds = %.thread, %25
  %.0539863868 = phi ptr [ %22, %25 ], [ null, %.thread ]
  %26 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not807 = icmp eq i32 %26, 0
  br i1 %.not807, label %27, label %29

27:                                               ; preds = %.thread866
  %28 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.11) #12
  br label %818

29:                                               ; preds = %.thread866, %25
  %.0539863869 = phi ptr [ %.0539863868, %.thread866 ], [ %22, %25 ]
  %30 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0539863869, ptr noundef nonnull dereferenceable(1) @.str.12) #12
  %31 = tail call noundef i32 @_ZL12osx9orBetterv()
  %.not808 = icmp eq i32 %31, 0
  br i1 %.not808, label %32, label %34

32:                                               ; preds = %29
  %33 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539863869, ptr noundef nonnull dereferenceable(1) @.str.13) #12
  br label %34

34:                                               ; preds = %32, %29
  %35 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539863869, ptr noundef nonnull dereferenceable(1) @.str.14) #12
  br i1 %.not604, label %39, label %36

36:                                               ; preds = %34
  %char0809 = load i8, ptr %1, align 1
  %.not810 = icmp eq i8 %char0809, 0
  br i1 %.not810, label %39, label %37

37:                                               ; preds = %36
  %38 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539863869, ptr noundef nonnull dereferenceable(1) %1) #12
  br label %39

39:                                               ; preds = %37, %36, %34
  %40 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539863869, ptr noundef nonnull dereferenceable(1) @.str.15) #12
  br i1 %.not, label %46, label %41

41:                                               ; preds = %39
  %char0811 = load i8, ptr %0, align 1
  %.not812 = icmp eq i8 %char0811, 0
  br i1 %.not812, label %46, label %42

42:                                               ; preds = %41
  %43 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539863869, ptr noundef nonnull dereferenceable(1) @.str.16) #12
  %44 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539863869, ptr noundef nonnull dereferenceable(1) %0) #12
  %45 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539863869, ptr noundef nonnull dereferenceable(1) @.str.15) #12
  br label %46

46:                                               ; preds = %42, %41, %39
  %47 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539863869, ptr noundef nonnull dereferenceable(1) @.str.17) #12
  %.not813 = icmp eq ptr %3, null
  br i1 %.not813, label %.critedge832, label %48

48:                                               ; preds = %46
  %49 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.18, ptr noundef nonnull dereferenceable(1) %3) #13
  %.not814 = icmp eq i32 %49, 0
  br i1 %.not814, label %52, label %50

50:                                               ; preds = %48
  %51 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.20, ptr noundef nonnull dereferenceable(1) %3) #13
  %.not815 = icmp eq i32 %51, 0
  br i1 %.not815, label %52, label %.critedge832

.critedge832:                                     ; preds = %46, %50
  br label %52

52:                                               ; preds = %50, %48, %.critedge832
  %.str.21.sink = phi ptr [ @.str.22, %.critedge832 ], [ @.str.19, %48 ], [ @.str.21, %50 ]
  %53 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539863869, ptr noundef nonnull dereferenceable(1) %.str.21.sink) #12
  %.not816 = icmp eq ptr %2, null
  br i1 %.not816, label %.sink.split906.sink.split, label %54

54:                                               ; preds = %52
  %55 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not817 = icmp eq i32 %55, 0
  br i1 %.not817, label %56, label %57

56:                                               ; preds = %54
  %.not818 = icmp eq i32 %4, 0
  br i1 %.not818, label %.sink.split906, label %68

57:                                               ; preds = %54
  %58 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.25, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not819 = icmp eq i32 %58, 0
  br i1 %.not819, label %59, label %.critedge834

59:                                               ; preds = %57
  %60 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539863869, ptr noundef nonnull dereferenceable(1) @.str.26) #12
  %.not820 = icmp eq i32 %4, 0
  %.str.28..str.27 = select i1 %.not820, ptr @.str.28, ptr @.str.27
  br label %.sink.split906.sink.split

.critedge834:                                     ; preds = %57
  %61 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not821 = icmp eq i32 %61, 0
  br i1 %.not821, label %62, label %.sink.split906.sink.split

62:                                               ; preds = %.critedge834
  %63 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539863869, ptr noundef nonnull dereferenceable(1) @.str.31) #12
  %64 = icmp ult i32 %4, 3
  br i1 %64, label %switch.lookup, label %.sink.split906

switch.lookup:                                    ; preds = %62
  %65 = zext nneg i32 %4 to i64
  %switch.gep = getelementptr inbounds [3 x ptr], ptr @switch.table.tinyfd_messageBox, i64 0, i64 %65
  %switch.load = load ptr, ptr %switch.gep, align 8
  br label %.sink.split906.sink.split

.sink.split906.sink.split:                        ; preds = %switch.lookup, %.critedge834, %52, %59
  %.str.24.sink.sink = phi ptr [ %.str.28..str.27, %59 ], [ @.str.33, %52 ], [ @.str.33, %.critedge834 ], [ %switch.load, %switch.lookup ]
  %.str.29.sink.ph = phi ptr [ @.str.29, %59 ], [ @.str.34, %52 ], [ @.str.34, %.critedge834 ], [ @.str.32, %switch.lookup ]
  %66 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539863869, ptr noundef nonnull dereferenceable(1) %.str.24.sink.sink) #12
  br label %.sink.split906

.sink.split906:                                   ; preds = %62, %.sink.split906.sink.split, %56
  %.str.29.sink = phi ptr [ @.str.24, %56 ], [ @.str.32, %62 ], [ %.str.29.sink.ph, %.sink.split906.sink.split ]
  %67 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539863869, ptr noundef nonnull dereferenceable(1) %.str.29.sink) #12
  br label %68

68:                                               ; preds = %.sink.split906, %56
  %69 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539863869, ptr noundef nonnull dereferenceable(1) @.str.35) #12
  %70 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539863869, ptr noundef nonnull dereferenceable(1) @.str.36) #12
  %71 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539863869, ptr noundef nonnull dereferenceable(1) @.str.37) #12
  %72 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539863869, ptr noundef nonnull dereferenceable(1) @.str.38) #12
  %73 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539863869, ptr noundef nonnull dereferenceable(1) @.str.39) #12
  %74 = tail call noundef i32 @_ZL12osx9orBetterv()
  %.not822 = icmp eq i32 %74, 0
  br i1 %.not822, label %75, label %783

75:                                               ; preds = %68
  %76 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539863869, ptr noundef nonnull dereferenceable(1) @.str.40) #12
  br label %783

77:                                               ; preds = %19
  %78 = tail call noundef i32 @_ZL14kdialogPresentv()
  %.not607 = icmp eq i32 %78, 0
  br i1 %.not607, label %135, label %80

.thread870:                                       ; preds = %.thread
  %79 = tail call noundef i32 @_ZL14kdialogPresentv()
  %.not607872 = icmp eq i32 %79, 0
  br i1 %.not607872, label %135, label %.thread875

80:                                               ; preds = %77
  br i1 %.not, label %84, label %.thread875

.thread875:                                       ; preds = %.thread870, %80
  %.0539865873877 = phi ptr [ %22, %80 ], [ null, %.thread870 ]
  %81 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not791 = icmp eq i32 %81, 0
  br i1 %.not791, label %82, label %84

82:                                               ; preds = %.thread875
  %83 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.41) #12
  br label %818

84:                                               ; preds = %.thread875, %80
  %.0539865873878 = phi ptr [ %.0539865873877, %.thread875 ], [ %22, %80 ]
  %85 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0539865873878, ptr noundef nonnull dereferenceable(1) @.str.41) #12
  %86 = tail call noundef i32 @_ZL14kdialogPresentv()
  %87 = icmp eq i32 %86, 2
  br i1 %87, label %88, label %90

88:                                               ; preds = %84
  %89 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865873878, ptr noundef nonnull dereferenceable(1) @.str.42) #12
  br label %90

90:                                               ; preds = %88, %84
  %91 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865873878, ptr noundef nonnull dereferenceable(1) @.str.43) #12
  %.not792 = icmp eq ptr %2, null
  br i1 %.not792, label %107, label %92

92:                                               ; preds = %90
  %93 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not793 = icmp eq i32 %93, 0
  br i1 %.not793, label %98, label %94

94:                                               ; preds = %92
  %95 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.25, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not794 = icmp eq i32 %95, 0
  br i1 %.not794, label %98, label %96

96:                                               ; preds = %94
  %97 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not795 = icmp eq i32 %97, 0
  br i1 %.not795, label %98, label %107

98:                                               ; preds = %96, %94, %92
  %.not796 = icmp eq ptr %3, null
  br i1 %.not796, label %105, label %99

99:                                               ; preds = %98
  %100 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.20, ptr noundef nonnull dereferenceable(1) %3) #13
  %.not797 = icmp eq i32 %100, 0
  br i1 %.not797, label %103, label %101

101:                                              ; preds = %99
  %102 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.18, ptr noundef nonnull dereferenceable(1) %3) #13
  %.not798 = icmp eq i32 %102, 0
  br i1 %.not798, label %103, label %105

103:                                              ; preds = %101, %99
  %104 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865873878, ptr noundef nonnull dereferenceable(1) @.str.20) #12
  br label %105

105:                                              ; preds = %103, %101, %98
  %106 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not799 = icmp eq i32 %106, 0
  %.str.30..str.25 = select i1 %.not799, ptr @.str.30, ptr @.str.25
  br label %112

107:                                              ; preds = %96, %90
  %.not800 = icmp eq ptr %3, null
  br i1 %.not800, label %.critedge837, label %108

108:                                              ; preds = %107
  %109 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.18, ptr noundef nonnull dereferenceable(1) %3) #13
  %.not801 = icmp eq i32 %109, 0
  br i1 %.not801, label %112, label %110

110:                                              ; preds = %108
  %111 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.20, ptr noundef nonnull dereferenceable(1) %3) #13
  %.not802 = icmp eq i32 %111, 0
  br i1 %.not802, label %112, label %.critedge837

.critedge837:                                     ; preds = %107, %110
  br label %112

112:                                              ; preds = %110, %108, %105, %.critedge837
  %.str.18.sink = phi ptr [ @.str.45, %.critedge837 ], [ %.str.30..str.25, %105 ], [ @.str.18, %108 ], [ @.str.44, %110 ]
  %113 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865873878, ptr noundef nonnull dereferenceable(1) %.str.18.sink) #12
  %114 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865873878, ptr noundef nonnull dereferenceable(1) @.str.46) #12
  br i1 %.not604, label %117, label %115

115:                                              ; preds = %112
  %116 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865873878, ptr noundef nonnull dereferenceable(1) %1) #12
  br label %117

117:                                              ; preds = %115, %112
  %118 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865873878, ptr noundef nonnull dereferenceable(1) @.str.47) #12
  br i1 %.not792, label %123, label %119

119:                                              ; preds = %117
  %120 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not803 = icmp eq i32 %120, 0
  br i1 %.not803, label %121, label %123

121:                                              ; preds = %119
  %122 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865873878, ptr noundef nonnull dereferenceable(1) @.str.48) #12
  br label %123

123:                                              ; preds = %121, %119, %117
  br i1 %.not, label %129, label %124

124:                                              ; preds = %123
  %char0804 = load i8, ptr %0, align 1
  %.not805 = icmp eq i8 %char0804, 0
  br i1 %.not805, label %129, label %125

125:                                              ; preds = %124
  %126 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865873878, ptr noundef nonnull dereferenceable(1) @.str.49) #12
  %127 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865873878, ptr noundef nonnull dereferenceable(1) %0) #12
  %128 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865873878, ptr noundef nonnull dereferenceable(1) @.str.47) #12
  br label %129

129:                                              ; preds = %125, %124, %123
  %130 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not806 = icmp eq i32 %130, 0
  br i1 %.not806, label %131, label %133

131:                                              ; preds = %129
  %132 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865873878, ptr noundef nonnull dereferenceable(1) @.str.50) #12
  br label %783

133:                                              ; preds = %129
  %134 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865873878, ptr noundef nonnull dereferenceable(1) @.str.51) #12
  br label %783

135:                                              ; preds = %.thread870, %77
  %.0539865874 = phi ptr [ null, %.thread870 ], [ %22, %77 ]
  %136 = tail call noundef i32 @_ZL13zenityPresentv()
  %.not608 = icmp eq i32 %136, 0
  br i1 %.not608, label %137, label %143

137:                                              ; preds = %135
  %138 = tail call noundef i32 @_ZL17matedialogPresentv()
  %.not609 = icmp eq i32 %138, 0
  br i1 %.not609, label %139, label %143

139:                                              ; preds = %137
  %140 = tail call noundef i32 @_ZL20shellementaryPresentv()
  %.not610 = icmp eq i32 %140, 0
  br i1 %.not610, label %141, label %143

141:                                              ; preds = %139
  %142 = tail call noundef i32 @_ZL12qarmaPresentv()
  %.not611 = icmp eq i32 %142, 0
  br i1 %.not611, label %239, label %143

143:                                              ; preds = %141, %139, %137, %135
  %144 = tail call noundef i32 @_ZL13zenityPresentv()
  %.not762 = icmp eq i32 %144, 0
  br i1 %.not762, label %158, label %145

145:                                              ; preds = %143
  br i1 %.not, label %150, label %146

146:                                              ; preds = %145
  %147 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not769 = icmp eq i32 %147, 0
  br i1 %.not769, label %148, label %150

148:                                              ; preds = %146
  %149 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.52) #12
  br label %818

150:                                              ; preds = %146, %145
  %151 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.53) #12
  %152 = tail call noundef i32 @_ZL14zenity3Presentv()
  %153 = icmp sgt i32 %152, 3
  br i1 %153, label %154, label %186

154:                                              ; preds = %150
  %155 = tail call ptr @getenv(ptr noundef nonnull @.str.54) #12
  %.not770 = icmp eq ptr %155, null
  br i1 %.not770, label %156, label %186

156:                                              ; preds = %154
  %157 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.55) #12
  br label %186

158:                                              ; preds = %143
  %159 = tail call noundef i32 @_ZL17matedialogPresentv()
  %.not763 = icmp eq i32 %159, 0
  br i1 %.not763, label %167, label %160

160:                                              ; preds = %158
  br i1 %.not, label %165, label %161

161:                                              ; preds = %160
  %162 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not768 = icmp eq i32 %162, 0
  br i1 %.not768, label %163, label %165

163:                                              ; preds = %161
  %164 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.56) #12
  br label %818

165:                                              ; preds = %161, %160
  %166 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.57) #12
  br label %186

167:                                              ; preds = %158
  %168 = tail call noundef i32 @_ZL20shellementaryPresentv()
  %.not764 = icmp eq i32 %168, 0
  br i1 %.not764, label %176, label %169

169:                                              ; preds = %167
  br i1 %.not, label %174, label %170

170:                                              ; preds = %169
  %171 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not767 = icmp eq i32 %171, 0
  br i1 %.not767, label %172, label %174

172:                                              ; preds = %170
  %173 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.58) #12
  br label %818

174:                                              ; preds = %170, %169
  %175 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.59) #12
  br label %186

176:                                              ; preds = %167
  br i1 %.not, label %181, label %177

177:                                              ; preds = %176
  %178 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not765 = icmp eq i32 %178, 0
  br i1 %.not765, label %179, label %181

179:                                              ; preds = %177
  %180 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.60) #12
  br label %818

181:                                              ; preds = %177, %176
  %182 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.61) #12
  %183 = tail call ptr @getenv(ptr noundef nonnull @.str.54) #12
  %.not766 = icmp eq ptr %183, null
  br i1 %.not766, label %184, label %186

184:                                              ; preds = %181
  %185 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.42) #12
  br label %186

186:                                              ; preds = %165, %181, %184, %174, %150, %154, %156
  %187 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.43) #12
  %.not771 = icmp eq ptr %2, null
  br i1 %.not771, label %.critedge840, label %188

188:                                              ; preds = %186
  %189 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not772 = icmp eq i32 %189, 0
  br i1 %.not772, label %197, label %190

190:                                              ; preds = %188
  %191 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.25, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not773 = icmp eq i32 %191, 0
  br i1 %.not773, label %197, label %.critedge839

.critedge839:                                     ; preds = %190
  %192 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not774 = icmp eq i32 %192, 0
  br i1 %.not774, label %197, label %.critedge840

.critedge840:                                     ; preds = %186, %.critedge839
  %.not775 = icmp eq ptr %3, null
  br i1 %.not775, label %.critedge842, label %193

193:                                              ; preds = %.critedge840
  %194 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.18, ptr noundef nonnull dereferenceable(1) %3) #13
  %.not776 = icmp eq i32 %194, 0
  br i1 %.not776, label %197, label %195

195:                                              ; preds = %193
  %196 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.20, ptr noundef nonnull dereferenceable(1) %3) #13
  %.not777 = icmp eq i32 %196, 0
  br i1 %.not777, label %197, label %.critedge842

.critedge842:                                     ; preds = %.critedge840, %195
  br label %197

197:                                              ; preds = %195, %193, %.critedge839, %190, %188, %.critedge842
  %.str.63.sink = phi ptr [ @.str.65, %.critedge842 ], [ @.str.62, %188 ], [ @.str.63, %190 ], [ @.str.64, %.critedge839 ], [ @.str.18, %193 ], [ @.str.20, %195 ]
  %198 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %.str.63.sink) #12
  br i1 %.not, label %204, label %199

199:                                              ; preds = %197
  %char0778 = load i8, ptr %0, align 1
  %.not779 = icmp eq i8 %char0778, 0
  br i1 %.not779, label %204, label %200

200:                                              ; preds = %199
  %201 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.66) #12
  %202 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %0) #12
  %203 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.47) #12
  br label %204

204:                                              ; preds = %200, %199, %197
  br i1 %.not604, label %210, label %205

205:                                              ; preds = %204
  %char0780 = load i8, ptr %1, align 1
  %.not781 = icmp eq i8 %char0780, 0
  br i1 %.not781, label %210, label %206

206:                                              ; preds = %205
  %207 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.67) #12
  %208 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %1) #12
  %209 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.47) #12
  br label %210

210:                                              ; preds = %206, %205, %204
  %211 = tail call noundef i32 @_ZL14zenity3Presentv()
  %212 = icmp sgt i32 %211, 2
  br i1 %212, label %219, label %213

213:                                              ; preds = %210
  %214 = tail call noundef i32 @_ZL13zenityPresentv()
  %.not782 = icmp eq i32 %214, 0
  br i1 %.not782, label %215, label %229

215:                                              ; preds = %213
  %216 = tail call noundef i32 @_ZL20shellementaryPresentv()
  %.not783 = icmp eq i32 %216, 0
  br i1 %.not783, label %217, label %219

217:                                              ; preds = %215
  %218 = tail call noundef i32 @_ZL12qarmaPresentv()
  %.not784 = icmp eq i32 %218, 0
  br i1 %.not784, label %229, label %219

219:                                              ; preds = %217, %215, %210
  %220 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.68) #12
  %.not785 = icmp eq ptr %3, null
  br i1 %.not785, label %227, label %221

221:                                              ; preds = %219
  %222 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.63, ptr noundef nonnull dereferenceable(1) %3) #13
  %.not786 = icmp eq i32 %222, 0
  br i1 %.not786, label %.sink.split907, label %223

223:                                              ; preds = %221
  %224 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.18, ptr noundef nonnull dereferenceable(1) %3) #13
  %.not787 = icmp eq i32 %224, 0
  br i1 %.not787, label %.sink.split907, label %225

225:                                              ; preds = %223
  %226 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.20, ptr noundef nonnull dereferenceable(1) %3) #13
  %.not788 = icmp eq i32 %226, 0
  br i1 %.not788, label %.sink.split907, label %227

227:                                              ; preds = %225, %219
  br label %.sink.split907

.sink.split907:                                   ; preds = %221, %223, %225, %227
  %.sink = phi ptr [ @.str.69, %227 ], [ %3, %225 ], [ %3, %223 ], [ %3, %221 ]
  %228 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %.sink) #12
  br label %229

229:                                              ; preds = %.sink.split907, %217, %213
  %230 = load i32, ptr @tinyfd_silent, align 4, !tbaa !8
  %.not789 = icmp eq i32 %230, 0
  br i1 %.not789, label %233, label %231

231:                                              ; preds = %229
  %232 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.70) #12
  br label %233

233:                                              ; preds = %231, %229
  %234 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not790 = icmp eq i32 %234, 0
  br i1 %.not790, label %235, label %237

235:                                              ; preds = %233
  %236 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.71) #12
  br label %783

237:                                              ; preds = %233
  %238 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.72) #12
  br label %783

239:                                              ; preds = %141
  %240 = tail call noundef i32 @_ZL16gxmessagePresentv()
  %.not612 = icmp eq i32 %240, 0
  br i1 %.not612, label %241, label %313

241:                                              ; preds = %239
  %242 = tail call noundef i32 @_ZL15gmessagePresentv()
  %.not613 = icmp eq i32 %242, 0
  br i1 %.not613, label %243, label %313

243:                                              ; preds = %241
  %244 = tail call noundef i32 @_ZL14gdialogPresentv()
  %.not614 = icmp eq i32 %244, 0
  br i1 %.not614, label %245, label %313

245:                                              ; preds = %243
  %246 = tail call noundef i32 @_ZL14xdialogPresentv()
  %.not615 = icmp eq i32 %246, 0
  br i1 %.not615, label %247, label %313

247:                                              ; preds = %245
  %248 = tail call noundef i32 @_ZL15tkinter2Presentv()
  %.not616 = icmp eq i32 %248, 0
  br i1 %.not616, label %313, label %249

249:                                              ; preds = %247
  br i1 %.not, label %254, label %250

250:                                              ; preds = %249
  %251 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not617 = icmp eq i32 %251, 0
  br i1 %.not617, label %252, label %254

252:                                              ; preds = %250
  %253 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.73) #12
  br label %818

254:                                              ; preds = %250, %249
  %255 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @_ZL12gPython2Name) #12
  %256 = tail call noundef i32 @_ZL17isTerminalRunningv()
  %.not618 = icmp eq i32 %256, 0
  br i1 %.not618, label %257, label %261

257:                                              ; preds = %254
  %258 = tail call noundef i32 @_ZL8isDarwinv()
  %.not619 = icmp eq i32 %258, 0
  br i1 %.not619, label %261, label %259

259:                                              ; preds = %257
  %260 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.74) #12
  br label %261

261:                                              ; preds = %259, %257, %254
  %262 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.75) #12
  %263 = tail call noundef i32 @_ZL8isDarwinv()
  %.not620 = icmp eq i32 %263, 0
  br i1 %.not620, label %266, label %264

264:                                              ; preds = %261
  %265 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.76) #12
  br label %266

266:                                              ; preds = %264, %261
  %267 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.77) #12
  %.not621 = icmp eq ptr %2, null
  br i1 %.not621, label %.sink.split908, label %268

268:                                              ; preds = %266
  %269 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not622 = icmp eq i32 %269, 0
  br i1 %.not622, label %270, label %272

270:                                              ; preds = %268
  %271 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.78) #12
  %.not623 = icmp eq i32 %4, 0
  %.str.80..str.79 = select i1 %.not623, ptr @.str.80, ptr @.str.79
  br label %.sink.split908

272:                                              ; preds = %268
  %273 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.25, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not624 = icmp eq i32 %273, 0
  br i1 %.not624, label %274, label %.critedge844

274:                                              ; preds = %272
  %275 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.81) #12
  %.not625 = icmp eq i32 %4, 0
  %.str.83..str.82 = select i1 %.not625, ptr @.str.83, ptr @.str.82
  br label %.sink.split908

.critedge844:                                     ; preds = %272
  %276 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not626 = icmp eq i32 %276, 0
  br i1 %.not626, label %277, label %.sink.split908

277:                                              ; preds = %.critedge844
  %278 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.84) #12
  %279 = icmp ult i32 %4, 3
  br i1 %279, label %switch.lookup919, label %282

switch.lookup919:                                 ; preds = %277
  %280 = zext nneg i32 %4 to i64
  %switch.gep920 = getelementptr inbounds [3 x ptr], ptr @switch.table.tinyfd_messageBox.1, i64 0, i64 %280
  %switch.load921 = load ptr, ptr %switch.gep920, align 8
  br label %.sink.split908

.sink.split908:                                   ; preds = %switch.lookup919, %.critedge844, %266, %274, %270
  %.str.83.sink = phi ptr [ %.str.80..str.79, %270 ], [ %.str.83..str.82, %274 ], [ @.str.85, %266 ], [ @.str.85, %.critedge844 ], [ %switch.load921, %switch.lookup919 ]
  %281 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %.str.83.sink) #12
  br label %282

282:                                              ; preds = %277, %.sink.split908
  %283 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.86) #12
  %.not627 = icmp eq ptr %3, null
  br i1 %.not627, label %290, label %284

284:                                              ; preds = %282
  %285 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.63, ptr noundef nonnull dereferenceable(1) %3) #13
  %.not628 = icmp eq i32 %285, 0
  br i1 %.not628, label %291, label %286

286:                                              ; preds = %284
  %287 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.18, ptr noundef nonnull dereferenceable(1) %3) #13
  %.not629 = icmp eq i32 %287, 0
  br i1 %.not629, label %291, label %288

288:                                              ; preds = %286
  %289 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.20, ptr noundef nonnull dereferenceable(1) %3) #13
  %.not630 = icmp eq i32 %289, 0
  br i1 %.not630, label %291, label %290

290:                                              ; preds = %288, %282
  br label %291

291:                                              ; preds = %284, %286, %288, %290
  %.str.65.sink = phi ptr [ @.str.65, %290 ], [ %3, %288 ], [ %3, %286 ], [ %3, %284 ]
  %292 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %.str.65.sink) #12
  %293 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.87) #12
  br i1 %.not, label %299, label %294

294:                                              ; preds = %291
  %char0 = load i8, ptr %0, align 1
  %.not631 = icmp eq i8 %char0, 0
  br i1 %.not631, label %299, label %295

295:                                              ; preds = %294
  %296 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.88) #12
  %297 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %0) #12
  %298 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.87) #12
  br label %299

299:                                              ; preds = %295, %294, %291
  br i1 %.not604, label %306, label %300

300:                                              ; preds = %299
  %char0632 = load i8, ptr %1, align 1
  %.not633 = icmp eq i8 %char0632, 0
  br i1 %.not633, label %306, label %301

301:                                              ; preds = %300
  %302 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.89) #12
  %303 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.0539865874) #13
  %304 = getelementptr inbounds i8, ptr %.0539865874, i64 %303
  tail call void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef nonnull %1, ptr noundef nonnull @.str.90, ptr noundef nonnull @.str.91, ptr noundef %304)
  %305 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.92) #12
  br label %306

306:                                              ; preds = %301, %300, %299
  br i1 %.not621, label %311, label %307

307:                                              ; preds = %306
  %308 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not634 = icmp eq i32 %308, 0
  br i1 %.not634, label %309, label %311

309:                                              ; preds = %307
  %310 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.93) #12
  br label %783

311:                                              ; preds = %307, %306
  %312 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.94) #12
  br label %783

313:                                              ; preds = %247, %245, %243, %241, %239
  %314 = tail call noundef i32 @_ZL16gxmessagePresentv()
  %.not635 = icmp eq i32 %314, 0
  br i1 %.not635, label %315, label %377

315:                                              ; preds = %313
  %316 = tail call noundef i32 @_ZL15gmessagePresentv()
  %.not636 = icmp eq i32 %316, 0
  br i1 %.not636, label %317, label %377

317:                                              ; preds = %315
  %318 = tail call noundef i32 @_ZL14gdialogPresentv()
  %.not637 = icmp eq i32 %318, 0
  br i1 %.not637, label %319, label %377

319:                                              ; preds = %317
  %320 = tail call noundef i32 @_ZL14xdialogPresentv()
  %.not638 = icmp eq i32 %320, 0
  br i1 %.not638, label %321, label %377

321:                                              ; preds = %319
  %322 = tail call noundef i32 @_ZL15tkinter3Presentv()
  %.not639 = icmp eq i32 %322, 0
  br i1 %.not639, label %377, label %323

323:                                              ; preds = %321
  br i1 %.not, label %328, label %324

324:                                              ; preds = %323
  %325 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not640 = icmp eq i32 %325, 0
  br i1 %.not640, label %326, label %328

326:                                              ; preds = %324
  %327 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.95) #12
  br label %818

328:                                              ; preds = %324, %323
  %329 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @_ZL12gPython3Name) #12
  %330 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.96) #12
  %331 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.97) #12
  %.not641 = icmp eq ptr %2, null
  br i1 %.not641, label %.sink.split909, label %332

332:                                              ; preds = %328
  %333 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not642 = icmp eq i32 %333, 0
  br i1 %.not642, label %334, label %336

334:                                              ; preds = %332
  %335 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.78) #12
  %.not643 = icmp eq i32 %4, 0
  %.str.99..str.98 = select i1 %.not643, ptr @.str.99, ptr @.str.98
  br label %.sink.split909

336:                                              ; preds = %332
  %337 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.25, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not644 = icmp eq i32 %337, 0
  br i1 %.not644, label %338, label %.critedge847

338:                                              ; preds = %336
  %339 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.81) #12
  %.not645 = icmp eq i32 %4, 0
  %.str.101..str.100 = select i1 %.not645, ptr @.str.101, ptr @.str.100
  br label %.sink.split909

.critedge847:                                     ; preds = %336
  %340 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not646 = icmp eq i32 %340, 0
  br i1 %.not646, label %341, label %.sink.split909

341:                                              ; preds = %.critedge847
  %342 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.84) #12
  %343 = icmp ult i32 %4, 3
  br i1 %343, label %switch.lookup922, label %346

switch.lookup922:                                 ; preds = %341
  %344 = zext nneg i32 %4 to i64
  %switch.gep923 = getelementptr inbounds [3 x ptr], ptr @switch.table.tinyfd_messageBox.2, i64 0, i64 %344
  %switch.load924 = load ptr, ptr %switch.gep923, align 8
  br label %.sink.split909

.sink.split909:                                   ; preds = %switch.lookup922, %.critedge847, %328, %338, %334
  %.str.101.sink = phi ptr [ %.str.99..str.98, %334 ], [ %.str.101..str.100, %338 ], [ @.str.85, %328 ], [ @.str.85, %.critedge847 ], [ %switch.load924, %switch.lookup922 ]
  %345 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %.str.101.sink) #12
  br label %346

346:                                              ; preds = %341, %.sink.split909
  %347 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.86) #12
  %.not647 = icmp eq ptr %3, null
  br i1 %.not647, label %354, label %348

348:                                              ; preds = %346
  %349 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.63, ptr noundef nonnull dereferenceable(1) %3) #13
  %.not648 = icmp eq i32 %349, 0
  br i1 %.not648, label %355, label %350

350:                                              ; preds = %348
  %351 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.18, ptr noundef nonnull dereferenceable(1) %3) #13
  %.not649 = icmp eq i32 %351, 0
  br i1 %.not649, label %355, label %352

352:                                              ; preds = %350
  %353 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.20, ptr noundef nonnull dereferenceable(1) %3) #13
  %.not650 = icmp eq i32 %353, 0
  br i1 %.not650, label %355, label %354

354:                                              ; preds = %352, %346
  br label %355

355:                                              ; preds = %348, %350, %352, %354
  %.str.65.sink910 = phi ptr [ @.str.65, %354 ], [ %3, %352 ], [ %3, %350 ], [ %3, %348 ]
  %356 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %.str.65.sink910) #12
  %357 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.87) #12
  br i1 %.not, label %363, label %358

358:                                              ; preds = %355
  %char0651 = load i8, ptr %0, align 1
  %.not652 = icmp eq i8 %char0651, 0
  br i1 %.not652, label %363, label %359

359:                                              ; preds = %358
  %360 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.88) #12
  %361 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %0) #12
  %362 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.87) #12
  br label %363

363:                                              ; preds = %359, %358, %355
  br i1 %.not604, label %370, label %364

364:                                              ; preds = %363
  %char0653 = load i8, ptr %1, align 1
  %.not654 = icmp eq i8 %char0653, 0
  br i1 %.not654, label %370, label %365

365:                                              ; preds = %364
  %366 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.89) #12
  %367 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.0539865874) #13
  %368 = getelementptr inbounds i8, ptr %.0539865874, i64 %367
  tail call void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef nonnull %1, ptr noundef nonnull @.str.90, ptr noundef nonnull @.str.91, ptr noundef %368)
  %369 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.92) #12
  br label %370

370:                                              ; preds = %365, %364, %363
  br i1 %.not641, label %375, label %371

371:                                              ; preds = %370
  %372 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not655 = icmp eq i32 %372, 0
  br i1 %.not655, label %373, label %375

373:                                              ; preds = %371
  %374 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.102) #12
  br label %783

375:                                              ; preds = %371, %370
  %376 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.103) #12
  br label %783

377:                                              ; preds = %321, %319, %317, %315, %313
  %378 = tail call noundef i32 @_ZL16gxmessagePresentv()
  %.not656 = icmp eq i32 %378, 0
  br i1 %.not656, label %379, label %387

379:                                              ; preds = %377
  %380 = tail call noundef i32 @_ZL15gmessagePresentv()
  %.not657 = icmp eq i32 %380, 0
  br i1 %.not657, label %381, label %387

381:                                              ; preds = %379
  %382 = tail call noundef i32 @_ZL14gdialogPresentv()
  %.not658 = icmp eq i32 %382, 0
  br i1 %.not658, label %383, label %439

383:                                              ; preds = %381
  %384 = tail call noundef i32 @_ZL14xdialogPresentv()
  %.not659 = icmp eq i32 %384, 0
  br i1 %.not659, label %385, label %439

385:                                              ; preds = %383
  %386 = tail call noundef i32 @_ZL15xmessagePresentv()
  %.not660 = icmp eq i32 %386, 0
  br i1 %.not660, label %439, label %387

387:                                              ; preds = %385, %379, %377
  %388 = tail call noundef i32 @_ZL16gxmessagePresentv()
  %.not749 = icmp eq i32 %388, 0
  br i1 %.not749, label %394, label %389

389:                                              ; preds = %387
  br i1 %.not, label %406, label %390

390:                                              ; preds = %389
  %391 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not753 = icmp eq i32 %391, 0
  br i1 %.not753, label %392, label %406

392:                                              ; preds = %390
  %393 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.104) #12
  br label %818

394:                                              ; preds = %387
  %395 = tail call noundef i32 @_ZL15gmessagePresentv()
  %.not750 = icmp eq i32 %395, 0
  br i1 %.not750, label %401, label %396

396:                                              ; preds = %394
  br i1 %.not, label %406, label %397

397:                                              ; preds = %396
  %398 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not752 = icmp eq i32 %398, 0
  br i1 %.not752, label %399, label %406

399:                                              ; preds = %397
  %400 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.105) #12
  br label %818

401:                                              ; preds = %394
  br i1 %.not, label %406, label %402

402:                                              ; preds = %401
  %403 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not751 = icmp eq i32 %403, 0
  br i1 %.not751, label %404, label %406

404:                                              ; preds = %402
  %405 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.106) #12
  br label %818

406:                                              ; preds = %401, %402, %396, %397, %389, %390
  %.str.105.sink = phi ptr [ @.str.104, %390 ], [ @.str.104, %389 ], [ @.str.105, %397 ], [ @.str.105, %396 ], [ @.str.106, %402 ], [ @.str.106, %401 ]
  %407 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %.str.105.sink) #12
  %.not754 = icmp eq ptr %2, null
  br i1 %.not754, label %.critedge851, label %408

408:                                              ; preds = %406
  %409 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not755 = icmp eq i32 %409, 0
  br i1 %.not755, label %410, label %413

410:                                              ; preds = %408
  %411 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.107) #12
  switch i32 %4, label %425 [
    i32 1, label %.sink.split911
    i32 0, label %412
  ]

412:                                              ; preds = %410
  br label %.sink.split911

413:                                              ; preds = %408
  %414 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.25, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not756 = icmp eq i32 %414, 0
  br i1 %.not756, label %415, label %.critedge850

415:                                              ; preds = %413
  %416 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.110) #12
  switch i32 %4, label %425 [
    i32 1, label %.sink.split911
    i32 0, label %417
  ]

417:                                              ; preds = %415
  br label %.sink.split911

.critedge850:                                     ; preds = %413
  %418 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not757 = icmp eq i32 %418, 0
  br i1 %.not757, label %419, label %.critedge851

419:                                              ; preds = %.critedge850
  %420 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.113) #12
  %421 = icmp ult i32 %4, 3
  br i1 %421, label %switch.lookup925, label %425

.critedge851:                                     ; preds = %406, %.critedge850
  %422 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.114) #12
  br label %.sink.split911

switch.lookup925:                                 ; preds = %419
  %423 = zext nneg i32 %4 to i64
  %switch.gep926 = getelementptr inbounds [3 x ptr], ptr @switch.table.tinyfd_messageBox.3, i64 0, i64 %423
  %switch.load927 = load ptr, ptr %switch.gep926, align 8
  br label %.sink.split911

.sink.split911:                                   ; preds = %switch.lookup925, %415, %410, %412, %.critedge851, %417
  %.str.112.sink = phi ptr [ @.str.112, %417 ], [ @.str.108, %.critedge851 ], [ @.str.109, %412 ], [ @.str.108, %410 ], [ @.str.111, %415 ], [ %switch.load927, %switch.lookup925 ]
  %424 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %.str.112.sink) #12
  br label %425

425:                                              ; preds = %419, %.sink.split911, %415, %410
  %426 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.115) #12
  br i1 %.not604, label %430, label %427

427:                                              ; preds = %425
  %char0758 = load i8, ptr %1, align 1
  %.not759 = icmp eq i8 %char0758, 0
  br i1 %.not759, label %430, label %428

428:                                              ; preds = %427
  %429 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %1) #12
  br label %430

430:                                              ; preds = %428, %427, %425
  %431 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.47) #12
  br i1 %.not, label %437, label %432

432:                                              ; preds = %430
  %char0760 = load i8, ptr %0, align 1
  %.not761 = icmp eq i8 %char0760, 0
  br i1 %.not761, label %437, label %433

433:                                              ; preds = %432
  %434 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.116) #12
  %435 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %0) #12
  %436 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.47) #12
  br label %437

437:                                              ; preds = %433, %432, %430
  %438 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.117) #12
  br label %783

439:                                              ; preds = %385, %383, %381
  %440 = tail call noundef i32 @_ZL14xdialogPresentv()
  %.not661 = icmp eq i32 %440, 0
  br i1 %.not661, label %441, label %447

441:                                              ; preds = %439
  %442 = tail call noundef i32 @_ZL14gdialogPresentv()
  %.not662 = icmp eq i32 %442, 0
  br i1 %.not662, label %443, label %447

443:                                              ; preds = %441
  %444 = tail call noundef ptr @_ZL10dialogNamev()
  %.not663 = icmp eq ptr %444, null
  br i1 %.not663, label %445, label %447

445:                                              ; preds = %443
  %446 = tail call noundef i32 @_ZL15whiptailPresentv()
  %.not664 = icmp eq i32 %446, 0
  br i1 %.not664, label %561, label %447

447:                                              ; preds = %445, %443, %441, %439
  %448 = tail call noundef i32 @_ZL14gdialogPresentv()
  %.not719 = icmp eq i32 %448, 0
  br i1 %.not719, label %456, label %449

449:                                              ; preds = %447
  br i1 %.not, label %454, label %450

450:                                              ; preds = %449
  %451 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not728 = icmp eq i32 %451, 0
  br i1 %.not728, label %452, label %454

452:                                              ; preds = %450
  %453 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.118) #12
  br label %818

454:                                              ; preds = %450, %449
  %455 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.119) #12
  br label %501

456:                                              ; preds = %447
  %457 = tail call noundef i32 @_ZL14xdialogPresentv()
  %.not720 = icmp eq i32 %457, 0
  br i1 %.not720, label %465, label %458

458:                                              ; preds = %456
  br i1 %.not, label %463, label %459

459:                                              ; preds = %458
  %460 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not727 = icmp eq i32 %460, 0
  br i1 %.not727, label %461, label %463

461:                                              ; preds = %459
  %462 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.120) #12
  br label %818

463:                                              ; preds = %459, %458
  %464 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.121) #12
  br label %501

465:                                              ; preds = %456
  %466 = tail call noundef ptr @_ZL10dialogNamev()
  %.not721 = icmp eq ptr %466, null
  br i1 %.not721, label %483, label %467

467:                                              ; preds = %465
  br i1 %.not, label %472, label %468

468:                                              ; preds = %467
  %469 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not725 = icmp eq i32 %469, 0
  br i1 %.not725, label %470, label %472

470:                                              ; preds = %468
  %471 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.122) #12
  br label %818

472:                                              ; preds = %468, %467
  %473 = tail call noundef i32 @_ZL17isTerminalRunningv()
  %.not726 = icmp eq i32 %473, 0
  br i1 %.not726, label %476, label %474

474:                                              ; preds = %472
  %475 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.123) #12
  br label %501

476:                                              ; preds = %472
  %477 = tail call noundef ptr @_ZL12terminalNamev()
  %478 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %477) #12
  %479 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.124) #12
  %480 = tail call noundef ptr @_ZL10dialogNamev()
  %481 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %480) #12
  %482 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.125) #12
  br label %501

483:                                              ; preds = %465
  %484 = tail call noundef i32 @_ZL17isTerminalRunningv()
  %.not722 = icmp eq i32 %484, 0
  br i1 %.not722, label %492, label %485

485:                                              ; preds = %483
  br i1 %.not, label %490, label %486

486:                                              ; preds = %485
  %487 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not724 = icmp eq i32 %487, 0
  br i1 %.not724, label %488, label %490

488:                                              ; preds = %486
  %489 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.126) #12
  br label %818

490:                                              ; preds = %486, %485
  %491 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.127) #12
  br label %501

492:                                              ; preds = %483
  br i1 %.not, label %497, label %493

493:                                              ; preds = %492
  %494 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not723 = icmp eq i32 %494, 0
  br i1 %.not723, label %495, label %497

495:                                              ; preds = %493
  %496 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.126) #12
  br label %818

497:                                              ; preds = %493, %492
  %498 = tail call noundef ptr @_ZL12terminalNamev()
  %499 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %498) #12
  %500 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.128) #12
  br label %501

501:                                              ; preds = %463, %490, %497, %474, %476, %454
  %.not744 = phi i1 [ false, %454 ], [ false, %463 ], [ true, %474 ], [ true, %476 ], [ true, %490 ], [ true, %497 ]
  %.not746 = phi i1 [ true, %454 ], [ true, %463 ], [ true, %474 ], [ false, %476 ], [ true, %490 ], [ false, %497 ]
  br i1 %.not, label %507, label %502

502:                                              ; preds = %501
  %char0729 = load i8, ptr %0, align 1
  %.not730 = icmp eq i8 %char0729, 0
  br i1 %.not730, label %507, label %503

503:                                              ; preds = %502
  %504 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.129) #12
  %505 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %0) #12
  %506 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.15) #12
  br label %507

507:                                              ; preds = %503, %502, %501
  %508 = tail call noundef i32 @_ZL14xdialogPresentv()
  %.not731 = icmp eq i32 %508, 0
  br i1 %.not731, label %509, label %523

509:                                              ; preds = %507
  %510 = tail call noundef i32 @_ZL14gdialogPresentv()
  %511 = icmp eq i32 %510, 0
  %512 = icmp ne ptr %2, null
  %or.cond8 = and i1 %512, %511
  br i1 %or.cond8, label %513, label %523

513:                                              ; preds = %509
  %514 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not732 = icmp eq i32 %514, 0
  br i1 %.not732, label %519, label %515

515:                                              ; preds = %513
  %516 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.25, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not733 = icmp eq i32 %516, 0
  br i1 %.not733, label %519, label %517

517:                                              ; preds = %515
  %518 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not734 = icmp eq i32 %518, 0
  br i1 %.not734, label %519, label %.thread879

519:                                              ; preds = %517, %515, %513
  %520 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.130) #12
  %521 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.131) #12
  %522 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.15) #12
  br label %.thread879

523:                                              ; preds = %509, %507
  %.not735 = icmp eq ptr %2, null
  br i1 %.not735, label %.critedge854, label %.thread879

.thread879:                                       ; preds = %519, %517, %523
  %524 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not736 = icmp eq i32 %524, 0
  br i1 %.not736, label %525, label %526

525:                                              ; preds = %.thread879
  %.not737 = icmp eq i32 %4, 0
  br i1 %.not737, label %.critedge854.sink.split, label %.critedge854

526:                                              ; preds = %.thread879
  %527 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.25, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not738 = icmp eq i32 %527, 0
  br i1 %.not738, label %528, label %.critedge853

528:                                              ; preds = %526
  %.not739 = icmp eq i32 %4, 0
  br i1 %.not739, label %.critedge854.sink.split, label %.critedge854

.critedge853:                                     ; preds = %526
  %529 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not740 = icmp eq i32 %529, 0
  br i1 %.not740, label %530, label %.critedge854

530:                                              ; preds = %.critedge853
  %.not741 = icmp eq i32 %4, 0
  br i1 %.not741, label %.critedge854.sink.split, label %.critedge854

.critedge854.sink.split:                          ; preds = %530, %528, %525
  %.str.134.sink.ph = phi ptr [ @.str.133, %525 ], [ @.str.134, %528 ], [ @.str.135, %530 ]
  %531 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.132) #12
  br label %.critedge854

.critedge854:                                     ; preds = %.critedge854.sink.split, %.critedge853, %523, %530, %528, %525
  %.str.134.sink = phi ptr [ @.str.133, %525 ], [ @.str.134, %528 ], [ @.str.135, %530 ], [ @.str.136, %523 ], [ @.str.136, %.critedge853 ], [ %.str.134.sink.ph, %.critedge854.sink.split ]
  %.not735881 = phi i1 [ false, %525 ], [ false, %528 ], [ false, %530 ], [ true, %523 ], [ false, %.critedge853 ], [ false, %.critedge854.sink.split ]
  %532 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %.str.134.sink) #12
  %533 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.47) #12
  br i1 %.not604, label %537, label %534

534:                                              ; preds = %.critedge854
  %char0742 = load i8, ptr %1, align 1
  %.not743 = icmp eq i8 %char0742, 0
  br i1 %.not743, label %537, label %535

535:                                              ; preds = %534
  %536 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %1) #12
  br label %537

537:                                              ; preds = %535, %534, %.critedge854
  %538 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.15) #12
  br i1 %.not744, label %546, label %539

539:                                              ; preds = %537
  br i1 %.not735881, label %544, label %540

540:                                              ; preds = %539
  %541 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not748 = icmp eq i32 %541, 0
  br i1 %.not748, label %542, label %544

542:                                              ; preds = %540
  %543 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.137) #12
  br label %783

544:                                              ; preds = %540, %539
  %545 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.138) #12
  br label %783

546:                                              ; preds = %537
  br i1 %.not735881, label %555, label %547

547:                                              ; preds = %546
  %548 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not745 = icmp eq i32 %548, 0
  br i1 %.not745, label %549, label %555

549:                                              ; preds = %547
  %550 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.139) #12
  br i1 %.not746, label %553, label %551

551:                                              ; preds = %549
  %552 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.140) #12
  br label %783

553:                                              ; preds = %549
  %554 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.141) #12
  br label %783

555:                                              ; preds = %547, %546
  %556 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.142) #12
  br i1 %.not746, label %559, label %557

557:                                              ; preds = %555
  %558 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.143) #12
  br label %783

559:                                              ; preds = %555
  %560 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.144) #12
  br label %783

561:                                              ; preds = %445
  %562 = tail call noundef i32 @_ZL17isTerminalRunningv()
  %.not665 = icmp eq i32 %562, 0
  br i1 %.not665, label %563, label %611

563:                                              ; preds = %561
  %564 = tail call noundef ptr @_ZL12terminalNamev()
  %.not666 = icmp eq ptr %564, null
  br i1 %.not666, label %611, label %565

565:                                              ; preds = %563
  br i1 %.not, label %570, label %566

566:                                              ; preds = %565
  %567 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not667 = icmp eq i32 %567, 0
  br i1 %.not667, label %568, label %570

568:                                              ; preds = %566
  %569 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.145) #12
  br label %818

570:                                              ; preds = %566, %565
  %571 = tail call noundef ptr @_ZL12terminalNamev()
  %572 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %571) #12
  %573 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.92) #12
  %574 = load i32, ptr @_ZL17gWarningDisplayed, align 4, !tbaa !8
  %575 = icmp ne i32 %574, 0
  %576 = load i32, ptr @tinyfd_forceConsole, align 4
  %577 = icmp ne i32 %576, 0
  %or.cond = select i1 %575, i1 true, i1 %577
  br i1 %or.cond, label %585, label %578

578:                                              ; preds = %570
  store i32 1, ptr @_ZL17gWarningDisplayed, align 4, !tbaa !8
  %579 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.146) #12
  %580 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @_ZL6gTitle) #12
  %581 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.147) #12
  %582 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.146) #12
  %583 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @tinyfd_needs) #12
  %584 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.148) #12
  br label %585

585:                                              ; preds = %578, %570
  br i1 %.not, label %591, label %586

586:                                              ; preds = %585
  %char0668 = load i8, ptr %0, align 1
  %.not669 = icmp eq i8 %char0668, 0
  br i1 %.not669, label %591, label %587

587:                                              ; preds = %586
  %588 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.146) #12
  %589 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %0) #12
  %590 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.149) #12
  br label %591

591:                                              ; preds = %587, %586, %585
  br i1 %.not604, label %597, label %592

592:                                              ; preds = %591
  %char0670 = load i8, ptr %1, align 1
  %.not671 = icmp eq i8 %char0670, 0
  br i1 %.not671, label %597, label %593

593:                                              ; preds = %592
  %594 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.146) #12
  %595 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %1) #12
  %596 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.150) #12
  br label %597

597:                                              ; preds = %593, %592, %591
  %.not672 = icmp eq ptr %2, null
  br i1 %.not672, label %.critedge857, label %598

598:                                              ; preds = %597
  %599 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.25, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not673 = icmp eq i32 %599, 0
  br i1 %.not673, label %.critedge857.sink.split, label %600

600:                                              ; preds = %598
  %601 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not674 = icmp eq i32 %601, 0
  br i1 %.not674, label %.critedge857.sink.split, label %.critedge856

.critedge856:                                     ; preds = %600
  %602 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not675 = icmp eq i32 %602, 0
  br i1 %.not675, label %603, label %.critedge857

603:                                              ; preds = %.critedge856
  %604 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.159) #12
  br label %.critedge857.sink.split

.critedge857.sink.split:                          ; preds = %600, %598, %603
  %.str.156.sink = phi ptr [ @.str.152, %603 ], [ @.str.151, %598 ], [ @.str.156, %600 ]
  %.str.152.sink = phi ptr [ @.str.160, %603 ], [ @.str.152, %598 ], [ @.str.152, %600 ]
  %.str.157.sink.ph = phi ptr [ @.str.161, %603 ], [ @.str.153, %598 ], [ @.str.157, %600 ]
  %.str.158.sink.ph = phi ptr [ @.str.162, %603 ], [ @.str.154, %598 ], [ @.str.158, %600 ]
  %.str.155.sink.ph = phi ptr [ @.str.163, %603 ], [ @.str.155, %598 ], [ @.str.155, %600 ]
  %605 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %.str.156.sink) #12
  %606 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %.str.152.sink) #12
  br label %.critedge857

.critedge857:                                     ; preds = %.critedge857.sink.split, %.critedge856, %597
  %.str.157.sink = phi ptr [ @.str.164, %597 ], [ @.str.164, %.critedge856 ], [ %.str.157.sink.ph, %.critedge857.sink.split ]
  %.str.158.sink = phi ptr [ @.str.152, %597 ], [ @.str.152, %.critedge856 ], [ %.str.158.sink.ph, %.critedge857.sink.split ]
  %.str.155.sink = phi ptr [ @.str.165, %597 ], [ @.str.165, %.critedge856 ], [ %.str.155.sink.ph, %.critedge857.sink.split ]
  %607 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %.str.157.sink) #12
  %608 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %.str.158.sink) #12
  %609 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %.str.155.sink) #12
  %610 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.166) #12
  br label %783

611:                                              ; preds = %563, %561
  %612 = tail call noundef i32 @_ZL17isTerminalRunningv()
  %.not676 = icmp eq i32 %612, 0
  br i1 %.not676, label %613, label %644

613:                                              ; preds = %611
  %614 = tail call noundef i32 @_ZL17pythonDbusPresentv()
  %.not677 = icmp eq i32 %614, 0
  br i1 %.not677, label %644, label %615

615:                                              ; preds = %613
  %616 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.167, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not678 = icmp eq i32 %616, 0
  br i1 %.not678, label %617, label %644

617:                                              ; preds = %615
  br i1 %.not, label %622, label %618

618:                                              ; preds = %617
  %619 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not679 = icmp eq i32 %619, 0
  br i1 %.not679, label %620, label %622

620:                                              ; preds = %618
  %621 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.168) #12
  br label %818

622:                                              ; preds = %618, %617
  %623 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @_ZL11gPythonName) #12
  %624 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.169) #12
  %625 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.170) #12
  %626 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.171) #12
  %627 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.172) #12
  %.not680 = icmp eq ptr %3, null
  br i1 %.not680, label %631, label %628

628:                                              ; preds = %622
  %char0681 = load i8, ptr %3, align 1
  %.not682 = icmp eq i8 %char0681, 0
  br i1 %.not682, label %631, label %629

629:                                              ; preds = %628
  %630 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %3) #12
  br label %631

631:                                              ; preds = %629, %628, %622
  %632 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.173) #12
  br i1 %.not, label %636, label %633

633:                                              ; preds = %631
  %char0683 = load i8, ptr %0, align 1
  %.not684 = icmp eq i8 %char0683, 0
  br i1 %.not684, label %636, label %634

634:                                              ; preds = %633
  %635 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %0) #12
  br label %636

636:                                              ; preds = %634, %633, %631
  %637 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.173) #12
  br i1 %.not604, label %642, label %638

638:                                              ; preds = %636
  %char0685 = load i8, ptr %1, align 1
  %.not686 = icmp eq i8 %char0685, 0
  br i1 %.not686, label %642, label %639

639:                                              ; preds = %638
  %640 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.0539865874) #13
  %641 = getelementptr inbounds i8, ptr %.0539865874, i64 %640
  tail call void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef nonnull %1, ptr noundef nonnull @.str.90, ptr noundef nonnull @.str.91, ptr noundef %641)
  br label %642

642:                                              ; preds = %639, %638, %636
  %643 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.174) #12
  br label %783

644:                                              ; preds = %615, %613, %611
  %645 = tail call noundef i32 @_ZL17isTerminalRunningv()
  %.not687 = icmp eq i32 %645, 0
  br i1 %.not687, label %646, label %661

646:                                              ; preds = %644
  %647 = tail call noundef i32 @_ZL11perlPresentv()
  %648 = icmp sgt i32 %647, 1
  br i1 %648, label %649, label %661

649:                                              ; preds = %646
  %650 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.167, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not688 = icmp eq i32 %650, 0
  br i1 %.not688, label %651, label %661

651:                                              ; preds = %649
  br i1 %.not, label %656, label %652

652:                                              ; preds = %651
  %653 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not689 = icmp eq i32 %653, 0
  br i1 %.not689, label %654, label %656

654:                                              ; preds = %652
  %655 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.175) #12
  br label %818

656:                                              ; preds = %652, %651
  %657 = phi ptr [ %0, %652 ], [ @.str.177, %651 ]
  %.not690 = icmp eq ptr %3, null
  %658 = select i1 %.not690, ptr @.str.177, ptr %3
  %659 = select i1 %.not604, ptr @.str.177, ptr %1
  %660 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.176, ptr noundef nonnull %658, ptr noundef nonnull %657, ptr noundef nonnull %659) #12
  br label %783

661:                                              ; preds = %649, %646, %644
  %662 = tail call noundef i32 @_ZL17isTerminalRunningv()
  %.not691 = icmp eq i32 %662, 0
  br i1 %.not691, label %663, label %691

663:                                              ; preds = %661
  %664 = tail call noundef i32 @_ZL17notifysendPresentv()
  %.not692 = icmp eq i32 %664, 0
  br i1 %.not692, label %691, label %665

665:                                              ; preds = %663
  %666 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.167, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not693 = icmp eq i32 %666, 0
  br i1 %.not693, label %667, label %691

667:                                              ; preds = %665
  br i1 %.not, label %672, label %668

668:                                              ; preds = %667
  %669 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not694 = icmp eq i32 %669, 0
  br i1 %.not694, label %670, label %672

670:                                              ; preds = %668
  %671 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.178) #12
  br label %818

672:                                              ; preds = %668, %667
  %673 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.179) #12
  %.not695 = icmp eq ptr %3, null
  br i1 %.not695, label %679, label %674

674:                                              ; preds = %672
  %char0696 = load i8, ptr %3, align 1
  %.not697 = icmp eq i8 %char0696, 0
  br i1 %.not697, label %679, label %675

675:                                              ; preds = %674
  %676 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.180) #12
  %677 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %3) #12
  %678 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.92) #12
  br label %679

679:                                              ; preds = %675, %674, %672
  %680 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.46) #12
  br i1 %.not, label %685, label %681

681:                                              ; preds = %679
  %char0698 = load i8, ptr %0, align 1
  %.not699 = icmp eq i8 %char0698, 0
  br i1 %.not699, label %685, label %682

682:                                              ; preds = %681
  %683 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %0) #12
  %684 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.181) #12
  br label %685

685:                                              ; preds = %682, %681, %679
  br i1 %.not604, label %689, label %686

686:                                              ; preds = %685
  %char0700 = load i8, ptr %1, align 1
  %.not701 = icmp eq i8 %char0700, 0
  br i1 %.not701, label %689, label %687

687:                                              ; preds = %686
  call void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef nonnull %1, ptr noundef nonnull @.str.182, ptr noundef nonnull @.str.183, ptr noundef nonnull %6)
  call void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef nonnull %1, ptr noundef nonnull @.str.90, ptr noundef nonnull @.str.181, ptr noundef nonnull %6)
  call void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef nonnull %1, ptr noundef nonnull @.str.184, ptr noundef nonnull @.str.185, ptr noundef nonnull %6)
  %688 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) %6) #12
  br label %689

689:                                              ; preds = %687, %686, %685
  %690 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0539865874, ptr noundef nonnull dereferenceable(1) @.str.47) #12
  br label %783

691:                                              ; preds = %665, %663, %661
  br i1 %.not, label %696, label %692

692:                                              ; preds = %691
  %693 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #13
  %.not702 = icmp eq i32 %693, 0
  br i1 %.not702, label %694, label %696

694:                                              ; preds = %692
  %695 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.145) #12
  br label %818

696:                                              ; preds = %692, %691
  %697 = load i32, ptr @_ZL17gWarningDisplayed, align 4, !tbaa !8
  %698 = icmp ne i32 %697, 0
  %699 = load i32, ptr @tinyfd_forceConsole, align 4
  %700 = icmp ne i32 %699, 0
  %or.cond3 = select i1 %698, i1 true, i1 %700
  br i1 %or.cond3, label %704, label %701

701:                                              ; preds = %696
  store i32 1, ptr @_ZL17gWarningDisplayed, align 4, !tbaa !8
  %702 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.186, ptr noundef nonnull @_ZL6gTitle)
  %703 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.187, ptr noundef nonnull @tinyfd_needs)
  br label %704

704:                                              ; preds = %701, %696
  br i1 %.not, label %708, label %705

705:                                              ; preds = %704
  %char0703 = load i8, ptr %0, align 1
  %.not704 = icmp eq i8 %char0703, 0
  br i1 %.not704, label %708, label %706

706:                                              ; preds = %705
  %707 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.188, ptr noundef nonnull %0)
  br label %708

708:                                              ; preds = %706, %705, %704
  %709 = call i32 @tcgetattr(i32 noundef 0, ptr noundef nonnull %7) #12
  %710 = call i32 @tcgetattr(i32 noundef 0, ptr noundef nonnull %8) #12
  %711 = getelementptr inbounds i8, ptr %8, i64 12
  %712 = load i32, ptr %711, align 4, !tbaa !10
  %713 = and i32 %712, -3
  store i32 %713, ptr %711, align 4, !tbaa !10
  %714 = getelementptr inbounds i8, ptr %8, i64 23
  store i8 1, ptr %714, align 1, !tbaa !5
  %715 = getelementptr inbounds i8, ptr %8, i64 22
  store i8 0, ptr %715, align 2, !tbaa !5
  %716 = call i32 @tcsetattr(i32 noundef 0, i32 noundef 0, ptr noundef nonnull %8) #12
  %.not705 = icmp eq ptr %2, null
  br i1 %.not705, label %.critedge860, label %717

717:                                              ; preds = %708
  %718 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.25, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not706 = icmp eq i32 %718, 0
  br i1 %.not706, label %.preheader884, label %736

.preheader884:                                    ; preds = %717
  br i1 %.not604, label %.preheader884.split.us, label %.preheader884.split

.preheader884.split.us:                           ; preds = %.preheader884, %.preheader884.split.us
  %719 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.189)
  %720 = load ptr, ptr @stdout, align 8, !tbaa !12
  %721 = call i32 @fflush(ptr noundef %720)
  %722 = call i32 @getchar()
  %723 = call i32 @tolower(i32 noundef %722) #13
  %724 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.190)
  %sext.us = shl i32 %723, 24
  switch i32 %sext.us, label %.preheader884.split.us [
    i32 2030043136, label %.split892.us
    i32 1845493760, label %.split892.us
  ]

.preheader884.split:                              ; preds = %.preheader884, %727
  %char0707 = load i8, ptr %1, align 1
  %.not708 = icmp eq i8 %char0707, 0
  br i1 %.not708, label %727, label %725

725:                                              ; preds = %.preheader884.split
  %726 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.188, ptr noundef nonnull %1)
  br label %727

727:                                              ; preds = %725, %.preheader884.split
  %728 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.189)
  %729 = load ptr, ptr @stdout, align 8, !tbaa !12
  %730 = call i32 @fflush(ptr noundef %729)
  %731 = call i32 @getchar()
  %732 = call i32 @tolower(i32 noundef %731) #13
  %733 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.190)
  %sext = shl i32 %732, 24
  switch i32 %sext, label %.preheader884.split [
    i32 2030043136, label %.split892.us
    i32 1845493760, label %.split892.us
  ]

.split892.us:                                     ; preds = %727, %727, %.preheader884.split.us, %.preheader884.split.us
  %.us-phi893 = phi i32 [ %sext.us, %.preheader884.split.us ], [ %sext.us, %.preheader884.split.us ], [ %sext, %727 ], [ %sext, %727 ]
  %734 = icmp eq i32 %.us-phi893, 2030043136
  %735 = zext i1 %734 to i32
  br label %.loopexit

736:                                              ; preds = %717
  %737 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not709 = icmp eq i32 %737, 0
  br i1 %.not709, label %.preheader885, label %.critedge859

.preheader885:                                    ; preds = %736
  br i1 %.not604, label %.preheader885.split.us, label %.preheader885.split

.preheader885.split.us:                           ; preds = %.preheader885, %.preheader885.split.us
  %738 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.191)
  %739 = load ptr, ptr @stdout, align 8, !tbaa !12
  %740 = call i32 @fflush(ptr noundef %739)
  %741 = call i32 @getchar()
  %742 = call i32 @tolower(i32 noundef %741) #13
  %743 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.190)
  %sext712.us = shl i32 %742, 24
  switch i32 %sext712.us, label %.preheader885.split.us [
    i32 1862270976, label %.split889.us
    i32 1660944384, label %.split889.us
  ]

.preheader885.split:                              ; preds = %.preheader885, %746
  %char0710 = load i8, ptr %1, align 1
  %.not711 = icmp eq i8 %char0710, 0
  br i1 %.not711, label %746, label %744

744:                                              ; preds = %.preheader885.split
  %745 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.188, ptr noundef nonnull %1)
  br label %746

746:                                              ; preds = %744, %.preheader885.split
  %747 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.191)
  %748 = load ptr, ptr @stdout, align 8, !tbaa !12
  %749 = call i32 @fflush(ptr noundef %748)
  %750 = call i32 @getchar()
  %751 = call i32 @tolower(i32 noundef %750) #13
  %752 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.190)
  %sext712 = shl i32 %751, 24
  switch i32 %sext712, label %.preheader885.split [
    i32 1862270976, label %.split889.us
    i32 1660944384, label %.split889.us
  ]

.split889.us:                                     ; preds = %746, %746, %.preheader885.split.us, %.preheader885.split.us
  %.us-phi890 = phi i32 [ %sext712.us, %.preheader885.split.us ], [ %sext712.us, %.preheader885.split.us ], [ %sext712, %746 ], [ %sext712, %746 ]
  %753 = icmp eq i32 %.us-phi890, 1862270976
  %754 = zext i1 %753 to i32
  br label %.loopexit

.critedge859:                                     ; preds = %736
  %755 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull dereferenceable(1) %2) #13
  %.not713 = icmp eq i32 %755, 0
  br i1 %.not713, label %.preheader886, label %.critedge860

.preheader886:                                    ; preds = %.critedge859
  br i1 %.not604, label %.preheader886.split.us, label %.preheader886.split

.preheader886.split.us:                           ; preds = %.preheader886, %.preheader886.split.us
  %756 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.192)
  %757 = load ptr, ptr @stdout, align 8, !tbaa !12
  %758 = call i32 @fflush(ptr noundef %757)
  %759 = call i32 @getchar()
  %760 = call i32 @tolower(i32 noundef %759) #13
  %761 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.190)
  %sext716.us = shl i32 %760, 24
  switch i32 %sext716.us, label %.preheader886.split.us [
    i32 2030043136, label %.loopexit
    i32 1660944384, label %.split.us
    i32 1845493760, label %.split.us
  ]

.preheader886.split:                              ; preds = %.preheader886, %764
  %char0714 = load i8, ptr %1, align 1
  %.not715 = icmp eq i8 %char0714, 0
  br i1 %.not715, label %764, label %762

762:                                              ; preds = %.preheader886.split
  %763 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.188, ptr noundef nonnull %1)
  br label %764

764:                                              ; preds = %762, %.preheader886.split
  %765 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.192)
  %766 = load ptr, ptr @stdout, align 8, !tbaa !12
  %767 = call i32 @fflush(ptr noundef %766)
  %768 = call i32 @getchar()
  %769 = call i32 @tolower(i32 noundef %768) #13
  %770 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.190)
  %sext716 = shl i32 %769, 24
  switch i32 %sext716, label %.preheader886.split [
    i32 2030043136, label %.loopexit
    i32 1660944384, label %.split.us
    i32 1845493760, label %.split.us
  ]

.split.us:                                        ; preds = %764, %764, %.preheader886.split.us, %.preheader886.split.us
  %.us-phi = phi i32 [ %sext716.us, %.preheader886.split.us ], [ %sext716.us, %.preheader886.split.us ], [ %sext716, %764 ], [ %sext716, %764 ]
  %771 = icmp eq i32 %.us-phi, 1845493760
  %772 = select i1 %771, i32 2, i32 0
  br label %.loopexit

.critedge860:                                     ; preds = %708, %.critedge859
  br i1 %.not604, label %776, label %773

773:                                              ; preds = %.critedge860
  %char0717 = load i8, ptr %1, align 1
  %.not718 = icmp eq i8 %char0717, 0
  br i1 %.not718, label %776, label %774

774:                                              ; preds = %773
  %775 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.193, ptr noundef nonnull %1)
  br label %776

776:                                              ; preds = %774, %773, %.critedge860
  %777 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.194)
  %778 = load ptr, ptr @stdout, align 8, !tbaa !12
  %779 = call i32 @fflush(ptr noundef %778)
  %780 = call i32 @getchar()
  %781 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.190)
  br label %.loopexit

.loopexit:                                        ; preds = %764, %.preheader886.split.us, %.split.us, %.split889.us, %776, %.split892.us
  %.0540 = phi i32 [ 1, %776 ], [ %754, %.split889.us ], [ %735, %.split892.us ], [ %772, %.split.us ], [ 1, %.preheader886.split.us ], [ 1, %764 ]
  %782 = call i32 @tcsetattr(i32 noundef 0, i32 noundef 0, ptr noundef nonnull %7) #12
  call void @free(ptr noundef %.0539865874) #12
  br label %818

783:                                              ; preds = %133, %131, %311, %309, %437, %.critedge857, %656, %689, %642, %544, %542, %557, %559, %551, %553, %373, %375, %235, %237, %68, %75
  %.0539864 = phi ptr [ %.0539865873878, %133 ], [ %.0539865873878, %131 ], [ %.0539865874, %311 ], [ %.0539865874, %309 ], [ %.0539865874, %437 ], [ %.0539865874, %.critedge857 ], [ %.0539865874, %656 ], [ %.0539865874, %689 ], [ %.0539865874, %642 ], [ %.0539865874, %544 ], [ %.0539865874, %542 ], [ %.0539865874, %557 ], [ %.0539865874, %559 ], [ %.0539865874, %551 ], [ %.0539865874, %553 ], [ %.0539865874, %373 ], [ %.0539865874, %375 ], [ %.0539865874, %235 ], [ %.0539865874, %237 ], [ %.0539863869, %68 ], [ %.0539863869, %75 ]
  %784 = load i32, ptr @tinyfd_verbose, align 4, !tbaa !8
  %.not823 = icmp eq i32 %784, 0
  br i1 %.not823, label %787, label %785

785:                                              ; preds = %783
  %786 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, ptr noundef %.0539864)
  br label %787

787:                                              ; preds = %785, %783
  %788 = call noalias ptr @popen(ptr noundef %.0539864, ptr noundef nonnull @.str.9)
  %.not824 = icmp eq ptr %788, null
  br i1 %.not824, label %789, label %.preheader

789:                                              ; preds = %787
  call void @free(ptr noundef %.0539864) #12
  br label %818

.preheader:                                       ; preds = %787, %.preheader
  %790 = call ptr @fgets(ptr noundef nonnull %6, i32 noundef 1024, ptr noundef nonnull %788)
  %.not825 = icmp eq ptr %790, null
  br i1 %.not825, label %791, label %.preheader, !llvm.loop !14

791:                                              ; preds = %.preheader
  %792 = call i32 @pclose(ptr noundef nonnull %788)
  %793 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %6) #13
  %794 = add i64 %793, -1
  %795 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 %794
  %796 = load i8, ptr %795, align 1, !tbaa !5
  %797 = icmp eq i8 %796, 10
  br i1 %797, label %798, label %799

798:                                              ; preds = %791
  store i8 0, ptr %795, align 1, !tbaa !5
  br label %799

799:                                              ; preds = %798, %791
  %.not826 = icmp eq ptr %2, null
  br i1 %.not826, label %811, label %800

800:                                              ; preds = %799
  %801 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull dereferenceable(1) %2) #13
  %802 = icmp eq i32 %801, 0
  %803 = load i8, ptr %6, align 16
  %804 = icmp eq i8 %803, 49
  %or.cond12 = select i1 %802, i1 %804, i1 false
  br i1 %or.cond12, label %805, label %811

805:                                              ; preds = %800
  %806 = getelementptr inbounds i8, ptr %6, i64 1
  %807 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %806, ptr noundef nonnull dereferenceable(1) @.str.195) #13
  %.not827 = icmp eq i32 %807, 0
  br i1 %.not827, label %.sink.split912, label %808

808:                                              ; preds = %805
  %809 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %806, ptr noundef nonnull dereferenceable(1) @.str.197) #13
  %.not828 = icmp eq i32 %809, 0
  br i1 %.not828, label %.sink.split912, label %811

.sink.split912:                                   ; preds = %808, %805
  %.str.198.sink = phi ptr [ @.str.196, %805 ], [ @.str.198, %808 ]
  %810 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %.str.198.sink) #12
  br label %811

811:                                              ; preds = %.sink.split912, %808, %800, %799
  %812 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.198) #13
  %.not829 = icmp eq i32 %812, 0
  br i1 %.not829, label %816, label %813

813:                                              ; preds = %811
  %814 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.196) #13
  %.not830 = icmp eq i32 %814, 0
  %815 = zext i1 %.not830 to i32
  br label %816

816:                                              ; preds = %811, %813
  %817 = phi i32 [ %815, %813 ], [ 2, %811 ]
  call void @free(ptr noundef %.0539864) #12
  br label %818

818:                                              ; preds = %816, %789, %.loopexit, %694, %670, %654, %620, %568, %495, %488, %470, %461, %452, %404, %399, %392, %326, %252, %179, %172, %163, %148, %82, %27
  %.0 = phi i32 [ %817, %816 ], [ 0, %789 ], [ 1, %27 ], [ 1, %82 ], [ 1, %148 ], [ 1, %163 ], [ 1, %172 ], [ 1, %179 ], [ 1, %392 ], [ 1, %399 ], [ 1, %404 ], [ 1, %452 ], [ 1, %461 ], [ 0, %470 ], [ 0, %488 ], [ 0, %495 ], [ %.0540, %.loopexit ], [ 0, %694 ], [ 1, %670 ], [ 1, %654 ], [ 1, %620 ], [ 0, %568 ], [ 1, %326 ], [ 1, %252 ]
  call void @llvm.lifetime.end.p0(i64 60, ptr nonnull %8) #12
  call void @llvm.lifetime.end.p0(i64 60, ptr nonnull %7) #12
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %6) #12
  ret i32 %.0
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL12osx9orBetterv() local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcat(ptr noalias noundef returned, ptr noalias nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL14kdialogPresentv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13zenityPresentv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL17matedialogPresentv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL20shellementaryPresentv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL12qarmaPresentv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL14zenity3Presentv() local_unnamed_addr #3

; Function Attrs: nofree nounwind memory(read)
declare noundef ptr @getenv(ptr nocapture noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL16gxmessagePresentv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15gmessagePresentv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL14gdialogPresentv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL14xdialogPresentv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15tkinter2Presentv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL17isTerminalRunningv() local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL8isDarwinv() local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15tkinter3Presentv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15xmessagePresentv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL10dialogNamev() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15whiptailPresentv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL12terminalNamev() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL17pythonDbusPresentv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL11perlPresentv() local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL17notifysendPresentv() local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @tcgetattr(i32 noundef, ptr noundef) local_unnamed_addr #8

; Function Attrs: nounwind
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #8

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare i32 @tolower(i32 noundef) local_unnamed_addr #9

; Function Attrs: inlinehint mustprogress nofree nounwind uwtable
declare noundef i32 @getchar() local_unnamed_addr #10

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #11

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nofree nounwind memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { mustprogress nofree nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { inlinehint mustprogress nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #11 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #12 = { nounwind }
attributes #13 = { nounwind willreturn memory(read) }
attributes #14 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = !{!11, !9, i64 12}
!11 = !{!"_ZTS7termios", !9, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !6, i64 16, !6, i64 17, !9, i64 52, !9, i64 56}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !6, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass