; LLVM IR from hoodoer/ENNEoS :: enneosEncoder/Cga.ll (ZN3CgaC2Eiii)

; 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.CGenome = type <{ i32, [4 x i8], %"class.std::vector.10", %"class.std::vector.15", ptr, i32, [4 x i8], double, double, double, i32, i32, i32, [4 x i8] }>
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<SNeuronGene, std::allocator<SNeuronGene>>::_Vector_impl" }
%"struct.std::_Vector_base<SNeuronGene, std::allocator<SNeuronGene>>::_Vector_impl" = type { %"struct.std::_Vector_base<SNeuronGene, std::allocator<SNeuronGene>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SNeuronGene, std::allocator<SNeuronGene>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<SLinkGene, std::allocator<SLinkGene>>::_Vector_impl" }
%"struct.std::_Vector_base<SLinkGene, std::allocator<SLinkGene>>::_Vector_impl" = type { %"struct.std::_Vector_base<SLinkGene, std::allocator<SLinkGene>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SLinkGene, std::allocator<SLinkGene>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<SplitDepth, std::allocator<SplitDepth>>::_Vector_impl" }
%"struct.std::_Vector_base<SplitDepth, std::allocator<SplitDepth>>::_Vector_impl" = type { %"struct.std::_Vector_base<SplitDepth, std::allocator<SplitDepth>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SplitDepth, std::allocator<SplitDepth>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Cga = type <{ %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.0", ptr, i32, i32, i32, i32, double, double, i32, [4 x i8], double, %"class.std::vector.5", %"class.std::vector.5", double, i8, i8, [2 x i8], i32, i8, [7 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<CGenome, std::allocator<CGenome>>::_Vector_impl" }
%"struct.std::_Vector_base<CGenome, std::allocator<CGenome>>::_Vector_impl" = type { %"struct.std::_Vector_base<CGenome, std::allocator<CGenome>>::_Vector_impl_data" }
%"struct.std::_Vector_base<CGenome, std::allocator<CGenome>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<CSpecies, std::allocator<CSpecies>>::_Vector_impl" }
%"struct.std::_Vector_base<CSpecies, std::allocator<CSpecies>>::_Vector_impl" = type { %"struct.std::_Vector_base<CSpecies, std::allocator<CSpecies>>::_Vector_impl_data" }
%"struct.std::_Vector_base<CSpecies, std::allocator<CSpecies>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3CgaC2Eiii(ptr noundef nonnull align 8 dereferenceable(265) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %class.CGenome, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %class.CGenome, align 8
  %14 = alloca %"class.std::vector.15", align 8
  %15 = alloca %"class.std::vector.10", align 8
  %16 = alloca i1, align 1
  %17 = alloca %"class.std::vector.5", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %18 = load ptr, ptr %5, align 8
  %19 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 0
  call void @_ZNSt6vectorI7CGenomeSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  %20 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 1
  call void @_ZNSt6vectorI7CGenomeSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  %21 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 2
  call void @_ZNSt6vectorI7CGenomeSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  %22 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 3
  call void @_ZNSt6vectorI7CGenomeSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  %23 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 4
  call void @_ZNSt6vectorI7CGenomeSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  %24 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 5
  call void @_ZNSt6vectorI8CSpeciesSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  %25 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 6
  store ptr null, ptr %25, align 8, !tbaa !11
  %26 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 7
  store i32 0, ptr %26, align 8, !tbaa !28
  %27 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 8
  store i32 0, ptr %27, align 4, !tbaa !29
  %28 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 9
  store i32 0, ptr %28, align 8, !tbaa !30
  %29 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 10
  %30 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %30, ptr %29, align 4, !tbaa !31
  %31 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 11
  store double 0.000000e+00, ptr %31, align 8, !tbaa !32
  %32 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 12
  store double 0.000000e+00, ptr %32, align 8, !tbaa !33
  %33 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 13
  store i32 0, ptr %33, align 8, !tbaa !34
  %34 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 15
  store double 0.000000e+00, ptr %34, align 8, !tbaa !35
  %35 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 16
  call void @_ZNSt6vectorI10SplitDepthSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #7
  %36 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 17
  call void @_ZNSt6vectorI10SplitDepthSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %52, %4
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 10
  %40 = load i32, ptr %39, align 4, !tbaa !31
  %41 = icmp slt i32 %38, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %64

43:                                               ; preds = %37
  %44 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 112, ptr %10) #7
  %45 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 8
  %46 = load i32, ptr %45, align 4, !tbaa !29
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %45, align 4, !tbaa !29
  %48 = load i32, ptr %7, align 4, !tbaa !9
  %49 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @_ZN7CGenomeC1Eiii(ptr noundef nonnull align 8 dereferenceable(108) %10, i32 noundef %46, i32 noundef %48, i32 noundef %49)
          to label %50 unwind label %55

50:                                               ; preds = %43
  invoke void @_ZNSt6vectorI7CGenomeSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 8 dereferenceable(108) %10)
          to label %51 unwind label %59

51:                                               ; preds = %50
  call void @_ZN7CGenomeD1Ev(ptr noundef nonnull align 8 dereferenceable(108) %10) #7
  call void @llvm.lifetime.end.p0(i64 112, ptr %10) #7
  br label %52

52:                                               ; preds = %51
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %9, align 4, !tbaa !9
  br label %37, !llvm.loop !36

55:                                               ; preds = %43
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %11, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %12, align 4
  br label %63

59:                                               ; preds = %50
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %11, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %12, align 4
  call void @_ZN7CGenomeD1Ev(ptr noundef nonnull align 8 dereferenceable(108) %10) #7
  br label %63

63:                                               ; preds = %59, %55
  call void @llvm.lifetime.end.p0(i64 112, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %114

64:                                               ; preds = %42
  %65 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 19
  store i8 0, ptr %65, align 8, !tbaa !38
  %66 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 20
  store i8 0, ptr %66, align 1, !tbaa !39
  %67 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 23
  store i8 0, ptr %67, align 8, !tbaa !40
  %68 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 22
  store i32 1, ptr %68, align 4, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 112, ptr %13) #7
  %69 = load i32, ptr %7, align 4, !tbaa !9
  %70 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @_ZN7CGenomeC1Eiii(ptr noundef nonnull align 8 dereferenceable(108) %13, i32 noundef 1, i32 noundef %69, i32 noundef %70)
          to label %71 unwind label %83

71:                                               ; preds = %64
  %72 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 32) #8
          to label %73 unwind label %87

73:                                               ; preds = %71
  store i1 true, ptr %16, align 1
  invoke void @_ZNK7CGenome5GenesEv(ptr dead_on_unwind writable sret(%"class.std::vector.15") align 8 %14, ptr noundef nonnull align 8 dereferenceable(108) %13)
          to label %74 unwind label %91

74:                                               ; preds = %73
  invoke void @_ZNK7CGenome7NeuronsEv(ptr dead_on_unwind writable sret(%"class.std::vector.10") align 8 %15, ptr noundef nonnull align 8 dereferenceable(108) %13)
          to label %75 unwind label %95

75:                                               ; preds = %74
  invoke void @_ZN11CInnovationC1ESt6vectorI9SLinkGeneSaIS1_EES0_I11SNeuronGeneSaIS4_EE(ptr noundef nonnull align 8 dereferenceable(32) %72, ptr noundef %14, ptr noundef %15)
          to label %76 unwind label %99

76:                                               ; preds = %75
  store i1 false, ptr %16, align 1
  %77 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 6
  store ptr %72, ptr %77, align 8, !tbaa !11
  call void @_ZNSt6vectorI11SNeuronGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  call void @_ZNSt6vectorI9SLinkGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #7
  invoke void @_ZN3Cga5SplitEddi(ptr dead_on_unwind writable sret(%"class.std::vector.5") align 8 %17, ptr noundef nonnull align 8 dereferenceable(265) %18, double noundef 0.000000e+00, double noundef 1.000000e+00, i32 noundef 0)
          to label %78 unwind label %108

78:                                               ; preds = %76
  %79 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 16
  %80 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI10SplitDepthSaIS0_EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %79, ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  call void @_ZNSt6vectorI10SplitDepthSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  %81 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 17
  call void @_ZNSt6vectorI10SplitDepthSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %81) #7
  %82 = getelementptr inbounds %class.Cga, ptr %18, i32 0, i32 18
  store double 3.000000e+00, ptr %82, align 8, !tbaa !42
  call void @_ZN7CGenomeD1Ev(ptr noundef nonnull align 8 dereferenceable(108) %13) #7
  call void @llvm.lifetime.end.p0(i64 112, ptr %13) #7
  ret void

83:                                               ; preds = %64
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %11, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %12, align 4
  br label %113

87:                                               ; preds = %71
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %11, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %12, align 4
  br label %112

91:                                               ; preds = %73
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %11, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %12, align 4
  br label %104

95:                                               ; preds = %74
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %11, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %12, align 4
  br label %103

99:                                               ; preds = %75
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %11, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %12, align 4
  call void @_ZNSt6vectorI11SNeuronGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  br label %103

103:                                              ; preds = %99, %95
  call void @_ZNSt6vectorI9SLinkGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  br label %104

104:                                              ; preds = %103, %91
  %105 = load i1, ptr %16, align 1
  br i1 %105, label %106, label %107

106:                                              ; preds = %104
  call void @_ZdlPvm(ptr noundef %72, i64 noundef 32) #9
  br label %107

107:                                              ; preds = %106, %104
  br label %112

108:                                              ; preds = %76
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %11, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  br label %112

112:                                              ; preds = %108, %107, %87
  call void @_ZN7CGenomeD1Ev(ptr noundef nonnull align 8 dereferenceable(108) %13) #7
  br label %113

113:                                              ; preds = %112, %83
  call void @llvm.lifetime.end.p0(i64 112, ptr %13) #7
  br label %114

114:                                              ; preds = %113, %63
  call void @_ZNSt6vectorI10SplitDepthSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  call void @_ZNSt6vectorI10SplitDepthSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #7
  call void @_ZNSt6vectorI8CSpeciesSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  call void @_ZNSt6vectorI7CGenomeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  call void @_ZNSt6vectorI7CGenomeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  call void @_ZNSt6vectorI7CGenomeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  call void @_ZNSt6vectorI7CGenomeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  call void @_ZNSt6vectorI7CGenomeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  br label %115

115:                                              ; preds = %114
  %116 = load ptr, ptr %11, align 8
  %117 = load i32, ptr %12, align 4
  %118 = insertvalue { ptr, i32 } poison, ptr %116, 0
  %119 = insertvalue { ptr, i32 } %118, i32 %117, 1
  resume { ptr, i32 } %119
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI7CGenomeSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI8CSpeciesSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI10SplitDepthSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI7CGenomeSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(108)) #0 align 2

declare void @_ZN7CGenomeC1Eiii(ptr noundef nonnull align 8 dereferenceable(108), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN7CGenomeD1Ev(ptr noundef nonnull align 8 dereferenceable(108)) unnamed_addr #4

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7CGenome5GenesEv(ptr dead_on_unwind noalias writable sret(%"class.std::vector.15") align 8, ptr noundef nonnull align 8 dereferenceable(108)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7CGenome7NeuronsEv(ptr dead_on_unwind noalias writable sret(%"class.std::vector.10") align 8, ptr noundef nonnull align 8 dereferenceable(108)) #0 align 2

declare void @_ZN11CInnovationC1ESt6vectorI9SLinkGeneSaIS1_EES0_I11SNeuronGeneSaIS4_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI11SNeuronGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI9SLinkGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Cga5SplitEddi(ptr dead_on_unwind noalias writable sret(%"class.std::vector.5") align 8, ptr noundef nonnull align 8 dereferenceable(265), double noundef, double noundef, i32 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI10SplitDepthSaIS0_EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI10SplitDepthSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI10SplitDepthSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI8CSpeciesSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI7CGenomeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 "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 = { nobuiltin 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 #6 = { nobuiltin 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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 144}
!12 = !{!"_ZTS3Cga", !13, i64 0, !13, i64 24, !13, i64 48, !13, i64 72, !13, i64 96, !17, i64 120, !6, i64 144, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !21, i64 168, !21, i64 176, !10, i64 184, !21, i64 192, !22, i64 200, !22, i64 224, !21, i64 248, !26, i64 256, !26, i64 257, !27, i64 260, !26, i64 264}
!13 = !{!"_ZTSSt6vectorI7CGenomeSaIS0_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseI7CGenomeSaIS0_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI7CGenomeSaIS0_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseI7CGenomeSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt6vectorI8CSpeciesSaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseI8CSpeciesSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseI8CSpeciesSaIS0_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI8CSpeciesSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"double", !7, i64 0}
!22 = !{!"_ZTSSt6vectorI10SplitDepthSaIS0_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseI10SplitDepthSaIS0_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseI10SplitDepthSaIS0_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseI10SplitDepthSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"bool", !7, i64 0}
!27 = !{!"_ZTS13UnderFlowMode", !7, i64 0}
!28 = !{!12, !10, i64 152}
!29 = !{!12, !10, i64 156}
!30 = !{!12, !10, i64 160}
!31 = !{!12, !10, i64 164}
!32 = !{!12, !21, i64 168}
!33 = !{!12, !21, i64 176}
!34 = !{!12, !10, i64 184}
!35 = !{!12, !21, i64 192}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!12, !26, i64 256}
!39 = !{!12, !26, i64 257}
!40 = !{!12, !26, i64 264}
!41 = !{!12, !27, i64 260}
!42 = !{!12, !21, i64 248}


; 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.CGenome = type <{ i32, [4 x i8], %"class.std::vector.10", %"class.std::vector.15", ptr, i32, [4 x i8], double, double, double, i32, i32, i32, [4 x i8] }>
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<SNeuronGene, std::allocator<SNeuronGene>>::_Vector_impl" }
%"struct.std::_Vector_base<SNeuronGene, std::allocator<SNeuronGene>>::_Vector_impl" = type { %"struct.std::_Vector_base<SNeuronGene, std::allocator<SNeuronGene>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SNeuronGene, std::allocator<SNeuronGene>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<SLinkGene, std::allocator<SLinkGene>>::_Vector_impl" }
%"struct.std::_Vector_base<SLinkGene, std::allocator<SLinkGene>>::_Vector_impl" = type { %"struct.std::_Vector_base<SLinkGene, std::allocator<SLinkGene>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SLinkGene, std::allocator<SLinkGene>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<SplitDepth, std::allocator<SplitDepth>>::_Vector_impl" }
%"struct.std::_Vector_base<SplitDepth, std::allocator<SplitDepth>>::_Vector_impl" = type { %"struct.std::_Vector_base<SplitDepth, std::allocator<SplitDepth>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SplitDepth, std::allocator<SplitDepth>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3CgaC2Eiii(ptr noundef nonnull align 8 dereferenceable(265) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %class.CGenome, align 8
  %6 = alloca %class.CGenome, align 8
  %7 = alloca %"class.std::vector.15", align 8
  %8 = alloca %"class.std::vector.10", align 8
  %9 = alloca %"class.std::vector.5", align 8
  tail call void @_ZNSt6vectorI7CGenomeSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZNSt6vectorI7CGenomeSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %11 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @_ZNSt6vectorI7CGenomeSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %12 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZNSt6vectorI7CGenomeSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  %13 = getelementptr inbounds i8, ptr %0, i64 96
  tail call void @_ZNSt6vectorI7CGenomeSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %14 = getelementptr inbounds i8, ptr %0, i64 120
  tail call void @_ZNSt6vectorI8CSpeciesSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %15 = getelementptr inbounds i8, ptr %0, i64 144
  %16 = getelementptr inbounds i8, ptr %0, i64 156
  %17 = getelementptr inbounds i8, ptr %0, i64 164
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %15, i8 0, i64 20, i1 false)
  store i32 %1, ptr %17, align 4, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 168
  %19 = getelementptr inbounds i8, ptr %0, i64 192
  store double 0.000000e+00, ptr %19, align 8, !tbaa !26
  %20 = getelementptr inbounds i8, ptr %0, i64 200
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %18, i8 0, i64 20, i1 false)
  tail call void @_ZNSt6vectorI10SplitDepthSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  %21 = getelementptr inbounds i8, ptr %0, i64 224
  tail call void @_ZNSt6vectorI10SplitDepthSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  %22 = load i32, ptr %17, align 4, !tbaa !5
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %31, %4
  %24 = getelementptr inbounds i8, ptr %0, i64 256
  store i8 0, ptr %24, align 8, !tbaa !27
  %25 = getelementptr inbounds i8, ptr %0, i64 257
  store i8 0, ptr %25, align 1, !tbaa !28
  %26 = getelementptr inbounds i8, ptr %0, i64 264
  store i8 0, ptr %26, align 8, !tbaa !29
  %27 = getelementptr inbounds i8, ptr %0, i64 260
  store i32 1, ptr %27, align 4, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %6) #8
  invoke void @_ZN7CGenomeC1Eiii(ptr noundef nonnull align 8 dereferenceable(108) %6, i32 noundef 1, i32 noundef %2, i32 noundef %3)
          to label %40 unwind label %49

.lr.ph:                                           ; preds = %4, %31
  %.01625 = phi i32 [ %32, %31 ], [ 0, %4 ]
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %5) #8
  %28 = load i32, ptr %16, align 4, !tbaa !31
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %16, align 4, !tbaa !31
  invoke void @_ZN7CGenomeC1Eiii(ptr noundef nonnull align 8 dereferenceable(108) %5, i32 noundef %28, i32 noundef %2, i32 noundef %3)
          to label %30 unwind label %35

30:                                               ; preds = %.lr.ph
  invoke void @_ZNSt6vectorI7CGenomeSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(108) %5)
          to label %31 unwind label %37

31:                                               ; preds = %30
  call void @_ZN7CGenomeD1Ev(ptr noundef nonnull align 8 dereferenceable(108) %5) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %5) #8
  %32 = add nuw nsw i32 %.01625, 1
  %33 = load i32, ptr %17, align 4, !tbaa !5
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %.lr.ph, label %._crit_edge, !llvm.loop !32

35:                                               ; preds = %.lr.ph
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %39

37:                                               ; preds = %30
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7CGenomeD1Ev(ptr noundef nonnull align 8 dereferenceable(108) %5) #8
  br label %39

39:                                               ; preds = %37, %35
  %.pn22 = phi { ptr, i32 } [ %38, %37 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %5) #8
  br label %65

40:                                               ; preds = %._crit_edge
  %41 = invoke noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i64 noundef 32) #9
          to label %42 unwind label %51

42:                                               ; preds = %40
  invoke void @_ZNK7CGenome5GenesEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.15") align 8 %7, ptr noundef nonnull align 8 dereferenceable(108) %6)
          to label %43 unwind label %53

43:                                               ; preds = %42
  invoke void @_ZNK7CGenome7NeuronsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.10") align 8 %8, ptr noundef nonnull align 8 dereferenceable(108) %6)
          to label %44 unwind label %55

44:                                               ; preds = %43
  invoke void @_ZN11CInnovationC1ESt6vectorI9SLinkGeneSaIS1_EES0_I11SNeuronGeneSaIS4_EE(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef nonnull %7, ptr noundef nonnull %8)
          to label %45 unwind label %57

45:                                               ; preds = %44
  store ptr %41, ptr %15, align 8, !tbaa !34
  call void @_ZNSt6vectorI11SNeuronGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @_ZNSt6vectorI9SLinkGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  invoke void @_ZN3Cga5SplitEddi(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.5") align 8 %9, ptr noundef nonnull align 8 dereferenceable(265) %0, double noundef 0.000000e+00, double noundef 1.000000e+00, i32 noundef 0)
          to label %46 unwind label %61

46:                                               ; preds = %45
  %47 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI10SplitDepthSaIS0_EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @_ZNSt6vectorI10SplitDepthSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @_ZNSt6vectorI10SplitDepthSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  %48 = getelementptr inbounds i8, ptr %0, i64 248
  store double 3.000000e+00, ptr %48, align 8, !tbaa !35
  call void @_ZN7CGenomeD1Ev(ptr noundef nonnull align 8 dereferenceable(108) %6) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %6) #8
  ret void

49:                                               ; preds = %._crit_edge
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %64

51:                                               ; preds = %40
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %63

53:                                               ; preds = %42
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %60

55:                                               ; preds = %43
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %59

57:                                               ; preds = %44
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI11SNeuronGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  br label %59

59:                                               ; preds = %57, %55
  %.pn = phi { ptr, i32 } [ %58, %57 ], [ %56, %55 ]
  call void @_ZNSt6vectorI9SLinkGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  br label %60

60:                                               ; preds = %53, %59
  %.pn.pn = phi { ptr, i32 } [ %.pn, %59 ], [ %54, %53 ]
  call void @_ZdlPvm(ptr noundef nonnull %41, i64 noundef 32) #10
  br label %63

61:                                               ; preds = %45
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  br label %63

63:                                               ; preds = %60, %61, %51
  %.pn19 = phi { ptr, i32 } [ %62, %61 ], [ %.pn.pn, %60 ], [ %52, %51 ]
  call void @_ZN7CGenomeD1Ev(ptr noundef nonnull align 8 dereferenceable(108) %6) #8
  br label %64

64:                                               ; preds = %63, %49
  %.pn19.pn = phi { ptr, i32 } [ %.pn19, %63 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %6) #8
  br label %65

65:                                               ; preds = %64, %39
  %.pn22.pn = phi { ptr, i32 } [ %.pn22, %39 ], [ %.pn19.pn, %64 ]
  call void @_ZNSt6vectorI10SplitDepthSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @_ZNSt6vectorI10SplitDepthSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  call void @_ZNSt6vectorI8CSpeciesSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @_ZNSt6vectorI7CGenomeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @_ZNSt6vectorI7CGenomeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @_ZNSt6vectorI7CGenomeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @_ZNSt6vectorI7CGenomeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @_ZNSt6vectorI7CGenomeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  resume { ptr, i32 } %.pn22.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI7CGenomeSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI8CSpeciesSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI10SplitDepthSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI7CGenomeSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(108)) local_unnamed_addr #0 align 2

declare void @_ZN7CGenomeC1Eiii(ptr noundef nonnull align 8 dereferenceable(108), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN7CGenomeD1Ev(ptr noundef nonnull align 8 dereferenceable(108)) unnamed_addr #4

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7CGenome5GenesEv(ptr dead_on_unwind noalias writable sret(%"class.std::vector.15") align 8, ptr noundef nonnull align 8 dereferenceable(108)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7CGenome7NeuronsEv(ptr dead_on_unwind noalias writable sret(%"class.std::vector.10") align 8, ptr noundef nonnull align 8 dereferenceable(108)) local_unnamed_addr #0 align 2

declare void @_ZN11CInnovationC1ESt6vectorI9SLinkGeneSaIS1_EES0_I11SNeuronGeneSaIS4_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI11SNeuronGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI9SLinkGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Cga5SplitEddi(ptr dead_on_unwind noalias writable sret(%"class.std::vector.5") align 8, ptr noundef nonnull align 8 dereferenceable(265), double noundef, double noundef, i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI10SplitDepthSaIS0_EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI10SplitDepthSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI10SplitDepthSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI8CSpeciesSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI7CGenomeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 "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 = { nobuiltin 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 #6 = { nobuiltin 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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, !18, i64 164}
!6 = !{!"_ZTS3Cga", !7, i64 0, !7, i64 24, !7, i64 48, !7, i64 72, !7, i64 96, !14, i64 120, !11, i64 144, !18, i64 152, !18, i64 156, !18, i64 160, !18, i64 164, !19, i64 168, !19, i64 176, !18, i64 184, !19, i64 192, !20, i64 200, !20, i64 224, !19, i64 248, !24, i64 256, !24, i64 257, !25, i64 260, !24, i64 264}
!7 = !{!"_ZTSSt6vectorI7CGenomeSaIS0_EE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseI7CGenomeSaIS0_EE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseI7CGenomeSaIS0_EE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseI7CGenomeSaIS0_EE17_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 = !{!"_ZTSSt6vectorI8CSpeciesSaIS0_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseI8CSpeciesSaIS0_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseI8CSpeciesSaIS0_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseI8CSpeciesSaIS0_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!18 = !{!"int", !12, i64 0}
!19 = !{!"double", !12, i64 0}
!20 = !{!"_ZTSSt6vectorI10SplitDepthSaIS0_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseI10SplitDepthSaIS0_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseI10SplitDepthSaIS0_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseI10SplitDepthSaIS0_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!24 = !{!"bool", !12, i64 0}
!25 = !{!"_ZTS13UnderFlowMode", !12, i64 0}
!26 = !{!6, !19, i64 192}
!27 = !{!6, !24, i64 256}
!28 = !{!6, !24, i64 257}
!29 = !{!6, !24, i64 264}
!30 = !{!6, !25, i64 260}
!31 = !{!6, !18, i64 156}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!6, !11, i64 144}
!35 = !{!6, !19, i64 248}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass