; LLVM IR from LeoVen/C-Macro-Collections :: tests (types)

; 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.struct_s = type { i32, i32, ptr, ptr, [10 x double] }
%struct.treemap1 = type { ptr, i64, i32, ptr, ptr, ptr }
%struct.treemap1_node = type { %struct.struct_s, %struct.struct_s, i8, ptr, ptr, ptr }
%struct.treemap1_fkey = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.treemap1_fval = type { ptr, ptr, ptr, ptr, ptr, ptr }

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @tm1_new_custom(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @tm1_insert(ptr noundef, ptr noundef byval(%struct.struct_s) align 8, ptr noundef byval(%struct.struct_s) align 8) #2

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

24:                                               ; preds = %1
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.treemap1, ptr %25, i32 0, i32 2
  store i32 7, ptr %26, align 8, !tbaa !15
  store ptr null, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %140

27:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.treemap1, ptr %28, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !16
  store ptr %30, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #3
  store i8 0, ptr %7, align 1, !tbaa !17
  br label %31

31:                                               ; preds = %135, %27
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %136

34:                                               ; preds = %31
  %35 = load i8, ptr %7, align 1, !tbaa !17, !range !19, !noundef !20
  %36 = trunc i8 %35 to i1
  br i1 %36, label %48, label %37

37:                                               ; preds = %34
  br label %38

38:                                               ; preds = %43, %37
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.treemap1_node, ptr %39, i32 0, i32 4
  %41 = load ptr, ptr %40, align 8, !tbaa !21
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %47

43:                                               ; preds = %38
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.treemap1_node, ptr %44, i32 0, i32 4
  %46 = load ptr, ptr %45, align 8, !tbaa !21
  store ptr %46, ptr %6, align 8, !tbaa !5
  br label %38, !llvm.loop !24

47:                                               ; preds = %38
  br label %48

48:                                               ; preds = %47, %34
  call void @llvm.lifetime.start.p0(i64 104, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 104, ptr %9) #3
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.treemap1, ptr %49, i32 0, i32 3
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %52 = getelementptr inbounds %struct.treemap1_fkey, ptr %51, i32 0, i32 1
  %53 = load ptr, ptr %52, align 8, !tbaa !26
  %54 = icmp ne ptr %53, null
  br i1 %54, label %55, label %63

55:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 104, ptr %10) #3
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.treemap1, ptr %56, i32 0, i32 3
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  %59 = getelementptr inbounds %struct.treemap1_fkey, ptr %58, i32 0, i32 1
  %60 = load ptr, ptr %59, align 8, !tbaa !26
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.treemap1_node, ptr %61, i32 0, i32 0
  call void %60(ptr dead_on_unwind writable sret(%struct.struct_s) align 8 %10, ptr noundef byval(%struct.struct_s) align 8 %62)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %10, i64 104, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 104, ptr %10) #3
  br label %66

63:                                               ; preds = %48
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.treemap1_node, ptr %64, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %65, i64 104, i1 false), !tbaa.struct !28
  br label %66

66:                                               ; preds = %63, %55
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.treemap1, ptr %67, i32 0, i32 4
  %69 = load ptr, ptr %68, align 8, !tbaa !13
  %70 = getelementptr inbounds %struct.treemap1_fval, ptr %69, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !31
  %72 = icmp ne ptr %71, null
  br i1 %72, label %73, label %81

73:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 104, ptr %11) #3
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.treemap1, ptr %74, i32 0, i32 4
  %76 = load ptr, ptr %75, align 8, !tbaa !13
  %77 = getelementptr inbounds %struct.treemap1_fval, ptr %76, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8, !tbaa !31
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.treemap1_node, ptr %79, i32 0, i32 1
  call void %78(ptr dead_on_unwind writable sret(%struct.struct_s) align 8 %11, ptr noundef byval(%struct.struct_s) align 8 %80)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %11, i64 104, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 104, ptr %11) #3
  br label %84

81:                                               ; preds = %66
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.treemap1_node, ptr %82, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %83, i64 104, i1 false), !tbaa.struct !28
  br label %84

84:                                               ; preds = %81, %73
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = call zeroext i1 @tm1_insert(ptr noundef %85, ptr noundef byval(%struct.struct_s) align 8 %8, ptr noundef byval(%struct.struct_s) align 8 %9)
  store i8 1, ptr %7, align 1, !tbaa !17
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.treemap1_node, ptr %87, i32 0, i32 3
  %89 = load ptr, ptr %88, align 8, !tbaa !33
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %95

91:                                               ; preds = %84
  store i8 0, ptr %7, align 1, !tbaa !17
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.treemap1_node, ptr %92, i32 0, i32 3
  %94 = load ptr, ptr %93, align 8, !tbaa !33
  store ptr %94, ptr %6, align 8, !tbaa !5
  br label %132

95:                                               ; preds = %84
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.treemap1_node, ptr %96, i32 0, i32 5
  %98 = load ptr, ptr %97, align 8, !tbaa !34
  %99 = icmp ne ptr %98, null
  br i1 %99, label %100, label %130

100:                                              ; preds = %95
  br label %101

101:                                              ; preds = %116, %100
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.treemap1_node, ptr %102, i32 0, i32 5
  %104 = load ptr, ptr %103, align 8, !tbaa !34
  %105 = icmp ne ptr %104, null
  br i1 %105, label %106, label %114

106:                                              ; preds = %101
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.treemap1_node, ptr %108, i32 0, i32 5
  %110 = load ptr, ptr %109, align 8, !tbaa !34
  %111 = getelementptr inbounds %struct.treemap1_node, ptr %110, i32 0, i32 3
  %112 = load ptr, ptr %111, align 8, !tbaa !33
  %113 = icmp eq ptr %107, %112
  br label %114

114:                                              ; preds = %106, %101
  %115 = phi i1 [ false, %101 ], [ %113, %106 ]
  br i1 %115, label %116, label %120

116:                                              ; preds = %114
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.treemap1_node, ptr %117, i32 0, i32 5
  %119 = load ptr, ptr %118, align 8, !tbaa !34
  store ptr %119, ptr %6, align 8, !tbaa !5
  br label %101, !llvm.loop !35

120:                                              ; preds = %114
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.treemap1_node, ptr %121, i32 0, i32 5
  %123 = load ptr, ptr %122, align 8, !tbaa !34
  %124 = icmp ne ptr %123, null
  br i1 %124, label %126, label %125

125:                                              ; preds = %120
  store i32 3, ptr %5, align 4
  br label %133

126:                                              ; preds = %120
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.treemap1_node, ptr %127, i32 0, i32 5
  %129 = load ptr, ptr %128, align 8, !tbaa !34
  store ptr %129, ptr %6, align 8, !tbaa !5
  br label %131

130:                                              ; preds = %95
  store i32 3, ptr %5, align 4
  br label %133

131:                                              ; preds = %126
  br label %132

132:                                              ; preds = %131, %91
  store i32 0, ptr %5, align 4
  br label %133

133:                                              ; preds = %132, %130, %125
  call void @llvm.lifetime.end.p0(i64 104, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 104, ptr %8) #3
  %134 = load i32, ptr %5, align 4
  switch i32 %134, label %142 [
    i32 0, label %135
    i32 3, label %136
  ]

135:                                              ; preds = %133
  br label %31, !llvm.loop !36

136:                                              ; preds = %133, %31
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.treemap1, ptr %137, i32 0, i32 2
  store i32 0, ptr %138, align 8, !tbaa !15
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %139, ptr %2, align 8
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %140

140:                                              ; preds = %136, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %141 = load ptr, ptr %2, align 8
  ret ptr %141

142:                                              ; preds = %133
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 24}
!10 = !{!"treemap1", !6, i64 0, !11, i64 8, !12, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !6, i64 32}
!14 = !{!10, !6, i64 40}
!15 = !{!10, !12, i64 16}
!16 = !{!10, !6, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"_Bool", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!22, !6, i64 224}
!22 = !{!"treemap1_node", !23, i64 0, !23, i64 104, !7, i64 208, !6, i64 216, !6, i64 224, !6, i64 232}
!23 = !{!"struct_s", !12, i64 0, !12, i64 4, !6, i64 8, !6, i64 16, !7, i64 24}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!27, !6, i64 8}
!27 = !{!"treemap1_fkey", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!28 = !{i64 0, i64 4, !29, i64 4, i64 4, !29, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 80, !30}
!29 = !{!12, !12, i64 0}
!30 = !{!7, !7, i64 0}
!31 = !{!32, !6, i64 8}
!32 = !{!"treemap1_fval", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!33 = !{!22, !6, i64 216}
!34 = !{!22, !6, i64 232}
!35 = distinct !{!35, !25}
!36 = distinct !{!36, !25}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.struct_s = type { i32, i32, ptr, ptr, [10 x double] }

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @tm1_new_custom(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @tm1_insert(ptr noundef, ptr noundef byval(%struct.struct_s) align 8, ptr noundef byval(%struct.struct_s) align 8) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local ptr @tm1_copy_of(ptr nocapture noundef %0) local_unnamed_addr #2 {
  %2 = alloca %struct.struct_s, align 8
  %3 = alloca %struct.struct_s, align 8
  %4 = alloca %struct.struct_s, align 8
  %5 = alloca %struct.struct_s, align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 32
  %9 = load ptr, ptr %8, align 8, !tbaa !12
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  %12 = tail call ptr @tm1_new_custom(ptr noundef %7, ptr noundef %9, ptr noundef %11, ptr noundef null)
  %.not = icmp eq ptr %12, null
  br i1 %.not, label %.loopexit54, label %13

13:                                               ; preds = %1
  %14 = load ptr, ptr %0, align 8, !tbaa !14
  %.not4157 = icmp eq ptr %14, null
  br i1 %.not4157, label %.loopexit54, label %.lr.ph

.lr.ph:                                           ; preds = %13, %.critedge
  %.059 = phi i1 [ %34, %.critedge ], [ false, %13 ]
  %.03158 = phi ptr [ %.5, %.critedge ], [ %14, %13 ]
  br i1 %.059, label %.loopexit, label %.preheader53

.preheader53:                                     ; preds = %.lr.ph, %.preheader53
  %.132 = phi ptr [ %16, %.preheader53 ], [ %.03158, %.lr.ph ]
  %15 = getelementptr inbounds i8, ptr %.132, i64 224
  %16 = load ptr, ptr %15, align 8, !tbaa !15
  %.not42 = icmp eq ptr %16, null
  br i1 %.not42, label %.loopexit, label %.preheader53, !llvm.loop !18

.loopexit:                                        ; preds = %.preheader53, %.lr.ph
  %.233 = phi ptr [ %.03158, %.lr.ph ], [ %.132, %.preheader53 ]
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %3) #3
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 8
  %19 = load ptr, ptr %18, align 8, !tbaa !20
  %.not43 = icmp eq ptr %19, null
  br i1 %.not43, label %21, label %20

20:                                               ; preds = %.loopexit
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %4) #3
  call void %19(ptr dead_on_unwind nonnull writable sret(%struct.struct_s) align 8 %4, ptr noundef nonnull byval(%struct.struct_s) align 8 %.233) #3
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %2, ptr noundef nonnull align 8 dereferenceable(104) %4, i64 104, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %4) #3
  br label %22

21:                                               ; preds = %.loopexit
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %2, ptr noundef nonnull align 8 dereferenceable(104) %.233, i64 104, i1 false), !tbaa.struct !22
  br label %22

22:                                               ; preds = %21, %20
  %23 = load ptr, ptr %8, align 8, !tbaa !12
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  %25 = load ptr, ptr %24, align 8, !tbaa !26
  %.not44 = icmp eq ptr %25, null
  br i1 %.not44, label %28, label %26

26:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %5) #3
  %27 = getelementptr inbounds i8, ptr %.233, i64 104
  call void %25(ptr dead_on_unwind nonnull writable sret(%struct.struct_s) align 8 %5, ptr noundef nonnull byval(%struct.struct_s) align 8 %27) #3
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %3, ptr noundef nonnull align 8 dereferenceable(104) %5, i64 104, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %5) #3
  br label %30

28:                                               ; preds = %22
  %29 = getelementptr inbounds i8, ptr %.233, i64 104
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %3, ptr noundef nonnull align 8 dereferenceable(104) %29, i64 104, i1 false), !tbaa.struct !22
  br label %30

30:                                               ; preds = %28, %26
  %31 = call zeroext i1 @tm1_insert(ptr noundef nonnull %12, ptr noundef nonnull byval(%struct.struct_s) align 8 %2, ptr noundef nonnull byval(%struct.struct_s) align 8 %3)
  %32 = getelementptr inbounds i8, ptr %.233, i64 216
  %33 = load ptr, ptr %32, align 8, !tbaa !28
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %.critedge

35:                                               ; preds = %30
  %36 = getelementptr inbounds i8, ptr %.233, i64 232
  %37 = load ptr, ptr %36, align 8, !tbaa !29
  %.not45 = icmp eq ptr %37, null
  br i1 %.not45, label %.critedge.thread48, label %.preheader

.preheader:                                       ; preds = %35, %40
  %.3 = phi ptr [ %39, %40 ], [ %.233, %35 ]
  %38 = getelementptr inbounds i8, ptr %.3, i64 232
  %39 = load ptr, ptr %38, align 8, !tbaa !29
  %.not46 = icmp eq ptr %39, null
  br i1 %.not46, label %.critedge.thread48, label %40

40:                                               ; preds = %.preheader
  %41 = getelementptr inbounds i8, ptr %39, i64 216
  %42 = load ptr, ptr %41, align 8, !tbaa !28
  %43 = icmp eq ptr %.3, %42
  br i1 %43, label %.preheader, label %.critedge, !llvm.loop !30

.critedge.thread48:                               ; preds = %35, %.preheader
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %2) #3
  br label %.loopexit54

.critedge:                                        ; preds = %40, %30
  %.5 = phi ptr [ %33, %30 ], [ %39, %40 ]
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %2) #3
  br label %.lr.ph

.loopexit54:                                      ; preds = %.critedge.thread48, %13, %1
  %.sink = phi i32 [ 7, %1 ], [ 0, %13 ], [ 0, %.critedge.thread48 ]
  %44 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %.sink, ptr %44, align 8, !tbaa !31
  ret ptr %12
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !7, i64 24}
!6 = !{!"treemap1", !7, i64 0, !10, i64 8, !11, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !7, i64 32}
!13 = !{!6, !7, i64 40}
!14 = !{!6, !7, i64 0}
!15 = !{!16, !7, i64 224}
!16 = !{!"treemap1_node", !17, i64 0, !17, i64 104, !8, i64 208, !7, i64 216, !7, i64 224, !7, i64 232}
!17 = !{!"struct_s", !11, i64 0, !11, i64 4, !7, i64 8, !7, i64 16, !8, i64 24}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !7, i64 8}
!21 = !{!"treemap1_fkey", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!22 = !{i64 0, i64 4, !23, i64 4, i64 4, !23, i64 8, i64 8, !24, i64 16, i64 8, !24, i64 24, i64 80, !25}
!23 = !{!11, !11, i64 0}
!24 = !{!7, !7, i64 0}
!25 = !{!8, !8, i64 0}
!26 = !{!27, !7, i64 8}
!27 = !{!"treemap1_fval", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!28 = !{!16, !7, i64 216}
!29 = !{!16, !7, i64 232}
!30 = distinct !{!30, !19}
!31 = !{!6, !11, i64 16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass