; 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
@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@Dimension = external dso_local global i32, align 4
@Fitness = external dso_local global ptr, align 8
@PopulationSize = external dso_local global i32, align 4
@FirstNode = external dso_local global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@__PRETTY_FUNCTION__.ReplaceIndividualWithTour = external hidden unnamed_addr constant [46 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr 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 @ReplaceIndividualWithTour(i32 noundef %0, i64 noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %8 = load i32, ptr %3, align 4, !tbaa !5
  %9 = icmp sge i32 %8, 0
  br i1 %9, label %10, label %15

10:                                               ; preds = %2
  %11 = load i32, ptr %3, align 4, !tbaa !5
  %12 = load i32, ptr @PopulationSize, align 4, !tbaa !5
  %13 = icmp slt i32 %11, %12
  br i1 %13, label %14, label %15

14:                                               ; preds = %10
  br label %16

15:                                               ; preds = %10, %2
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 180, ptr noundef @__PRETTY_FUNCTION__.ReplaceIndividualWithTour) #4
  unreachable

16:                                               ; preds = %14
  %17 = load i64, ptr %4, align 8, !tbaa !9
  %18 = load ptr, ptr @Fitness, align 8, !tbaa !11
  %19 = load i32, ptr %3, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds i64, ptr %18, i64 %20
  store i64 %17, ptr %21, align 8, !tbaa !9
  %22 = load ptr, ptr @Population, align 8, !tbaa !11
  %23 = load i32, ptr %3, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds ptr, ptr %22, i64 %24
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  store ptr %26, ptr %6, align 8, !tbaa !11
  %27 = load ptr, ptr @FirstNode, align 8, !tbaa !11
  store ptr %27, ptr %7, align 8, !tbaa !11
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %43, %16
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = load i32, ptr @Dimension, align 4, !tbaa !5
  %31 = icmp sle i32 %29, %30
  br i1 %31, label %32, label %46

32:                                               ; preds = %28
  %33 = load ptr, ptr %7, align 8, !tbaa !11
  %34 = getelementptr inbounds %struct.Node, ptr %33, i32 0, i32 0
  %35 = load i32, ptr %34, align 8, !tbaa !13
  %36 = load ptr, ptr %6, align 8, !tbaa !11
  %37 = load i32, ptr %5, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds i32, ptr %36, i64 %38
  store i32 %35, ptr %39, align 4, !tbaa !5
  %40 = load ptr, ptr %7, align 8, !tbaa !11
  %41 = getelementptr inbounds %struct.Node, ptr %40, i32 0, i32 16
  %42 = load ptr, ptr %41, align 8, !tbaa !16
  store ptr %42, ptr %7, align 8, !tbaa !11
  br label %43

43:                                               ; preds = %32
  %44 = load i32, ptr %5, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %5, align 4, !tbaa !5
  br label %28, !llvm.loop !17

46:                                               ; preds = %28
  %47 = load ptr, ptr %6, align 8, !tbaa !11
  %48 = load i32, ptr @Dimension, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds i32, ptr %47, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = load ptr, ptr %6, align 8, !tbaa !11
  %53 = getelementptr inbounds i32, ptr %52, i64 0
  store i32 %51, ptr %53, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %68, %46
  %55 = load i32, ptr %3, align 4, !tbaa !5
  %56 = icmp sge i32 %55, 1
  br i1 %56, label %57, label %66

57:                                               ; preds = %54
  %58 = load i64, ptr %4, align 8, !tbaa !9
  %59 = load ptr, ptr @Fitness, align 8, !tbaa !11
  %60 = load i32, ptr %3, align 4, !tbaa !5
  %61 = sub nsw i32 %60, 1
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds i64, ptr %59, i64 %62
  %64 = load i64, ptr %63, align 8, !tbaa !9
  %65 = icmp slt i64 %58, %64
  br label %66

66:                                               ; preds = %57, %54
  %67 = phi i1 [ false, %54 ], [ %65, %57 ]
  br i1 %67, label %68, label %91

68:                                               ; preds = %66
  %69 = load ptr, ptr @Fitness, align 8, !tbaa !11
  %70 = load i32, ptr %3, align 4, !tbaa !5
  %71 = sub nsw i32 %70, 1
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds i64, ptr %69, i64 %72
  %74 = load i64, ptr %73, align 8, !tbaa !9
  %75 = load ptr, ptr @Fitness, align 8, !tbaa !11
  %76 = load i32, ptr %3, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds i64, ptr %75, i64 %77
  store i64 %74, ptr %78, align 8, !tbaa !9
  %79 = load ptr, ptr @Population, align 8, !tbaa !11
  %80 = load i32, ptr %3, align 4, !tbaa !5
  %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 !11
  %85 = load ptr, ptr @Population, align 8, !tbaa !11
  %86 = load i32, ptr %3, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds ptr, ptr %85, i64 %87
  store ptr %84, ptr %88, align 8, !tbaa !11
  %89 = load i32, ptr %3, align 4, !tbaa !5
  %90 = add nsw i32 %89, -1
  store i32 %90, ptr %3, align 4, !tbaa !5
  br label %54, !llvm.loop !19

91:                                               ; preds = %66
  %92 = load i64, ptr %4, align 8, !tbaa !9
  %93 = load ptr, ptr @Fitness, align 8, !tbaa !11
  %94 = load i32, ptr %3, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds i64, ptr %93, i64 %95
  store i64 %92, ptr %96, align 8, !tbaa !9
  %97 = load ptr, ptr %6, align 8, !tbaa !11
  %98 = load ptr, ptr @Population, align 8, !tbaa !11
  %99 = load i32, ptr %3, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds ptr, ptr %98, i64 %100
  store ptr %97, ptr %101, align 8, !tbaa !11
  br label %102

102:                                              ; preds = %118, %91
  %103 = load i32, ptr %3, align 4, !tbaa !5
  %104 = load i32, ptr @PopulationSize, align 4, !tbaa !5
  %105 = sub nsw i32 %104, 1
  %106 = icmp slt i32 %103, %105
  br i1 %106, label %107, label %116

107:                                              ; preds = %102
  %108 = load i64, ptr %4, align 8, !tbaa !9
  %109 = load ptr, ptr @Fitness, align 8, !tbaa !11
  %110 = load i32, ptr %3, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds i64, ptr %109, i64 %112
  %114 = load i64, ptr %113, align 8, !tbaa !9
  %115 = icmp sgt i64 %108, %114
  br label %116

116:                                              ; preds = %107, %102
  %117 = phi i1 [ false, %102 ], [ %115, %107 ]
  br i1 %117, label %118, label %141

118:                                              ; preds = %116
  %119 = load ptr, ptr @Fitness, align 8, !tbaa !11
  %120 = load i32, ptr %3, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds i64, ptr %119, i64 %122
  %124 = load i64, ptr %123, align 8, !tbaa !9
  %125 = load ptr, ptr @Fitness, align 8, !tbaa !11
  %126 = load i32, ptr %3, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds i64, ptr %125, i64 %127
  store i64 %124, ptr %128, align 8, !tbaa !9
  %129 = load ptr, ptr @Population, align 8, !tbaa !11
  %130 = load i32, ptr %3, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds ptr, ptr %129, i64 %132
  %134 = load ptr, ptr %133, align 8, !tbaa !11
  %135 = load ptr, ptr @Population, align 8, !tbaa !11
  %136 = load i32, ptr %3, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds ptr, ptr %135, i64 %137
  store ptr %134, ptr %138, align 8, !tbaa !11
  %139 = load i32, ptr %3, align 4, !tbaa !5
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %3, align 4, !tbaa !5
  br label %102, !llvm.loop !20

141:                                              ; preds = %116
  %142 = load i64, ptr %4, align 8, !tbaa !9
  %143 = load ptr, ptr @Fitness, align 8, !tbaa !11
  %144 = load i32, ptr %3, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds i64, ptr %143, i64 %145
  store i64 %142, ptr %146, align 8, !tbaa !9
  %147 = load ptr, ptr %6, align 8, !tbaa !11
  %148 = load ptr, ptr @Population, align 8, !tbaa !11
  %149 = load i32, ptr %3, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds ptr, ptr %148, i64 %150
  store ptr %147, ptr %151, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret void
}

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


; 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
@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@Dimension = external dso_local local_unnamed_addr global i32, align 4
@Fitness = external dso_local local_unnamed_addr global ptr, align 8
@PopulationSize = external dso_local local_unnamed_addr global i32, align 4
@FirstNode = external dso_local local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@__PRETTY_FUNCTION__.ReplaceIndividualWithTour = external hidden unnamed_addr constant [46 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local void @ReplaceIndividualWithTour(i32 noundef %0, i64 noundef %1) local_unnamed_addr #1 {
  %3 = icmp sgt i32 %0, -1
  %4 = load i32, ptr @PopulationSize, align 4
  %5 = icmp sgt i32 %4, %0
  %or.cond = select i1 %3, i1 %5, i1 false
  br i1 %or.cond, label %7, label %6

6:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 180, ptr noundef nonnull @__PRETTY_FUNCTION__.ReplaceIndividualWithTour) #2
  unreachable

7:                                                ; preds = %2
  %8 = load ptr, ptr @Fitness, align 8, !tbaa !5
  %9 = zext nneg i32 %0 to i64
  %10 = getelementptr inbounds i64, ptr %8, i64 %9
  store i64 %1, ptr %10, align 8, !tbaa !9
  %11 = load ptr, ptr @Population, align 8, !tbaa !5
  %12 = getelementptr inbounds ptr, ptr %11, i64 %9
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = load i32, ptr @Dimension, align 4, !tbaa !11
  %.not45 = icmp slt i32 %14, 1
  br i1 %.not45, label %.._crit_edge_crit_edge, label %.lr.ph

.._crit_edge_crit_edge:                           ; preds = %7
  %.pre72 = sext i32 %14 to i64
  br label %._crit_edge

.lr.ph:                                           ; preds = %7, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %7 ]
  %.0.in47 = phi ptr [ %17, %.lr.ph ], [ @FirstNode, %7 ]
  %.0 = load ptr, ptr %.0.in47, align 8, !tbaa !5
  %15 = load i32, ptr %.0, align 8, !tbaa !13
  %16 = getelementptr inbounds i32, ptr %13, i64 %indvars.iv
  store i32 %15, ptr %16, align 4, !tbaa !11
  %17 = getelementptr inbounds i8, ptr %.0, i64 72
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %18 = load i32, ptr @Dimension, align 4, !tbaa !11
  %19 = sext i32 %18 to i64
  %.not.not = icmp slt i64 %indvars.iv, %19
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph, %.._crit_edge_crit_edge
  %.pre-phi73 = phi i64 [ %.pre72, %.._crit_edge_crit_edge ], [ %19, %.lr.ph ]
  %20 = getelementptr inbounds i32, ptr %13, i64 %.pre-phi73
  %21 = load i32, ptr %20, align 4, !tbaa !11
  store i32 %21, ptr %13, align 4, !tbaa !11
  %22 = icmp sgt i32 %0, 0
  br i1 %22, label %.lr.ph50, label %.critedge

.lr.ph50:                                         ; preds = %._crit_edge, %27
  %indvars.iv61 = phi i64 [ %indvars.iv.next62, %27 ], [ %9, %._crit_edge ]
  %23 = load ptr, ptr @Fitness, align 8, !tbaa !5
  %indvars.iv.next62 = add nsw i64 %indvars.iv61, -1
  %24 = getelementptr inbounds i64, ptr %23, i64 %indvars.iv.next62
  %25 = load i64, ptr %24, align 8, !tbaa !9
  %26 = icmp sgt i64 %25, %1
  br i1 %26, label %27, label %.critedge.loopexitsplit

27:                                               ; preds = %.lr.ph50
  %28 = getelementptr inbounds i64, ptr %23, i64 %indvars.iv61
  store i64 %25, ptr %28, align 8, !tbaa !9
  %29 = load ptr, ptr @Population, align 8, !tbaa !5
  %30 = getelementptr inbounds ptr, ptr %29, i64 %indvars.iv.next62
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = getelementptr inbounds ptr, ptr %29, i64 %indvars.iv61
  store ptr %31, ptr %32, align 8, !tbaa !5
  %33 = icmp sgt i64 %indvars.iv61, 1
  br i1 %33, label %.lr.ph50, label %..critedge.loopexit_crit_edge, !llvm.loop !18

..critedge.loopexit_crit_edge:                    ; preds = %27
  %.pre.pre = load ptr, ptr @Fitness, align 8, !tbaa !5
  br label %.critedge.loopexit

.critedge.loopexitsplit:                          ; preds = %.lr.ph50
  %34 = trunc nuw nsw i64 %indvars.iv61 to i32
  br label %.critedge.loopexit

.critedge.loopexit:                               ; preds = %.critedge.loopexitsplit, %..critedge.loopexit_crit_edge
  %.pre = phi ptr [ %.pre.pre, %..critedge.loopexit_crit_edge ], [ %23, %.critedge.loopexitsplit ]
  %.038.lcssa.ph = phi i32 [ 0, %..critedge.loopexit_crit_edge ], [ %34, %.critedge.loopexitsplit ]
  %.pre67 = load ptr, ptr @Population, align 8, !tbaa !5
  %.pre69 = zext i32 %.038.lcssa.ph to i64
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %._crit_edge
  %.pre-phi = phi i64 [ %.pre69, %.critedge.loopexit ], [ %9, %._crit_edge ]
  %35 = phi ptr [ %.pre67, %.critedge.loopexit ], [ %11, %._crit_edge ]
  %36 = phi ptr [ %.pre, %.critedge.loopexit ], [ %8, %._crit_edge ]
  %.038.lcssa = phi i32 [ %.038.lcssa.ph, %.critedge.loopexit ], [ %0, %._crit_edge ]
  %37 = getelementptr inbounds i64, ptr %36, i64 %.pre-phi
  store i64 %1, ptr %37, align 8, !tbaa !9
  %38 = getelementptr inbounds ptr, ptr %35, i64 %.pre-phi
  store ptr %13, ptr %38, align 8, !tbaa !5
  %39 = load i32, ptr @PopulationSize, align 4, !tbaa !11
  %40 = add nsw i32 %39, -1
  %41 = icmp slt i32 %.038.lcssa, %40
  br i1 %41, label %.lr.ph55, label %.critedge2

.lr.ph55:                                         ; preds = %.critedge, %46
  %indvars.iv64 = phi i64 [ %indvars.iv.next65, %46 ], [ %.pre-phi, %.critedge ]
  %42 = load ptr, ptr @Fitness, align 8, !tbaa !5
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %43 = getelementptr inbounds i64, ptr %42, i64 %indvars.iv.next65
  %44 = load i64, ptr %43, align 8, !tbaa !9
  %45 = icmp slt i64 %44, %1
  br i1 %45, label %46, label %.critedge2.loopexit.split.loop.exit77

46:                                               ; preds = %.lr.ph55
  %47 = getelementptr inbounds i64, ptr %42, i64 %indvars.iv64
  store i64 %44, ptr %47, align 8, !tbaa !9
  %48 = load ptr, ptr @Population, align 8, !tbaa !5
  %49 = getelementptr inbounds ptr, ptr %48, i64 %indvars.iv.next65
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  %51 = getelementptr inbounds ptr, ptr %48, i64 %indvars.iv64
  store ptr %50, ptr %51, align 8, !tbaa !5
  %52 = trunc nuw i64 %indvars.iv.next65 to i32
  %53 = icmp sgt i32 %40, %52
  br i1 %53, label %.lr.ph55, label %.critedge2.loopexit, !llvm.loop !19

.critedge2.loopexit.split.loop.exit77:            ; preds = %.lr.ph55
  %54 = trunc nuw i64 %indvars.iv64 to i32
  br label %.critedge2.loopexit

.critedge2.loopexit:                              ; preds = %46, %.critedge2.loopexit.split.loop.exit77
  %.1.lcssa.ph = phi i32 [ %54, %.critedge2.loopexit.split.loop.exit77 ], [ %40, %46 ]
  %.pre70 = zext nneg i32 %.1.lcssa.ph to i64
  br label %.critedge2

.critedge2:                                       ; preds = %.critedge2.loopexit, %.critedge
  %.pre-phi71 = phi i64 [ %.pre70, %.critedge2.loopexit ], [ %.pre-phi, %.critedge ]
  %55 = load ptr, ptr @Fitness, align 8, !tbaa !5
  %56 = getelementptr inbounds i64, ptr %55, i64 %.pre-phi71
  store i64 %1, ptr %56, align 8, !tbaa !9
  %57 = load ptr, ptr @Population, align 8, !tbaa !5
  %58 = getelementptr inbounds ptr, ptr %57, i64 %.pre-phi71
  store ptr %13, ptr %58, align 8, !tbaa !5
  ret void
}

attributes #0 = { 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 #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 = { 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 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"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, !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, !15, i64 312, !15, i64 320, !15, i64 328, !15, i64 336, !15, i64 344, !15, i64 352, !7, i64 360, !7, i64 361, !7, i64 362}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}


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