; 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"

@tinyfd_verbose = external dso_local global i32, align 4
@tinyfd_response = external dso_local global [1024 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.15 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.16 = 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.46 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [6 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.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.199 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.200 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.202 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.203 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.204 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.205 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.206 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.207 = external hidden unnamed_addr constant [10 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
declare dso_local i32 @tinyfd_messageBox(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

; 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 @_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 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 @_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 void @free(ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local i32 @tinyfd_notifyPopup(ptr noundef %0, ptr noundef %1, ptr noundef %2) #3 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca [1024 x i8], align 16
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1024, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %15 = call ptr @getenv(ptr noundef @.str.54) #7
  %16 = icmp ne ptr %15, null
  br i1 %16, label %17, label %22

17:                                               ; preds = %3
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = call i32 @tinyfd_messageBox(ptr noundef %18, ptr noundef %19, ptr noundef @.str.167, ptr noundef %20, i32 noundef 0)
  store i32 %21, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %476

22:                                               ; preds = %3
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %28

25:                                               ; preds = %22
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = call i64 @strlen(ptr noundef %26) #8
  br label %29

28:                                               ; preds = %22
  br label %29

29:                                               ; preds = %28, %25
  %30 = phi i64 [ %27, %25 ], [ 0, %28 ]
  store i64 %30, ptr %12, align 8, !tbaa !9
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %36

33:                                               ; preds = %29
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = call i64 @strlen(ptr noundef %34) #8
  br label %37

36:                                               ; preds = %29
  br label %37

37:                                               ; preds = %36, %33
  %38 = phi i64 [ %35, %33 ], [ 0, %36 ]
  store i64 %38, ptr %13, align 8, !tbaa !9
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %45

41:                                               ; preds = %37
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = call i32 @strcmp(ptr noundef %42, ptr noundef @.str.10) #8
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %51

45:                                               ; preds = %41, %37
  %46 = load i64, ptr %12, align 8, !tbaa !9
  %47 = add i64 1024, %46
  %48 = load i64, ptr %13, align 8, !tbaa !9
  %49 = add i64 %47, %48
  %50 = call noalias ptr @malloc(i64 noundef %49) #9
  store ptr %50, ptr %9, align 8, !tbaa !5
  br label %51

51:                                               ; preds = %45, %41
  %52 = call noundef i32 @_ZL16osascriptPresentv()
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %110

54:                                               ; preds = %51
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %63

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

61:                                               ; preds = %57
  %62 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.11) #7
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %476

63:                                               ; preds = %57, %54
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = call ptr @strcpy(ptr noundef %64, ptr noundef @.str.12) #7
  %66 = call noundef i32 @_ZL12osx9orBetterv()
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %71, label %68

68:                                               ; preds = %63
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = call ptr @strcat(ptr noundef %69, ptr noundef @.str.13) #7
  br label %71

71:                                               ; preds = %68, %63
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = call ptr @strcat(ptr noundef %72, ptr noundef @.str.199) #7
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = icmp ne ptr %74, null
  br i1 %75, label %76, label %84

76:                                               ; preds = %71
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = call i64 @strlen(ptr noundef %77) #8
  %79 = icmp ne i64 %78, 0
  br i1 %79, label %80, label %84

80:                                               ; preds = %76
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = call ptr @strcat(ptr noundef %81, ptr noundef %82) #7
  br label %84

84:                                               ; preds = %80, %76, %71
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = call ptr @strcat(ptr noundef %85, ptr noundef @.str.200) #7
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = icmp ne ptr %87, null
  br i1 %88, label %89, label %101

89:                                               ; preds = %84
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = call i64 @strlen(ptr noundef %90) #8
  %92 = icmp ne i64 %91, 0
  br i1 %92, label %93, label %101

93:                                               ; preds = %89
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = call ptr @strcat(ptr noundef %94, ptr noundef @.str.16) #7
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = call ptr @strcat(ptr noundef %96, ptr noundef %97) #7
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = call ptr @strcat(ptr noundef %99, ptr noundef @.str.15) #7
  br label %101

101:                                              ; preds = %93, %89, %84
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = call ptr @strcat(ptr noundef %102, ptr noundef @.str.201) #7
  %104 = call noundef i32 @_ZL12osx9orBetterv()
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %109, label %106

106:                                              ; preds = %101
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = call ptr @strcat(ptr noundef %107, ptr noundef @.str.40) #7
  br label %109

109:                                              ; preds = %106, %101
  br label %460

110:                                              ; preds = %51
  %111 = call noundef i32 @_ZL14kdialogPresentv()
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %168

113:                                              ; preds = %110
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = icmp ne ptr %114, null
  br i1 %115, label %116, label %122

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

120:                                              ; preds = %116
  %121 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.41) #7
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %476

122:                                              ; preds = %116, %113
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = call ptr @strcpy(ptr noundef %123, ptr noundef @.str.41) #7
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = icmp ne ptr %125, null
  br i1 %126, label %127, label %139

127:                                              ; preds = %122
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = call i64 @strlen(ptr noundef %128) #8
  %130 = icmp ne i64 %129, 0
  br i1 %130, label %131, label %139

131:                                              ; preds = %127
  %132 = load ptr, ptr %9, align 8, !tbaa !5
  %133 = call ptr @strcat(ptr noundef %132, ptr noundef @.str.202) #7
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = call ptr @strcat(ptr noundef %134, ptr noundef %135) #7
  %137 = load ptr, ptr %9, align 8, !tbaa !5
  %138 = call ptr @strcat(ptr noundef %137, ptr noundef @.str.92) #7
  br label %139

139:                                              ; preds = %131, %127, %122
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = icmp ne ptr %140, null
  br i1 %141, label %142, label %154

142:                                              ; preds = %139
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = call i64 @strlen(ptr noundef %143) #8
  %145 = icmp ne i64 %144, 0
  br i1 %145, label %146, label %154

146:                                              ; preds = %142
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  %148 = call ptr @strcat(ptr noundef %147, ptr noundef @.str.49) #7
  %149 = load ptr, ptr %9, align 8, !tbaa !5
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = call ptr @strcat(ptr noundef %149, ptr noundef %150) #7
  %152 = load ptr, ptr %9, align 8, !tbaa !5
  %153 = call ptr @strcat(ptr noundef %152, ptr noundef @.str.47) #7
  br label %154

154:                                              ; preds = %146, %142, %139
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = call ptr @strcat(ptr noundef %155, ptr noundef @.str.203) #7
  %157 = load ptr, ptr %9, align 8, !tbaa !5
  %158 = call ptr @strcat(ptr noundef %157, ptr noundef @.str.46) #7
  %159 = load ptr, ptr %6, align 8, !tbaa !5
  %160 = icmp ne ptr %159, null
  br i1 %160, label %161, label %165

161:                                              ; preds = %154
  %162 = load ptr, ptr %9, align 8, !tbaa !5
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = call ptr @strcat(ptr noundef %162, ptr noundef %163) #7
  br label %165

165:                                              ; preds = %161, %154
  %166 = load ptr, ptr %9, align 8, !tbaa !5
  %167 = call ptr @strcat(ptr noundef %166, ptr noundef @.str.204) #7
  br label %459

168:                                              ; preds = %110
  %169 = call noundef i32 @_ZL14zenity3Presentv()
  %170 = icmp sge i32 %169, 5
  br i1 %170, label %180, label %171

171:                                              ; preds = %168
  %172 = call noundef i32 @_ZL17matedialogPresentv()
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %180, label %174

174:                                              ; preds = %171
  %175 = call noundef i32 @_ZL20shellementaryPresentv()
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %180, label %177

177:                                              ; preds = %174
  %178 = call noundef i32 @_ZL12qarmaPresentv()
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %180, label %285

180:                                              ; preds = %177, %174, %171, %168
  %181 = call noundef i32 @_ZL14zenity3Presentv()
  %182 = icmp sge i32 %181, 5
  br i1 %182, label %183, label %195

183:                                              ; preds = %180
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = icmp ne ptr %184, null
  br i1 %185, label %186, label %192

186:                                              ; preds = %183
  %187 = load ptr, ptr %5, align 8, !tbaa !5
  %188 = call i32 @strcmp(ptr noundef %187, ptr noundef @.str.10) #8
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %192, label %190

190:                                              ; preds = %186
  %191 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.52) #7
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %476

192:                                              ; preds = %186, %183
  %193 = load ptr, ptr %9, align 8, !tbaa !5
  %194 = call ptr @strcpy(ptr noundef %193, ptr noundef @.str.52) #7
  br label %239

195:                                              ; preds = %180
  %196 = call noundef i32 @_ZL17matedialogPresentv()
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %198, label %210

198:                                              ; preds = %195
  %199 = load ptr, ptr %5, align 8, !tbaa !5
  %200 = icmp ne ptr %199, null
  br i1 %200, label %201, label %207

201:                                              ; preds = %198
  %202 = load ptr, ptr %5, align 8, !tbaa !5
  %203 = call i32 @strcmp(ptr noundef %202, ptr noundef @.str.10) #8
  %204 = icmp ne i32 %203, 0
  br i1 %204, label %207, label %205

205:                                              ; preds = %201
  %206 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.56) #7
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %476

207:                                              ; preds = %201, %198
  %208 = load ptr, ptr %9, align 8, !tbaa !5
  %209 = call ptr @strcpy(ptr noundef %208, ptr noundef @.str.56) #7
  br label %238

210:                                              ; preds = %195
  %211 = call noundef i32 @_ZL20shellementaryPresentv()
  %212 = icmp ne i32 %211, 0
  br i1 %212, label %213, label %225

213:                                              ; preds = %210
  %214 = load ptr, ptr %5, align 8, !tbaa !5
  %215 = icmp ne ptr %214, null
  br i1 %215, label %216, label %222

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

220:                                              ; preds = %216
  %221 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.58) #7
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %476

222:                                              ; preds = %216, %213
  %223 = load ptr, ptr %9, align 8, !tbaa !5
  %224 = call ptr @strcpy(ptr noundef %223, ptr noundef @.str.58) #7
  br label %237

225:                                              ; preds = %210
  %226 = load ptr, ptr %5, align 8, !tbaa !5
  %227 = icmp ne ptr %226, null
  br i1 %227, label %228, label %234

228:                                              ; preds = %225
  %229 = load ptr, ptr %5, align 8, !tbaa !5
  %230 = call i32 @strcmp(ptr noundef %229, ptr noundef @.str.10) #8
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %234, label %232

232:                                              ; preds = %228
  %233 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.60) #7
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %476

234:                                              ; preds = %228, %225
  %235 = load ptr, ptr %9, align 8, !tbaa !5
  %236 = call ptr @strcpy(ptr noundef %235, ptr noundef @.str.60) #7
  br label %237

237:                                              ; preds = %234, %222
  br label %238

238:                                              ; preds = %237, %207
  br label %239

239:                                              ; preds = %238, %192
  %240 = load ptr, ptr %9, align 8, !tbaa !5
  %241 = call ptr @strcat(ptr noundef %240, ptr noundef @.str.205) #7
  %242 = load ptr, ptr %7, align 8, !tbaa !5
  %243 = icmp ne ptr %242, null
  br i1 %243, label %244, label %256

