; LLVM IR from aagdev/mlimgsynth :: src (main_tstore_util)

; 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.TensorStoreFormat = type { ptr, ptr, ptr, ptr, ptr }
%struct.TensorStore = type { ptr, ptr, ptr, ptr, ptr }
%struct.TSTensorData = type { i32, ptr, i64, i8 }
%struct.StrSlice = type { ptr, i64 }
%struct.TStoreUtil = type { %struct.TensorStore, %struct.Stream, %struct.Stream, %struct.StringStore, %struct.anon }
%struct.Stream = type { ptr, ptr, ptr, ptr, ptr, %struct.StreamInt, i64, i32 }
%struct.StreamInt = type { [3 x ptr] }
%struct.StringStore = type { ptr, ptr, %struct.AllocatorArena }
%struct.AllocatorArena = type { i64, ptr, ptr }
%struct.anon = type { ptr, ptr, ptr, ptr, ptr, i32 }
%struct.TSTensorEntry = type { i32, i32, i32, [4 x i32], i64, i64, ptr, ptr }

@.str.10 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [32 x i8], align 1
@ts_cls_safet = external constant %struct.TensorStoreFormat, align 8
@.str.12 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [15 x i8], align 1

declare void @tstore_free(ptr noundef) #0

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @log_level_check(i32 noundef) #2

declare void @log_logf(i32 noundef, ptr noundef, ...) #0

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

declare double @timing_time(...) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @tsu_dtype_convert(ptr noundef %0) #3 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %struct.TensorStore, align 8
  %6 = alloca %struct.TSTensorData, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %struct.StrSlice, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %5) #5
  call void @llvm.memset.p0.i64(ptr align 8 %5, i8 0, i64 40, i1 false)
  %24 = getelementptr inbounds %struct.TensorStore, ptr %5, i32 0, i32 0
  %25 = getelementptr inbounds %struct.TensorStore, ptr %5, i32 0, i32 1
  %26 = getelementptr inbounds %struct.TensorStore, ptr %5, i32 0, i32 2
  %27 = getelementptr inbounds %struct.TensorStore, ptr %5, i32 0, i32 3
  %28 = getelementptr inbounds %struct.TensorStore, ptr %5, i32 0, i32 4
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.TStoreUtil, ptr %29, i32 0, i32 3
  store ptr %30, ptr %28, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #5
  call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 32, i1 false)
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.TStoreUtil, ptr %31, i32 0, i32 4
  %33 = getelementptr inbounds %struct.anon, ptr %32, i32 0, i32 4
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  %35 = icmp ne ptr %34, null
  br i1 %35, label %49, label %36

36:                                               ; preds = %1
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37
  %39 = call zeroext i1 @log_level_check(i32 noundef 10)
  br i1 %39, label %40, label %41

40:                                               ; preds = %38
  call void (i32, ptr, ...) @log_logf(i32 noundef 10, ptr noundef @.str.10)
  br label %41

41:                                               ; preds = %40, %38
  br label %42

42:                                               ; preds = %41
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  store i32 -1, ptr %4, align 4, !tbaa !9
  br label %297

45:                                               ; No predecessors!
  br label %46

46:                                               ; preds = %45
  br label %47

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  br label %49

49:                                               ; preds = %48, %1
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.TStoreUtil, ptr %50, i32 0, i32 4
  %52 = getelementptr inbounds %struct.anon, ptr %51, i32 0, i32 4
  %53 = load ptr, ptr %52, align 8, !tbaa !13
  %54 = call i32 @tstore_dtype_fromz(ptr noundef %53)
  store i32 %54, ptr %7, align 4, !tbaa !9
  %55 = load i32, ptr %7, align 4, !tbaa !9
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %74, label %57

57:                                               ; preds = %49
  br label %58

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %58
  %60 = call zeroext i1 @log_level_check(i32 noundef 10)
  br i1 %60, label %61, label %66

61:                                               ; preds = %59
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.TStoreUtil, ptr %62, i32 0, i32 4
  %64 = getelementptr inbounds %struct.anon, ptr %63, i32 0, i32 4
  %65 = load ptr, ptr %64, align 8, !tbaa !13
  call void (i32, ptr, ...) @log_logf(i32 noundef 10, ptr noundef @.str.11, ptr noundef %65)
  br label %66

66:                                               ; preds = %61, %59
  br label %67

67:                                               ; preds = %66
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68
  store i32 -1, ptr %4, align 4, !tbaa !9
  br label %297

70:                                               ; No predecessors!
  br label %71

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71
  br label %73

73:                                               ; preds = %72
  br label %74

74:                                               ; preds = %73, %49
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.TStoreUtil, ptr %75, i32 0, i32 0
  call void @tstore_copy_from(ptr noundef %5, ptr noundef %76)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %77 = getelementptr inbounds %struct.TensorStore, ptr %5, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8, !tbaa !21
  %79 = getelementptr inbounds %struct.TSTensorEntry, ptr %78, i64 0
  store ptr %79, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.TensorStore, ptr %5, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8, !tbaa !21
  %83 = call i32 @dynbuf_count(ptr noundef %82)
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds %struct.TSTensorEntry, ptr %80, i64 %84
  store ptr %85, ptr %9, align 8, !tbaa !5
  br label %86

86:                                               ; preds = %111, %74
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = icmp ult ptr %87, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %114

91:                                               ; preds = %86
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.TSTensorEntry, ptr %92, i32 0, i32 1
  %94 = load i32, ptr %93, align 4, !tbaa !22
  %95 = icmp eq i32 %94, 1
  br i1 %95, label %107, label %96

96:                                               ; preds = %91
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.TSTensorEntry, ptr %97, i32 0, i32 1
  %99 = load i32, ptr %98, align 4, !tbaa !22
  %100 = icmp eq i32 %99, 2
  br i1 %100, label %107, label %101

101:                                              ; preds = %96
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.TSTensorEntry, ptr %102, i32 0, i32 1
  %104 = load i32, ptr %103, align 4, !tbaa !22
  %105 = icmp eq i32 %104, 3
  br i1 %105, label %107, label %106

106:                                              ; preds = %101
  br label %111

107:                                              ; preds = %101, %96, %91
  %108 = load i32, ptr %7, align 4, !tbaa !9
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.TSTensorEntry, ptr %109, i32 0, i32 1
  store i32 %108, ptr %110, align 4, !tbaa !22
  br label %111

111:                                              ; preds = %107, %106
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.TSTensorEntry, ptr %112, i32 1
  store ptr %113, ptr %8, align 8, !tbaa !5
  br label %86, !llvm.loop !24

114:                                              ; preds = %90
  %115 = call double (...) @timing_time()
  store double %115, ptr %10, align 8, !tbaa !26
  br label %116

116:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.TStoreUtil, ptr %117, i32 0, i32 2
  %119 = call i32 @tstore_write(ptr noundef %5, ptr noundef %118, ptr noundef @ts_cls_safet, ptr noundef null)
  store i32 %119, ptr %11, align 4, !tbaa !9
  %120 = load i32, ptr %11, align 4, !tbaa !9
  %121 = icmp slt i32 %120, 0
  br i1 %121, label %122, label %127

122:                                              ; preds = %116
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %124, ptr %4, align 4, !tbaa !9
  store i32 8, ptr %12, align 4
  br label %128

125:                                              ; No predecessors!
  br label %126

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126, %116
  store i32 0, ptr %12, align 4
  br label %128

128:                                              ; preds = %127, %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %129 = load i32, ptr %12, align 4
  switch i32 %129, label %312 [
    i32 0, label %130
    i32 8, label %297
  ]

130:                                              ; preds = %128
  br label %131

131:                                              ; preds = %130
  br label %132

132:                                              ; preds = %131
  store i32 0, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %133 = getelementptr inbounds %struct.TensorStore, ptr %5, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8, !tbaa !21
  %135 = call i32 @dynbuf_count(ptr noundef %134)
  store i32 %135, ptr %16, align 4, !tbaa !9
  br label %136

136:                                              ; preds = %273, %132
  %137 = load i32, ptr %15, align 4, !tbaa !9
  %138 = load i32, ptr %16, align 4, !tbaa !9
  %139 = icmp ult i32 %137, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %136
  store i32 22, ptr %12, align 4
  br label %276

141:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.TStoreUtil, ptr %142, i32 0, i32 0
  %144 = getelementptr inbounds %struct.TensorStore, ptr %143, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8, !tbaa !28
  %146 = load i32, ptr %15, align 4, !tbaa !9
  %147 = zext i32 %146 to i64
  %148 = getelementptr inbounds %struct.TSTensorEntry, ptr %145, i64 %147
  store ptr %148, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %149 = getelementptr inbounds %struct.TensorStore, ptr %5, i32 0, i32 0
  %150 = load ptr, ptr %149, align 8, !tbaa !21
  %151 = load i32, ptr %15, align 4, !tbaa !9
  %152 = zext i32 %151 to i64
  %153 = getelementptr inbounds %struct.TSTensorEntry, ptr %150, i64 %152
  store ptr %153, ptr %18, align 8, !tbaa !5
  br label %154

154:                                              ; preds = %141
  %155 = call zeroext i1 @log_level_check(i32 noundef 50)
  br i1 %155, label %156, label %177

156:                                              ; preds = %154
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.TStoreUtil, ptr %157, i32 0, i32 3
  %159 = load ptr, ptr %17, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.TSTensorEntry, ptr %159, i32 0, i32 0
  %161 = load i32, ptr %160, align 8, !tbaa !29
  %162 = call { ptr, i64 } @strsto_get(ptr noundef %158, i32 noundef %161)
  %163 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %164 = extractvalue { ptr, i64 } %162, 0
  store ptr %164, ptr %163, align 8
  %165 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %166 = extractvalue { ptr, i64 } %162, 1
  store i64 %166, ptr %165, align 8
  %167 = getelementptr inbounds %struct.StrSlice, ptr %19, i32 0, i32 0
  %168 = load ptr, ptr %167, align 8, !tbaa !30
  %169 = load ptr, ptr %17, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.TSTensorEntry, ptr %169, i32 0, i32 1
  %171 = load i32, ptr %170, align 4, !tbaa !22
  %172 = call ptr @tstore_dtype_str(i32 noundef %171)
  %173 = load ptr, ptr %18, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.TSTensorEntry, ptr %173, i32 0, i32 1
  %175 = load i32, ptr %174, align 4, !tbaa !22
  %176 = call ptr @tstore_dtype_str(i32 noundef %175)
  call void (i32, ptr, ...) @log_logf(i32 noundef 50, ptr noundef @.str.12, ptr noundef %168, ptr noundef %172, ptr noundef %176)
  br label %177

177:                                              ; preds = %156, %154
  br label %178

178:                                              ; preds = %177
  br label %179

179:                                              ; preds = %178
  br label %180

180:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %181 = load ptr, ptr %17, align 8, !tbaa !5
  %182 = load ptr, ptr %18, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.TSTensorEntry, ptr %182, i32 0, i32 1
  %184 = load i32, ptr %183, align 4, !tbaa !22
  %185 = call i32 @tstore_tensor_data_get(ptr noundef %181, i32 noundef %184, i32 noundef 0, ptr noundef %6)
  store i32 %185, ptr %20, align 4, !tbaa !9
  %186 = load i32, ptr %20, align 4, !tbaa !9
  %187 = icmp slt i32 %186, 0
  br i1 %187, label %188, label %193

188:                                              ; preds = %180
  br label %189

189:                                              ; preds = %188
  %190 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %190, ptr %4, align 4, !tbaa !9
  store i32 8, ptr %12, align 4
  br label %194

191:                                              ; No predecessors!
  br label %192

192:                                              ; preds = %191
  br label %193

193:                                              ; preds = %192, %180
  store i32 0, ptr %12, align 4
  br label %194

194:                                              ; preds = %193, %189
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  %195 = load i32, ptr %12, align 4
  switch i32 %195, label %270 [
    i32 0, label %196
  ]

196:                                              ; preds = %194
  br label %197

197:                                              ; preds = %196
  br label %198

198:                                              ; preds = %197
  br label %199

199:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %200 = load ptr, ptr %3, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.TStoreUtil, ptr %200, i32 0, i32 2
  %202 = load ptr, ptr %18, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.TSTensorEntry, ptr %202, i32 0, i32 4
  %204 = load i64, ptr %203, align 8, !tbaa !32
  %205 = call i32 @stream_seek(ptr noundef %201, i64 noundef %204, i32 noundef 0)
  store i32 %205, ptr %21, align 4, !tbaa !9
  %206 = load i32, ptr %21, align 4, !tbaa !9
  %207 = icmp slt i32 %206, 0
  br i1 %207, label %208, label %222

208:                                              ; preds = %199
  br label %209

209:                                              ; preds = %208
  br label %210

210:                                              ; preds = %209
  %211 = call zeroext i1 @log_level_check(i32 noundef 10)
  br i1 %211, label %212, label %213

212:                                              ; preds = %210
  call void (i32, ptr, ...) @log_logf(i32 noundef 10, ptr noundef @.str.13)
  br label %213

213:                                              ; preds = %212, %210
  br label %214

214:                                              ; preds = %213
  br label %215

215:                                              ; preds = %214
  br label %216

216:                                              ; preds = %215
  %217 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %217, ptr %4, align 4, !tbaa !9
  store i32 8, ptr %12, align 4
  br label %223

218:                                              ; No predecessors!
  br label %219

219:                                              ; preds = %218
  br label %220

220:                                              ; preds = %219
  br label %221

221:                                              ; preds = %220
  br label %222

222:                                              ; preds = %221, %199
  store i32 0, ptr %12, align 4
  br label %223

223:                                              ; preds = %222, %216
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  %224 = load i32, ptr %12, align 4
  switch i32 %224, label %270 [
    i32 0, label %225
  ]

225:                                              ; preds = %223
  br label %226

226:                                              ; preds = %225
  br label %227

227:                                              ; preds = %226
  br label %228

228:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %229 = load ptr, ptr %3, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.TStoreUtil, ptr %229, i32 0, i32 2
  %231 = getelementptr inbounds %struct.TSTensorData, ptr %6, i32 0, i32 2
  %232 = load i64, ptr %231, align 8, !tbaa !33
  %233 = getelementptr inbounds %struct.TSTensorData, ptr %6, i32 0, i32 1
  %234 = load ptr, ptr %233, align 8, !tbaa !35
  %235 = call i32 @stream_write_chk(ptr noundef %230, i64 noundef %232, ptr noundef %234)
  store i32 %235, ptr %22, align 4, !tbaa !9
  %236 = load i32, ptr %22, align 4, !tbaa !9
  %237 = icmp slt i32 %236, 0
  br i1 %237, label %238, label %252

238:                                              ; preds = %228
  br label %239

239:                                              ; preds = %238
  br label %240

240:                                              ; preds = %239
  %241 = call zeroext i1 @log_level_check(i32 noundef 10)
  br i1 %241, label %242, label %243

242:                                              ; preds = %240
  call void (i32, ptr, ...) @log_logf(i32 noundef 10, ptr noundef @.str.14)
  br label %243

243:                                              ; preds = %242, %240
  br label %244

244:                                              ; preds = %243
  br label %245

245:                                              ; preds = %244
  br label %246

246:                                              ; preds = %245
  %247 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %247, ptr %4, align 4, !tbaa !9
  store i32 8, ptr %12, align 4
  br label %253

248:                                              ; No predecessors!
  br label %249

249:                                              ; preds = %248
  br label %250

250:                                              ; preds = %249
  br label %251

251:                                              ; preds = %250
  br label %252

252:                                              ; preds = %251, %228
  store i32 0, ptr %12, align 4
  br label %253

253:                                              ; preds = %252, %246
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  %254 = load i32, ptr %12, align 4
  switch i32 %254, label %270 [
    i32 0, label %255
  ]

255:                                              ; preds = %253
  br label %256

256:                                              ; preds = %255
  br label %257

257:                                              ; preds = %256
  %258 = load i32, ptr %13, align 4, !tbaa !9
  %259 = add i32 %258, 1
  store i32 %259, ptr %13, align 4, !tbaa !9
  %260 = load ptr, ptr %18, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.TSTensorEntry, ptr %260, i32 0, i32 1
  %262 = load i32, ptr %261, align 4, !tbaa !22
  %263 = load ptr, ptr %17, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.TSTensorEntry, ptr %263, i32 0, i32 1
  %265 = load i32, ptr %264, align 4, !tbaa !22
  %266 = icmp ne i32 %262, %265
  %267 = zext i1 %266 to i32
  %268 = load i32, ptr %14, align 4, !tbaa !9
  %269 = add i32 %268, %267
  store i32 %269, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %12, align 4
  br label %270

270:                                              ; preds = %257, %253, %223, %194
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  %271 = load i32, ptr %12, align 4
  switch i32 %271, label %276 [
    i32 0, label %272
  ]

272:                                              ; preds = %270
  br label %273

273:                                              ; preds = %272
  %274 = load i32, ptr %15, align 4, !tbaa !9
  %275 = add i32 %274, 1
  store i32 %275, ptr %15, align 4, !tbaa !9
  br label %136, !llvm.loop !36

276:                                              ; preds = %270, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  %277 = load i32, ptr %12, align 4
  switch i32 %277, label %312 [
    i32 22, label %278
    i32 8, label %297
  ]

278:                                              ; preds = %276
  %279 = call double (...) @timing_time()
  %280 = load double, ptr %10, align 8, !tbaa !26
  %281 = fsub double %279, %280
  store double %281, ptr %10, align 8, !tbaa !26
  %282 = load ptr, ptr %3, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.TStoreUtil, ptr %282, i32 0, i32 2
  %284 = call i64 @stream_pos_get(ptr noundef %283)
  store i64 %284, ptr %23, align 8, !tbaa !37
  br label %285

285:                                              ; preds = %278
  %286 = call zeroext i1 @log_level_check(i32 noundef 30)
  br i1 %286, label %287, label %294

287:                                              ; preds = %285
  %288 = load i32, ptr %13, align 4, !tbaa !9
  %289 = load i32, ptr %14, align 4, !tbaa !9
  %290 = load i64, ptr %23, align 8, !tbaa !37
  %291 = uitofp i64 %290 to double
  %292 = fmul double %291, 0x3E10000000000000
  %293 = load double, ptr %10, align 8, !tbaa !26
  call void (i32, ptr, ...) @log_logf(i32 noundef 30, ptr noundef @.str.15, i32 noundef %288, i32 noundef %289, double noundef %292, double noundef %293)
  br label %294

294:                                              ; preds = %287, %285
  br label %295

295:                                              ; preds = %294
  br label %296

296:                                              ; preds = %295
  br label %297

297:                                              ; preds = %296, %276, %128, %69, %44
  %298 = load i32, ptr %4, align 4, !tbaa !9
  %299 = icmp slt i32 %298, 0
  br i1 %299, label %300, label %310

300:                                              ; preds = %297
  br label %301

301:                                              ; preds = %300
  %302 = call zeroext i1 @log_level_check(i32 noundef 10)
  br i1 %302, label %303, label %307

303:                                              ; preds = %301
  %304 = load ptr, ptr %3, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.TStoreUtil, ptr %304, i32 0, i32 2
  %306 = call i64 @stream_pos_get(ptr noundef %305)
  call void (i32, ptr, ...) @log_logf(i32 noundef 10, ptr noundef @.str.16, i64 noundef %306)
  br label %307

307:                                              ; preds = %303, %301
  br label %308

308:                                              ; preds = %307
  br label %309

309:                                              ; preds = %308
  br label %310

310:                                              ; preds = %309, %297
  call void @tstore_tdata_free(ptr noundef %6)
  call void @tstore_free(ptr noundef %5)
  %311 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %311, ptr %2, align 4
  store i32 1, ptr %12, align 4
  br label %312

312:                                              ; preds = %310, %276, %128
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  %313 = load i32, ptr %2, align 4
  ret i32 %313
}

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

declare i32 @tstore_dtype_fromz(ptr noundef) #0

declare void @tstore_copy_from(ptr noundef, ptr noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @dynbuf_count(ptr noundef) #2

declare i32 @tstore_write(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden { ptr, i64 } @strsto_get(ptr noundef, i32 noundef) #2

declare ptr @tstore_dtype_str(i32 noundef) #0

declare i32 @tstore_tensor_data_get(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @stream_seek(ptr noundef, i64 noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @stream_write_chk(ptr noalias noundef, i64 noundef, ptr noalias noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @stream_pos_get(ptr noundef) #2

declare void @tstore_tdata_free(ptr noundef) #0

attributes #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 32}
!12 = !{!"TensorStore", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!13 = !{!14, !6, i64 272}
!14 = !{!"TStoreUtil", !12, i64 0, !15, i64 40, !15, i64 120, !18, i64 200, !20, i64 240}
!15 = !{!"Stream", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !16, i64 40, !17, i64 64, !10, i64 72}
!16 = !{!"StreamInt", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"StringStore", !6, i64 0, !6, i64 8, !19, i64 16}
!19 = !{!"AllocatorArena", !17, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40}
!21 = !{!12, !6, i64 0}
!22 = !{!23, !10, i64 4}
!23 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 12, !17, i64 32, !17, i64 40, !6, i64 48, !6, i64 56}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!27, !27, i64 0}
!27 = !{!"double", !7, i64 0}
!28 = !{!14, !6, i64 0}
!29 = !{!23, !10, i64 0}
!30 = !{!31, !6, i64 0}
!31 = !{!"StrSlice", !6, i64 0, !17, i64 8}
!32 = !{!23, !17, i64 32}
!33 = !{!34, !17, i64 16}
!34 = !{!"", !10, i64 0, !6, i64 8, !17, i64 16, !10, i64 24, !10, i64 24}
!35 = !{!34, !6, i64 8}
!36 = distinct !{!36, !25}
!37 = !{!17, !17, i64 0}


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

%struct.TensorStoreFormat = type { ptr, ptr, ptr, ptr, ptr }
%struct.TensorStore = type { ptr, ptr, ptr, ptr, ptr }
%struct.TSTensorData = type { i32, ptr, i64, i8 }
%struct.TSTensorEntry = type { i32, i32, i32, [4 x i32], i64, i64, ptr, ptr }

@.str.10 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [32 x i8], align 1
@ts_cls_safet = external constant %struct.TensorStoreFormat, align 8
@.str.12 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [15 x i8], align 1

declare void @tstore_free(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @log_level_check(i32 noundef) local_unnamed_addr #2

declare void @log_logf(i32 noundef, ptr noundef, ...) local_unnamed_addr #0

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

declare double @timing_time(...) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @tsu_dtype_convert(ptr noundef %0) local_unnamed_addr #3 {
  %2 = alloca %struct.TensorStore, align 8
  %3 = alloca %struct.TSTensorData, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %2, i8 0, i64 32, i1 false)
  %4 = getelementptr inbounds i8, ptr %2, i64 32
  %5 = getelementptr inbounds i8, ptr %0, i64 200
  store ptr %5, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %3, i8 0, i64 32, i1 false)
  %6 = getelementptr inbounds i8, ptr %0, i64 272
  %7 = load ptr, ptr %6, align 8, !tbaa !10
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %8, label %11

8:                                                ; preds = %1
  %9 = tail call zeroext i1 @log_level_check(i32 noundef 10)
  br i1 %9, label %10, label %.thread121

10:                                               ; preds = %8
  tail call void (i32, ptr, ...) @log_logf(i32 noundef 10, ptr noundef nonnull @.str.10) #5
  br label %.thread121

11:                                               ; preds = %1
  %12 = tail call i32 @tstore_dtype_fromz(ptr noundef nonnull %7) #5
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %18, label %14

14:                                               ; preds = %11
  %15 = tail call zeroext i1 @log_level_check(i32 noundef 10)
  br i1 %15, label %16, label %.thread121

16:                                               ; preds = %14
  %17 = load ptr, ptr %6, align 8, !tbaa !10
  tail call void (i32, ptr, ...) @log_logf(i32 noundef 10, ptr noundef nonnull @.str.11, ptr noundef %17) #5
  br label %.thread121

18:                                               ; preds = %11
  call void @tstore_copy_from(ptr noundef nonnull %2, ptr noundef nonnull %0) #5
  %19 = load ptr, ptr %2, align 8, !tbaa !19
  %20 = call i32 @dynbuf_count(ptr noundef %19)
  %21 = zext i32 %20 to i64
  %22 = getelementptr inbounds %struct.TSTensorEntry, ptr %19, i64 %21
  %.not143 = icmp eq i32 %20, 0
  br i1 %.not143, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %30, %18
  %23 = call double (...) @timing_time() #5
  %24 = getelementptr inbounds i8, ptr %0, i64 120
  %25 = call i32 @tstore_write(ptr noundef nonnull %2, ptr noundef nonnull %24, ptr noundef nonnull @ts_cls_safet, ptr noundef null) #5
  %26 = icmp slt i32 %25, 0
  br i1 %26, label %.thread121, label %33

.lr.ph:                                           ; preds = %18, %30
  %.062136 = phi ptr [ %31, %30 ], [ %19, %18 ]
  %27 = getelementptr inbounds i8, ptr %.062136, i64 4
  %28 = load i32, ptr %27, align 4, !tbaa !20
  %.off = add i32 %28, -1
  %switch = icmp ult i32 %.off, 3
  br i1 %switch, label %29, label %30

29:                                               ; preds = %.lr.ph
  store i32 %12, ptr %27, align 4, !tbaa !20
  br label %30

30:                                               ; preds = %.lr.ph, %29
  %31 = getelementptr inbounds i8, ptr %.062136, i64 64
  %32 = icmp ult ptr %31, %22
  br i1 %32, label %.lr.ph, label %._crit_edge, !llvm.loop !22

33:                                               ; preds = %._crit_edge
  %34 = load ptr, ptr %2, align 8, !tbaa !19
  %35 = call i32 @dynbuf_count(ptr noundef %34)
  %.not144 = icmp eq i32 %35, 0
  br i1 %.not144, label %.thread107, label %.lr.ph141

.lr.ph141:                                        ; preds = %33
  %36 = getelementptr inbounds i8, ptr %3, i64 16
  %37 = getelementptr inbounds i8, ptr %3, i64 8
  %wide.trip.count = zext i32 %35 to i64
  br label %38

38:                                               ; preds = %.lr.ph141, %.thread98
  %indvars.iv = phi i64 [ 0, %.lr.ph141 ], [ %indvars.iv.next, %.thread98 ]
  %.072138 = phi i32 [ 0, %.lr.ph141 ], [ %80, %.thread98 ]
  %39 = load ptr, ptr %0, align 8, !tbaa !24
  %40 = getelementptr inbounds %struct.TSTensorEntry, ptr %39, i64 %indvars.iv
  %41 = load ptr, ptr %2, align 8, !tbaa !19
  %42 = getelementptr inbounds %struct.TSTensorEntry, ptr %41, i64 %indvars.iv
  %43 = call zeroext i1 @log_level_check(i32 noundef 50)
  br i1 %43, label %44, label %54

44:                                               ; preds = %38
  %45 = load i32, ptr %40, align 8, !tbaa !25
  %46 = call { ptr, i64 } @strsto_get(ptr noundef nonnull %5, i32 noundef %45)
  %47 = extractvalue { ptr, i64 } %46, 0
  %48 = getelementptr inbounds i8, ptr %40, i64 4
  %49 = load i32, ptr %48, align 4, !tbaa !20
  %50 = call ptr @tstore_dtype_str(i32 noundef %49) #5
  %51 = getelementptr inbounds i8, ptr %42, i64 4
  %52 = load i32, ptr %51, align 4, !tbaa !20
  %53 = call ptr @tstore_dtype_str(i32 noundef %52) #5
  call void (i32, ptr, ...) @log_logf(i32 noundef 50, ptr noundef nonnull @.str.12, ptr noundef %47, ptr noundef %50, ptr noundef %53) #5
  br label %54

54:                                               ; preds = %38, %44
  %55 = getelementptr inbounds i8, ptr %42, i64 4
  %56 = load i32, ptr %55, align 4, !tbaa !20
  %57 = call i32 @tstore_tensor_data_get(ptr noundef %40, i32 noundef %56, i32 noundef 0, ptr noundef nonnull %3) #5
  %58 = icmp sgt i32 %57, -1
  br i1 %58, label %59, label %.thread121

59:                                               ; preds = %54
  %60 = getelementptr inbounds i8, ptr %42, i64 32
  %61 = load i64, ptr %60, align 8, !tbaa !26
  %62 = call i32 @stream_seek(ptr noundef nonnull %24, i64 noundef %61, i32 noundef 0)
  %63 = icmp sgt i32 %62, -1
  br i1 %63, label %67, label %64

64:                                               ; preds = %59
  %65 = call zeroext i1 @log_level_check(i32 noundef 10)
  br i1 %65, label %66, label %.thread121

66:                                               ; preds = %64
  call void (i32, ptr, ...) @log_logf(i32 noundef 10, ptr noundef nonnull @.str.13) #5
  br label %.thread121

67:                                               ; preds = %59
  %68 = load i64, ptr %36, align 8, !tbaa !27
  %69 = load ptr, ptr %37, align 8, !tbaa !29
  %70 = call i32 @stream_write_chk(ptr noundef nonnull %24, i64 noundef %68, ptr noundef %69)
  %71 = icmp sgt i32 %70, -1
  br i1 %71, label %.thread98, label %72

72:                                               ; preds = %67
  %73 = call zeroext i1 @log_level_check(i32 noundef 10)
  br i1 %73, label %74, label %.thread121

74:                                               ; preds = %72
  call void (i32, ptr, ...) @log_logf(i32 noundef 10, ptr noundef nonnull @.str.14) #5
  br label %.thread121

.thread98:                                        ; preds = %67
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %75 = load i32, ptr %55, align 4, !tbaa !20
  %76 = getelementptr inbounds i8, ptr %40, i64 4
  %77 = load i32, ptr %76, align 4, !tbaa !20
  %78 = icmp ne i32 %75, %77
  %79 = zext i1 %78 to i32
  %80 = add i32 %.072138, %79
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.thread107, label %38, !llvm.loop !30

.thread107:                                       ; preds = %.thread98, %33
  %.072.lcssa = phi i32 [ 0, %33 ], [ %80, %.thread98 ]
  %81 = call double (...) @timing_time() #5
  %82 = call i64 @stream_pos_get(ptr noundef nonnull %24)
  %83 = call zeroext i1 @log_level_check(i32 noundef 30)
  br i1 %83, label %84, label %.loopexit

84:                                               ; preds = %.thread107
  %85 = fsub double %81, %23
  %86 = uitofp i64 %82 to double
  %87 = fmul double %86, 0x3E10000000000000
  call void (i32, ptr, ...) @log_logf(i32 noundef 30, ptr noundef nonnull @.str.15, i32 noundef %35, i32 noundef %.072.lcssa, double noundef %87, double noundef %85) #5
  br label %.loopexit

.thread121:                                       ; preds = %54, %._crit_edge, %66, %64, %74, %72, %16, %14, %10, %8
  %.7124 = phi i32 [ -1, %16 ], [ -1, %14 ], [ -1, %10 ], [ -1, %8 ], [ %62, %66 ], [ %62, %64 ], [ %70, %74 ], [ %70, %72 ], [ %25, %._crit_edge ], [ %57, %54 ]
  %88 = call zeroext i1 @log_level_check(i32 noundef 10)
  br i1 %88, label %89, label %.loopexit

89:                                               ; preds = %.thread121
  %90 = getelementptr inbounds i8, ptr %0, i64 120
  %91 = call i64 @stream_pos_get(ptr noundef nonnull %90)
  call void (i32, ptr, ...) @log_logf(i32 noundef 10, ptr noundef nonnull @.str.16, i64 noundef %91) #5
  br label %.loopexit

.loopexit:                                        ; preds = %84, %.thread107, %.thread121, %89
  %.7123 = phi i32 [ %.7124, %.thread121 ], [ %.7124, %89 ], [ 1, %84 ], [ 1, %.thread107 ]
  call void @tstore_tdata_free(ptr noundef nonnull %3) #5
  call void @tstore_free(ptr noundef nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #5
  ret i32 %.7123
}

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

declare i32 @tstore_dtype_fromz(ptr noundef) local_unnamed_addr #0

declare void @tstore_copy_from(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @dynbuf_count(ptr noundef) local_unnamed_addr #2

declare i32 @tstore_write(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden { ptr, i64 } @strsto_get(ptr noundef, i32 noundef) local_unnamed_addr #2

declare ptr @tstore_dtype_str(i32 noundef) local_unnamed_addr #0

declare i32 @tstore_tensor_data_get(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @stream_seek(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @stream_write_chk(ptr noalias noundef, i64 noundef, ptr noalias noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @stream_pos_get(ptr noundef) local_unnamed_addr #2

declare void @tstore_tdata_free(ptr noundef) local_unnamed_addr #0

attributes #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }

!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, !7, i64 32}
!6 = !{!"TensorStore", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 272}
!11 = !{!"TStoreUtil", !6, i64 0, !12, i64 40, !12, i64 120, !16, i64 200, !18, i64 240}
!12 = !{!"Stream", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !13, i64 40, !14, i64 64, !15, i64 72}
!13 = !{!"StreamInt", !8, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!"StringStore", !7, i64 0, !7, i64 8, !17, i64 16}
!17 = !{!"AllocatorArena", !14, i64 0, !7, i64 8, !7, i64 16}
!18 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !15, i64 40}
!19 = !{!6, !7, i64 0}
!20 = !{!21, !15, i64 4}
!21 = !{!"", !15, i64 0, !15, i64 4, !15, i64 8, !8, i64 12, !14, i64 32, !14, i64 40, !7, i64 48, !7, i64 56}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!11, !7, i64 0}
!25 = !{!21, !15, i64 0}
!26 = !{!21, !14, i64 32}
!27 = !{!28, !14, i64 16}
!28 = !{!"", !15, i64 0, !7, i64 8, !14, i64 16, !15, i64 24, !15, i64 24}
!29 = !{!28, !7, i64 8}
!30 = distinct !{!30, !23}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass