; LLVM IR from fcimeson/cbTSP :: cbLKH/SRC (Genetic)

; 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.Node = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, double, double, double, double, double, i8, i8, i8 }

@Population = external dso_local global ptr, align 8
@MaxPopulationSize = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [64 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@__PRETTY_FUNCTION__.AddToPopulation = external hidden unnamed_addr constant [31 x i8], align 1
@Dimension = external dso_local global i32, align 4
@.str.2 = external hidden unnamed_addr constant [62 x i8], align 1
@Fitness = external dso_local global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [68 x i8], align 1
@PopulationSize = external dso_local global i32, align 4
@FirstNode = external dso_local global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local void @AddToPopulation(i64 noundef %0) #0 {
  %2 = alloca i64, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  store i64 %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %6 = load ptr, ptr @Population, align 8, !tbaa !9
  %7 = icmp ne ptr %6, null
  br i1 %7, label %47, label %8

8:                                                ; preds = %1
  %9 = load i32, ptr @MaxPopulationSize, align 4, !tbaa !11
  %10 = sext i32 %9 to i64
  %11 = mul i64 %10, 8
  %12 = call noalias ptr @malloc(i64 noundef %11) #5
  store ptr %12, ptr @Population, align 8, !tbaa !9
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %15

14:                                               ; preds = %8
  br label %16

15:                                               ; preds = %8
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 17, ptr noundef @__PRETTY_FUNCTION__.AddToPopulation) #6
  unreachable

16:                                               ; preds = %14
  store i32 0, ptr %3, align 4, !tbaa !11
  br label %17

17:                                               ; preds = %35, %16
  %18 = load i32, ptr %3, align 4, !tbaa !11
  %19 = load i32, ptr @MaxPopulationSize, align 4, !tbaa !11
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %21, label %38

21:                                               ; preds = %17
  %22 = load i32, ptr @Dimension, align 4, !tbaa !11
  %23 = add nsw i32 1, %22
  %24 = sext i32 %23 to i64
  %25 = mul i64 %24, 4
  %26 = call noalias ptr @malloc(i64 noundef %25) #5
  %27 = load ptr, ptr @Population, align 8, !tbaa !9
  %28 = load i32, ptr %3, align 4, !tbaa !11
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds ptr, ptr %27, i64 %29
  store ptr %26, ptr %30, align 8, !tbaa !9
  %31 = icmp ne ptr %26, null
  br i1 %31, label %32, label %33

32:                                               ; preds = %21
  br label %34

33:                                               ; preds = %21
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 20, ptr noundef @__PRETTY_FUNCTION__.AddToPopulation) #6
  unreachable

34:                                               ; preds = %32
  br label %35

35:                                               ; preds = %34
  %36 = load i32, ptr %3, align 4, !tbaa !11
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %3, align 4, !tbaa !11
  br label %17, !llvm.loop !13

38:                                               ; preds = %17
  %39 = load i32, ptr @MaxPopulationSize, align 4, !tbaa !11
  %40 = sext i32 %39 to i64
  %41 = mul i64 %40, 8
  %42 = call noalias ptr @malloc(i64 noundef %41) #5
  store ptr %42, ptr @Fitness, align 8, !tbaa !9
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %45

44:                                               ; preds = %38
  br label %46

45:                                               ; preds = %38
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 22, ptr noundef @__PRETTY_FUNCTION__.AddToPopulation) #6
  unreachable

46:                                               ; preds = %44
  br label %47

47:                                               ; preds = %46, %1
  %48 = load i32, ptr @PopulationSize, align 4, !tbaa !11
  store i32 %48, ptr %3, align 4, !tbaa !11
  br label %49

49:                                               ; preds = %95, %47
  %50 = load i32, ptr %3, align 4, !tbaa !11
  %51 = icmp sge i32 %50, 1
  br i1 %51, label %52, label %61

52:                                               ; preds = %49
  %53 = load i64, ptr %2, align 8, !tbaa !5
  %54 = load ptr, ptr @Fitness, align 8, !tbaa !9
  %55 = load i32, ptr %3, align 4, !tbaa !11
  %56 = sub nsw i32 %55, 1
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds i64, ptr %54, i64 %57
  %59 = load i64, ptr %58, align 8, !tbaa !5
  %60 = icmp slt i64 %53, %59
  br label %61

61:                                               ; preds = %52, %49
  %62 = phi i1 [ false, %49 ], [ %60, %52 ]
  br i1 %62, label %63, label %98

63:                                               ; preds = %61
  %64 = load ptr, ptr @Fitness, align 8, !tbaa !9
  %65 = load i32, ptr %3, align 4, !tbaa !11
  %66 = sub nsw i32 %65, 1
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds i64, ptr %64, i64 %67
  %69 = load i64, ptr %68, align 8, !tbaa !5
  %70 = load ptr, ptr @Fitness, align 8, !tbaa !9
  %71 = load i32, ptr %3, align 4, !tbaa !11
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds i64, ptr %70, i64 %72
  store i64 %69, ptr %73, align 8, !tbaa !5
  %74 = load ptr, ptr @Population, align 8, !tbaa !9
  %75 = load i32, ptr %3, align 4, !tbaa !11
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds ptr, ptr %74, i64 %76
  %78 = load ptr, ptr %77, align 8, !tbaa !9
  store ptr %78, ptr %4, align 8, !tbaa !9
  %79 = load ptr, ptr @Population, align 8, !tbaa !9
  %80 = load i32, ptr %3, align 4, !tbaa !11
  %81 = sub nsw i32 %80, 1
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds ptr, ptr %79, i64 %82
  %84 = load ptr, ptr %83, align 8, !tbaa !9
  %85 = load ptr, ptr @Population, align 8, !tbaa !9
  %86 = load i32, ptr %3, align 4, !tbaa !11
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds ptr, ptr %85, i64 %87
  store ptr %84, ptr %88, align 8, !tbaa !9
  %89 = load ptr, ptr %4, align 8, !tbaa !9
  %90 = load ptr, ptr @Population, align 8, !tbaa !9
  %91 = load i32, ptr %3, align 4, !tbaa !11
  %92 = sub nsw i32 %91, 1
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds ptr, ptr %90, i64 %93
  store ptr %89, ptr %94, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %63
  %96 = load i32, ptr %3, align 4, !tbaa !11
  %97 = add nsw i32 %96, -1
  store i32 %97, ptr %3, align 4, !tbaa !11
  br label %49, !llvm.loop !15

98:                                               ; preds = %61
  %99 = load i64, ptr %2, align 8, !tbaa !5
  %100 = load ptr, ptr @Fitness, align 8, !tbaa !9
  %101 = load i32, ptr %3, align 4, !tbaa !11
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds i64, ptr %100, i64 %102
  store i64 %99, ptr %103, align 8, !tbaa !5
  %104 = load ptr, ptr @Population, align 8, !tbaa !9
  %105 = load i32, ptr %3, align 4, !tbaa !11
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds ptr, ptr %104, i64 %106
  %108 = load ptr, ptr %107, align 8, !tbaa !9
  store ptr %108, ptr %4, align 8, !tbaa !9
  %109 = load ptr, ptr @FirstNode, align 8, !tbaa !9
  store ptr %109, ptr %5, align 8, !tbaa !9
  store i32 1, ptr %3, align 4, !tbaa !11
  br label %110

110:                                              ; preds = %119, %98
  %111 = load ptr, ptr %5, align 8, !tbaa !9
  %112 = getelementptr inbounds %struct.Node, ptr %111, i32 0, i32 0
  %113 = load i32, ptr %112, align 8, !tbaa !16
  %114 = load ptr, ptr %4, align 8, !tbaa !9
  %115 = load i32, ptr %3, align 4, !tbaa !11
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %3, align 4, !tbaa !11
  %117 = sext i32 %115 to i64
  %118 = getelementptr inbounds i32, ptr %114, i64 %117
  store i32 %113, ptr %118, align 4, !tbaa !11
  br label %119

119:                                              ; preds = %110
  %120 = load ptr, ptr %5, align 8, !tbaa !9
  %121 = getelementptr inbounds %struct.Node, ptr %120, i32 0, i32 16
  %122 = load ptr, ptr %121, align 8, !tbaa !19
  store ptr %122, ptr %5, align 8, !tbaa !9
  %123 = load ptr, ptr @FirstNode, align 8, !tbaa !9
  %124 = icmp ne ptr %122, %123
  br i1 %124, label %110, label %125, !llvm.loop !20

125:                                              ; preds = %119
  %126 = load ptr, ptr %4, align 8, !tbaa !9
  %127 = load i32, ptr @Dimension, align 4, !tbaa !11
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds i32, ptr %126, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !11
  %131 = load ptr, ptr %4, align 8, !tbaa !9
  %132 = getelementptr inbounds i32, ptr %131, i64 0
  store i32 %130, ptr %132, align 4, !tbaa !11
  %133 = load i32, ptr @PopulationSize, align 4, !tbaa !11
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr @PopulationSize, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret void
}

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nounwind }
attributes #5 = { nounwind allocsize(0) }
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 = !{!"long long", !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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !12, i64 0}
!17 = !{!"Node", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !18, i64 312, !18, i64 320, !18, i64 328, !18, i64 336, !18, i64 344, !18, i64 352, !7, i64 360, !7, i64 361, !7, i64 362}
!18 = !{!"double", !7, i64 0}
!19 = !{!17, !10, i64 72}
!20 = distinct !{!20, !14}


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

@Population = external dso_local local_unnamed_addr global ptr, align 8
@MaxPopulationSize = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [64 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@__PRETTY_FUNCTION__.AddToPopulation = external hidden unnamed_addr constant [31 x i8], align 1
@Dimension = external dso_local local_unnamed_addr global i32, align 4
@.str.2 = external hidden unnamed_addr constant [62 x i8], align 1
@Fitness = external dso_local local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [68 x i8], align 1
@PopulationSize = external dso_local local_unnamed_addr global i32, align 4
@FirstNode = external dso_local local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local void @AddToPopulation(i64 noundef %0) local_unnamed_addr #0 {
  %2 = load ptr, ptr @Population, align 8, !tbaa !5
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %3, label %22

3:                                                ; preds = %1
  %4 = load i32, ptr @MaxPopulationSize, align 4, !tbaa !9
  %5 = sext i32 %4 to i64
  %6 = shl nsw i64 %5, 3
  %7 = tail call noalias ptr @malloc(i64 noundef %6) #3
  store ptr %7, ptr @Population, align 8, !tbaa !5
  %.not25 = icmp eq ptr %7, null
  br i1 %.not25, label %13, label %.preheader

.preheader:                                       ; preds = %3
  %8 = icmp sgt i32 %4, 0
  br i1 %8, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %9 = load i32, ptr @Dimension, align 4, !tbaa !9
  %10 = add nsw i32 %9, 1
  %11 = sext i32 %10 to i64
  %12 = shl nsw i64 %11, 2
  %wide.trip.count = zext nneg i32 %4 to i64
  br label %15

13:                                               ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 17, ptr noundef nonnull @__PRETTY_FUNCTION__.AddToPopulation) #4
  unreachable

14:                                               ; preds = %15
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %15, !llvm.loop !11

15:                                               ; preds = %.lr.ph, %14
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %14 ]
  %16 = tail call noalias ptr @malloc(i64 noundef %12) #3
  %17 = load ptr, ptr @Population, align 8, !tbaa !5
  %18 = getelementptr inbounds ptr, ptr %17, i64 %indvars.iv
  store ptr %16, ptr %18, align 8, !tbaa !5
  %.not27 = icmp eq ptr %16, null
  br i1 %.not27, label %19, label %14

19:                                               ; preds = %15
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 20, ptr noundef nonnull @__PRETTY_FUNCTION__.AddToPopulation) #4
  unreachable

._crit_edge:                                      ; preds = %14, %.preheader
  %20 = tail call noalias ptr @malloc(i64 noundef %6) #3
  store ptr %20, ptr @Fitness, align 8, !tbaa !5
  %.not26 = icmp eq ptr %20, null
  br i1 %.not26, label %21, label %22

21:                                               ; preds = %._crit_edge
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 22, ptr noundef nonnull @__PRETTY_FUNCTION__.AddToPopulation) #4
  unreachable

22:                                               ; preds = %._crit_edge, %1
  %23 = load i32, ptr @PopulationSize, align 4, !tbaa !9
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %.lr.ph32.preheader, label %.critedge

.lr.ph32.preheader:                               ; preds = %22
  %25 = zext nneg i32 %23 to i64
  br label %.lr.ph32

.lr.ph32:                                         ; preds = %.lr.ph32.preheader, %30
  %indvars.iv36 = phi i64 [ %25, %.lr.ph32.preheader ], [ %indvars.iv.next37, %30 ]
  %26 = load ptr, ptr @Fitness, align 8, !tbaa !5
  %indvars.iv.next37 = add nsw i64 %indvars.iv36, -1
  %27 = getelementptr inbounds i64, ptr %26, i64 %indvars.iv.next37
  %28 = load i64, ptr %27, align 8, !tbaa !13
  %29 = icmp sgt i64 %28, %0
  br i1 %29, label %30, label %.critedge.loopexit.split.loop.exit42

30:                                               ; preds = %.lr.ph32
  %31 = getelementptr inbounds i64, ptr %26, i64 %indvars.iv36
  store i64 %28, ptr %31, align 8, !tbaa !13
  %32 = load ptr, ptr @Population, align 8, !tbaa !5
  %33 = getelementptr inbounds ptr, ptr %32, i64 %indvars.iv36
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = getelementptr inbounds ptr, ptr %32, i64 %indvars.iv.next37
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  store ptr %36, ptr %33, align 8, !tbaa !5
  %37 = load ptr, ptr @Population, align 8, !tbaa !5
  %38 = getelementptr inbounds ptr, ptr %37, i64 %indvars.iv.next37
  store ptr %34, ptr %38, align 8, !tbaa !5
  %39 = icmp ugt i64 %indvars.iv36, 1
  br i1 %39, label %.lr.ph32, label %.critedge, !llvm.loop !15

.critedge.loopexit.split.loop.exit42:             ; preds = %.lr.ph32
  %40 = trunc nuw nsw i64 %indvars.iv36 to i32
  br label %.critedge

.critedge:                                        ; preds = %30, %.critedge.loopexit.split.loop.exit42, %22
  %.1.lcssa = phi i32 [ %23, %22 ], [ %40, %.critedge.loopexit.split.loop.exit42 ], [ 0, %30 ]
  %41 = load ptr, ptr @Fitness, align 8, !tbaa !5
  %42 = sext i32 %.1.lcssa to i64
  %43 = getelementptr inbounds i64, ptr %41, i64 %42
  store i64 %0, ptr %43, align 8, !tbaa !13
  %44 = load ptr, ptr @Population, align 8, !tbaa !5
  %45 = getelementptr inbounds ptr, ptr %44, i64 %42
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = load ptr, ptr @FirstNode, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %48, %.critedge
  %indvars.iv39 = phi i64 [ %indvars.iv.next40, %48 ], [ 1, %.critedge ]
  %.0 = phi ptr [ %52, %48 ], [ %47, %.critedge ]
  %49 = load i32, ptr %.0, align 8, !tbaa !16
  %indvars.iv.next40 = add nuw nsw i64 %indvars.iv39, 1
  %50 = getelementptr inbounds i32, ptr %46, i64 %indvars.iv39
  store i32 %49, ptr %50, align 4, !tbaa !9
  %51 = getelementptr inbounds i8, ptr %.0, i64 72
  %52 = load ptr, ptr %51, align 8, !tbaa !19
  %.not28 = icmp eq ptr %52, %47
  br i1 %.not28, label %53, label %48, !llvm.loop !20

53:                                               ; preds = %48
  %54 = load i32, ptr @Dimension, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds i32, ptr %46, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !9
  store i32 %57, ptr %46, align 4, !tbaa !9
  %58 = load i32, ptr @PopulationSize, align 4, !tbaa !9
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr @PopulationSize, align 4, !tbaa !9
  ret void
}

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { nounwind allocsize(0) }
attributes #4 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long long", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = !{!17, !10, i64 0}
!17 = !{!"Node", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !18, i64 312, !18, i64 320, !18, i64 328, !18, i64 336, !18, i64 344, !18, i64 352, !7, i64 360, !7, i64 361, !7, i64 362}
!18 = !{!"double", !7, i64 0}
!19 = !{!17, !6, i64 72}
!20 = distinct !{!20, !12}


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