244:                                              ; preds = %239
  %245 = load ptr, ptr %7, align 8, !tbaa !5
  %246 = call i64 @strlen(ptr noundef %245) #8
  %247 = icmp ne i64 %246, 0
  br i1 %247, label %248, label %256

248:                                              ; preds = %244
  %249 = load ptr, ptr %9, align 8, !tbaa !5
  %250 = call ptr @strcat(ptr noundef %249, ptr noundef @.str.206) #7
  %251 = load ptr, ptr %9, align 8, !tbaa !5
  %252 = load ptr, ptr %7, align 8, !tbaa !5
  %253 = call ptr @strcat(ptr noundef %251, ptr noundef %252) #7
  %254 = load ptr, ptr %9, align 8, !tbaa !5
  %255 = call ptr @strcat(ptr noundef %254, ptr noundef @.str.92) #7
  br label %256

256:                                              ; preds = %248, %244, %239
  %257 = load ptr, ptr %9, align 8, !tbaa !5
  %258 = call ptr @strcat(ptr noundef %257, ptr noundef @.str.207) #7
  %259 = load ptr, ptr %5, align 8, !tbaa !5
  %260 = icmp ne ptr %259, null
  br i1 %260, label %261, label %271

261:                                              ; preds = %256
  %262 = load ptr, ptr %5, align 8, !tbaa !5
  %263 = call i64 @strlen(ptr noundef %262) #8
  %264 = icmp ne i64 %263, 0
  br i1 %264, label %265, label %271

265:                                              ; preds = %261
  %266 = load ptr, ptr %9, align 8, !tbaa !5
  %267 = load ptr, ptr %5, align 8, !tbaa !5
  %268 = call ptr @strcat(ptr noundef %266, ptr noundef %267) #7
  %269 = load ptr, ptr %9, align 8, !tbaa !5
  %270 = call ptr @strcat(ptr noundef %269, ptr noundef @.str.90) #7
  br label %271

271:                                              ; preds = %265, %261, %256
  %272 = load ptr, ptr %6, align 8, !tbaa !5
  %273 = icmp ne ptr %272, null
  br i1 %273, label %274, label %282

274:                                              ; preds = %271
  %275 = load ptr, ptr %6, align 8, !tbaa !5
  %276 = call i64 @strlen(ptr noundef %275) #8
  %277 = icmp ne i64 %276, 0
  br i1 %277, label %278, label %282

278:                                              ; preds = %274
  %279 = load ptr, ptr %9, align 8, !tbaa !5
  %280 = load ptr, ptr %6, align 8, !tbaa !5
  %281 = call ptr @strcat(ptr noundef %279, ptr noundef %280) #7
  br label %282

282:                                              ; preds = %278, %274, %271
  %283 = load ptr, ptr %9, align 8, !tbaa !5
  %284 = call ptr @strcat(ptr noundef %283, ptr noundef @.str.46) #7
  br label %458

285:                                              ; preds = %177
  %286 = call noundef i32 @_ZL11perlPresentv()
  %287 = icmp sge i32 %286, 2
  br i1 %287, label %288, label %321

288:                                              ; preds = %285
  %289 = load ptr, ptr %5, align 8, !tbaa !5
  %290 = icmp ne ptr %289, null
  br i1 %290, label %291, label %297

291:                                              ; preds = %288
  %292 = load ptr, ptr %5, align 8, !tbaa !5
  %293 = call i32 @strcmp(ptr noundef %292, ptr noundef @.str.10) #8
  %294 = icmp ne i32 %293, 0
  br i1 %294, label %297, label %295

295:                                              ; preds = %291
  %296 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.175) #7
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %476

297:                                              ; preds = %291, %288
  %298 = load ptr, ptr %9, align 8, !tbaa !5
  %299 = load ptr, ptr %7, align 8, !tbaa !5
  %300 = icmp ne ptr %299, null
  br i1 %300, label %301, label %303

301:                                              ; preds = %297
  %302 = load ptr, ptr %7, align 8, !tbaa !5
  br label %304

303:                                              ; preds = %297
  br label %304

304:                                              ; preds = %303, %301
  %305 = phi ptr [ %302, %301 ], [ @.str.177, %303 ]
  %306 = load ptr, ptr %5, align 8, !tbaa !5
  %307 = icmp ne ptr %306, null
  br i1 %307, label %308, label %310

308:                                              ; preds = %304
  %309 = load ptr, ptr %5, align 8, !tbaa !5
  br label %311

310:                                              ; preds = %304
  br label %311

311:                                              ; preds = %310, %308
  %312 = phi ptr [ %309, %308 ], [ @.str.177, %310 ]
  %313 = load ptr, ptr %6, align 8, !tbaa !5
  %314 = icmp ne ptr %313, null
  br i1 %314, label %315, label %317

315:                                              ; preds = %311
  %316 = load ptr, ptr %6, align 8, !tbaa !5
  br label %318

317:                                              ; preds = %311
  br label %318

318:                                              ; preds = %317, %315
  %319 = phi ptr [ %316, %315 ], [ @.str.177, %317 ]
  %320 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %298, ptr noundef @.str.176, ptr noundef %305, ptr noundef %312, ptr noundef %319) #7
  br label %457

321:                                              ; preds = %285
  %322 = call noundef i32 @_ZL17pythonDbusPresentv()
  %323 = icmp ne i32 %322, 0
  br i1 %323, label %324, label %386

324:                                              ; preds = %321
  %325 = load ptr, ptr %5, align 8, !tbaa !5
  %326 = icmp ne ptr %325, null
  br i1 %326, label %327, label %333

