; LLVM IR from kmxz/overlayfs-tools :: main (main)

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

%struct.option = type { ptr, i32, ptr, i32 }

@stderr = external global ptr, align 8
@ignore = external dso_local global i8, align 1
@main.long_options = external hidden global [12 x %struct.option], align 16
@program_name = external global ptr, align 8
@.str.45 = external hidden unnamed_addr constant [16 x i8], align 1
@optarg = external global ptr, align 8
@vars = external global [5 x ptr], align 16
@.str.46 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [13 x i8], align 1
@force = external dso_local global i8, align 1
@verbose = external dso_local global i8, align 1
@brief = external dso_local global i8, align 1
@.str.48 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [66 x i8], align 1
@optind = external global i32, align 4
@__const.main.filename_template = external hidden unnamed_addr constant [24 x i8], align 16
@.str.54 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [126 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @print_help(ptr noundef) #0

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

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

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @check_mounted(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @directory_exists(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @directory_create(ptr noundef, ptr noundef) #0

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @check_xattr_trusted(ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca [24 x i8], align 16
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  store ptr null, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  store ptr null, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  store ptr null, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !5
  %17 = load ptr, ptr %5, align 8, !tbaa !9
  %18 = getelementptr inbounds ptr, ptr %17, i64 0
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %20 = call ptr @basename(ptr noundef %19) #8
  store ptr %20, ptr @program_name, align 8, !tbaa !9
  br label %21

21:                                               ; preds = %83, %2
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = load ptr, ptr %5, align 8, !tbaa !9
  %24 = call i32 @getopt_long_only(i32 noundef %22, ptr noundef %23, ptr noundef @.str.45, ptr noundef @main.long_options, ptr noundef %11) #8
  store i32 %24, ptr %10, align 4, !tbaa !5
  %25 = icmp ne i32 %24, -1
  br i1 %25, label %26, label %84

26:                                               ; preds = %21
  %27 = load i32, ptr %10, align 4, !tbaa !5
  switch i32 %27, label %79 [
    i32 108, label %28
    i32 117, label %36
    i32 109, label %44
    i32 76, label %52
    i32 85, label %62
    i32 105, label %72
    i32 102, label %73
    i32 104, label %74
    i32 118, label %76
    i32 98, label %77
    i32 86, label %78
  ]

28:                                               ; preds = %26
  %29 = load ptr, ptr @optarg, align 8, !tbaa !9
  %30 = call ptr @realpath(ptr noundef %29, ptr noundef null) #8
  store ptr %30, ptr %6, align 8, !tbaa !9
  %31 = load ptr, ptr %6, align 8, !tbaa !9
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %35

33:                                               ; preds = %28
  %34 = load ptr, ptr %6, align 8, !tbaa !9
  store ptr %34, ptr @vars, align 16, !tbaa !9
  br label %35

35:                                               ; preds = %33, %28
  br label %83

36:                                               ; preds = %26
  %37 = load ptr, ptr @optarg, align 8, !tbaa !9
  %38 = call ptr @realpath(ptr noundef %37, ptr noundef null) #8
  store ptr %38, ptr %7, align 8, !tbaa !9
  %39 = load ptr, ptr %7, align 8, !tbaa !9
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %43

41:                                               ; preds = %36
  %42 = load ptr, ptr %7, align 8, !tbaa !9
  store ptr %42, ptr getelementptr inbounds ([5 x ptr], ptr @vars, i64 0, i64 1), align 8, !tbaa !9
  br label %43

43:                                               ; preds = %41, %36
  br label %83

44:                                               ; preds = %26
  %45 = load ptr, ptr @optarg, align 8, !tbaa !9
  %46 = call ptr @realpath(ptr noundef %45, ptr noundef null) #8
  store ptr %46, ptr %9, align 8, !tbaa !9
  %47 = load ptr, ptr %9, align 8, !tbaa !9
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %51

49:                                               ; preds = %44
  %50 = load ptr, ptr %9, align 8, !tbaa !9
  store ptr %50, ptr getelementptr inbounds ([5 x ptr], ptr @vars, i64 0, i64 2), align 16, !tbaa !9
  br label %51

51:                                               ; preds = %49, %44
  br label %83

52:                                               ; preds = %26
  %53 = load ptr, ptr @optarg, align 8, !tbaa !9
  %54 = call zeroext i1 @directory_create(ptr noundef @.str.46, ptr noundef %53)
  %55 = load ptr, ptr @optarg, align 8, !tbaa !9
  %56 = call ptr @realpath(ptr noundef %55, ptr noundef null) #8
  store ptr %56, ptr %8, align 8, !tbaa !9
  %57 = load ptr, ptr %8, align 8, !tbaa !9
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %61

59:                                               ; preds = %52
  %60 = load ptr, ptr %8, align 8, !tbaa !9
  store ptr %60, ptr getelementptr inbounds ([5 x ptr], ptr @vars, i64 0, i64 3), align 8, !tbaa !9
  br label %61

61:                                               ; preds = %59, %52
  br label %83

62:                                               ; preds = %26
  %63 = load ptr, ptr @optarg, align 8, !tbaa !9
  %64 = call zeroext i1 @directory_create(ptr noundef @.str.47, ptr noundef %63)
  %65 = load ptr, ptr @optarg, align 8, !tbaa !9
  %66 = call ptr @realpath(ptr noundef %65, ptr noundef null) #8
  store ptr %66, ptr %8, align 8, !tbaa !9
  %67 = load ptr, ptr %8, align 8, !tbaa !9
  %68 = icmp ne ptr %67, null
  br i1 %68, label %69, label %71

69:                                               ; preds = %62
  %70 = load ptr, ptr %8, align 8, !tbaa !9
  store ptr %70, ptr getelementptr inbounds ([5 x ptr], ptr @vars, i64 0, i64 4), align 16, !tbaa !9
  br label %71

71:                                               ; preds = %69, %62
  br label %83

72:                                               ; preds = %26
  store i8 1, ptr @ignore, align 1, !tbaa !11
  br label %83

73:                                               ; preds = %26
  store i8 1, ptr @force, align 1, !tbaa !11
  br label %83

74:                                               ; preds = %26
  %75 = load ptr, ptr @program_name, align 8, !tbaa !9
  call void @print_help(ptr noundef %75)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %277

76:                                               ; preds = %26
  store i8 1, ptr @verbose, align 1, !tbaa !11
  store i8 0, ptr @brief, align 1, !tbaa !11
  br label %83

77:                                               ; preds = %26
  store i8 0, ptr @verbose, align 1, !tbaa !11
  store i8 1, ptr @brief, align 1, !tbaa !11
  br label %83

78:                                               ; preds = %26
  call void @version()
  call void @exit(i32 noundef 0) #9
  unreachable

79:                                               ; preds = %26
  %80 = load ptr, ptr @stderr, align 8, !tbaa !9
  %81 = load i32, ptr %10, align 4, !tbaa !5
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.48, i32 noundef %81) #8
  br label %273

83:                                               ; preds = %77, %76, %73, %72, %71, %61, %51, %43, %35
  br label %21, !llvm.loop !13

84:                                               ; preds = %21
  %85 = load ptr, ptr %6, align 8, !tbaa !9
  %86 = icmp ne ptr %85, null
  br i1 %86, label %90, label %87

87:                                               ; preds = %84
  %88 = load ptr, ptr @stderr, align 8, !tbaa !9
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef @.str.49) #8
  br label %273

90:                                               ; preds = %84
  %91 = load ptr, ptr %6, align 8, !tbaa !9
  %92 = call zeroext i1 @directory_exists(ptr noundef %91)
  br i1 %92, label %96, label %93

93:                                               ; preds = %90
  %94 = load ptr, ptr @stderr, align 8, !tbaa !9
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef @.str.50) #8
  br label %273

96:                                               ; preds = %90
  %97 = load ptr, ptr %7, align 8, !tbaa !9
  %98 = icmp ne ptr %97, null
  br i1 %98, label %102, label %99

99:                                               ; preds = %96
  %100 = load ptr, ptr @stderr, align 8, !tbaa !9
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef @.str.51) #8
  br label %273

102:                                              ; preds = %96
  %103 = load ptr, ptr %7, align 8, !tbaa !9
  %104 = call zeroext i1 @directory_exists(ptr noundef %103)
  br i1 %104, label %108, label %105

105:                                              ; preds = %102
  %106 = load ptr, ptr @stderr, align 8, !tbaa !9
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef @.str.52) #8
  br label %273

108:                                              ; preds = %102
  %109 = load ptr, ptr %7, align 8, !tbaa !9
  %110 = call zeroext i1 @check_xattr_trusted(ptr noundef %109)
  br i1 %110, label %114, label %111

111:                                              ; preds = %108
  %112 = load ptr, ptr @stderr, align 8, !tbaa !9
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef @.str.53) #8
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %277

114:                                              ; preds = %108
  %115 = load ptr, ptr getelementptr inbounds ([5 x ptr], ptr @vars, i64 0, i64 3), align 8, !tbaa !9
  %116 = icmp ne ptr %115, null
  br i1 %116, label %117, label %120

117:                                              ; preds = %114
  %118 = load ptr, ptr getelementptr inbounds ([5 x ptr], ptr @vars, i64 0, i64 4), align 16, !tbaa !9
  %119 = icmp ne ptr %118, null
  br i1 %119, label %125, label %120

120:                                              ; preds = %117, %114
  %121 = load ptr, ptr %6, align 8, !tbaa !9
  %122 = load ptr, ptr %7, align 8, !tbaa !9
  %123 = call zeroext i1 @check_mounted(ptr noundef %121, ptr noundef %122)
  br i1 %123, label %124, label %125

124:                                              ; preds = %120
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %277

125:                                              ; preds = %120, %117
  %126 = load i32, ptr @optind, align 4, !tbaa !5
  %127 = load i32, ptr %4, align 4, !tbaa !5
  %128 = sub nsw i32 %127, 1
  %129 = icmp eq i32 %126, %128
  br i1 %129, label %130, label %270

130:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 @__const.main.filename_template, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  store ptr null, ptr %15, align 8, !tbaa !9
  %131 = load ptr, ptr %5, align 8, !tbaa !9
  %132 = load i32, ptr @optind, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds ptr, ptr %131, i64 %133
  %135 = load ptr, ptr %134, align 8, !tbaa !9
  %136 = call i32 @strcmp(ptr noundef %135, ptr noundef @.str.54) #10
  %137 = icmp eq i32 %136, 0
  br i1 %137, label %138, label %142

138:                                              ; preds = %130
  %139 = load ptr, ptr %6, align 8, !tbaa !9
  %140 = load ptr, ptr %7, align 8, !tbaa !9
  %141 = call i32 @diff(ptr noundef %139, ptr noundef %140)
  store i32 %141, ptr %13, align 4, !tbaa !5
  br label %226

142:                                              ; preds = %130
  %143 = load ptr, ptr %5, align 8, !tbaa !9
  %144 = load i32, ptr @optind, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds ptr, ptr %143, i64 %145
  %147 = load ptr, ptr %146, align 8, !tbaa !9
  %148 = call i32 @strcmp(ptr noundef %147, ptr noundef @.str.55) #10
  %149 = icmp eq i32 %148, 0
  br i1 %149, label %150, label %163

150:                                              ; preds = %142
  %151 = getelementptr inbounds [24 x i8], ptr %14, i64 0, i64 0
  %152 = call ptr @create_shell_script(ptr noundef %151)
  store ptr %152, ptr %15, align 8, !tbaa !9
  %153 = load ptr, ptr %15, align 8, !tbaa !9
  %154 = icmp eq ptr %153, null
  br i1 %154, label %155, label %158

155:                                              ; preds = %150
  %156 = load ptr, ptr @stderr, align 8, !tbaa !9
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %156, ptr noundef @.str.56) #8
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %268

158:                                              ; preds = %150
  %159 = load ptr, ptr %6, align 8, !tbaa !9
  %160 = load ptr, ptr %7, align 8, !tbaa !9
  %161 = load ptr, ptr %15, align 8, !tbaa !9
  %162 = call i32 @vacuum(ptr noundef %159, ptr noundef %160, ptr noundef %161)
  store i32 %162, ptr %13, align 4, !tbaa !5
  br label %225

163:                                              ; preds = %142
  %164 = load ptr, ptr %5, align 8, !tbaa !9
  %165 = load i32, ptr @optind, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds ptr, ptr %164, i64 %166
  %168 = load ptr, ptr %167, align 8, !tbaa !9
  %169 = call i32 @strcmp(ptr noundef %168, ptr noundef @.str.57) #10
  %170 = icmp eq i32 %169, 0
  br i1 %170, label %171, label %184

171:                                              ; preds = %163
  %172 = getelementptr inbounds [24 x i8], ptr %14, i64 0, i64 0
  %173 = call ptr @create_shell_script(ptr noundef %172)
  store ptr %173, ptr %15, align 8, !tbaa !9
  %174 = load ptr, ptr %15, align 8, !tbaa !9
  %175 = icmp eq ptr %174, null
  br i1 %175, label %176, label %179

176:                                              ; preds = %171
  %177 = load ptr, ptr @stderr, align 8, !tbaa !9
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %177, ptr noundef @.str.56) #8
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %268

179:                                              ; preds = %171
  %180 = load ptr, ptr %6, align 8, !tbaa !9
  %181 = load ptr, ptr %7, align 8, !tbaa !9
  %182 = load ptr, ptr %15, align 8, !tbaa !9
  %183 = call i32 @merge(ptr noundef %180, ptr noundef %181, ptr noundef %182)
  store i32 %183, ptr %13, align 4, !tbaa !5
  br label %224

184:                                              ; preds = %163
  %185 = load ptr, ptr %5, align 8, !tbaa !9
  %186 = load i32, ptr @optind, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds ptr, ptr %185, i64 %187
  %189 = load ptr, ptr %188, align 8, !tbaa !9
  %190 = call i32 @strcmp(ptr noundef %189, ptr noundef @.str.58) #10
  %191 = icmp eq i32 %190, 0
  br i1 %191, label %192, label %220

192:                                              ; preds = %184
  %193 = load ptr, ptr %9, align 8, !tbaa !9
  %194 = icmp ne ptr %193, null
  br i1 %194, label %195, label %198

195:                                              ; preds = %192
  %196 = load ptr, ptr getelementptr inbounds ([5 x ptr], ptr @vars, i64 0, i64 4), align 16, !tbaa !9
  %197 = icmp ne ptr %196, null
  br i1 %197, label %201, label %198

198:                                              ; preds = %195, %192
  %199 = load ptr, ptr @stderr, align 8, !tbaa !9
  %200 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %199, ptr noundef @.str.59) #8
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %268

201:                                              ; preds = %195
  %202 = load ptr, ptr %9, align 8, !tbaa !9
  %203 = call zeroext i1 @directory_exists(ptr noundef %202)
  br i1 %203, label %207, label %204

204:                                              ; preds = %201
  %205 = load ptr, ptr @stderr, align 8, !tbaa !9
  %206 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %205, ptr noundef @.str.60) #8
  store i32 5, ptr %12, align 4
  br label %268

207:                                              ; preds = %201
  %208 = getelementptr inbounds [24 x i8], ptr %14, i64 0, i64 0
  %209 = call ptr @create_shell_script(ptr noundef %208)
  store ptr %209, ptr %15, align 8, !tbaa !9
  %210 = load ptr, ptr %15, align 8, !tbaa !9
  %211 = icmp eq ptr %210, null
  br i1 %211, label %212, label %215

212:                                              ; preds = %207
  %213 = load ptr, ptr @stderr, align 8, !tbaa !9
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %213, ptr noundef @.str.56) #8
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %268

215:                                              ; preds = %207
  %216 = load ptr, ptr %9, align 8, !tbaa !9
  %217 = load ptr, ptr %7, align 8, !tbaa !9
  %218 = load ptr, ptr %15, align 8, !tbaa !9
  %219 = call i32 @deref(ptr noundef %216, ptr noundef %217, ptr noundef %218)
  store i32 %219, ptr %13, align 4, !tbaa !5
  br label %223

220:                                              ; preds = %184
  %221 = load ptr, ptr @stderr, align 8, !tbaa !9
  %222 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %221, ptr noundef @.str.61) #8
  store i32 5, ptr %12, align 4
  br label %268

223:                                              ; preds = %215
  br label %224

224:                                              ; preds = %223, %179
  br label %225

225:                                              ; preds = %224, %158
  br label %226

226:                                              ; preds = %225, %138
  %227 = load ptr, ptr %15, align 8, !tbaa !9
  %228 = icmp ne ptr %227, null
  br i1 %228, label %229, label %261

229:                                              ; preds = %226
  %230 = load ptr, ptr %15, align 8, !tbaa !9
  %231 = call i32 @fclose(ptr noundef %230)
  %232 = load i8, ptr @force, align 1, !tbaa !11, !range !15, !noundef !16
  %233 = trunc i8 %232 to i1
  br i1 %233, label %234, label %257

234:                                              ; preds = %229
  %235 = getelementptr inbounds [24 x i8], ptr %14, i64 0, i64 0
  %236 = call i32 (ptr, ...) @printf(ptr noundef @.str.62, ptr noundef %235)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %237 = getelementptr inbounds [24 x i8], ptr %14, i64 0, i64 0
  %238 = call i64 @strlen(ptr noundef %237) #10
  %239 = mul i64 %238, 1
  %240 = add i64 %239, 10
  %241 = call noalias ptr @malloc(i64 noundef %240) #11
  store ptr %241, ptr %16, align 8, !tbaa !9
  %242 = load ptr, ptr %16, align 8, !tbaa !9
  %243 = icmp ne ptr %242, null
  br i1 %243, label %244, label %256

244:                                              ; preds = %234
  %245 = load ptr, ptr %16, align 8, !tbaa !9
  %246 = getelementptr inbounds [24 x i8], ptr %14, i64 0, i64 0
  %247 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %245, ptr noundef @.str.63, ptr noundef %246) #8
  %248 = load ptr, ptr %16, align 8, !tbaa !9
  %249 = call i32 @system(ptr noundef %248)
  %250 = load ptr, ptr %16, align 8, !tbaa !9
  %251 = getelementptr inbounds [24 x i8], ptr %14, i64 0, i64 0
  %252 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %250, ptr noundef @.str.64, ptr noundef %251) #8
  %253 = load ptr, ptr %16, align 8, !tbaa !9
  %254 = call i32 @system(ptr noundef %253)
  %255 = load ptr, ptr %16, align 8, !tbaa !9
  call void @free(ptr noundef %255) #8
  br label %256

256:                                              ; preds = %244, %234
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %260

257:                                              ; preds = %229
  %258 = getelementptr inbounds [24 x i8], ptr %14, i64 0, i64 0
  %259 = call i32 (ptr, ...) @printf(ptr noundef @.str.65, ptr noundef %258)
  br label %260

260:                                              ; preds = %257, %256
  br label %261

261:                                              ; preds = %260, %226
  %262 = load i32, ptr %13, align 4, !tbaa !5
  %263 = icmp ne i32 %262, 0
  br i1 %263, label %264, label %267

264:                                              ; preds = %261
  %265 = load ptr, ptr @stderr, align 8, !tbaa !9
  %266 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %265, ptr noundef @.str.66) #8
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %268

267:                                              ; preds = %261
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %268

268:                                              ; preds = %267, %264, %220, %212, %204, %198, %176, %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  %269 = load i32, ptr %12, align 4
  switch i32 %269, label %277 [
    i32 5, label %273
  ]

270:                                              ; preds = %125
  %271 = load ptr, ptr @stderr, align 8, !tbaa !9
  %272 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %271, ptr noundef @.str.67) #8
  br label %273

273:                                              ; preds = %270, %268, %105, %99, %93, %87, %79
  %274 = load ptr, ptr @stderr, align 8, !tbaa !9
  %275 = load ptr, ptr @program_name, align 8, !tbaa !9
  %276 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %274, ptr noundef @.str.68, ptr noundef %275) #8
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %277

277:                                              ; preds = %273, %268, %124, %111, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  %278 = load i32, ptr %3, align 4
  ret i32 %278
}

; Function Attrs: nounwind
declare ptr @basename(ptr noundef) #4

; Function Attrs: nounwind
declare i32 @getopt_long_only(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind
declare ptr @realpath(ptr noundef, ptr noundef) #4

declare void @version() #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

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

declare i32 @diff(ptr noundef, ptr noundef) #1

declare ptr @create_shell_script(ptr noundef) #1

declare i32 @vacuum(ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @merge(ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @deref(ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @fclose(ptr noundef) #1

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

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

declare i32 @system(ptr noundef) #1

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

attributes #0 = { 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 #1 = { "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 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = { noreturn 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { nounwind allocsize(0) }

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

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


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

%struct.option = type { ptr, i32, ptr, i32 }

@stderr = external local_unnamed_addr global ptr, align 8
@ignore = external dso_local local_unnamed_addr global i8, align 1
@main.long_options = external hidden global [12 x %struct.option], align 16
@program_name = external local_unnamed_addr global ptr, align 8
@.str.45 = external hidden unnamed_addr constant [16 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@vars = external local_unnamed_addr global [5 x ptr], align 16
@.str.46 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [13 x i8], align 1
@force = external dso_local local_unnamed_addr global i8, align 1
@verbose = external dso_local local_unnamed_addr global i8, align 1
@brief = external dso_local local_unnamed_addr global i8, align 1
@.str.48 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [66 x i8], align 1
@optind = external local_unnamed_addr global i32, align 4
@__const.main.filename_template = external hidden unnamed_addr constant [24 x i8], align 16
@.str.54 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [126 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @print_help(ptr noundef) local_unnamed_addr #0

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @check_mounted(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @directory_exists(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @directory_create(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @check_xattr_trusted(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca [24 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #11
  store i32 0, ptr %3, align 4, !tbaa !5
  %5 = load ptr, ptr %1, align 8, !tbaa !9
  %6 = tail call ptr @basename(ptr noundef %5) #11
  store ptr %6, ptr @program_name, align 8, !tbaa !9
  br label %7

7:                                                ; preds = %.backedge, %2
  %.063 = phi ptr [ null, %2 ], [ %.063.be, %.backedge ]
  %.061 = phi ptr [ null, %2 ], [ %.061.be, %.backedge ]
  %.059 = phi ptr [ null, %2 ], [ %.059.be, %.backedge ]
  %8 = call i32 @getopt_long_only(i32 noundef %0, ptr noundef nonnull %1, ptr noundef nonnull @.str.45, ptr noundef nonnull @main.long_options, ptr noundef nonnull %3) #11
  switch i32 %8, label %40 [
    i32 -1, label %43
    i32 108, label %9
    i32 117, label %13
    i32 109, label %17
    i32 76, label %21
    i32 85, label %27
    i32 105, label %33
    i32 102, label %34
    i32 104, label %35
    i32 118, label %37
    i32 98, label %38
    i32 86, label %39
  ]

9:                                                ; preds = %7
  %10 = load ptr, ptr @optarg, align 8, !tbaa !9
  %11 = call ptr @realpath(ptr noundef %10, ptr noundef null) #11
  %.not87 = icmp eq ptr %11, null
  br i1 %.not87, label %.backedge, label %12

12:                                               ; preds = %9
  store ptr %11, ptr @vars, align 16, !tbaa !9
  br label %.backedge

13:                                               ; preds = %7
  %14 = load ptr, ptr @optarg, align 8, !tbaa !9
  %15 = call ptr @realpath(ptr noundef %14, ptr noundef null) #11
  %.not86 = icmp eq ptr %15, null
  br i1 %.not86, label %.backedge, label %16

16:                                               ; preds = %13
  store ptr %15, ptr getelementptr inbounds (i8, ptr @vars, i64 8), align 8, !tbaa !9
  br label %.backedge

17:                                               ; preds = %7
  %18 = load ptr, ptr @optarg, align 8, !tbaa !9
  %19 = call ptr @realpath(ptr noundef %18, ptr noundef null) #11
  %.not85 = icmp eq ptr %19, null
  br i1 %.not85, label %.backedge, label %20

20:                                               ; preds = %17
  store ptr %19, ptr getelementptr inbounds (i8, ptr @vars, i64 16), align 16, !tbaa !9
  br label %.backedge

21:                                               ; preds = %7
  %22 = load ptr, ptr @optarg, align 8, !tbaa !9
  %23 = call zeroext i1 @directory_create(ptr noundef nonnull @.str.46, ptr noundef %22)
  %24 = load ptr, ptr @optarg, align 8, !tbaa !9
  %25 = call ptr @realpath(ptr noundef %24, ptr noundef null) #11
  %.not84 = icmp eq ptr %25, null
  br i1 %.not84, label %.backedge, label %26

26:                                               ; preds = %21
  store ptr %25, ptr getelementptr inbounds (i8, ptr @vars, i64 24), align 8, !tbaa !9
  br label %.backedge

27:                                               ; preds = %7
  %28 = load ptr, ptr @optarg, align 8, !tbaa !9
  %29 = call zeroext i1 @directory_create(ptr noundef nonnull @.str.47, ptr noundef %28)
  %30 = load ptr, ptr @optarg, align 8, !tbaa !9
  %31 = call ptr @realpath(ptr noundef %30, ptr noundef null) #11
  %.not83 = icmp eq ptr %31, null
  br i1 %.not83, label %.backedge, label %32

.backedge:                                        ; preds = %27, %32, %21, %26, %17, %20, %13, %16, %9, %12, %38, %37, %34, %33
  %.063.be = phi ptr [ %.063, %38 ], [ %.063, %37 ], [ %.063, %34 ], [ %.063, %33 ], [ %.063, %32 ], [ %.063, %27 ], [ %.063, %26 ], [ %.063, %21 ], [ %.063, %20 ], [ %.063, %17 ], [ %.063, %16 ], [ %.063, %13 ], [ %11, %12 ], [ null, %9 ]
  %.061.be = phi ptr [ %.061, %38 ], [ %.061, %37 ], [ %.061, %34 ], [ %.061, %33 ], [ %.061, %32 ], [ %.061, %27 ], [ %.061, %26 ], [ %.061, %21 ], [ %.061, %20 ], [ %.061, %17 ], [ %15, %16 ], [ null, %13 ], [ %.061, %12 ], [ %.061, %9 ]
  %.059.be = phi ptr [ %.059, %38 ], [ %.059, %37 ], [ %.059, %34 ], [ %.059, %33 ], [ %.059, %32 ], [ %.059, %27 ], [ %.059, %26 ], [ %.059, %21 ], [ %19, %20 ], [ null, %17 ], [ %.059, %16 ], [ %.059, %13 ], [ %.059, %12 ], [ %.059, %9 ]
  br label %7, !llvm.loop !11

32:                                               ; preds = %27
  store ptr %31, ptr getelementptr inbounds (i8, ptr @vars, i64 32), align 16, !tbaa !9
  br label %.backedge

33:                                               ; preds = %7
  store i8 1, ptr @ignore, align 1, !tbaa !13
  br label %.backedge

34:                                               ; preds = %7
  store i8 1, ptr @force, align 1, !tbaa !13
  br label %.backedge

35:                                               ; preds = %7
  %36 = load ptr, ptr @program_name, align 8, !tbaa !9
  call void @print_help(ptr noundef %36)
  br label %144

37:                                               ; preds = %7
  store i8 1, ptr @verbose, align 1, !tbaa !13
  store i8 0, ptr @brief, align 1, !tbaa !13
  br label %.backedge

38:                                               ; preds = %7
  store i8 0, ptr @verbose, align 1, !tbaa !13
  store i8 1, ptr @brief, align 1, !tbaa !13
  br label %.backedge

39:                                               ; preds = %7
  call void @version() #11
  call void @exit(i32 noundef 0) #12
  unreachable

40:                                               ; preds = %7
  %41 = load ptr, ptr @stderr, align 8, !tbaa !9
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str.48, i32 noundef %8) #13
  br label %140

43:                                               ; preds = %7
  %.not78 = icmp eq ptr %.063, null
  br i1 %.not78, label %44, label %47

44:                                               ; preds = %43
  %45 = load ptr, ptr @stderr, align 8, !tbaa !9
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str.49) #13
  br label %140

47:                                               ; preds = %43
  %48 = call zeroext i1 @directory_exists(ptr noundef nonnull %.063)
  br i1 %48, label %52, label %49

49:                                               ; preds = %47
  %50 = load ptr, ptr @stderr, align 8, !tbaa !9
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef nonnull @.str.50) #13
  br label %140

52:                                               ; preds = %47
  %.not79 = icmp eq ptr %.061, null
  br i1 %.not79, label %53, label %56

53:                                               ; preds = %52
  %54 = load ptr, ptr @stderr, align 8, !tbaa !9
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.51) #13
  br label %140

56:                                               ; preds = %52
  %57 = call zeroext i1 @directory_exists(ptr noundef nonnull %.061)
  br i1 %57, label %61, label %58

58:                                               ; preds = %56
  %59 = load ptr, ptr @stderr, align 8, !tbaa !9
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef nonnull @.str.52) #13
  br label %140

61:                                               ; preds = %56
  %62 = call zeroext i1 @check_xattr_trusted(ptr noundef nonnull %.061)
  br i1 %62, label %66, label %63

63:                                               ; preds = %61
  %64 = load ptr, ptr @stderr, align 8, !tbaa !9
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef nonnull @.str.53) #13
  br label %144

66:                                               ; preds = %61
  %67 = load ptr, ptr getelementptr inbounds (i8, ptr @vars, i64 24), align 8, !tbaa !9
  %68 = icmp ne ptr %67, null
  %69 = load ptr, ptr getelementptr inbounds (i8, ptr @vars, i64 32), align 16
  %70 = icmp ne ptr %69, null
  %or.cond = select i1 %68, i1 %70, i1 false
  br i1 %or.cond, label %73, label %71

71:                                               ; preds = %66
  %72 = call zeroext i1 @check_mounted(ptr noundef nonnull %.063, ptr noundef nonnull %.061)
  br i1 %72, label %144, label %73

73:                                               ; preds = %66, %71
  %74 = load i32, ptr @optind, align 4, !tbaa !5
  %75 = add nsw i32 %0, -1
  %76 = icmp eq i32 %74, %75
  br i1 %76, label %77, label %137

77:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #11
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %4, ptr noundef nonnull align 16 dereferenceable(24) @__const.main.filename_template, i64 24, i1 false)
  %78 = sext i32 %74 to i64
  %79 = getelementptr inbounds ptr, ptr %1, i64 %78
  %80 = load ptr, ptr %79, align 8, !tbaa !9
  %81 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %80, ptr noundef nonnull dereferenceable(1) @.str.54) #14
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %113, label %83

83:                                               ; preds = %77
  %84 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %80, ptr noundef nonnull dereferenceable(1) @.str.55) #14
  %85 = icmp eq i32 %84, 0
  br i1 %85, label %86, label %91

86:                                               ; preds = %83
  %87 = call ptr @create_shell_script(ptr noundef nonnull %4) #11
  %88 = icmp eq ptr %87, null
  br i1 %88, label %.thread95.sink.split, label %89

89:                                               ; preds = %86
  %90 = call i32 @vacuum(ptr noundef nonnull %.063, ptr noundef nonnull %.061, ptr noundef nonnull %87) #11
  br label %115

91:                                               ; preds = %83
  %92 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %80, ptr noundef nonnull dereferenceable(1) @.str.57) #14
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %94, label %99

94:                                               ; preds = %91
  %95 = call ptr @create_shell_script(ptr noundef nonnull %4) #11
  %96 = icmp eq ptr %95, null
  br i1 %96, label %.thread95.sink.split, label %97

97:                                               ; preds = %94
  %98 = call i32 @merge(ptr noundef nonnull %.063, ptr noundef nonnull %.061, ptr noundef nonnull %95) #11
  br label %115

99:                                               ; preds = %91
  %100 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %80, ptr noundef nonnull dereferenceable(1) @.str.58) #14
  %101 = icmp eq i32 %100, 0
  br i1 %101, label %102, label %134

102:                                              ; preds = %99
  %103 = icmp ne ptr %.059, null
  %104 = load ptr, ptr getelementptr inbounds (i8, ptr @vars, i64 32), align 16
  %105 = icmp ne ptr %104, null
  %or.cond3 = select i1 %103, i1 %105, i1 false
  br i1 %or.cond3, label %106, label %.thread95.sink.split

106:                                              ; preds = %102
  %107 = call zeroext i1 @directory_exists(ptr noundef nonnull %.059)
  br i1 %107, label %108, label %134

108:                                              ; preds = %106
  %109 = call ptr @create_shell_script(ptr noundef nonnull %4) #11
  %110 = icmp eq ptr %109, null
  br i1 %110, label %.thread95.sink.split, label %111

111:                                              ; preds = %108
  %112 = call i32 @deref(ptr noundef nonnull %.059, ptr noundef nonnull %.061, ptr noundef nonnull %109) #11
  br label %115

113:                                              ; preds = %77
  %114 = call i32 @diff(ptr noundef nonnull %.063, ptr noundef nonnull %.061) #11
  br label %131

115:                                              ; preds = %89, %97, %111
  %.057.ph = phi i32 [ %112, %111 ], [ %98, %97 ], [ %90, %89 ]
  %.056.ph = phi ptr [ %109, %111 ], [ %95, %97 ], [ %87, %89 ]
  %116 = call i32 @fclose(ptr noundef nonnull %.056.ph)
  %117 = load i8, ptr @force, align 1, !tbaa !13, !range !15, !noundef !16
  %118 = trunc nuw i8 %117 to i1
  br i1 %118, label %119, label %129

119:                                              ; preds = %115
  %120 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.62, ptr noundef nonnull %4)
  %121 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %4) #14
  %122 = add i64 %121, 10
  %123 = call noalias ptr @malloc(i64 noundef %122) #15
  %.not81 = icmp eq ptr %123, null
  br i1 %.not81, label %131, label %124

124:                                              ; preds = %119
  %125 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %123, ptr noundef nonnull dereferenceable(1) @.str.63, ptr noundef nonnull %4) #11
  %126 = call i32 @system(ptr noundef nonnull %123) #11
  %127 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %123, ptr noundef nonnull dereferenceable(1) @.str.64, ptr noundef nonnull %4) #11
  %128 = call i32 @system(ptr noundef nonnull %123) #11
  call void @free(ptr noundef nonnull %123) #11
  br label %131

129:                                              ; preds = %115
  %130 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.65, ptr noundef nonnull %4)
  br label %131

131:                                              ; preds = %113, %119, %124, %129
  %.05792 = phi i32 [ %.057.ph, %119 ], [ %.057.ph, %124 ], [ %.057.ph, %129 ], [ %114, %113 ]
  %.not82 = icmp eq i32 %.05792, 0
  br i1 %.not82, label %.thread95, label %.thread95.sink.split

.thread95.sink.split:                             ; preds = %131, %108, %102, %94, %86
  %.str.66.sink = phi ptr [ @.str.56, %86 ], [ @.str.56, %94 ], [ @.str.59, %102 ], [ @.str.56, %108 ], [ @.str.66, %131 ]
  %132 = load ptr, ptr @stderr, align 8, !tbaa !9
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef nonnull %.str.66.sink) #13
  br label %.thread95

.thread95:                                        ; preds = %.thread95.sink.split, %131
  %.0.ph = phi i32 [ 0, %131 ], [ 1, %.thread95.sink.split ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #11
  br label %144

134:                                              ; preds = %99, %106
  %.str.61.sink = phi ptr [ @.str.60, %106 ], [ @.str.61, %99 ]
  %135 = load ptr, ptr @stderr, align 8, !tbaa !9
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef nonnull %.str.61.sink) #13
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #11
  br label %140

137:                                              ; preds = %73
  %138 = load ptr, ptr @stderr, align 8, !tbaa !9
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef nonnull @.str.67) #13
  br label %140

140:                                              ; preds = %134, %137, %58, %53, %49, %44, %40
  %141 = load ptr, ptr @stderr, align 8, !tbaa !9
  %142 = load ptr, ptr @program_name, align 8, !tbaa !9
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %141, ptr noundef nonnull @.str.68, ptr noundef %142) #13
  br label %144

144:                                              ; preds = %.thread95, %71, %140, %63, %35
  %.1 = phi i32 [ 1, %140 ], [ 0, %35 ], [ 1, %63 ], [ 1, %71 ], [ %.0.ph, %.thread95 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #11
  ret i32 %.1
}

; Function Attrs: nounwind
declare ptr @basename(ptr noundef) local_unnamed_addr #5

; Function Attrs: nounwind
declare i32 @getopt_long_only(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef ptr @realpath(ptr nocapture noundef readonly, ptr noundef) local_unnamed_addr #1

declare void @version() local_unnamed_addr #6

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

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

declare i32 @diff(ptr noundef, ptr noundef) local_unnamed_addr #6

declare ptr @create_shell_script(ptr noundef) local_unnamed_addr #6

declare i32 @vacuum(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

declare i32 @merge(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

declare i32 @deref(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #8

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nofree
declare noundef i32 @system(ptr nocapture noundef readonly) local_unnamed_addr #9

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #10

attributes #0 = { 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 #1 = { 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 #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { noreturn 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 = { 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 #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nofree "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #11 = { nounwind }
attributes #12 = { noreturn nounwind }
attributes #13 = { cold nounwind }
attributes #14 = { nounwind willreturn memory(read) }
attributes #15 = { nounwind allocsize(0) }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass