; LLVM IR from ryanlayer/giggle :: src (cache)

; 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.cache_def = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.simple_cache = type { ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, %union.pthread_mutex_t, ptr, ptr, i64, i64, i32 }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%struct.disk_store = type { ptr, ptr, ptr, ptr, i32, i32, i64, i64, ptr, ptr, i8, ptr }

@CACHE_NAME_SPACE = external dso_local global i32, align 4
@_cache = external dso_local global [10 x ptr], align 16
@simple_cache_def = external dso_local global %struct.cache_def, align 8
@.str.2 = external hidden unnamed_addr constant [37 x i8], align 1
@cache = external dso_local global %struct.cache_def, align 8
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #1

; Function Attrs: noreturn
declare void @err(i32 noundef, ptr noundef, ...) #2

; 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) #3

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @simple_cache_init(i32 noundef %0, i32 noundef %1, ptr noundef %2) #5 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %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 ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %15 = call noalias ptr @malloc(i64 noundef 152) #9
  store ptr %15, ptr %7, align 8, !tbaa !9
  %16 = load ptr, ptr %7, align 8, !tbaa !9
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %3
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.2) #10
  unreachable

19:                                               ; preds = %3
  %20 = load ptr, ptr %7, align 8, !tbaa !9
  %21 = load i32, ptr @CACHE_NAME_SPACE, align 4, !tbaa !5
  %22 = zext i32 %21 to i64
  %23 = getelementptr inbounds [10 x ptr], ptr @_cache, i64 0, i64 %22
  store ptr %20, ptr %23, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 @cache, ptr align 8 @simple_cache_def, i64 56, i1 false), !tbaa.struct !11
  %24 = load ptr, ptr %7, align 8, !tbaa !9
  %25 = getelementptr inbounds %struct.simple_cache, ptr %24, i32 0, i32 9
  %26 = call i32 @pthread_mutex_init(ptr noundef %25, ptr noundef null) #8
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %28 = load ptr, ptr %7, align 8, !tbaa !9
  %29 = getelementptr inbounds %struct.simple_cache, ptr %28, i32 0, i32 5
  store i32 %27, ptr %29, align 8, !tbaa !12
  %30 = load ptr, ptr %7, align 8, !tbaa !9
  %31 = getelementptr inbounds %struct.simple_cache, ptr %30, i32 0, i32 14
  store i32 0, ptr %31, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %32 = call ptr @getenv(ptr noundef @.str.3) #8
  store ptr %32, ptr %8, align 8, !tbaa !9
  %33 = load ptr, ptr %8, align 8, !tbaa !9
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %40

35:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %36 = load ptr, ptr %8, align 8, !tbaa !9
  %37 = call i64 @strtoull(ptr noundef %36, ptr noundef %9, i32 noundef 10) #8
  %38 = load ptr, ptr %7, align 8, !tbaa !9
  %39 = getelementptr inbounds %struct.simple_cache, ptr %38, i32 0, i32 12
  store i64 %37, ptr %39, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %43

40:                                               ; preds = %19
  %41 = load ptr, ptr %7, align 8, !tbaa !9
  %42 = getelementptr inbounds %struct.simple_cache, ptr %41, i32 0, i32 12
  store i64 1000000000, ptr %42, align 8, !tbaa !16
  br label %43

43:                                               ; preds = %40, %35
  %44 = load ptr, ptr %7, align 8, !tbaa !9
  %45 = getelementptr inbounds %struct.simple_cache, ptr %44, i32 0, i32 13
  store i64 0, ptr %45, align 8, !tbaa !17
  %46 = load ptr, ptr %7, align 8, !tbaa !9
  %47 = getelementptr inbounds %struct.simple_cache, ptr %46, i32 0, i32 10
  store ptr null, ptr %47, align 8, !tbaa !18
  %48 = load ptr, ptr %7, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct.simple_cache, ptr %48, i32 0, i32 11
  store ptr null, ptr %49, align 8, !tbaa !19
  %50 = load i32, ptr %5, align 4, !tbaa !5
  %51 = zext i32 %50 to i64
  %52 = call noalias ptr @calloc(i64 noundef %51, i64 noundef 8) #11
  %53 = load ptr, ptr %7, align 8, !tbaa !9
  %54 = getelementptr inbounds %struct.simple_cache, ptr %53, i32 0, i32 1
  store ptr %52, ptr %54, align 8, !tbaa !20
  %55 = load ptr, ptr %7, align 8, !tbaa !9
  %56 = getelementptr inbounds %struct.simple_cache, ptr %55, i32 0, i32 1
  %57 = load ptr, ptr %56, align 8, !tbaa !20
  %58 = icmp eq ptr %57, null
  br i1 %58, label %59, label %60

59:                                               ; preds = %43
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.4) #10
  unreachable

60:                                               ; preds = %43
  %61 = load i32, ptr %5, align 4, !tbaa !5
  %62 = zext i32 %61 to i64
  %63 = call noalias ptr @calloc(i64 noundef %62, i64 noundef 4) #11
  %64 = load ptr, ptr %7, align 8, !tbaa !9
  %65 = getelementptr inbounds %struct.simple_cache, ptr %64, i32 0, i32 3
  store ptr %63, ptr %65, align 8, !tbaa !21
  %66 = load ptr, ptr %7, align 8, !tbaa !9
  %67 = getelementptr inbounds %struct.simple_cache, ptr %66, i32 0, i32 3
  %68 = load ptr, ptr %67, align 8, !tbaa !21
  %69 = icmp eq ptr %68, null
  br i1 %69, label %70, label %71

70:                                               ; preds = %60
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.4) #10
  unreachable

71:                                               ; preds = %60
  %72 = load i32, ptr %5, align 4, !tbaa !5
  %73 = zext i32 %72 to i64
  %74 = call noalias ptr @calloc(i64 noundef %73, i64 noundef 4) #11
  %75 = load ptr, ptr %7, align 8, !tbaa !9
  %76 = getelementptr inbounds %struct.simple_cache, ptr %75, i32 0, i32 4
  store ptr %74, ptr %76, align 8, !tbaa !22
  %77 = load ptr, ptr %7, align 8, !tbaa !9
  %78 = getelementptr inbounds %struct.simple_cache, ptr %77, i32 0, i32 4
  %79 = load ptr, ptr %78, align 8, !tbaa !22
  %80 = icmp eq ptr %79, null
  br i1 %80, label %81, label %82

81:                                               ; preds = %71
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.4) #10
  unreachable

82:                                               ; preds = %71
  %83 = load ptr, ptr %7, align 8, !tbaa !9
  %84 = getelementptr inbounds %struct.simple_cache, ptr %83, i32 0, i32 8
  store ptr null, ptr %84, align 8, !tbaa !23
  %85 = load ptr, ptr %7, align 8, !tbaa !9
  %86 = getelementptr inbounds %struct.simple_cache, ptr %85, i32 0, i32 7
  store ptr null, ptr %86, align 8, !tbaa !24
  %87 = load ptr, ptr %7, align 8, !tbaa !9
  %88 = getelementptr inbounds %struct.simple_cache, ptr %87, i32 0, i32 6
  store ptr null, ptr %88, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %89 = load ptr, ptr %6, align 8, !tbaa !9
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %185

91:                                               ; preds = %82
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = zext i32 %92 to i64
  %94 = call noalias ptr @calloc(i64 noundef %93, i64 noundef 8) #11
  %95 = load ptr, ptr %7, align 8, !tbaa !9
  %96 = getelementptr inbounds %struct.simple_cache, ptr %95, i32 0, i32 8
  store ptr %94, ptr %96, align 8, !tbaa !23
  %97 = load ptr, ptr %7, align 8, !tbaa !9
  %98 = getelementptr inbounds %struct.simple_cache, ptr %97, i32 0, i32 8
  %99 = load ptr, ptr %98, align 8, !tbaa !23
  %100 = icmp eq ptr %99, null
  br i1 %100, label %101, label %102

101:                                              ; preds = %91
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.4) #10
  unreachable

102:                                              ; preds = %91
  %103 = load i32, ptr %5, align 4, !tbaa !5
  %104 = zext i32 %103 to i64
  %105 = call noalias ptr @calloc(i64 noundef %104, i64 noundef 8) #11
  %106 = load ptr, ptr %7, align 8, !tbaa !9
  %107 = getelementptr inbounds %struct.simple_cache, ptr %106, i32 0, i32 6
  store ptr %105, ptr %107, align 8, !tbaa !25
  %108 = load ptr, ptr %7, align 8, !tbaa !9
  %109 = getelementptr inbounds %struct.simple_cache, ptr %108, i32 0, i32 6
  %110 = load ptr, ptr %109, align 8, !tbaa !25
  %111 = icmp eq ptr %110, null
  br i1 %111, label %112, label %113

112:                                              ; preds = %102
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.4) #10
  unreachable

113:                                              ; preds = %102
  %114 = load i32, ptr %5, align 4, !tbaa !5
  %115 = zext i32 %114 to i64
  %116 = call noalias ptr @calloc(i64 noundef %115, i64 noundef 8) #11
  %117 = load ptr, ptr %7, align 8, !tbaa !9
  %118 = getelementptr inbounds %struct.simple_cache, ptr %117, i32 0, i32 7
  store ptr %116, ptr %118, align 8, !tbaa !24
  %119 = load ptr, ptr %7, align 8, !tbaa !9
  %120 = getelementptr inbounds %struct.simple_cache, ptr %119, i32 0, i32 7
  %121 = load ptr, ptr %120, align 8, !tbaa !24
  %122 = icmp eq ptr %121, null
  br i1 %122, label %123, label %124

123:                                              ; preds = %113
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.4) #10
  unreachable

124:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %125

125:                                              ; preds = %181, %124
  %126 = load i32, ptr %10, align 4, !tbaa !5
  %127 = load i32, ptr %5, align 4, !tbaa !5
  %128 = icmp ult i32 %126, %127
  br i1 %128, label %129, label %184

129:                                              ; preds = %125
  %130 = load ptr, ptr %6, align 8, !tbaa !9
  %131 = load i32, ptr %10, align 4, !tbaa !5
  %132 = zext i32 %131 to i64
  %133 = getelementptr inbounds ptr, ptr %130, i64 %132
  %134 = load ptr, ptr %133, align 8, !tbaa !9
  %135 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %12, ptr noundef @.str.5, ptr noundef %134) #8
  store i32 %135, ptr %11, align 4, !tbaa !5
  %136 = load ptr, ptr %6, align 8, !tbaa !9
  %137 = load i32, ptr %10, align 4, !tbaa !5
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds ptr, ptr %136, i64 %138
  %140 = load ptr, ptr %139, align 8, !tbaa !9
  %141 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %13, ptr noundef @.str.6, ptr noundef %140) #8
  store i32 %141, ptr %11, align 4, !tbaa !5
  %142 = load ptr, ptr %12, align 8, !tbaa !9
  %143 = load ptr, ptr %7, align 8, !tbaa !9
  %144 = getelementptr inbounds %struct.simple_cache, ptr %143, i32 0, i32 6
  %145 = load ptr, ptr %144, align 8, !tbaa !25
  %146 = load i32, ptr %10, align 4, !tbaa !5
  %147 = zext i32 %146 to i64
  %148 = getelementptr inbounds ptr, ptr %145, i64 %147
  store ptr %142, ptr %148, align 8, !tbaa !9
  %149 = load ptr, ptr %13, align 8, !tbaa !9
  %150 = load ptr, ptr %7, align 8, !tbaa !9
  %151 = getelementptr inbounds %struct.simple_cache, ptr %150, i32 0, i32 7
  %152 = load ptr, ptr %151, align 8, !tbaa !24
  %153 = load i32, ptr %10, align 4, !tbaa !5
  %154 = zext i32 %153 to i64
  %155 = getelementptr inbounds ptr, ptr %152, i64 %154
  store ptr %149, ptr %155, align 8, !tbaa !9
  %156 = load ptr, ptr %12, align 8, !tbaa !9
  %157 = call i32 @access(ptr noundef %156, i32 noundef 0) #8
  %158 = icmp ne i32 %157, -1
  br i1 %158, label %159, label %173

159:                                              ; preds = %129
  %160 = load ptr, ptr %13, align 8, !tbaa !9
  %161 = call i32 @access(ptr noundef %160, i32 noundef 0) #8
  %162 = icmp ne i32 %161, -1
  br i1 %162, label %163, label %173

163:                                              ; preds = %159
  %164 = load ptr, ptr %12, align 8, !tbaa !9
  %165 = load ptr, ptr %13, align 8, !tbaa !9
  %166 = call ptr @disk_store_load(ptr noundef null, ptr noundef %164, ptr noundef null, ptr noundef %165)
  %167 = load ptr, ptr %7, align 8, !tbaa !9
  %168 = getelementptr inbounds %struct.simple_cache, ptr %167, i32 0, i32 8
  %169 = load ptr, ptr %168, align 8, !tbaa !23
  %170 = load i32, ptr %10, align 4, !tbaa !5
  %171 = zext i32 %170 to i64
  %172 = getelementptr inbounds ptr, ptr %169, i64 %171
  store ptr %166, ptr %172, align 8, !tbaa !9
  br label %180

173:                                              ; preds = %159, %129
  %174 = load ptr, ptr %7, align 8, !tbaa !9
  %175 = getelementptr inbounds %struct.simple_cache, ptr %174, i32 0, i32 8
  %176 = load ptr, ptr %175, align 8, !tbaa !23
  %177 = load i32, ptr %10, align 4, !tbaa !5
  %178 = zext i32 %177 to i64
  %179 = getelementptr inbounds ptr, ptr %176, i64 %178
  store ptr null, ptr %179, align 8, !tbaa !9
  br label %180

180:                                              ; preds = %173, %163
  br label %181

181:                                              ; preds = %180
  %182 = load i32, ptr %10, align 4, !tbaa !5
  %183 = add i32 %182, 1
  store i32 %183, ptr %10, align 4, !tbaa !5
  br label %125, !llvm.loop !26

184:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %185

