; LLVM IR from alexzheng42/sDMD :: src (Initialization)

; 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.AAStr = type { [5 x i8], i32, i32, i32, i32, double }
%struct.AtomStr = type { ptr, ptr }
%struct.PropertyStr = type { [8 x i8], [2 x [16 x i8]], [8 x i8], i32, i32, i32, double, double, [3 x double], %struct.AtomSeqStr, ptr, ptr }
%struct.AtomSeqStr = type { i32, i32, i32 }
%struct.ConstraintStr = type { i32, double, ptr, double, ptr }

@atom = external global ptr, align 8
@aminoacid = external global ptr, align 8
@connectionMap = external global ptr, align 8

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @ConstrDuplicate(i32 noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %10 = load ptr, ptr @aminoacid, align 8, !tbaa !9
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds %struct.AAStr, ptr %10, i64 %12
  %14 = getelementptr inbounds %struct.AAStr, ptr %13, i32 0, i32 2
  %15 = load i32, ptr %14, align 4, !tbaa !11
  store i32 %15, ptr %5, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %184, %1
  %17 = load i32, ptr %5, align 4, !tbaa !5
  %18 = load ptr, ptr @aminoacid, align 8, !tbaa !9
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds %struct.AAStr, ptr %18, i64 %20
  %22 = getelementptr inbounds %struct.AAStr, ptr %21, i32 0, i32 3
  %23 = load i32, ptr %22, align 8, !tbaa !14
  %24 = icmp sle i32 %17, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %16
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %187

26:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %27 = load ptr, ptr @atom, align 8, !tbaa !9
  %28 = load i32, ptr %5, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds %struct.AtomStr, ptr %27, i64 %29
  %31 = getelementptr inbounds %struct.AtomStr, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !15
  %33 = getelementptr inbounds %struct.PropertyStr, ptr %32, i32 0, i32 9
  %34 = getelementptr inbounds %struct.AtomSeqStr, ptr %33, i32 0, i32 2
  %35 = load i32, ptr %34, align 8, !tbaa !17
  %36 = icmp eq i32 %35, 1
  br i1 %36, label %37, label %44

37:                                               ; preds = %26
  %38 = load ptr, ptr @aminoacid, align 8, !tbaa !9
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds %struct.AAStr, ptr %38, i64 %40
  %42 = getelementptr inbounds %struct.AAStr, ptr %41, i32 0, i32 2
  %43 = load i32, ptr %42, align 4, !tbaa !11
  br label %52

44:                                               ; preds = %26
  %45 = load ptr, ptr @aminoacid, align 8, !tbaa !9
  %46 = load i32, ptr %2, align 4, !tbaa !5
  %47 = sub nsw i32 %46, 1
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds %struct.AAStr, ptr %45, i64 %48
  %50 = getelementptr inbounds %struct.AAStr, ptr %49, i32 0, i32 2
  %51 = load i32, ptr %50, align 4, !tbaa !11
  br label %52

52:                                               ; preds = %44, %37
  %53 = phi i32 [ %43, %37 ], [ %51, %44 ]
  store i32 %53, ptr %7, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %180, %52
  %55 = load i32, ptr %7, align 4, !tbaa !5
  %56 = load ptr, ptr @aminoacid, align 8, !tbaa !9
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds %struct.AAStr, ptr %56, i64 %58
  %60 = getelementptr inbounds %struct.AAStr, ptr %59, i32 0, i32 3
  %61 = load i32, ptr %60, align 8, !tbaa !14
  %62 = icmp sle i32 %55, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %54
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %183

64:                                               ; preds = %54
  %65 = load ptr, ptr @atom, align 8, !tbaa !9
  %66 = load i32, ptr %7, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds %struct.AtomStr, ptr %65, i64 %67
  %69 = getelementptr inbounds %struct.AtomStr, ptr %68, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8, !tbaa !15
  %71 = getelementptr inbounds %struct.PropertyStr, ptr %70, i32 0, i32 11
  %72 = load ptr, ptr %71, align 8, !tbaa !20
  store ptr %72, ptr %4, align 8, !tbaa !9
  br label %73

73:                                               ; preds = %175, %173, %64
  %74 = load ptr, ptr %4, align 8, !tbaa !9
  %75 = icmp ne ptr %74, null
  br i1 %75, label %76, label %179

76:                                               ; preds = %73
  %77 = load ptr, ptr %4, align 8, !tbaa !9
  %78 = getelementptr inbounds %struct.ConstraintStr, ptr %77, i32 0, i32 0
  %79 = load i32, ptr %78, align 8, !tbaa !21
  %80 = load i32, ptr %5, align 4, !tbaa !5
  %81 = icmp eq i32 %79, %80
  br i1 %81, label %82, label %175

82:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %83 = load ptr, ptr @atom, align 8, !tbaa !9
  %84 = load i32, ptr %5, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds %struct.AtomStr, ptr %83, i64 %85
  %87 = getelementptr inbounds %struct.AtomStr, ptr %86, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8, !tbaa !15
  %89 = getelementptr inbounds %struct.PropertyStr, ptr %88, i32 0, i32 11
  %90 = load ptr, ptr %89, align 8, !tbaa !20
  store ptr %90, ptr %8, align 8, !tbaa !9
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %101, %82
  %92 = load ptr, ptr %8, align 8, !tbaa !9
  %93 = icmp ne ptr %92, null
  br i1 %93, label %94, label %105

94:                                               ; preds = %91
  %95 = load ptr, ptr %8, align 8, !tbaa !9
  %96 = getelementptr inbounds %struct.ConstraintStr, ptr %95, i32 0, i32 0
  %97 = load i32, ptr %96, align 8, !tbaa !21
  %98 = load i32, ptr %7, align 4, !tbaa !5
  %99 = icmp eq i32 %97, %98
  br i1 %99, label %100, label %101

100:                                              ; preds = %94
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %105

101:                                              ; preds = %94
  %102 = load ptr, ptr %8, align 8, !tbaa !9
  %103 = getelementptr inbounds %struct.ConstraintStr, ptr %102, i32 0, i32 4
  %104 = load ptr, ptr %103, align 8, !tbaa !23
  store ptr %104, ptr %8, align 8, !tbaa !9
  br label %91, !llvm.loop !24

105:                                              ; preds = %100, %91
  %106 = load i32, ptr %3, align 4, !tbaa !5
  %107 = icmp eq i32 %106, 1
  br i1 %107, label %108, label %112

108:                                              ; preds = %105
  %109 = load ptr, ptr %4, align 8, !tbaa !9
  %110 = getelementptr inbounds %struct.ConstraintStr, ptr %109, i32 0, i32 4
  %111 = load ptr, ptr %110, align 8, !tbaa !23
  store ptr %111, ptr %4, align 8, !tbaa !9
  store i32 8, ptr %6, align 4
  br label %173, !llvm.loop !26

112:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %113 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 40) #4
  store ptr %113, ptr %9, align 8, !tbaa !9
  %114 = load i32, ptr %7, align 4, !tbaa !5
  %115 = load ptr, ptr %9, align 8, !tbaa !9
  %116 = getelementptr inbounds %struct.ConstraintStr, ptr %115, i32 0, i32 0
  store i32 %114, ptr %116, align 8, !tbaa !21
  %117 = load ptr, ptr %4, align 8, !tbaa !9
  %118 = getelementptr inbounds %struct.ConstraintStr, ptr %117, i32 0, i32 3
  %119 = load double, ptr %118, align 8, !tbaa !27
  %120 = load ptr, ptr %9, align 8, !tbaa !9
  %121 = getelementptr inbounds %struct.ConstraintStr, ptr %120, i32 0, i32 3
  store double %119, ptr %121, align 8, !tbaa !27
  %122 = load ptr, ptr %4, align 8, !tbaa !9
  %123 = getelementptr inbounds %struct.ConstraintStr, ptr %122, i32 0, i32 1
  %124 = load double, ptr %123, align 8, !tbaa !28
  %125 = load ptr, ptr %9, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct.ConstraintStr, ptr %125, i32 0, i32 1
  store double %124, ptr %126, align 8, !tbaa !28
  %127 = load ptr, ptr %4, align 8, !tbaa !9
  %128 = getelementptr inbounds %struct.ConstraintStr, ptr %127, i32 0, i32 2
  %129 = load ptr, ptr %128, align 8, !tbaa !29
  %130 = load ptr, ptr %9, align 8, !tbaa !9
  %131 = getelementptr inbounds %struct.ConstraintStr, ptr %130, i32 0, i32 2
  store ptr %129, ptr %131, align 8, !tbaa !29
  %132 = load ptr, ptr @atom, align 8, !tbaa !9
  %133 = load i32, ptr %5, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds %struct.AtomStr, ptr %132, i64 %134
  %136 = getelementptr inbounds %struct.AtomStr, ptr %135, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !15
  %138 = getelementptr inbounds %struct.PropertyStr, ptr %137, i32 0, i32 11
  %139 = load ptr, ptr %138, align 8, !tbaa !20
  %140 = icmp eq ptr %139, null
  br i1 %140, label %141, label %142

141:                                              ; preds = %112
  br label %151

142:                                              ; preds = %112
  %143 = load ptr, ptr @atom, align 8, !tbaa !9
  %144 = load i32, ptr %5, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds %struct.AtomStr, ptr %143, i64 %145
  %147 = getelementptr inbounds %struct.AtomStr, ptr %146, i32 0, i32 0
  %148 = load ptr, ptr %147, align 8, !tbaa !15
  %149 = getelementptr inbounds %struct.PropertyStr, ptr %148, i32 0, i32 11
  %150 = load ptr, ptr %149, align 8, !tbaa !20
  br label %151

151:                                              ; preds = %142, %141
  %152 = phi ptr [ null, %141 ], [ %150, %142 ]
  %153 = load ptr, ptr %9, align 8, !tbaa !9
  %154 = getelementptr inbounds %struct.ConstraintStr, ptr %153, i32 0, i32 4
  store ptr %152, ptr %154, align 8, !tbaa !23
  %155 = load ptr, ptr %9, align 8, !tbaa !9
  %156 = load ptr, ptr @atom, align 8, !tbaa !9
  %157 = load i32, ptr %5, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds %struct.AtomStr, ptr %156, i64 %158
  %160 = getelementptr inbounds %struct.AtomStr, ptr %159, i32 0, i32 0
  %161 = load ptr, ptr %160, align 8, !tbaa !15
  %162 = getelementptr inbounds %struct.PropertyStr, ptr %161, i32 0, i32 11
  store ptr %155, ptr %162, align 8, !tbaa !20
  %163 = load ptr, ptr @connectionMap, align 8, !tbaa !9
  %164 = load i32, ptr %5, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds ptr, ptr %163, i64 %165
  %167 = load ptr, ptr %166, align 8, !tbaa !9
  %168 = load i32, ptr %7, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds i32, ptr %167, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = or i32 %171, 2
  store i32 %172, ptr %170, align 4, !tbaa !5
  store i32 9, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %173

173:                                              ; preds = %151, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %174 = load i32, ptr %6, align 4
  switch i32 %174, label %188 [
    i32 8, label %73
    i32 9, label %179
  ]

175:                                              ; preds = %76
  %176 = load ptr, ptr %4, align 8, !tbaa !9
  %177 = getelementptr inbounds %struct.ConstraintStr, ptr %176, i32 0, i32 4
  %178 = load ptr, ptr %177, align 8, !tbaa !23
  store ptr %178, ptr %4, align 8, !tbaa !9
  br label %73, !llvm.loop !26

179:                                              ; preds = %173, %73
  br label %180

180:                                              ; preds = %179
  %181 = load i32, ptr %7, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %7, align 4, !tbaa !5
  br label %54, !llvm.loop !30

183:                                              ; preds = %63
  br label %184

184:                                              ; preds = %183
  %185 = load i32, ptr %5, align 4, !tbaa !5
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %5, align 4, !tbaa !5
  br label %16, !llvm.loop !31

187:                                              ; preds = %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  ret void

188:                                              ; preds = %173
  unreachable
}

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 12}
!12 = !{!"AAStr", !7, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !13, i64 24}
!13 = !{!"double", !7, i64 0}
!14 = !{!12, !6, i64 16}
!15 = !{!16, !10, i64 0}
!16 = !{!"AtomStr", !10, i64 0, !10, i64 8}
!17 = !{!18, !6, i64 112}
!18 = !{!"PropertyStr", !7, i64 0, !7, i64 8, !7, i64 40, !6, i64 48, !6, i64 52, !6, i64 56, !13, i64 64, !13, i64 72, !7, i64 80, !19, i64 104, !10, i64 120, !10, i64 128}
!19 = !{!"AtomSeqStr", !6, i64 0, !6, i64 4, !6, i64 8}
!20 = !{!18, !10, i64 128}
!21 = !{!22, !6, i64 0}
!22 = !{!"ConstraintStr", !6, i64 0, !13, i64 8, !10, i64 16, !13, i64 24, !10, i64 32}
!23 = !{!22, !10, i64 32}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = !{!22, !13, i64 24}
!28 = !{!22, !13, i64 8}
!29 = !{!22, !10, i64 16}
!30 = distinct !{!30, !25}
!31 = distinct !{!31, !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.AAStr = type { [5 x i8], i32, i32, i32, i32, double }
%struct.AtomStr = type { ptr, ptr }

@atom = external local_unnamed_addr global ptr, align 8
@aminoacid = external local_unnamed_addr global ptr, align 8
@connectionMap = external local_unnamed_addr global ptr, align 8

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind uwtable
define dso_local void @ConstrDuplicate(i32 noundef %0) local_unnamed_addr #1 {
  %2 = load ptr, ptr @aminoacid, align 8, !tbaa !5
  %3 = sext i32 %0 to i64
  %4 = getelementptr inbounds %struct.AAStr, ptr %2, i64 %3, i32 2
  %5 = load i32, ptr %4, align 4, !tbaa !9
  %6 = getelementptr inbounds %struct.AAStr, ptr %2, i64 %3
  %7 = getelementptr inbounds i8, ptr %6, i64 16
  %8 = load i32, ptr %7, align 8, !tbaa !13
  %.not66 = icmp sgt i32 %5, %8
  br i1 %.not66, label %._crit_edge70, label %.lr.ph69

.lr.ph69:                                         ; preds = %1
  %9 = load ptr, ptr @atom, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.AAStr, ptr %2, i64 %3, i32 3
  %11 = sext i32 %5 to i64
  br label %12

._crit_edge70:                                    ; preds = %._crit_edge, %1
  ret void

12:                                               ; preds = %.lr.ph69, %._crit_edge
  %13 = phi i32 [ %8, %.lr.ph69 ], [ %25, %._crit_edge ]
  %indvars.iv76 = phi i64 [ %11, %.lr.ph69 ], [ %indvars.iv.next77, %._crit_edge ]
  %14 = getelementptr inbounds %struct.AtomStr, ptr %9, i64 %indvars.iv76
  %15 = load ptr, ptr %14, align 8, !tbaa !14
  %16 = getelementptr inbounds i8, ptr %15, i64 112
  %17 = load i32, ptr %16, align 8, !tbaa !16
  %18 = icmp eq i32 %17, 1
  %.in.v = select i1 %18, i64 12, i64 -20
  %.in = getelementptr i8, ptr %6, i64 %.in.v
  %19 = load i32, ptr %.in, align 4, !tbaa !9
  %.not4362 = icmp sgt i32 %19, %13
  br i1 %.not4362, label %._crit_edge, label %.lr.ph65

.lr.ph65:                                         ; preds = %12
  %20 = getelementptr inbounds i8, ptr %15, i64 128
  %21 = load ptr, ptr @connectionMap, align 8
  %22 = getelementptr inbounds ptr, ptr %21, i64 %indvars.iv76
  %23 = sext i32 %19 to i64
  %24 = trunc nsw i64 %indvars.iv76 to i32
  br label %27

._crit_edge:                                      ; preds = %.loopexit, %12
  %25 = phi i32 [ %13, %12 ], [ %56, %.loopexit ]
  %indvars.iv.next77 = add nsw i64 %indvars.iv76, 1
  %26 = sext i32 %25 to i64
  %.not.not = icmp slt i64 %indvars.iv76, %26
  br i1 %.not.not, label %12, label %._crit_edge70, !llvm.loop !19

27:                                               ; preds = %.lr.ph65, %.loopexit
  %28 = phi i32 [ %13, %.lr.ph65 ], [ %56, %.loopexit ]
  %29 = phi i32 [ %13, %.lr.ph65 ], [ %57, %.loopexit ]
  %indvars.iv = phi i64 [ %23, %.lr.ph65 ], [ %indvars.iv.next, %.loopexit ]
  %30 = getelementptr inbounds %struct.AtomStr, ptr %9, i64 %indvars.iv
  %31 = load ptr, ptr %30, align 8, !tbaa !14
  %32 = getelementptr inbounds i8, ptr %31, i64 128
  %.04158 = load ptr, ptr %32, align 8, !tbaa !5
  %.not4459 = icmp eq ptr %.04158, null
  br i1 %.not4459, label %.loopexit, label %.lr.ph61.preheader

.lr.ph61.preheader:                               ; preds = %27
  %33 = trunc nsw i64 %indvars.iv to i32
  br label %.lr.ph61

.lr.ph61:                                         ; preds = %.lr.ph61.preheader, %.backedge
  %.04160 = phi ptr [ %.041, %.backedge ], [ %.04158, %.lr.ph61.preheader ]
  %34 = load i32, ptr %.04160, align 8, !tbaa !21
  %35 = icmp eq i32 %34, %24
  br i1 %35, label %36, label %.backedge

36:                                               ; preds = %.lr.ph61
  %.03751 = load ptr, ptr %20, align 8, !tbaa !5
  %.not45.not52 = icmp eq ptr %.03751, null
  br i1 %.not45.not52, label %.thread.loopexit71, label %.lr.ph

37:                                               ; preds = %.lr.ph
  %38 = getelementptr inbounds i8, ptr %.03753, i64 32
  %.037 = load ptr, ptr %38, align 8, !tbaa !5
  %.not45.not = icmp eq ptr %.037, null
  br i1 %.not45.not, label %.thread, label %.lr.ph, !llvm.loop !23

.lr.ph:                                           ; preds = %36, %37
  %.03753 = phi ptr [ %.037, %37 ], [ %.03751, %36 ]
  %39 = load i32, ptr %.03753, align 8, !tbaa !21
  %40 = icmp eq i32 %39, %33
  br i1 %40, label %.backedge, label %37

.thread.loopexit71:                               ; preds = %36
  %.pre79 = trunc nsw i64 %indvars.iv to i32
  br label %.thread

.thread:                                          ; preds = %37, %.thread.loopexit71
  %.pre-phi = phi i32 [ %.pre79, %.thread.loopexit71 ], [ %33, %37 ]
  %41 = tail call noalias dereferenceable_or_null(40) ptr @calloc(i64 noundef 1, i64 noundef 40) #2
  store i32 %.pre-phi, ptr %41, align 8, !tbaa !21
  %42 = getelementptr inbounds i8, ptr %.04160, i64 24
  %43 = load double, ptr %42, align 8, !tbaa !24
  %44 = getelementptr inbounds i8, ptr %41, i64 24
  store double %43, ptr %44, align 8, !tbaa !24
  %45 = getelementptr inbounds i8, ptr %.04160, i64 8
  %46 = load double, ptr %45, align 8, !tbaa !25
  %47 = getelementptr inbounds i8, ptr %41, i64 8
  store double %46, ptr %47, align 8, !tbaa !25
  %48 = getelementptr inbounds i8, ptr %.04160, i64 16
  %49 = load ptr, ptr %48, align 8, !tbaa !26
  %50 = getelementptr inbounds i8, ptr %41, i64 16
  store ptr %49, ptr %50, align 8, !tbaa !26
  %51 = getelementptr inbounds i8, ptr %41, i64 32
  store ptr %.03751, ptr %51, align 8, !tbaa !27
  store ptr %41, ptr %20, align 8, !tbaa !28
  %52 = load ptr, ptr %22, align 8, !tbaa !5
  %53 = getelementptr inbounds i32, ptr %52, i64 %indvars.iv
  %54 = load i32, ptr %53, align 4, !tbaa !29
  %55 = or i32 %54, 2
  store i32 %55, ptr %53, align 4, !tbaa !29
  %.pre = load i32, ptr %10, align 8, !tbaa !13
  br label %.loopexit

.backedge:                                        ; preds = %.lr.ph, %.lr.ph61
  %.041.in.be = getelementptr inbounds i8, ptr %.04160, i64 32
  %.041 = load ptr, ptr %.041.in.be, align 8, !tbaa !5
  %.not44 = icmp eq ptr %.041, null
  br i1 %.not44, label %.loopexit, label %.lr.ph61, !llvm.loop !30

.loopexit:                                        ; preds = %.backedge, %27, %.thread
  %56 = phi i32 [ %28, %27 ], [ %.pre, %.thread ], [ %28, %.backedge ]
  %57 = phi i32 [ %29, %27 ], [ %.pre, %.thread ], [ %29, %.backedge ]
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %58 = sext i32 %57 to i64
  %.not43.not = icmp slt i64 %indvars.iv, %58
  br i1 %.not43.not, label %27, label %._crit_edge, !llvm.loop !31
}

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) 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 #1 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind allocsize(0,1) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 12}
!10 = !{!"AAStr", !7, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !12, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!10, !11, i64 16}
!14 = !{!15, !6, i64 0}
!15 = !{!"AtomStr", !6, i64 0, !6, i64 8}
!16 = !{!17, !11, i64 112}
!17 = !{!"PropertyStr", !7, i64 0, !7, i64 8, !7, i64 40, !11, i64 48, !11, i64 52, !11, i64 56, !12, i64 64, !12, i64 72, !7, i64 80, !18, i64 104, !6, i64 120, !6, i64 128}
!18 = !{!"AtomSeqStr", !11, i64 0, !11, i64 4, !11, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !11, i64 0}
!22 = !{!"ConstraintStr", !11, i64 0, !12, i64 8, !6, i64 16, !12, i64 24, !6, i64 32}
!23 = distinct !{!23, !20}
!24 = !{!22, !12, i64 24}
!25 = !{!22, !12, i64 8}
!26 = !{!22, !6, i64 16}
!27 = !{!22, !6, i64 32}
!28 = !{!17, !6, i64 128}
!29 = !{!11, !11, i64 0}
!30 = distinct !{!30, !20}
!31 = distinct !{!31, !20}


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