; 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_silent = 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.15 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [27 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.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.55 = external hidden unnamed_addr constant [75 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.66 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [14 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.76 = external hidden unnamed_addr constant [120 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.92 = external hidden unnamed_addr constant [2 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.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.129 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.181 = external hidden unnamed_addr constant [4 x i8], align 1
@_ZZ21tinyfd_saveFileDialogE5lBuff = external hidden global [1024 x i8], align 16
@.str.255 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.256 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.257 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.258 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.259 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.260 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.261 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.262 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.263 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.264 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.265 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.266 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.267 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.268 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.269 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.270 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.271 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.272 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.273 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.274 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.275 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.276 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.277 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.278 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.279 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.280 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.281 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.282 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.283 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.284 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.285 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.286 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.287 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.288 = 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: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #1

; 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 @_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() #5

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @tinyfd_inputBox(ptr noundef, ptr noundef, ptr noundef) #3

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

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

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

25:                                               ; preds = %22
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = call i32 @strcmp(ptr noundef %26, ptr noundef @.str.10) #7
  %28 = icmp ne i32 %27, 0
  br i1 %28, label %31, label %29

29:                                               ; preds = %25
  %30 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.11) #6
  store ptr inttoptr (i64 1 to ptr), ptr %6, align 8
  store i32 1, ptr %19, align 4
  br label %890

31:                                               ; preds = %25, %22
  %32 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %33 = call ptr @strcpy(ptr noundef %32, ptr noundef @.str.12) #6
  %34 = call noundef i32 @_ZL12osx9orBetterv()
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %39, label %36

36:                                               ; preds = %31
  %37 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %38 = call ptr @strcat(ptr noundef %37, ptr noundef @.str.255) #6
  br label %39

39:                                               ; preds = %36, %31
  %40 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %41 = call ptr @strcat(ptr noundef %40, ptr noundef @.str.256) #6
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %56

44:                                               ; preds = %39
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = call i64 @strlen(ptr noundef %45) #7
  %47 = icmp ne i64 %46, 0
  br i1 %47, label %48, label %56

48:                                               ; preds = %44
  %49 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %50 = call ptr @strcat(ptr noundef %49, ptr noundef @.str.257) #6
  %51 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = call ptr @strcat(ptr noundef %51, ptr noundef %52) #6
  %54 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %55 = call ptr @strcat(ptr noundef %54, ptr noundef @.str.15) #6
  br label %56

56:                                               ; preds = %48, %44, %39
  %57 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = call noundef ptr @_ZL24getPathWithoutFinalSlashPcPKc(ptr noundef %57, ptr noundef %58)
  %60 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %61 = call i64 @strlen(ptr noundef %60) #7
  %62 = icmp ne i64 %61, 0
  br i1 %62, label %63, label %71

63:                                               ; preds = %56
  %64 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %65 = call ptr @strcat(ptr noundef %64, ptr noundef @.str.258) #6
  %66 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %67 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %68 = call ptr @strcat(ptr noundef %66, ptr noundef %67) #6
  %69 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %70 = call ptr @strcat(ptr noundef %69, ptr noundef @.str.15) #6
  br label %71

71:                                               ; preds = %63, %56
  %72 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = call noundef ptr @_ZL11getLastNamePcPKc(ptr noundef %72, ptr noundef %73)
  %75 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %76 = call i64 @strlen(ptr noundef %75) #7
  %77 = icmp ne i64 %76, 0
  br i1 %77, label %78, label %86

78:                                               ; preds = %71
  %79 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %80 = call ptr @strcat(ptr noundef %79, ptr noundef @.str.259) #6
  %81 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %82 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %83 = call ptr @strcat(ptr noundef %81, ptr noundef %82) #6
  %84 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %85 = call ptr @strcat(ptr noundef %84, ptr noundef @.str.15) #6
  br label %86

86:                                               ; preds = %78, %71
  %87 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %88 = call ptr @strcat(ptr noundef %87, ptr noundef @.str.35) #6
  %89 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %90 = call ptr @strcat(ptr noundef %89, ptr noundef @.str.37) #6
  %91 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %92 = call ptr @strcat(ptr noundef %91, ptr noundef @.str.39) #6
  %93 = call noundef i32 @_ZL12osx9orBetterv()
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %98, label %95

95:                                               ; preds = %86
  %96 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %97 = call ptr @strcat(ptr noundef %96, ptr noundef @.str.40) #6
  br label %98

98:                                               ; preds = %95, %86
  br label %837

99:                                               ; preds = %5
  %100 = call noundef i32 @_ZL14kdialogPresentv()
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %203

102:                                              ; preds = %99
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = icmp ne ptr %103, null
  br i1 %104, label %105, label %111

105:                                              ; preds = %102
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = call i32 @strcmp(ptr noundef %106, ptr noundef @.str.10) #7
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %111, label %109

109:                                              ; preds = %105
  %110 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.41) #6
  store ptr inttoptr (i64 1 to ptr), ptr %6, align 8
  store i32 1, ptr %19, align 4
  br label %890

111:                                              ; preds = %105, %102
  %112 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %113 = call ptr @strcpy(ptr noundef %112, ptr noundef @.str.41) #6
  %114 = call noundef i32 @_ZL14kdialogPresentv()
  %115 = icmp eq i32 %114, 2
  br i1 %115, label %116, label %119

116:                                              ; preds = %111
  %117 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %118 = call ptr @strcat(ptr noundef %117, ptr noundef @.str.42) #6
  br label %119

119:                                              ; preds = %116, %111
  %120 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %121 = call ptr @strcat(ptr noundef %120, ptr noundef @.str.260) #6
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = icmp ne ptr %122, null
  br i1 %123, label %124, label %145

124:                                              ; preds = %119
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = call i64 @strlen(ptr noundef %125) #7
  %127 = icmp ne i64 %126, 0
  br i1 %127, label %128, label %145

128:                                              ; preds = %124
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = getelementptr inbounds i8, ptr %129, i64 0
  %131 = load i8, ptr %130, align 1, !tbaa !11
  %132 = sext i8 %131 to i32
  %133 = icmp ne i32 %132, 47
  br i1 %133, label %134, label %137

134:                                              ; preds = %128
  %135 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %136 = call ptr @strcat(ptr noundef %135, ptr noundef @.str.261) #6
  br label %137

137:                                              ; preds = %134, %128
  %138 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %139 = call ptr @strcat(ptr noundef %138, ptr noundef @.str.47) #6
  %140 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = call ptr @strcat(ptr noundef %140, ptr noundef %141) #6
  %143 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %144 = call ptr @strcat(ptr noundef %143, ptr noundef @.str.47) #6
  br label %148

145:                                              ; preds = %124, %119
  %146 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %147 = call ptr @strcat(ptr noundef %146, ptr noundef @.str.261) #6
  br label %148

148:                                              ; preds = %145, %137
  %149 = load i32, ptr %9, align 4, !tbaa !9
  %150 = icmp sgt i32 %149, 0
  br i1 %150, label %151, label %187

151:                                              ; preds = %148
  %152 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %153 = call ptr @strcat(ptr noundef %152, ptr noundef @.str.46) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %154

154:                                              ; preds = %168, %151
  %155 = load i32, ptr %14, align 4, !tbaa !9
  %156 = load i32, ptr %9, align 4, !tbaa !9
  %157 = icmp slt i32 %155, %156
  br i1 %157, label %158, label %171

158:                                              ; preds = %154
  %159 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %160 = load ptr, ptr %10, align 8, !tbaa !5
  %161 = load i32, ptr %14, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds ptr, ptr %160, i64 %162
  %164 = load ptr, ptr %163, align 8, !tbaa !5
  %165 = call ptr @strcat(ptr noundef %159, ptr noundef %164) #6
  %166 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %167 = call ptr @strcat(ptr noundef %166, ptr noundef @.str.125) #6
  br label %168

168:                                              ; preds = %158
  %169 = load i32, ptr %14, align 4, !tbaa !9
  %170 = add nsw i32 %169, 1
  store i32 %170, ptr %14, align 4, !tbaa !9
  br label %154, !llvm.loop !12

171:                                              ; preds = %154
  %172 = load ptr, ptr %11, align 8, !tbaa !5
  %173 = icmp ne ptr %172, null
  br i1 %173, label %174, label %184

174:                                              ; preds = %171
  %175 = load ptr, ptr %11, align 8, !tbaa !5
  %176 = call i64 @strlen(ptr noundef %175) #7
  %177 = icmp ne i64 %176, 0
  br i1 %177, label %178, label %184

178:                                              ; preds = %174
  %179 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %180 = call ptr @strcat(ptr noundef %179, ptr noundef @.str.181) #6
  %181 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %182 = load ptr, ptr %11, align 8, !tbaa !5
  %183 = call ptr @strcat(ptr noundef %181, ptr noundef %182) #6
  br label %184

184:                                              ; preds = %178, %174, %171
  %185 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %186 = call ptr @strcat(ptr noundef %185, ptr noundef @.str.47) #6
  br label %187

187:                                              ; preds = %184, %148
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  %189 = icmp ne ptr %188, null
  br i1 %189, label %190, label %202

190:                                              ; preds = %187
  %191 = load ptr, ptr %7, align 8, !tbaa !5
  %192 = call i64 @strlen(ptr noundef %191) #7
  %193 = icmp ne i64 %192, 0
  br i1 %193, label %194, label %202

194:                                              ; preds = %190
  %195 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %196 = call ptr @strcat(ptr noundef %195, ptr noundef @.str.49) #6
  %197 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  %199 = call ptr @strcat(ptr noundef %197, ptr noundef %198) #6
  %200 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %201 = call ptr @strcat(ptr noundef %200, ptr noundef @.str.47) #6
  br label %202

202:                                              ; preds = %194, %190, %187
  br label %836

203:                                              ; preds = %99
  %204 = call noundef i32 @_ZL13zenityPresentv()
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %215, label %206

206:                                              ; preds = %203
  %207 = call noundef i32 @_ZL17matedialogPresentv()
  %208 = icmp ne i32 %207, 0
  br i1 %208, label %215, label %209

209:                                              ; preds = %206
  %210 = call noundef i32 @_ZL20shellementaryPresentv()
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %215, label %212

212:                                              ; preds = %209
  %213 = call noundef i32 @_ZL12qarmaPresentv()
  %214 = icmp ne i32 %213, 0
  br i1 %214, label %215, label %367

215:                                              ; preds = %212, %209, %206, %203
  %216 = call noundef i32 @_ZL13zenityPresentv()
  %217 = icmp ne i32 %216, 0
  br i1 %217, label %218, label %239

218:                                              ; preds = %215
  %219 = load ptr, ptr %7, align 8, !tbaa !5
  %220 = icmp ne ptr %219, null
  br i1 %220, label %221, label %227

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

225:                                              ; preds = %221
  %226 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.52) #6
  store ptr inttoptr (i64 1 to ptr), ptr %6, align 8
  store i32 1, ptr %19, align 4
  br label %890

227:                                              ; preds = %221, %218
  %228 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %229 = call ptr @strcpy(ptr noundef %228, ptr noundef @.str.52) #6
  %230 = call noundef i32 @_ZL14zenity3Presentv()
  %231 = icmp sge i32 %230, 4
  br i1 %231, label %232, label %238

232:                                              ; preds = %227
  %233 = call ptr @getenv(ptr noundef @.str.54) #6
  %234 = icmp ne ptr %233, null
  br i1 %234, label %238, label %235

235:                                              ; preds = %232
  %236 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %237 = call ptr @strcat(ptr noundef %236, ptr noundef @.str.55) #6
  br label %238

238:                                              ; preds = %235, %232, %227
  br label %289

239:                                              ; preds = %215
  %240 = call noundef i32 @_ZL17matedialogPresentv()
  %241 = icmp ne i32 %240, 0
  br i1 %241, label %242, label %254

242:                                              ; preds = %239
  %243 = load ptr, ptr %7, align 8, !tbaa !5
  %244 = icmp ne ptr %243, null
  br i1 %244, label %245, label %251

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

249:                                              ; preds = %245
  %250 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.56) #6
  store ptr inttoptr (i64 1 to ptr), ptr %6, align 8
  store i32 1, ptr %19, align 4
  br label %890

251:                                              ; preds = %245, %242
  %252 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %253 = call ptr @strcpy(ptr noundef %252, ptr noundef @.str.56) #6
  br label %288

254:                                              ; preds = %239
  %255 = call noundef i32 @_ZL20shellementaryPresentv()
  %256 = icmp ne i32 %255, 0
  br i1 %256, label %257, label %269

257:                                              ; preds = %254
  %258 = load ptr, ptr %7, align 8, !tbaa !5
  %259 = icmp ne ptr %258, null
  br i1 %259, label %260, label %266

260:                                              ; preds = %257
  %261 = load ptr, ptr %7, align 8, !tbaa !5
  %262 = call i32 @strcmp(ptr noundef %261, ptr noundef @.str.10) #7
  %263 = icmp ne i32 %262, 0
  br i1 %263, label %266, label %264

264:                                              ; preds = %260
  %265 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.58) #6
  store ptr inttoptr (i64 1 to ptr), ptr %6, align 8
  store i32 1, ptr %19, align 4
  br label %890