185:                                              ; preds = %184, %82
  %186 = load i32, ptr %5, align 4, !tbaa !5
  %187 = zext i32 %186 to i64
  %188 = call noalias ptr @calloc(i64 noundef %187, i64 noundef 4) #11
  %189 = load ptr, ptr %7, align 8, !tbaa !9
  %190 = getelementptr inbounds %struct.simple_cache, ptr %189, i32 0, i32 2
  store ptr %188, ptr %190, align 8, !tbaa !28
  %191 = load ptr, ptr %7, align 8, !tbaa !9
  %192 = getelementptr inbounds %struct.simple_cache, ptr %191, i32 0, i32 2
  %193 = load ptr, ptr %192, align 8, !tbaa !28
  %194 = icmp eq ptr %193, null
  br i1 %194, label %195, label %196

195:                                              ; preds = %185
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.4) #10
  unreachable

196:                                              ; preds = %185
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %197

197:                                              ; preds = %307, %196
  %198 = load i32, ptr %10, align 4, !tbaa !5
  %199 = load i32, ptr %5, align 4, !tbaa !5
  %200 = icmp ult i32 %198, %199
  br i1 %200, label %201, label %310

201:                                              ; preds = %197
  %202 = load i32, ptr %4, align 4, !tbaa !5
  %203 = load ptr, ptr %7, align 8, !tbaa !9
  %204 = getelementptr inbounds %struct.simple_cache, ptr %203, i32 0, i32 2
  %205 = load ptr, ptr %204, align 8, !tbaa !28
  %206 = load i32, ptr %10, align 4, !tbaa !5
  %207 = zext i32 %206 to i64
  %208 = getelementptr inbounds i32, ptr %205, i64 %207
  store i32 %202, ptr %208, align 4, !tbaa !5
  %209 = load ptr, ptr %7, align 8, !tbaa !9
  %210 = getelementptr inbounds %struct.simple_cache, ptr %209, i32 0, i32 3
  %211 = load ptr, ptr %210, align 8, !tbaa !21
  %212 = load i32, ptr %10, align 4, !tbaa !5
  %213 = zext i32 %212 to i64
  %214 = getelementptr inbounds i32, ptr %211, i64 %213
  store i32 0, ptr %214, align 4, !tbaa !5
  %215 = load ptr, ptr %7, align 8, !tbaa !9
  %216 = getelementptr inbounds %struct.simple_cache, ptr %215, i32 0, i32 4
  %217 = load ptr, ptr %216, align 8, !tbaa !22
  %218 = load i32, ptr %10, align 4, !tbaa !5
  %219 = zext i32 %218 to i64
  %220 = getelementptr inbounds i32, ptr %217, i64 %219
  store i32 0, ptr %220, align 4, !tbaa !5
  %221 = load ptr, ptr %7, align 8, !tbaa !9
  %222 = getelementptr inbounds %struct.simple_cache, ptr %221, i32 0, i32 8
  %223 = load ptr, ptr %222, align 8, !tbaa !23
  %224 = icmp ne ptr %223, null
  br i1 %224, label %225, label %299

225:                                              ; preds = %201
  %226 = load ptr, ptr %7, align 8, !tbaa !9
  %227 = getelementptr inbounds %struct.simple_cache, ptr %226, i32 0, i32 8
  %228 = load ptr, ptr %227, align 8, !tbaa !23
  %229 = load i32, ptr %10, align 4, !tbaa !5
  %230 = zext i32 %229 to i64
  %231 = getelementptr inbounds ptr, ptr %228, i64 %230
  %232 = load ptr, ptr %231, align 8, !tbaa !9
  %233 = icmp ne ptr %232, null
  br i1 %233, label %234, label %299

234:                                              ; preds = %225
  %235 = load ptr, ptr %7, align 8, !tbaa !9
  %236 = getelementptr inbounds %struct.simple_cache, ptr %235, i32 0, i32 8
  %237 = load ptr, ptr %236, align 8, !tbaa !23
  %238 = load i32, ptr %10, align 4, !tbaa !5
  %239 = zext i32 %238 to i64
  %240 = getelementptr inbounds ptr, ptr %237, i64 %239
  %241 = load ptr, ptr %240, align 8, !tbaa !9
  %242 = getelementptr inbounds %struct.disk_store, ptr %241, i32 0, i32 5
  %243 = load i32, ptr %242, align 4, !tbaa !29
  %244 = load ptr, ptr %7, align 8, !tbaa !9
  %245 = getelementptr inbounds %struct.simple_cache, ptr %244, i32 0, i32 3
  %246 = load ptr, ptr %245, align 8, !tbaa !21
  %247 = load i32, ptr %10, align 4, !tbaa !5
  %248 = zext i32 %247 to i64
  %249 = getelementptr inbounds i32, ptr %246, i64 %248
  store i32 %243, ptr %249, align 4, !tbaa !5
  %250 = load ptr, ptr %7, align 8, !tbaa !9
  %251 = getelementptr inbounds %struct.simple_cache, ptr %250, i32 0, i32 8
  %252 = load ptr, ptr %251, align 8, !tbaa !23
  %253 = load i32, ptr %10, align 4, !tbaa !5
  %254 = zext i32 %253 to i64
  %255 = getelementptr inbounds ptr, ptr %252, i64 %254
  %256 = load ptr, ptr %255, align 8, !tbaa !9
  %257 = getelementptr inbounds %struct.disk_store, ptr %256, i32 0, i32 5
  %258 = load i32, ptr %257, align 4, !tbaa !29
  %259 = load ptr, ptr %7, align 8, !tbaa !9
  %260 = getelementptr inbounds %struct.simple_cache, ptr %259, i32 0, i32 4
  %261 = load ptr, ptr %260, align 8, !tbaa !22
  %262 = load i32, ptr %10, align 4, !tbaa !5
  %263 = zext i32 %262 to i64
  %264 = getelementptr inbounds i32, ptr %261, i64 %263
  store i32 %258, ptr %264, align 4, !tbaa !5
  br label %265

265:                                              ; preds = %283, %234
  %266 = load ptr, ptr %7, align 8, !tbaa !9
  %267 = getelementptr inbounds %struct.simple_cache, ptr %266, i32 0, i32 2
  %268 = load ptr, ptr %267, align 8, !tbaa !28
  %269 = load i32, ptr %10, align 4, !tbaa !5
  %270 = zext i32 %269 to i64
  %271 = getelementptr inbounds i32, ptr %268, i64 %270
  %272 = load i32, ptr %271, align 4, !tbaa !5
  %273 = load ptr, ptr %7, align 8, !tbaa !9
  %274 = getelementptr inbounds %struct.simple_cache, ptr %273, i32 0, i32 8
  %275 = load ptr, ptr %274, align 8, !tbaa !23
  %276 = load i32, ptr %10, align 4, !tbaa !5
  %277 = zext i32 %276 to i64
  %278 = getelementptr inbounds ptr, ptr %275, i64 %277
  %279 = load ptr, ptr %278, align 8, !tbaa !9
  %280 = getelementptr inbounds %struct.disk_store, ptr %279, i32 0, i32 5
  %281 = load i32, ptr %280, align 4, !tbaa !29
  %282 = icmp ult i32 %272, %281
  br i1 %282, label %283, label %298

283:                                              ; preds = %265
  %284 = load ptr, ptr %7, align 8, !tbaa !9
  %285 = getelementptr inbounds %struct.simple_cache, ptr %284, i32 0, i32 2
  %286 = load ptr, ptr %285, align 8, !tbaa !28
  %287 = load i32, ptr %10, align 4, !tbaa !5
  %288 = zext i32 %287 to i64
  %289 = getelementptr inbounds i32, ptr %286, i64 %288
  %290 = load i32, ptr %289, align 4, !tbaa !5
  %291 = mul i32 %290, 2
  %292 = load ptr, ptr %7, align 8, !tbaa !9
  %293 = getelementptr inbounds %struct.simple_cache, ptr %292, i32 0, i32 2
  %294 = load ptr, ptr %293, align 8, !tbaa !28
  %295 = load i32, ptr %10, align 4, !tbaa !5
  %296 = zext i32 %295 to i64
  %297 = getelementptr inbounds i32, ptr %294, i64 %296
  store i32 %291, ptr %297, align 4, !tbaa !5
  br label %265, !llvm.loop !31

298:                                              ; preds = %265
  br label %299

299:                                              ; preds = %298, %225, %201
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store i64 10000000000, ptr %14, align 8, !tbaa !32
  %300 = call ptr (...) @hash_list_init()
  %301 = load ptr, ptr %7, align 8, !tbaa !9
  %302 = getelementptr inbounds %struct.simple_cache, ptr %301, i32 0, i32 1
  %303 = load ptr, ptr %302, align 8, !tbaa !20
  %304 = load i32, ptr %10, align 4, !tbaa !5
  %305 = zext i32 %304 to i64
  %306 = getelementptr inbounds ptr, ptr %303, i64 %305
  store ptr %300, ptr %306, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %307

307:                                              ; preds = %299
  %308 = load i32, ptr %10, align 4, !tbaa !5
  %309 = add i32 %308, 1
  store i32 %309, ptr %10, align 4, !tbaa !5
  br label %197, !llvm.loop !33

310:                                              ; preds = %197
  %311 = load ptr, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  ret ptr %311
}

; Function Attrs: nounwind
declare i32 @pthread_mutex_init(ptr noundef, ptr noundef) #6

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

; Function Attrs: nounwind
declare i64 @strtoull(ptr noundef, ptr noundef, i32 noundef) #6

; Function Attrs: nounwind
declare i32 @asprintf(ptr noundef, ptr noundef, ...) #6

; Function Attrs: nounwind
declare i32 @access(ptr noundef, i32 noundef) #6

declare ptr @disk_store_load(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #7

declare ptr @hash_list_init(...) #7

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

!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 = !{i64 0, i64 8, !9, i64 8, i64 8, !9, i64 16, i64 8, !9, i64 24, i64 8, !9, i64 32, i64 8, !9, i64 40, i64 8, !9, i64 48, i64 8, !9}
!12 = !{!13, !6, i64 40}
!13 = !{!"simple_cache", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !10, i64 112, !10, i64 120, !14, i64 128, !14, i64 136, !6, i64 144}
!14 = !{!"long", !7, i64 0}
!15 = !{!13, !6, i64 144}
!16 = !{!13, !14, i64 128}
!17 = !{!13, !14, i64 136}
!18 = !{!13, !10, i64 112}
!19 = !{!13, !10, i64 120}
!20 = !{!13, !10, i64 8}
!21 = !{!13, !10, i64 24}
!22 = !{!13, !10, i64 32}
!23 = !{!13, !10, i64 64}
!24 = !{!13, !10, i64 56}
!25 = !{!13, !10, i64 48}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!13, !10, i64 16}
!29 = !{!30, !6, i64 36}
!30 = !{!"disk_store", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !6, i64 32, !6, i64 36, !14, i64 40, !14, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !10, i64 80}
!31 = distinct !{!31, !27}
!32 = !{!14, !14, i64 0}
!33 = distinct !{!33, !27}


; 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.cache_def = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@CACHE_NAME_SPACE = external dso_local local_unnamed_addr global i32, align 4
@_cache = external dso_local local_unnamed_addr global [10 x ptr], align 16
@simple_cache_def = external dso_local local_unnamed_addr global %struct.cache_def, align 8
@.str.2 = external hidden unnamed_addr constant [37 x i8], align 1
@cache = external dso_local local_unnamed_addr global %struct.cache_def, align 8
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

; Function Attrs: noreturn
declare void @err(i32 noundef, ptr noundef, ...) local_unnamed_addr #2

; 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) #3

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @simple_cache_init(i32 noundef %0, i32 noundef %1, ptr noundef readonly %2) local_unnamed_addr #5 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = tail call noalias dereferenceable_or_null(152) ptr @malloc(i64 noundef 152) #12
  %8 = icmp eq ptr %7, null
  br i1 %8, label %9, label %10

9:                                                ; preds = %3
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.2) #13
  unreachable

10:                                               ; preds = %3
  %11 = load i32, ptr @CACHE_NAME_SPACE, align 4, !tbaa !5
  %12 = zext i32 %11 to i64
  %13 = getelementptr inbounds [10 x ptr], ptr @_cache, i64 0, i64 %12
  store ptr %7, ptr %13, align 8, !tbaa !9
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) @cache, ptr noundef nonnull align 8 dereferenceable(56) @simple_cache_def, i64 56, i1 false), !tbaa.struct !11
  %14 = getelementptr inbounds i8, ptr %7, i64 72
  %15 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %14, ptr noundef null) #14
  %16 = getelementptr inbounds i8, ptr %7, i64 40
  store i32 %1, ptr %16, align 8, !tbaa !12
  %17 = getelementptr inbounds i8, ptr %7, i64 144
  store i32 0, ptr %17, align 8, !tbaa !15
  %18 = tail call ptr @getenv(ptr noundef nonnull @.str.3) #14
  %.not = icmp eq ptr %18, null
  br i1 %.not, label %21, label %19

19:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #14
  %20 = call i64 @strtoull(ptr noundef nonnull %18, ptr noundef nonnull %4, i32 noundef 10) #14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #14
  br label %21

21:                                               ; preds = %10, %19
  %.sink = phi i64 [ %20, %19 ], [ 1000000000, %10 ]
  %22 = getelementptr inbounds i8, ptr %7, i64 128
  store i64 %.sink, ptr %22, align 8
  %23 = getelementptr inbounds i8, ptr %7, i64 136
  store i64 0, ptr %23, align 8, !tbaa !16
  %24 = getelementptr inbounds i8, ptr %7, i64 112
  %25 = zext i32 %1 to i64
  %26 = tail call noalias ptr @calloc(i64 noundef %25, i64 noundef 8) #15
  %27 = getelementptr inbounds i8, ptr %7, i64 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %24, i8 0, i64 16, i1 false)
  store ptr %26, ptr %27, align 8, !tbaa !17
  %28 = icmp eq ptr %26, null
  br i1 %28, label %29, label %30

29:                                               ; preds = %21
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.4) #13
  unreachable

30:                                               ; preds = %21
  %31 = tail call noalias ptr @calloc(i64 noundef %25, i64 noundef 4) #15
  %32 = getelementptr inbounds i8, ptr %7, i64 24
  store ptr %31, ptr %32, align 8, !tbaa !18
  %33 = icmp eq ptr %31, null
  br i1 %33, label %34, label %35

34:                                               ; preds = %30
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.4) #13
  unreachable

35:                                               ; preds = %30
  %36 = tail call noalias ptr @calloc(i64 noundef %25, i64 noundef 4) #15
  %37 = getelementptr inbounds i8, ptr %7, i64 32
  store ptr %36, ptr %37, align 8, !tbaa !19
  %38 = icmp eq ptr %36, null
  br i1 %38, label %39, label %40

39:                                               ; preds = %35
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.4) #13
  unreachable

40:                                               ; preds = %35
  %41 = getelementptr inbounds i8, ptr %7, i64 64
  %42 = getelementptr inbounds i8, ptr %7, i64 56
  %43 = getelementptr inbounds i8, ptr %7, i64 48
  %.not90 = icmp eq ptr %2, null
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %43, i8 0, i64 24, i1 false)
  br i1 %.not90, label %80, label %44

44:                                               ; preds = %40
  %45 = tail call noalias ptr @calloc(i64 noundef %25, i64 noundef 8) #15
  store ptr %45, ptr %41, align 8, !tbaa !20
  %46 = icmp eq ptr %45, null
  br i1 %46, label %47, label %48

47:                                               ; preds = %44
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.4) #13
  unreachable

48:                                               ; preds = %44
  %49 = tail call noalias ptr @calloc(i64 noundef %25, i64 noundef 8) #15
  store ptr %49, ptr %43, align 8, !tbaa !21
  %50 = icmp eq ptr %49, null
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.4) #13
  unreachable

52:                                               ; preds = %48
  %53 = tail call noalias ptr @calloc(i64 noundef %25, i64 noundef 8) #15
  store ptr %53, ptr %42, align 8, !tbaa !22
  %54 = icmp eq ptr %53, null
  br i1 %54, label %55, label %56

55:                                               ; preds = %52
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.4) #13
  unreachable

56:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #14
  %.not101 = icmp eq i32 %1, 0
  br i1 %.not101, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %56, %77
  %indvars.iv = phi i64 [ %indvars.iv.next, %77 ], [ 0, %56 ]
  %57 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  %59 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %5, ptr noundef nonnull @.str.5, ptr noundef %58) #14
  %60 = load ptr, ptr %57, align 8, !tbaa !9
  %61 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %6, ptr noundef nonnull @.str.6, ptr noundef %60) #14
  %62 = load ptr, ptr %5, align 8, !tbaa !9
  %63 = load ptr, ptr %43, align 8, !tbaa !21
  %64 = getelementptr inbounds ptr, ptr %63, i64 %indvars.iv
  store ptr %62, ptr %64, align 8, !tbaa !9
  %65 = load ptr, ptr %6, align 8, !tbaa !9
  %66 = load ptr, ptr %42, align 8, !tbaa !22
  %67 = getelementptr inbounds ptr, ptr %66, i64 %indvars.iv
  store ptr %65, ptr %67, align 8, !tbaa !9
  %68 = load ptr, ptr %5, align 8, !tbaa !9
  %69 = call i32 @access(ptr noundef %68, i32 noundef 0) #14
  %.not93 = icmp eq i32 %69, -1
  br i1 %.not93, label %77, label %70

70:                                               ; preds = %.lr.ph
  %71 = load ptr, ptr %6, align 8, !tbaa !9
  %72 = call i32 @access(ptr noundef %71, i32 noundef 0) #14
  %.not94 = icmp eq i32 %72, -1
  br i1 %.not94, label %77, label %73

73:                                               ; preds = %70
  %74 = load ptr, ptr %5, align 8, !tbaa !9
  %75 = load ptr, ptr %6, align 8, !tbaa !9
  %76 = call ptr @disk_store_load(ptr noundef null, ptr noundef %74, ptr noundef null, ptr noundef %75) #14
  br label %77

77:                                               ; preds = %.lr.ph, %70, %73
  %.sink109 = phi ptr [ %76, %73 ], [ null, %70 ], [ null, %.lr.ph ]
  %78 = load ptr, ptr %41, align 8, !tbaa !20
  %79 = getelementptr inbounds ptr, ptr %78, i64 %indvars.iv
  store ptr %.sink109, ptr %79, align 8, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %25
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !23

._crit_edge:                                      ; preds = %77, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #14
  br label %80

80:                                               ; preds = %._crit_edge, %40
  %81 = call noalias ptr @calloc(i64 noundef %25, i64 noundef 4) #15
  %82 = getelementptr inbounds i8, ptr %7, i64 16
  store ptr %81, ptr %82, align 8, !tbaa !25
  %83 = icmp eq ptr %81, null
  br i1 %83, label %84, label %.preheader

.preheader:                                       ; preds = %80
  %.not102 = icmp eq i32 %1, 0
  br i1 %.not102, label %._crit_edge100, label %.lr.ph99

84:                                               ; preds = %80
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.4) #13
  unreachable

.lr.ph99:                                         ; preds = %.preheader, %.loopexit
  %indvars.iv104 = phi i64 [ %indvars.iv.next105, %.loopexit ], [ 0, %.preheader ]
  %85 = load ptr, ptr %82, align 8, !tbaa !25
  %86 = getelementptr inbounds i32, ptr %85, i64 %indvars.iv104
  store i32 %0, ptr %86, align 4, !tbaa !5
  %87 = load ptr, ptr %32, align 8, !tbaa !18
  %88 = getelementptr inbounds i32, ptr %87, i64 %indvars.iv104
  store i32 0, ptr %88, align 4, !tbaa !5
  %89 = load ptr, ptr %37, align 8, !tbaa !19
  %90 = getelementptr inbounds i32, ptr %89, i64 %indvars.iv104
  store i32 0, ptr %90, align 4, !tbaa !5
  %91 = load ptr, ptr %41, align 8, !tbaa !20
  %.not91 = icmp eq ptr %91, null
  br i1 %.not91, label %.loopexit, label %92

92:                                               ; preds = %.lr.ph99
  %93 = getelementptr inbounds ptr, ptr %91, i64 %indvars.iv104
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %.not92 = icmp eq ptr %94, null
  br i1 %.not92, label %.loopexit, label %95

95:                                               ; preds = %92
  %96 = getelementptr inbounds i8, ptr %94, i64 36
  %97 = load i32, ptr %96, align 4, !tbaa !26
  store i32 %97, ptr %88, align 4, !tbaa !5
  store i32 %97, ptr %90, align 4, !tbaa !5
  %98 = load i32, ptr %86, align 4, !tbaa !5
  %99 = load i32, ptr %96, align 4, !tbaa !26
  %100 = icmp ult i32 %98, %99
  br i1 %100, label %.lr.ph97, label %.loopexit

.lr.ph97:                                         ; preds = %95, %.lr.ph97
  %101 = phi i32 [ %102, %.lr.ph97 ], [ %98, %95 ]
  %102 = shl i32 %101, 1
  store i32 %102, ptr %86, align 4, !tbaa !5
  %103 = load i32, ptr %96, align 4, !tbaa !26
  %104 = icmp ult i32 %102, %103
  br i1 %104, label %.lr.ph97, label %.loopexit, !llvm.loop !28

.loopexit:                                        ; preds = %.lr.ph97, %95, %92, %.lr.ph99
  %105 = call ptr (...) @hash_list_init() #14
  %106 = load ptr, ptr %27, align 8, !tbaa !17
  %107 = getelementptr inbounds ptr, ptr %106, i64 %indvars.iv104
  store ptr %105, ptr %107, align 8, !tbaa !9
  %indvars.iv.next105 = add nuw nsw i64 %indvars.iv104, 1
  %exitcond108.not = icmp eq i64 %indvars.iv.next105, %25
  br i1 %exitcond108.not, label %._crit_edge100, label %.lr.ph99, !llvm.loop !29

._crit_edge100:                                   ; preds = %.loopexit, %.preheader
  ret ptr %7
}

; Function Attrs: nounwind
declare i32 @pthread_mutex_init(ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: nofree nounwind memory(read)
declare noundef ptr @getenv(ptr nocapture noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtoull(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #8

; Function Attrs: nounwind
declare i32 @asprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #6

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

declare ptr @disk_store_load(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #10

declare ptr @hash_list_init(...) local_unnamed_addr #10

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #11

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) 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 #2 = { noreturn "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 nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind "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 = { nofree nounwind memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { mustprogress nofree nounwind willreturn "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 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 #10 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #12 = { nounwind allocsize(0) }
attributes #13 = { noreturn nounwind }
attributes #14 = { nounwind }
attributes #15 = { nounwind allocsize(0,1) }

!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 = !{i64 0, i64 8, !9, i64 8, i64 8, !9, i64 16, i64 8, !9, i64 24, i64 8, !9, i64 32, i64 8, !9, i64 40, i64 8, !9, i64 48, i64 8, !9}
!12 = !{!13, !6, i64 40}
!13 = !{!"simple_cache", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !10, i64 112, !10, i64 120, !14, i64 128, !14, i64 136, !6, i64 144}
!14 = !{!"long", !7, i64 0}
!15 = !{!13, !6, i64 144}
!16 = !{!13, !14, i64 136}
!17 = !{!13, !10, i64 8}
!18 = !{!13, !10, i64 24}
!19 = !{!13, !10, i64 32}
!20 = !{!13, !10, i64 64}
!21 = !{!13, !10, i64 48}
!22 = !{!13, !10, i64 56}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!13, !10, i64 16}
!26 = !{!27, !6, i64 36}
!27 = !{!"disk_store", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !6, i64 32, !6, i64 36, !14, i64 40, !14, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !10, i64 80}
!28 = distinct !{!28, !24}
!29 = distinct !{!29, !24}


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