; LLVM IR from FidoProject/Fido :: src (NeuralNet)

; 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.net::Layer" = type { ptr, %"class.std::vector.3" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<net::Neuron, std::allocator<net::Neuron>>::_Vector_impl" }
%"struct.std::_Vector_base<net::Neuron, std::allocator<net::Neuron>>::_Vector_impl" = type { %"struct.std::_Vector_base<net::Neuron, std::allocator<net::Neuron>>::_Vector_impl_data" }
%"struct.std::_Vector_base<net::Neuron, std::allocator<net::Neuron>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.net::Neuron" = type { %"class.std::vector.8" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.net::NeuralNet" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<net::Layer, std::allocator<net::Layer>>::_Vector_impl" }
%"struct.std::_Vector_base<net::Layer, std::allocator<net::Layer>>::_Vector_impl" = type { %"struct.std::_Vector_base<net::Layer, std::allocator<net::Layer>>::_Vector_impl_data" }
%"struct.std::_Vector_base<net::Layer, std::allocator<net::Layer>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3net9NeuralNetC2EjjjjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"class.net::Layer", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.net::Neuron", align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.net::Layer", align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.net::Neuron", align 8
  %23 = alloca %"class.net::Layer", align 8
  %24 = alloca i32, align 4
  %25 = alloca %"class.net::Neuron", align 8
  %26 = alloca i32, align 4
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !5
  %28 = load ptr, ptr %7, align 8
  %29 = getelementptr inbounds %"class.net::NeuralNet", ptr %28, i32 0, i32 0
  call void @_ZNSt6vectorIN3net5LayerESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  invoke void @_ZN3net5LayerC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %30 unwind label %36

30:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %45, %30
  %32 = load i32, ptr %16, align 4, !tbaa !9
  %33 = load i32, ptr %11, align 4, !tbaa !9
  %34 = icmp ult i32 %32, %33
  br i1 %34, label %40, label %35

35:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %57

36:                                               ; preds = %6
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %14, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %15, align 4
  br label %176

40:                                               ; preds = %31
  %41 = getelementptr inbounds %"class.net::Layer", ptr %13, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #5
  %42 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @_ZN3net6NeuronC1Ei(ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef %42)
          to label %43 unwind label %48

43:                                               ; preds = %40
  invoke void @_ZNSt6vectorIN3net6NeuronESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %44 unwind label %52

44:                                               ; preds = %43
  call void @_ZN3net6NeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  br label %45

45:                                               ; preds = %44
  %46 = load i32, ptr %16, align 4, !tbaa !9
  %47 = add i32 %46, 1
  store i32 %47, ptr %16, align 4, !tbaa !9
  br label %31, !llvm.loop !11

48:                                               ; preds = %40
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %14, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %15, align 4
  br label %56

52:                                               ; preds = %43
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %14, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %15, align 4
  call void @_ZN3net6NeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  br label %56

56:                                               ; preds = %52, %48
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %175

57:                                               ; preds = %35
  %58 = getelementptr inbounds %"class.net::NeuralNet", ptr %28, i32 0, i32 0
  invoke void @_ZNSt6vectorIN3net5LayerESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %58, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %59 unwind label %66

59:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %101, %59
  %61 = load i32, ptr %18, align 4, !tbaa !9
  %62 = load i32, ptr %10, align 4, !tbaa !9
  %63 = sub i32 %62, 1
  %64 = icmp ult i32 %61, %63
  br i1 %64, label %70, label %65

65:                                               ; preds = %60
  store i32 5, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %110

66:                                               ; preds = %57
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %14, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %15, align 4
  br label %175

70:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #5
  invoke void @_ZN3net5LayerC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %71 unwind label %77

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

72:                                               ; preds = %86, %71
  %73 = load i32, ptr %21, align 4, !tbaa !9
  %74 = load i32, ptr %11, align 4, !tbaa !9
  %75 = icmp ult i32 %73, %74
  br i1 %75, label %81, label %76

76:                                               ; preds = %72
  store i32 8, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %98

77:                                               ; preds = %70
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %14, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %15, align 4
  br label %109

81:                                               ; preds = %72
  %82 = getelementptr inbounds %"class.net::Layer", ptr %20, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #5
  %83 = load i32, ptr %11, align 4, !tbaa !9
  invoke void @_ZN3net6NeuronC1Ei(ptr noundef nonnull align 8 dereferenceable(24) %22, i32 noundef %83)
          to label %84 unwind label %89

84:                                               ; preds = %81
  invoke void @_ZNSt6vectorIN3net6NeuronESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %82, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %85 unwind label %93

85:                                               ; preds = %84
  call void @_ZN3net6NeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #5
  br label %86

86:                                               ; preds = %85
  %87 = load i32, ptr %21, align 4, !tbaa !9
  %88 = add i32 %87, 1
  store i32 %88, ptr %21, align 4, !tbaa !9
  br label %72, !llvm.loop !13

89:                                               ; preds = %81
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %14, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %15, align 4
  br label %97

93:                                               ; preds = %84
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %14, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %15, align 4
  call void @_ZN3net6NeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  br label %97

97:                                               ; preds = %93, %89
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %108

98:                                               ; preds = %76
  %99 = getelementptr inbounds %"class.net::NeuralNet", ptr %28, i32 0, i32 0
  invoke void @_ZNSt6vectorIN3net5LayerESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %99, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %100 unwind label %104

100:                                              ; preds = %98
  call void @_ZN3net5LayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #5
  br label %101

101:                                              ; preds = %100
  %102 = load i32, ptr %18, align 4, !tbaa !9
  %103 = add i32 %102, 1
  store i32 %103, ptr %18, align 4, !tbaa !9
  br label %60, !llvm.loop !14

104:                                              ; preds = %98
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %14, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %15, align 4
  br label %108

108:                                              ; preds = %104, %97
  call void @_ZN3net5LayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #5
  br label %109

109:                                              ; preds = %108, %77
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %175

110:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #5
  invoke void @_ZN3net5LayerC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %111 unwind label %117

111:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %126, %111
  %113 = load i32, ptr %24, align 4, !tbaa !9
  %114 = load i32, ptr %9, align 4, !tbaa !9
  %115 = icmp ult i32 %113, %114
  br i1 %115, label %121, label %116

116:                                              ; preds = %112
  store i32 11, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %138

117:                                              ; preds = %110
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %14, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %15, align 4
  br label %174

121:                                              ; preds = %112
  %122 = getelementptr inbounds %"class.net::Layer", ptr %23, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #5
  %123 = load i32, ptr %11, align 4, !tbaa !9
  invoke void @_ZN3net6NeuronC1Ei(ptr noundef nonnull align 8 dereferenceable(24) %25, i32 noundef %123)
          to label %124 unwind label %129

124:                                              ; preds = %121
  invoke void @_ZNSt6vectorIN3net6NeuronESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %122, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %125 unwind label %133

125:                                              ; preds = %124
  call void @_ZN3net6NeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #5
  br label %126

126:                                              ; preds = %125
  %127 = load i32, ptr %24, align 4, !tbaa !9
  %128 = add i32 %127, 1
  store i32 %128, ptr %24, align 4, !tbaa !9
  br label %112, !llvm.loop !15

129:                                              ; preds = %121
  %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 = %124
  %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 @_ZN3net6NeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  br label %137

137:                                              ; preds = %133, %129
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %173

138:                                              ; preds = %116
  %139 = getelementptr inbounds %"class.net::NeuralNet", ptr %28, i32 0, i32 0
  invoke void @_ZNSt6vectorIN3net5LayerESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %139, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %140 unwind label %148

140:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %141

141:                                              ; preds = %159, %140
  %142 = load i32, ptr %26, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds %"class.net::NeuralNet", ptr %28, i32 0, i32 0
  %145 = call noundef i64 @_ZNKSt6vectorIN3net5LayerESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %144) #5
  %146 = icmp ult i64 %143, %145
  br i1 %146, label %152, label %147

147:                                              ; preds = %141
  store i32 14, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %171

148:                                              ; preds = %171, %138
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %14, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %15, align 4
  br label %173

152:                                              ; preds = %141
  %153 = getelementptr inbounds %"class.net::NeuralNet", ptr %28, i32 0, i32 0
  %154 = load i32, ptr %26, align 4, !tbaa !9
  %155 = zext i32 %154 to i64
  %156 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN3net5LayerESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %153, i64 noundef %155) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %157 unwind label %162

157:                                              ; preds = %152
  invoke void @_ZN3net5Layer29setActivationFunctionWithNameENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %156, ptr noundef %27)
          to label %158 unwind label %166

158:                                              ; preds = %157
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #5
  br label %159

159:                                              ; preds = %158
  %160 = load i32, ptr %26, align 4, !tbaa !9
  %161 = add i32 %160, 1
  store i32 %161, ptr %26, align 4, !tbaa !9
  br label %141, !llvm.loop !16

162:                                              ; preds = %152
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %14, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %15, align 4
  br label %170

166:                                              ; preds = %157
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %14, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #5
  br label %170

170:                                              ; preds = %166, %162
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %173

171:                                              ; preds = %147
  invoke void @_ZN3net9NeuralNet16randomizeWeightsEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %172 unwind label %148

172:                                              ; preds = %171
  call void @_ZN3net5LayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #5
  call void @_ZN3net5LayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  ret void

173:                                              ; preds = %170, %148, %137
  call void @_ZN3net5LayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #5
  br label %174

174:                                              ; preds = %173, %117
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #5
  br label %175

175:                                              ; preds = %174, %109, %66, %56
  call void @_ZN3net5LayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  br label %176

176:                                              ; preds = %175, %36
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  call void @_ZNSt6vectorIN3net5LayerESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #5
  br label %177

177:                                              ; preds = %176
  %178 = load ptr, ptr %14, align 8
  %179 = load i32, ptr %15, align 4
  %180 = insertvalue { ptr, i32 } poison, ptr %178, 0
  %181 = insertvalue { ptr, i32 } %180, i32 %179, 1
  resume { ptr, i32 } %181
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3net5LayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

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

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


; 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.net::Layer" = type { ptr, %"class.std::vector.3" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<net::Neuron, std::allocator<net::Neuron>>::_Vector_impl" }
%"struct.std::_Vector_base<net::Neuron, std::allocator<net::Neuron>>::_Vector_impl" = type { %"struct.std::_Vector_base<net::Neuron, std::allocator<net::Neuron>>::_Vector_impl_data" }
%"struct.std::_Vector_base<net::Neuron, std::allocator<net::Neuron>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.net::Neuron" = type { %"class.std::vector.8" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3net9NeuralNetC2EjjjjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.net::Layer", align 8
  %8 = alloca %"class.net::Neuron", align 8
  %9 = alloca %"class.net::Layer", align 8
  %10 = alloca %"class.net::Neuron", align 8
  %11 = alloca %"class.net::Layer", align 8
  %12 = alloca %"class.net::Neuron", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  tail call void @_ZNSt6vectorIN3net5LayerESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #5
  invoke void @_ZN3net5LayerC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %.preheader53 unwind label %26

.preheader53:                                     ; preds = %6
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader53
  %14 = getelementptr inbounds i8, ptr %7, i64 8
  br label %28

._crit_edge:                                      ; preds = %30, %.preheader53
  invoke void @_ZNSt6vectorIN3net5LayerESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %.preheader52 unwind label %38

.preheader52:                                     ; preds = %._crit_edge
  %15 = add i32 %3, -1
  %.not76 = icmp eq i32 %15, 0
  br i1 %.not76, label %._crit_edge60, label %.lr.ph59

.lr.ph59:                                         ; preds = %.preheader52
  %16 = getelementptr inbounds i8, ptr %9, i64 8
  br i1 %.not, label %.lr.ph59.split, label %.lr.ph59.split.us

.lr.ph59.split.us:                                ; preds = %.lr.ph59, %17
  %.02258.us = phi i32 [ %18, %17 ], [ 0, %.lr.ph59 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  invoke void @_ZN3net5LayerC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %.preheader51.us unwind label %.split.us

17:                                               ; preds = %._crit_edge57.us
  call void @_ZN3net5LayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  %18 = add nuw i32 %.02258.us, 1
  %exitcond82.not = icmp eq i32 %18, %15
  br i1 %exitcond82.not, label %._crit_edge60, label %.lr.ph59.split.us, !llvm.loop !5

.preheader51.us:                                  ; preds = %.lr.ph59.split.us, %20
  %.02155.us = phi i32 [ %21, %20 ], [ 0, %.lr.ph59.split.us ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  invoke void @_ZN3net6NeuronC1Ei(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef %4)
          to label %19 unwind label %.split65.us

19:                                               ; preds = %.preheader51.us
  invoke void @_ZNSt6vectorIN3net6NeuronESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %20 unwind label %.split68.us

20:                                               ; preds = %19
  call void @_ZN3net6NeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  %21 = add nuw i32 %.02155.us, 1
  %exitcond81.not = icmp eq i32 %21, %4
  br i1 %exitcond81.not, label %._crit_edge57.us, label %.preheader51.us, !llvm.loop !7

._crit_edge57.us:                                 ; preds = %20
  invoke void @_ZNSt6vectorIN3net5LayerESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %17 unwind label %.split62.us

.split.us:                                        ; preds = %.lr.ph59.split.us
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %46

.split62.us:                                      ; preds = %._crit_edge57.us
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %45

.split65.us:                                      ; preds = %.preheader51.us
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %41

.split68.us:                                      ; preds = %19
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3net6NeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  br label %41

26:                                               ; preds = %6
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %77

28:                                               ; preds = %.lr.ph, %30
  %.02354 = phi i32 [ 0, %.lr.ph ], [ %31, %30 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  invoke void @_ZN3net6NeuronC1Ei(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef %1)
          to label %29 unwind label %32

29:                                               ; preds = %28
  invoke void @_ZNSt6vectorIN3net6NeuronESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %30 unwind label %34

30:                                               ; preds = %29
  call void @_ZN3net6NeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  %31 = add nuw i32 %.02354, 1
  %exitcond.not = icmp eq i32 %31, %4
  br i1 %exitcond.not, label %._crit_edge, label %28, !llvm.loop !8

32:                                               ; preds = %28
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %36

34:                                               ; preds = %29
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3net6NeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  br label %36

36:                                               ; preds = %34, %32
  %.pn46 = phi { ptr, i32 } [ %35, %34 ], [ %33, %32 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %76

._crit_edge60:                                    ; preds = %17, %42, %.preheader52
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #5
  invoke void @_ZN3net5LayerC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %.preheader50 unwind label %48

.preheader50:                                     ; preds = %._crit_edge60
  %.not78 = icmp eq i32 %2, 0
  br i1 %.not78, label %._crit_edge72, label %.lr.ph71

.lr.ph71:                                         ; preds = %.preheader50
  %37 = getelementptr inbounds i8, ptr %11, i64 8
  br label %50

38:                                               ; preds = %._crit_edge
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %76

.lr.ph59.split:                                   ; preds = %.lr.ph59, %42
  %.02258 = phi i32 [ %43, %42 ], [ 0, %.lr.ph59 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  invoke void @_ZN3net5LayerC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %.preheader51 unwind label %.split

.preheader51:                                     ; preds = %.lr.ph59.split
  invoke void @_ZNSt6vectorIN3net5LayerESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %42 unwind label %.split62

.split:                                           ; preds = %.lr.ph59.split
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %46

41:                                               ; preds = %.split68.us, %.split65.us
  %.pn42 = phi { ptr, i32 } [ %25, %.split68.us ], [ %24, %.split65.us ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  br label %45

42:                                               ; preds = %.preheader51
  call void @_ZN3net5LayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  %43 = add nuw i32 %.02258, 1
  %exitcond83.not = icmp eq i32 %43, %15
  br i1 %exitcond83.not, label %._crit_edge60, label %.lr.ph59.split, !llvm.loop !5

.split62:                                         ; preds = %.preheader51
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %45

45:                                               ; preds = %.split62, %.split62.us, %41
  %.pn42.pn = phi { ptr, i32 } [ %.pn42, %41 ], [ %44, %.split62 ], [ %23, %.split62.us ]
  call void @_ZN3net5LayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  br label %46

46:                                               ; preds = %.split, %.split.us, %45
  %.pn42.pn.pn = phi { ptr, i32 } [ %.pn42.pn, %45 ], [ %40, %.split ], [ %22, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  br label %76

._crit_edge72:                                    ; preds = %52, %.preheader50
  invoke void @_ZNSt6vectorIN3net5LayerESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %.preheader unwind label %59

.preheader:                                       ; preds = %._crit_edge72
  %47 = call noundef i64 @_ZNKSt6vectorIN3net5LayerESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %.not79 = icmp eq i64 %47, 0
  br i1 %.not79, label %._crit_edge75, label %.lr.ph74

48:                                               ; preds = %._crit_edge60
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %75

50:                                               ; preds = %.lr.ph71, %52
  %.02070 = phi i32 [ 0, %.lr.ph71 ], [ %53, %52 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #5
  invoke void @_ZN3net6NeuronC1Ei(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %4)
          to label %51 unwind label %54

51:                                               ; preds = %50
  invoke void @_ZNSt6vectorIN3net6NeuronESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %52 unwind label %56

52:                                               ; preds = %51
  call void @_ZN3net6NeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  %53 = add nuw i32 %.02070, 1
  %exitcond84.not = icmp eq i32 %53, %2
  br i1 %exitcond84.not, label %._crit_edge72, label %50, !llvm.loop !9

54:                                               ; preds = %50
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %58

56:                                               ; preds = %51
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3net6NeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  br label %58

58:                                               ; preds = %56, %54
  %.pn38 = phi { ptr, i32 } [ %57, %56 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  br label %74

._crit_edge75:                                    ; preds = %64, %.preheader
  invoke void @_ZN3net9NeuralNet16randomizeWeightsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %73 unwind label %59

59:                                               ; preds = %._crit_edge75, %._crit_edge72
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %74

.lr.ph74:                                         ; preds = %.preheader, %64
  %61 = phi i64 [ %66, %64 ], [ 0, %.preheader ]
  %.073 = phi i32 [ %65, %64 ], [ 0, %.preheader ]
  %62 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN3net5LayerESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %61) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %63 unwind label %69

63:                                               ; preds = %.lr.ph74
  invoke void @_ZN3net5Layer29setActivationFunctionWithNameENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %62, ptr noundef nonnull %13)
          to label %64 unwind label %71

64:                                               ; preds = %63
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  %65 = add i32 %.073, 1
  %66 = zext i32 %65 to i64
  %67 = call noundef i64 @_ZNKSt6vectorIN3net5LayerESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %68 = icmp ugt i64 %67, %66
  br i1 %68, label %.lr.ph74, label %._crit_edge75, !llvm.loop !10

69:                                               ; preds = %.lr.ph74
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %74

71:                                               ; preds = %63
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  br label %74

73:                                               ; preds = %._crit_edge75
  call void @_ZN3net5LayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  call void @_ZN3net5LayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  ret void

74:                                               ; preds = %69, %71, %59, %58
  %.pn38.pn = phi { ptr, i32 } [ %.pn38, %58 ], [ %60, %59 ], [ %72, %71 ], [ %70, %69 ]
  call void @_ZN3net5LayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  br label %75

75:                                               ; preds = %74, %48
  %.pn38.pn.pn = phi { ptr, i32 } [ %.pn38.pn, %74 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  br label %76

76:                                               ; preds = %75, %46, %38, %36
  %.pn46.pn = phi { ptr, i32 } [ %.pn46, %36 ], [ %.pn42.pn.pn, %46 ], [ %.pn38.pn.pn, %75 ], [ %39, %38 ]
  call void @_ZN3net5LayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  br label %77

77:                                               ; preds = %76, %26
  %.pn46.pn.pn = phi { ptr, i32 } [ %.pn46.pn, %76 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  call void @_ZNSt6vectorIN3net5LayerESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  resume { ptr, i32 } %.pn46.pn.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3net5LayerD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

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

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

declare void @_ZN3net5Layer29setActivationFunctionWithNameENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}
!10 = distinct !{!10, !6}


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