266:                                              ; preds = %260, %257
  %267 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %268 = call ptr @strcpy(ptr noundef %267, ptr noundef @.str.58) #6
  br label %287

269:                                              ; preds = %254
  %270 = load ptr, ptr %7, align 8, !tbaa !5
  %271 = icmp ne ptr %270, null
  br i1 %271, label %272, label %278

272:                                              ; preds = %269
  %273 = load ptr, ptr %7, align 8, !tbaa !5
  %274 = call i32 @strcmp(ptr noundef %273, ptr noundef @.str.10) #7
  %275 = icmp ne i32 %274, 0
  br i1 %275, label %278, label %276

276:                                              ; preds = %272
  %277 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.60) #6
  store ptr inttoptr (i64 1 to ptr), ptr %6, align 8
  store i32 1, ptr %19, align 4
  br label %890

278:                                              ; preds = %272, %269
  %279 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %280 = call ptr @strcpy(ptr noundef %279, ptr noundef @.str.60) #6
  %281 = call ptr @getenv(ptr noundef @.str.54) #6
  %282 = icmp ne ptr %281, null
  br i1 %282, label %286, label %283

283:                                              ; preds = %278
  %284 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %285 = call ptr @strcat(ptr noundef %284, ptr noundef @.str.42) #6
  br label %286

286:                                              ; preds = %283, %278
  br label %287

287:                                              ; preds = %286, %266
  br label %288

288:                                              ; preds = %287, %251
  br label %289

289:                                              ; preds = %288, %238
  %290 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %291 = call ptr @strcat(ptr noundef %290, ptr noundef @.str.262) #6
  %292 = load ptr, ptr %7, align 8, !tbaa !5
  %293 = icmp ne ptr %292, null
  br i1 %293, label %294, label %306

294:                                              ; preds = %289
  %295 = load ptr, ptr %7, align 8, !tbaa !5
  %296 = call i64 @strlen(ptr noundef %295) #7
  %297 = icmp ne i64 %296, 0
  br i1 %297, label %298, label %306

298:                                              ; preds = %294
  %299 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %300 = call ptr @strcat(ptr noundef %299, ptr noundef @.str.66) #6
  %301 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %302 = load ptr, ptr %7, align 8, !tbaa !5
  %303 = call ptr @strcat(ptr noundef %301, ptr noundef %302) #6
  %304 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %305 = call ptr @strcat(ptr noundef %304, ptr noundef @.str.47) #6
  br label %306

306:                                              ; preds = %298, %294, %289
  %307 = load ptr, ptr %8, align 8, !tbaa !5
  %308 = icmp ne ptr %307, null
  br i1 %308, label %309, label %321

309:                                              ; preds = %306
  %310 = load ptr, ptr %8, align 8, !tbaa !5
  %311 = call i64 @strlen(ptr noundef %310) #7
  %312 = icmp ne i64 %311, 0
  br i1 %312, label %313, label %321

313:                                              ; preds = %309
  %314 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %315 = call ptr @strcat(ptr noundef %314, ptr noundef @.str.263) #6
  %316 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %317 = load ptr, ptr %8, align 8, !tbaa !5
  %318 = call ptr @strcat(ptr noundef %316, ptr noundef %317) #6
  %319 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %320 = call ptr @strcat(ptr noundef %319, ptr noundef @.str.47) #6
  br label %321

321:                                              ; preds = %313, %309, %306
  %322 = load i32, ptr %9, align 4, !tbaa !9
  %323 = icmp sgt i32 %322, 0
  br i1 %323, label %324, label %360

324:                                              ; preds = %321
  %325 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %326 = call ptr @strcat(ptr noundef %325, ptr noundef @.str.264) #6
  %327 = load ptr, ptr %11, align 8, !tbaa !5
  %328 = icmp ne ptr %327, null
  br i1 %328, label %329, label %339

329:                                              ; preds = %324
  %330 = load ptr, ptr %11, align 8, !tbaa !5
  %331 = call i64 @strlen(ptr noundef %330) #7
  %332 = icmp ne i64 %331, 0
  br i1 %332, label %333, label %339

333:                                              ; preds = %329
  %334 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %335 = load ptr, ptr %11, align 8, !tbaa !5
  %336 = call ptr @strcat(ptr noundef %334, ptr noundef %335) #6
  %337 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %338 = call ptr @strcat(ptr noundef %337, ptr noundef @.str.181) #6
  br label %339

339:                                              ; preds = %333, %329, %324
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %340

340:                                              ; preds = %354, %339
  %341 = load i32, ptr %14, align 4, !tbaa !9
  %342 = load i32, ptr %9, align 4, !tbaa !9
  %343 = icmp slt i32 %341, %342
  br i1 %343, label %344, label %357

344:                                              ; preds = %340
  %345 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %346 = load ptr, ptr %10, align 8, !tbaa !5
  %347 = load i32, ptr %14, align 4, !tbaa !9
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds ptr, ptr %346, i64 %348
  %350 = load ptr, ptr %349, align 8, !tbaa !5
  %351 = call ptr @strcat(ptr noundef %345, ptr noundef %350) #6
  %352 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %353 = call ptr @strcat(ptr noundef %352, ptr noundef @.str.125) #6
  br label %354

354:                                              ; preds = %344
  %355 = load i32, ptr %14, align 4, !tbaa !9
  %356 = add nsw i32 %355, 1
  store i32 %356, ptr %14, align 4, !tbaa !9
  br label %340, !llvm.loop !14

357:                                              ; preds = %340
  %358 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %359 = call ptr @strcat(ptr noundef %358, ptr noundef @.str.265) #6
  br label %360

360:                                              ; preds = %357, %321
  %361 = load i32, ptr @tinyfd_silent, align 4, !tbaa !9
  %362 = icmp ne i32 %361, 0
  br i1 %362, label %363, label %366

363:                                              ; preds = %360
  %364 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %365 = call ptr @strcat(ptr noundef %364, ptr noundef @.str.70) #6
  br label %366

366:                                              ; preds = %363, %360
  br label %835

367:                                              ; preds = %212
  %368 = call noundef i32 @_ZL14xdialogPresentv()
  %369 = icmp ne i32 %368, 0
  br i1 %369, label %520, label %370

370:                                              ; preds = %367
  %371 = call noundef i32 @_ZL15tkinter2Presentv()
  %372 = icmp ne i32 %371, 0
  br i1 %372, label %373, label %520

373:                                              ; preds = %370
  %374 = load ptr, ptr %7, align 8, !tbaa !5
  %375 = icmp ne ptr %374, null
  br i1 %375, label %376, label %382

376:                                              ; preds = %373
  %377 = load ptr, ptr %7, align 8, !tbaa !5
  %378 = call i32 @strcmp(ptr noundef %377, ptr noundef @.str.10) #7
  %379 = icmp ne i32 %378, 0
  br i1 %379, label %382, label %380

380:                                              ; preds = %376
  %381 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.73) #6
  store ptr inttoptr (i64 1 to ptr), ptr %6, align 8
  store i32 1, ptr %19, align 4
  br label %890

382:                                              ; preds = %376, %373
  %383 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %384 = call ptr @strcpy(ptr noundef %383, ptr noundef @_ZL12gPython2Name) #6
  %385 = call noundef i32 @_ZL17isTerminalRunningv()
  %386 = icmp ne i32 %385, 0
  br i1 %386, label %393, label %387

387:                                              ; preds = %382
  %388 = call noundef i32 @_ZL8isDarwinv()
  %389 = icmp ne i32 %388, 0
  br i1 %389, label %390, label %393

390:                                              ; preds = %387
  %391 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %392 = call ptr @strcat(ptr noundef %391, ptr noundef @.str.74) #6
  br label %393

393:                                              ; preds = %390, %387, %382
  %394 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %395 = call ptr @strcat(ptr noundef %394, ptr noundef @.str.266) #6
  %396 = call noundef i32 @_ZL8isDarwinv()
  %397 = icmp ne i32 %396, 0
  br i1 %397, label %398, label %401

398:                                              ; preds = %393
  %399 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %400 = call ptr @strcat(ptr noundef %399, ptr noundef @.str.76) #6
  br label %401

401:                                              ; preds = %398, %393
  %402 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %403 = call ptr @strcat(ptr noundef %402, ptr noundef @.str.267) #6
  %404 = load ptr, ptr %7, align 8, !tbaa !5
  %405 = icmp ne ptr %404, null
  br i1 %405, label %406, label %418

406:                                              ; preds = %401
  %407 = load ptr, ptr %7, align 8, !tbaa !5
  %408 = call i64 @strlen(ptr noundef %407) #7
  %409 = icmp ne i64 %408, 0
  br i1 %409, label %410, label %418

410:                                              ; preds = %406
  %411 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %412 = call ptr @strcat(ptr noundef %411, ptr noundef @.str.88) #6
  %413 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %414 = load ptr, ptr %7, align 8, !tbaa !5
  %415 = call ptr @strcat(ptr noundef %413, ptr noundef %414) #6
  %416 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %417 = call ptr @strcat(ptr noundef %416, ptr noundef @.str.87) #6
  br label %418

418:                                              ; preds = %410, %406, %401
  %419 = load ptr, ptr %8, align 8, !tbaa !5
  %420 = icmp ne ptr %419, null
  br i1 %420, label %421, label %456

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

425:                                              ; preds = %421
  %426 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %427 = load ptr, ptr %8, align 8, !tbaa !5
  %428 = call noundef ptr @_ZL24getPathWithoutFinalSlashPcPKc(ptr noundef %426, ptr noundef %427)
  %429 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %430 = call i64 @strlen(ptr noundef %429) #7
  %431 = icmp ne i64 %430, 0
  br i1 %431, label %432, label %440

432:                                              ; preds = %425
  %433 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %434 = call ptr @strcat(ptr noundef %433, ptr noundef @.str.268) #6
  %435 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %436 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %437 = call ptr @strcat(ptr noundef %435, ptr noundef %436) #6
  %438 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %439 = call ptr @strcat(ptr noundef %438, ptr noundef @.str.87) #6
  br label %440

440:                                              ; preds = %432, %425
  %441 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %442 = load ptr, ptr %8, align 8, !tbaa !5
  %443 = call noundef ptr @_ZL11getLastNamePcPKc(ptr noundef %441, ptr noundef %442)
  %444 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %445 = call i64 @strlen(ptr noundef %444) #7
  %446 = icmp ne i64 %445, 0
  br i1 %446, label %447, label %455

447:                                              ; preds = %440
  %448 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %449 = call ptr @strcat(ptr noundef %448, ptr noundef @.str.269) #6
  %450 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %451 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %452 = call ptr @strcat(ptr noundef %450, ptr noundef %451) #6
  %453 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %454 = call ptr @strcat(ptr noundef %453, ptr noundef @.str.87) #6
  br label %455

455:                                              ; preds = %447, %440
  br label %456

456:                                              ; preds = %455, %421, %418
  %457 = load i32, ptr %9, align 4, !tbaa !9
  %458 = icmp sgt i32 %457, 1
  br i1 %458, label %475, label %459

459:                                              ; preds = %456
  %460 = load i32, ptr %9, align 4, !tbaa !9
  %461 = icmp eq i32 %460, 1
  br i1 %461, label %462, label %517

462:                                              ; preds = %459
  %463 = load ptr, ptr %10, align 8, !tbaa !5
  %464 = getelementptr inbounds ptr, ptr %463, i64 0
  %465 = load ptr, ptr %464, align 8, !tbaa !5
  %466 = load ptr, ptr %10, align 8, !tbaa !5
  %467 = getelementptr inbounds ptr, ptr %466, i64 0
  %468 = load ptr, ptr %467, align 8, !tbaa !5
  %469 = call i64 @strlen(ptr noundef %468) #7
  %470 = sub i64 %469, 1
  %471 = getelementptr inbounds i8, ptr %465, i64 %470
  %472 = load i8, ptr %471, align 1, !tbaa !11
  %473 = sext i8 %472 to i32
  %474 = icmp ne i32 %473, 42
  br i1 %474, label %475, label %517

475:                                              ; preds = %462, %456
  %476 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %477 = call ptr @strcat(ptr noundef %476, ptr noundef @.str.270) #6
  %478 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %479 = call ptr @strcat(ptr noundef %478, ptr noundef @.str.271) #6
  %480 = load ptr, ptr %11, align 8, !tbaa !5
  %481 = icmp ne ptr %480, null
  br i1 %481, label %482, label %490

482:                                              ; preds = %475
  %483 = load ptr, ptr %11, align 8, !tbaa !5
  %484 = call i64 @strlen(ptr noundef %483) #7
  %485 = icmp ne i64 %484, 0
  br i1 %485, label %486, label %490

486:                                              ; preds = %482
  %487 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %488 = load ptr, ptr %11, align 8, !tbaa !5
  %489 = call ptr @strcat(ptr noundef %487, ptr noundef %488) #6
  br label %490

490:                                              ; preds = %486, %482, %475
  %491 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %492 = call ptr @strcat(ptr noundef %491, ptr noundef @.str.272) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %493

493:                                              ; preds = %509, %490
  %494 = load i32, ptr %14, align 4, !tbaa !9
  %495 = load i32, ptr %9, align 4, !tbaa !9
  %496 = icmp slt i32 %494, %495
  br i1 %496, label %497, label %512

497:                                              ; preds = %493
  %498 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %499 = call ptr @strcat(ptr noundef %498, ptr noundef @.str.92) #6
  %500 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %501 = load ptr, ptr %10, align 8, !tbaa !5
  %502 = load i32, ptr %14, align 4, !tbaa !9
  %503 = sext i32 %502 to i64
  %504 = getelementptr inbounds ptr, ptr %501, i64 %503
  %505 = load ptr, ptr %504, align 8, !tbaa !5
  %506 = call ptr @strcat(ptr noundef %500, ptr noundef %505) #6
  %507 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %508 = call ptr @strcat(ptr noundef %507, ptr noundef @.str.87) #6
  br label %509

509:                                              ; preds = %497
  %510 = load i32, ptr %14, align 4, !tbaa !9
  %511 = add nsw i32 %510, 1
  store i32 %511, ptr %14, align 4, !tbaa !9
  br label %493, !llvm.loop !15

512:                                              ; preds = %493
  %513 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %514 = call ptr @strcat(ptr noundef %513, ptr noundef @.str.273) #6
  %515 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %516 = call ptr @strcat(ptr noundef %515, ptr noundef @.str.274) #6
  br label %517

517:                                              ; preds = %512, %462, %459
  %518 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %519 = call ptr @strcat(ptr noundef %518, ptr noundef @.str.275) #6
  br label %834

520:                                              ; preds = %370, %367
  %521 = call noundef i32 @_ZL14xdialogPresentv()
  %522 = icmp ne i32 %521, 0
  br i1 %522, label %658, label %523

523:                                              ; preds = %520
  %524 = call noundef i32 @_ZL15tkinter3Presentv()
  %525 = icmp ne i32 %524, 0
  br i1 %525, label %526, label %658

526:                                              ; preds = %523
  %527 = load ptr, ptr %7, align 8, !tbaa !5
  %528 = icmp ne ptr %527, null
  br i1 %528, label %529, label %535

529:                                              ; preds = %526
  %530 = load ptr, ptr %7, align 8, !tbaa !5
  %531 = call i32 @strcmp(ptr noundef %530, ptr noundef @.str.10) #7
  %532 = icmp ne i32 %531, 0
  br i1 %532, label %535, label %533

533:                                              ; preds = %529
  %534 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.95) #6
  store ptr inttoptr (i64 1 to ptr), ptr %6, align 8
  store i32 1, ptr %19, align 4
  br label %890

535:                                              ; preds = %529, %526
  %536 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %537 = call ptr @strcpy(ptr noundef %536, ptr noundef @_ZL12gPython3Name) #6
  %538 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %539 = call ptr @strcat(ptr noundef %538, ptr noundef @.str.276) #6
  %540 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %541 = call ptr @strcat(ptr noundef %540, ptr noundef @.str.277) #6
  %542 = load ptr, ptr %7, align 8, !tbaa !5
  %543 = icmp ne ptr %542, null
  br i1 %543, label %544, label %556

544:                                              ; preds = %535
  %545 = load ptr, ptr %7, align 8, !tbaa !5
  %546 = call i64 @strlen(ptr noundef %545) #7
  %547 = icmp ne i64 %546, 0
  br i1 %547, label %548, label %556

548:                                              ; preds = %544
  %549 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %550 = call ptr @strcat(ptr noundef %549, ptr noundef @.str.88) #6
  %551 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %552 = load ptr, ptr %7, align 8, !tbaa !5
  %553 = call ptr @strcat(ptr noundef %551, ptr noundef %552) #6
  %554 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %555 = call ptr @strcat(ptr noundef %554, ptr noundef @.str.87) #6
  br label %556

556:                                              ; preds = %548, %544, %535
  %557 = load ptr, ptr %8, align 8, !tbaa !5
  %558 = icmp ne ptr %557, null
  br i1 %558, label %559, label %594

559:                                              ; preds = %556
  %560 = load ptr, ptr %8, align 8, !tbaa !5
  %561 = call i64 @strlen(ptr noundef %560) #7
  %562 = icmp ne i64 %561, 0
  br i1 %562, label %563, label %594

563:                                              ; preds = %559
  %564 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %565 = load ptr, ptr %8, align 8, !tbaa !5
  %566 = call noundef ptr @_ZL24getPathWithoutFinalSlashPcPKc(ptr noundef %564, ptr noundef %565)
  %567 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %568 = call i64 @strlen(ptr noundef %567) #7
  %569 = icmp ne i64 %568, 0
  br i1 %569, label %570, label %578

570:                                              ; preds = %563
  %571 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %572 = call ptr @strcat(ptr noundef %571, ptr noundef @.str.268) #6
  %573 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %574 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %575 = call ptr @strcat(ptr noundef %573, ptr noundef %574) #6
  %576 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %577 = call ptr @strcat(ptr noundef %576, ptr noundef @.str.87) #6
  br label %578

578:                                              ; preds = %570, %563
  %579 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %580 = load ptr, ptr %8, align 8, !tbaa !5
  %581 = call noundef ptr @_ZL11getLastNamePcPKc(ptr noundef %579, ptr noundef %580)
  %582 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %583 = call i64 @strlen(ptr noundef %582) #7
  %584 = icmp ne i64 %583, 0
  br i1 %584, label %585, label %593

585:                                              ; preds = %578
  %586 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %587 = call ptr @strcat(ptr noundef %586, ptr noundef @.str.269) #6
  %588 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %589 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %590 = call ptr @strcat(ptr noundef %588, ptr noundef %589) #6
  %591 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %592 = call ptr @strcat(ptr noundef %591, ptr noundef @.str.87) #6
  br label %593

593:                                              ; preds = %585, %578
  br label %594

594:                                              ; preds = %593, %559, %556
  %595 = load i32, ptr %9, align 4, !tbaa !9
  %596 = icmp sgt i32 %595, 1
  br i1 %596, label %613, label %597

597:                                              ; preds = %594
  %598 = load i32, ptr %9, align 4, !tbaa !9
  %599 = icmp eq i32 %598, 1
  br i1 %599, label %600, label %655

600:                                              ; preds = %597
  %601 = load ptr, ptr %10, align 8, !tbaa !5
  %602 = getelementptr inbounds ptr, ptr %601, i64 0
  %603 = load ptr, ptr %602, align 8, !tbaa !5
  %604 = load ptr, ptr %10, align 8, !tbaa !5
  %605 = getelementptr inbounds ptr, ptr %604, i64 0
  %606 = load ptr, ptr %605, align 8, !tbaa !5
  %607 = call i64 @strlen(ptr noundef %606) #7
  %608 = sub i64 %607, 1
  %609 = getelementptr inbounds i8, ptr %603, i64 %608
  %610 = load i8, ptr %609, align 1, !tbaa !11
  %611 = sext i8 %610 to i32
  %612 = icmp ne i32 %611, 42
  br i1 %612, label %613, label %655

613:                                              ; preds = %600, %594
  %614 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %615 = call ptr @strcat(ptr noundef %614, ptr noundef @.str.270) #6
  %616 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %617 = call ptr @strcat(ptr noundef %616, ptr noundef @.str.271) #6
  %618 = load ptr, ptr %11, align 8, !tbaa !5
  %619 = icmp ne ptr %618, null
  br i1 %619, label %620, label %628

620:                                              ; preds = %613
  %621 = load ptr, ptr %11, align 8, !tbaa !5
  %622 = call i64 @strlen(ptr noundef %621) #7
  %623 = icmp ne i64 %622, 0
  br i1 %623, label %624, label %628

624:                                              ; preds = %620
  %625 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %626 = load ptr, ptr %11, align 8, !tbaa !5
  %627 = call ptr @strcat(ptr noundef %625, ptr noundef %626) #6
  br label %628

628:                                              ; preds = %624, %620, %613
  %629 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %630 = call ptr @strcat(ptr noundef %629, ptr noundef @.str.272) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %631

631:                                              ; preds = %647, %628
  %632 = load i32, ptr %14, align 4, !tbaa !9
  %633 = load i32, ptr %9, align 4, !tbaa !9
  %634 = icmp slt i32 %632, %633
  br i1 %634, label %635, label %650

635:                                              ; preds = %631
  %636 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %637 = call ptr @strcat(ptr noundef %636, ptr noundef @.str.92) #6
  %638 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %639 = load ptr, ptr %10, align 8, !tbaa !5
  %640 = load i32, ptr %14, align 4, !tbaa !9
  %641 = sext i32 %640 to i64
  %642 = getelementptr inbounds ptr, ptr %639, i64 %641
  %643 = load ptr, ptr %642, align 8, !tbaa !5
  %644 = call ptr @strcat(ptr noundef %638, ptr noundef %643) #6
  %645 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %646 = call ptr @strcat(ptr noundef %645, ptr noundef @.str.87) #6
  br label %647

647:                                              ; preds = %635
  %648 = load i32, ptr %14, align 4, !tbaa !9
  %649 = add nsw i32 %648, 1
  store i32 %649, ptr %14, align 4, !tbaa !9
  br label %631, !llvm.loop !16

650:                                              ; preds = %631
  %651 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %652 = call ptr @strcat(ptr noundef %651, ptr noundef @.str.273) #6
  %653 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %654 = call ptr @strcat(ptr noundef %653, ptr noundef @.str.274) #6
  br label %655

655:                                              ; preds = %650, %600, %597
  %656 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %657 = call ptr @strcat(ptr noundef %656, ptr noundef @.str.278) #6
  br label %833

658:                                              ; preds = %523, %520
  %659 = call noundef i32 @_ZL14xdialogPresentv()
  %660 = icmp ne i32 %659, 0
  br i1 %660, label %664, label %661

661:                                              ; preds = %658
  %662 = call noundef ptr @_ZL10dialogNamev()
  %663 = icmp ne ptr %662, null
  br i1 %663, label %664, label %798

664:                                              ; preds = %661, %658
  %665 = call noundef i32 @_ZL14xdialogPresentv()
  %666 = icmp ne i32 %665, 0
  br i1 %666, label %667, label %679

667:                                              ; preds = %664
  %668 = load ptr, ptr %7, align 8, !tbaa !5
  %669 = icmp ne ptr %668, null
  br i1 %669, label %670, label %676

670:                                              ; preds = %667
  %671 = load ptr, ptr %7, align 8, !tbaa !5
  %672 = call i32 @strcmp(ptr noundef %671, ptr noundef @.str.10) #7
  %673 = icmp ne i32 %672, 0
  br i1 %673, label %676, label %674

674:                                              ; preds = %670
  %675 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.120) #6
  store ptr inttoptr (i64 1 to ptr), ptr %6, align 8
  store i32 1, ptr %19, align 4
  br label %890

676:                                              ; preds = %670, %667
  store i32 1, ptr %15, align 4, !tbaa !9
  %677 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %678 = call ptr @strcpy(ptr noundef %677, ptr noundef @.str.121) #6
  br label %715

679:                                              ; preds = %664
  %680 = call noundef i32 @_ZL17isTerminalRunningv()
  %681 = icmp ne i32 %680, 0
  br i1 %681, label %682, label %694

682:                                              ; preds = %679
  %683 = load ptr, ptr %7, align 8, !tbaa !5
  %684 = icmp ne ptr %683, null
  br i1 %684, label %685, label %691

685:                                              ; preds = %682
  %686 = load ptr, ptr %7, align 8, !tbaa !5
  %687 = call i32 @strcmp(ptr noundef %686, ptr noundef @.str.10) #7
  %688 = icmp ne i32 %687, 0
  br i1 %688, label %691, label %689

689:                                              ; preds = %685
  %690 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.122) #6
  store ptr null, ptr %6, align 8
  store i32 1, ptr %19, align 4
  br label %890

691:                                              ; preds = %685, %682
  %692 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %693 = call ptr @strcpy(ptr noundef %692, ptr noundef @.str.123) #6
  br label %714

694:                                              ; preds = %679
  %695 = load ptr, ptr %7, align 8, !tbaa !5
  %696 = icmp ne ptr %695, null
  br i1 %696, label %697, label %703

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

701:                                              ; preds = %697
  %702 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.122) #6
  store ptr null, ptr %6, align 8
  store i32 1, ptr %19, align 4
  br label %890

703:                                              ; preds = %697, %694
  store i32 1, ptr %16, align 4, !tbaa !9
  %704 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %705 = call noundef ptr @_ZL12terminalNamev()
  %706 = call ptr @strcpy(ptr noundef %704, ptr noundef %705) #6
  %707 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %708 = call ptr @strcat(ptr noundef %707, ptr noundef @.str.124) #6
  %709 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %710 = call noundef ptr @_ZL10dialogNamev()
  %711 = call ptr @strcat(ptr noundef %709, ptr noundef %710) #6
  %712 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %713 = call ptr @strcat(ptr noundef %712, ptr noundef @.str.125) #6
  br label %714

714:                                              ; preds = %703, %691
  br label %715

715:                                              ; preds = %714, %676
  %716 = load ptr, ptr %7, align 8, !tbaa !5
  %717 = icmp ne ptr %716, null
  br i1 %717, label %718, label %730

718:                                              ; preds = %715
  %719 = load ptr, ptr %7, align 8, !tbaa !5
  %720 = call i64 @strlen(ptr noundef %719) #7
  %721 = icmp ne i64 %720, 0
  br i1 %721, label %722, label %730

722:                                              ; preds = %718
  %723 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %724 = call ptr @strcat(ptr noundef %723, ptr noundef @.str.129) #6
  %725 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %726 = load ptr, ptr %7, align 8, !tbaa !5
  %727 = call ptr @strcat(ptr noundef %725, ptr noundef %726) #6
  %728 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %729 = call ptr @strcat(ptr noundef %728, ptr noundef @.str.15) #6
  br label %730

730:                                              ; preds = %722, %718, %715
  %731 = call noundef i32 @_ZL14xdialogPresentv()
  %732 = icmp ne i32 %731, 0
  br i1 %732, label %743, label %733

733:                                              ; preds = %730
  %734 = call noundef i32 @_ZL14gdialogPresentv()
  %735 = icmp ne i32 %734, 0
  br i1 %735, label %743, label %736

736:                                              ; preds = %733
  %737 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %738 = call ptr @strcat(ptr noundef %737, ptr noundef @.str.130) #6
  %739 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %740 = call ptr @strcat(ptr noundef %739, ptr noundef @.str.279) #6
  %741 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %742 = call ptr @strcat(ptr noundef %741, ptr noundef @.str.15) #6
  br label %743

743:                                              ; preds = %736, %733, %730
  %744 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %745 = call ptr @strcat(ptr noundef %744, ptr noundef @.str.280) #6
  %746 = load ptr, ptr %8, align 8, !tbaa !5
  %747 = icmp ne ptr %746, null
  br i1 %747, label %748, label %763

748:                                              ; preds = %743
  %749 = load ptr, ptr %8, align 8, !tbaa !5
  %750 = call i64 @strlen(ptr noundef %749) #7
  %751 = icmp ne i64 %750, 0
  br i1 %751, label %752, label %763

752:                                              ; preds = %748
  %753 = load ptr, ptr %8, align 8, !tbaa !5
  %754 = call noundef ptr @strchr(ptr noundef %753, i32 noundef 47) #7
  %755 = icmp ne ptr %754, null
  br i1 %755, label %759, label %756

756:                                              ; preds = %752
  %757 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %758 = call ptr @strcat(ptr noundef %757, ptr noundef @.str.281) #6
  br label %759

759:                                              ; preds = %756, %752
  %760 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %761 = load ptr, ptr %8, align 8, !tbaa !5
  %762 = call ptr @strcat(ptr noundef %760, ptr noundef %761) #6
  br label %779

763:                                              ; preds = %748, %743
  %764 = call noundef i32 @_ZL17isTerminalRunningv()
  %765 = icmp ne i32 %764, 0
  br i1 %765, label %775, label %766

766:                                              ; preds = %763
  %767 = load i32, ptr %15, align 4, !tbaa !9
  %768 = icmp ne i32 %767, 0
  br i1 %768, label %775, label %769

769:                                              ; preds = %766
  %770 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %771 = call ptr @getenv(ptr noundef @.str.282) #6
  %772 = call ptr @strcat(ptr noundef %770, ptr noundef %771) #6
  %773 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %774 = call ptr @strcat(ptr noundef %773, ptr noundef @.str.283) #6
  br label %778

775:                                              ; preds = %766, %763
  %776 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %777 = call ptr @strcat(ptr noundef %776, ptr noundef @.str.281) #6
  br label %778

