; LLVM IR from clibs/clib :: test/cache (cache-test)

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

@__assert_failures = external hidden global i32, align 4
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@stderr = external global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [68 x i8], align 1
@__assert_bail = external hidden global i32, align 4
@.str.11 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

23:                                               ; preds = %487, %0
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %2, align 4, !tbaa !5
  %26 = icmp eq i32 %24, 0
  br i1 %26, label %27, label %30

27:                                               ; preds = %23
  %28 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef @.str.5)
  %29 = icmp ne i32 %28, 0
  br label %30

30:                                               ; preds = %27, %23
  %31 = phi i1 [ false, %23 ], [ %29, %27 ]
  br i1 %31, label %33, label %32

32:                                               ; preds = %30
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %489

33:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store ptr @.str.6, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store ptr @.str.7, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store ptr @.str.8, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8192, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %34 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  store i32 %34, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %61, %33
  %36 = load i32, ptr %10, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %10, align 4, !tbaa !5
  %38 = icmp eq i32 %36, 0
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %63

40:                                               ; preds = %35
  br label %41

41:                                               ; preds = %40
  %42 = load i32, ptr %8, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = call i32 @clib_cache_init(i64 noundef %43)
  %45 = icmp ne i32 0, %44
  br i1 %45, label %46, label %58

46:                                               ; preds = %41
  %47 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr @__assert_failures, align 4, !tbaa !5
  %49 = load ptr, ptr @stderr, align 8, !tbaa !9
  %50 = load i32, ptr %8, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = call i32 @clib_cache_init(i64 noundef %51)
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef @.str.9, i32 noundef 0, i32 noundef %52, ptr noundef @.str.10, i32 noundef 43) #6
  %54 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %57

56:                                               ; preds = %46
  call void @abort() #7
  unreachable

57:                                               ; preds = %46
  br label %58

58:                                               ; preds = %57, %41
  br label %59

59:                                               ; preds = %58
  br label %60

60:                                               ; preds = %59
  br label %61

61:                                               ; preds = %60
  %62 = load i32, ptr %9, align 4, !tbaa !5
  call void @__describe_after_spec(ptr noundef @.str.11, i32 noundef %62)
  br label %35, !llvm.loop !11

63:                                               ; preds = %39
  %64 = getelementptr inbounds [8192 x i8], ptr %7, i64 0, i64 0
  %65 = call ptr @clib_cache_dir()
  %66 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %64, ptr noundef @.str.12, ptr noundef %65) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %67 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  store i32 %67, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %142, %63
  %69 = load i32, ptr %12, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %12, align 4, !tbaa !5
  %71 = icmp eq i32 %69, 0
  br i1 %71, label %73, label %72

72:                                               ; preds = %68
  store i32 10, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %144

73:                                               ; preds = %68
  br label %74

74:                                               ; preds = %73
  %75 = load ptr, ptr %4, align 8, !tbaa !9
  %76 = load ptr, ptr %5, align 8, !tbaa !9
  %77 = load ptr, ptr %6, align 8, !tbaa !9
  %78 = call i32 @clib_cache_save_package(ptr noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef @.str.13)
  %79 = icmp ne i32 0, %78
  br i1 %79, label %80, label %93

80:                                               ; preds = %74
  %81 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr @__assert_failures, align 4, !tbaa !5
  %83 = load ptr, ptr @stderr, align 8, !tbaa !9
  %84 = load ptr, ptr %4, align 8, !tbaa !9
  %85 = load ptr, ptr %5, align 8, !tbaa !9
  %86 = load ptr, ptr %6, align 8, !tbaa !9
  %87 = call i32 @clib_cache_save_package(ptr noundef %84, ptr noundef %85, ptr noundef %86, ptr noundef @.str.13)
  %88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str.9, i32 noundef 0, i32 noundef %87, ptr noundef @.str.10, i32 noundef 50) #6
  %89 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %92

91:                                               ; preds = %80
  call void @abort() #7
  unreachable

92:                                               ; preds = %80
  br label %93

93:                                               ; preds = %92, %74
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  %97 = load ptr, ptr %4, align 8, !tbaa !9
  %98 = load ptr, ptr %5, align 8, !tbaa !9
  %99 = load ptr, ptr %6, align 8, !tbaa !9
  %100 = call i32 @clib_cache_has_package(ptr noundef %97, ptr noundef %98, ptr noundef %99)
  %101 = icmp ne i32 1, %100
  br i1 %101, label %102, label %115

102:                                              ; preds = %96
  %103 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr @__assert_failures, align 4, !tbaa !5
  %105 = load ptr, ptr @stderr, align 8, !tbaa !9
  %106 = load ptr, ptr %4, align 8, !tbaa !9
  %107 = load ptr, ptr %5, align 8, !tbaa !9
  %108 = load ptr, ptr %6, align 8, !tbaa !9
  %109 = call i32 @clib_cache_has_package(ptr noundef %106, ptr noundef %107, ptr noundef %108)
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str.9, i32 noundef 1, i32 noundef %109, ptr noundef @.str.10, i32 noundef 51) #6
  %111 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %114

113:                                              ; preds = %102
  call void @abort() #7
  unreachable

114:                                              ; preds = %102
  br label %115

115:                                              ; preds = %114, %96
  br label %116

116:                                              ; preds = %115
  br label %117

117:                                              ; preds = %116
  br label %118

118:                                              ; preds = %117
  %119 = load ptr, ptr %4, align 8, !tbaa !9
  %120 = load ptr, ptr %5, align 8, !tbaa !9
  %121 = load ptr, ptr %6, align 8, !tbaa !9
  %122 = call i32 @clib_cache_is_expired_package(ptr noundef %119, ptr noundef %120, ptr noundef %121)
  %123 = icmp ne i32 0, %122
  br i1 %123, label %124, label %137

124:                                              ; preds = %118
  %125 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr @__assert_failures, align 4, !tbaa !5
  %127 = load ptr, ptr @stderr, align 8, !tbaa !9
  %128 = load ptr, ptr %4, align 8, !tbaa !9
  %129 = load ptr, ptr %5, align 8, !tbaa !9
  %130 = load ptr, ptr %6, align 8, !tbaa !9
  %131 = call i32 @clib_cache_is_expired_package(ptr noundef %128, ptr noundef %129, ptr noundef %130)
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef @.str.9, i32 noundef 0, i32 noundef %131, ptr noundef @.str.10, i32 noundef 52) #6
  %133 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %136

