; LLVM IR from fmela/libdict :: src (wb_tree)

; 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.dict_insert_result = type { ptr, i8 }
%struct.wb_tree = type { ptr, i64, ptr, i64 }
%struct.wb_node = type { ptr, ptr, ptr, ptr, ptr, i32 }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@__func__.wb_tree_insert = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #0

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: noreturn nounwind
declare void @abort() #2

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i8 } @wb_tree_insert(ptr noundef %0, ptr noundef %1) #4 {
  %3 = alloca %struct.dict_insert_result, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.wb_tree, ptr %12, i32 0, i32 0
  %14 = load ptr, ptr %13, align 8, !tbaa !11
  store ptr %14, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store ptr null, ptr %8, align 8, !tbaa !5
  br label %15

15:                                               ; preds = %48, %2
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %49

18:                                               ; preds = %15
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.wb_tree, ptr %19, i32 0, i32 2
  %21 = load ptr, ptr %20, align 8, !tbaa !14
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.wb_node, ptr %23, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8, !tbaa !15
  %26 = call i32 %21(ptr noundef %22, ptr noundef %25)
  store i32 %26, ptr %6, align 4, !tbaa !9
  %27 = load i32, ptr %6, align 4, !tbaa !9
  %28 = icmp slt i32 %27, 0
  br i1 %28, label %29, label %34

29:                                               ; preds = %18
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %30, ptr %8, align 8, !tbaa !5
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.wb_node, ptr %31, i32 0, i32 3
  %33 = load ptr, ptr %32, align 8, !tbaa !17
  store ptr %33, ptr %7, align 8, !tbaa !5
  br label %48

34:                                               ; preds = %18
  %35 = load i32, ptr %6, align 4, !tbaa !9
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %42

37:                                               ; preds = %34
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %38, ptr %8, align 8, !tbaa !5
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.wb_node, ptr %39, i32 0, i32 4
  %41 = load ptr, ptr %40, align 8, !tbaa !18
  store ptr %41, ptr %7, align 8, !tbaa !5
  br label %47

42:                                               ; preds = %34
  %43 = getelementptr inbounds %struct.dict_insert_result, ptr %3, i32 0, i32 0
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.wb_node, ptr %44, i32 0, i32 1
  store ptr %45, ptr %43, align 8, !tbaa !19
  %46 = getelementptr inbounds %struct.dict_insert_result, ptr %3, i32 0, i32 1
  store i8 0, ptr %46, align 8, !tbaa !22
  store i32 1, ptr %9, align 4
  br label %141

47:                                               ; preds = %37
  br label %48

48:                                               ; preds = %47, %29
  br label %15, !llvm.loop !23

49:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = call ptr @node_new(ptr noundef %50)
  store ptr %51, ptr %7, align 8, !tbaa !5
  store ptr %51, ptr %10, align 8, !tbaa !5
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = icmp ne ptr %52, null
  br i1 %53, label %57, label %54

54:                                               ; preds = %49
  %55 = getelementptr inbounds %struct.dict_insert_result, ptr %3, i32 0, i32 0
  store ptr null, ptr %55, align 8, !tbaa !19
  %56 = getelementptr inbounds %struct.dict_insert_result, ptr %3, i32 0, i32 1
  store i8 0, ptr %56, align 8, !tbaa !22
  store i32 1, ptr %9, align 4
  br label %140

57:                                               ; preds = %49
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.wb_node, ptr %59, i32 0, i32 2
  store ptr %58, ptr %60, align 8, !tbaa !25
  %61 = icmp ne ptr %58, null
  br i1 %61, label %96, label %62

62:                                               ; preds = %57
  br label %63

63:                                               ; preds = %62
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.wb_tree, ptr %64, i32 0, i32 1
  %66 = load i64, ptr %65, align 8, !tbaa !26
  %67 = icmp eq i64 %66, 0
  %68 = zext i1 %67 to i32
  %69 = sext i32 %68 to i64
  %70 = call i64 @llvm.expect.i64(i64 %69, i64 1)
  %71 = icmp ne i64 %70, 0
  br i1 %71, label %75, label %72

72:                                               ; preds = %63
  %73 = load ptr, ptr @stderr, align 8, !tbaa !5
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 256, ptr noundef @__func__.wb_tree_insert, ptr noundef @.str.3) #6
  call void @abort() #7
  unreachable

75:                                               ; preds = %63
  br label %76

76:                                               ; preds = %75
  br label %77

77:                                               ; preds = %76
  br label %78

78:                                               ; preds = %77
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.wb_tree, ptr %79, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = icmp eq ptr %81, null
  %83 = zext i1 %82 to i32
  %84 = sext i32 %83 to i64
  %85 = call i64 @llvm.expect.i64(i64 %84, i64 1)
  %86 = icmp ne i64 %85, 0
  br i1 %86, label %90, label %87

87:                                               ; preds = %78
  %88 = load ptr, ptr @stderr, align 8, !tbaa !5
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 257, ptr noundef @__func__.wb_tree_insert, ptr noundef @.str.4) #6
  call void @abort() #7
  unreachable