778:                                              ; preds = %775, %769
  br label %779

779:                                              ; preds = %778, %759
  %780 = load i32, ptr %15, align 4, !tbaa !9
  %781 = icmp ne i32 %780, 0
  br i1 %781, label %782, label %785

782:                                              ; preds = %779
  %783 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %784 = call ptr @strcat(ptr noundef %783, ptr noundef @.str.284) #6
  br label %797

785:                                              ; preds = %779
  %786 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %787 = call ptr @strcat(ptr noundef %786, ptr noundef @.str.285) #6
  %788 = load i32, ptr %16, align 4, !tbaa !9
  %789 = icmp ne i32 %788, 0
  br i1 %789, label %790, label %793

790:                                              ; preds = %785
  %791 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %792 = call ptr @strcat(ptr noundef %791, ptr noundef @.str.286) #6
  br label %796

793:                                              ; preds = %785
  %794 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %795 = call ptr @strcat(ptr noundef %794, ptr noundef @.str.287) #6
  br label %796

796:                                              ; preds = %793, %790
  br label %797

797:                                              ; preds = %796, %782
  br label %832

798:                                              ; preds = %661
  %799 = load ptr, ptr %7, align 8, !tbaa !5
  %800 = icmp ne ptr %799, null
  br i1 %800, label %801, label %808

801:                                              ; preds = %798
  %802 = load ptr, ptr %7, align 8, !tbaa !5
  %803 = call i32 @strcmp(ptr noundef %802, ptr noundef @.str.10) #7
  %804 = icmp ne i32 %803, 0
  br i1 %804, label %808, label %805

805:                                              ; preds = %801
  %806 = load ptr, ptr %7, align 8, !tbaa !5
  %807 = call ptr @tinyfd_inputBox(ptr noundef %806, ptr noundef null, ptr noundef null)
  store ptr %807, ptr %6, align 8
  store i32 1, ptr %19, align 4
  br label %890

808:                                              ; preds = %801, %798
  %809 = load ptr, ptr %7, align 8, !tbaa !5
  %810 = call ptr @tinyfd_inputBox(ptr noundef %809, ptr noundef @.str.288, ptr noundef @.str.177)
  store ptr %810, ptr %17, align 8, !tbaa !5
  %811 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %812 = load ptr, ptr %17, align 8, !tbaa !5
  %813 = call noundef ptr @_ZL24getPathWithoutFinalSlashPcPKc(ptr noundef %811, ptr noundef %812)
  %814 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %815 = call i64 @strlen(ptr noundef %814) #7
  %816 = icmp ne i64 %815, 0
  br i1 %816, label %817, label %822

817:                                              ; preds = %808
  %818 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %819 = call noundef i32 @_ZL9dirExistsPKc(ptr noundef %818)
  %820 = icmp ne i32 %819, 0
  br i1 %820, label %822, label %821

821:                                              ; preds = %817
  store ptr null, ptr %6, align 8
  store i32 1, ptr %19, align 4
  br label %890

822:                                              ; preds = %817, %808
  %823 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %824 = load ptr, ptr %17, align 8, !tbaa !5
  %825 = call noundef ptr @_ZL11getLastNamePcPKc(ptr noundef %823, ptr noundef %824)
  %826 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %827 = call i64 @strlen(ptr noundef %826) #7
  %828 = icmp ne i64 %827, 0
  br i1 %828, label %830, label %829

829:                                              ; preds = %822
  store ptr null, ptr %6, align 8
  store i32 1, ptr %19, align 4
  br label %890

830:                                              ; preds = %822
  %831 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %831, ptr %6, align 8
  store i32 1, ptr %19, align 4
  br label %890

832:                                              ; preds = %797
  br label %833

833:                                              ; preds = %832, %655
  br label %834

834:                                              ; preds = %833, %517
  br label %835

835:                                              ; preds = %834, %366
  br label %836

836:                                              ; preds = %835, %202
  br label %837

837:                                              ; preds = %836, %98
  %838 = load i32, ptr @tinyfd_verbose, align 4, !tbaa !9
  %839 = icmp ne i32 %838, 0
  br i1 %839, label %840, label %843

840:                                              ; preds = %837
  %841 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %842 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %841)
  br label %843

843:                                              ; preds = %840, %837
  %844 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %845 = call noalias ptr @popen(ptr noundef %844, ptr noundef @.str.9)
  store ptr %845, ptr %18, align 8, !tbaa !5
  %846 = icmp ne ptr %845, null
  br i1 %846, label %848, label %847

847:                                              ; preds = %843
  store ptr null, ptr %6, align 8
  store i32 1, ptr %19, align 4
  br label %890

848:                                              ; preds = %843
  br label %849

849:                                              ; preds = %853, %848
  %850 = load ptr, ptr %18, align 8, !tbaa !5
  %851 = call ptr @fgets(ptr noundef @_ZZ21tinyfd_saveFileDialogE5lBuff, i32 noundef 1024, ptr noundef %850)
  %852 = icmp ne ptr %851, null
  br i1 %852, label %853, label %854

853:                                              ; preds = %849
  br label %849, !llvm.loop !17

854:                                              ; preds = %849
  %855 = load ptr, ptr %18, align 8, !tbaa !5
  %856 = call i32 @pclose(ptr noundef %855)
  %857 = call i64 @strlen(ptr noundef @_ZZ21tinyfd_saveFileDialogE5lBuff) #7
  %858 = sub i64 %857, 1
  %859 = getelementptr inbounds [1024 x i8], ptr @_ZZ21tinyfd_saveFileDialogE5lBuff, i64 0, i64 %858
  %860 = load i8, ptr %859, align 1, !tbaa !11
  %861 = sext i8 %860 to i32
  %862 = icmp eq i32 %861, 10
  br i1 %862, label %863, label %867

863:                                              ; preds = %854
  %864 = call i64 @strlen(ptr noundef @_ZZ21tinyfd_saveFileDialogE5lBuff) #7
  %865 = sub i64 %864, 1
  %866 = getelementptr inbounds [1024 x i8], ptr @_ZZ21tinyfd_saveFileDialogE5lBuff, i64 0, i64 %865
  store i8 0, ptr %866, align 1, !tbaa !11
  br label %867

867:                                              ; preds = %863, %854
  %868 = call i64 @strlen(ptr noundef @_ZZ21tinyfd_saveFileDialogE5lBuff) #7
  %869 = icmp ne i64 %868, 0
  br i1 %869, label %871, label %870

870:                                              ; preds = %867
  store ptr null, ptr %6, align 8
  store i32 1, ptr %19, align 4
  br label %890

871:                                              ; preds = %867
  %872 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %873 = call noundef ptr @_ZL24getPathWithoutFinalSlashPcPKc(ptr noundef %872, ptr noundef @_ZZ21tinyfd_saveFileDialogE5lBuff)
  %874 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %875 = call i64 @strlen(ptr noundef %874) #7
  %876 = icmp ne i64 %875, 0
  br i1 %876, label %877, label %882

877:                                              ; preds = %871
  %878 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %879 = call noundef i32 @_ZL9dirExistsPKc(ptr noundef %878)
  %880 = icmp ne i32 %879, 0
  br i1 %880, label %882, label %881

881:                                              ; preds = %877
  store ptr null, ptr %6, align 8
  store i32 1, ptr %19, align 4
  br label %890

882:                                              ; preds = %877, %871
  %883 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %884 = call noundef ptr @_ZL11getLastNamePcPKc(ptr noundef %883, ptr noundef @_ZZ21tinyfd_saveFileDialogE5lBuff)
  %885 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %886 = call noundef i32 @_ZL13filenameValidPKc(ptr noundef %885)
  %887 = icmp ne i32 %886, 0
  br i1 %887, label %889, label %888

888:                                              ; preds = %882
  store ptr null, ptr %6, align 8
  store i32 1, ptr %19, align 4
  br label %890

889:                                              ; preds = %882
  store ptr @_ZZ21tinyfd_saveFileDialogE5lBuff, ptr %6, align 8
  store i32 1, ptr %19, align 4
  br label %890

890:                                              ; preds = %889, %888, %881, %870, %847, %830, %829, %821, %805, %701, %689, %674, %533, %380, %276, %264, %249, %225, %109, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %12) #6
  %891 = load ptr, ptr %6, align 8
  ret ptr %891
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL24getPathWithoutFinalSlashPcPKc(ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL11getLastNamePcPKc(ptr noundef, ptr noundef) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL13filenameValidPKc(ptr noundef) #5

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 = { 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}


; 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_silent = 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.15 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [27 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.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.55 = external hidden unnamed_addr constant [75 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.66 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [14 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.76 = external hidden unnamed_addr constant [120 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.92 = external hidden unnamed_addr constant [2 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.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.129 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.181 = external hidden unnamed_addr constant [4 x i8], align 1
@_ZZ21tinyfd_saveFileDialogE5lBuff = external hidden global [1024 x i8], align 16
@.str.255 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.256 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.257 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.258 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.259 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.260 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.261 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.262 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.263 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.264 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.265 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.266 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.267 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.268 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.269 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.270 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.271 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.272 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.273 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.274 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.275 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.276 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.277 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.278 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.279 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.280 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.281 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.282 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.283 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.284 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.285 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.286 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.287 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.288 = 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 nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1

; 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 #5

; 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 #6

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @tinyfd_inputBox(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare noundef ptr @strchr(ptr noundef, i32 noundef) local_unnamed_addr #1

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

9:                                                ; preds = %5
  %.not239 = icmp eq ptr %0, null
  br i1 %.not239, label %14, label %10

10:                                               ; preds = %9
  %11 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #8
  %.not240 = icmp eq i32 %11, 0
  br i1 %.not240, label %12, label %14

12:                                               ; preds = %10
  %13 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.11) #7
  br label %379

14:                                               ; preds = %10, %9
  %15 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.12) #7
  %16 = call noundef i32 @_ZL12osx9orBetterv()
  %.not241 = icmp eq i32 %16, 0
  br i1 %.not241, label %17, label %19

17:                                               ; preds = %14
  %18 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.255) #7
  br label %19

19:                                               ; preds = %17, %14
  %20 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.256) #7
  br i1 %.not239, label %26, label %21

21:                                               ; preds = %19
  %char0242 = load i8, ptr %0, align 1
  %.not243 = icmp eq i8 %char0242, 0
  br i1 %.not243, label %26, label %22

22:                                               ; preds = %21
  %23 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.257) #7
  %24 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %0) #7
  %25 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.15) #7
  br label %26

26:                                               ; preds = %22, %21, %19
  %27 = call noundef ptr @_ZL24getPathWithoutFinalSlashPcPKc(ptr noundef nonnull %7, ptr noundef %1)
  %char0244 = load i8, ptr %7, align 16
  %.not245 = icmp eq i8 %char0244, 0
  br i1 %.not245, label %32, label %28

28:                                               ; preds = %26
  %29 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.258) #7
  %30 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %7) #7
  %31 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.15) #7
  br label %32

32:                                               ; preds = %28, %26
  %33 = call noundef ptr @_ZL11getLastNamePcPKc(ptr noundef nonnull %7, ptr noundef %1)
  %char0246 = load i8, ptr %7, align 16
  %.not247 = icmp eq i8 %char0246, 0
  br i1 %.not247, label %38, label %34

34:                                               ; preds = %32
  %35 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.259) #7
  %36 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %7) #7
  %37 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.15) #7
  br label %38

38:                                               ; preds = %34, %32
  %39 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.35) #7
  %40 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.37) #7
  %41 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.39) #7
  %42 = call noundef i32 @_ZL12osx9orBetterv()
  %.not248 = icmp eq i32 %42, 0
  br i1 %.not248, label %.sink.split284, label %356

43:                                               ; preds = %5
  %44 = tail call noundef i32 @_ZL14kdialogPresentv()
  %.not136 = icmp eq i32 %44, 0
  br i1 %.not136, label %83, label %45

45:                                               ; preds = %43
  %.not228 = icmp eq ptr %0, null
  br i1 %.not228, label %50, label %46

46:                                               ; preds = %45
  %47 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #8
  %.not229 = icmp eq i32 %47, 0
  br i1 %.not229, label %48, label %50

48:                                               ; preds = %46
  %49 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.41) #7
  br label %379

50:                                               ; preds = %46, %45
  %51 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.41) #7
  %52 = call noundef i32 @_ZL14kdialogPresentv()
  %53 = icmp eq i32 %52, 2
  br i1 %53, label %54, label %56

54:                                               ; preds = %50
  %55 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.42) #7
  br label %56

56:                                               ; preds = %54, %50
  %57 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.260) #7
  %.not230 = icmp eq ptr %1, null
  br i1 %.not230, label %64, label %58

58:                                               ; preds = %56
  %char0231 = load i8, ptr %1, align 1
  switch i8 %char0231, label %59 [
    i8 0, label %64
    i8 47, label %61
  ]

59:                                               ; preds = %58
  %60 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.261) #7
  br label %61

61:                                               ; preds = %58, %59
  %62 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.47) #7
  %63 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %1) #7
  br label %64

64:                                               ; preds = %56, %58, %61
  %.str.261.sink = phi ptr [ @.str.47, %61 ], [ @.str.261, %58 ], [ @.str.261, %56 ]
  %65 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %.str.261.sink) #7
  %66 = icmp sgt i32 %2, 0
  br i1 %66, label %67, label %81

67:                                               ; preds = %64
  %68 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.46) #7
  %wide.trip.count = zext nneg i32 %2 to i64
  br label %69

69:                                               ; preds = %67, %69
  %indvars.iv = phi i64 [ 0, %67 ], [ %indvars.iv.next, %69 ]
  %70 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv
  %71 = load ptr, ptr %70, align 8, !tbaa !8
  %72 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %71) #7
  %73 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.125) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %74, label %69, !llvm.loop !10

74:                                               ; preds = %69
  %.not234 = icmp eq ptr %4, null
  br i1 %.not234, label %79, label %75

75:                                               ; preds = %74
  %char0235 = load i8, ptr %4, align 1
  %.not236 = icmp eq i8 %char0235, 0
  br i1 %.not236, label %79, label %76

76:                                               ; preds = %75
  %77 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.181) #7
  %78 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %4) #7
  br label %79

79:                                               ; preds = %76, %75, %74
  %80 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.47) #7
  br label %81

81:                                               ; preds = %79, %64
  br i1 %.not228, label %356, label %82

82:                                               ; preds = %81
  %char0237 = load i8, ptr %0, align 1
  %.not238 = icmp eq i8 %char0237, 0
  br i1 %.not238, label %356, label %.sink.split284.sink.split.sink.split

83:                                               ; preds = %43
  %84 = tail call noundef i32 @_ZL13zenityPresentv()
  %.not137 = icmp eq i32 %84, 0
  br i1 %.not137, label %85, label %91

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

87:                                               ; preds = %85
  %88 = tail call noundef i32 @_ZL20shellementaryPresentv()
  %.not139 = icmp eq i32 %88, 0
  br i1 %.not139, label %89, label %91

89:                                               ; preds = %87
  %90 = tail call noundef i32 @_ZL12qarmaPresentv()
  %.not140 = icmp eq i32 %90, 0
  br i1 %.not140, label %162, label %91

91:                                               ; preds = %89, %87, %85, %83
  %92 = tail call noundef i32 @_ZL13zenityPresentv()
  %.not205 = icmp eq i32 %92, 0
  br i1 %.not205, label %106, label %93

93:                                               ; preds = %91
  %.not215 = icmp eq ptr %0, null
  br i1 %.not215, label %98, label %94

94:                                               ; preds = %93
  %95 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #8
  %.not216 = icmp eq i32 %95, 0
  br i1 %.not216, label %96, label %98

96:                                               ; preds = %94
  %97 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.52) #7
  br label %379

98:                                               ; preds = %94, %93
  %99 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.52) #7
  %100 = call noundef i32 @_ZL14zenity3Presentv()
  %101 = icmp sgt i32 %100, 3
  br i1 %101, label %102, label %134

102:                                              ; preds = %98
  %103 = call ptr @getenv(ptr noundef nonnull @.str.54) #7
  %.not217 = icmp eq ptr %103, null
  br i1 %.not217, label %104, label %134

104:                                              ; preds = %102
  %105 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.55) #7
  br label %134

106:                                              ; preds = %91
  %107 = tail call noundef i32 @_ZL17matedialogPresentv()
  %.not206 = icmp eq i32 %107, 0
  br i1 %.not206, label %115, label %108

108:                                              ; preds = %106
  %.not213 = icmp eq ptr %0, null
  br i1 %.not213, label %113, label %109

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

111:                                              ; preds = %109
  %112 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.56) #7
  br label %379

113:                                              ; preds = %109, %108
  %114 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.56) #7
  br label %134

115:                                              ; preds = %106
  %116 = tail call noundef i32 @_ZL20shellementaryPresentv()
  %.not207 = icmp eq i32 %116, 0
  %.not208 = icmp eq ptr %0, null
  br i1 %.not207, label %124, label %117

117:                                              ; preds = %115
  br i1 %.not208, label %122, label %118

118:                                              ; preds = %117
  %119 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #8
  %.not212 = icmp eq i32 %119, 0
  br i1 %.not212, label %120, label %122

120:                                              ; preds = %118
  %121 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.58) #7
  br label %379

122:                                              ; preds = %118, %117
  %123 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.58) #7
  br label %134

124:                                              ; preds = %115
  br i1 %.not208, label %129, label %125

125:                                              ; preds = %124
  %126 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #8
  %.not209 = icmp eq i32 %126, 0
  br i1 %.not209, label %127, label %129

127:                                              ; preds = %125
  %128 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.60) #7
  br label %379

129:                                              ; preds = %125, %124
  %130 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.60) #7
  %131 = call ptr @getenv(ptr noundef nonnull @.str.54) #7
  %.not210 = icmp eq ptr %131, null
  br i1 %.not210, label %132, label %134

132:                                              ; preds = %129
  %133 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.42) #7
  br label %134

134:                                              ; preds = %113, %129, %132, %122, %98, %102, %104
  %135 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.262) #7
  %.not218 = icmp eq ptr %0, null
  br i1 %.not218, label %141, label %136

136:                                              ; preds = %134
  %char0219 = load i8, ptr %0, align 1
  %.not220 = icmp eq i8 %char0219, 0
  br i1 %.not220, label %141, label %137

137:                                              ; preds = %136
  %138 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.66) #7
  %139 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %0) #7
  %140 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.47) #7
  br label %141

141:                                              ; preds = %137, %136, %134
  %.not221 = icmp eq ptr %1, null
  br i1 %.not221, label %147, label %142

142:                                              ; preds = %141
  %char0222 = load i8, ptr %1, align 1
  %.not223 = icmp eq i8 %char0222, 0
  br i1 %.not223, label %147, label %143

143:                                              ; preds = %142
  %144 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.263) #7
  %145 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %1) #7
  %146 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.47) #7
  br label %147

147:                                              ; preds = %143, %142, %141
  %148 = icmp sgt i32 %2, 0
  br i1 %148, label %149, label %160

149:                                              ; preds = %147
  %150 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.264) #7
  %.not224 = icmp eq ptr %4, null
  br i1 %.not224, label %.lr.ph.preheader, label %151

151:                                              ; preds = %149
  %char0225 = load i8, ptr %4, align 1
  %.not226 = icmp eq i8 %char0225, 0
  br i1 %.not226, label %.lr.ph.preheader, label %152

152:                                              ; preds = %151
  %153 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %4) #7
  %154 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.181) #7
  br label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %149, %151, %152
  %wide.trip.count272 = zext nneg i32 %2 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv269 = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next270, %.lr.ph ]
  %155 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv269
  %156 = load ptr, ptr %155, align 8, !tbaa !8
  %157 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %156) #7
  %158 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.125) #7
  %indvars.iv.next270 = add nuw nsw i64 %indvars.iv269, 1
  %exitcond273.not = icmp eq i64 %indvars.iv.next270, %wide.trip.count272
  br i1 %exitcond273.not, label %._crit_edge, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph
  %159 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.265) #7
  br label %160

160:                                              ; preds = %._crit_edge, %147
  %161 = load i32, ptr @tinyfd_silent, align 4, !tbaa !13
  %.not227 = icmp eq i32 %161, 0
  br i1 %.not227, label %356, label %.sink.split284

162:                                              ; preds = %89
  %163 = tail call noundef i32 @_ZL14xdialogPresentv()
  %.not141 = icmp eq i32 %163, 0
  br i1 %.not141, label %164, label %226

164:                                              ; preds = %162
  %165 = tail call noundef i32 @_ZL15tkinter2Presentv()
  %.not142 = icmp eq i32 %165, 0
  br i1 %.not142, label %226, label %166

166:                                              ; preds = %164
  %.not143 = icmp eq ptr %0, null
  br i1 %.not143, label %171, label %167

167:                                              ; preds = %166
  %168 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #8
  %.not144 = icmp eq i32 %168, 0
  br i1 %.not144, label %169, label %171

169:                                              ; preds = %167
  %170 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.73) #7
  br label %379

171:                                              ; preds = %167, %166
  %172 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @_ZL12gPython2Name) #7
  %173 = call noundef i32 @_ZL17isTerminalRunningv()
  %.not145 = icmp eq i32 %173, 0
  br i1 %.not145, label %174, label %178