327:                                              ; preds = %324
  %328 = load ptr, ptr %5, align 8, !tbaa !5
  %329 = call i32 @strcmp(ptr noundef %328, ptr noundef @.str.10) #8
  %330 = icmp ne i32 %329, 0
  br i1 %330, label %333, label %331

331:                                              ; preds = %327
  %332 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.168) #7
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %476

333:                                              ; preds = %327, %324
  %334 = load ptr, ptr %9, align 8, !tbaa !5
  %335 = call ptr @strcpy(ptr noundef %334, ptr noundef @_ZL11gPythonName) #7
  %336 = load ptr, ptr %9, align 8, !tbaa !5
  %337 = call ptr @strcat(ptr noundef %336, ptr noundef @.str.169) #7
  %338 = load ptr, ptr %9, align 8, !tbaa !5
  %339 = call ptr @strcat(ptr noundef %338, ptr noundef @.str.170) #7
  %340 = load ptr, ptr %9, align 8, !tbaa !5
  %341 = call ptr @strcat(ptr noundef %340, ptr noundef @.str.171) #7
  %342 = load ptr, ptr %9, align 8, !tbaa !5
  %343 = call ptr @strcat(ptr noundef %342, ptr noundef @.str.172) #7
  %344 = load ptr, ptr %7, align 8, !tbaa !5
  %345 = icmp ne ptr %344, null
  br i1 %345, label %346, label %354

346:                                              ; preds = %333
  %347 = load ptr, ptr %7, align 8, !tbaa !5
  %348 = call i64 @strlen(ptr noundef %347) #8
  %349 = icmp ne i64 %348, 0
  br i1 %349, label %350, label %354

350:                                              ; preds = %346
  %351 = load ptr, ptr %9, align 8, !tbaa !5
  %352 = load ptr, ptr %7, align 8, !tbaa !5
  %353 = call ptr @strcat(ptr noundef %351, ptr noundef %352) #7
  br label %354

354:                                              ; preds = %350, %346, %333
  %355 = load ptr, ptr %9, align 8, !tbaa !5
  %356 = call ptr @strcat(ptr noundef %355, ptr noundef @.str.173) #7
  %357 = load ptr, ptr %5, align 8, !tbaa !5
  %358 = icmp ne ptr %357, null
  br i1 %358, label %359, label %367

359:                                              ; preds = %354
  %360 = load ptr, ptr %5, align 8, !tbaa !5
  %361 = call i64 @strlen(ptr noundef %360) #8
  %362 = icmp ne i64 %361, 0
  br i1 %362, label %363, label %367

363:                                              ; preds = %359
  %364 = load ptr, ptr %9, align 8, !tbaa !5
  %365 = load ptr, ptr %5, align 8, !tbaa !5
  %366 = call ptr @strcat(ptr noundef %364, ptr noundef %365) #7
  br label %367

367:                                              ; preds = %363, %359, %354
  %368 = load ptr, ptr %9, align 8, !tbaa !5
  %369 = call ptr @strcat(ptr noundef %368, ptr noundef @.str.173) #7
  %370 = load ptr, ptr %6, align 8, !tbaa !5
  %371 = icmp ne ptr %370, null
  br i1 %371, label %372, label %383

372:                                              ; preds = %367
  %373 = load ptr, ptr %6, align 8, !tbaa !5
  %374 = call i64 @strlen(ptr noundef %373) #8
  %375 = icmp ne i64 %374, 0
  br i1 %375, label %376, label %383

376:                                              ; preds = %372
  %377 = load ptr, ptr %9, align 8, !tbaa !5
  %378 = load ptr, ptr %9, align 8, !tbaa !5
  %379 = call i64 @strlen(ptr noundef %378) #8
  %380 = getelementptr inbounds i8, ptr %377, i64 %379
  store ptr %380, ptr %10, align 8, !tbaa !5
  %381 = load ptr, ptr %6, align 8, !tbaa !5
  %382 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef %381, ptr noundef @.str.90, ptr noundef @.str.91, ptr noundef %382)
  br label %383

383:                                              ; preds = %376, %372, %367
  %384 = load ptr, ptr %9, align 8, !tbaa !5
  %385 = call ptr @strcat(ptr noundef %384, ptr noundef @.str.174) #7
  br label %456

386:                                              ; preds = %321
  %387 = call noundef i32 @_ZL17notifysendPresentv()
  %388 = icmp ne i32 %387, 0
  br i1 %388, label %389, label %450

389:                                              ; preds = %386
  %390 = load ptr, ptr %5, align 8, !tbaa !5
  %391 = icmp ne ptr %390, null
  br i1 %391, label %392, label %398

392:                                              ; preds = %389
  %393 = load ptr, ptr %5, align 8, !tbaa !5
  %394 = call i32 @strcmp(ptr noundef %393, ptr noundef @.str.10) #8
  %395 = icmp ne i32 %394, 0
  br i1 %395, label %398, label %396

396:                                              ; preds = %392
  %397 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.178) #7
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %476

398:                                              ; preds = %392, %389
  %399 = load ptr, ptr %9, align 8, !tbaa !5
  %400 = call ptr @strcpy(ptr noundef %399, ptr noundef @.str.179) #7
  %401 = load ptr, ptr %7, align 8, !tbaa !5
  %402 = icmp ne ptr %401, null
  br i1 %402, label %403, label %415

403:                                              ; preds = %398
  %404 = load ptr, ptr %7, align 8, !tbaa !5
  %405 = call i64 @strlen(ptr noundef %404) #8
  %406 = icmp ne i64 %405, 0
  br i1 %406, label %407, label %415

407:                                              ; preds = %403
  %408 = load ptr, ptr %9, align 8, !tbaa !5
  %409 = call ptr @strcat(ptr noundef %408, ptr noundef @.str.180) #7
  %410 = load ptr, ptr %9, align 8, !tbaa !5
  %411 = load ptr, ptr %7, align 8, !tbaa !5
  %412 = call ptr @strcat(ptr noundef %410, ptr noundef %411) #7
  %413 = load ptr, ptr %9, align 8, !tbaa !5
  %414 = call ptr @strcat(ptr noundef %413, ptr noundef @.str.92) #7
  br label %415

415:                                              ; preds = %407, %403, %398
  %416 = load ptr, ptr %9, align 8, !tbaa !5
  %417 = call ptr @strcat(ptr noundef %416, ptr noundef @.str.46) #7
  %418 = load ptr, ptr %5, align 8, !tbaa !5
  %419 = icmp ne ptr %418, null
  br i1 %419, label %420, label %430

420:                                              ; preds = %415
  %421 = load ptr, ptr %5, align 8, !tbaa !5
  %422 = call i64 @strlen(ptr noundef %421) #8
  %423 = icmp ne i64 %422, 0
  br i1 %423, label %424, label %430

424:                                              ; preds = %420
  %425 = load ptr, ptr %9, align 8, !tbaa !5
  %426 = load ptr, ptr %5, align 8, !tbaa !5
  %427 = call ptr @strcat(ptr noundef %425, ptr noundef %426) #7
  %428 = load ptr, ptr %9, align 8, !tbaa !5
  %429 = call ptr @strcat(ptr noundef %428, ptr noundef @.str.181) #7
  br label %430

430:                                              ; preds = %424, %420, %415
  %431 = load ptr, ptr %6, align 8, !tbaa !5
  %432 = icmp ne ptr %431, null
  br i1 %432, label %433, label %447

433:                                              ; preds = %430
  %434 = load ptr, ptr %6, align 8, !tbaa !5
  %435 = call i64 @strlen(ptr noundef %434) #8
  %436 = icmp ne i64 %435, 0
  br i1 %436, label %437, label %447

437:                                              ; preds = %433
  %438 = load ptr, ptr %6, align 8, !tbaa !5
  %439 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  call void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef %438, ptr noundef @.str.182, ptr noundef @.str.183, ptr noundef %439)
  %440 = load ptr, ptr %6, align 8, !tbaa !5
  %441 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  call void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef %440, ptr noundef @.str.90, ptr noundef @.str.181, ptr noundef %441)
  %442 = load ptr, ptr %6, align 8, !tbaa !5
  %443 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  call void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef %442, ptr noundef @.str.184, ptr noundef @.str.185, ptr noundef %443)
  %444 = load ptr, ptr %9, align 8, !tbaa !5
  %445 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %446 = call ptr @strcat(ptr noundef %444, ptr noundef %445) #7
  br label %447

447:                                              ; preds = %437, %433, %430
  %448 = load ptr, ptr %9, align 8, !tbaa !5
  %449 = call ptr @strcat(ptr noundef %448, ptr noundef @.str.47) #7
  br label %455

450:                                              ; preds = %386
  %451 = load ptr, ptr %5, align 8, !tbaa !5
  %452 = load ptr, ptr %6, align 8, !tbaa !5
  %453 = load ptr, ptr %7, align 8, !tbaa !5
  %454 = call i32 @tinyfd_messageBox(ptr noundef %451, ptr noundef %452, ptr noundef @.str.167, ptr noundef %453, i32 noundef 0)
  store i32 %454, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %476

455:                                              ; preds = %447
  br label %456

456:                                              ; preds = %455, %383
  br label %457

457:                                              ; preds = %456, %318
  br label %458

458:                                              ; preds = %457, %282
  br label %459

459:                                              ; preds = %458, %165
  br label %460

460:                                              ; preds = %459, %109
  %461 = load i32, ptr @tinyfd_verbose, align 4, !tbaa !11
  %462 = icmp ne i32 %461, 0
  br i1 %462, label %463, label %466

463:                                              ; preds = %460
  %464 = load ptr, ptr %9, align 8, !tbaa !5
  %465 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %464)
  br label %466

466:                                              ; preds = %463, %460
  %467 = load ptr, ptr %9, align 8, !tbaa !5
  %468 = call noalias ptr @popen(ptr noundef %467, ptr noundef @.str.9)
  store ptr %468, ptr %11, align 8, !tbaa !5
  %469 = icmp ne ptr %468, null
  br i1 %469, label %472, label %470

470:                                              ; preds = %466
  %471 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %471) #7
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %476

472:                                              ; preds = %466
  %473 = load ptr, ptr %11, align 8, !tbaa !5
  %474 = call i32 @pclose(ptr noundef %473)
  %475 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %475) #7
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %476

476:                                              ; preds = %472, %470, %450, %396, %331, %295, %232, %220, %205, %190, %120, %61, %17
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr %8) #7
  %477 = load i32, ptr %4, align 4
  ret i32 %477
}

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 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}


; 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"

@tinyfd_verbose = external dso_local local_unnamed_addr global i32, align 4
@tinyfd_response = external dso_local global [1024 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.15 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.16 = 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.46 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [6 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.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.199 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.200 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.202 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.203 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.204 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.205 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.206 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.207 = external hidden unnamed_addr constant [10 x i8], align 1

; 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
declare dso_local i32 @tinyfd_messageBox(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; 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 @_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 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 @_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: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #8

; Function Attrs: mustprogress uwtable
define dso_local i32 @tinyfd_notifyPopup(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #3 {
  %4 = alloca [1024 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %4) #9
  %5 = tail call ptr @getenv(ptr noundef nonnull @.str.54) #9
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %8, label %6

6:                                                ; preds = %3
  %7 = tail call i32 @tinyfd_messageBox(ptr noundef %0, ptr noundef %1, ptr noundef nonnull @.str.167, ptr noundef %2, i32 noundef 0)
  br label %213

8:                                                ; preds = %3
  %.not156 = icmp eq ptr %0, null
  br i1 %.not156, label %11, label %9

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

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

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

15:                                               ; preds = %11, %13
  %16 = phi i64 [ %14, %13 ], [ 0, %11 ]
  br i1 %.not156, 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) #10
  %.not158 = icmp eq i32 %18, 0
  br i1 %.not158, 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) #11
  %23 = tail call noundef i32 @_ZL16osascriptPresentv()
  %.not159 = icmp eq i32 %23, 0
  br i1 %.not159, label %51, label %25

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

25:                                               ; preds = %19
  br i1 %.not156, label %29, label %.thread216

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

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

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

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

34:                                               ; preds = %32, %29
  %35 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143213219, ptr noundef nonnull dereferenceable(1) @.str.199) #9
  br i1 %.not157, label %39, label %36

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

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

39:                                               ; preds = %37, %36, %34
  %40 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143213219, ptr noundef nonnull dereferenceable(1) @.str.200) #9
  br i1 %.not156, label %46, label %41

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

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

46:                                               ; preds = %42, %41, %39
  %47 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143213219, ptr noundef nonnull dereferenceable(1) @.str.201) #9
  %48 = tail call noundef i32 @_ZL12osx9orBetterv()
  %.not208 = icmp eq i32 %48, 0
  br i1 %.not208, label %49, label %204

49:                                               ; preds = %46
  %50 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143213219, ptr noundef nonnull dereferenceable(1) @.str.40) #9
  br label %204

51:                                               ; preds = %19
  %52 = tail call noundef i32 @_ZL14kdialogPresentv()
  %.not160 = icmp eq i32 %52, 0
  br i1 %.not160, label %78, label %54

.thread220:                                       ; preds = %.thread
  %53 = tail call noundef i32 @_ZL14kdialogPresentv()
  %.not160222 = icmp eq i32 %53, 0
  br i1 %.not160222, label %78, label %.thread225

54:                                               ; preds = %51
  br i1 %.not156, label %58, label %.thread225

.thread225:                                       ; preds = %.thread220, %54
  %.0143215223227 = phi ptr [ %22, %54 ], [ null, %.thread220 ]
  %55 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #10
  %.not196 = icmp eq i32 %55, 0
  br i1 %.not196, label %56, label %58

56:                                               ; preds = %.thread225
  %57 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.41) #9
  br label %213

58:                                               ; preds = %.thread225, %54
  %.0143215223228 = phi ptr [ %.0143215223227, %.thread225 ], [ %22, %54 ]
  %59 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0143215223228, ptr noundef nonnull dereferenceable(1) @.str.41) #9
  %.not197 = icmp eq ptr %2, null
  br i1 %.not197, label %65, label %60

60:                                               ; preds = %58
  %char0198 = load i8, ptr %2, align 1
  %.not199 = icmp eq i8 %char0198, 0
  br i1 %.not199, label %65, label %61

61:                                               ; preds = %60
  %62 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215223228, ptr noundef nonnull dereferenceable(1) @.str.202) #9
  %63 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215223228, ptr noundef nonnull dereferenceable(1) %2) #9
  %64 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215223228, ptr noundef nonnull dereferenceable(1) @.str.92) #9
  br label %65

65:                                               ; preds = %61, %60, %58
  br i1 %.not156, label %71, label %66

66:                                               ; preds = %65
  %char0200 = load i8, ptr %0, align 1
  %.not201 = icmp eq i8 %char0200, 0
  br i1 %.not201, label %71, label %67

67:                                               ; preds = %66
  %68 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215223228, ptr noundef nonnull dereferenceable(1) @.str.49) #9
  %69 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215223228, ptr noundef nonnull dereferenceable(1) %0) #9
  %70 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215223228, ptr noundef nonnull dereferenceable(1) @.str.47) #9
  br label %71

71:                                               ; preds = %67, %66, %65
  %72 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215223228, ptr noundef nonnull dereferenceable(1) @.str.203) #9
  %73 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215223228, ptr noundef nonnull dereferenceable(1) @.str.46) #9
  br i1 %.not157, label %76, label %74

74:                                               ; preds = %71
  %75 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215223228, ptr noundef nonnull dereferenceable(1) %1) #9
  br label %76

76:                                               ; preds = %74, %71
  %77 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215223228, ptr noundef nonnull dereferenceable(1) @.str.204) #9
  br label %204

78:                                               ; preds = %.thread220, %51
  %.0143215224 = phi ptr [ null, %.thread220 ], [ %22, %51 ]
  %79 = tail call noundef i32 @_ZL14zenity3Presentv()
  %80 = icmp sgt i32 %79, 4
  br i1 %80, label %87, label %81

81:                                               ; preds = %78
  %82 = tail call noundef i32 @_ZL17matedialogPresentv()
  %.not161 = icmp eq i32 %82, 0
  br i1 %.not161, label %83, label %87

83:                                               ; preds = %81
  %84 = tail call noundef i32 @_ZL20shellementaryPresentv()
  %.not162 = icmp eq i32 %84, 0
  br i1 %.not162, label %85, label %87

85:                                               ; preds = %83
  %86 = tail call noundef i32 @_ZL12qarmaPresentv()
  %.not163 = icmp eq i32 %86, 0
  br i1 %.not163, label %134, label %87

87:                                               ; preds = %85, %83, %81, %78
  %88 = tail call noundef i32 @_ZL14zenity3Presentv()
  %89 = icmp sgt i32 %88, 4
  br i1 %89, label %90, label %95

90:                                               ; preds = %87
  br i1 %.not156, label %114, label %91

91:                                               ; preds = %90
  %92 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #10
  %.not188 = icmp eq i32 %92, 0
  br i1 %.not188, label %93, label %114

93:                                               ; preds = %91
  %94 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.52) #9
  br label %213

95:                                               ; preds = %87
  %96 = tail call noundef i32 @_ZL17matedialogPresentv()
  %.not183 = icmp eq i32 %96, 0
  br i1 %.not183, label %102, label %97

97:                                               ; preds = %95
  br i1 %.not156, label %114, label %98

98:                                               ; preds = %97
  %99 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #10
  %.not187 = icmp eq i32 %99, 0
  br i1 %.not187, label %100, label %114

100:                                              ; preds = %98
  %101 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.56) #9
  br label %213

102:                                              ; preds = %95
  %103 = tail call noundef i32 @_ZL20shellementaryPresentv()
  %.not184 = icmp eq i32 %103, 0
  br i1 %.not184, label %109, label %104

104:                                              ; preds = %102
  br i1 %.not156, label %114, label %105

105:                                              ; preds = %104
  %106 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #10
  %.not186 = icmp eq i32 %106, 0
  br i1 %.not186, label %107, label %114

107:                                              ; preds = %105
  %108 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.58) #9
  br label %213

109:                                              ; preds = %102
  br i1 %.not156, label %114, label %110

110:                                              ; preds = %109
  %111 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #10
  %.not185 = icmp eq i32 %111, 0
  br i1 %.not185, label %112, label %114

112:                                              ; preds = %110
  %113 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.60) #9
  br label %213

114:                                              ; preds = %109, %110, %104, %105, %97, %98, %90, %91
  %.str.56.sink = phi ptr [ @.str.52, %91 ], [ @.str.52, %90 ], [ @.str.56, %98 ], [ @.str.56, %97 ], [ @.str.58, %105 ], [ @.str.58, %104 ], [ @.str.60, %110 ], [ @.str.60, %109 ]
  %115 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) %.str.56.sink) #9
  %116 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @.str.205) #9
  %.not189 = icmp eq ptr %2, null
  br i1 %.not189, label %122, label %117

117:                                              ; preds = %114
  %char0190 = load i8, ptr %2, align 1
  %.not191 = icmp eq i8 %char0190, 0
  br i1 %.not191, label %122, label %118

118:                                              ; preds = %117
  %119 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @.str.206) #9
  %120 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) %2) #9
  %121 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @.str.92) #9
  br label %122

122:                                              ; preds = %118, %117, %114
  %123 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @.str.207) #9
  br i1 %.not156, label %128, label %124

124:                                              ; preds = %122
  %char0192 = load i8, ptr %0, align 1
  %.not193 = icmp eq i8 %char0192, 0
  br i1 %.not193, label %128, label %125

125:                                              ; preds = %124
  %126 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) %0) #9
  %127 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @.str.90) #9
  br label %128

128:                                              ; preds = %125, %124, %122
  br i1 %.not157, label %132, label %129

129:                                              ; preds = %128
  %char0194 = load i8, ptr %1, align 1
  %.not195 = icmp eq i8 %char0194, 0
  br i1 %.not195, label %132, label %130

130:                                              ; preds = %129
  %131 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) %1) #9
  br label %132

132:                                              ; preds = %130, %129, %128
  %133 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @.str.46) #9
  br label %204

134:                                              ; preds = %85
  %135 = tail call noundef i32 @_ZL11perlPresentv()
  %136 = icmp sgt i32 %135, 1
  br i1 %136, label %137, label %147

137:                                              ; preds = %134
  br i1 %.not156, label %142, label %138

138:                                              ; preds = %137
  %139 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #10
  %.not181 = icmp eq i32 %139, 0
  br i1 %.not181, label %140, label %142

140:                                              ; preds = %138
  %141 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.175) #9
  br label %213

142:                                              ; preds = %138, %137
  %143 = phi ptr [ %0, %138 ], [ @.str.177, %137 ]
  %.not182 = icmp eq ptr %2, null
  %144 = select i1 %.not182, ptr @.str.177, ptr %2
  %145 = select i1 %.not157, ptr @.str.177, ptr %1
  %146 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @.str.176, ptr noundef nonnull %144, ptr noundef nonnull %143, ptr noundef nonnull %145) #9
  br label %204

147:                                              ; preds = %134
  %148 = tail call noundef i32 @_ZL17pythonDbusPresentv()
  %.not164 = icmp eq i32 %148, 0
  br i1 %.not164, label %176, label %149

149:                                              ; preds = %147
  br i1 %.not156, label %154, label %150

150:                                              ; preds = %149
  %151 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #10
  %.not173 = icmp eq i32 %151, 0
  br i1 %.not173, label %152, label %154

152:                                              ; preds = %150
  %153 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.168) #9
  br label %213

154:                                              ; preds = %150, %149
  %155 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @_ZL11gPythonName) #9
  %156 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @.str.169) #9
  %157 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @.str.170) #9
  %158 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @.str.171) #9
  %159 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @.str.172) #9
  %.not174 = icmp eq ptr %2, null
  br i1 %.not174, label %163, label %160

160:                                              ; preds = %154
  %char0175 = load i8, ptr %2, align 1
  %.not176 = icmp eq i8 %char0175, 0
  br i1 %.not176, label %163, label %161

161:                                              ; preds = %160
  %162 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) %2) #9
  br label %163

163:                                              ; preds = %161, %160, %154
  %164 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @.str.173) #9
  br i1 %.not156, label %168, label %165

165:                                              ; preds = %163
  %char0177 = load i8, ptr %0, align 1
  %.not178 = icmp eq i8 %char0177, 0
  br i1 %.not178, label %168, label %166

166:                                              ; preds = %165
  %167 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) %0) #9
  br label %168

168:                                              ; preds = %166, %165, %163
  %169 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @.str.173) #9
  br i1 %.not157, label %174, label %170

170:                                              ; preds = %168
  %char0179 = load i8, ptr %1, align 1
  %.not180 = icmp eq i8 %char0179, 0
  br i1 %.not180, label %174, label %171

171:                                              ; preds = %170
  %172 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.0143215224) #10
  %173 = getelementptr inbounds i8, ptr %.0143215224, i64 %172
  tail call void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef nonnull %1, ptr noundef nonnull @.str.90, ptr noundef nonnull @.str.91, ptr noundef %173)
  br label %174

174:                                              ; preds = %171, %170, %168
  %175 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @.str.174) #9
  br label %204

176:                                              ; preds = %147
  %177 = tail call noundef i32 @_ZL17notifysendPresentv()
  %.not165 = icmp eq i32 %177, 0
  br i1 %.not165, label %202, label %178

178:                                              ; preds = %176
  br i1 %.not156, label %183, label %179

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

181:                                              ; preds = %179
  %182 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.178) #9
  br label %213

183:                                              ; preds = %179, %178
  %184 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @.str.179) #9
  %.not167 = icmp eq ptr %2, null
  br i1 %.not167, label %190, label %185

185:                                              ; preds = %183
  %char0 = load i8, ptr %2, align 1
  %.not168 = icmp eq i8 %char0, 0
  br i1 %.not168, label %190, label %186

186:                                              ; preds = %185
  %187 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @.str.180) #9
  %188 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) %2) #9
  %189 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @.str.92) #9
  br label %190

190:                                              ; preds = %186, %185, %183
  %191 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @.str.46) #9
  br i1 %.not156, label %196, label %192

192:                                              ; preds = %190
  %char0169 = load i8, ptr %0, align 1
  %.not170 = icmp eq i8 %char0169, 0
  br i1 %.not170, label %196, label %193

193:                                              ; preds = %192
  %194 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) %0) #9
  %195 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @.str.181) #9
  br label %196

196:                                              ; preds = %193, %192, %190
  br i1 %.not157, label %200, label %197

197:                                              ; preds = %196
  %char0171 = load i8, ptr %1, align 1
  %.not172 = icmp eq i8 %char0171, 0
  br i1 %.not172, label %200, label %198

198:                                              ; preds = %197
  call void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef nonnull %1, ptr noundef nonnull @.str.182, ptr noundef nonnull @.str.183, ptr noundef nonnull %4)
  call void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef nonnull %1, ptr noundef nonnull @.str.90, ptr noundef nonnull @.str.181, ptr noundef nonnull %4)
  call void @_ZL13replaceSubStrPKcS0_S0_Pc(ptr noundef nonnull %1, ptr noundef nonnull @.str.184, ptr noundef nonnull @.str.185, ptr noundef nonnull %4)
  %199 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) %4) #9
  br label %200

200:                                              ; preds = %198, %197, %196
  %201 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.0143215224, ptr noundef nonnull dereferenceable(1) @.str.47) #9
  br label %204

202:                                              ; preds = %176
  %203 = tail call i32 @tinyfd_messageBox(ptr noundef %0, ptr noundef %1, ptr noundef nonnull @.str.167, ptr noundef %2, i32 noundef 0)
  br label %213

204:                                              ; preds = %76, %142, %200, %174, %132, %46, %49
  %.0143214 = phi ptr [ %.0143215223228, %76 ], [ %.0143215224, %142 ], [ %.0143215224, %200 ], [ %.0143215224, %174 ], [ %.0143215224, %132 ], [ %.0143213219, %46 ], [ %.0143213219, %49 ]
  %205 = load i32, ptr @tinyfd_verbose, align 4, !tbaa !5
  %.not209 = icmp eq i32 %205, 0
  br i1 %.not209, label %208, label %206

206:                                              ; preds = %204
  %207 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, ptr noundef %.0143214)
  br label %208

208:                                              ; preds = %206, %204
  %209 = call noalias ptr @popen(ptr noundef %.0143214, ptr noundef nonnull @.str.9)
  %.not210 = icmp eq ptr %209, null
  br i1 %.not210, label %210, label %211

210:                                              ; preds = %208
  call void @free(ptr noundef %.0143214) #9
  br label %213

211:                                              ; preds = %208
  %212 = call i32 @pclose(ptr noundef nonnull %209)
  call void @free(ptr noundef %.0143214) #9
  br label %213

213:                                              ; preds = %211, %210, %202, %181, %152, %140, %112, %107, %100, %93, %56, %27, %6
  %.0 = phi i32 [ %7, %6 ], [ 1, %211 ], [ 0, %210 ], [ 1, %27 ], [ 1, %56 ], [ 1, %93 ], [ 1, %100 ], [ 1, %107 ], [ 1, %112 ], [ 1, %140 ], [ 1, %152 ], [ 1, %181 ], [ %203, %202 ]
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %4) #9
  ret i32 %.0
}

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 = { 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 #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass