; LLVM IR from seppo0010/rlite :: src (type_hash)

; 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.rl_hashkey = type { i64, i64 }

; Function Attrs: nounwind uwtable
define dso_local i32 @rl_hset(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %6, ptr noundef %7, i32 noundef %8) #0 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i64, align 8
  %25 = alloca ptr, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store i64 %2, ptr %12, align 8, !tbaa !9
  store ptr %3, ptr %13, align 8, !tbaa !5
  store i64 %4, ptr %14, align 8, !tbaa !9
  store ptr %5, ptr %15, align 8, !tbaa !5
  store i64 %6, ptr %16, align 8, !tbaa !9
  store ptr %7, ptr %17, align 8, !tbaa !5
  store i32 %8, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  store ptr null, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  store i64 1, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  %28 = load i64, ptr %12, align 8, !tbaa !9
  %29 = call i32 @rl_hash_get_objects(ptr noundef %26, ptr noundef %27, i64 noundef %28, ptr noundef %20, ptr noundef %21, i32 noundef 1, i32 noundef 1)
  store i32 %29, ptr %19, align 4, !tbaa !11
  %30 = load i32, ptr %19, align 4, !tbaa !11
  %31 = icmp ne i32 0, %30
  br i1 %31, label %32, label %33

32:                                               ; preds = %9
  br label %132

33:                                               ; preds = %9
  %34 = call noalias ptr @malloc(i64 noundef 20) #6
  store ptr %34, ptr %22, align 8, !tbaa !5
  %35 = load ptr, ptr %22, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  store i32 4, ptr %19, align 4, !tbaa !11
  br label %132

38:                                               ; preds = %33
  %39 = load ptr, ptr %13, align 8, !tbaa !5
  %40 = load i64, ptr %14, align 8, !tbaa !9
  %41 = load ptr, ptr %22, align 8, !tbaa !5
  %42 = call i32 @sha1(ptr noundef %39, i64 noundef %40, ptr noundef %41)
  store i32 %42, ptr %19, align 4, !tbaa !11
  %43 = load i32, ptr %19, align 4, !tbaa !11
  %44 = icmp ne i32 0, %43
  br i1 %44, label %45, label %46

45:                                               ; preds = %38
  br label %132

46:                                               ; preds = %38
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = load ptr, ptr %21, align 8, !tbaa !5
  %49 = load ptr, ptr %22, align 8, !tbaa !5
  %50 = call i32 @rl_btree_find_score(ptr noundef %47, ptr noundef %48, ptr noundef %49, ptr noundef %25, ptr noundef null, ptr noundef null)
  store i32 %50, ptr %19, align 4, !tbaa !11
  %51 = load i32, ptr %19, align 4, !tbaa !11
  %52 = icmp eq i32 %51, 2
  br i1 %52, label %53, label %69

53:                                               ; preds = %46
  store i64 0, ptr %24, align 8, !tbaa !9
  %54 = load i32, ptr %18, align 4, !tbaa !11
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %57, label %56

56:                                               ; preds = %53
  br label %132

57:                                               ; preds = %53
  %58 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %58, ptr %23, align 8, !tbaa !5
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = load ptr, ptr %23, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.rl_hashkey, ptr %60, i32 0, i32 0
  %62 = load i64, ptr %61, align 8, !tbaa !13
  %63 = call i32 @rl_multi_string_delete(ptr noundef %59, i64 noundef %62)
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = load ptr, ptr %23, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.rl_hashkey, ptr %65, i32 0, i32 1
  %67 = load i64, ptr %66, align 8, !tbaa !15
  %68 = call i32 @rl_multi_string_delete(ptr noundef %64, i64 noundef %67)
  br label %69

69:                                               ; preds = %57, %46
  %70 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %70, ptr %23, align 8, !tbaa !5
  %71 = load ptr, ptr %23, align 8, !tbaa !5
  %72 = icmp ne ptr %71, null
  br i1 %72, label %74, label %73

73:                                               ; preds = %69
  store i32 4, ptr %19, align 4, !tbaa !11
  br label %132

74:                                               ; preds = %69
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = load ptr, ptr %23, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.rl_hashkey, ptr %76, i32 0, i32 0
  %78 = load ptr, ptr %13, align 8, !tbaa !5
  %79 = load i64, ptr %14, align 8, !tbaa !9
  %80 = call i32 @rl_multi_string_set(ptr noundef %75, ptr noundef %77, ptr noundef %78, i64 noundef %79)
  store i32 %80, ptr %19, align 4, !tbaa !11
  %81 = load i32, ptr %19, align 4, !tbaa !11
  %82 = icmp ne i32 0, %81
  br i1 %82, label %83, label %84

83:                                               ; preds = %74
  br label %132

84:                                               ; preds = %74
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = load ptr, ptr %23, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.rl_hashkey, ptr %86, i32 0, i32 1
  %88 = load ptr, ptr %15, align 8, !tbaa !5
  %89 = load i64, ptr %16, align 8, !tbaa !9
  %90 = call i32 @rl_multi_string_set(ptr noundef %85, ptr noundef %87, ptr noundef %88, i64 noundef %89)
  store i32 %90, ptr %19, align 4, !tbaa !11
  %91 = load i32, ptr %19, align 4, !tbaa !11
  %92 = icmp ne i32 0, %91
  br i1 %92, label %93, label %94

93:                                               ; preds = %84
  br label %132

94:                                               ; preds = %84
  %95 = load i32, ptr %18, align 4, !tbaa !11
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %113

97:                                               ; preds = %94
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = load ptr, ptr %21, align 8, !tbaa !5
  %100 = load ptr, ptr %22, align 8, !tbaa !5
  %101 = load ptr, ptr %23, align 8, !tbaa !5
  %102 = call i32 @rl_btree_update_element(ptr noundef %98, ptr noundef %99, ptr noundef %100, ptr noundef %101)
  store i32 %102, ptr %19, align 4, !tbaa !11
  %103 = load i32, ptr %19, align 4, !tbaa !11
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %105, label %107

105:                                              ; preds = %97
  store i64 0, ptr %24, align 8, !tbaa !9
  %106 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %106) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  br label %112

107:                                              ; preds = %97
  %108 = load i32, ptr %19, align 4, !tbaa !11
  %109 = icmp ne i32 %108, 3
  br i1 %109, label %110, label %111

110:                                              ; preds = %107
  br label %132

111:                                              ; preds = %107
  br label %112

112:                                              ; preds = %111, %105
  br label %113

113:                                              ; preds = %112, %94
  %114 = load i64, ptr %24, align 8, !tbaa !9
  %115 = icmp ne i64 %114, 0
  br i1 %115, label %116, label %131

116:                                              ; preds = %113
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = load ptr, ptr %21, align 8, !tbaa !5
  %119 = load i64, ptr %20, align 8, !tbaa !9
  %120 = load ptr, ptr %22, align 8, !tbaa !5
  %121 = load ptr, ptr %23, align 8, !tbaa !5
  %122 = call i32 @rl_btree_add_element(ptr noundef %117, ptr noundef %118, i64 noundef %119, ptr noundef %120, ptr noundef %121)
  store i32 %122, ptr %19, align 4, !tbaa !11
  %123 = load i32, ptr %19, align 4, !tbaa !11
  %124 = icmp eq i32 %123, 2
  br i1 %124, label %125, label %126

125:                                              ; preds = %116
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %126

126:                                              ; preds = %125, %116
  %127 = load i32, ptr %19, align 4, !tbaa !11
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %130

129:                                              ; preds = %126
  br label %132

130:                                              ; preds = %126
  br label %131

131:                                              ; preds = %130, %113
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %132

132:                                              ; preds = %131, %129, %110, %93, %83, %73, %56, %45, %37, %32
  %133 = load ptr, ptr %17, align 8, !tbaa !5
  %134 = icmp ne ptr %133, null
  br i1 %134, label %135, label %138

135:                                              ; preds = %132
  %136 = load i64, ptr %24, align 8, !tbaa !9
  %137 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 %136, ptr %137, align 8, !tbaa !9
  br label %138

138:                                              ; preds = %135, %132
  %139 = load i32, ptr %19, align 4, !tbaa !11
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %144

141:                                              ; preds = %138
  %142 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %142) #5
  %143 = load ptr, ptr %23, align 8, !tbaa !5
  call void @free(ptr noundef %143) #5
  br label %144

144:                                              ; preds = %141, %138
  %145 = load i32, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  ret i32 %145
}

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

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

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

declare i32 @sha1(ptr noundef, i64 noundef, ptr noundef) #3

declare i32 @rl_btree_find_score(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare i32 @rl_multi_string_delete(ptr noundef, i64 noundef) #3

declare i32 @rl_multi_string_set(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #3

declare i32 @rl_btree_update_element(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

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

declare i32 @rl_btree_add_element(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #3

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

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

!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, !10, i64 0}
!14 = !{!"rl_hashkey", !10, i64 0, !10, i64 8}
!15 = !{!14, !10, i64 8}


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

; Function Attrs: nounwind uwtable
define dso_local i32 @rl_hset(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %6, ptr noundef writeonly %7, i32 noundef %8) local_unnamed_addr #0 {
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %13 = call i32 @rl_hash_get_objects(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef nonnull %10, ptr noundef nonnull %11, i32 noundef 1, i32 noundef 1)
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %14, label %47

14:                                               ; preds = %9
  %15 = call noalias dereferenceable_or_null(20) ptr @malloc(i64 noundef 20) #6
  %.not63 = icmp eq ptr %15, null
  br i1 %.not63, label %47, label %16

16:                                               ; preds = %14
  %17 = call i32 @sha1(ptr noundef %3, i64 noundef %4, ptr noundef nonnull %15) #5
  %.not64 = icmp eq i32 %17, 0
  br i1 %.not64, label %18, label %47

18:                                               ; preds = %16
  %19 = load ptr, ptr %11, align 8, !tbaa !5
  %20 = call i32 @rl_btree_find_score(ptr noundef %0, ptr noundef %19, ptr noundef nonnull %15, ptr noundef nonnull %12, ptr noundef null, ptr noundef null) #5
  %21 = icmp eq i32 %20, 2
  br i1 %21, label %22, label %30

22:                                               ; preds = %18
  %.not65 = icmp eq i32 %8, 0
  br i1 %.not65, label %47, label %23

23:                                               ; preds = %22
  %24 = load ptr, ptr %12, align 8, !tbaa !5
  %25 = load i64, ptr %24, align 8, !tbaa !9
  %26 = call i32 @rl_multi_string_delete(ptr noundef %0, i64 noundef %25) #5
  %27 = getelementptr inbounds i8, ptr %24, i64 8
  %28 = load i64, ptr %27, align 8, !tbaa !12
  %29 = call i32 @rl_multi_string_delete(ptr noundef %0, i64 noundef %28) #5
  br label %30

30:                                               ; preds = %23, %18
  %.0 = phi i64 [ 0, %23 ], [ 1, %18 ]
  %31 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #6
  %.not66 = icmp eq ptr %31, null
  br i1 %.not66, label %47, label %32

32:                                               ; preds = %30
  %33 = call i32 @rl_multi_string_set(ptr noundef %0, ptr noundef nonnull %31, ptr noundef %3, i64 noundef %4) #5
  %.not67 = icmp eq i32 %33, 0
  br i1 %.not67, label %34, label %47

34:                                               ; preds = %32
  %35 = getelementptr inbounds i8, ptr %31, i64 8
  %36 = call i32 @rl_multi_string_set(ptr noundef %0, ptr noundef nonnull %35, ptr noundef %5, i64 noundef %6) #5
  %.not68 = icmp eq i32 %36, 0
  br i1 %.not68, label %37, label %47

37:                                               ; preds = %34
  %.not69 = icmp eq i32 %8, 0
  br i1 %.not69, label %41, label %38

38:                                               ; preds = %37
  %39 = load ptr, ptr %11, align 8, !tbaa !5
  %40 = call i32 @rl_btree_update_element(ptr noundef %0, ptr noundef %39, ptr noundef nonnull %15, ptr noundef nonnull %31) #5
  switch i32 %40, label %47 [
    i32 0, label %.thread
    i32 3, label %41
  ]

.thread:                                          ; preds = %38
  call void @free(ptr noundef nonnull %15) #5
  br label %47

41:                                               ; preds = %38, %37
  br i1 %21, label %47, label %42

42:                                               ; preds = %41
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = load i64, ptr %10, align 8, !tbaa !13
  %45 = call i32 @rl_btree_add_element(ptr noundef %0, ptr noundef %43, i64 noundef %44, ptr noundef nonnull %15, ptr noundef nonnull %31) #5
  %46 = icmp ne i32 %45, 2
  %spec.select = zext i1 %46 to i64
  br label %47

47:                                               ; preds = %.thread, %42, %41, %38, %30, %14, %34, %32, %22, %16, %9
  %.050 = phi i32 [ %13, %9 ], [ %17, %16 ], [ %33, %32 ], [ %36, %34 ], [ 2, %22 ], [ 4, %14 ], [ 4, %30 ], [ %40, %38 ], [ 0, %41 ], [ %45, %42 ], [ 0, %.thread ]
  %.149 = phi ptr [ null, %9 ], [ %15, %16 ], [ %15, %32 ], [ %15, %34 ], [ %15, %22 ], [ null, %14 ], [ %15, %30 ], [ %15, %38 ], [ %15, %41 ], [ %15, %42 ], [ null, %.thread ]
  %.047 = phi ptr [ null, %9 ], [ null, %16 ], [ %31, %32 ], [ %31, %34 ], [ null, %22 ], [ null, %14 ], [ null, %30 ], [ %31, %38 ], [ %31, %41 ], [ %31, %42 ], [ %31, %.thread ]
  %.4 = phi i64 [ 1, %9 ], [ 1, %16 ], [ %.0, %32 ], [ %.0, %34 ], [ 0, %22 ], [ 1, %14 ], [ %.0, %30 ], [ %.0, %38 ], [ 0, %41 ], [ %spec.select, %42 ], [ 0, %.thread ]
  %.not73 = icmp eq ptr %7, null
  br i1 %.not73, label %49, label %48

48:                                               ; preds = %47
  store i64 %.4, ptr %7, align 8, !tbaa !13
  br label %49

49:                                               ; preds = %48, %47
  %.not74 = icmp eq i32 %.050, 0
  br i1 %.not74, label %51, label %50

50:                                               ; preds = %49
  call void @free(ptr noundef %.149) #5
  call void @free(ptr noundef %.047) #5
  br label %51

51:                                               ; preds = %50, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  ret i32 %.050
}

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

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

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

declare i32 @sha1(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @rl_btree_find_score(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @rl_multi_string_delete(ptr noundef, i64 noundef) local_unnamed_addr #3

declare i32 @rl_multi_string_set(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare i32 @rl_btree_update_element(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

declare i32 @rl_btree_add_element(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

!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 0}
!10 = !{!"rl_hashkey", !11, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!11, !11, i64 0}


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