174:                                              ; preds = %171
  %175 = call noundef i32 @_ZL8isDarwinv()
  %.not146 = icmp eq i32 %175, 0
  br i1 %.not146, label %178, label %176

176:                                              ; preds = %174
  %177 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.74) #7
  br label %178

178:                                              ; preds = %176, %174, %171
  %179 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.266) #7
  %180 = call noundef i32 @_ZL8isDarwinv()
  %.not147 = icmp eq i32 %180, 0
  br i1 %.not147, label %183, label %181

181:                                              ; preds = %178
  %182 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.76) #7
  br label %183

183:                                              ; preds = %181, %178
  %184 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.267) #7
  br i1 %.not143, label %190, label %185

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

186:                                              ; preds = %185
  %187 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.88) #7
  %188 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %0) #7
  %189 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.87) #7
  br label %190

190:                                              ; preds = %186, %185, %183
  %.not149 = icmp eq ptr %1, null
  br i1 %.not149, label %204, label %191

191:                                              ; preds = %190
  %char0150 = load i8, ptr %1, align 1
  %.not151 = icmp eq i8 %char0150, 0
  br i1 %.not151, label %204, label %192

192:                                              ; preds = %191
  %193 = call noundef ptr @_ZL24getPathWithoutFinalSlashPcPKc(ptr noundef nonnull %7, ptr noundef nonnull %1)
  %char0152 = load i8, ptr %7, align 16
  %.not153 = icmp eq i8 %char0152, 0
  br i1 %.not153, label %198, label %194

194:                                              ; preds = %192
  %195 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.268) #7
  %196 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %7) #7
  %197 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.87) #7
  br label %198

198:                                              ; preds = %194, %192
  %199 = call noundef ptr @_ZL11getLastNamePcPKc(ptr noundef nonnull %7, ptr noundef nonnull %1)
  %char0154 = load i8, ptr %7, align 16
  %.not155 = icmp eq i8 %char0154, 0
  br i1 %.not155, label %204, label %200

200:                                              ; preds = %198
  %201 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.269) #7
  %202 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %7) #7
  %203 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.87) #7
  br label %204

204:                                              ; preds = %198, %200, %191, %190
  %205 = icmp sgt i32 %2, 1
  br i1 %205, label %214, label %206

206:                                              ; preds = %204
  %207 = icmp eq i32 %2, 1
  br i1 %207, label %208, label %.sink.split284

208:                                              ; preds = %206
  %209 = load ptr, ptr %3, align 8, !tbaa !8
  %210 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %209) #8
  %211 = getelementptr i8, ptr %209, i64 %210
  %212 = getelementptr i8, ptr %211, i64 -1
  %213 = load i8, ptr %212, align 1, !tbaa !5
  %.not156 = icmp eq i8 %213, 42
  br i1 %.not156, label %.sink.split284, label %214

214:                                              ; preds = %208, %204
  %215 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.270) #7
  %216 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.271) #7
  %.not157 = icmp eq ptr %4, null
  br i1 %.not157, label %.lr.ph262.preheader, label %217

217:                                              ; preds = %214
  %char0158 = load i8, ptr %4, align 1
  %.not159 = icmp eq i8 %char0158, 0
  br i1 %.not159, label %.lr.ph262.preheader, label %218

218:                                              ; preds = %217
  %219 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %4) #7
  br label %.lr.ph262.preheader

.lr.ph262.preheader:                              ; preds = %214, %217, %218
  %220 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.272) #7
  %wide.trip.count277 = zext nneg i32 %2 to i64
  br label %.lr.ph262

.lr.ph262:                                        ; preds = %.lr.ph262.preheader, %.lr.ph262
  %indvars.iv274 = phi i64 [ 0, %.lr.ph262.preheader ], [ %indvars.iv.next275, %.lr.ph262 ]
  %221 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.92) #7
  %222 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv274
  %223 = load ptr, ptr %222, align 8, !tbaa !8
  %224 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %223) #7
  %225 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.87) #7
  %indvars.iv.next275 = add nuw nsw i64 %indvars.iv274, 1
  %exitcond278.not = icmp eq i64 %indvars.iv.next275, %wide.trip.count277
  br i1 %exitcond278.not, label %.sink.split284.sink.split.sink.split, label %.lr.ph262, !llvm.loop !15

226:                                              ; preds = %164, %162
  %227 = tail call noundef i32 @_ZL14xdialogPresentv()
  %.not160 = icmp eq i32 %227, 0
  br i1 %.not160, label %228, label %280

228:                                              ; preds = %226
  %229 = tail call noundef i32 @_ZL15tkinter3Presentv()
  %.not161 = icmp eq i32 %229, 0
  br i1 %.not161, label %280, label %230

230:                                              ; preds = %228
  %.not162 = icmp eq ptr %0, null
  br i1 %.not162, label %.critedge, label %231

231:                                              ; preds = %230
  %232 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #8
  %.not163 = icmp eq i32 %232, 0
  br i1 %.not163, label %233, label %235

233:                                              ; preds = %231
  %234 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.95) #7
  br label %379

235:                                              ; preds = %231
  %236 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @_ZL12gPython3Name) #7
  %237 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.276) #7
  %238 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.277) #7
  %char0164 = load i8, ptr %0, align 1
  %.not165 = icmp eq i8 %char0164, 0
  br i1 %.not165, label %244, label %239

239:                                              ; preds = %235
  %240 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.88) #7
  br label %.sink.split

.critedge:                                        ; preds = %230
  %241 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @_ZL12gPython3Name) #7
  br label %.sink.split

.sink.split:                                      ; preds = %239, %.critedge
  %.str.276.sink = phi ptr [ @.str.276, %.critedge ], [ %0, %239 ]
  %.str.277.sink = phi ptr [ @.str.277, %.critedge ], [ @.str.87, %239 ]
  %242 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %.str.276.sink) #7
  %243 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %.str.277.sink) #7
  br label %244

244:                                              ; preds = %.sink.split, %235
  %.not166 = icmp eq ptr %1, null
  br i1 %.not166, label %258, label %245

245:                                              ; preds = %244
  %char0167 = load i8, ptr %1, align 1
  %.not168 = icmp eq i8 %char0167, 0
  br i1 %.not168, label %258, label %246

246:                                              ; preds = %245
  %247 = call noundef ptr @_ZL24getPathWithoutFinalSlashPcPKc(ptr noundef nonnull %7, ptr noundef nonnull %1)
  %char0169 = load i8, ptr %7, align 16
  %.not170 = icmp eq i8 %char0169, 0
  br i1 %.not170, label %252, label %248

248:                                              ; preds = %246
  %249 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.268) #7
  %250 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %7) #7
  %251 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.87) #7
  br label %252

252:                                              ; preds = %248, %246
  %253 = call noundef ptr @_ZL11getLastNamePcPKc(ptr noundef nonnull %7, ptr noundef nonnull %1)
  %char0171 = load i8, ptr %7, align 16
  %.not172 = icmp eq i8 %char0171, 0
  br i1 %.not172, label %258, label %254

254:                                              ; preds = %252
  %255 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.269) #7
  %256 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %7) #7
  %257 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.87) #7
  br label %258

258:                                              ; preds = %252, %254, %245, %244
  %259 = icmp sgt i32 %2, 1
  br i1 %259, label %268, label %260

260:                                              ; preds = %258
  %261 = icmp eq i32 %2, 1
  br i1 %261, label %262, label %.sink.split284

262:                                              ; preds = %260
  %263 = load ptr, ptr %3, align 8, !tbaa !8
  %264 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %263) #8
  %265 = getelementptr i8, ptr %263, i64 %264
  %266 = getelementptr i8, ptr %265, i64 -1
  %267 = load i8, ptr %266, align 1, !tbaa !5
  %.not173 = icmp eq i8 %267, 42
  br i1 %.not173, label %.sink.split284, label %268

268:                                              ; preds = %262, %258
  %269 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.270) #7
  %270 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.271) #7
  %.not174 = icmp eq ptr %4, null
  br i1 %.not174, label %.lr.ph266.preheader, label %271

271:                                              ; preds = %268
  %char0175 = load i8, ptr %4, align 1
  %.not176 = icmp eq i8 %char0175, 0
  br i1 %.not176, label %.lr.ph266.preheader, label %272

272:                                              ; preds = %271
  %273 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %4) #7
  br label %.lr.ph266.preheader

.lr.ph266.preheader:                              ; preds = %268, %271, %272
  %274 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.272) #7
  %wide.trip.count282 = zext nneg i32 %2 to i64
  br label %.lr.ph266

.lr.ph266:                                        ; preds = %.lr.ph266.preheader, %.lr.ph266
  %indvars.iv279 = phi i64 [ 0, %.lr.ph266.preheader ], [ %indvars.iv.next280, %.lr.ph266 ]
  %275 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.92) #7
  %276 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv279
  %277 = load ptr, ptr %276, align 8, !tbaa !8
  %278 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %277) #7
  %279 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.87) #7
  %indvars.iv.next280 = add nuw nsw i64 %indvars.iv279, 1
  %exitcond283.not = icmp eq i64 %indvars.iv.next280, %wide.trip.count282
  br i1 %exitcond283.not, label %.sink.split284.sink.split.sink.split, label %.lr.ph266, !llvm.loop !16

280:                                              ; preds = %228, %226
  %281 = tail call noundef i32 @_ZL14xdialogPresentv()
  %.not177 = icmp eq i32 %281, 0
  br i1 %.not177, label %282, label %284

282:                                              ; preds = %280
  %283 = tail call noundef ptr @_ZL10dialogNamev()
  %.not178 = icmp eq ptr %283, null
  br i1 %.not178, label %341, label %284

284:                                              ; preds = %282, %280
  %285 = tail call noundef i32 @_ZL14xdialogPresentv()
  %.not186.not = icmp eq i32 %285, 0
  br i1 %.not186.not, label %293, label %286

286:                                              ; preds = %284
  %.not192 = icmp eq ptr %0, null
  br i1 %.not192, label %291, label %287

287:                                              ; preds = %286
  %288 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #8
  %.not193 = icmp eq i32 %288, 0
  br i1 %.not193, label %289, label %291

289:                                              ; preds = %287
  %290 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.120) #7
  br label %379

291:                                              ; preds = %287, %286
  %292 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.121) #7
  br label %314

293:                                              ; preds = %284
  %294 = tail call noundef i32 @_ZL17isTerminalRunningv()
  %.not187 = icmp eq i32 %294, 0
  %.not188 = icmp eq ptr %0, null
  br i1 %.not187, label %302, label %295

295:                                              ; preds = %293
  br i1 %.not188, label %300, label %296

296:                                              ; preds = %295
  %297 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #8
  %.not191 = icmp eq i32 %297, 0
  br i1 %.not191, label %298, label %300

298:                                              ; preds = %296
  %299 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.122) #7
  br label %379

300:                                              ; preds = %296, %295
  %301 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.123) #7
  br label %314

302:                                              ; preds = %293
  br i1 %.not188, label %307, label %303

303:                                              ; preds = %302
  %304 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #8
  %.not189 = icmp eq i32 %304, 0
  br i1 %.not189, label %305, label %307

305:                                              ; preds = %303
  %306 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.122) #7
  br label %379

307:                                              ; preds = %303, %302
  %308 = tail call noundef ptr @_ZL12terminalNamev()
  %309 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %308) #7
  %310 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.124) #7
  %311 = call noundef ptr @_ZL10dialogNamev()
  %312 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %311) #7
  %313 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.125) #7
  br label %314

314:                                              ; preds = %300, %307, %291
  %.not204 = phi ptr [ @.str.287, %291 ], [ @.str.287, %300 ], [ @.str.286, %307 ]
  %.not194 = icmp eq ptr %0, null
  br i1 %.not194, label %320, label %315

315:                                              ; preds = %314
  %char0195 = load i8, ptr %0, align 1
  %.not196 = icmp eq i8 %char0195, 0
  br i1 %.not196, label %320, label %316

316:                                              ; preds = %315
  %317 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.129) #7
  %318 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %0) #7
  %319 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.15) #7
  br label %320

320:                                              ; preds = %316, %315, %314
  %321 = call noundef i32 @_ZL14xdialogPresentv()
  %.not197 = icmp eq i32 %321, 0
  br i1 %.not197, label %322, label %328

322:                                              ; preds = %320
  %323 = call noundef i32 @_ZL14gdialogPresentv()
  %.not198 = icmp eq i32 %323, 0
  br i1 %.not198, label %324, label %328

324:                                              ; preds = %322
  %325 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.130) #7
  %326 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.279) #7
  %327 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.15) #7
  br label %328

328:                                              ; preds = %324, %322, %320
  %329 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.280) #7
  %.not199 = icmp eq ptr %1, null
  br i1 %.not199, label %333, label %330

330:                                              ; preds = %328
  %char0200 = load i8, ptr %1, align 1
  %.not201 = icmp eq i8 %char0200, 0
  br i1 %.not201, label %333, label %331

331:                                              ; preds = %330
  %332 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %1, i32 noundef 47) #8
  %.not202 = icmp eq ptr %332, null
  br i1 %.not202, label %.sink.split285, label %339

333:                                              ; preds = %330, %328
  %334 = call noundef i32 @_ZL17isTerminalRunningv()
  %335 = or i32 %334, %285
  %or.cond.not = icmp eq i32 %335, 0
  br i1 %or.cond.not, label %336, label %339

336:                                              ; preds = %333
  %337 = call ptr @getenv(ptr noundef nonnull @.str.282) #7
  br label %.sink.split285

.sink.split285:                                   ; preds = %331, %336
  %.str.281.sink = phi ptr [ %337, %336 ], [ @.str.281, %331 ]
  %.str.283.sink.ph = phi ptr [ @.str.283, %336 ], [ %1, %331 ]
  %338 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %.str.281.sink) #7
  br label %339

339:                                              ; preds = %.sink.split285, %333, %331
  %.str.283.sink = phi ptr [ %1, %331 ], [ @.str.281, %333 ], [ %.str.283.sink.ph, %.sink.split285 ]
  %340 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %.str.283.sink) #7
  br i1 %.not186.not, label %.sink.split284.sink.split, label %.sink.split284

341:                                              ; preds = %282
  %.not179 = icmp eq ptr %0, null
  br i1 %.not179, label %346, label %342

342:                                              ; preds = %341
  %343 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #8
  %.not180 = icmp eq i32 %343, 0
  br i1 %.not180, label %344, label %346

344:                                              ; preds = %342
  %345 = tail call ptr @tinyfd_inputBox(ptr noundef nonnull %0, ptr noundef null, ptr noundef null)
  br label %379

346:                                              ; preds = %342, %341
  %347 = tail call ptr @tinyfd_inputBox(ptr noundef %0, ptr noundef nonnull @.str.288, ptr noundef nonnull @.str.177)
  %348 = call noundef ptr @_ZL24getPathWithoutFinalSlashPcPKc(ptr noundef nonnull %7, ptr noundef %347)
  %char0181 = load i8, ptr %7, align 16
  %.not182 = icmp eq i8 %char0181, 0
  br i1 %.not182, label %351, label %349

349:                                              ; preds = %346
  %350 = call noundef i32 @_ZL9dirExistsPKc(ptr noundef nonnull %7)
  %.not183 = icmp eq i32 %350, 0
  br i1 %.not183, label %379, label %351

351:                                              ; preds = %349, %346
  %352 = call noundef ptr @_ZL11getLastNamePcPKc(ptr noundef nonnull %7, ptr noundef %347)
  %char0184 = load i8, ptr %7, align 16
  %.not185 = icmp eq i8 %char0184, 0
  %. = select i1 %.not185, ptr null, ptr %347
  br label %379

.sink.split284.sink.split.sink.split:             ; preds = %.lr.ph262, %.lr.ph266, %82
  %.str.49.sink = phi ptr [ @.str.49, %82 ], [ @.str.273, %.lr.ph266 ], [ @.str.273, %.lr.ph262 ]
  %.str.285.sink.ph = phi ptr [ %0, %82 ], [ @.str.274, %.lr.ph266 ], [ @.str.274, %.lr.ph262 ]
  %.str.47.sink.ph.ph = phi ptr [ @.str.47, %82 ], [ @.str.278, %.lr.ph266 ], [ @.str.275, %.lr.ph262 ]
  %353 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %.str.49.sink) #7
  br label %.sink.split284.sink.split

.sink.split284.sink.split:                        ; preds = %.sink.split284.sink.split.sink.split, %339
  %.str.285.sink = phi ptr [ @.str.285, %339 ], [ %.str.285.sink.ph, %.sink.split284.sink.split.sink.split ]
  %.str.47.sink.ph = phi ptr [ %.not204, %339 ], [ %.str.47.sink.ph.ph, %.sink.split284.sink.split.sink.split ]
  %354 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %.str.285.sink) #7
  br label %.sink.split284

.sink.split284:                                   ; preds = %.sink.split284.sink.split, %339, %260, %262, %206, %208, %160, %38
  %.str.47.sink = phi ptr [ @.str.40, %38 ], [ @.str.70, %160 ], [ @.str.275, %208 ], [ @.str.275, %206 ], [ @.str.278, %262 ], [ @.str.278, %260 ], [ @.str.284, %339 ], [ %.str.47.sink.ph, %.sink.split284.sink.split ]
  %355 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %.str.47.sink) #7
  br label %356

356:                                              ; preds = %.sink.split284, %82, %81, %160, %38
  %357 = load i32, ptr @tinyfd_verbose, align 4, !tbaa !13
  %.not249 = icmp eq i32 %357, 0
  br i1 %.not249, label %360, label %358

358:                                              ; preds = %356
  %359 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, ptr noundef nonnull %6)
  br label %360

360:                                              ; preds = %358, %356
  %361 = call noalias ptr @popen(ptr noundef nonnull %6, ptr noundef nonnull @.str.9)
  %.not250 = icmp eq ptr %361, null
  br i1 %.not250, label %379, label %.preheader

.preheader:                                       ; preds = %360, %.preheader
  %362 = call ptr @fgets(ptr noundef nonnull @_ZZ21tinyfd_saveFileDialogE5lBuff, i32 noundef 1024, ptr noundef nonnull %361)
  %.not251 = icmp eq ptr %362, null
  br i1 %.not251, label %363, label %.preheader, !llvm.loop !17

363:                                              ; preds = %.preheader
  %364 = call i32 @pclose(ptr noundef nonnull %361)
  %365 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @_ZZ21tinyfd_saveFileDialogE5lBuff) #8
  %366 = add i64 %365, -1
  %367 = getelementptr inbounds [1024 x i8], ptr @_ZZ21tinyfd_saveFileDialogE5lBuff, i64 0, i64 %366
  %368 = load i8, ptr %367, align 1, !tbaa !5
  %369 = icmp eq i8 %368, 10
  br i1 %369, label %370, label %371

370:                                              ; preds = %363
  store i8 0, ptr %367, align 1, !tbaa !5
  br label %371

371:                                              ; preds = %370, %363
  %char0252 = load i8, ptr @_ZZ21tinyfd_saveFileDialogE5lBuff, align 16
  %.not253 = icmp eq i8 %char0252, 0
  br i1 %.not253, label %379, label %372

372:                                              ; preds = %371
  %373 = call noundef ptr @_ZL24getPathWithoutFinalSlashPcPKc(ptr noundef nonnull %7, ptr noundef nonnull @_ZZ21tinyfd_saveFileDialogE5lBuff)
  %char0254 = load i8, ptr %7, align 16
  %.not255 = icmp eq i8 %char0254, 0
  br i1 %.not255, label %376, label %374

374:                                              ; preds = %372
  %375 = call noundef i32 @_ZL9dirExistsPKc(ptr noundef nonnull %7)
  %.not256 = icmp eq i32 %375, 0
  br i1 %.not256, label %379, label %376

376:                                              ; preds = %374, %372
  %377 = call noundef ptr @_ZL11getLastNamePcPKc(ptr noundef nonnull %7, ptr noundef nonnull @_ZZ21tinyfd_saveFileDialogE5lBuff)
  %378 = call noundef i32 @_ZL13filenameValidPKc(ptr noundef nonnull %7)
  %.not257 = icmp eq i32 %378, 0
  %._ZZ21tinyfd_saveFileDialogE5lBuff = select i1 %.not257, ptr null, ptr @_ZZ21tinyfd_saveFileDialogE5lBuff
  br label %379

379:                                              ; preds = %376, %374, %371, %360, %351, %349, %344, %305, %298, %289, %233, %169, %127, %120, %111, %96, %48, %12
  %.0 = phi ptr [ inttoptr (i64 1 to ptr), %12 ], [ inttoptr (i64 1 to ptr), %48 ], [ inttoptr (i64 1 to ptr), %96 ], [ inttoptr (i64 1 to ptr), %111 ], [ inttoptr (i64 1 to ptr), %120 ], [ inttoptr (i64 1 to ptr), %127 ], [ inttoptr (i64 1 to ptr), %289 ], [ null, %298 ], [ null, %305 ], [ %345, %344 ], [ inttoptr (i64 1 to ptr), %233 ], [ inttoptr (i64 1 to ptr), %169 ], [ null, %349 ], [ %., %351 ], [ null, %360 ], [ null, %371 ], [ null, %374 ], [ %._ZZ21tinyfd_saveFileDialogE5lBuff, %376 ]
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %6) #7
  ret ptr %.0
}

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

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

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

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

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 = { 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 #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) }

!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 = !{!"any pointer", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !6, i64 0}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass