; LLVM IR from glotzerlab/hoomd-blue :: hoomd/extern (gsd)

; 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.gsd_index_buffer = type { ptr, i64, i64, ptr, i64 }
%struct.gsd_byte_buffer = type { ptr, i64, i64 }
%struct.gsd_handle = type { i32, %struct.gsd_header, %struct.gsd_index_buffer, %struct.gsd_index_buffer, %struct.gsd_index_buffer, %struct.gsd_byte_buffer, %struct.gsd_name_buffer, %struct.gsd_name_buffer, i64, i64, i32, %struct.gsd_name_id_map, i64, i64, i64 }
%struct.gsd_header = type { i64, i64, i64, i64, i64, i32, i32, [64 x i8], [64 x i8], [80 x i8] }
%struct.gsd_name_buffer = type { %struct.gsd_byte_buffer, i64 }
%struct.gsd_name_id_map = type { ptr, i64 }

@.str = external hidden unnamed_addr constant [1 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @gsd_make_version(i32 noundef, i32 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @gsd_index_buffer_free(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

declare i32 @fsync(i32 noundef) #4

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @gsd_upgrade(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca %struct.gsd_index_buffer, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca %struct.gsd_byte_buffer, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = icmp eq ptr %14, null
  br i1 %15, label %16, label %17

16:                                               ; preds = %1
  store i32 -2, ptr %2, align 4
  br label %269

17:                                               ; preds = %1
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.gsd_handle, ptr %18, i32 0, i32 10
  %20 = load i32, ptr %19, align 8, !tbaa !9
  %21 = icmp eq i32 %20, 2
  br i1 %21, label %22, label %23

22:                                               ; preds = %17
  store i32 -2, ptr %2, align 4
  br label %269

23:                                               ; preds = %17
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.gsd_handle, ptr %24, i32 0, i32 3
  %26 = getelementptr inbounds %struct.gsd_index_buffer, ptr %25, i32 0, i32 1
  %27 = load i64, ptr %26, align 8, !tbaa !18
  %28 = icmp ugt i64 %27, 0
  br i1 %28, label %35, label %29

29:                                               ; preds = %23
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.gsd_handle, ptr %30, i32 0, i32 7
  %32 = getelementptr inbounds %struct.gsd_name_buffer, ptr %31, i32 0, i32 1
  %33 = load i64, ptr %32, align 8, !tbaa !19
  %34 = icmp ugt i64 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %29, %23
  store i32 -2, ptr %2, align 4
  br label %269

36:                                               ; preds = %29
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.gsd_handle, ptr %37, i32 0, i32 1
  %39 = getelementptr inbounds %struct.gsd_header, ptr %38, i32 0, i32 6
  %40 = load i32, ptr %39, align 4, !tbaa !20
  %41 = call i32 @gsd_make_version(i32 noundef 2, i32 noundef 0)
  %42 = icmp ult i32 %40, %41
  br i1 %42, label %43, label %268

43:                                               ; preds = %36
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.gsd_handle, ptr %44, i32 0, i32 2
  %46 = getelementptr inbounds %struct.gsd_index_buffer, ptr %45, i32 0, i32 1
  %47 = load i64, ptr %46, align 8, !tbaa !21
  %48 = icmp ugt i64 %47, 0
  br i1 %48, label %49, label %125

49:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 40, ptr %4) #6
  call void @gsd_util_zero_memory(ptr noundef %4, i64 noundef 40)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.gsd_handle, ptr %50, i32 0, i32 2
  %52 = getelementptr inbounds %struct.gsd_index_buffer, ptr %51, i32 0, i32 1
  %53 = load i64, ptr %52, align 8, !tbaa !21
  %54 = call i32 @gsd_index_buffer_allocate(ptr noundef %4, i64 noundef %53)
  store i32 %54, ptr %5, align 4, !tbaa !22
  %55 = load i32, ptr %5, align 4, !tbaa !22
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %59

57:                                               ; preds = %49
  %58 = load i32, ptr %5, align 4, !tbaa !22
  store i32 %58, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %122

59:                                               ; preds = %49
  %60 = getelementptr inbounds %struct.gsd_index_buffer, ptr %4, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !23
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.gsd_handle, ptr %62, i32 0, i32 2
  %64 = getelementptr inbounds %struct.gsd_index_buffer, ptr %63, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8, !tbaa !24
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.gsd_handle, ptr %66, i32 0, i32 2
  %68 = getelementptr inbounds %struct.gsd_index_buffer, ptr %67, i32 0, i32 1
  %69 = load i64, ptr %68, align 8, !tbaa !21
  %70 = mul i64 32, %69
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %61, ptr align 8 %65, i64 %70, i1 false)
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.gsd_handle, ptr %71, i32 0, i32 2
  %73 = getelementptr inbounds %struct.gsd_index_buffer, ptr %72, i32 0, i32 1
  %74 = load i64, ptr %73, align 8, !tbaa !21
  %75 = getelementptr inbounds %struct.gsd_index_buffer, ptr %4, i32 0, i32 1
  store i64 %74, ptr %75, align 8, !tbaa !25
  %76 = call i32 @gsd_index_buffer_sort(ptr noundef %4)
  store i32 %76, ptr %5, align 4, !tbaa !22
  %77 = load i32, ptr %5, align 4, !tbaa !22
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %82

79:                                               ; preds = %59
  %80 = call i32 @gsd_index_buffer_free(ptr noundef %4)
  %81 = load i32, ptr %5, align 4, !tbaa !22
  store i32 %81, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %122

82:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.gsd_handle, ptr %83, i32 0, i32 0
  %85 = load i32, ptr %84, align 8, !tbaa !26
  %86 = getelementptr inbounds %struct.gsd_index_buffer, ptr %4, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !23
  %88 = getelementptr inbounds %struct.gsd_index_buffer, ptr %4, i32 0, i32 1
  %89 = load i64, ptr %88, align 8, !tbaa !25
  %90 = mul i64 32, %89
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.gsd_handle, ptr %91, i32 0, i32 1
  %93 = getelementptr inbounds %struct.gsd_header, ptr %92, i32 0, i32 1
  %94 = load i64, ptr %93, align 8, !tbaa !27
  %95 = call i64 @gsd_io_pwrite_retry(i32 noundef %85, ptr noundef %87, i64 noundef %90, i64 noundef %94)
  store i64 %95, ptr %7, align 8, !tbaa !28
  %96 = load i64, ptr %7, align 8, !tbaa !28
  %97 = icmp eq i64 %96, -1
  br i1 %97, label %104, label %98

98:                                               ; preds = %82
  %99 = load i64, ptr %7, align 8, !tbaa !28
  %100 = getelementptr inbounds %struct.gsd_index_buffer, ptr %4, i32 0, i32 1
  %101 = load i64, ptr %100, align 8, !tbaa !25
  %102 = mul i64 32, %101
  %103 = icmp ne i64 %99, %102
  br i1 %103, label %104, label %106

104:                                              ; preds = %98, %82
  %105 = call i32 @gsd_index_buffer_free(ptr noundef %4)
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %121

106:                                              ; preds = %98
  %107 = call i32 @gsd_index_buffer_free(ptr noundef %4)
  store i32 %107, ptr %5, align 4, !tbaa !22
  %108 = load i32, ptr %5, align 4, !tbaa !22
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %112

110:                                              ; preds = %106
  %111 = load i32, ptr %5, align 4, !tbaa !22
  store i32 %111, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %121

112:                                              ; preds = %106
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.gsd_handle, ptr %113, i32 0, i32 0
  %115 = load i32, ptr %114, align 8, !tbaa !26
  %116 = call i32 @fsync(i32 noundef %115)
  store i32 %116, ptr %5, align 4, !tbaa !22
  %117 = load i32, ptr %5, align 4, !tbaa !22
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %120

119:                                              ; preds = %112
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %121

120:                                              ; preds = %112
  store i32 0, ptr %6, align 4
  br label %121

121:                                              ; preds = %120, %119, %110, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %122

122:                                              ; preds = %121, %79, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %4) #6
  %123 = load i32, ptr %6, align 4
  switch i32 %123, label %271 [
    i32 0, label %124
    i32 1, label %269
  ]

124:                                              ; preds = %122
  br label %125

125:                                              ; preds = %124, %43
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.gsd_handle, ptr %126, i32 0, i32 6
  %128 = getelementptr inbounds %struct.gsd_name_buffer, ptr %127, i32 0, i32 1
  %129 = load i64, ptr %128, align 8, !tbaa !29
  %130 = icmp ugt i64 %129, 0
  br i1 %130, label %131, label %224

131:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #6
  call void @gsd_util_zero_memory(ptr noundef %8, i64 noundef 24)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.gsd_handle, ptr %132, i32 0, i32 6
  %134 = getelementptr inbounds %struct.gsd_name_buffer, ptr %133, i32 0, i32 0
  %135 = getelementptr inbounds %struct.gsd_byte_buffer, ptr %134, i32 0, i32 2
  %136 = load i64, ptr %135, align 8, !tbaa !30
  %137 = call i32 @gsd_byte_buffer_allocate(ptr noundef %8, i64 noundef %136)
  store i32 %137, ptr %9, align 4, !tbaa !22
  %138 = load i32, ptr %9, align 4, !tbaa !22
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %142

140:                                              ; preds = %131
  %141 = load i32, ptr %9, align 4, !tbaa !22
  store i32 %141, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %221

142:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %143 = load ptr, ptr %3, align 8, !tbaa !5
  %144 = call ptr @gsd_find_matching_chunk_name(ptr noundef %143, ptr noundef @.str, ptr noundef null)
  store ptr %144, ptr %10, align 8, !tbaa !5
  br label %145

145:                                              ; preds = %159, %142
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  %147 = icmp ne ptr %146, null
  br i1 %147, label %148, label %163

148:                                              ; preds = %145
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = load ptr, ptr %10, align 8, !tbaa !5
  %151 = call i64 @strlen(ptr noundef %150) #7
  %152 = add i64 %151, 1
  %153 = call i32 @gsd_byte_buffer_append(ptr noundef %8, ptr noundef %149, i64 noundef %152)
  store i32 %153, ptr %9, align 4, !tbaa !22
  %154 = load i32, ptr %9, align 4, !tbaa !22
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %159

156:                                              ; preds = %148
  %157 = call i32 @gsd_byte_buffer_free(ptr noundef %8)
  %158 = load i32, ptr %9, align 4, !tbaa !22
  store i32 %158, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %220

159:                                              ; preds = %148
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = load ptr, ptr %10, align 8, !tbaa !5
  %162 = call ptr @gsd_find_matching_chunk_name(ptr noundef %160, ptr noundef @.str, ptr noundef %161)
  store ptr %162, ptr %10, align 8, !tbaa !5
  br label %145, !llvm.loop !31

163:                                              ; preds = %145
  %164 = getelementptr inbounds %struct.gsd_byte_buffer, ptr %8, i32 0, i32 2
  %165 = load i64, ptr %164, align 8, !tbaa !33
  %166 = load ptr, ptr %3, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.gsd_handle, ptr %166, i32 0, i32 6
  %168 = getelementptr inbounds %struct.gsd_name_buffer, ptr %167, i32 0, i32 0
  %169 = getelementptr inbounds %struct.gsd_byte_buffer, ptr %168, i32 0, i32 2
  %170 = load i64, ptr %169, align 8, !tbaa !30
  %171 = icmp ne i64 %165, %170
  br i1 %171, label %172, label %174

172:                                              ; preds = %163
  %173 = call i32 @gsd_byte_buffer_free(ptr noundef %8)
  store i32 -5, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %220

174:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %175 = load ptr, ptr %3, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.gsd_handle, ptr %175, i32 0, i32 0
  %177 = load i32, ptr %176, align 8, !tbaa !26
  %178 = getelementptr inbounds %struct.gsd_byte_buffer, ptr %8, i32 0, i32 0
  %179 = load ptr, ptr %178, align 8, !tbaa !34
  %180 = getelementptr inbounds %struct.gsd_byte_buffer, ptr %8, i32 0, i32 2
  %181 = load i64, ptr %180, align 8, !tbaa !33
  %182 = load ptr, ptr %3, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.gsd_handle, ptr %182, i32 0, i32 1
  %184 = getelementptr inbounds %struct.gsd_header, ptr %183, i32 0, i32 3
  %185 = load i64, ptr %184, align 8, !tbaa !35
  %186 = call i64 @gsd_io_pwrite_retry(i32 noundef %177, ptr noundef %179, i64 noundef %181, i64 noundef %185)
  store i64 %186, ptr %11, align 8, !tbaa !28
  %187 = load i64, ptr %11, align 8, !tbaa !28
  %188 = icmp eq i64 %187, -1
  br i1 %188, label %194, label %189

189:                                              ; preds = %174
  %190 = load i64, ptr %11, align 8, !tbaa !28
  %191 = getelementptr inbounds %struct.gsd_byte_buffer, ptr %8, i32 0, i32 2
  %192 = load i64, ptr %191, align 8, !tbaa !33
  %193 = icmp ne i64 %190, %192
  br i1 %193, label %194, label %196

194:                                              ; preds = %189, %174
  %195 = call i32 @gsd_byte_buffer_free(ptr noundef %8)
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %219

196:                                              ; preds = %189
  %197 = load ptr, ptr %3, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.gsd_handle, ptr %197, i32 0, i32 6
  %199 = getelementptr inbounds %struct.gsd_name_buffer, ptr %198, i32 0, i32 0
  %200 = call i32 @gsd_byte_buffer_free(ptr noundef %199)
  store i32 %200, ptr %9, align 4, !tbaa !22
  %201 = load i32, ptr %9, align 4, !tbaa !22
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %203, label %206

203:                                              ; preds = %196
  %204 = call i32 @gsd_byte_buffer_free(ptr noundef %8)
  %205 = load i32, ptr %9, align 4, !tbaa !22
  store i32 %205, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %219

206:                                              ; preds = %196
  %207 = load ptr, ptr %3, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.gsd_handle, ptr %207, i32 0, i32 6
  %209 = getelementptr inbounds %struct.gsd_name_buffer, ptr %208, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %209, ptr align 8 %8, i64 24, i1 false), !tbaa.struct !36
  %210 = load ptr, ptr %3, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.gsd_handle, ptr %210, i32 0, i32 0
  %212 = load i32, ptr %211, align 8, !tbaa !26
  %213 = call i32 @fsync(i32 noundef %212)
  store i32 %213, ptr %9, align 4, !tbaa !22
  %214 = load i32, ptr %9, align 4, !tbaa !22
  %215 = icmp ne i32 %214, 0
  br i1 %215, label %216, label %218

216:                                              ; preds = %206
  %217 = call i32 @gsd_byte_buffer_free(ptr noundef %8)
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %219

218:                                              ; preds = %206
  store i32 0, ptr %6, align 4
  br label %219

219:                                              ; preds = %218, %216, %203, %194
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %220

220:                                              ; preds = %219, %172, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %221

221:                                              ; preds = %220, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  %222 = load i32, ptr %6, align 4
  switch i32 %222, label %271 [
    i32 0, label %223
    i32 1, label %269
  ]

223:                                              ; preds = %221
  br label %224

224:                                              ; preds = %223, %125
  %225 = call i32 @gsd_make_version(i32 noundef 2, i32 noundef 0)
  %226 = load ptr, ptr %3, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.gsd_handle, ptr %226, i32 0, i32 1
  %228 = getelementptr inbounds %struct.gsd_header, ptr %227, i32 0, i32 6
  store i32 %225, ptr %228, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %229 = load ptr, ptr %3, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.gsd_handle, ptr %229, i32 0, i32 0
  %231 = load i32, ptr %230, align 8, !tbaa !26
  %232 = load ptr, ptr %3, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.gsd_handle, ptr %232, i32 0, i32 1
  %234 = call i64 @gsd_io_pwrite_retry(i32 noundef %231, ptr noundef %233, i64 noundef 256, i64 noundef 0)
  store i64 %234, ptr %12, align 8, !tbaa !28
  %235 = load i64, ptr %12, align 8, !tbaa !28
  %236 = icmp ne i64 %235, 256
  br i1 %236, label %237, label %238

237:                                              ; preds = %224
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %265

238:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %239 = load ptr, ptr %3, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.gsd_handle, ptr %239, i32 0, i32 0
  %241 = load i32, ptr %240, align 8, !tbaa !26
  %242 = call i32 @fsync(i32 noundef %241)
  store i32 %242, ptr %13, align 4, !tbaa !22
  %243 = load i32, ptr %13, align 4, !tbaa !22
  %244 = icmp ne i32 %243, 0
  br i1 %244, label %245, label %246

245:                                              ; preds = %238
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %264

246:                                              ; preds = %238
  %247 = load ptr, ptr %3, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.gsd_handle, ptr %247, i32 0, i32 2
  %249 = call i32 @gsd_index_buffer_free(ptr noundef %248)
  store i32 %249, ptr %13, align 4, !tbaa !22
  %250 = load i32, ptr %13, align 4, !tbaa !22
  %251 = icmp ne i32 %250, 0
  br i1 %251, label %252, label %254

252:                                              ; preds = %246
  %253 = load i32, ptr %13, align 4, !tbaa !22
  store i32 %253, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %264

254:                                              ; preds = %246
  %255 = load ptr, ptr %3, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.gsd_handle, ptr %255, i32 0, i32 2
  %257 = load ptr, ptr %3, align 8, !tbaa !5
  %258 = call i32 @gsd_index_buffer_map(ptr noundef %256, ptr noundef %257)
  store i32 %258, ptr %13, align 4, !tbaa !22
  %259 = load i32, ptr %13, align 4, !tbaa !22
  %260 = icmp ne i32 %259, 0
  br i1 %260, label %261, label %263

261:                                              ; preds = %254
  %262 = load i32, ptr %13, align 4, !tbaa !22
  store i32 %262, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %264

263:                                              ; preds = %254
  store i32 0, ptr %6, align 4
  br label %264

264:                                              ; preds = %263, %261, %252, %245
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %265

265:                                              ; preds = %264, %237
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %266 = load i32, ptr %6, align 4
  switch i32 %266, label %271 [
    i32 0, label %267
    i32 1, label %269
  ]

267:                                              ; preds = %265
  br label %268

268:                                              ; preds = %267, %36
  store i32 0, ptr %2, align 4
  br label %269

269:                                              ; preds = %268, %265, %221, %122, %35, %22, %16
  %270 = load i32, ptr %2, align 4
  ret i32 %270

271:                                              ; preds = %265, %221, %122
  unreachable
}

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 488}
!10 = !{!"gsd_handle", !11, i64 0, !12, i64 8, !14, i64 264, !14, i64 304, !14, i64 344, !15, i64 384, !16, i64 408, !16, i64 440, !13, i64 472, !13, i64 480, !11, i64 488, !17, i64 496, !13, i64 512, !13, i64 520, !13, i64 528}
!11 = !{!"int", !7, i64 0}
!12 = !{!"gsd_header", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !11, i64 40, !11, i64 44, !7, i64 48, !7, i64 112, !7, i64 176}
!13 = !{!"long", !7, i64 0}
!14 = !{!"gsd_index_buffer", !6, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !13, i64 32}
!15 = !{!"gsd_byte_buffer", !6, i64 0, !13, i64 8, !13, i64 16}
!16 = !{!"gsd_name_buffer", !15, i64 0, !13, i64 24}
!17 = !{!"gsd_name_id_map", !6, i64 0, !13, i64 8}
!18 = !{!10, !13, i64 312}
!19 = !{!10, !13, i64 464}
!20 = !{!10, !11, i64 52}
!21 = !{!10, !13, i64 272}
!22 = !{!11, !11, i64 0}
!23 = !{!14, !6, i64 0}
!24 = !{!10, !6, i64 264}
!25 = !{!14, !13, i64 8}
!26 = !{!10, !11, i64 0}
!27 = !{!10, !13, i64 16}
!28 = !{!13, !13, i64 0}
!29 = !{!10, !13, i64 432}
!30 = !{!10, !13, i64 424}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!15, !13, i64 16}
!34 = !{!15, !6, i64 0}
!35 = !{!10, !13, i64 32}
!36 = !{i64 0, i64 8, !5, i64 8, i64 8, !28, i64 16, i64 8, !28}


; 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.gsd_index_buffer = type { ptr, i64, i64, ptr, i64 }
%struct.gsd_byte_buffer = type { ptr, i64, i64 }

@.str = external hidden unnamed_addr constant [1 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @gsd_make_version(i32 noundef, i32 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @gsd_index_buffer_free(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

declare i32 @fsync(i32 noundef) local_unnamed_addr #4

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @gsd_upgrade(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca %struct.gsd_index_buffer, align 8
  %3 = alloca %struct.gsd_byte_buffer, align 8
  %4 = icmp eq ptr %0, null
  br i1 %4, label %.thread116, label %5

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 488
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = icmp eq i32 %7, 2
  br i1 %8, label %.thread116, label %9

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %0, i64 312
  %11 = load i64, ptr %10, align 8, !tbaa !17
  %.not = icmp eq i64 %11, 0
  br i1 %.not, label %12, label %.thread116

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %0, i64 464
  %14 = load i64, ptr %13, align 8, !tbaa !18
  %.not81 = icmp eq i64 %14, 0
  br i1 %.not81, label %15, label %.thread116

15:                                               ; preds = %12
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = getelementptr inbounds i8, ptr %0, i64 52
  %18 = load i32, ptr %17, align 4, !tbaa !19
  %19 = tail call i32 @gsd_make_version(i32 noundef 2, i32 noundef 0)
  %20 = icmp ult i32 %18, %19
  br i1 %20, label %21, label %.thread116

21:                                               ; preds = %15
  %22 = getelementptr inbounds i8, ptr %0, i64 264
  %23 = getelementptr inbounds i8, ptr %0, i64 272
  %24 = load i64, ptr %23, align 8, !tbaa !20
  %.not82 = icmp eq i64 %24, 0
  br i1 %.not82, label %55, label %25

25:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #6
  call void @gsd_util_zero_memory(ptr noundef nonnull %2, i64 noundef 40)
  %26 = load i64, ptr %23, align 8, !tbaa !20
  %27 = call i32 @gsd_index_buffer_allocate(ptr noundef nonnull %2, i64 noundef %26)
  %.not83 = icmp eq i32 %27, 0
  br i1 %.not83, label %28, label %.thread

28:                                               ; preds = %25
  %29 = load ptr, ptr %2, align 8, !tbaa !21
  %30 = load ptr, ptr %22, align 8, !tbaa !22
  %31 = load i64, ptr %23, align 8, !tbaa !20
  %32 = shl i64 %31, 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %30, i64 %32, i1 false)
  %33 = load i64, ptr %23, align 8, !tbaa !20
  %34 = getelementptr inbounds i8, ptr %2, i64 8
  store i64 %33, ptr %34, align 8, !tbaa !23
  %35 = call i32 @gsd_index_buffer_sort(ptr noundef nonnull %2)
  %.not84 = icmp eq i32 %35, 0
  br i1 %.not84, label %36, label %.thread.sink.split

36:                                               ; preds = %28
  %37 = load i32, ptr %0, align 8, !tbaa !24
  %38 = load ptr, ptr %2, align 8, !tbaa !21
  %39 = load i64, ptr %34, align 8, !tbaa !23
  %40 = shl i64 %39, 5
  %41 = getelementptr inbounds i8, ptr %0, i64 16
  %42 = load i64, ptr %41, align 8, !tbaa !25
  %43 = call i64 @gsd_io_pwrite_retry(i32 noundef %37, ptr noundef %38, i64 noundef %40, i64 noundef %42)
  %44 = icmp eq i64 %43, -1
  br i1 %44, label %.thread.sink.split, label %45

45:                                               ; preds = %36
  %46 = load i64, ptr %34, align 8, !tbaa !23
  %47 = shl i64 %46, 5
  %.not85 = icmp eq i64 %43, %47
  br i1 %.not85, label %48, label %.thread.sink.split

48:                                               ; preds = %45
  %49 = call i32 @gsd_index_buffer_free(ptr noundef nonnull %2)
  %.not86 = icmp eq i32 %49, 0
  br i1 %.not86, label %50, label %.thread

50:                                               ; preds = %48
  %51 = load i32, ptr %0, align 8, !tbaa !24
  %52 = call i32 @fsync(i32 noundef %51) #6
  %.not87 = icmp eq i32 %52, 0
  br i1 %.not87, label %54, label %.thread

.thread.sink.split:                               ; preds = %36, %45, %28
  %.1.ph.ph = phi i32 [ %35, %28 ], [ -1, %45 ], [ -1, %36 ]
  %53 = call i32 @gsd_index_buffer_free(ptr noundef nonnull %2)
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %25, %48, %50
  %.1.ph = phi i32 [ -1, %50 ], [ %49, %48 ], [ %27, %25 ], [ %.1.ph.ph, %.thread.sink.split ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #6
  br label %.thread116

54:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #6
  br label %55

55:                                               ; preds = %54, %21
  %56 = getelementptr inbounds i8, ptr %0, i64 408
  %57 = getelementptr inbounds i8, ptr %0, i64 432
  %58 = load i64, ptr %57, align 8, !tbaa !26
  %.not88 = icmp eq i64 %58, 0
  br i1 %.not88, label %88, label %59

59:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @gsd_util_zero_memory(ptr noundef nonnull %3, i64 noundef 24)
  %60 = getelementptr inbounds i8, ptr %0, i64 424
  %61 = load i64, ptr %60, align 8, !tbaa !27
  %62 = call i32 @gsd_byte_buffer_allocate(ptr noundef nonnull %3, i64 noundef %61)
  %.not89 = icmp eq i32 %62, 0
  br i1 %.not89, label %63, label %.thread110

63:                                               ; preds = %59
  %64 = call ptr @gsd_find_matching_chunk_name(ptr noundef nonnull %0, ptr noundef nonnull @.str, ptr noundef null)
  %.not90120 = icmp eq ptr %64, null
  br i1 %.not90120, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %63, %68
  %.061121 = phi ptr [ %69, %68 ], [ %64, %63 ]
  %65 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.061121) #7
  %66 = add i64 %65, 1
  %67 = call i32 @gsd_byte_buffer_append(ptr noundef nonnull %3, ptr noundef nonnull %.061121, i64 noundef %66)
  %.not95 = icmp eq i32 %67, 0
  br i1 %.not95, label %68, label %.thread110.sink.split

68:                                               ; preds = %.lr.ph
  %69 = call ptr @gsd_find_matching_chunk_name(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef nonnull %.061121)
  %.not90 = icmp eq ptr %69, null
  br i1 %.not90, label %._crit_edge, label %.lr.ph, !llvm.loop !28

._crit_edge:                                      ; preds = %68, %63
  %70 = getelementptr inbounds i8, ptr %3, i64 16
  %71 = load i64, ptr %70, align 8, !tbaa !30
  %72 = load i64, ptr %60, align 8, !tbaa !27
  %.not91 = icmp eq i64 %71, %72
  br i1 %.not91, label %73, label %.thread110.sink.split

73:                                               ; preds = %._crit_edge
  %74 = load i32, ptr %0, align 8, !tbaa !24
  %75 = load ptr, ptr %3, align 8, !tbaa !31
  %76 = getelementptr inbounds i8, ptr %0, i64 32
  %77 = load i64, ptr %76, align 8, !tbaa !32
  %78 = call i64 @gsd_io_pwrite_retry(i32 noundef %74, ptr noundef %75, i64 noundef %71, i64 noundef %77)
  %79 = icmp ne i64 %78, -1
  %80 = load i64, ptr %70, align 8
  %.not92 = icmp eq i64 %78, %80
  %or.cond = select i1 %79, i1 %.not92, i1 false
  br i1 %or.cond, label %81, label %.thread110.sink.split

81:                                               ; preds = %73
  %82 = call i32 @gsd_byte_buffer_free(ptr noundef nonnull %56)
  %.not93 = icmp eq i32 %82, 0
  br i1 %.not93, label %83, label %.thread110.sink.split

83:                                               ; preds = %81
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %56, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 24, i1 false), !tbaa.struct !33
  %84 = load i32, ptr %0, align 8, !tbaa !24
  %85 = call i32 @fsync(i32 noundef %84) #6
  %.not94 = icmp eq i32 %85, 0
  br i1 %.not94, label %87, label %.thread110.sink.split

.thread110.sink.split:                            ; preds = %.lr.ph, %83, %81, %73, %._crit_edge
  %.5.ph.ph = phi i32 [ -5, %._crit_edge ], [ -1, %73 ], [ %82, %81 ], [ -1, %83 ], [ %67, %.lr.ph ]
  %86 = call i32 @gsd_byte_buffer_free(ptr noundef nonnull %3)
  br label %.thread110

.thread110:                                       ; preds = %.thread110.sink.split, %59
  %.5.ph = phi i32 [ %62, %59 ], [ %.5.ph.ph, %.thread110.sink.split ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  br label %.thread116

87:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  br label %88

88:                                               ; preds = %87, %55
  %89 = call i32 @gsd_make_version(i32 noundef 2, i32 noundef 0)
  store i32 %89, ptr %17, align 4, !tbaa !19
  %90 = load i32, ptr %0, align 8, !tbaa !24
  %91 = call i64 @gsd_io_pwrite_retry(i32 noundef %90, ptr noundef nonnull %16, i64 noundef 256, i64 noundef 0)
  %.not96 = icmp eq i64 %91, 256
  br i1 %.not96, label %92, label %.thread116

92:                                               ; preds = %88
  %93 = load i32, ptr %0, align 8, !tbaa !24
  %94 = call i32 @fsync(i32 noundef %93) #6
  %.not97 = icmp eq i32 %94, 0
  br i1 %.not97, label %95, label %.thread116

95:                                               ; preds = %92
  %96 = call i32 @gsd_index_buffer_free(ptr noundef nonnull %22)
  %.not98 = icmp eq i32 %96, 0
  br i1 %.not98, label %97, label %.thread116

97:                                               ; preds = %95
  %98 = call i32 @gsd_index_buffer_map(ptr noundef nonnull %22, ptr noundef nonnull %0)
  br label %.thread116

.thread116:                                       ; preds = %97, %95, %92, %88, %15, %.thread110, %.thread, %9, %12, %5, %1
  %.9 = phi i32 [ -2, %1 ], [ -2, %5 ], [ -2, %12 ], [ -2, %9 ], [ %.1.ph, %.thread ], [ %.5.ph, %.thread110 ], [ 0, %15 ], [ %96, %95 ], [ -1, %92 ], [ -1, %88 ], [ %98, %97 ]
  ret i32 %.9
}

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 488}
!6 = !{!"gsd_handle", !7, i64 0, !10, i64 8, !12, i64 264, !12, i64 304, !12, i64 344, !14, i64 384, !15, i64 408, !15, i64 440, !11, i64 472, !11, i64 480, !7, i64 488, !16, i64 496, !11, i64 512, !11, i64 520, !11, i64 528}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"gsd_header", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !7, i64 40, !7, i64 44, !8, i64 48, !8, i64 112, !8, i64 176}
!11 = !{!"long", !8, i64 0}
!12 = !{!"gsd_index_buffer", !13, i64 0, !11, i64 8, !11, i64 16, !13, i64 24, !11, i64 32}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"gsd_byte_buffer", !13, i64 0, !11, i64 8, !11, i64 16}
!15 = !{!"gsd_name_buffer", !14, i64 0, !11, i64 24}
!16 = !{!"gsd_name_id_map", !13, i64 0, !11, i64 8}
!17 = !{!6, !11, i64 312}
!18 = !{!6, !11, i64 464}
!19 = !{!6, !7, i64 52}
!20 = !{!6, !11, i64 272}
!21 = !{!12, !13, i64 0}
!22 = !{!6, !13, i64 264}
!23 = !{!12, !11, i64 8}
!24 = !{!6, !7, i64 0}
!25 = !{!6, !11, i64 16}
!26 = !{!6, !11, i64 432}
!27 = !{!6, !11, i64 424}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!14, !11, i64 16}
!31 = !{!14, !13, i64 0}
!32 = !{!6, !11, i64 32}
!33 = !{i64 0, i64 8, !34, i64 8, i64 8, !35, i64 16, i64 8, !35}
!34 = !{!13, !13, i64 0}
!35 = !{!11, !11, i64 0}


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