90:                                               ; preds = %78
  br label %91

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %91
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.wb_tree, ptr %94, i32 0, i32 0
  store ptr %93, ptr %95, align 8, !tbaa !11
  br label %131

96:                                               ; preds = %57
  %97 = load i32, ptr %6, align 4, !tbaa !9
  %98 = icmp slt i32 %97, 0
  br i1 %98, label %99, label %103

99:                                               ; preds = %96
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.wb_node, ptr %101, i32 0, i32 3
  store ptr %100, ptr %102, align 8, !tbaa !17
  br label %107

103:                                              ; preds = %96
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.wb_node, ptr %105, i32 0, i32 4
  store ptr %104, ptr %106, align 8, !tbaa !18
  br label %107

107:                                              ; preds = %103, %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %111, %107
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %109, ptr %7, align 8, !tbaa !5
  %110 = icmp ne ptr %109, null
  br i1 %110, label %111, label %124

111:                                              ; preds = %108
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.wb_node, ptr %112, i32 0, i32 2
  %114 = load ptr, ptr %113, align 8, !tbaa !25
  store ptr %114, ptr %8, align 8, !tbaa !5
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.wb_node, ptr %115, i32 0, i32 5
  %117 = load i32, ptr %116, align 8, !tbaa !27
  %118 = add i32 %117, 1
  store i32 %118, ptr %116, align 8, !tbaa !27
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = call i32 @fixup(ptr noundef %119, ptr noundef %120)
  %122 = load i32, ptr %11, align 4, !tbaa !9
  %123 = add i32 %122, %121
  store i32 %123, ptr %11, align 4, !tbaa !9
  br label %108, !llvm.loop !28

124:                                              ; preds = %108
  %125 = load i32, ptr %11, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.wb_tree, ptr %127, i32 0, i32 3
  %129 = load i64, ptr %128, align 8, !tbaa !29
  %130 = add i64 %129, %126
  store i64 %130, ptr %128, align 8, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %131

131:                                              ; preds = %124, %92
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.wb_tree, ptr %132, i32 0, i32 1
  %134 = load i64, ptr %133, align 8, !tbaa !26
  %135 = add i64 %134, 1
  store i64 %135, ptr %133, align 8, !tbaa !26
  %136 = getelementptr inbounds %struct.dict_insert_result, ptr %3, i32 0, i32 0
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.wb_node, ptr %137, i32 0, i32 1
  store ptr %138, ptr %136, align 8, !tbaa !19
  %139 = getelementptr inbounds %struct.dict_insert_result, ptr %3, i32 0, i32 1
  store i8 1, ptr %139, align 8, !tbaa !22
  store i32 1, ptr %9, align 4
  br label %140

140:                                              ; preds = %131, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %141

141:                                              ; preds = %140, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %142 = load { ptr, i8 }, ptr %3, align 8
  ret { ptr, i8 } %142
}

; Function Attrs: nounwind uwtable
declare hidden ptr @node_new(ptr noundef) #4

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(none) }
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 = { noreturn 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"wb_tree", !6, i64 0, !13, i64 8, !6, i64 16, !13, i64 24}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !6, i64 16}
!15 = !{!16, !6, i64 0}
!16 = !{!"wb_node", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40}
!17 = !{!16, !6, i64 24}
!18 = !{!16, !6, i64 32}
!19 = !{!20, !6, i64 0}
!20 = !{!"", !6, i64 0, !21, i64 8}
!21 = !{!"_Bool", !7, i64 0}
!22 = !{!20, !21, i64 8}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!16, !6, i64 16}
!26 = !{!12, !13, i64 8}
!27 = !{!16, !10, i64 40}
!28 = distinct !{!28, !24}
!29 = !{!12, !13, i64 24}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@__func__.wb_tree_insert = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local { ptr, i8 } @wb_tree_insert(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %.03547 = load ptr, ptr %0, align 8, !tbaa !5
  %.not48 = icmp eq ptr %.03547, null
  br i1 %.not48, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  br label %4

4:                                                ; preds = %.lr.ph, %12
  %.03549 = phi ptr [ %.03547, %.lr.ph ], [ %.035, %12 ]
  %5 = load ptr, ptr %3, align 8, !tbaa !9
  %6 = load ptr, ptr %.03549, align 8, !tbaa !12
  %7 = tail call i32 %5(ptr noundef %1, ptr noundef %6) #4
  %8 = icmp slt i32 %7, 0
  br i1 %8, label %12, label %9

9:                                                ; preds = %4
  %.not43 = icmp eq i32 %7, 0
  br i1 %.not43, label %10, label %12

10:                                               ; preds = %9
  %11 = getelementptr inbounds i8, ptr %.03549, i64 8
  br label %53

12:                                               ; preds = %9, %4
  %.sink = phi i64 [ 24, %4 ], [ 32, %9 ]
  %13 = getelementptr inbounds i8, ptr %.03549, i64 %.sink
  %.035 = load ptr, ptr %13, align 8, !tbaa !5
  %.not = icmp eq ptr %.035, null
  br i1 %.not, label %._crit_edge.loopexit, label %4, !llvm.loop !15

._crit_edge.loopexit:                             ; preds = %12
  %14 = icmp slt i32 %7, 0
  %15 = select i1 %14, i64 24, i64 32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %2
  %.037.lcssa = phi i64 [ 32, %2 ], [ %15, %._crit_edge.loopexit ]
  %.034.lcssa = phi ptr [ null, %2 ], [ %.03549, %._crit_edge.loopexit ]
  %16 = tail call ptr @node_new(ptr noundef %1)
  %.not40 = icmp eq ptr %16, null
  br i1 %.not40, label %53, label %17

17:                                               ; preds = %._crit_edge
  %18 = getelementptr inbounds i8, ptr %16, i64 16
  store ptr %.034.lcssa, ptr %18, align 8, !tbaa !17
  %.not41 = icmp eq ptr %.034.lcssa, null
  br i1 %.not41, label %19, label %33

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  %21 = load i64, ptr %20, align 8, !tbaa !18
  %22 = icmp eq i64 %21, 0
  br i1 %22, label %26, label %23, !prof !19

23:                                               ; preds = %19
  %24 = load ptr, ptr @stderr, align 8, !tbaa !5
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 256, ptr noundef nonnull @__func__.wb_tree_insert, ptr noundef nonnull @.str.3) #5
  tail call void @abort() #6
  unreachable

26:                                               ; preds = %19
  %27 = load ptr, ptr %0, align 8, !tbaa !20
  %28 = icmp eq ptr %27, null
  br i1 %28, label %32, label %29, !prof !19

29:                                               ; preds = %26
  %30 = load ptr, ptr @stderr, align 8, !tbaa !5
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 257, ptr noundef nonnull @__func__.wb_tree_insert, ptr noundef nonnull @.str.4) #5
  tail call void @abort() #6
  unreachable

32:                                               ; preds = %26
  store ptr %16, ptr %0, align 8, !tbaa !20
  br label %49

33:                                               ; preds = %17
  %34 = getelementptr inbounds i8, ptr %.034.lcssa, i64 %.037.lcssa
  store ptr %16, ptr %34, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %33, %35
  %.052 = phi i32 [ 0, %33 ], [ %42, %35 ]
  %.251 = phi ptr [ %.034.lcssa, %33 ], [ %37, %35 ]
  %36 = getelementptr inbounds i8, ptr %.251, i64 16
  %37 = load ptr, ptr %36, align 8, !tbaa !17
  %38 = getelementptr inbounds i8, ptr %.251, i64 40
  %39 = load i32, ptr %38, align 8, !tbaa !21
  %40 = add i32 %39, 1
  store i32 %40, ptr %38, align 8, !tbaa !21
  %41 = tail call i32 @fixup(ptr noundef nonnull %0, ptr noundef nonnull %.251)
  %42 = add i32 %41, %.052
  %.not42 = icmp eq ptr %37, null
  br i1 %.not42, label %43, label %35, !llvm.loop !22

43:                                               ; preds = %35
  %44 = zext i32 %42 to i64
  %45 = getelementptr inbounds i8, ptr %0, i64 24
  %46 = load i64, ptr %45, align 8, !tbaa !23
  %47 = add i64 %46, %44
  store i64 %47, ptr %45, align 8, !tbaa !23
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 8
  %.pre = load i64, ptr %.phi.trans.insert, align 8, !tbaa !18
  %48 = add i64 %.pre, 1
  br label %49

49:                                               ; preds = %43, %32
  %50 = phi i64 [ %48, %43 ], [ 1, %32 ]
  %51 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %50, ptr %51, align 8, !tbaa !18
  %52 = getelementptr inbounds i8, ptr %16, i64 8
  br label %53

53:                                               ; preds = %49, %._crit_edge, %10
  %.sroa.0.1 = phi ptr [ %11, %10 ], [ %52, %49 ], [ null, %._crit_edge ]
  %.sroa.4.1 = phi i8 [ 0, %10 ], [ 1, %49 ], [ 0, %._crit_edge ]
  %.fca.0.insert = insertvalue { ptr, i8 } poison, ptr %.sroa.0.1, 0
  %.fca.1.insert = insertvalue { ptr, i8 } %.fca.0.insert, i8 %.sroa.4.1, 1
  ret { ptr, i8 } %.fca.1.insert
}

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

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

attributes #0 = { 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 #1 = { noreturn 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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { cold nounwind }
attributes #6 = { noreturn 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, !6, i64 16}
!10 = !{!"wb_tree", !6, i64 0, !11, i64 8, !6, i64 16, !11, i64 24}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"wb_node", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !14, i64 40}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!13, !6, i64 16}
!18 = !{!10, !11, i64 8}
!19 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!20 = !{!10, !6, i64 0}
!21 = !{!13, !14, i64 40}
!22 = distinct !{!22, !16}
!23 = !{!10, !11, i64 24}


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