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

; 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.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.49" = type { ptr }
%struct.SLinkGene = type <{ i8, [3 x i8], i32, i32, i32, double, i8, [7 x i8] }>
%"class.__gnu_cxx::__normal_iterator.47" = type { ptr }
%struct.SNeuronGene = type { i32, i32, i8, double, double, double }
%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 }
%"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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

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

; 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 void @_ZNSt6vectorI11SNeuronGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Cga11AddNeuronIDEiRSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(265), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_Z10RandDoublev() #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Cga9CrossoverER7CGenomeS1_(ptr dead_on_unwind noalias writable sret(%class.CGenome) align 8 %0, ptr noundef nonnull align 8 dereferenceable(265) %1, ptr noundef nonnull align 8 dereferenceable(108) %2, ptr noundef nonnull align 8 dereferenceable(108) %3) #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector.10", align 8
  %11 = alloca %"class.std::vector.15", align 8
  %12 = alloca %"class.std::vector.30", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %17 = alloca %struct.SLinkGene, align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %26 = alloca i32, align 4
  %27 = alloca %struct.SNeuronGene, align 8
  %28 = alloca i1, align 1
  %29 = alloca %"class.std::vector.10", align 8
  %30 = alloca %"class.std::vector.15", align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %31 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = call noundef double @_ZNK7CGenome7FitnessEv(ptr noundef nonnull align 8 dereferenceable(108) %32)
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = call noundef double @_ZNK7CGenome7FitnessEv(ptr noundef nonnull align 8 dereferenceable(108) %34)
  %36 = fcmp oeq double %33, %35
  br i1 %36, label %37, label %55

37:                                               ; preds = %4
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = call noundef i32 @_ZNK7CGenome8NumGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %38)
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = call noundef i32 @_ZNK7CGenome8NumGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %40)
  %42 = icmp eq i32 %39, %41
  br i1 %42, label %43, label %45

43:                                               ; preds = %37
  %44 = call noundef i32 @_Z7RandIntii(i32 noundef 0, i32 noundef 1)
  store i32 %44, ptr %9, align 4, !tbaa !9
  br label %54

45:                                               ; preds = %37
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = call noundef i32 @_ZNK7CGenome8NumGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %46)
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = call noundef i32 @_ZNK7CGenome8NumGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %48)
  %50 = icmp slt i32 %47, %49
  br i1 %50, label %51, label %52

51:                                               ; preds = %45
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %53

52:                                               ; preds = %45
  store i32 1, ptr %9, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %52, %51
  br label %54

54:                                               ; preds = %53, %43
  br label %64

55:                                               ; preds = %4
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = call noundef double @_ZNK7CGenome7FitnessEv(ptr noundef nonnull align 8 dereferenceable(108) %56)
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = call noundef double @_ZNK7CGenome7FitnessEv(ptr noundef nonnull align 8 dereferenceable(108) %58)
  %60 = fcmp ogt double %57, %59
  br i1 %60, label %61, label %62

61:                                               ; preds = %55
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %63

62:                                               ; preds = %55
  store i32 1, ptr %9, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %62, %61
  br label %64

64:                                               ; preds = %63, %54
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #8
  call void @_ZNSt6vectorI11SNeuronGeneSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #8
  call void @_ZNSt6vectorI9SLinkGeneSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = invoke ptr @_ZN7CGenome12StartOfGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %65)
          to label %67 unwind label %108

67:                                               ; preds = %64
  %68 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.49", ptr %13, i32 0, i32 0
  store ptr %66, ptr %68, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = invoke ptr @_ZN7CGenome12StartOfGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %69)
          to label %71 unwind label %112

71:                                               ; preds = %67
  %72 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.49", ptr %16, i32 0, i32 0
  store ptr %70, ptr %72, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #8
  invoke void @_ZN9SLinkGeneC2Ev(ptr noundef nonnull align 8 dereferenceable(25) %17)
          to label %73 unwind label %116

73:                                               ; preds = %71
  br label %74

74:                                               ; preds = %246, %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %76 = invoke ptr @_ZN7CGenome10EndOfGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %75)
          to label %77 unwind label %120

77:                                               ; preds = %74
  %78 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.49", ptr %18, i32 0, i32 0
  store ptr %76, ptr %78, align 8
  %79 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIP9SLinkGeneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  br i1 %79, label %80, label %86

80:                                               ; preds = %77
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = invoke ptr @_ZN7CGenome10EndOfGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %81)
          to label %83 unwind label %124

83:                                               ; preds = %80
  %84 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.49", ptr %19, i32 0, i32 0
  store ptr %82, ptr %84, align 8
  %85 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIP9SLinkGeneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  br label %86

86:                                               ; preds = %83, %77
  %87 = phi i1 [ false, %77 ], [ %85, %83 ]
  %88 = xor i1 %87, true
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br i1 %88, label %89, label %247

89:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %91 = invoke ptr @_ZN7CGenome10EndOfGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %90)
          to label %92 unwind label %129

92:                                               ; preds = %89
  %93 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.49", ptr %20, i32 0, i32 0
  store ptr %91, ptr %93, align 8
  %94 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIP9SLinkGeneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br i1 %94, label %95, label %101

95:                                               ; preds = %92
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = invoke ptr @_ZN7CGenome10EndOfGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %96)
          to label %98 unwind label %133

98:                                               ; preds = %95
  %99 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.49", ptr %21, i32 0, i32 0
  store ptr %97, ptr %99, align 8
  %100 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP9SLinkGeneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  br label %101

101:                                              ; preds = %98, %92
  %102 = phi i1 [ false, %92 ], [ %100, %98 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br i1 %102, label %103, label %140

103:                                              ; preds = %101
  %104 = load i32, ptr %9, align 4, !tbaa !9
  %105 = icmp eq i32 %104, 1
  br i1 %105, label %106, label %138

106:                                              ; preds = %103
  %107 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %107, i64 25, i1 false), !tbaa.struct !10
  br label %138

108:                                              ; preds = %64
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %14, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %15, align 4
  br label %306

112:                                              ; preds = %67
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %14, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %15, align 4
  br label %305

116:                                              ; preds = %279, %247, %243, %240, %237, %226, %208, %71
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %14, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %15, align 4
  br label %304

120:                                              ; preds = %74
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %14, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %15, align 4
  br label %128

124:                                              ; preds = %80
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %14, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %128

128:                                              ; preds = %124, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %304

129:                                              ; preds = %89
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %14, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %15, align 4
  br label %137

133:                                              ; preds = %95
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %14, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %137

137:                                              ; preds = %133, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %304

138:                                              ; preds = %106, %103
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  br label %223

140:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %142 = invoke ptr @_ZN7CGenome10EndOfGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %141)
          to label %143 unwind label %159

143:                                              ; preds = %140
  %144 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.49", ptr %22, i32 0, i32 0
  store ptr %142, ptr %144, align 8
  %145 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIP9SLinkGeneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  br i1 %145, label %146, label %152

146:                                              ; preds = %143
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = invoke ptr @_ZN7CGenome10EndOfGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %147)
          to label %149 unwind label %163

149:                                              ; preds = %146
  %150 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.49", ptr %23, i32 0, i32 0
  store ptr %148, ptr %150, align 8
  %151 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP9SLinkGeneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  br label %152

152:                                              ; preds = %149, %143
  %153 = phi i1 [ false, %143 ], [ %151, %149 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br i1 %153, label %154, label %170

154:                                              ; preds = %152
  %155 = load i32, ptr %9, align 4, !tbaa !9
  %156 = icmp eq i32 %155, 0
  br i1 %156, label %157, label %168

157:                                              ; preds = %154
  %158 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %158, i64 25, i1 false), !tbaa.struct !10
  br label %168

159:                                              ; preds = %140
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %14, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %15, align 4
  br label %167

163:                                              ; preds = %146
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %14, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %167

167:                                              ; preds = %163, %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %304

168:                                              ; preds = %157, %154
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br label %222

170:                                              ; preds = %152
  %171 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %172 = getelementptr inbounds %struct.SLinkGene, ptr %171, i32 0, i32 2
  %173 = load i32, ptr %172, align 4, !tbaa !17
  %174 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %175 = getelementptr inbounds %struct.SLinkGene, ptr %174, i32 0, i32 2
  %176 = load i32, ptr %175, align 4, !tbaa !17
  %177 = icmp slt i32 %173, %176
  br i1 %177, label %178, label %185

178:                                              ; preds = %170
  %179 = load i32, ptr %9, align 4, !tbaa !9
  %180 = icmp eq i32 %179, 0
  br i1 %180, label %181, label %183

181:                                              ; preds = %178
  %182 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %182, i64 25, i1 false), !tbaa.struct !10
  br label %183

183:                                              ; preds = %181, %178
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br label %221

185:                                              ; preds = %170
  %186 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %187 = getelementptr inbounds %struct.SLinkGene, ptr %186, i32 0, i32 2
  %188 = load i32, ptr %187, align 4, !tbaa !17
  %189 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %190 = getelementptr inbounds %struct.SLinkGene, ptr %189, i32 0, i32 2
  %191 = load i32, ptr %190, align 4, !tbaa !17
  %192 = icmp slt i32 %188, %191
  br i1 %192, label %193, label %200

193:                                              ; preds = %185
  %194 = load i32, ptr %9, align 4, !tbaa !9
  %195 = icmp eq i32 %194, 1
  br i1 %195, label %196, label %198

196:                                              ; preds = %193
  %197 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %197, i64 25, i1 false), !tbaa.struct !10
  br label %198

198:                                              ; preds = %196, %193
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  br label %220

200:                                              ; preds = %185
  %201 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %202 = getelementptr inbounds %struct.SLinkGene, ptr %201, i32 0, i32 2
  %203 = load i32, ptr %202, align 4, !tbaa !17
  %204 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %205 = getelementptr inbounds %struct.SLinkGene, ptr %204, i32 0, i32 2
  %206 = load i32, ptr %205, align 4, !tbaa !17
  %207 = icmp eq i32 %203, %206
  br i1 %207, label %208, label %219

208:                                              ; preds = %200
  %209 = invoke noundef double @_Z10RandDoublev()
          to label %210 unwind label %116

210:                                              ; preds = %208
  %211 = fcmp olt double %209, 5.000000e-01
  br i1 %211, label %212, label %214

212:                                              ; preds = %210
  %213 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %213, i64 25, i1 false), !tbaa.struct !10
  br label %216

214:                                              ; preds = %210
  %215 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %215, i64 25, i1 false), !tbaa.struct !10
  br label %216

216:                                              ; preds = %214, %212
  %217 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  br label %219

219:                                              ; preds = %216, %200
  br label %220

220:                                              ; preds = %219, %198
  br label %221

221:                                              ; preds = %220, %183
  br label %222

222:                                              ; preds = %221, %168
  br label %223

223:                                              ; preds = %222, %138
  %224 = call noundef i64 @_ZNKSt6vectorI9SLinkGeneSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %225 = icmp eq i64 %224, 0
  br i1 %225, label %226, label %228

226:                                              ; preds = %223
  invoke void @_ZNSt6vectorI9SLinkGeneSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(25) %17)
          to label %227 unwind label %116

227:                                              ; preds = %226
  br label %240

228:                                              ; preds = %223
  %229 = call noundef i64 @_ZNKSt6vectorI9SLinkGeneSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %230 = sub i64 %229, 1
  %231 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNSt6vectorI9SLinkGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %230) #8
  %232 = getelementptr inbounds %struct.SLinkGene, ptr %231, i32 0, i32 2
  %233 = load i32, ptr %232, align 4, !tbaa !17
  %234 = getelementptr inbounds %struct.SLinkGene, ptr %17, i32 0, i32 2
  %235 = load i32, ptr %234, align 4, !tbaa !17
  %236 = icmp ne i32 %233, %235
  br i1 %236, label %237, label %239

237:                                              ; preds = %228
  invoke void @_ZNSt6vectorI9SLinkGeneSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(25) %17)
          to label %238 unwind label %116

238:                                              ; preds = %237
  br label %239

239:                                              ; preds = %238, %228
  br label %240

240:                                              ; preds = %239, %227
  %241 = getelementptr inbounds %struct.SLinkGene, ptr %17, i32 0, i32 3
  %242 = load i32, ptr %241, align 8, !tbaa !19
  invoke void @_ZN3Cga11AddNeuronIDEiRSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(265) %31, i32 noundef %242, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %243 unwind label %116

243:                                              ; preds = %240
  %244 = getelementptr inbounds %struct.SLinkGene, ptr %17, i32 0, i32 4
  %245 = load i32, ptr %244, align 4, !tbaa !20
  invoke void @_ZN3Cga11AddNeuronIDEiRSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(265) %31, i32 noundef %245, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %246 unwind label %116

246:                                              ; preds = %243
  br label %74, !llvm.loop !21

247:                                              ; preds = %86
  %248 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  %249 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %24, i32 0, i32 0
  store ptr %248, ptr %249, align 8
  %250 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  %251 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %25, i32 0, i32 0
  store ptr %250, ptr %251, align 8
  %252 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %24, i32 0, i32 0
  %253 = load ptr, ptr %252, align 8
  %254 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %25, i32 0, i32 0
  %255 = load ptr, ptr %254, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %253, ptr %255)
          to label %256 unwind label %116

256:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 0, ptr %26, align 4, !tbaa !13
  br label %257

257:                                              ; preds = %272, %256
  %258 = load i32, ptr %26, align 4, !tbaa !13
  %259 = sext i32 %258 to i64
  %260 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  %261 = icmp ult i64 %259, %260
  br i1 %261, label %263, label %262

262:                                              ; preds = %257
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %279

263:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 40, ptr %27) #8
  %264 = getelementptr inbounds %class.Cga, ptr %31, i32 0, i32 6
  %265 = load ptr, ptr %264, align 8, !tbaa !23
  %266 = load i32, ptr %26, align 4, !tbaa !13
  %267 = sext i32 %266 to i64
  %268 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %267) #8
  %269 = load i32, ptr %268, align 4, !tbaa !13
  invoke void @_ZN11CInnovation18CreateNeuronFromIDEi(ptr dead_on_unwind writable sret(%struct.SNeuronGene) align 8 %27, ptr noundef nonnull align 8 dereferenceable(32) %265, i32 noundef %269)
          to label %270 unwind label %275

270:                                              ; preds = %263
  invoke void @_ZNSt6vectorI11SNeuronGeneSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(40) %27)
          to label %271 unwind label %275

271:                                              ; preds = %270
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #8
  br label %272

272:                                              ; preds = %271
  %273 = load i32, ptr %26, align 4, !tbaa !13
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %26, align 4, !tbaa !13
  br label %257, !llvm.loop !38

275:                                              ; preds = %270, %263
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %14, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %304

279:                                              ; preds = %262
  store i1 false, ptr %28, align 1
  %280 = getelementptr inbounds %class.Cga, ptr %31, i32 0, i32 8
  %281 = load i32, ptr %280, align 4, !tbaa !39
  %282 = add nsw i32 %281, 1
  store i32 %282, ptr %280, align 4, !tbaa !39
  invoke void @_ZNSt6vectorI11SNeuronGeneSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %283 unwind label %116

283:                                              ; preds = %279
  invoke void @_ZNSt6vectorI9SLinkGeneSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %284 unwind label %293

284:                                              ; preds = %283
  %285 = load ptr, ptr %7, align 8, !tbaa !5
  %286 = invoke noundef i32 @_ZNK7CGenome9NumInputsEv(ptr noundef nonnull align 8 dereferenceable(108) %285)
          to label %287 unwind label %297

287:                                              ; preds = %284
  %288 = load ptr, ptr %7, align 8, !tbaa !5
  %289 = invoke noundef i32 @_ZNK7CGenome10NumOutputsEv(ptr noundef nonnull align 8 dereferenceable(108) %288)
          to label %290 unwind label %297

290:                                              ; preds = %287
  invoke void @_ZN7CGenomeC1EiSt6vectorI11SNeuronGeneSaIS1_EES0_I9SLinkGeneSaIS4_EEii(ptr noundef nonnull align 8 dereferenceable(108) %0, i32 noundef %281, ptr noundef %29, ptr noundef %30, i32 noundef %286, i32 noundef %289)
          to label %291 unwind label %297

291:                                              ; preds = %290
  call void @_ZNSt6vectorI9SLinkGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  call void @_ZNSt6vectorI11SNeuronGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  store i1 true, ptr %28, align 1
  %292 = load i1, ptr %28, align 1
  br i1 %292, label %303, label %302

293:                                              ; preds = %283
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %14, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %15, align 4
  br label %301

297:                                              ; preds = %290, %287, %284
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %14, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %15, align 4
  call void @_ZNSt6vectorI9SLinkGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  br label %301

301:                                              ; preds = %297, %293
  call void @_ZNSt6vectorI11SNeuronGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  br label %304

302:                                              ; preds = %291
  call void @_ZN7CGenomeD1Ev(ptr noundef nonnull align 8 dereferenceable(108) %0) #8
  br label %303

303:                                              ; preds = %302, %291
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #8
  call void @_ZNSt6vectorI9SLinkGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  call void @_ZNSt6vectorI11SNeuronGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  ret void

304:                                              ; preds = %301, %275, %167, %137, %128, %116
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  br label %305

305:                                              ; preds = %304, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %306

306:                                              ; preds = %305, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #8
  call void @_ZNSt6vectorI9SLinkGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  call void @_ZNSt6vectorI11SNeuronGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %307

307:                                              ; preds = %306
  %308 = load ptr, ptr %14, align 8
  %309 = load i32, ptr %15, align 4
  %310 = insertvalue { ptr, i32 } poison, ptr %308, 0
  %311 = insertvalue { ptr, i32 } %310, i32 %309, 1
  resume { ptr, i32 } %311
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z7RandIntii(i32 noundef, i32 noundef) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) #5

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7CGenome7FitnessEv(ptr noundef nonnull align 8 dereferenceable(108)) #2 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7CGenome8NumGenesEv(ptr noundef nonnull align 8 dereferenceable(108)) #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZN7CGenome12StartOfGenesEv(ptr noundef nonnull align 8 dereferenceable(108)) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxeqIP9SLinkGeneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZN7CGenome10EndOfGenesEv(ptr noundef nonnull align 8 dereferenceable(108)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIP9SLinkGeneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(25) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI9SLinkGeneSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(25)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI11SNeuronGeneSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40)) #3 align 2

declare void @_ZN11CInnovation18CreateNeuronFromIDEi(ptr dead_on_unwind writable sret(%struct.SNeuronGene) align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI11SNeuronGeneSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI9SLinkGeneSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7CGenome9NumInputsEv(ptr noundef nonnull align 8 dereferenceable(108)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7CGenome10NumOutputsEv(ptr noundef nonnull align 8 dereferenceable(108)) #2 align 2

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

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


; 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.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.49" = type { ptr }
%struct.SLinkGene = type <{ i8, [3 x i8], i32, i32, i32, double, i8, [7 x i8] }>
%struct.SNeuronGene = type { i32, i32, i8, double, double, double }

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

declare i32 @__gxx_personality_v0(...)

; 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 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: mustprogress uwtable
declare dso_local void @_ZN3Cga11AddNeuronIDEiRSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(265), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_Z10RandDoublev() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Cga9CrossoverER7CGenomeS1_(ptr dead_on_unwind noalias writable sret(%class.CGenome) align 8 %0, ptr noundef nonnull align 8 dereferenceable(265) %1, ptr noundef nonnull align 8 dereferenceable(108) %2, ptr noundef nonnull align 8 dereferenceable(108) %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector.10", align 8
  %6 = alloca %"class.std::vector.15", align 8
  %7 = alloca %"class.std::vector.30", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %10 = alloca %struct.SLinkGene, align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %17 = alloca %struct.SNeuronGene, align 8
  %18 = alloca %"class.std::vector.10", align 8
  %19 = alloca %"class.std::vector.15", align 8
  %20 = tail call noundef double @_ZNK7CGenome7FitnessEv(ptr noundef nonnull align 8 dereferenceable(108) %2)
  %21 = tail call noundef double @_ZNK7CGenome7FitnessEv(ptr noundef nonnull align 8 dereferenceable(108) %3)
  %22 = fcmp oeq double %20, %21
  br i1 %22, label %23, label %33

23:                                               ; preds = %4
  %24 = tail call noundef i32 @_ZNK7CGenome8NumGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %2)
  %25 = tail call noundef i32 @_ZNK7CGenome8NumGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %3)
  %26 = icmp eq i32 %24, %25
  br i1 %26, label %27, label %29

27:                                               ; preds = %23
  %28 = tail call noundef i32 @_Z7RandIntii(i32 noundef 0, i32 noundef 1)
  br label %37

29:                                               ; preds = %23
  %30 = tail call noundef i32 @_ZNK7CGenome8NumGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %2)
  %31 = tail call noundef i32 @_ZNK7CGenome8NumGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %3)
  %32 = icmp sge i32 %30, %31
  %. = zext i1 %32 to i32
  br label %37

33:                                               ; preds = %4
  %34 = tail call noundef double @_ZNK7CGenome7FitnessEv(ptr noundef nonnull align 8 dereferenceable(108) %2)
  %35 = tail call noundef double @_ZNK7CGenome7FitnessEv(ptr noundef nonnull align 8 dereferenceable(108) %3)
  %36 = fcmp ule double %34, %35
  %.39 = zext i1 %36 to i32
  br label %37

37:                                               ; preds = %33, %29, %27
  %.031 = phi i32 [ %28, %27 ], [ %., %29 ], [ %.39, %33 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  call void @_ZNSt6vectorI11SNeuronGeneSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  call void @_ZNSt6vectorI9SLinkGeneSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %38 = call ptr @_ZN7CGenome12StartOfGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %2)
  store ptr %38, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %39 = call ptr @_ZN7CGenome12StartOfGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %3)
  store ptr %39, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  call void @_ZN9SLinkGeneC2Ev(ptr noundef nonnull align 8 dereferenceable(25) %10)
  %40 = icmp eq i32 %.031, 1
  %41 = icmp eq i32 %.031, 0
  %42 = getelementptr inbounds i8, ptr %10, i64 4
  %43 = getelementptr inbounds i8, ptr %10, i64 8
  %44 = getelementptr inbounds i8, ptr %10, i64 12
  br label %45

45:                                               ; preds = %117, %37
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %46 = call ptr @_ZN7CGenome10EndOfGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %2)
  store ptr %46, ptr %11, align 8
  %47 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIP9SLinkGeneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  br i1 %47, label %48, label %.critedge41

48:                                               ; preds = %45
  %49 = call ptr @_ZN7CGenome10EndOfGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %3)
  store ptr %49, ptr %12, align 8
  %50 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIP9SLinkGeneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br i1 %50, label %119, label %51

.critedge41:                                      ; preds = %45
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %51

51:                                               ; preds = %.critedge41, %48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %52 = call ptr @_ZN7CGenome10EndOfGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %2)
  store ptr %52, ptr %13, align 8
  %53 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIP9SLinkGeneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  br i1 %53, label %54, label %.critedge

54:                                               ; preds = %51
  %55 = call ptr @_ZN7CGenome10EndOfGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %3)
  store ptr %55, ptr %14, align 8
  %56 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP9SLinkGeneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br i1 %56, label %57, label %60

57:                                               ; preds = %54
  br i1 %40, label %58, label %.sink.split

58:                                               ; preds = %57
  %59 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(25) %10, ptr noundef nonnull align 8 dereferenceable(25) %59, i64 25, i1 false), !tbaa.struct !5
  br label %.sink.split

.loopexit:                                        ; preds = %.invoke, %115, %117
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %147

.loopexit.split-lp:                               ; preds = %119, %._crit_edge
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %147

.critedge:                                        ; preds = %51
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %60

60:                                               ; preds = %.critedge, %54
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %61 = call ptr @_ZN7CGenome10EndOfGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %3)
  store ptr %61, ptr %15, align 8
  %62 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIP9SLinkGeneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  br i1 %62, label %63, label %.critedge2

63:                                               ; preds = %60
  %64 = call ptr @_ZN7CGenome10EndOfGenesEv(ptr noundef nonnull align 8 dereferenceable(108) %2)
  store ptr %64, ptr %16, align 8
  %65 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP9SLinkGeneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br i1 %65, label %66, label %69

66:                                               ; preds = %63
  br i1 %41, label %67, label %.sink.split

67:                                               ; preds = %66
  %68 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(25) %10, ptr noundef nonnull align 8 dereferenceable(25) %68, i64 25, i1 false), !tbaa.struct !5
  br label %.sink.split

.critedge2:                                       ; preds = %60
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br label %69

69:                                               ; preds = %.critedge2, %63
  %70 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %71 = getelementptr inbounds i8, ptr %70, i64 4
  %72 = load i32, ptr %71, align 4, !tbaa !14
  %73 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %74 = getelementptr inbounds i8, ptr %73, i64 4
  %75 = load i32, ptr %74, align 4, !tbaa !14
  %76 = icmp slt i32 %72, %75
  br i1 %76, label %77, label %80

77:                                               ; preds = %69
  br i1 %41, label %78, label %.sink.split

78:                                               ; preds = %77
  %79 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(25) %10, ptr noundef nonnull align 8 dereferenceable(25) %79, i64 25, i1 false), !tbaa.struct !5
  br label %.sink.split

80:                                               ; preds = %69
  %81 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %82 = getelementptr inbounds i8, ptr %81, i64 4
  %83 = load i32, ptr %82, align 4, !tbaa !14
  %84 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %85 = getelementptr inbounds i8, ptr %84, i64 4
  %86 = load i32, ptr %85, align 4, !tbaa !14
  %87 = icmp slt i32 %83, %86
  br i1 %87, label %88, label %91

88:                                               ; preds = %80
  br i1 %40, label %89, label %.sink.split

89:                                               ; preds = %88
  %90 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(25) %10, ptr noundef nonnull align 8 dereferenceable(25) %90, i64 25, i1 false), !tbaa.struct !5
  br label %.sink.split

91:                                               ; preds = %80
  %92 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %93 = getelementptr inbounds i8, ptr %92, i64 4
  %94 = load i32, ptr %93, align 4, !tbaa !14
  %95 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %96 = getelementptr inbounds i8, ptr %95, i64 4
  %97 = load i32, ptr %96, align 4, !tbaa !14
  %98 = icmp eq i32 %94, %97
  br i1 %98, label %99, label %105

99:                                               ; preds = %91
  %100 = call noundef double @_Z10RandDoublev()
  %101 = fcmp olt double %100, 5.000000e-01
  %.46 = select i1 %101, ptr %8, ptr %9
  %102 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %.46) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(25) %10, ptr noundef nonnull align 8 dereferenceable(25) %102, i64 25, i1 false)
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br label %.sink.split

.sink.split:                                      ; preds = %88, %89, %77, %78, %66, %67, %57, %58, %99
  %.sink = phi ptr [ %9, %99 ], [ %9, %58 ], [ %9, %57 ], [ %8, %67 ], [ %8, %66 ], [ %8, %78 ], [ %8, %77 ], [ %9, %89 ], [ %9, %88 ]
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP9SLinkGeneSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %.sink) #7
  br label %105

105:                                              ; preds = %.sink.split, %91
  %106 = call noundef i64 @_ZNKSt6vectorI9SLinkGeneSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %107 = icmp eq i64 %106, 0
  br i1 %107, label %.invoke, label %108

.invoke:                                          ; preds = %108, %105
  invoke void @_ZNSt6vectorI9SLinkGeneSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(25) %10)
          to label %115 unwind label %.loopexit

108:                                              ; preds = %105
  %109 = call noundef i64 @_ZNKSt6vectorI9SLinkGeneSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %110 = add i64 %109, -1
  %111 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNSt6vectorI9SLinkGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %110) #7
  %112 = getelementptr inbounds i8, ptr %111, i64 4
  %113 = load i32, ptr %112, align 4, !tbaa !14
  %114 = load i32, ptr %42, align 4, !tbaa !14
  %.not = icmp eq i32 %113, %114
  br i1 %.not, label %115, label %.invoke

115:                                              ; preds = %.invoke, %108
  %116 = load i32, ptr %43, align 8, !tbaa !16
  invoke void @_ZN3Cga11AddNeuronIDEiRSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(265) %1, i32 noundef %116, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %117 unwind label %.loopexit

117:                                              ; preds = %115
  %118 = load i32, ptr %44, align 4, !tbaa !17
  invoke void @_ZN3Cga11AddNeuronIDEiRSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(265) %1, i32 noundef %118, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %45 unwind label %.loopexit, !llvm.loop !18

119:                                              ; preds = %48
  %120 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %121 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %120, ptr %121)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %119
  %122 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %.not43 = icmp eq i64 %122, 0
  br i1 %.not43, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %123 = getelementptr inbounds i8, ptr %1, i64 144
  br label %127

._crit_edge:                                      ; preds = %132, %.preheader
  %124 = getelementptr inbounds i8, ptr %1, i64 156
  %125 = load i32, ptr %124, align 4, !tbaa !20
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %124, align 4, !tbaa !20
  invoke void @_ZNSt6vectorI11SNeuronGeneSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %137 unwind label %.loopexit.split-lp

127:                                              ; preds = %.lr.ph, %132
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %132 ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %17) #7
  %128 = load ptr, ptr %123, align 8, !tbaa !36
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv) #7
  %130 = load i32, ptr %129, align 4, !tbaa !10
  invoke void @_ZN11CInnovation18CreateNeuronFromIDEi(ptr dead_on_unwind nonnull writable sret(%struct.SNeuronGene) align 8 %17, ptr noundef nonnull align 8 dereferenceable(32) %128, i32 noundef %130)
          to label %131 unwind label %135

131:                                              ; preds = %127
  invoke void @_ZNSt6vectorI11SNeuronGeneSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(40) %17)
          to label %132 unwind label %135

132:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %17) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %133 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %134 = icmp ugt i64 %133, %indvars.iv.next
  br i1 %134, label %127, label %._crit_edge, !llvm.loop !37

135:                                              ; preds = %131, %127
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %17) #7
  br label %147

137:                                              ; preds = %._crit_edge
  invoke void @_ZNSt6vectorI9SLinkGeneSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %138 unwind label %142

138:                                              ; preds = %137
  %139 = call noundef i32 @_ZNK7CGenome9NumInputsEv(ptr noundef nonnull align 8 dereferenceable(108) %2)
  %140 = call noundef i32 @_ZNK7CGenome10NumOutputsEv(ptr noundef nonnull align 8 dereferenceable(108) %2)
  invoke void @_ZN7CGenomeC1EiSt6vectorI11SNeuronGeneSaIS1_EES0_I9SLinkGeneSaIS4_EEii(ptr noundef nonnull align 8 dereferenceable(108) %0, i32 noundef %125, ptr noundef nonnull %18, ptr noundef nonnull %19, i32 noundef %139, i32 noundef %140)
          to label %141 unwind label %144

141:                                              ; preds = %138
  call void @_ZNSt6vectorI9SLinkGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  call void @_ZNSt6vectorI11SNeuronGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @_ZNSt6vectorI9SLinkGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @_ZNSt6vectorI11SNeuronGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  ret void

142:                                              ; preds = %137
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %146

144:                                              ; preds = %138
  %145 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI9SLinkGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  br label %146

146:                                              ; preds = %144, %142
  %.pn = phi { ptr, i32 } [ %145, %144 ], [ %143, %142 ]
  call void @_ZNSt6vectorI11SNeuronGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  br label %147

147:                                              ; preds = %.loopexit, %.loopexit.split-lp, %146, %135
  %.pn37 = phi { ptr, i32 } [ %136, %135 ], [ %.pn, %146 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @_ZNSt6vectorI9SLinkGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @_ZNSt6vectorI11SNeuronGeneSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  resume { ptr, i32 } %.pn37
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z7RandIntii(i32 noundef, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) local_unnamed_addr #4

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7CGenome7FitnessEv(ptr noundef nonnull align 8 dereferenceable(108)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7CGenome8NumGenesEv(ptr noundef nonnull align 8 dereferenceable(108)) local_unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxeqIP9SLinkGeneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIP9SLinkGeneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

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

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

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

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

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

declare void @_ZN11CInnovation18CreateNeuronFromIDEi(ptr dead_on_unwind writable sret(%struct.SNeuronGene) align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #6

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7CGenome9NumInputsEv(ptr noundef nonnull align 8 dereferenceable(108)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7CGenome10NumOutputsEv(ptr noundef nonnull align 8 dereferenceable(108)) local_unnamed_addr #1 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { inlinehint 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 = { inlinehint 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { "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 }

!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 = !{i64 0, i64 1, !6, i64 4, i64 4, !10, i64 8, i64 4, !10, i64 12, i64 4, !10, i64 16, i64 8, !12, i64 24, i64 1, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !8, i64 0}
!14 = !{!15, !11, i64 4}
!15 = !{!"_ZTS9SLinkGene", !7, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !13, i64 16, !7, i64 24}
!16 = !{!15, !11, i64 8}
!17 = !{!15, !11, i64 12}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !11, i64 156}
!21 = !{!"_ZTS3Cga", !22, i64 0, !22, i64 24, !22, i64 48, !22, i64 72, !22, i64 96, !27, i64 120, !26, i64 144, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !13, i64 168, !13, i64 176, !11, i64 184, !13, i64 192, !31, i64 200, !31, i64 224, !13, i64 248, !7, i64 256, !7, i64 257, !35, i64 260, !7, i64 264}
!22 = !{!"_ZTSSt6vectorI7CGenomeSaIS0_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseI7CGenomeSaIS0_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseI7CGenomeSaIS0_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseI7CGenomeSaIS0_EE17_Vector_impl_dataE", !26, i64 0, !26, i64 8, !26, i64 16}
!26 = !{!"any pointer", !8, i64 0}
!27 = !{!"_ZTSSt6vectorI8CSpeciesSaIS0_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseI8CSpeciesSaIS0_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseI8CSpeciesSaIS0_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseI8CSpeciesSaIS0_EE17_Vector_impl_dataE", !26, i64 0, !26, i64 8, !26, i64 16}
!31 = !{!"_ZTSSt6vectorI10SplitDepthSaIS0_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseI10SplitDepthSaIS0_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseI10SplitDepthSaIS0_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseI10SplitDepthSaIS0_EE17_Vector_impl_dataE", !26, i64 0, !26, i64 8, !26, i64 16}
!35 = !{!"_ZTS13UnderFlowMode", !8, i64 0}
!36 = !{!21, !26, i64 144}
!37 = distinct !{!37, !19}


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