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

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

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

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

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

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

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #5

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() #6

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #6

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #4

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

32:                                               ; preds = %7
  br label %228

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

37:                                               ; preds = %33
  store i32 4, ptr %15, align 4, !tbaa !13
  br label %228

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

45:                                               ; preds = %38
  br label %228

46:                                               ; preds = %38
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = load ptr, ptr %16, align 8, !tbaa !5
  %49 = load ptr, ptr %18, align 8, !tbaa !5
  %50 = call i32 @rl_btree_find_score(ptr noundef %47, ptr noundef %48, ptr noundef %49, ptr noundef %17, ptr noundef null, ptr noundef null)
  store i32 %50, ptr %15, align 4, !tbaa !13
  %51 = load i32, ptr %15, align 4, !tbaa !13
  %52 = icmp eq i32 %51, 2
  br i1 %52, label %53, label %171

53:                                               ; preds = %46
  %54 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %54, ptr %25, align 8, !tbaa !5
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = load ptr, ptr %25, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.rl_hashkey, ptr %56, i32 0, i32 1
  %58 = load i64, ptr %57, align 8, !tbaa !15
  %59 = call i32 @rl_multi_string_get(ptr noundef %55, i64 noundef %58, ptr noundef %19, ptr noundef %22)
  %60 = load i64, ptr %22, align 8, !tbaa !9
  %61 = sdiv i64 %60, 8
  %62 = add nsw i64 %61, 1
  %63 = mul nsw i64 %62, 8
  store i64 %63, ptr %21, align 8, !tbaa !9
  %64 = load ptr, ptr %19, align 8, !tbaa !5
  %65 = load i64, ptr %21, align 8, !tbaa !9
  %66 = mul i64 1, %65
  %67 = call ptr @realloc(ptr noundef %64, i64 noundef %66) #11
  store ptr %67, ptr %17, align 8, !tbaa !5
  %68 = load ptr, ptr %17, align 8, !tbaa !5
  %69 = icmp ne ptr %68, null
  br i1 %69, label %71, label %70

70:                                               ; preds = %53
  store i32 4, ptr %15, align 4, !tbaa !13
  br label %228

71:                                               ; preds = %53
  %72 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %72, ptr %19, align 8, !tbaa !5
  %73 = load ptr, ptr %19, align 8, !tbaa !5
  %74 = load i64, ptr %22, align 8, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %73, i64 %74
  %76 = load i64, ptr %21, align 8, !tbaa !9
  %77 = load i64, ptr %22, align 8, !tbaa !9
  %78 = sub nsw i64 %76, %77
  call void @llvm.memset.p0.i64(ptr align 1 %75, i8 0, i64 %78, i1 false)
  %79 = load ptr, ptr %19, align 8, !tbaa !5
  %80 = call double @strtod(ptr noundef %79, ptr noundef %20) #9
  store double %80, ptr %24, align 8, !tbaa !11
  %81 = call ptr @__ctype_b_loc() #12
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = load ptr, ptr %19, align 8, !tbaa !5
  %84 = getelementptr inbounds i8, ptr %83, i64 0
  %85 = load i8, ptr %84, align 1, !tbaa !17
  %86 = sext i8 %85 to i32
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds i16, ptr %82, i64 %87
  %89 = load i16, ptr %88, align 2, !tbaa !18
  %90 = zext i16 %89 to i32
  %91 = and i32 %90, 8192
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %119, label %93

93:                                               ; preds = %71
  %94 = load ptr, ptr %20, align 8, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %94, i64 0
  %96 = load i8, ptr %95, align 1, !tbaa !17
  %97 = sext i8 %96 to i32
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %119, label %99

99:                                               ; preds = %93
  %100 = call ptr @__errno_location() #12
  %101 = load i32, ptr %100, align 4, !tbaa !13
  %102 = icmp eq i32 %101, 34
  br i1 %102, label %103, label %112

103:                                              ; preds = %99
  %104 = load double, ptr %24, align 8, !tbaa !11
  %105 = fcmp oeq double %104, 0x7FF0000000000000
  br i1 %105, label %119, label %106

106:                                              ; preds = %103
  %107 = load double, ptr %24, align 8, !tbaa !11
  %108 = fcmp oeq double %107, 0xFFF0000000000000
  br i1 %108, label %119, label %109

109:                                              ; preds = %106
  %110 = load double, ptr %24, align 8, !tbaa !11
  %111 = fcmp oeq double %110, 0.000000e+00
  br i1 %111, label %119, label %112

112:                                              ; preds = %109, %99
  %113 = call ptr @__errno_location() #12
  %114 = load i32, ptr %113, align 4, !tbaa !13
  %115 = icmp eq i32 %114, 22
  br i1 %115, label %119, label %116

116:                                              ; preds = %112
  %117 = load double, ptr %24, align 8, !tbaa !11
  %118 = call i1 @llvm.is.fpclass.f64(double %117, i32 3)
  br i1 %118, label %119, label %121

119:                                              ; preds = %116, %112, %109, %106, %103, %93, %71
  %120 = load ptr, ptr %18, align 8, !tbaa !5
  call void @free(ptr noundef %120) #9
  store i32 11, ptr %15, align 4, !tbaa !13
  br label %228

121:                                              ; preds = %116
  %122 = load ptr, ptr %19, align 8, !tbaa !5
  call void @free(ptr noundef %122) #9
  store ptr null, ptr %19, align 8, !tbaa !5
  %123 = load double, ptr %13, align 8, !tbaa !11
  %124 = load double, ptr %24, align 8, !tbaa !11
  %125 = fadd double %124, %123
  store double %125, ptr %24, align 8, !tbaa !11
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = load ptr, ptr %25, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.rl_hashkey, ptr %127, i32 0, i32 1
  %129 = load i64, ptr %128, align 8, !tbaa !15
  %130 = call i32 @rl_multi_string_delete(ptr noundef %126, i64 noundef %129)
  %131 = call noalias ptr @malloc(i64 noundef 1077) #10
  store ptr %131, ptr %19, align 8, !tbaa !5
  %132 = load ptr, ptr %19, align 8, !tbaa !5
  %133 = icmp ne ptr %132, null
  br i1 %133, label %135, label %134

134:                                              ; preds = %121
  store i32 4, ptr %15, align 4, !tbaa !13
  br label %228

135:                                              ; preds = %121
  %136 = load ptr, ptr %19, align 8, !tbaa !5
  %137 = load double, ptr %24, align 8, !tbaa !11
  %138 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %136, i64 noundef 1077, ptr noundef @.str.2, double noundef %137) #9
  %139 = sext i32 %138 to i64
  store i64 %139, ptr %22, align 8, !tbaa !9
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = load ptr, ptr %25, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.rl_hashkey, ptr %141, i32 0, i32 1
  %143 = load ptr, ptr %19, align 8, !tbaa !5
  %144 = load i64, ptr %22, align 8, !tbaa !9
  %145 = call i32 @rl_multi_string_set(ptr noundef %140, ptr noundef %142, ptr noundef %143, i64 noundef %144)
  store i32 %145, ptr %15, align 4, !tbaa !13
  %146 = load i32, ptr %15, align 4, !tbaa !13
  %147 = icmp ne i32 0, %146
  br i1 %147, label %148, label %149

148:                                              ; preds = %135
  br label %228

149:                                              ; preds = %135
  %150 = load ptr, ptr %8, align 8, !tbaa !5
  %151 = load ptr, ptr %16, align 8, !tbaa !5
  %152 = load ptr, ptr %18, align 8, !tbaa !5
  %153 = load ptr, ptr %25, align 8, !tbaa !5
  %154 = call i32 @rl_btree_update_element(ptr noundef %150, ptr noundef %151, ptr noundef %152, ptr noundef %153)
  store i32 %154, ptr %15, align 4, !tbaa !13
  %155 = load i32, ptr %15, align 4, !tbaa !13
  %156 = icmp eq i32 %155, 0
  br i1 %156, label %157, label %165

157:                                              ; preds = %149
  %158 = load ptr, ptr %18, align 8, !tbaa !5
  call void @free(ptr noundef %158) #9
  store ptr null, ptr %18, align 8, !tbaa !5
  %159 = load ptr, ptr %14, align 8, !tbaa !5
  %160 = icmp ne ptr %159, null
  br i1 %160, label %161, label %164

161:                                              ; preds = %157
  %162 = load double, ptr %24, align 8, !tbaa !11
  %163 = load ptr, ptr %14, align 8, !tbaa !5
  store double %162, ptr %163, align 8, !tbaa !11
  br label %164

164:                                              ; preds = %161, %157
  br label %170

165:                                              ; preds = %149
  %166 = load i32, ptr %15, align 4, !tbaa !13
  %167 = icmp ne i32 %166, 3
  br i1 %167, label %168, label %169

168:                                              ; preds = %165
  br label %228

169:                                              ; preds = %165
  br label %170

170:                                              ; preds = %169, %164
  br label %227

171:                                              ; preds = %46
  %172 = load i32, ptr %15, align 4, !tbaa !13
  %173 = icmp eq i32 %172, 3
  br i1 %173, label %174, label %225

174:                                              ; preds = %171
  %175 = call noalias ptr @malloc(i64 noundef 1077) #10
  store ptr %175, ptr %19, align 8, !tbaa !5
  %176 = load ptr, ptr %19, align 8, !tbaa !5
  %177 = icmp ne ptr %176, null
  br i1 %177, label %179, label %178

178:                                              ; preds = %174
  store i32 4, ptr %15, align 4, !tbaa !13
  br label %228

179:                                              ; preds = %174
  %180 = load ptr, ptr %19, align 8, !tbaa !5
  %181 = load double, ptr %13, align 8, !tbaa !11
  %182 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %180, i64 noundef 1077, ptr noundef @.str.2, double noundef %181) #9
  %183 = sext i32 %182 to i64
  store i64 %183, ptr %22, align 8, !tbaa !9
  %184 = call noalias ptr @malloc(i64 noundef 16) #10
  store ptr %184, ptr %25, align 8, !tbaa !5
  %185 = load ptr, ptr %25, align 8, !tbaa !5
  %186 = icmp ne ptr %185, null
  br i1 %186, label %188, label %187

187:                                              ; preds = %179
  store i32 4, ptr %15, align 4, !tbaa !13
  br label %228

188:                                              ; preds = %179
  %189 = load ptr, ptr %8, align 8, !tbaa !5
  %190 = load ptr, ptr %25, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.rl_hashkey, ptr %190, i32 0, i32 0
  %192 = load ptr, ptr %11, align 8, !tbaa !5
  %193 = load i64, ptr %12, align 8, !tbaa !9
  %194 = call i32 @rl_multi_string_set(ptr noundef %189, ptr noundef %191, ptr noundef %192, i64 noundef %193)
  store i32 %194, ptr %15, align 4, !tbaa !13
  %195 = load i32, ptr %15, align 4, !tbaa !13
  %196 = icmp ne i32 0, %195
  br i1 %196, label %197, label %198

197:                                              ; preds = %188
  br label %228

198:                                              ; preds = %188
  %199 = load ptr, ptr %8, align 8, !tbaa !5
  %200 = load ptr, ptr %25, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.rl_hashkey, ptr %200, i32 0, i32 1
  %202 = load ptr, ptr %19, align 8, !tbaa !5
  %203 = load i64, ptr %22, align 8, !tbaa !9
  %204 = call i32 @rl_multi_string_set(ptr noundef %199, ptr noundef %201, ptr noundef %202, i64 noundef %203)
  store i32 %204, ptr %15, align 4, !tbaa !13
  %205 = load i32, ptr %15, align 4, !tbaa !13
  %206 = icmp ne i32 0, %205
  br i1 %206, label %207, label %208

207:                                              ; preds = %198
  br label %228

208:                                              ; preds = %198
  %209 = load ptr, ptr %8, align 8, !tbaa !5
  %210 = load ptr, ptr %16, align 8, !tbaa !5
  %211 = load i64, ptr %23, align 8, !tbaa !9
  %212 = load ptr, ptr %18, align 8, !tbaa !5
  %213 = load ptr, ptr %25, align 8, !tbaa !5
  %214 = call i32 @rl_btree_add_element(ptr noundef %209, ptr noundef %210, i64 noundef %211, ptr noundef %212, ptr noundef %213)
  store i32 %214, ptr %15, align 4, !tbaa !13
  %215 = load i32, ptr %15, align 4, !tbaa !13
  %216 = icmp ne i32 0, %215
  br i1 %216, label %217, label %218

217:                                              ; preds = %208
  br label %228

218:                                              ; preds = %208
  %219 = load ptr, ptr %14, align 8, !tbaa !5
  %220 = icmp ne ptr %219, null
  br i1 %220, label %221, label %224

221:                                              ; preds = %218
  %222 = load double, ptr %13, align 8, !tbaa !11
  %223 = load ptr, ptr %14, align 8, !tbaa !5
  store double %222, ptr %223, align 8, !tbaa !11
  br label %224

224:                                              ; preds = %221, %218
  br label %226

225:                                              ; preds = %171
  br label %228

226:                                              ; preds = %224
  br label %227

227:                                              ; preds = %226, %170
  store i32 0, ptr %15, align 4, !tbaa !13
  br label %228

228:                                              ; preds = %227, %225, %217, %207, %197, %187, %178, %168, %148, %134, %119, %70, %45, %37, %32
  %229 = load ptr, ptr %19, align 8, !tbaa !5
  call void @free(ptr noundef %229) #9
  %230 = load i32, ptr %15, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  ret i32 %230
}

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

; Function Attrs: nounwind
declare double @strtod(ptr noundef, ptr noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.is.fpclass.f64(double, i32 immarg) #8

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

!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 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !10, i64 8}
!16 = !{!"rl_hashkey", !10, i64 0, !10, i64 8}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"short", !7, 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"

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

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

; Function Attrs: 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 #1

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

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

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() local_unnamed_addr #6

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #6

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #7

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

15:                                               ; preds = %7
  %16 = call noalias dereferenceable_or_null(20) ptr @malloc(i64 noundef 20) #12
  %.not73 = icmp eq ptr %16, null
  br i1 %.not73, label %89, label %17

17:                                               ; preds = %15
  %18 = call i32 @sha1(ptr noundef %3, i64 noundef %4, ptr noundef nonnull %16) #11
  %.not74 = icmp eq i32 %18, 0
  br i1 %.not74, label %19, label %89

19:                                               ; preds = %17
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = call i32 @rl_btree_find_score(ptr noundef %0, ptr noundef %20, ptr noundef nonnull %16, ptr noundef nonnull %9, ptr noundef null, ptr noundef null) #11
  switch i32 %21, label %89 [
    i32 2, label %22
    i32 3, label %72
  ]

22:                                               ; preds = %19
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  %25 = load i64, ptr %24, align 8, !tbaa !9
  %26 = call i32 @rl_multi_string_get(ptr noundef %0, i64 noundef %25, ptr noundef nonnull %10, ptr noundef nonnull %12) #11
  %27 = load i64, ptr %12, align 8, !tbaa !12
  %28 = sdiv i64 %27, 8
  %29 = shl nsw i64 %28, 3
  %30 = add i64 %29, 8
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = call ptr @realloc(ptr noundef %31, i64 noundef %30) #13
  store ptr %32, ptr %9, align 8, !tbaa !5
  %.not81 = icmp eq ptr %32, null
  br i1 %.not81, label %89, label %33

33:                                               ; preds = %22
  store ptr %32, ptr %10, align 8, !tbaa !5
  %34 = load i64, ptr %12, align 8, !tbaa !12
  %35 = getelementptr inbounds i8, ptr %32, i64 %34
  %36 = sub nsw i64 %30, %34
  call void @llvm.memset.p0.i64(ptr nonnull align 1 %35, i8 0, i64 %36, i1 false)
  %37 = call double @strtod(ptr noundef nonnull %32, ptr noundef nonnull %11) #11
  %38 = tail call ptr @__ctype_b_loc() #14
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = load i8, ptr %40, align 1, !tbaa !13
  %42 = sext i8 %41 to i64
  %43 = getelementptr inbounds i16, ptr %39, i64 %42
  %44 = load i16, ptr %43, align 2, !tbaa !14
  %45 = and i16 %44, 8192
  %.not82 = icmp eq i16 %45, 0
  br i1 %.not82, label %46, label %57

46:                                               ; preds = %33
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = load i8, ptr %47, align 1, !tbaa !13
  %.not83 = icmp eq i8 %48, 0
  br i1 %.not83, label %49, label %57

49:                                               ; preds = %46
  %50 = tail call ptr @__errno_location() #14
  %51 = load i32, ptr %50, align 4, !tbaa !16
  %52 = icmp eq i32 %51, 34
  br i1 %52, label %53, label %54

53:                                               ; preds = %49
  %or.cond3 = call i1 @llvm.is.fpclass.f64(double %37, i32 612)
  br i1 %or.cond3, label %57, label %54

54:                                               ; preds = %53, %49
  %55 = icmp eq i32 %51, 22
  %56 = fcmp uno double %37, 0.000000e+00
  %or.cond = select i1 %55, i1 true, i1 %56
  br i1 %or.cond, label %57, label %58

57:                                               ; preds = %54, %53, %46, %33
  call void @free(ptr noundef nonnull %16) #11
  br label %89

58:                                               ; preds = %54
  call void @free(ptr noundef nonnull %40) #11
  store ptr null, ptr %10, align 8, !tbaa !5
  %59 = fadd double %37, %5
  %60 = load i64, ptr %24, align 8, !tbaa !9
  %61 = call i32 @rl_multi_string_delete(ptr noundef %0, i64 noundef %60) #11
  %62 = call noalias dereferenceable_or_null(1077) ptr @malloc(i64 noundef 1077) #12
  store ptr %62, ptr %10, align 8, !tbaa !5
  %.not84 = icmp eq ptr %62, null
  br i1 %.not84, label %89, label %63

63:                                               ; preds = %58
  %64 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %62, i64 noundef 1077, ptr noundef nonnull @.str.2, double noundef %59) #11
  %65 = sext i32 %64 to i64
  store i64 %65, ptr %12, align 8, !tbaa !12
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = call i32 @rl_multi_string_set(ptr noundef %0, ptr noundef nonnull %24, ptr noundef %66, i64 noundef %65) #11
  %.not85 = icmp eq i32 %67, 0
  br i1 %.not85, label %68, label %89

68:                                               ; preds = %63
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = call i32 @rl_btree_update_element(ptr noundef %0, ptr noundef %69, ptr noundef nonnull %16, ptr noundef nonnull %23) #11
  switch i32 %70, label %89 [
    i32 0, label %71
    i32 3, label %88
  ]

71:                                               ; preds = %68
  call void @free(ptr noundef nonnull %16) #11
  %.not87 = icmp eq ptr %6, null
  br i1 %.not87, label %88, label %.sink.split

72:                                               ; preds = %19
  %73 = call noalias dereferenceable_or_null(1077) ptr @malloc(i64 noundef 1077) #12
  store ptr %73, ptr %10, align 8, !tbaa !5
  %.not75 = icmp eq ptr %73, null
  br i1 %.not75, label %89, label %74

74:                                               ; preds = %72
  %75 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %73, i64 noundef 1077, ptr noundef nonnull @.str.2, double noundef %5) #11
  %76 = sext i32 %75 to i64
  store i64 %76, ptr %12, align 8, !tbaa !12
  %77 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #12
  %.not76 = icmp eq ptr %77, null
  br i1 %.not76, label %89, label %78

78:                                               ; preds = %74
  %79 = call i32 @rl_multi_string_set(ptr noundef %0, ptr noundef nonnull %77, ptr noundef %3, i64 noundef %4) #11
  %.not77 = icmp eq i32 %79, 0
  br i1 %.not77, label %80, label %89

80:                                               ; preds = %78
  %81 = getelementptr inbounds i8, ptr %77, i64 8
  %82 = call i32 @rl_multi_string_set(ptr noundef %0, ptr noundef nonnull %81, ptr noundef nonnull %73, i64 noundef %76) #11
  %.not78 = icmp eq i32 %82, 0
  br i1 %.not78, label %83, label %89

83:                                               ; preds = %80
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = load i64, ptr %13, align 8, !tbaa !12
  %86 = call i32 @rl_btree_add_element(ptr noundef %0, ptr noundef %84, i64 noundef %85, ptr noundef nonnull %16, ptr noundef nonnull %77) #11
  %.not79 = icmp eq i32 %86, 0
  br i1 %.not79, label %87, label %89

87:                                               ; preds = %83
  %.not80 = icmp eq ptr %6, null
  br i1 %.not80, label %88, label %.sink.split

.sink.split:                                      ; preds = %87, %71
  %.sink = phi double [ %59, %71 ], [ %5, %87 ]
  store double %.sink, ptr %6, align 8, !tbaa !18
  br label %88

88:                                               ; preds = %.sink.split, %68, %87, %71
  br label %89

89:                                               ; preds = %74, %72, %19, %68, %58, %22, %15, %83, %80, %78, %63, %17, %7, %88, %57
  %.0 = phi i32 [ %14, %7 ], [ %18, %17 ], [ 11, %57 ], [ %67, %63 ], [ 0, %88 ], [ %79, %78 ], [ %82, %80 ], [ %86, %83 ], [ 4, %15 ], [ 4, %22 ], [ 4, %58 ], [ %70, %68 ], [ %21, %19 ], [ 4, %72 ], [ 4, %74 ]
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %90) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #11
  ret i32 %.0
}

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

; Function Attrs: mustprogress nofree nounwind willreturn
declare double @strtod(ptr noundef readonly, ptr nocapture noundef) local_unnamed_addr #9

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.is.fpclass.f64(double, i32 immarg) #10

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) 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 #6 = { mustprogress nofree nosync nounwind willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { mustprogress nofree nounwind willreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #11 = { nounwind }
attributes #12 = { nounwind allocsize(0) }
attributes #13 = { nounwind allocsize(1) }
attributes #14 = { nounwind willreturn memory(none) }

!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 8}
!10 = !{!"rl_hashkey", !11, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}


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