; LLVM IR from jdeokkim/ferox :: src (world)

; 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.stbds_array_header = type { i64, i64, ptr, i64 }
%struct.stbds_hash_index = type { ptr, i64, i64, i64, i64, i64, i64, i64, i64, %struct.stbds_string_arena, ptr }
%struct.stbds_string_arena = type { ptr, i64, i8, i8 }
%struct.stbds_hash_bucket = type { [8 x i64], [8 x i64] }

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @stbds_hmdel_key(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, i32 noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i64 %3, ptr %11, align 8, !tbaa !9
  store i64 %4, ptr %12, align 8, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !11
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %6
  store ptr null, ptr %7, align 8
  br label %233

25:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = load i64, ptr %9, align 8, !tbaa !9
  %28 = sub i64 0, %27
  %29 = getelementptr inbounds i8, ptr %26, i64 %28
  store ptr %29, ptr %15, align 8, !tbaa !5
  %30 = load ptr, ptr %15, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.stbds_array_header, ptr %30, i64 -1
  %32 = getelementptr inbounds %struct.stbds_array_header, ptr %31, i32 0, i32 2
  %33 = load ptr, ptr %32, align 8, !tbaa !13
  store ptr %33, ptr %14, align 8, !tbaa !5
  %34 = load ptr, ptr %15, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.stbds_array_header, ptr %34, i64 -1
  %36 = getelementptr inbounds %struct.stbds_array_header, ptr %35, i32 0, i32 3
  store i64 0, ptr %36, align 8, !tbaa !15
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  %38 = icmp eq ptr %37, null
  br i1 %38, label %39, label %41

39:                                               ; preds = %25
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %40, ptr %7, align 8
  store i32 1, ptr %16, align 4
  br label %232

41:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = load i64, ptr %9, align 8, !tbaa !9
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = load i64, ptr %11, align 8, !tbaa !9
  %46 = load i64, ptr %12, align 8, !tbaa !9
  %47 = load i32, ptr %13, align 4, !tbaa !11
  %48 = call i64 @stbds_hm_find_slot(ptr noundef %42, i64 noundef %43, ptr noundef %44, i64 noundef %45, i64 noundef %46, i32 noundef %47)
  store i64 %48, ptr %17, align 8, !tbaa !9
  %49 = load i64, ptr %17, align 8, !tbaa !9
  %50 = icmp slt i64 %49, 0
  br i1 %50, label %51, label %53

51:                                               ; preds = %41
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %52, ptr %7, align 8
  store i32 1, ptr %16, align 4
  br label %231

53:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.stbds_hash_index, ptr %54, i32 0, i32 10
  %56 = load ptr, ptr %55, align 8, !tbaa !16
  %57 = load i64, ptr %17, align 8, !tbaa !9
  %58 = ashr i64 %57, 3
  %59 = getelementptr inbounds %struct.stbds_hash_bucket, ptr %56, i64 %58
  store ptr %59, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %60 = load i64, ptr %17, align 8, !tbaa !9
  %61 = and i64 %60, 7
  %62 = trunc i64 %61 to i32
  store i32 %62, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %63 = load ptr, ptr %18, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.stbds_hash_bucket, ptr %63, i32 0, i32 1
  %65 = load i32, ptr %19, align 4, !tbaa !11
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [8 x i64], ptr %64, i64 0, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !9
  store i64 %68, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %76

71:                                               ; preds = %53
  %72 = load ptr, ptr %15, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.stbds_array_header, ptr %72, i64 -1
  %74 = getelementptr inbounds %struct.stbds_array_header, ptr %73, i32 0, i32 0
  %75 = load i64, ptr %74, align 8, !tbaa !19
  br label %77

76:                                               ; preds = %53
  br label %77

77:                                               ; preds = %76, %71
  %78 = phi i64 [ %75, %71 ], [ 0, %76 ]
  %79 = sub nsw i64 %78, 1
  %80 = sub nsw i64 %79, 1
  store i64 %80, ptr %21, align 8, !tbaa !9
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.stbds_hash_index, ptr %81, i32 0, i32 2
  %83 = load i64, ptr %82, align 8, !tbaa !20
  %84 = add i64 %83, -1
  store i64 %84, ptr %82, align 8, !tbaa !20
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.stbds_hash_index, ptr %85, i32 0, i32 5
  %87 = load i64, ptr %86, align 8, !tbaa !21
  %88 = add i64 %87, 1
  store i64 %88, ptr %86, align 8, !tbaa !21
  %89 = load ptr, ptr %15, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.stbds_array_header, ptr %89, i64 -1
  %91 = getelementptr inbounds %struct.stbds_array_header, ptr %90, i32 0, i32 3
  store i64 1, ptr %91, align 8, !tbaa !15
  %92 = load ptr, ptr %18, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.stbds_hash_bucket, ptr %92, i32 0, i32 0
  %94 = load i32, ptr %19, align 4, !tbaa !11
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [8 x i64], ptr %93, i64 0, i64 %95
  store i64 1, ptr %96, align 8, !tbaa !9
  %97 = load ptr, ptr %18, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.stbds_hash_bucket, ptr %97, i32 0, i32 1
  %99 = load i32, ptr %19, align 4, !tbaa !11
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [8 x i64], ptr %98, i64 0, i64 %100
  store i64 -2, ptr %101, align 8, !tbaa !9
  %102 = load i32, ptr %13, align 4, !tbaa !11
  %103 = icmp eq i32 %102, 1
  br i1 %103, label %104, label %118

104:                                              ; preds = %77
  %105 = load ptr, ptr %14, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.stbds_hash_index, ptr %105, i32 0, i32 9
  %107 = getelementptr inbounds %struct.stbds_string_arena, ptr %106, i32 0, i32 3
  %108 = load i8, ptr %107, align 1, !tbaa !22
  %109 = zext i8 %108 to i32
  %110 = icmp eq i32 %109, 2
  br i1 %110, label %111, label %118

111:                                              ; preds = %104
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = load i64, ptr %9, align 8, !tbaa !9
  %114 = load i64, ptr %20, align 8, !tbaa !9
  %115 = mul i64 %113, %114
  %116 = getelementptr inbounds i8, ptr %112, i64 %115
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  call void @free(ptr noundef %117) #4
  br label %118

118:                                              ; preds = %111, %104, %77
  %119 = load i64, ptr %20, align 8, !tbaa !9
  %120 = load i64, ptr %21, align 8, !tbaa !9
  %121 = icmp ne i64 %119, %120
  br i1 %121, label %122, label %181

122:                                              ; preds = %118
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = load i64, ptr %9, align 8, !tbaa !9
  %125 = load i64, ptr %20, align 8, !tbaa !9
  %126 = mul i64 %124, %125
  %127 = getelementptr inbounds i8, ptr %123, i64 %126
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = load i64, ptr %9, align 8, !tbaa !9
  %130 = load i64, ptr %21, align 8, !tbaa !9
  %131 = mul i64 %129, %130
  %132 = getelementptr inbounds i8, ptr %128, i64 %131
  %133 = load i64, ptr %9, align 8, !tbaa !9
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %127, ptr align 1 %132, i64 %133, i1 false)
  %134 = load i32, ptr %13, align 4, !tbaa !11
  %135 = icmp eq i32 %134, 1
  br i1 %135, label %136, label %151

136:                                              ; preds = %122
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = load i64, ptr %9, align 8, !tbaa !9
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = load i64, ptr %9, align 8, !tbaa !9
  %141 = load i64, ptr %20, align 8, !tbaa !9
  %142 = mul i64 %140, %141
  %143 = getelementptr inbounds i8, ptr %139, i64 %142
  %144 = load i64, ptr %12, align 8, !tbaa !9
  %145 = getelementptr inbounds i8, ptr %143, i64 %144
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  %147 = load i64, ptr %11, align 8, !tbaa !9
  %148 = load i64, ptr %12, align 8, !tbaa !9
  %149 = load i32, ptr %13, align 4, !tbaa !11
  %150 = call i64 @stbds_hm_find_slot(ptr noundef %137, i64 noundef %138, ptr noundef %146, i64 noundef %147, i64 noundef %148, i32 noundef %149)
  store i64 %150, ptr %17, align 8, !tbaa !9
  br label %165

151:                                              ; preds = %122
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = load i64, ptr %9, align 8, !tbaa !9
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = load i64, ptr %9, align 8, !tbaa !9
  %156 = load i64, ptr %20, align 8, !tbaa !9
  %157 = mul i64 %155, %156
  %158 = getelementptr inbounds i8, ptr %154, i64 %157
  %159 = load i64, ptr %12, align 8, !tbaa !9
  %160 = getelementptr inbounds i8, ptr %158, i64 %159
  %161 = load i64, ptr %11, align 8, !tbaa !9
  %162 = load i64, ptr %12, align 8, !tbaa !9
  %163 = load i32, ptr %13, align 4, !tbaa !11
  %164 = call i64 @stbds_hm_find_slot(ptr noundef %152, i64 noundef %153, ptr noundef %160, i64 noundef %161, i64 noundef %162, i32 noundef %163)
  store i64 %164, ptr %17, align 8, !tbaa !9
  br label %165

165:                                              ; preds = %151, %136
  %166 = load ptr, ptr %14, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.stbds_hash_index, ptr %166, i32 0, i32 10
  %168 = load ptr, ptr %167, align 8, !tbaa !16
  %169 = load i64, ptr %17, align 8, !tbaa !9
  %170 = ashr i64 %169, 3
  %171 = getelementptr inbounds %struct.stbds_hash_bucket, ptr %168, i64 %170
  store ptr %171, ptr %18, align 8, !tbaa !5
  %172 = load i64, ptr %17, align 8, !tbaa !9
  %173 = and i64 %172, 7
  %174 = trunc i64 %173 to i32
  store i32 %174, ptr %19, align 4, !tbaa !11
  %175 = load i64, ptr %20, align 8, !tbaa !9
  %176 = load ptr, ptr %18, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.stbds_hash_bucket, ptr %176, i32 0, i32 1
  %178 = load i32, ptr %19, align 4, !tbaa !11
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [8 x i64], ptr %177, i64 0, i64 %179
  store i64 %175, ptr %180, align 8, !tbaa !9
  br label %181

181:                                              ; preds = %165, %118
  %182 = load ptr, ptr %15, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.stbds_array_header, ptr %182, i64 -1
  %184 = getelementptr inbounds %struct.stbds_array_header, ptr %183, i32 0, i32 0
  %185 = load i64, ptr %184, align 8, !tbaa !19
  %186 = sub i64 %185, 1
  store i64 %186, ptr %184, align 8, !tbaa !19
  %187 = load ptr, ptr %14, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.stbds_hash_index, ptr %187, i32 0, i32 2
  %189 = load i64, ptr %188, align 8, !tbaa !20
  %190 = load ptr, ptr %14, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.stbds_hash_index, ptr %190, i32 0, i32 4
  %192 = load i64, ptr %191, align 8, !tbaa !23
  %193 = icmp ult i64 %189, %192
  br i1 %193, label %194, label %210

194:                                              ; preds = %181
  %195 = load ptr, ptr %14, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.stbds_hash_index, ptr %195, i32 0, i32 1
  %197 = load i64, ptr %196, align 8, !tbaa !24
  %198 = icmp ugt i64 %197, 8
  br i1 %198, label %199, label %210

199:                                              ; preds = %194
  %200 = load ptr, ptr %14, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.stbds_hash_index, ptr %200, i32 0, i32 1
  %202 = load i64, ptr %201, align 8, !tbaa !24
  %203 = lshr i64 %202, 1
  %204 = load ptr, ptr %14, align 8, !tbaa !5
  %205 = call ptr @stbds_make_hash_index(i64 noundef %203, ptr noundef %204)
  %206 = load ptr, ptr %15, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.stbds_array_header, ptr %206, i64 -1
  %208 = getelementptr inbounds %struct.stbds_array_header, ptr %207, i32 0, i32 2
  store ptr %205, ptr %208, align 8, !tbaa !13
  %209 = load ptr, ptr %14, align 8, !tbaa !5
  call void @free(ptr noundef %209) #4
  br label %229

210:                                              ; preds = %194, %181
  %211 = load ptr, ptr %14, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.stbds_hash_index, ptr %211, i32 0, i32 5
  %213 = load i64, ptr %212, align 8, !tbaa !21
  %214 = load ptr, ptr %14, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.stbds_hash_index, ptr %214, i32 0, i32 6
  %216 = load i64, ptr %215, align 8, !tbaa !25
  %217 = icmp ugt i64 %213, %216
  br i1 %217, label %218, label %228

218:                                              ; preds = %210
  %219 = load ptr, ptr %14, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.stbds_hash_index, ptr %219, i32 0, i32 1
  %221 = load i64, ptr %220, align 8, !tbaa !24
  %222 = load ptr, ptr %14, align 8, !tbaa !5
  %223 = call ptr @stbds_make_hash_index(i64 noundef %221, ptr noundef %222)
  %224 = load ptr, ptr %15, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.stbds_array_header, ptr %224, i64 -1
  %226 = getelementptr inbounds %struct.stbds_array_header, ptr %225, i32 0, i32 2
  store ptr %223, ptr %226, align 8, !tbaa !13
  %227 = load ptr, ptr %14, align 8, !tbaa !5
  call void @free(ptr noundef %227) #4
  br label %228

228:                                              ; preds = %218, %210
  br label %229

229:                                              ; preds = %228, %199
  %230 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %230, ptr %7, align 8
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %231

231:                                              ; preds = %229, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %232

232:                                              ; preds = %231, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %233

233:                                              ; preds = %232, %24
  %234 = load ptr, ptr %7, align 8
  ret ptr %234
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 16}
!14 = !{!"", !10, i64 0, !10, i64 8, !6, i64 16, !10, i64 24}
!15 = !{!14, !10, i64 24}
!16 = !{!17, !6, i64 96}
!17 = !{!"", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !18, i64 72, !6, i64 96}
!18 = !{!"stbds_string_arena", !6, i64 0, !10, i64 8, !7, i64 16, !7, i64 17}
!19 = !{!14, !10, i64 0}
!20 = !{!17, !10, i64 16}
!21 = !{!17, !10, i64 40}
!22 = !{!17, !7, i64 89}
!23 = !{!17, !10, i64 32}
!24 = !{!17, !10, i64 8}
!25 = !{!17, !10, i64 48}


; 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.stbds_hash_bucket = type { [8 x i64], [8 x i64] }

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

; Function Attrs: nounwind uwtable
declare hidden i64 @stbds_hm_find_slot(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden ptr @stbds_make_hash_index(i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @stbds_hmdel_key(ptr noundef returned %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, i32 noundef %5) local_unnamed_addr #1 {
  %7 = icmp eq ptr %0, null
  br i1 %7, label %88, label %8

8:                                                ; preds = %6
  %9 = sub i64 0, %1
  %10 = getelementptr inbounds i8, ptr %0, i64 %9
  %11 = getelementptr inbounds i8, ptr %10, i64 -32
  %12 = getelementptr inbounds i8, ptr %10, i64 -16
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %10, i64 -8
  store i64 0, ptr %14, align 8, !tbaa !11
  %15 = icmp eq ptr %13, null
  br i1 %15, label %88, label %16

16:                                               ; preds = %8
  %17 = tail call i64 @stbds_hm_find_slot(ptr noundef nonnull %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, i32 noundef %5)
  %18 = icmp slt i64 %17, 0
  br i1 %18, label %88, label %19

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %13, i64 96
  %21 = load ptr, ptr %20, align 8, !tbaa !12
  %22 = lshr i64 %17, 3
  %23 = getelementptr inbounds %struct.stbds_hash_bucket, ptr %21, i64 %22
  %24 = and i64 %17, 7
  %25 = getelementptr inbounds i8, ptr %23, i64 64
  %26 = getelementptr inbounds [8 x i64], ptr %25, i64 0, i64 %24
  %27 = load i64, ptr %26, align 8, !tbaa !15
  %28 = load i64, ptr %11, align 8, !tbaa !16
  %29 = add nsw i64 %28, -2
  %30 = getelementptr inbounds i8, ptr %13, i64 16
  %31 = load i64, ptr %30, align 8, !tbaa !17
  %32 = add i64 %31, -1
  store i64 %32, ptr %30, align 8, !tbaa !17
  %33 = getelementptr inbounds i8, ptr %13, i64 40
  %34 = load i64, ptr %33, align 8, !tbaa !18
  %35 = add i64 %34, 1
  store i64 %35, ptr %33, align 8, !tbaa !18
  store i64 1, ptr %14, align 8, !tbaa !11
  %36 = getelementptr inbounds [8 x i64], ptr %23, i64 0, i64 %24
  store i64 1, ptr %36, align 8, !tbaa !15
  store i64 -2, ptr %26, align 8, !tbaa !15
  %37 = icmp eq i32 %5, 1
  br i1 %37, label %38, label %.thread

38:                                               ; preds = %19
  %39 = getelementptr inbounds i8, ptr %13, i64 89
  %40 = load i8, ptr %39, align 1, !tbaa !19
  %41 = icmp eq i8 %40, 2
  br i1 %41, label %42, label %46

42:                                               ; preds = %38
  %43 = mul i64 %27, %1
  %44 = getelementptr inbounds i8, ptr %0, i64 %43
  %45 = load ptr, ptr %44, align 8, !tbaa !20
  tail call void @free(ptr noundef %45) #3
  br label %46

46:                                               ; preds = %42, %38
  %.not = icmp eq i64 %27, %29
  br i1 %.not, label %66, label %53

.thread:                                          ; preds = %19
  %.not90 = icmp eq i64 %27, %29
  br i1 %.not90, label %66, label %.thread91

.thread91:                                        ; preds = %.thread
  %47 = mul i64 %27, %1
  %48 = getelementptr inbounds i8, ptr %0, i64 %47
  %49 = mul i64 %29, %1
  %50 = getelementptr inbounds i8, ptr %0, i64 %49
  tail call void @llvm.memmove.p0.p0.i64(ptr nonnull align 1 %48, ptr nonnull align 1 %50, i64 %1, i1 false)
  %51 = getelementptr inbounds i8, ptr %48, i64 %4
  %52 = tail call i64 @stbds_hm_find_slot(ptr noundef nonnull %0, i64 noundef %1, ptr noundef nonnull %51, i64 noundef %3, i64 noundef %4, i32 noundef %5)
  br label %61

53:                                               ; preds = %46
  %54 = mul i64 %27, %1
  %55 = getelementptr inbounds i8, ptr %0, i64 %54
  %56 = mul i64 %29, %1
  %57 = getelementptr inbounds i8, ptr %0, i64 %56
  tail call void @llvm.memmove.p0.p0.i64(ptr nonnull align 1 %55, ptr nonnull align 1 %57, i64 %1, i1 false)
  %58 = getelementptr inbounds i8, ptr %55, i64 %4
  %59 = load ptr, ptr %58, align 8, !tbaa !20
  %60 = tail call i64 @stbds_hm_find_slot(ptr noundef nonnull %0, i64 noundef %1, ptr noundef %59, i64 noundef %3, i64 noundef %4, i32 noundef 1)
  br label %61

61:                                               ; preds = %.thread91, %53
  %.083 = phi i64 [ %60, %53 ], [ %52, %.thread91 ]
  %62 = load ptr, ptr %20, align 8, !tbaa !12
  %63 = ashr i64 %.083, 3
  %64 = and i64 %.083, 7
  %65 = getelementptr inbounds %struct.stbds_hash_bucket, ptr %62, i64 %63, i32 1, i64 %64
  store i64 %27, ptr %65, align 8, !tbaa !15
  br label %66

66:                                               ; preds = %.thread, %61, %46
  %67 = load i64, ptr %11, align 8, !tbaa !16
  %68 = add i64 %67, -1
  store i64 %68, ptr %11, align 8, !tbaa !16
  %69 = load i64, ptr %30, align 8, !tbaa !17
  %70 = getelementptr inbounds i8, ptr %13, i64 32
  %71 = load i64, ptr %70, align 8, !tbaa !21
  %72 = icmp ult i64 %69, %71
  br i1 %72, label %73, label %79

73:                                               ; preds = %66
  %74 = getelementptr inbounds i8, ptr %13, i64 8
  %75 = load i64, ptr %74, align 8, !tbaa !22
  %76 = icmp ugt i64 %75, 8
  br i1 %76, label %77, label %79

77:                                               ; preds = %73
  %78 = lshr i64 %75, 1
  br label %.sink.split

79:                                               ; preds = %73, %66
  %80 = load i64, ptr %33, align 8, !tbaa !18
  %81 = getelementptr inbounds i8, ptr %13, i64 48
  %82 = load i64, ptr %81, align 8, !tbaa !23
  %83 = icmp ugt i64 %80, %82
  br i1 %83, label %84, label %88

84:                                               ; preds = %79
  %85 = getelementptr inbounds i8, ptr %13, i64 8
  %86 = load i64, ptr %85, align 8, !tbaa !22
  br label %.sink.split

.sink.split:                                      ; preds = %84, %77
  %.sink92 = phi i64 [ %78, %77 ], [ %86, %84 ]
  %87 = tail call ptr @stbds_make_hash_index(i64 noundef %.sink92, ptr noundef nonnull %13)
  store ptr %87, ptr %12, align 8, !tbaa !5
  tail call void @free(ptr noundef nonnull %13) #3
  br label %88

88:                                               ; preds = %.sink.split, %8, %79, %16, %6
  ret ptr %0
}

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

attributes #0 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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, !10, i64 16}
!6 = !{!"", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 24}
!12 = !{!13, !10, i64 96}
!13 = !{!"", !10, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !14, i64 72, !10, i64 96}
!14 = !{!"stbds_string_arena", !10, i64 0, !7, i64 8, !8, i64 16, !8, i64 17}
!15 = !{!7, !7, i64 0}
!16 = !{!6, !7, i64 0}
!17 = !{!13, !7, i64 16}
!18 = !{!13, !7, i64 40}
!19 = !{!13, !8, i64 89}
!20 = !{!10, !10, i64 0}
!21 = !{!13, !7, i64 32}
!22 = !{!13, !7, i64 8}
!23 = !{!13, !7, i64 48}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass