; LLVM IR from alenic/realGA :: src/realga.ll (ZN6RealGA21popInitGaussianMutateERSt6vectorIfSaIfEEff)

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

%class.RealChromosome = type <{ %"class.std::vector", float, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.GaussianMutation = type { %class.Mutation }
%class.Mutation = type { ptr, float, float }
%class.RealGA = type { ptr, %"class.std::vector", %"class.std::vector", %"class.std::vector.0", %"class.std::vector.0", %class.RealGAOptions, ptr, %"class.std::vector", float, i32, ptr, ptr, ptr, i32, float }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<RealChromosome, std::allocator<RealChromosome>>::_Vector_impl" }
%"struct.std::_Vector_base<RealChromosome, std::allocator<RealChromosome>>::_Vector_impl" = type { %"struct.std::_Vector_base<RealChromosome, std::allocator<RealChromosome>>::_Vector_impl_data" }
%"struct.std::_Vector_base<RealChromosome, std::allocator<RealChromosome>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.RealGAOptions = type { i64, i64, %"class.std::vector", %"class.std::vector", i32, i32, float, i8, i32, i32, float, i32, i32, i32, float, float, float, float }

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN14RealChromosomeC1Ei(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN14RealChromosomeD1Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

declare void @_ZN16GaussianMutationC1Eff(ptr noundef nonnull align 8 dereferenceable(16), float noundef, float noundef) unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6RealGA11evalFitnessERK14RealChromosome(ptr noundef nonnull align 8 dereferenceable(296), ptr noundef nonnull align 8 dereferenceable(28)) #4 align 2

declare noundef nonnull align 8 dereferenceable(28) ptr @_ZN14RealChromosomeaSERKS_(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(28)) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6RealGA21popInitGaussianMutateERSt6vectorIfSaIfEEff(ptr noundef nonnull align 8 dereferenceable(296) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, float noundef %2, float noundef %3) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca %class.RealChromosome, align 8
  %10 = alloca %class.GaussianMutation, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store float %2, ptr %7, align 4, !tbaa !9
  store float %3, ptr %8, align 4, !tbaa !9
  %15 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #5
  %16 = getelementptr inbounds %class.RealGA, ptr %15, i32 0, i32 5
  %17 = getelementptr inbounds %class.RealGAOptions, ptr %16, i32 0, i32 1
  %18 = load i64, ptr %17, align 8, !tbaa !11
  %19 = trunc i64 %18 to i32
  call void @_ZN14RealChromosomeC1Ei(ptr noundef nonnull align 8 dereferenceable(28) %9, i32 noundef %19)
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %20 = load float, ptr %7, align 4, !tbaa !9
  %21 = load float, ptr %8, align 4, !tbaa !9
  invoke void @_ZN16GaussianMutationC1Eff(ptr noundef nonnull align 8 dereferenceable(16) %10, float noundef %20, float noundef %21)
          to label %22 unwind label %31

22:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !29
  br label %23

23:                                               ; preds = %45, %22
  %24 = load i32, ptr %13, align 4, !tbaa !29
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds %class.RealGA, ptr %15, i32 0, i32 5
  %27 = getelementptr inbounds %class.RealGAOptions, ptr %26, i32 0, i32 1
  %28 = load i64, ptr %27, align 8, !tbaa !11
  %29 = icmp ult i64 %25, %28
  br i1 %29, label %35, label %30

30:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %48

31:                                               ; preds = %4
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %11, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %12, align 4
  br label %106

35:                                               ; preds = %23
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = load i32, ptr %13, align 4, !tbaa !29
  %38 = sext i32 %37 to i64
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %38) #5
  %40 = load float, ptr %39, align 4, !tbaa !9
  %41 = getelementptr inbounds %class.RealChromosome, ptr %9, i32 0, i32 0
  %42 = load i32, ptr %13, align 4, !tbaa !29
  %43 = sext i32 %42 to i64
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %43) #5
  store float %40, ptr %44, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %35
  %46 = load i32, ptr %13, align 4, !tbaa !29
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %13, align 4, !tbaa !29
  br label %23, !llvm.loop !30

48:                                               ; preds = %30
  %49 = getelementptr inbounds %class.RealGA, ptr %15, i32 0, i32 3
  %50 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef 0) #5
  %51 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZN14RealChromosomeaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %50, ptr noundef nonnull align 8 dereferenceable(28) %9)
          to label %52 unwind label %68

52:                                               ; preds = %48
  %53 = getelementptr inbounds %class.RealGA, ptr %15, i32 0, i32 3
  %54 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef 0) #5
  %55 = invoke noundef float @_ZN6RealGA11evalFitnessERK14RealChromosome(ptr noundef nonnull align 8 dereferenceable(296) %15, ptr noundef nonnull align 8 dereferenceable(28) %54)
          to label %56 unwind label %68

56:                                               ; preds = %52
  %57 = getelementptr inbounds %class.RealGA, ptr %15, i32 0, i32 3
  %58 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef 0) #5
  %59 = getelementptr inbounds %class.RealChromosome, ptr %58, i32 0, i32 1
  store float %55, ptr %59, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 1, ptr %14, align 4, !tbaa !29
  br label %60

60:                                               ; preds = %97, %56
  %61 = load i32, ptr %14, align 4, !tbaa !29
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds %class.RealGA, ptr %15, i32 0, i32 5
  %64 = getelementptr inbounds %class.RealGAOptions, ptr %63, i32 0, i32 0
  %65 = load i64, ptr %64, align 8, !tbaa !34
  %66 = icmp ult i64 %62, %65
  br i1 %66, label %72, label %67

67:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %104

68:                                               ; preds = %52, %48
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %11, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %12, align 4
  br label %105

72:                                               ; preds = %60
  %73 = getelementptr inbounds %class.RealGA, ptr %15, i32 0, i32 3
  %74 = load i32, ptr %14, align 4, !tbaa !29
  %75 = sext i32 %74 to i64
  %76 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %75) #5
  %77 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZN14RealChromosomeaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %76, ptr noundef nonnull align 8 dereferenceable(28) %9)
          to label %78 unwind label %100

78:                                               ; preds = %72
  %79 = getelementptr inbounds %class.RealGA, ptr %15, i32 0, i32 3
  %80 = load i32, ptr %14, align 4, !tbaa !29
  %81 = sext i32 %80 to i64
  %82 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %81) #5
  %83 = getelementptr inbounds %class.RealGA, ptr %15, i32 0, i32 1
  %84 = getelementptr inbounds %class.RealGA, ptr %15, i32 0, i32 2
  invoke void @_ZN16GaussianMutation6mutateER14RealChromosomeRSt6vectorIfSaIfEES5_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(28) %82, ptr noundef nonnull align 8 dereferenceable(24) %83, ptr noundef nonnull align 8 dereferenceable(24) %84)
          to label %85 unwind label %100

85:                                               ; preds = %78
  %86 = getelementptr inbounds %class.RealGA, ptr %15, i32 0, i32 3
  %87 = load i32, ptr %14, align 4, !tbaa !29
  %88 = sext i32 %87 to i64
  %89 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %88) #5
  %90 = invoke noundef float @_ZN6RealGA11evalFitnessERK14RealChromosome(ptr noundef nonnull align 8 dereferenceable(296) %15, ptr noundef nonnull align 8 dereferenceable(28) %89)
          to label %91 unwind label %100

91:                                               ; preds = %85
  %92 = getelementptr inbounds %class.RealGA, ptr %15, i32 0, i32 3
  %93 = load i32, ptr %14, align 4, !tbaa !29
  %94 = sext i32 %93 to i64
  %95 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef %94) #5
  %96 = getelementptr inbounds %class.RealChromosome, ptr %95, i32 0, i32 1
  store float %90, ptr %96, align 8, !tbaa !32
  br label %97

97:                                               ; preds = %91
  %98 = load i32, ptr %14, align 4, !tbaa !29
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %14, align 4, !tbaa !29
  br label %60, !llvm.loop !35

100:                                              ; preds = %85, %78, %72
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %11, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %105

104:                                              ; preds = %67
  call void @_ZN16GaussianMutationD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @_ZN14RealChromosomeD1Ev(ptr noundef nonnull align 8 dereferenceable(28) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #5
  ret void

105:                                              ; preds = %100, %68
  call void @_ZN16GaussianMutationD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  br label %106

106:                                              ; preds = %105, %31
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @_ZN14RealChromosomeD1Ev(ptr noundef nonnull align 8 dereferenceable(28) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #5
  br label %107

107:                                              ; preds = %106
  %108 = load ptr, ptr %11, align 8
  %109 = load i32, ptr %12, align 4
  %110 = insertvalue { ptr, i32 } poison, ptr %108, 0
  %111 = insertvalue { ptr, i32 } %110, i32 %109, 1
  resume { ptr, i32 } %111
}

declare void @_ZN16GaussianMutation6mutateER14RealChromosomeRSt6vectorIfSaIfEES5_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN16GaussianMutationD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 "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 = { mustprogress 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 #4 = { mustprogress 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 #5 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !22, i64 112}
!12 = !{!"_ZTS6RealGA", !13, i64 8, !13, i64 32, !17, i64 56, !17, i64 80, !21, i64 104, !6, i64 224, !13, i64 232, !10, i64 256, !23, i64 260, !6, i64 264, !6, i64 272, !6, i64 280, !23, i64 288, !10, i64 292}
!13 = !{!"_ZTSSt6vectorIfSaIfEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt6vectorI14RealChromosomeSaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseI14RealChromosomeSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseI14RealChromosomeSaIS0_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI14RealChromosomeSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTS13RealGAOptions", !22, i64 0, !22, i64 8, !13, i64 16, !13, i64 40, !23, i64 64, !24, i64 68, !10, i64 72, !25, i64 76, !26, i64 80, !23, i64 84, !10, i64 88, !27, i64 92, !23, i64 96, !28, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116}
!22 = !{!"long", !7, i64 0}
!23 = !{!"int", !7, i64 0}
!24 = !{!"_ZTS11VerboseType", !7, i64 0}
!25 = !{!"bool", !7, i64 0}
!26 = !{!"_ZTS13SelectionType", !7, i64 0}
!27 = !{!"_ZTS13CrossoverType", !7, i64 0}
!28 = !{!"_ZTS12MutationType", !7, i64 0}
!29 = !{!23, !23, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!33, !10, i64 24}
!33 = !{!"_ZTS14RealChromosome", !13, i64 0, !10, i64 24}
!34 = !{!12, !22, i64 104}
!35 = distinct !{!35, !31}


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

%class.RealChromosome = type <{ %"class.std::vector", float, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.GaussianMutation = type { %class.Mutation }
%class.Mutation = type { ptr, float, float }

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN14RealChromosomeC1Ei(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN14RealChromosomeD1Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

declare void @_ZN16GaussianMutationC1Eff(ptr noundef nonnull align 8 dereferenceable(16), float noundef, float noundef) unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6RealGA11evalFitnessERK14RealChromosome(ptr noundef nonnull align 8 dereferenceable(296), ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #4 align 2

declare noundef nonnull align 8 dereferenceable(28) ptr @_ZN14RealChromosomeaSERKS_(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6RealGA21popInitGaussianMutateERSt6vectorIfSaIfEEff(ptr noundef nonnull align 8 dereferenceable(296) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, float noundef %2, float noundef %3) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %class.RealChromosome, align 8
  %6 = alloca %class.GaussianMutation, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  %7 = getelementptr inbounds i8, ptr %0, i64 104
  %8 = getelementptr inbounds i8, ptr %0, i64 112
  %9 = load i64, ptr %8, align 8, !tbaa !5
  %10 = trunc i64 %9 to i32
  call void @_ZN14RealChromosomeC1Ei(ptr noundef nonnull align 8 dereferenceable(28) %5, i32 noundef %10)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  invoke void @_ZN16GaussianMutationC1Eff(ptr noundef nonnull align 8 dereferenceable(16) %6, float noundef %2, float noundef %3)
          to label %.preheader unwind label %15

.preheader:                                       ; preds = %4
  %11 = load i64, ptr %8, align 8, !tbaa !5
  %.not = icmp eq i64 %11, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  %12 = getelementptr inbounds i8, ptr %0, i64 56
  %13 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef 0) #5
  %14 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZN14RealChromosomeaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %13, ptr noundef nonnull align 8 dereferenceable(28) %5)
          to label %22 unwind label %32

15:                                               ; preds = %4
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %50

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader ]
  %17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #5
  %18 = load float, ptr %17, align 4, !tbaa !27
  %19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv) #5
  store float %18, ptr %19, align 4, !tbaa !27
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %20 = load i64, ptr %8, align 8, !tbaa !5
  %21 = icmp ugt i64 %20, %indvars.iv.next
  br i1 %21, label %.lr.ph, label %._crit_edge, !llvm.loop !28

22:                                               ; preds = %._crit_edge
  %23 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef 0) #5
  %24 = invoke noundef float @_ZN6RealGA11evalFitnessERK14RealChromosome(ptr noundef nonnull align 8 dereferenceable(296) %0, ptr noundef nonnull align 8 dereferenceable(28) %23)
          to label %25 unwind label %32

25:                                               ; preds = %22
  %26 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef 0) #5
  %27 = getelementptr inbounds i8, ptr %26, i64 24
  store float %24, ptr %27, align 8, !tbaa !30
  %28 = load i64, ptr %7, align 8, !tbaa !32
  %29 = icmp ugt i64 %28, 1
  br i1 %29, label %.lr.ph26, label %._crit_edge27

.lr.ph26:                                         ; preds = %25
  %30 = getelementptr inbounds i8, ptr %0, i64 8
  %31 = getelementptr inbounds i8, ptr %0, i64 32
  br label %34

._crit_edge27:                                    ; preds = %42, %25
  call void @_ZN16GaussianMutationD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @_ZN14RealChromosomeD1Ev(ptr noundef nonnull align 8 dereferenceable(28) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  ret void

32:                                               ; preds = %22, %._crit_edge
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %49

34:                                               ; preds = %.lr.ph26, %42
  %indvars.iv29 = phi i64 [ 1, %.lr.ph26 ], [ %indvars.iv.next30, %42 ]
  %35 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv29) #5
  %36 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZN14RealChromosomeaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %35, ptr noundef nonnull align 8 dereferenceable(28) %5)
          to label %37 unwind label %47

37:                                               ; preds = %34
  %38 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv29) #5
  invoke void @_ZN16GaussianMutation6mutateER14RealChromosomeRSt6vectorIfSaIfEES5_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(28) %38, ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(24) %31)
          to label %39 unwind label %47

39:                                               ; preds = %37
  %40 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv29) #5
  %41 = invoke noundef float @_ZN6RealGA11evalFitnessERK14RealChromosome(ptr noundef nonnull align 8 dereferenceable(296) %0, ptr noundef nonnull align 8 dereferenceable(28) %40)
          to label %42 unwind label %47

42:                                               ; preds = %39
  %43 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI14RealChromosomeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv29) #5
  %44 = getelementptr inbounds i8, ptr %43, i64 24
  store float %41, ptr %44, align 8, !tbaa !30
  %indvars.iv.next30 = add nuw nsw i64 %indvars.iv29, 1
  %45 = load i64, ptr %7, align 8, !tbaa !32
  %46 = icmp ugt i64 %45, %indvars.iv.next30
  br i1 %46, label %34, label %._crit_edge27, !llvm.loop !33

47:                                               ; preds = %39, %37, %34
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %49

49:                                               ; preds = %47, %32
  %.pn = phi { ptr, i32 } [ %48, %47 ], [ %33, %32 ]
  call void @_ZN16GaussianMutationD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br label %50

50:                                               ; preds = %49, %15
  %.pn.pn = phi { ptr, i32 } [ %.pn, %49 ], [ %16, %15 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @_ZN14RealChromosomeD1Ev(ptr noundef nonnull align 8 dereferenceable(28) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  resume { ptr, i32 } %.pn.pn
}

declare void @_ZN16GaussianMutation6mutateER14RealChromosomeRSt6vectorIfSaIfEES5_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN16GaussianMutationD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 "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 = { mustprogress 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 #4 = { mustprogress 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 #5 = { 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, !19, i64 112}
!6 = !{!"_ZTS6RealGA", !7, i64 8, !7, i64 32, !14, i64 56, !14, i64 80, !18, i64 104, !11, i64 224, !7, i64 232, !22, i64 256, !20, i64 260, !11, i64 264, !11, i64 272, !11, i64 280, !20, i64 288, !22, i64 292}
!7 = !{!"_ZTSSt6vectorIfSaIfEE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSSt6vectorI14RealChromosomeSaIS0_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseI14RealChromosomeSaIS0_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseI14RealChromosomeSaIS0_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseI14RealChromosomeSaIS0_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!18 = !{!"_ZTS13RealGAOptions", !19, i64 0, !19, i64 8, !7, i64 16, !7, i64 40, !20, i64 64, !21, i64 68, !22, i64 72, !23, i64 76, !24, i64 80, !20, i64 84, !22, i64 88, !25, i64 92, !20, i64 96, !26, i64 100, !22, i64 104, !22, i64 108, !22, i64 112, !22, i64 116}
!19 = !{!"long", !12, i64 0}
!20 = !{!"int", !12, i64 0}
!21 = !{!"_ZTS11VerboseType", !12, i64 0}
!22 = !{!"float", !12, i64 0}
!23 = !{!"bool", !12, i64 0}
!24 = !{!"_ZTS13SelectionType", !12, i64 0}
!25 = !{!"_ZTS13CrossoverType", !12, i64 0}
!26 = !{!"_ZTS12MutationType", !12, i64 0}
!27 = !{!22, !22, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!31, !22, i64 24}
!31 = !{!"_ZTS14RealChromosome", !7, i64 0, !22, i64 24}
!32 = !{!6, !19, i64 104}
!33 = distinct !{!33, !29}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass