; LLVM IR from hoodoer/ENNEoS :: enneosEncoder/genotype.ll (ZN7CGenome15CreatePhenotypeEv)

; 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.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<SNeuron *, std::allocator<SNeuron *>>::_Vector_impl" }
%"struct.std::_Vector_base<SNeuron *, std::allocator<SNeuron *>>::_Vector_impl" = type { %"struct.std::_Vector_base<SNeuron *, std::allocator<SNeuron *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SNeuron *, std::allocator<SNeuron *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.SLink = type <{ double, ptr, ptr, i8, [7 x i8] }>
%class.CGenome = type <{ i32, [4 x i8], %"class.std::vector", %"class.std::vector.0", ptr, i32, [4 x i8], double, double, double, i32, i32, i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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 }
%struct.SNeuronGene = type { i32, i32, i8, double, double, double }
%struct.SLinkGene = type <{ i8, [3 x i8], i32, i32, i32, double, i8, [7 x i8] }>
%struct.SNeuron = type { i32, i32, double, double, double, double, double, %"class.std::vector.15", %"class.std::vector.15" }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<SLink, std::allocator<SLink>>::_Vector_impl" }
%"struct.std::_Vector_base<SLink, std::allocator<SLink>>::_Vector_impl" = type { %"struct.std::_Vector_base<SLink, std::allocator<SLink>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SLink, std::allocator<SLink>>::_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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN7CGenome15CreatePhenotypeEv(ptr noundef nonnull align 8 dereferenceable(108) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::vector.5", align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %struct.SLink, align 8
  %13 = alloca %"class.std::vector.5", align 8
  %14 = alloca i1, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8
  call void @_ZN7CGenome15DeletePhenotypeEv(ptr noundef nonnull align 8 dereferenceable(108) %15)
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #6
  call void @_ZNSt6vectorIP7SNeuronSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %16

16:                                               ; preds = %58, %1
  %17 = load i32, ptr %4, align 4, !tbaa !9
  %18 = zext i32 %17 to i64
  %19 = getelementptr inbounds %class.CGenome, ptr %15, i32 0, i32 2
  %20 = call noundef i64 @_ZNKSt6vectorI11SNeuronGeneSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  %21 = icmp ult i64 %18, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %70

23:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %24 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 96) #7
          to label %25 unwind label %61

25:                                               ; preds = %23
  %26 = getelementptr inbounds %class.CGenome, ptr %15, i32 0, i32 2
  %27 = load i32, ptr %4, align 4, !tbaa !9
  %28 = zext i32 %27 to i64
  %29 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI11SNeuronGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %28) #6
  %30 = getelementptr inbounds %struct.SNeuronGene, ptr %29, i32 0, i32 1
  %31 = load i32, ptr %30, align 4, !tbaa !11
  %32 = getelementptr inbounds %class.CGenome, ptr %15, i32 0, i32 2
  %33 = load i32, ptr %4, align 4, !tbaa !9
  %34 = zext i32 %33 to i64
  %35 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI11SNeuronGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %34) #6
  %36 = getelementptr inbounds %struct.SNeuronGene, ptr %35, i32 0, i32 0
  %37 = load i32, ptr %36, align 8, !tbaa !16
  %38 = getelementptr inbounds %class.CGenome, ptr %15, i32 0, i32 2
  %39 = load i32, ptr %4, align 4, !tbaa !9
  %40 = zext i32 %39 to i64
  %41 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI11SNeuronGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %40) #6
  %42 = getelementptr inbounds %struct.SNeuronGene, ptr %41, i32 0, i32 3
  %43 = load double, ptr %42, align 8, !tbaa !17
  %44 = getelementptr inbounds %class.CGenome, ptr %15, i32 0, i32 2
  %45 = load i32, ptr %4, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI11SNeuronGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %46) #6
  %48 = getelementptr inbounds %struct.SNeuronGene, ptr %47, i32 0, i32 4
  %49 = load double, ptr %48, align 8, !tbaa !18
  %50 = getelementptr inbounds %class.CGenome, ptr %15, i32 0, i32 2
  %51 = load i32, ptr %4, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  %53 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI11SNeuronGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %52) #6
  %54 = getelementptr inbounds %struct.SNeuronGene, ptr %53, i32 0, i32 5
  %55 = load double, ptr %54, align 8, !tbaa !19
  invoke void @_ZN7SNeuronC2E11neuron_typeiddd(ptr noundef nonnull align 8 dereferenceable(96) %24, i32 noundef %31, i32 noundef %37, double noundef %43, double noundef %49, double noundef %55)
          to label %56 unwind label %65

56:                                               ; preds = %25
  store ptr %24, ptr %5, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP7SNeuronSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %57 unwind label %61

57:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %4, align 4, !tbaa !9
  %60 = add i32 %59, 1
  store i32 %60, ptr %4, align 4, !tbaa !9
  br label %16, !llvm.loop !20

61:                                               ; preds = %56, %23
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %6, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %7, align 4
  br label %69

65:                                               ; preds = %25
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %6, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %24, i64 noundef 96) #8
  br label %69

69:                                               ; preds = %65, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %181

70:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %148, %70
  %72 = load i32, ptr %8, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds %class.CGenome, ptr %15, i32 0, i32 3
  %75 = call noundef i64 @_ZNKSt6vectorI9SLinkGeneSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %74) #6
  %76 = icmp ult i64 %73, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %151

78:                                               ; preds = %71
  %79 = getelementptr inbounds %class.CGenome, ptr %15, i32 0, i32 3
  %80 = load i32, ptr %8, align 4, !tbaa !9
  %81 = zext i32 %80 to i64
  %82 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNSt6vectorI9SLinkGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %81) #6
  %83 = getelementptr inbounds %struct.SLinkGene, ptr %82, i32 0, i32 0
  %84 = load i8, ptr %83, align 8, !tbaa !22, !range !24, !noundef !25
  %85 = trunc i8 %84 to i1
  br i1 %85, label %86, label %147

86:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %87 = getelementptr inbounds %class.CGenome, ptr %15, i32 0, i32 3
  %88 = load i32, ptr %8, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNSt6vectorI9SLinkGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %89) #6
  %91 = getelementptr inbounds %struct.SLinkGene, ptr %90, i32 0, i32 3
  %92 = load i32, ptr %91, align 8, !tbaa !26
  %93 = invoke noundef i32 @_ZN7CGenome13GetElementPosEi(ptr noundef nonnull align 8 dereferenceable(108) %15, i32 noundef %92)
          to label %94 unwind label %133

94:                                               ; preds = %86
  store i32 %93, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %95 = load i32, ptr %9, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SNeuronSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %96) #6
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  store ptr %98, ptr %10, align 8, !tbaa !5
  %99 = getelementptr inbounds %class.CGenome, ptr %15, i32 0, i32 3
  %100 = load i32, ptr %8, align 4, !tbaa !9
  %101 = zext i32 %100 to i64
  %102 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNSt6vectorI9SLinkGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %101) #6
  %103 = getelementptr inbounds %struct.SLinkGene, ptr %102, i32 0, i32 4
  %104 = load i32, ptr %103, align 4, !tbaa !27
  %105 = invoke noundef i32 @_ZN7CGenome13GetElementPosEi(ptr noundef nonnull align 8 dereferenceable(108) %15, i32 noundef %104)
          to label %106 unwind label %137

106:                                              ; preds = %94
  store i32 %105, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %107 = load i32, ptr %9, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SNeuronSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %108) #6
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  store ptr %110, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #6
  %111 = getelementptr inbounds %class.CGenome, ptr %15, i32 0, i32 3
  %112 = load i32, ptr %8, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNSt6vectorI9SLinkGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %113) #6
  %115 = getelementptr inbounds %struct.SLinkGene, ptr %114, i32 0, i32 5
  %116 = load double, ptr %115, align 8, !tbaa !28
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = getelementptr inbounds %class.CGenome, ptr %15, i32 0, i32 3
  %120 = load i32, ptr %8, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  %122 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNSt6vectorI9SLinkGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %121) #6
  %123 = getelementptr inbounds %struct.SLinkGene, ptr %122, i32 0, i32 6
  %124 = load i8, ptr %123, align 8, !tbaa !29, !range !24, !noundef !25
  %125 = trunc i8 %124 to i1
  invoke void @_ZN5SLinkC2EdP7SNeuronS1_b(ptr noundef nonnull align 8 dereferenceable(25) %12, double noundef %116, ptr noundef %117, ptr noundef %118, i1 noundef zeroext %125)
          to label %126 unwind label %141

126:                                              ; preds = %106
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.SNeuron, ptr %127, i32 0, i32 8
  invoke void @_ZNSt6vectorI5SLinkSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %128, ptr noundef nonnull align 8 dereferenceable(25) %12)
          to label %129 unwind label %141

129:                                              ; preds = %126
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.SNeuron, ptr %130, i32 0, i32 7
  invoke void @_ZNSt6vectorI5SLinkSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %131, ptr noundef nonnull align 8 dereferenceable(25) %12)
          to label %132 unwind label %141

132:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %147

133:                                              ; preds = %86
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %6, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %7, align 4
  br label %146

137:                                              ; preds = %94
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %6, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %7, align 4
  br label %145

141:                                              ; preds = %129, %126, %106
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %6, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %145

145:                                              ; preds = %141, %137
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %146

146:                                              ; preds = %145, %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %181

147:                                              ; preds = %132, %78
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %8, align 4, !tbaa !9
  %150 = add i32 %149, 1
  store i32 %150, ptr %8, align 4, !tbaa !9
  br label %71, !llvm.loop !30

151:                                              ; preds = %77
  %152 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 72) #7
          to label %153 unwind label %165

153:                                              ; preds = %151
  store i1 true, ptr %14, align 1
  invoke void @_ZNSt6vectorIP7SNeuronSaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %154 unwind label %169

154:                                              ; preds = %153
  %155 = getelementptr inbounds %class.CGenome, ptr %15, i32 0, i32 5
  %156 = load i32, ptr %155, align 8, !tbaa !31
  %157 = getelementptr inbounds %class.CGenome, ptr %15, i32 0, i32 0
  %158 = load i32, ptr %157, align 8, !tbaa !41
  %159 = getelementptr inbounds %class.CGenome, ptr %15, i32 0, i32 7
  %160 = load double, ptr %159, align 8, !tbaa !42
  invoke void @_ZN10CNeuralNetC1ESt6vectorIP7SNeuronSaIS2_EEiid(ptr noundef nonnull align 8 dereferenceable(72) %152, ptr noundef %13, i32 noundef %156, i32 noundef %158, double noundef %160)
          to label %161 unwind label %173

161:                                              ; preds = %154
  store i1 false, ptr %14, align 1
  %162 = getelementptr inbounds %class.CGenome, ptr %15, i32 0, i32 4
  store ptr %152, ptr %162, align 8, !tbaa !43
  call void @_ZNSt6vectorIP7SNeuronSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %163 = getelementptr inbounds %class.CGenome, ptr %15, i32 0, i32 4
  %164 = load ptr, ptr %163, align 8, !tbaa !43
  call void @_ZNSt6vectorIP7SNeuronSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  ret ptr %164

165:                                              ; preds = %151
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %6, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %7, align 4
  br label %181

169:                                              ; preds = %153
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %6, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %7, align 4
  br label %177

173:                                              ; preds = %154
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %6, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %7, align 4
  call void @_ZNSt6vectorIP7SNeuronSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br label %177

177:                                              ; preds = %173, %169
  %178 = load i1, ptr %14, align 1
  br i1 %178, label %179, label %180

179:                                              ; preds = %177
  call void @_ZdlPvm(ptr noundef %152, i64 noundef 72) #8
  br label %180

180:                                              ; preds = %179, %177
  br label %181

181:                                              ; preds = %180, %165, %146, %69
  call void @_ZNSt6vectorIP7SNeuronSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  br label %182

182:                                              ; preds = %181
  %183 = load ptr, ptr %6, align 8
  %184 = load i32, ptr %7, align 4
  %185 = insertvalue { ptr, i32 } poison, ptr %183, 0
  %186 = insertvalue { ptr, i32 } %185, i32 %184, 1
  resume { ptr, i32 } %186
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7SNeuronC2E11neuron_typeiddd(ptr noundef nonnull align 8 dereferenceable(96), i32 noundef, i32 noundef, double noundef, double noundef, double noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI9SLinkGeneSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 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) #1 align 2

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

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

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

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

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

declare void @_ZN10CNeuralNetC1ESt6vectorIP7SNeuronSaIS2_EEiid(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, i32 noundef, i32 noundef, double noundef) unnamed_addr #5

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

attributes #0 = { 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 = { 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 #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 = { 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 #5 = { "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 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { 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, !13, i64 4}
!12 = !{!"_ZTS11SNeuronGene", !10, i64 0, !13, i64 4, !14, i64 8, !15, i64 16, !15, i64 24, !15, i64 32}
!13 = !{!"_ZTS11neuron_type", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!12, !10, i64 0}
!17 = !{!12, !15, i64 16}
!18 = !{!12, !15, i64 24}
!19 = !{!12, !15, i64 32}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !14, i64 0}
!23 = !{!"_ZTS9SLinkGene", !14, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !15, i64 16, !14, i64 24}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!23, !10, i64 8}
!27 = !{!23, !10, i64 12}
!28 = !{!23, !15, i64 16}
!29 = !{!23, !14, i64 24}
!30 = distinct !{!30, !21}
!31 = !{!32, !10, i64 64}
!32 = !{!"_ZTS7CGenome", !10, i64 0, !33, i64 8, !37, i64 32, !6, i64 56, !10, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !10, i64 96, !10, i64 100, !10, i64 104}
!33 = !{!"_ZTSSt6vectorI11SNeuronGeneSaIS0_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseI11SNeuronGeneSaIS0_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseI11SNeuronGeneSaIS0_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseI11SNeuronGeneSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!"_ZTSSt6vectorI9SLinkGeneSaIS0_EE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseI9SLinkGeneSaIS0_EE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseI9SLinkGeneSaIS0_EE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseI9SLinkGeneSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!41 = !{!32, !10, i64 0}
!42 = !{!32, !15, i64 72}
!43 = !{!32, !6, i64 56}


; 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.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<SNeuron *, std::allocator<SNeuron *>>::_Vector_impl" }
%"struct.std::_Vector_base<SNeuron *, std::allocator<SNeuron *>>::_Vector_impl" = type { %"struct.std::_Vector_base<SNeuron *, std::allocator<SNeuron *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SNeuron *, std::allocator<SNeuron *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.SLink = type <{ double, ptr, ptr, i8, [7 x i8] }>

; 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 noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI11SNeuronGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN7CGenome15CreatePhenotypeEv(ptr noundef nonnull align 8 dereferenceable(108) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector.5", align 8
  %3 = alloca ptr, align 8
  %4 = alloca %struct.SLink, align 8
  %5 = alloca %"class.std::vector.5", align 8
  tail call void @_ZN7CGenome15DeletePhenotypeEv(ptr noundef nonnull align 8 dereferenceable(108) %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  call void @_ZNSt6vectorIP7SNeuronSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = call noundef i64 @_ZNKSt6vectorI11SNeuronGeneSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %.not = icmp eq i64 %7, 0
  br i1 %.not, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %27, %1
  %8 = getelementptr inbounds i8, ptr %0, i64 32
  %9 = call noundef i64 @_ZNKSt6vectorI9SLinkGeneSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %.not40 = icmp eq i64 %9, 0
  br i1 %.not40, label %._crit_edge, label %.lr.ph39

.lr.ph:                                           ; preds = %1, %27
  %10 = phi i64 [ %29, %27 ], [ 0, %1 ]
  %.037 = phi i32 [ %28, %27 ], [ 0, %1 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %11 = invoke noalias noundef nonnull dereferenceable(96) ptr @_Znwm(i64 noundef 96) #7
          to label %12 unwind label %32

12:                                               ; preds = %.lr.ph
  %13 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI11SNeuronGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %10) #6
  %14 = getelementptr inbounds i8, ptr %13, i64 4
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI11SNeuronGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %10) #6
  %17 = load i32, ptr %16, align 8, !tbaa !13
  %18 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI11SNeuronGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %10) #6
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  %20 = load double, ptr %19, align 8, !tbaa !14
  %21 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI11SNeuronGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %10) #6
  %22 = getelementptr inbounds i8, ptr %21, i64 24
  %23 = load double, ptr %22, align 8, !tbaa !15
  %24 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI11SNeuronGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %10) #6
  %25 = getelementptr inbounds i8, ptr %24, i64 32
  %26 = load double, ptr %25, align 8, !tbaa !16
  call void @_ZN7SNeuronC2E11neuron_typeiddd(ptr noundef nonnull align 8 dereferenceable(96) %11, i32 noundef %15, i32 noundef %17, double noundef %20, double noundef %23, double noundef %26)
  store ptr %11, ptr %3, align 8, !tbaa !17
  invoke void @_ZNSt6vectorIP7SNeuronSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %27 unwind label %32

27:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %28 = add i32 %.037, 1
  %29 = zext i32 %28 to i64
  %30 = call noundef i64 @_ZNKSt6vectorI11SNeuronGeneSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %31 = icmp ugt i64 %30, %29
  br i1 %31, label %.lr.ph, label %.preheader, !llvm.loop !19

32:                                               ; preds = %12, %.lr.ph
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %95

._crit_edge:                                      ; preds = %73, %.preheader
  %34 = invoke noalias noundef nonnull dereferenceable(72) ptr @_Znwm(i64 noundef 72) #7
          to label %78 unwind label %88

.lr.ph39:                                         ; preds = %.preheader, %73
  %35 = phi i64 [ %75, %73 ], [ 0, %.preheader ]
  %.02438 = phi i32 [ %74, %73 ], [ 0, %.preheader ]
  %36 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNSt6vectorI9SLinkGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %35) #6
  %37 = load i8, ptr %36, align 8, !tbaa !21, !range !23, !noundef !24
  %38 = trunc nuw i8 %37 to i1
  br i1 %38, label %39, label %73

39:                                               ; preds = %.lr.ph39
  %40 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNSt6vectorI9SLinkGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %35) #6
  %41 = getelementptr inbounds i8, ptr %40, i64 8
  %42 = load i32, ptr %41, align 8, !tbaa !25
  %43 = invoke noundef i32 @_ZN7CGenome13GetElementPosEi(ptr noundef nonnull align 8 dereferenceable(108) %0, i32 noundef %42)
          to label %44 unwind label %67

44:                                               ; preds = %39
  %45 = sext i32 %43 to i64
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SNeuronSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %45) #6
  %47 = load ptr, ptr %46, align 8, !tbaa !17
  %48 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNSt6vectorI9SLinkGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %35) #6
  %49 = getelementptr inbounds i8, ptr %48, i64 12
  %50 = load i32, ptr %49, align 4, !tbaa !26
  %51 = invoke noundef i32 @_ZN7CGenome13GetElementPosEi(ptr noundef nonnull align 8 dereferenceable(108) %0, i32 noundef %50)
          to label %52 unwind label %69

52:                                               ; preds = %44
  %53 = sext i32 %51 to i64
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SNeuronSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %53) #6
  %55 = load ptr, ptr %54, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  %56 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNSt6vectorI9SLinkGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %35) #6
  %57 = getelementptr inbounds i8, ptr %56, i64 16
  %58 = load double, ptr %57, align 8, !tbaa !27
  %59 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNSt6vectorI9SLinkGeneSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %35) #6
  %60 = getelementptr inbounds i8, ptr %59, i64 24
  %61 = load i8, ptr %60, align 8, !tbaa !28, !range !23, !noundef !24
  %62 = trunc nuw i8 %61 to i1
  call void @_ZN5SLinkC2EdP7SNeuronS1_b(ptr noundef nonnull align 8 dereferenceable(25) %4, double noundef %58, ptr noundef %47, ptr noundef %55, i1 noundef zeroext %62)
  %63 = getelementptr inbounds i8, ptr %47, i64 72
  invoke void @_ZNSt6vectorI5SLinkSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %63, ptr noundef nonnull align 8 dereferenceable(25) %4)
          to label %64 unwind label %71

64:                                               ; preds = %52
  %65 = getelementptr inbounds i8, ptr %55, i64 48
  invoke void @_ZNSt6vectorI5SLinkSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %65, ptr noundef nonnull align 8 dereferenceable(25) %4)
          to label %66 unwind label %71

66:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  br label %73

67:                                               ; preds = %39
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %95

69:                                               ; preds = %44
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %95

71:                                               ; preds = %64, %52
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  br label %95

73:                                               ; preds = %.lr.ph39, %66
  %74 = add i32 %.02438, 1
  %75 = zext i32 %74 to i64
  %76 = call noundef i64 @_ZNKSt6vectorI9SLinkGeneSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %77 = icmp ugt i64 %76, %75
  br i1 %77, label %.lr.ph39, label %._crit_edge, !llvm.loop !29

78:                                               ; preds = %._crit_edge
  invoke void @_ZNSt6vectorIP7SNeuronSaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %79 unwind label %90

79:                                               ; preds = %78
  %80 = getelementptr inbounds i8, ptr %0, i64 64
  %81 = load i32, ptr %80, align 8, !tbaa !30
  %82 = load i32, ptr %0, align 8, !tbaa !40
  %83 = getelementptr inbounds i8, ptr %0, i64 72
  %84 = load double, ptr %83, align 8, !tbaa !41
  invoke void @_ZN10CNeuralNetC1ESt6vectorIP7SNeuronSaIS2_EEiid(ptr noundef nonnull align 8 dereferenceable(72) %34, ptr noundef nonnull %5, i32 noundef %81, i32 noundef %82, double noundef %84)
          to label %85 unwind label %92

85:                                               ; preds = %79
  %86 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %34, ptr %86, align 8, !tbaa !42
  call void @_ZNSt6vectorIP7SNeuronSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %87 = load ptr, ptr %86, align 8, !tbaa !42
  call void @_ZNSt6vectorIP7SNeuronSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  ret ptr %87

88:                                               ; preds = %._crit_edge
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %95

90:                                               ; preds = %78
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %94

92:                                               ; preds = %79
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIP7SNeuronSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %94

94:                                               ; preds = %90, %92
  %.pn = phi { ptr, i32 } [ %93, %92 ], [ %91, %90 ]
  call void @_ZdlPvm(ptr noundef nonnull %34, i64 noundef 72) #8
  br label %95

95:                                               ; preds = %67, %71, %69, %94, %88, %32
  %.pn35 = phi { ptr, i32 } [ %33, %32 ], [ %.pn, %94 ], [ %89, %88 ], [ %68, %67 ], [ %72, %71 ], [ %70, %69 ]
  call void @_ZNSt6vectorIP7SNeuronSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn35
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7SNeuronC2E11neuron_typeiddd(ptr noundef nonnull align 8 dereferenceable(96), i32 noundef, i32 noundef, double noundef, double noundef, double noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP7SNeuronSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 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 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 noundef i32 @_ZN7CGenome13GetElementPosEi(ptr noundef nonnull align 8 dereferenceable(108), i32 noundef) local_unnamed_addr #3 align 2

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

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

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

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

declare void @_ZN10CNeuralNetC1ESt6vectorIP7SNeuronSaIS2_EEiid(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, i32 noundef, i32 noundef, double noundef) unnamed_addr #5

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

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 = { 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 #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 = { 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 #5 = { "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 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { 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, !10, i64 4}
!6 = !{!"_ZTS11SNeuronGene", !7, i64 0, !10, i64 4, !11, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS11neuron_type", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"double", !8, i64 0}
!13 = !{!6, !7, i64 0}
!14 = !{!6, !12, i64 16}
!15 = !{!6, !12, i64 24}
!16 = !{!6, !12, i64 32}
!17 = !{!18, !18, i64 0}
!18 = !{!"any pointer", !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !11, i64 0}
!22 = !{!"_ZTS9SLinkGene", !11, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !12, i64 16, !11, i64 24}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!22, !7, i64 8}
!26 = !{!22, !7, i64 12}
!27 = !{!22, !12, i64 16}
!28 = !{!22, !11, i64 24}
!29 = distinct !{!29, !20}
!30 = !{!31, !7, i64 64}
!31 = !{!"_ZTS7CGenome", !7, i64 0, !32, i64 8, !36, i64 32, !18, i64 56, !7, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !7, i64 96, !7, i64 100, !7, i64 104}
!32 = !{!"_ZTSSt6vectorI11SNeuronGeneSaIS0_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseI11SNeuronGeneSaIS0_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseI11SNeuronGeneSaIS0_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseI11SNeuronGeneSaIS0_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!36 = !{!"_ZTSSt6vectorI9SLinkGeneSaIS0_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseI9SLinkGeneSaIS0_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseI9SLinkGeneSaIS0_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseI9SLinkGeneSaIS0_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!40 = !{!31, !7, i64 0}
!41 = !{!31, !12, i64 72}
!42 = !{!31, !18, i64 56}


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