135:                                              ; preds = %124
  call void @abort() #7
  unreachable

136:                                              ; preds = %124
  br label %137

137:                                              ; preds = %136, %118
  br label %138

138:                                              ; preds = %137
  br label %139

139:                                              ; preds = %138
  %140 = getelementptr inbounds [8192 x i8], ptr %7, i64 0, i64 0
  call void @assert_cached_dir(ptr noundef %140, i32 noundef 0)
  %141 = getelementptr inbounds [8192 x i8], ptr %7, i64 0, i64 0
  call void @assert_cached_files(ptr noundef %141)
  br label %142

142:                                              ; preds = %139
  %143 = load i32, ptr %11, align 4, !tbaa !5
  call void @__describe_after_spec(ptr noundef @.str.14, i32 noundef %143)
  br label %68, !llvm.loop !13

144:                                              ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %145 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  store i32 %145, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %281, %144
  %147 = load i32, ptr %14, align 4, !tbaa !5
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %14, align 4, !tbaa !5
  %149 = icmp eq i32 %147, 0
  br i1 %149, label %151, label %150

150:                                              ; preds = %146
  store i32 19, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %283

151:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  br label %152

152:                                              ; preds = %151
  %153 = call i32 @clib_cache_has_json(ptr noundef @.str.15, ptr noundef @.str.16, ptr noundef @.str.17)
  %154 = icmp ne i32 0, %153
  br i1 %154, label %155, label %165

155:                                              ; preds = %152
  %156 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr @__assert_failures, align 4, !tbaa !5
  %158 = load ptr, ptr @stderr, align 8, !tbaa !9
  %159 = call i32 @clib_cache_has_json(ptr noundef @.str.15, ptr noundef @.str.16, ptr noundef @.str.17)
  %160 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %158, ptr noundef @.str.9, i32 noundef 0, i32 noundef %159, ptr noundef @.str.10, i32 noundef 61) #6
  %161 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %163, label %164

163:                                              ; preds = %155
  call void @abort() #7
  unreachable

164:                                              ; preds = %155
  br label %165

165:                                              ; preds = %164, %152
  br label %166

166:                                              ; preds = %165
  br label %167

167:                                              ; preds = %166
  br label %168

168:                                              ; preds = %167
  %169 = call ptr @clib_cache_read_json(ptr noundef @.str.15, ptr noundef @.str.16, ptr noundef @.str.17)
  %170 = icmp ne ptr %169, null
  br i1 %170, label %171, label %180

171:                                              ; preds = %168
  %172 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr @__assert_failures, align 4, !tbaa !5
  %174 = load ptr, ptr @stderr, align 8, !tbaa !9
  %175 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %174, ptr noundef @.str.18, ptr noundef @.str.19, ptr noundef @.str.10, i32 noundef 62) #6
  %176 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %178, label %179

178:                                              ; preds = %171
  call void @abort() #7
  unreachable

179:                                              ; preds = %171
  br label %180

180:                                              ; preds = %179, %168
  br label %181

181:                                              ; preds = %180
  br label %182

182:                                              ; preds = %181
  br label %183

183:                                              ; preds = %182
  %184 = call i32 @clib_cache_save_json(ptr noundef @.str.15, ptr noundef @.str.16, ptr noundef @.str.17, ptr noundef @.str.20)
  %185 = icmp ne i32 2, %184
  br i1 %185, label %186, label %196

186:                                              ; preds = %183
  %187 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr @__assert_failures, align 4, !tbaa !5
  %189 = load ptr, ptr @stderr, align 8, !tbaa !9
  %190 = call i32 @clib_cache_save_json(ptr noundef @.str.15, ptr noundef @.str.16, ptr noundef @.str.17, ptr noundef @.str.20)
  %191 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %189, ptr noundef @.str.9, i32 noundef 2, i32 noundef %190, ptr noundef @.str.10, i32 noundef 64) #6
  %192 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %195

194:                                              ; preds = %186
  call void @abort() #7
  unreachable

195:                                              ; preds = %186
  br label %196

196:                                              ; preds = %195, %183
  br label %197

197:                                              ; preds = %196
  br label %198

198:                                              ; preds = %197
  br label %199

199:                                              ; preds = %198
  %200 = call ptr @clib_cache_read_json(ptr noundef @.str.15, ptr noundef @.str.16, ptr noundef @.str.17)
  store ptr %200, ptr %15, align 8, !tbaa !9
  %201 = call i32 @strcmp(ptr noundef @.str.20, ptr noundef %200) #8
  %202 = icmp ne i32 0, %201
  br i1 %202, label %203, label %214

203:                                              ; preds = %199
  %204 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr @__assert_failures, align 4, !tbaa !5
  %206 = load ptr, ptr @stderr, align 8, !tbaa !9
  %207 = call ptr @clib_cache_read_json(ptr noundef @.str.15, ptr noundef @.str.16, ptr noundef @.str.17)
  store ptr %207, ptr %15, align 8, !tbaa !9
  %208 = call i32 @strcmp(ptr noundef @.str.20, ptr noundef %207) #8
  %209 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %206, ptr noundef @.str.9, i32 noundef 0, i32 noundef %208, ptr noundef @.str.10, i32 noundef 66) #6
  %210 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %212, label %213

212:                                              ; preds = %203
  call void @abort() #7
  unreachable

213:                                              ; preds = %203
  br label %214

214:                                              ; preds = %213, %199
  br label %215

215:                                              ; preds = %214
  br label %216

216:                                              ; preds = %215
  %217 = load ptr, ptr %15, align 8, !tbaa !9
  call void @free(ptr noundef %217) #6
  br label %218

218:                                              ; preds = %216
  %219 = call i32 @clib_cache_has_json(ptr noundef @.str.15, ptr noundef @.str.16, ptr noundef @.str.17)
  %220 = icmp ne i32 1, %219
  br i1 %220, label %221, label %231

221:                                              ; preds = %218
  %222 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr @__assert_failures, align 4, !tbaa !5
  %224 = load ptr, ptr @stderr, align 8, !tbaa !9
  %225 = call i32 @clib_cache_has_json(ptr noundef @.str.15, ptr noundef @.str.16, ptr noundef @.str.17)
  %226 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %224, ptr noundef @.str.9, i32 noundef 1, i32 noundef %225, ptr noundef @.str.10, i32 noundef 68) #6
  %227 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %228 = icmp ne i32 %227, 0
  br i1 %228, label %229, label %230

229:                                              ; preds = %221
  call void @abort() #7
  unreachable

230:                                              ; preds = %221
  br label %231

231:                                              ; preds = %230, %218
  br label %232

232:                                              ; preds = %231
  br label %233

233:                                              ; preds = %232
  br label %234

234:                                              ; preds = %233
  %235 = call i32 @clib_cache_delete_json(ptr noundef @.str.15, ptr noundef @.str.16, ptr noundef @.str.17)
  %236 = icmp ne i32 0, %235
  br i1 %236, label %237, label %247

237:                                              ; preds = %234
  %238 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr @__assert_failures, align 4, !tbaa !5
  %240 = load ptr, ptr @stderr, align 8, !tbaa !9
  %241 = call i32 @clib_cache_delete_json(ptr noundef @.str.15, ptr noundef @.str.16, ptr noundef @.str.17)
  %242 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %240, ptr noundef @.str.9, i32 noundef 0, i32 noundef %241, ptr noundef @.str.10, i32 noundef 70) #6
  %243 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %244 = icmp ne i32 %243, 0
  br i1 %244, label %245, label %246

245:                                              ; preds = %237
  call void @abort() #7
  unreachable

246:                                              ; preds = %237
  br label %247

247:                                              ; preds = %246, %234
  br label %248

248:                                              ; preds = %247
  br label %249

249:                                              ; preds = %248
  br label %250

250:                                              ; preds = %249
  %251 = call i32 @clib_cache_has_json(ptr noundef @.str.15, ptr noundef @.str.16, ptr noundef @.str.17)
  %252 = icmp ne i32 0, %251
  br i1 %252, label %253, label %263

253:                                              ; preds = %250
  %254 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr @__assert_failures, align 4, !tbaa !5
  %256 = load ptr, ptr @stderr, align 8, !tbaa !9
  %257 = call i32 @clib_cache_has_json(ptr noundef @.str.15, ptr noundef @.str.16, ptr noundef @.str.17)
  %258 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %256, ptr noundef @.str.9, i32 noundef 0, i32 noundef %257, ptr noundef @.str.10, i32 noundef 71) #6
  %259 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %260 = icmp ne i32 %259, 0
  br i1 %260, label %261, label %262

261:                                              ; preds = %253
  call void @abort() #7
  unreachable

262:                                              ; preds = %253
  br label %263

263:                                              ; preds = %262, %250
  br label %264

264:                                              ; preds = %263
  br label %265

265:                                              ; preds = %264
  br label %266

266:                                              ; preds = %265
  %267 = call ptr @clib_cache_read_json(ptr noundef @.str.15, ptr noundef @.str.16, ptr noundef @.str.17)
  %268 = icmp ne ptr %267, null
  br i1 %268, label %269, label %278

269:                                              ; preds = %266
  %270 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr @__assert_failures, align 4, !tbaa !5
  %272 = load ptr, ptr @stderr, align 8, !tbaa !9
  %273 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %272, ptr noundef @.str.18, ptr noundef @.str.19, ptr noundef @.str.10, i32 noundef 72) #6
  %274 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %275 = icmp ne i32 %274, 0
  br i1 %275, label %276, label %277

276:                                              ; preds = %269
  call void @abort() #7
  unreachable

277:                                              ; preds = %269
  br label %278

278:                                              ; preds = %277, %266
  br label %279

279:                                              ; preds = %278
  br label %280

280:                                              ; preds = %279
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %281

281:                                              ; preds = %280
  %282 = load i32, ptr %13, align 4, !tbaa !5
  call void @__describe_after_spec(ptr noundef @.str.21, i32 noundef %282)
  br label %146, !llvm.loop !14

283:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %284 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  store i32 %284, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %285

285:                                              ; preds = %421, %283
  %286 = load i32, ptr %17, align 4, !tbaa !5
  %287 = add nsw i32 %286, 1
  store i32 %287, ptr %17, align 4, !tbaa !5
  %288 = icmp eq i32 %286, 0
  br i1 %288, label %290, label %289

289:                                              ; preds = %285
  store i32 38, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %423

290:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %291 = call i32 @clib_cache_delete_search()
  br label %292

292:                                              ; preds = %290
  %293 = call i32 @clib_cache_has_search()
  %294 = icmp ne i32 0, %293
  br i1 %294, label %295, label %305

295:                                              ; preds = %292
  %296 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %297 = add nsw i32 %296, 1
  store i32 %297, ptr @__assert_failures, align 4, !tbaa !5
  %298 = load ptr, ptr @stderr, align 8, !tbaa !9
  %299 = call i32 @clib_cache_has_search()
  %300 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %298, ptr noundef @.str.9, i32 noundef 0, i32 noundef %299, ptr noundef @.str.10, i32 noundef 80) #6
  %301 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %302 = icmp ne i32 %301, 0
  br i1 %302, label %303, label %304

303:                                              ; preds = %295
  call void @abort() #7
  unreachable

304:                                              ; preds = %295
  br label %305

305:                                              ; preds = %304, %292
  br label %306

306:                                              ; preds = %305
  br label %307

307:                                              ; preds = %306
  br label %308

308:                                              ; preds = %307
  %309 = call ptr @clib_cache_read_search()
  %310 = icmp ne ptr %309, null
  br i1 %310, label %311, label %320

311:                                              ; preds = %308
  %312 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr @__assert_failures, align 4, !tbaa !5
  %314 = load ptr, ptr @stderr, align 8, !tbaa !9
  %315 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %314, ptr noundef @.str.18, ptr noundef @.str.22, ptr noundef @.str.10, i32 noundef 81) #6
  %316 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %317 = icmp ne i32 %316, 0
  br i1 %317, label %318, label %319

318:                                              ; preds = %311
  call void @abort() #7
  unreachable

319:                                              ; preds = %311
  br label %320

320:                                              ; preds = %319, %308
  br label %321

321:                                              ; preds = %320
  br label %322

322:                                              ; preds = %321
  br label %323

323:                                              ; preds = %322
  %324 = call i32 @clib_cache_save_search(ptr noundef @.str.23)
  %325 = icmp ne i32 13, %324
  br i1 %325, label %326, label %336

326:                                              ; preds = %323
  %327 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %328 = add nsw i32 %327, 1
  store i32 %328, ptr @__assert_failures, align 4, !tbaa !5
  %329 = load ptr, ptr @stderr, align 8, !tbaa !9
  %330 = call i32 @clib_cache_save_search(ptr noundef @.str.23)
  %331 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %329, ptr noundef @.str.9, i32 noundef 13, i32 noundef %330, ptr noundef @.str.10, i32 noundef 83) #6
  %332 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %333 = icmp ne i32 %332, 0
  br i1 %333, label %334, label %335

334:                                              ; preds = %326
  call void @abort() #7
  unreachable

335:                                              ; preds = %326
  br label %336

336:                                              ; preds = %335, %323
  br label %337

337:                                              ; preds = %336
  br label %338

338:                                              ; preds = %337
  br label %339

339:                                              ; preds = %338
  %340 = call i32 @clib_cache_has_search()
  %341 = icmp ne i32 1, %340
  br i1 %341, label %342, label %352

342:                                              ; preds = %339
  %343 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %344 = add nsw i32 %343, 1
  store i32 %344, ptr @__assert_failures, align 4, !tbaa !5
  %345 = load ptr, ptr @stderr, align 8, !tbaa !9
  %346 = call i32 @clib_cache_has_search()
  %347 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %345, ptr noundef @.str.9, i32 noundef 1, i32 noundef %346, ptr noundef @.str.10, i32 noundef 84) #6
  %348 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %349 = icmp ne i32 %348, 0
  br i1 %349, label %350, label %351

350:                                              ; preds = %342
  call void @abort() #7
  unreachable

351:                                              ; preds = %342
  br label %352

352:                                              ; preds = %351, %339
  br label %353

353:                                              ; preds = %352
  br label %354

354:                                              ; preds = %353
  br label %355

355:                                              ; preds = %354
  %356 = call ptr @clib_cache_read_search()
  store ptr %356, ptr %18, align 8, !tbaa !9
  %357 = call i32 @strcmp(ptr noundef @.str.23, ptr noundef %356) #8
  %358 = icmp ne i32 0, %357
  br i1 %358, label %359, label %370

359:                                              ; preds = %355
  %360 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %361 = add nsw i32 %360, 1
  store i32 %361, ptr @__assert_failures, align 4, !tbaa !5
  %362 = load ptr, ptr @stderr, align 8, !tbaa !9
  %363 = call ptr @clib_cache_read_search()
  store ptr %363, ptr %18, align 8, !tbaa !9
  %364 = call i32 @strcmp(ptr noundef @.str.23, ptr noundef %363) #8
  %365 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %362, ptr noundef @.str.9, i32 noundef 0, i32 noundef %364, ptr noundef @.str.10, i32 noundef 86) #6
  %366 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %367 = icmp ne i32 %366, 0
  br i1 %367, label %368, label %369

368:                                              ; preds = %359
  call void @abort() #7
  unreachable

369:                                              ; preds = %359
  br label %370

370:                                              ; preds = %369, %355
  br label %371

371:                                              ; preds = %370
  br label %372

372:                                              ; preds = %371
  %373 = load ptr, ptr %18, align 8, !tbaa !9
  call void @free(ptr noundef %373) #6
  br label %374

374:                                              ; preds = %372
  %375 = call i32 @clib_cache_delete_search()
  %376 = icmp ne i32 0, %375
  br i1 %376, label %377, label %387

377:                                              ; preds = %374
  %378 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %379 = add nsw i32 %378, 1
  store i32 %379, ptr @__assert_failures, align 4, !tbaa !5
  %380 = load ptr, ptr @stderr, align 8, !tbaa !9
  %381 = call i32 @clib_cache_delete_search()
  %382 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %380, ptr noundef @.str.9, i32 noundef 0, i32 noundef %381, ptr noundef @.str.10, i32 noundef 89) #6
  %383 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %384 = icmp ne i32 %383, 0
  br i1 %384, label %385, label %386

385:                                              ; preds = %377
  call void @abort() #7
  unreachable

386:                                              ; preds = %377
  br label %387

387:                                              ; preds = %386, %374
  br label %388

388:                                              ; preds = %387
  br label %389

389:                                              ; preds = %388
  br label %390

390:                                              ; preds = %389
  %391 = call i32 @clib_cache_has_search()
  %392 = icmp ne i32 0, %391
  br i1 %392, label %393, label %403

393:                                              ; preds = %390
  %394 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %395 = add nsw i32 %394, 1
  store i32 %395, ptr @__assert_failures, align 4, !tbaa !5
  %396 = load ptr, ptr @stderr, align 8, !tbaa !9
  %397 = call i32 @clib_cache_has_search()
  %398 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %396, ptr noundef @.str.9, i32 noundef 0, i32 noundef %397, ptr noundef @.str.10, i32 noundef 90) #6
  %399 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %400 = icmp ne i32 %399, 0
  br i1 %400, label %401, label %402

401:                                              ; preds = %393
  call void @abort() #7
  unreachable

402:                                              ; preds = %393
  br label %403

403:                                              ; preds = %402, %390
  br label %404

404:                                              ; preds = %403
  br label %405

405:                                              ; preds = %404
  br label %406

406:                                              ; preds = %405
  %407 = call ptr @clib_cache_read_search()
  %408 = icmp ne ptr %407, null
  br i1 %408, label %409, label %418

409:                                              ; preds = %406
  %410 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %411 = add nsw i32 %410, 1
  store i32 %411, ptr @__assert_failures, align 4, !tbaa !5
  %412 = load ptr, ptr @stderr, align 8, !tbaa !9
  %413 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %412, ptr noundef @.str.18, ptr noundef @.str.22, ptr noundef @.str.10, i32 noundef 91) #6
  %414 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %415 = icmp ne i32 %414, 0
  br i1 %415, label %416, label %417

416:                                              ; preds = %409
  call void @abort() #7
  unreachable

417:                                              ; preds = %409
  br label %418

418:                                              ; preds = %417, %406
  br label %419

419:                                              ; preds = %418
  br label %420

420:                                              ; preds = %419
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %421

421:                                              ; preds = %420
  %422 = load i32, ptr %16, align 4, !tbaa !5
  call void @__describe_after_spec(ptr noundef @.str.24, i32 noundef %422)
  br label %285, !llvm.loop !15

423:                                              ; preds = %289
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %424 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  store i32 %424, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %425

425:                                              ; preds = %483, %423
  %426 = load i32, ptr %20, align 4, !tbaa !5
  %427 = add nsw i32 %426, 1
  store i32 %427, ptr %20, align 4, !tbaa !5
  %428 = icmp eq i32 %426, 0
  br i1 %428, label %430, label %429

429:                                              ; preds = %425
  store i32 57, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %485

430:                                              ; preds = %425
  %431 = call i32 @clib_cache_delete_search()
  br label %432

432:                                              ; preds = %430
  %433 = call i32 @clib_cache_save_search(ptr noundef @.str.23)
  %434 = icmp ne i32 13, %433
  br i1 %434, label %435, label %445

435:                                              ; preds = %432
  %436 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %437 = add nsw i32 %436, 1
  store i32 %437, ptr @__assert_failures, align 4, !tbaa !5
  %438 = load ptr, ptr @stderr, align 8, !tbaa !9
  %439 = call i32 @clib_cache_save_search(ptr noundef @.str.23)
  %440 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %438, ptr noundef @.str.9, i32 noundef 13, i32 noundef %439, ptr noundef @.str.10, i32 noundef 97) #6
  %441 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %442 = icmp ne i32 %441, 0
  br i1 %442, label %443, label %444

443:                                              ; preds = %435
  call void @abort() #7
  unreachable

444:                                              ; preds = %435
  br label %445

445:                                              ; preds = %444, %432
  br label %446

446:                                              ; preds = %445
  br label %447

447:                                              ; preds = %446
  br label %448

448:                                              ; preds = %447
  %449 = call i32 @clib_cache_has_search()
  %450 = icmp ne i32 1, %449
  br i1 %450, label %451, label %461

451:                                              ; preds = %448
  %452 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %453 = add nsw i32 %452, 1
  store i32 %453, ptr @__assert_failures, align 4, !tbaa !5
  %454 = load ptr, ptr @stderr, align 8, !tbaa !9
  %455 = call i32 @clib_cache_has_search()
  %456 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %454, ptr noundef @.str.9, i32 noundef 1, i32 noundef %455, ptr noundef @.str.10, i32 noundef 98) #6
  %457 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %458 = icmp ne i32 %457, 0
  br i1 %458, label %459, label %460

459:                                              ; preds = %451
  call void @abort() #7
  unreachable

460:                                              ; preds = %451
  br label %461

461:                                              ; preds = %460, %448
  br label %462

462:                                              ; preds = %461
  br label %463

463:                                              ; preds = %462
  %464 = load i32, ptr %8, align 4, !tbaa !5
  %465 = add nsw i32 %464, 1
  %466 = call i32 @sleep(i32 noundef %465)
  br label %467

467:                                              ; preds = %463
  %468 = call i32 @clib_cache_has_search()
  %469 = icmp ne i32 0, %468
  br i1 %469, label %470, label %480

470:                                              ; preds = %467
  %471 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %472 = add nsw i32 %471, 1
  store i32 %472, ptr @__assert_failures, align 4, !tbaa !5
  %473 = load ptr, ptr @stderr, align 8, !tbaa !9
  %474 = call i32 @clib_cache_has_search()
  %475 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %473, ptr noundef @.str.9, i32 noundef 0, i32 noundef %474, ptr noundef @.str.10, i32 noundef 102) #6
  %476 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %477 = icmp ne i32 %476, 0
  br i1 %477, label %478, label %479

478:                                              ; preds = %470
  call void @abort() #7
  unreachable

479:                                              ; preds = %470
  br label %480

480:                                              ; preds = %479, %467
  br label %481

481:                                              ; preds = %480
  br label %482

482:                                              ; preds = %481
  br label %483

483:                                              ; preds = %482
  %484 = load i32, ptr %19, align 4, !tbaa !5
  call void @__describe_after_spec(ptr noundef @.str.25, i32 noundef %484)
  br label %425, !llvm.loop !16

485:                                              ; preds = %429
  %486 = call i32 @clib_cache_delete_search()
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8192, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %487

487:                                              ; preds = %485
  %488 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
  br label %23, !llvm.loop !17

489:                                              ; preds = %32
  %490 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  ret i32 %490
}

declare i32 @rimraf(ptr noundef) #1

declare ptr @clib_cache_dir() #1

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

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

declare i32 @clib_cache_init(i64 noundef) #1

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

; Function Attrs: noreturn nounwind
declare void @abort() #4

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @assert_cached_dir(ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @assert_cached_files(ptr noundef) #0

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

declare ptr @clib_cache_read_json(ptr noundef, ptr noundef, ptr noundef) #1

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

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

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

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

declare i32 @clib_cache_delete_search() #1

declare i32 @clib_cache_has_search() #1

declare ptr @clib_cache_read_search() #1

declare i32 @clib_cache_save_search(ptr noundef) #1

declare i32 @sleep(i32 noundef) #1

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 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 #6 = { nounwind }
attributes #7 = { noreturn 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 = !{!"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 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


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

@__assert_failures = external hidden local_unnamed_addr global i32, align 4
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [68 x i8], align 1
@__assert_bail = external hidden local_unnamed_addr global i32, align 4
@.str.11 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [2 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
  %1 = alloca [8192 x i8], align 16
  %2 = tail call ptr @clib_cache_dir() #7
  %3 = tail call i32 @rimraf(ptr noundef %2) #7
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull @.str.5)
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %.critedge, label %.critedge87

.critedge:                                        ; preds = %241, %0
  %5 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  ret i32 %5

.critedge87:                                      ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8192, ptr nonnull %1) #7
  %6 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %7 = tail call i32 @clib_cache_init(i64 noundef 1) #7
  %.not84 = icmp eq i32 %7, 0
  br i1 %.not84, label %.critedge89, label %8

8:                                                ; preds = %.critedge87
  %9 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %10 = add nsw i32 %9, 1
  store i32 %10, ptr @__assert_failures, align 4, !tbaa !5
  %11 = load ptr, ptr @stderr, align 8, !tbaa !9
  %12 = tail call i32 @clib_cache_init(i64 noundef 1) #7
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str.9, i32 noundef 0, i32 noundef %12, ptr noundef nonnull @.str.10, i32 noundef 43) #8
  %14 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not85 = icmp eq i32 %14, 0
  br i1 %.not85, label %.critedge89, label %15

15:                                               ; preds = %8
  tail call void @abort() #9
  unreachable

.critedge89:                                      ; preds = %.critedge87, %8
  tail call void @__describe_after_spec(ptr noundef nonnull @.str.11, i32 noundef %6)
  %16 = tail call ptr @clib_cache_dir() #7
  %17 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) @.str.12, ptr noundef %16) #7
  %18 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %19 = tail call i32 @clib_cache_save_package(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.13) #7
  %.not78 = icmp eq i32 %19, 0
  br i1 %.not78, label %28, label %20

20:                                               ; preds = %.critedge89
  %21 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr @__assert_failures, align 4, !tbaa !5
  %23 = load ptr, ptr @stderr, align 8, !tbaa !9
  %24 = tail call i32 @clib_cache_save_package(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.13) #7
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.9, i32 noundef 0, i32 noundef %24, ptr noundef nonnull @.str.10, i32 noundef 50) #8
  %26 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not79 = icmp eq i32 %26, 0
  br i1 %.not79, label %28, label %27

27:                                               ; preds = %20
  tail call void @abort() #9
  unreachable

28:                                               ; preds = %.critedge89, %20
  %29 = tail call i32 @clib_cache_has_package(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8) #7
  %.not80 = icmp eq i32 %29, 1
  br i1 %.not80, label %38, label %30

30:                                               ; preds = %28
  %31 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr @__assert_failures, align 4, !tbaa !5
  %33 = load ptr, ptr @stderr, align 8, !tbaa !9
  %34 = tail call i32 @clib_cache_has_package(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8) #7
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str.9, i32 noundef 1, i32 noundef %34, ptr noundef nonnull @.str.10, i32 noundef 51) #8
  %36 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not81 = icmp eq i32 %36, 0
  br i1 %.not81, label %38, label %37

37:                                               ; preds = %30
  tail call void @abort() #9
  unreachable

38:                                               ; preds = %28, %30
  %39 = tail call i32 @clib_cache_is_expired_package(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8) #7
  %.not82 = icmp eq i32 %39, 0
  br i1 %.not82, label %.critedge91, label %40

40:                                               ; preds = %38
  %41 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr @__assert_failures, align 4, !tbaa !5
  %43 = load ptr, ptr @stderr, align 8, !tbaa !9
  %44 = tail call i32 @clib_cache_is_expired_package(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8) #7
  %45 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str.9, i32 noundef 0, i32 noundef %44, ptr noundef nonnull @.str.10, i32 noundef 52) #8
  %46 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not83 = icmp eq i32 %46, 0
  br i1 %.not83, label %.critedge91, label %47

47:                                               ; preds = %40
  tail call void @abort() #9
  unreachable

.critedge91:                                      ; preds = %40, %38
  call void @assert_cached_dir(ptr noundef nonnull %1, i32 noundef 0)
  call void @assert_cached_files(ptr noundef nonnull %1)
  call void @__describe_after_spec(ptr noundef nonnull @.str.14, i32 noundef %18)
  %48 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %49 = call i32 @clib_cache_has_json(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.17) #7
  %.not62 = icmp eq i32 %49, 0
  br i1 %.not62, label %58, label %50

50:                                               ; preds = %.critedge91
  %51 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr @__assert_failures, align 4, !tbaa !5
  %53 = load ptr, ptr @stderr, align 8, !tbaa !9
  %54 = call i32 @clib_cache_has_json(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.17) #7
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.9, i32 noundef 0, i32 noundef %54, ptr noundef nonnull @.str.10, i32 noundef 61) #8
  %56 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not63 = icmp eq i32 %56, 0
  br i1 %.not63, label %58, label %57

57:                                               ; preds = %50
  call void @abort() #9
  unreachable

58:                                               ; preds = %.critedge91, %50
  %59 = call ptr @clib_cache_read_json(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.17) #7
  %.not64 = icmp eq ptr %59, null
  br i1 %.not64, label %67, label %60

60:                                               ; preds = %58
  %61 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr @__assert_failures, align 4, !tbaa !5
  %63 = load ptr, ptr @stderr, align 8, !tbaa !9
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.10, i32 noundef 62) #8
  %65 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not65 = icmp eq i32 %65, 0
  br i1 %.not65, label %67, label %66

66:                                               ; preds = %60
  call void @abort() #9
  unreachable

67:                                               ; preds = %58, %60
  %68 = call i32 @clib_cache_save_json(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.20) #7
  %.not66 = icmp eq i32 %68, 2
  br i1 %.not66, label %77, label %69

69:                                               ; preds = %67
  %70 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr @__assert_failures, align 4, !tbaa !5
  %72 = load ptr, ptr @stderr, align 8, !tbaa !9
  %73 = call i32 @clib_cache_save_json(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.20) #7
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.9, i32 noundef 2, i32 noundef %73, ptr noundef nonnull @.str.10, i32 noundef 64) #8
  %75 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not67 = icmp eq i32 %75, 0
  br i1 %.not67, label %77, label %76

76:                                               ; preds = %69
  call void @abort() #9
  unreachable

77:                                               ; preds = %67, %69
  %78 = call ptr @clib_cache_read_json(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.17) #7
  %79 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.20, ptr noundef nonnull dereferenceable(1) %78) #10
  %.not68 = icmp eq i32 %79, 0
  br i1 %.not68, label %89, label %80

80:                                               ; preds = %77
  %81 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr @__assert_failures, align 4, !tbaa !5
  %83 = load ptr, ptr @stderr, align 8, !tbaa !9
  %84 = call ptr @clib_cache_read_json(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.17) #7
  %85 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.20, ptr noundef nonnull dereferenceable(1) %84) #10
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef nonnull @.str.9, i32 noundef 0, i32 noundef %85, ptr noundef nonnull @.str.10, i32 noundef 66) #8
  %87 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not69 = icmp eq i32 %87, 0
  br i1 %.not69, label %89, label %88

88:                                               ; preds = %80
  call void @abort() #9
  unreachable

89:                                               ; preds = %80, %77
  %.036 = phi ptr [ %84, %80 ], [ %78, %77 ]
  call void @free(ptr noundef %.036) #7
  %90 = call i32 @clib_cache_has_json(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.17) #7
  %.not70 = icmp eq i32 %90, 1
  br i1 %.not70, label %99, label %91

91:                                               ; preds = %89
  %92 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr @__assert_failures, align 4, !tbaa !5
  %94 = load ptr, ptr @stderr, align 8, !tbaa !9
  %95 = call i32 @clib_cache_has_json(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.17) #7
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef nonnull @.str.9, i32 noundef 1, i32 noundef %95, ptr noundef nonnull @.str.10, i32 noundef 68) #8
  %97 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not71 = icmp eq i32 %97, 0
  br i1 %.not71, label %99, label %98

98:                                               ; preds = %91
  call void @abort() #9
  unreachable

99:                                               ; preds = %89, %91
  %100 = call i32 @clib_cache_delete_json(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.17) #7
  %.not72 = icmp eq i32 %100, 0
  br i1 %.not72, label %109, label %101

101:                                              ; preds = %99
  %102 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr @__assert_failures, align 4, !tbaa !5
  %104 = load ptr, ptr @stderr, align 8, !tbaa !9
  %105 = call i32 @clib_cache_delete_json(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.17) #7
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.9, i32 noundef 0, i32 noundef %105, ptr noundef nonnull @.str.10, i32 noundef 70) #8
  %107 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not73 = icmp eq i32 %107, 0
  br i1 %.not73, label %109, label %108

108:                                              ; preds = %101
  call void @abort() #9
  unreachable

109:                                              ; preds = %99, %101
  %110 = call i32 @clib_cache_has_json(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.17) #7
  %.not74 = icmp eq i32 %110, 0
  br i1 %.not74, label %119, label %111

111:                                              ; preds = %109
  %112 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr @__assert_failures, align 4, !tbaa !5
  %114 = load ptr, ptr @stderr, align 8, !tbaa !9
  %115 = call i32 @clib_cache_has_json(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.17) #7
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef nonnull @.str.9, i32 noundef 0, i32 noundef %115, ptr noundef nonnull @.str.10, i32 noundef 71) #8
  %117 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not75 = icmp eq i32 %117, 0
  br i1 %.not75, label %119, label %118

118:                                              ; preds = %111
  call void @abort() #9
  unreachable

119:                                              ; preds = %109, %111
  %120 = call ptr @clib_cache_read_json(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.17) #7
  %.not76 = icmp eq ptr %120, null
  br i1 %.not76, label %.critedge93, label %121

121:                                              ; preds = %119
  %122 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr @__assert_failures, align 4, !tbaa !5
  %124 = load ptr, ptr @stderr, align 8, !tbaa !9
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.10, i32 noundef 72) #8
  %126 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not77 = icmp eq i32 %126, 0
  br i1 %.not77, label %.critedge93, label %127

127:                                              ; preds = %121
  call void @abort() #9
  unreachable

.critedge93:                                      ; preds = %121, %119
  call void @__describe_after_spec(ptr noundef nonnull @.str.21, i32 noundef %48)
  %128 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %129 = call i32 @clib_cache_delete_search() #7
  %130 = call i32 @clib_cache_has_search() #7
  %.not46 = icmp eq i32 %130, 0
  br i1 %.not46, label %139, label %131

131:                                              ; preds = %.critedge93
  %132 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr @__assert_failures, align 4, !tbaa !5
  %134 = load ptr, ptr @stderr, align 8, !tbaa !9
  %135 = call i32 @clib_cache_has_search() #7
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef nonnull @.str.9, i32 noundef 0, i32 noundef %135, ptr noundef nonnull @.str.10, i32 noundef 80) #8
  %137 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not47 = icmp eq i32 %137, 0
  br i1 %.not47, label %139, label %138

138:                                              ; preds = %131
  call void @abort() #9
  unreachable

139:                                              ; preds = %.critedge93, %131
  %140 = call ptr @clib_cache_read_search() #7
  %.not48 = icmp eq ptr %140, null
  br i1 %.not48, label %148, label %141

141:                                              ; preds = %139
  %142 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr @__assert_failures, align 4, !tbaa !5
  %144 = load ptr, ptr @stderr, align 8, !tbaa !9
  %145 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %144, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.10, i32 noundef 81) #8
  %146 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not49 = icmp eq i32 %146, 0
  br i1 %.not49, label %148, label %147

147:                                              ; preds = %141
  call void @abort() #9
  unreachable

148:                                              ; preds = %139, %141
  %149 = call i32 @clib_cache_save_search(ptr noundef nonnull @.str.23) #7
  %.not50 = icmp eq i32 %149, 13
  br i1 %.not50, label %158, label %150

150:                                              ; preds = %148
  %151 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr @__assert_failures, align 4, !tbaa !5
  %153 = load ptr, ptr @stderr, align 8, !tbaa !9
  %154 = call i32 @clib_cache_save_search(ptr noundef nonnull @.str.23) #7
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %153, ptr noundef nonnull @.str.9, i32 noundef 13, i32 noundef %154, ptr noundef nonnull @.str.10, i32 noundef 83) #8
  %156 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not51 = icmp eq i32 %156, 0
  br i1 %.not51, label %158, label %157

157:                                              ; preds = %150
  call void @abort() #9
  unreachable

158:                                              ; preds = %148, %150
  %159 = call i32 @clib_cache_has_search() #7
  %.not52 = icmp eq i32 %159, 1
  br i1 %.not52, label %168, label %160

160:                                              ; preds = %158
  %161 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr @__assert_failures, align 4, !tbaa !5
  %163 = load ptr, ptr @stderr, align 8, !tbaa !9
  %164 = call i32 @clib_cache_has_search() #7
  %165 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %163, ptr noundef nonnull @.str.9, i32 noundef 1, i32 noundef %164, ptr noundef nonnull @.str.10, i32 noundef 84) #8
  %166 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not53 = icmp eq i32 %166, 0
  br i1 %.not53, label %168, label %167

167:                                              ; preds = %160
  call void @abort() #9
  unreachable

168:                                              ; preds = %158, %160
  %169 = call ptr @clib_cache_read_search() #7
  %170 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull dereferenceable(1) %169) #10
  %.not54 = icmp eq i32 %170, 0
  br i1 %.not54, label %180, label %171

171:                                              ; preds = %168
  %172 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr @__assert_failures, align 4, !tbaa !5
  %174 = load ptr, ptr @stderr, align 8, !tbaa !9
  %175 = call ptr @clib_cache_read_search() #7
  %176 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull dereferenceable(1) %175) #10
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %174, ptr noundef nonnull @.str.9, i32 noundef 0, i32 noundef %176, ptr noundef nonnull @.str.10, i32 noundef 86) #8
  %178 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not55 = icmp eq i32 %178, 0
  br i1 %.not55, label %180, label %179

179:                                              ; preds = %171
  call void @abort() #9
  unreachable

180:                                              ; preds = %171, %168
  %.034 = phi ptr [ %175, %171 ], [ %169, %168 ]
  call void @free(ptr noundef %.034) #7
  %181 = call i32 @clib_cache_delete_search() #7
  %.not56 = icmp eq i32 %181, 0
  br i1 %.not56, label %190, label %182

182:                                              ; preds = %180
  %183 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr @__assert_failures, align 4, !tbaa !5
  %185 = load ptr, ptr @stderr, align 8, !tbaa !9
  %186 = call i32 @clib_cache_delete_search() #7
  %187 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %185, ptr noundef nonnull @.str.9, i32 noundef 0, i32 noundef %186, ptr noundef nonnull @.str.10, i32 noundef 89) #8
  %188 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not57 = icmp eq i32 %188, 0
  br i1 %.not57, label %190, label %189

189:                                              ; preds = %182
  call void @abort() #9
  unreachable

190:                                              ; preds = %180, %182
  %191 = call i32 @clib_cache_has_search() #7
  %.not58 = icmp eq i32 %191, 0
  br i1 %.not58, label %200, label %192

192:                                              ; preds = %190
  %193 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr @__assert_failures, align 4, !tbaa !5
  %195 = load ptr, ptr @stderr, align 8, !tbaa !9
  %196 = call i32 @clib_cache_has_search() #7
  %197 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %195, ptr noundef nonnull @.str.9, i32 noundef 0, i32 noundef %196, ptr noundef nonnull @.str.10, i32 noundef 90) #8
  %198 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not59 = icmp eq i32 %198, 0
  br i1 %.not59, label %200, label %199

199:                                              ; preds = %192
  call void @abort() #9
  unreachable

200:                                              ; preds = %190, %192
  %201 = call ptr @clib_cache_read_search() #7
  %.not60 = icmp eq ptr %201, null
  br i1 %.not60, label %.critedge95, label %202

202:                                              ; preds = %200
  %203 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr @__assert_failures, align 4, !tbaa !5
  %205 = load ptr, ptr @stderr, align 8, !tbaa !9
  %206 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %205, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.10, i32 noundef 91) #8
  %207 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not61 = icmp eq i32 %207, 0
  br i1 %.not61, label %.critedge95, label %208

208:                                              ; preds = %202
  call void @abort() #9
  unreachable

.critedge95:                                      ; preds = %202, %200
  call void @__describe_after_spec(ptr noundef nonnull @.str.24, i32 noundef %128)
  %209 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %210 = call i32 @clib_cache_delete_search() #7
  %211 = call i32 @clib_cache_save_search(ptr noundef nonnull @.str.23) #7
  %.not40 = icmp eq i32 %211, 13
  br i1 %.not40, label %220, label %212

212:                                              ; preds = %.critedge95
  %213 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr @__assert_failures, align 4, !tbaa !5
  %215 = load ptr, ptr @stderr, align 8, !tbaa !9
  %216 = call i32 @clib_cache_save_search(ptr noundef nonnull @.str.23) #7
  %217 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %215, ptr noundef nonnull @.str.9, i32 noundef 13, i32 noundef %216, ptr noundef nonnull @.str.10, i32 noundef 97) #8
  %218 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not41 = icmp eq i32 %218, 0
  br i1 %.not41, label %220, label %219

219:                                              ; preds = %212
  call void @abort() #9
  unreachable

220:                                              ; preds = %.critedge95, %212
  %221 = call i32 @clib_cache_has_search() #7
  %.not42 = icmp eq i32 %221, 1
  br i1 %.not42, label %230, label %222

222:                                              ; preds = %220
  %223 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr @__assert_failures, align 4, !tbaa !5
  %225 = load ptr, ptr @stderr, align 8, !tbaa !9
  %226 = call i32 @clib_cache_has_search() #7
  %227 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %225, ptr noundef nonnull @.str.9, i32 noundef 1, i32 noundef %226, ptr noundef nonnull @.str.10, i32 noundef 98) #8
  %228 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not43 = icmp eq i32 %228, 0
  br i1 %.not43, label %230, label %229

229:                                              ; preds = %222
  call void @abort() #9
  unreachable

230:                                              ; preds = %222, %220
  %231 = call i32 @sleep(i32 noundef 2) #7
  %232 = call i32 @clib_cache_has_search() #7
  %.not44 = icmp eq i32 %232, 0
  br i1 %.not44, label %241, label %233

233:                                              ; preds = %230
  %234 = load i32, ptr @__assert_failures, align 4, !tbaa !5
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr @__assert_failures, align 4, !tbaa !5
  %236 = load ptr, ptr @stderr, align 8, !tbaa !9
  %237 = call i32 @clib_cache_has_search() #7
  %238 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %236, ptr noundef nonnull @.str.9, i32 noundef 0, i32 noundef %237, ptr noundef nonnull @.str.10, i32 noundef 102) #8
  %239 = load i32, ptr @__assert_bail, align 4, !tbaa !5
  %.not45 = icmp eq i32 %239, 0
  br i1 %.not45, label %241, label %240

240:                                              ; preds = %233
  call void @abort() #9
  unreachable

241:                                              ; preds = %230, %233
  call void @__describe_after_spec(ptr noundef nonnull @.str.25, i32 noundef %209)
  %242 = call i32 @clib_cache_delete_search() #7
  call void @llvm.lifetime.end.p0(i64 8192, ptr nonnull %1) #7
  %243 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26)
  br label %.critedge
}

declare i32 @rimraf(ptr noundef) local_unnamed_addr #1

declare ptr @clib_cache_dir() local_unnamed_addr #1

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

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

declare i32 @clib_cache_init(i64 noundef) local_unnamed_addr #1

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

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #4

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

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

declare i32 @clib_cache_save_package(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @clib_cache_has_package(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @clib_cache_is_expired_package(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @assert_cached_dir(ptr noundef, i32 noundef) local_unnamed_addr #0

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

declare i32 @clib_cache_has_json(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @clib_cache_read_json(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @clib_cache_save_json(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

declare i32 @clib_cache_delete_json(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @clib_cache_delete_search() local_unnamed_addr #1

declare i32 @clib_cache_has_search() local_unnamed_addr #1

declare ptr @clib_cache_read_search() local_unnamed_addr #1

declare i32 @clib_cache_save_search(ptr noundef) local_unnamed_addr #1

declare i32 @sleep(i32 noundef) local_unnamed_addr #1

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { cold nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { 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 = !{!"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}


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