; 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.hashmultimap1 = type { ptr, i64, i64, double, i32, ptr, ptr, ptr }
%struct.hashmultimap1_fkey = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.hashmultimap1_entry = type { %struct.struct_s, %struct.struct_s, ptr, ptr }
%struct.cmc_alloc_node = type { 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 zeroext i1 @hmm1_empty(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @hmm1_remove(ptr noundef %0, ptr noundef byval(%struct.struct_s) align 8 %1, ptr noundef %2) #2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = call zeroext i1 @hmm1_empty(ptr noundef %13)
  br i1 %14, label %15, label %18

15:                                               ; preds = %3
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.hashmultimap1, ptr %16, i32 0, i32 4
  store i32 2, ptr %17, align 8, !tbaa !9
  store i1 false, ptr %4, align 1
  br label %185

18:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.hashmultimap1, ptr %19, i32 0, i32 5
  %21 = load ptr, ptr %20, align 8, !tbaa !14
  %22 = getelementptr inbounds %struct.hashmultimap1_fkey, ptr %21, i32 0, i32 4
  %23 = load ptr, ptr %22, align 8, !tbaa !15
  %24 = call i64 %23(ptr noundef byval(%struct.struct_s) align 8 %1)
  store i64 %24, ptr %7, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.hashmultimap1, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !18
  %28 = load i64, ptr %7, align 8, !tbaa !17
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.hashmultimap1, ptr %29, i32 0, i32 1
  %31 = load i64, ptr %30, align 8, !tbaa !19
  %32 = urem i64 %28, %31
  %33 = getelementptr inbounds [2 x ptr], ptr %27, i64 %32
  %34 = getelementptr inbounds [2 x ptr], ptr %33, i64 0, i64 0
  store ptr %34, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.hashmultimap1, ptr %35, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8, !tbaa !18
  %38 = load i64, ptr %7, align 8, !tbaa !17
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.hashmultimap1, ptr %39, i32 0, i32 1
  %41 = load i64, ptr %40, align 8, !tbaa !19
  %42 = urem i64 %38, %41
  %43 = getelementptr inbounds [2 x ptr], ptr %37, i64 %42
  %44 = getelementptr inbounds [2 x ptr], ptr %43, i64 0, i64 1
  store ptr %44, ptr %9, align 8, !tbaa !5
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = icmp eq ptr %46, null
  br i1 %47, label %48, label %51

48:                                               ; preds = %18
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.hashmultimap1, ptr %49, i32 0, i32 4
  store i32 3, ptr %50, align 8, !tbaa !9
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %184

51:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  store ptr %53, ptr %11, align 8, !tbaa !5
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.hashmultimap1_entry, ptr %54, i32 0, i32 2
  %56 = load ptr, ptr %55, align 8, !tbaa !20
  %57 = icmp eq ptr %56, null
  br i1 %57, label %58, label %87

58:                                               ; preds = %51
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.hashmultimap1_entry, ptr %59, i32 0, i32 3
  %61 = load ptr, ptr %60, align 8, !tbaa !23
  %62 = icmp eq ptr %61, null
  br i1 %62, label %63, label %87

63:                                               ; preds = %58
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.hashmultimap1, ptr %64, i32 0, i32 5
  %66 = load ptr, ptr %65, align 8, !tbaa !14
  %67 = getelementptr inbounds %struct.hashmultimap1_fkey, ptr %66, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8, !tbaa !24
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.hashmultimap1_entry, ptr %69, i32 0, i32 0
  %71 = call i32 %68(ptr noundef byval(%struct.struct_s) align 8 %70, ptr noundef byval(%struct.struct_s) align 8 %1)
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %73, label %83

73:                                               ; preds = %63
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr null, ptr %74, align 8, !tbaa !5
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr null, ptr %75, align 8, !tbaa !5
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %82

78:                                               ; preds = %73
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.hashmultimap1_entry, ptr %80, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %79, ptr align 8 %81, i64 104, i1 false), !tbaa.struct !25
  br label %82

82:                                               ; preds = %78, %73
  br label %86

83:                                               ; preds = %63
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.hashmultimap1, ptr %84, i32 0, i32 4
  store i32 3, ptr %85, align 8, !tbaa !9
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %183

86:                                               ; preds = %82
  br label %170

87:                                               ; preds = %58, %51
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #3
  store i8 0, ptr %12, align 1, !tbaa !28
  br label %88

88:                                               ; preds = %159, %87
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %160

91:                                               ; preds = %88
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.hashmultimap1, ptr %92, i32 0, i32 5
  %94 = load ptr, ptr %93, align 8, !tbaa !14
  %95 = getelementptr inbounds %struct.hashmultimap1_fkey, ptr %94, i32 0, i32 0
  %96 = load ptr, ptr %95, align 8, !tbaa !24
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.hashmultimap1_entry, ptr %97, i32 0, i32 0
  %99 = call i32 %96(ptr noundef byval(%struct.struct_s) align 8 %98, ptr noundef byval(%struct.struct_s) align 8 %1)
  %100 = icmp eq i32 %99, 0
  br i1 %100, label %101, label %155

101:                                              ; preds = %91
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = icmp eq ptr %103, %104
  br i1 %105, label %106, label %111

106:                                              ; preds = %101
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.hashmultimap1_entry, ptr %107, i32 0, i32 2
  %109 = load ptr, ptr %108, align 8, !tbaa !20
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %109, ptr %110, align 8, !tbaa !5
  br label %111

111:                                              ; preds = %106, %101
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = icmp eq ptr %113, %114
  br i1 %115, label %116, label %121

116:                                              ; preds = %111
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.hashmultimap1_entry, ptr %117, i32 0, i32 3
  %119 = load ptr, ptr %118, align 8, !tbaa !23
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %119, ptr %120, align 8, !tbaa !5
  br label %121

121:                                              ; preds = %116, %111
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.hashmultimap1_entry, ptr %122, i32 0, i32 3
  %124 = load ptr, ptr %123, align 8, !tbaa !23
  %125 = icmp ne ptr %124, null
  br i1 %125, label %126, label %134

126:                                              ; preds = %121
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.hashmultimap1_entry, ptr %127, i32 0, i32 2
  %129 = load ptr, ptr %128, align 8, !tbaa !20
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.hashmultimap1_entry, ptr %130, i32 0, i32 3
  %132 = load ptr, ptr %131, align 8, !tbaa !23
  %133 = getelementptr inbounds %struct.hashmultimap1_entry, ptr %132, i32 0, i32 2
  store ptr %129, ptr %133, align 8, !tbaa !20
  br label %134

134:                                              ; preds = %126, %121
  %135 = load ptr, ptr %11, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.hashmultimap1_entry, ptr %135, i32 0, i32 2
  %137 = load ptr, ptr %136, align 8, !tbaa !20
  %138 = icmp ne ptr %137, null
  br i1 %138, label %139, label %147

139:                                              ; preds = %134
  %140 = load ptr, ptr %11, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.hashmultimap1_entry, ptr %140, i32 0, i32 3
  %142 = load ptr, ptr %141, align 8, !tbaa !23
  %143 = load ptr, ptr %11, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.hashmultimap1_entry, ptr %143, i32 0, i32 2
  %145 = load ptr, ptr %144, align 8, !tbaa !20
  %146 = getelementptr inbounds %struct.hashmultimap1_entry, ptr %145, i32 0, i32 3
  store ptr %142, ptr %146, align 8, !tbaa !23
  br label %147

147:                                              ; preds = %139, %134
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = icmp ne ptr %148, null
  br i1 %149, label %150, label %154

150:                                              ; preds = %147
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.hashmultimap1_entry, ptr %152, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %151, ptr align 8 %153, i64 104, i1 false), !tbaa.struct !25
  br label %154

154:                                              ; preds = %150, %147
  store i8 1, ptr %12, align 1, !tbaa !28
  br label %160

155:                                              ; preds = %91
  %156 = load ptr, ptr %11, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.hashmultimap1_entry, ptr %156, i32 0, i32 2
  %158 = load ptr, ptr %157, align 8, !tbaa !20
  store ptr %158, ptr %11, align 8, !tbaa !5
  br label %159

159:                                              ; preds = %155
  br label %88, !llvm.loop !30

160:                                              ; preds = %154, %88
  %161 = load i8, ptr %12, align 1, !tbaa !28, !range !32, !noundef !33
  %162 = trunc i8 %161 to i1
  br i1 %162, label %166, label %163

163:                                              ; preds = %160
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.hashmultimap1, ptr %164, i32 0, i32 4
  store i32 3, ptr %165, align 8, !tbaa !9
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %167

166:                                              ; preds = %160
  store i32 0, ptr %10, align 4
  br label %167

167:                                              ; preds = %166, %163
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #3
  %168 = load i32, ptr %10, align 4
  switch i32 %168, label %183 [
    i32 0, label %169
  ]

169:                                              ; preds = %167
  br label %170

170:                                              ; preds = %169, %86
  %171 = load ptr, ptr %5, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.hashmultimap1, ptr %171, i32 0, i32 7
  %173 = load ptr, ptr %172, align 8, !tbaa !34
  %174 = getelementptr inbounds %struct.cmc_alloc_node, ptr %173, i32 0, i32 3
  %175 = load ptr, ptr %174, align 8, !tbaa !35
  %176 = load ptr, ptr %11, align 8, !tbaa !5
  call void %175(ptr noundef %176)
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.hashmultimap1, ptr %177, i32 0, i32 2
  %179 = load i64, ptr %178, align 8, !tbaa !37
  %180 = add i64 %179, -1
  store i64 %180, ptr %178, align 8, !tbaa !37
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.hashmultimap1, ptr %181, i32 0, i32 4
  store i32 0, ptr %182, align 8, !tbaa !9
  store i1 true, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %183

183:                                              ; preds = %170, %167, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %184

184:                                              ; preds = %183, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  br label %185

185:                                              ; preds = %184, %15
  %186 = load i1, ptr %4, align 1
  ret i1 %186
}

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, !13, i64 32}
!10 = !{!"hashmultimap1", !6, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !13, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!11 = !{!"long", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!10, !6, i64 40}
!15 = !{!16, !6, i64 32}
!16 = !{!"hashmultimap1_fkey", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!17 = !{!11, !11, i64 0}
!18 = !{!10, !6, i64 0}
!19 = !{!10, !11, i64 8}
!20 = !{!21, !6, i64 208}
!21 = !{!"hashmultimap1_entry", !22, i64 0, !22, i64 104, !6, i64 208, !6, i64 216}
!22 = !{!"struct_s", !13, i64 0, !13, i64 4, !6, i64 8, !6, i64 16, !7, i64 24}
!23 = !{!21, !6, i64 216}
!24 = !{!16, !6, i64 0}
!25 = !{i64 0, i64 4, !26, i64 4, i64 4, !26, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 80, !27}
!26 = !{!13, !13, i64 0}
!27 = !{!7, !7, i64 0}
!28 = !{!29, !29, i64 0}
!29 = !{!"_Bool", !7, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!10, !6, i64 56}
!35 = !{!36, !6, i64 24}
!36 = !{!"cmc_alloc_node", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!37 = !{!10, !11, i64 16}


; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @hmm1_empty(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @hmm1_remove(ptr noundef %0, ptr noundef byval(%struct.struct_s) align 8 %1, ptr noundef writeonly %2) local_unnamed_addr #1 {
  %4 = tail call zeroext i1 @hmm1_empty(ptr noundef %0)
  br i1 %4, label %.critedge64, label %5

5:                                                ; preds = %3
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 32
  %9 = load ptr, ptr %8, align 8, !tbaa !13
  %10 = tail call i64 %9(ptr noundef nonnull byval(%struct.struct_s) align 8 %1) #3
  %11 = load ptr, ptr %0, align 8, !tbaa !15
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load i64, ptr %12, align 8, !tbaa !16
  %14 = urem i64 %10, %13
  %15 = getelementptr inbounds [2 x ptr], ptr %11, i64 %14
  %16 = getelementptr inbounds i8, ptr %15, i64 8
  %17 = load ptr, ptr %15, align 8, !tbaa !17
  %18 = icmp eq ptr %17, null
  br i1 %18, label %.critedge64, label %19

19:                                               ; preds = %5
  %20 = getelementptr inbounds i8, ptr %17, i64 208
  %21 = load ptr, ptr %20, align 8, !tbaa !18
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %.preheader

.preheader:                                       ; preds = %23, %19
  br label %33

23:                                               ; preds = %19
  %24 = getelementptr inbounds i8, ptr %17, i64 216
  %25 = load ptr, ptr %24, align 8, !tbaa !21
  %26 = icmp eq ptr %25, null
  br i1 %26, label %27, label %.preheader

27:                                               ; preds = %23
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = load ptr, ptr %28, align 8, !tbaa !22
  %30 = tail call i32 %29(ptr noundef nonnull byval(%struct.struct_s) align 8 %17, ptr noundef nonnull byval(%struct.struct_s) align 8 %1) #3
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %.critedge64

32:                                               ; preds = %27
  %.not = icmp eq ptr %2, null
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %15, i8 0, i64 16, i1 false)
  br i1 %.not, label %.critedge63, label %.critedge63.sink.split

33:                                               ; preds = %.preheader, %55
  %.05066 = phi ptr [ %57, %55 ], [ %17, %.preheader ]
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = load ptr, ptr %34, align 8, !tbaa !22
  %36 = tail call i32 %35(ptr noundef nonnull byval(%struct.struct_s) align 8 %.05066, ptr noundef nonnull byval(%struct.struct_s) align 8 %1) #3
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %38, label %55

38:                                               ; preds = %33
  %39 = load ptr, ptr %15, align 8, !tbaa !17
  %40 = icmp eq ptr %39, %.05066
  br i1 %40, label %41, label %44

41:                                               ; preds = %38
  %42 = getelementptr inbounds i8, ptr %.05066, i64 208
  %43 = load ptr, ptr %42, align 8, !tbaa !18
  store ptr %43, ptr %15, align 8, !tbaa !17
  br label %44

44:                                               ; preds = %41, %38
  %45 = load ptr, ptr %16, align 8, !tbaa !17
  %46 = icmp eq ptr %45, %.05066
  %47 = getelementptr inbounds i8, ptr %.05066, i64 216
  %48 = load ptr, ptr %47, align 8, !tbaa !21
  br i1 %46, label %49, label %._crit_edge

49:                                               ; preds = %44
  store ptr %48, ptr %16, align 8, !tbaa !17
  br label %._crit_edge

._crit_edge:                                      ; preds = %44, %49
  %.not59 = icmp eq ptr %48, null
  %.phi.trans.insert69 = getelementptr inbounds i8, ptr %.05066, i64 208
  %.pre70 = load ptr, ptr %.phi.trans.insert69, align 8, !tbaa !18
  br i1 %.not59, label %._crit_edge68, label %50

50:                                               ; preds = %._crit_edge
  %51 = getelementptr inbounds i8, ptr %48, i64 208
  store ptr %.pre70, ptr %51, align 8, !tbaa !18
  br label %._crit_edge68

._crit_edge68:                                    ; preds = %._crit_edge, %50
  %.not60 = icmp eq ptr %.pre70, null
  br i1 %.not60, label %54, label %52

52:                                               ; preds = %._crit_edge68
  %53 = getelementptr inbounds i8, ptr %.pre70, i64 216
  store ptr %48, ptr %53, align 8, !tbaa !21
  br label %54

54:                                               ; preds = %52, %._crit_edge68
  %.not61 = icmp eq ptr %2, null
  br i1 %.not61, label %.critedge63, label %.critedge63.sink.split

55:                                               ; preds = %33
  %56 = getelementptr inbounds i8, ptr %.05066, i64 208
  %57 = load ptr, ptr %56, align 8, !tbaa !18
  %.not.not.not = icmp eq ptr %57, null
  br i1 %.not.not.not, label %.critedge64, label %33, !llvm.loop !23

.critedge63.sink.split:                           ; preds = %54, %32
  %.05066.lcssa.sink = phi ptr [ %17, %32 ], [ %.05066, %54 ]
  %58 = getelementptr inbounds i8, ptr %.05066.lcssa.sink, i64 104
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %2, ptr noundef nonnull align 8 dereferenceable(104) %58, i64 104, i1 false)
  br label %.critedge63

.critedge63:                                      ; preds = %.critedge63.sink.split, %54, %32
  %.1 = phi ptr [ %17, %32 ], [ %.05066, %54 ], [ %.05066.lcssa.sink, %.critedge63.sink.split ]
  %59 = getelementptr inbounds i8, ptr %0, i64 56
  %60 = load ptr, ptr %59, align 8, !tbaa !25
  %61 = getelementptr inbounds i8, ptr %60, i64 24
  %62 = load ptr, ptr %61, align 8, !tbaa !26
  tail call void %62(ptr noundef nonnull %.1) #3
  %63 = getelementptr inbounds i8, ptr %0, i64 16
  %64 = load i64, ptr %63, align 8, !tbaa !28
  %65 = add i64 %64, -1
  store i64 %65, ptr %63, align 8, !tbaa !28
  br label %.critedge64

.critedge64:                                      ; preds = %55, %27, %5, %3, %.critedge63
  %.sink = phi i32 [ 0, %.critedge63 ], [ 2, %3 ], [ 3, %5 ], [ 3, %27 ], [ 3, %55 ]
  %.3 = phi i1 [ true, %.critedge63 ], [ false, %3 ], [ false, %5 ], [ false, %27 ], [ false, %55 ]
  %66 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %.sink, ptr %66, align 8, !tbaa !29
  ret i1 %.3
}

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

attributes #0 = { mustprogress nocallback nofree 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 40}
!6 = !{!"hashmultimap1", !7, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !12, i64 32, !7, i64 40, !7, i64 48, !7, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !7, i64 32}
!14 = !{!"hashmultimap1_fkey", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!15 = !{!6, !7, i64 0}
!16 = !{!6, !10, i64 8}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !7, i64 208}
!19 = !{!"hashmultimap1_entry", !20, i64 0, !20, i64 104, !7, i64 208, !7, i64 216}
!20 = !{!"struct_s", !12, i64 0, !12, i64 4, !7, i64 8, !7, i64 16, !8, i64 24}
!21 = !{!19, !7, i64 216}
!22 = !{!14, !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!6, !7, i64 56}
!26 = !{!27, !7, i64 24}
!27 = !{!"cmc_alloc_node", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!28 = !{!6, !10, i64 16}
!29 = !{!6, !12, i64 32}


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