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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @rl_set(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i32 noundef, i64 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: nounwind uwtable
declare hidden i32 @rl_string_get_objects(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @rl_multi_string_getrange(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef) #2

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

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

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

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

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

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

24:                                               ; preds = %5
  %25 = load i32, ptr %12, align 4, !tbaa !13
  %26 = icmp ne i32 3, %25
  br i1 %26, label %27, label %28

27:                                               ; preds = %24
  br label %138

28:                                               ; preds = %24, %5
  %29 = load i32, ptr %12, align 4, !tbaa !13
  %30 = icmp eq i32 %29, 3
  br i1 %30, label %31, label %53

31:                                               ; preds = %28
  %32 = call noalias ptr @malloc(i64 noundef 1077) #8
  store ptr %32, ptr %13, align 8, !tbaa !5
  %33 = load ptr, ptr %13, align 8, !tbaa !5
  %34 = icmp ne ptr %33, null
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  store i32 4, ptr %12, align 4, !tbaa !13
  br label %138

36:                                               ; preds = %31
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = load double, ptr %9, align 8, !tbaa !11
  %39 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %37, i64 noundef 1077, ptr noundef @.str.1, double noundef %38) #7
  %40 = sext i32 %39 to i64
  store i64 %40, ptr %15, align 8, !tbaa !9
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %46

43:                                               ; preds = %36
  %44 = load double, ptr %9, align 8, !tbaa !11
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  store double %44, ptr %45, align 8, !tbaa !11
  br label %46

46:                                               ; preds = %43, %36
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = load i64, ptr %8, align 8, !tbaa !9
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  %51 = load i64, ptr %15, align 8, !tbaa !9
  %52 = call i32 @rl_set(ptr noundef %47, ptr noundef %48, i64 noundef %49, ptr noundef %50, i64 noundef %51, i32 noundef 1, i64 noundef 0)
  store i32 %52, ptr %12, align 4, !tbaa !13
  br label %138

53:                                               ; preds = %28
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = load i64, ptr %11, align 8, !tbaa !9
  %56 = call i32 @rl_multi_string_getrange(ptr noundef %54, i64 noundef %55, ptr noundef %13, ptr noundef %15, i64 noundef 0, i64 noundef 1078)
  store i32 %56, ptr %12, align 4, !tbaa !13
  %57 = load i32, ptr %12, align 4, !tbaa !13
  %58 = icmp ne i32 0, %57
  br i1 %58, label %59, label %60

59:                                               ; preds = %53
  br label %138

60:                                               ; preds = %53
  %61 = load i64, ptr %15, align 8, !tbaa !9
  %62 = icmp eq i64 %61, 1078
  br i1 %62, label %63, label %64

63:                                               ; preds = %60
  store i32 11, ptr %12, align 4, !tbaa !13
  br label %138

64:                                               ; preds = %60
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  %66 = call x86_fp80 @strtold(ptr noundef %65, ptr noundef %14) #7
  %67 = fptrunc x86_fp80 %66 to double
  store double %67, ptr %16, align 8, !tbaa !11
  %68 = call ptr @__ctype_b_loc() #9
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %70, i64 0
  %72 = load i8, ptr %71, align 1, !tbaa !15
  %73 = sext i8 %72 to i32
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds i16, ptr %69, i64 %74
  %76 = load i16, ptr %75, align 2, !tbaa !16
  %77 = zext i16 %76 to i32
  %78 = and i32 %77, 8192
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %93, label %80

80:                                               ; preds = %64
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %81, i64 0
  %83 = load i8, ptr %82, align 1, !tbaa !15
  %84 = sext i8 %83 to i32
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %93, label %86

86:                                               ; preds = %80
  %87 = call ptr @__errno_location() #9
  %88 = load i32, ptr %87, align 4, !tbaa !13
  %89 = icmp eq i32 %88, 34
  br i1 %89, label %93, label %90

90:                                               ; preds = %86
  %91 = load double, ptr %16, align 8, !tbaa !11
  %92 = call i1 @llvm.is.fpclass.f64(double %91, i32 3)
  br i1 %92, label %93, label %94

93:                                               ; preds = %90, %86, %80, %64
  store i32 11, ptr %12, align 4, !tbaa !13
  br label %138

94:                                               ; preds = %90
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  call void @free(ptr noundef %95) #7
  store ptr null, ptr %13, align 8, !tbaa !5
  %96 = load double, ptr %9, align 8, !tbaa !11
  %97 = load double, ptr %16, align 8, !tbaa !11
  %98 = fadd double %97, %96
  store double %98, ptr %16, align 8, !tbaa !11
  %99 = load double, ptr %16, align 8, !tbaa !11
  %100 = call double @llvm.fabs.f64(double %99) #10
  %101 = fcmp oeq double %100, 0x7FF0000000000000
  %102 = bitcast double %99 to i64
  %103 = icmp slt i64 %102, 0
  %104 = select i1 %103, i32 -1, i32 1
  %105 = select i1 %101, i32 %104, i32 0
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %110, label %107

107:                                              ; preds = %94
  %108 = load double, ptr %16, align 8, !tbaa !11
  %109 = call i1 @llvm.is.fpclass.f64(double %108, i32 3)
  br i1 %109, label %110, label %111

110:                                              ; preds = %107, %94
  store i32 12, ptr %12, align 4, !tbaa !13
  br label %138

111:                                              ; preds = %107
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = icmp ne ptr %112, null
  br i1 %113, label %114, label %117

114:                                              ; preds = %111
  %115 = load double, ptr %16, align 8, !tbaa !11
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  store double %115, ptr %116, align 8, !tbaa !11
  br label %117

117:                                              ; preds = %114, %111
  %118 = call noalias ptr @malloc(i64 noundef 1077) #8
  store ptr %118, ptr %13, align 8, !tbaa !5
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = icmp ne ptr %119, null
  br i1 %120, label %122, label %121

121:                                              ; preds = %117
  store i32 4, ptr %12, align 4, !tbaa !13
  br label %138

122:                                              ; preds = %117
  %123 = load ptr, ptr %13, align 8, !tbaa !5
  %124 = load double, ptr %16, align 8, !tbaa !11
  %125 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %123, i64 noundef 1077, ptr noundef @.str.1, double noundef %124) #7
  %126 = sext i32 %125 to i64
  store i64 %126, ptr %15, align 8, !tbaa !9
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = load i64, ptr %8, align 8, !tbaa !9
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  %131 = load i64, ptr %15, align 8, !tbaa !9
  %132 = load i64, ptr %17, align 8, !tbaa !18
  %133 = call i32 @rl_set(ptr noundef %127, ptr noundef %128, i64 noundef %129, ptr noundef %130, i64 noundef %131, i32 noundef 0, i64 noundef %132)
  store i32 %133, ptr %12, align 4, !tbaa !13
  %134 = load i32, ptr %12, align 4, !tbaa !13
  %135 = icmp ne i32 0, %134
  br i1 %135, label %136, label %137

136:                                              ; preds = %122
  br label %138

137:                                              ; preds = %122
  store i32 0, ptr %12, align 4, !tbaa !13
  br label %138

138:                                              ; preds = %137, %136, %121, %110, %93, %63, %59, %46, %35, %27
  %139 = load ptr, ptr %13, align 8, !tbaa !5
  call void @free(ptr noundef %139) #7
  %140 = load i32, ptr %12, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  ret i32 %140
}

; Function Attrs: nounwind
declare x86_fp80 @strtold(ptr noundef, ptr noundef) #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #6

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind 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 #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 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { nounwind willreturn memory(none) }
attributes #10 = { 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 = !{!7, !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"long long", !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.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @rl_set(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i32 noundef, i64 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: nounwind uwtable
declare hidden i32 @rl_string_get_objects(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @rl_multi_string_getrange(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 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

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) 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: nounwind uwtable
define dso_local i32 @rl_incrbyfloat(ptr noundef %0, ptr noundef %1, i64 noundef %2, double noundef %3, ptr noundef writeonly %4) local_unnamed_addr #0 {
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  %11 = call i32 @rl_string_get_objects(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef nonnull %6, ptr noundef nonnull %10, ptr noundef null)
  switch i32 %11, label %59 [
    i32 3, label %12
    i32 0, label %20
  ]

12:                                               ; preds = %5
  %13 = call noalias dereferenceable_or_null(1077) ptr @malloc(i64 noundef 1077) #10
  store ptr %13, ptr %7, align 8, !tbaa !5
  %.not38 = icmp eq ptr %13, null
  br i1 %.not38, label %59, label %14

14:                                               ; preds = %12
  %15 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %13, i64 noundef 1077, ptr noundef nonnull @.str.1, double noundef %3) #9
  %16 = sext i32 %15 to i64
  store i64 %16, ptr %9, align 8, !tbaa !9
  %.not39 = icmp eq ptr %4, null
  br i1 %.not39, label %18, label %17

17:                                               ; preds = %14
  store double %3, ptr %4, align 8, !tbaa !11
  br label %18

18:                                               ; preds = %17, %14
  %19 = call i32 @rl_set(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef nonnull %13, i64 noundef %16, i32 noundef 1, i64 noundef 0)
  br label %59

20:                                               ; preds = %5
  %21 = load i64, ptr %6, align 8, !tbaa !9
  %22 = call i32 @rl_multi_string_getrange(ptr noundef %0, i64 noundef %21, ptr noundef nonnull %7, ptr noundef nonnull %9, i64 noundef 0, i64 noundef 1078) #9
  %.not = icmp eq i32 %22, 0
  br i1 %.not, label %23, label %59

23:                                               ; preds = %20
  %24 = load i64, ptr %9, align 8, !tbaa !9
  %25 = icmp eq i64 %24, 1078
  br i1 %25, label %59, label %26

26:                                               ; preds = %23
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = call x86_fp80 @strtold(ptr noundef %27, ptr noundef nonnull %8) #9
  %29 = fptrunc x86_fp80 %28 to double
  %30 = tail call ptr @__ctype_b_loc() #11
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = load i8, ptr %32, align 1, !tbaa !13
  %34 = sext i8 %33 to i64
  %35 = getelementptr inbounds i16, ptr %31, i64 %34
  %36 = load i16, ptr %35, align 2, !tbaa !14
  %37 = and i16 %36, 8192
  %.not34 = icmp eq i16 %37, 0
  br i1 %.not34, label %38, label %59

38:                                               ; preds = %26
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = load i8, ptr %39, align 1, !tbaa !13
  %.not35 = icmp eq i8 %40, 0
  br i1 %.not35, label %41, label %59

41:                                               ; preds = %38
  %42 = tail call ptr @__errno_location() #11
  %43 = load i32, ptr %42, align 4, !tbaa !16
  %44 = icmp eq i32 %43, 34
  %45 = fcmp uno double %29, 0.000000e+00
  %or.cond = select i1 %44, i1 true, i1 %45
  br i1 %or.cond, label %59, label %46

46:                                               ; preds = %41
  call void @free(ptr noundef nonnull %32) #9
  store ptr null, ptr %7, align 8, !tbaa !5
  %47 = fadd double %29, %3
  %48 = call double @llvm.fabs.f64(double %47)
  %or.cond40 = fcmp ueq double %48, 0x7FF0000000000000
  br i1 %or.cond40, label %59, label %49

49:                                               ; preds = %46
  %.not36 = icmp eq ptr %4, null
  br i1 %.not36, label %51, label %50

50:                                               ; preds = %49
  store double %47, ptr %4, align 8, !tbaa !11
  br label %51

51:                                               ; preds = %50, %49
  %52 = call noalias dereferenceable_or_null(1077) ptr @malloc(i64 noundef 1077) #10
  store ptr %52, ptr %7, align 8, !tbaa !5
  %.not37 = icmp eq ptr %52, null
  br i1 %.not37, label %59, label %53

53:                                               ; preds = %51
  %54 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %52, i64 noundef 1077, ptr noundef nonnull @.str.1, double noundef %47) #9
  %55 = sext i32 %54 to i64
  store i64 %55, ptr %9, align 8, !tbaa !9
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = load i64, ptr %10, align 8, !tbaa !18
  %58 = call i32 @rl_set(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %56, i64 noundef %55, i32 noundef 0, i64 noundef %57)
  br label %59

59:                                               ; preds = %51, %46, %26, %38, %41, %23, %12, %5, %53, %20, %18
  %.0 = phi i32 [ %11, %5 ], [ %19, %18 ], [ %22, %20 ], [ %58, %53 ], [ 4, %12 ], [ 11, %23 ], [ 11, %41 ], [ 11, %38 ], [ 11, %26 ], [ 12, %46 ], [ 4, %51 ]
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %60) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  ret i32 %.0
}

; Function Attrs: mustprogress nofree nounwind willreturn
declare x86_fp80 @strtold(ptr noundef readonly, ptr nocapture noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #8

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 = { "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 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 #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 = { 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 #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 = { 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 #8 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { 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 = !{!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 = !{!"long long", !7, i64 0}


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